+ {
+ user && user.IsSiteAdmin ?
+
+
+ Site Url: {this.props.ctx.pageContext.web.absoluteUrl}
+ Total Number of lists in the Site are {data.length}
+
+
+
{
+ const id = filter.pivotId || filter.id;
+ return row[id] !== undefined ? String(row[id]).toLowerCase().indexOf(filter.value.toLowerCase()) !== -1 : true;
+ }}
+ />
+
+ {isConfirmCallOutVisible && (
+
+
+
+ this.onConfirmationMessageYesClicked(event)}>Yes
+ this.onConfirmationMessageNoClicked(event)}>No
+
+
+ }>
+ {isConfirmCalloutMessage}
+
+
+ )}
+
+ :
+
+
+ Sorry!!! This tool is only for Site Admins...
+
+
+ }
+
+
+ );
+ }
+}
diff --git a/samples/react-lists-hide/src/webparts/hideLists/components/IHideListsProps.ts b/samples/react-lists-hide/src/webparts/hideLists/components/IHideListsProps.ts
new file mode 100644
index 000000000..d72fe3936
--- /dev/null
+++ b/samples/react-lists-hide/src/webparts/hideLists/components/IHideListsProps.ts
@@ -0,0 +1,3 @@
+export interface IHideListsProps {
+ ctx: any;
+}
diff --git a/samples/react-lists-hide/src/webparts/hideLists/components/IHideListsState.ts b/samples/react-lists-hide/src/webparts/hideLists/components/IHideListsState.ts
new file mode 100644
index 000000000..53ecd3785
--- /dev/null
+++ b/samples/react-lists-hide/src/webparts/hideLists/components/IHideListsState.ts
@@ -0,0 +1,10 @@
+import { IListInfo } from '@pnp/sp/lists';
+
+export interface IHideListsState {
+ data: IListInfo[];
+ rowData: any;
+ user: any;
+ isCalloutVisible: boolean;
+ isConfirmCalloutMessage: string;
+ isConfirmCallOutVisible: boolean;
+}
diff --git a/samples/react-lists-hide/src/webparts/hideLists/loc/en-us.js b/samples/react-lists-hide/src/webparts/hideLists/loc/en-us.js
new file mode 100644
index 000000000..89f98bc1e
--- /dev/null
+++ b/samples/react-lists-hide/src/webparts/hideLists/loc/en-us.js
@@ -0,0 +1,7 @@
+define([], function() {
+ return {
+ "PropertyPaneDescription": "Description",
+ "BasicGroupName": "Group Name",
+ "DescriptionFieldLabel": "Description Field"
+ }
+});
\ No newline at end of file
diff --git a/samples/react-lists-hide/src/webparts/hideLists/loc/mystrings.d.ts b/samples/react-lists-hide/src/webparts/hideLists/loc/mystrings.d.ts
new file mode 100644
index 000000000..63108726a
--- /dev/null
+++ b/samples/react-lists-hide/src/webparts/hideLists/loc/mystrings.d.ts
@@ -0,0 +1,10 @@
+declare interface IHideListsWebPartStrings {
+ PropertyPaneDescription: string;
+ BasicGroupName: string;
+ DescriptionFieldLabel: string;
+}
+
+declare module 'HideListsWebPartStrings' {
+ const strings: IHideListsWebPartStrings;
+ export = strings;
+}
diff --git a/samples/react-lists-hide/teams/1b1dc257-2f1f-4255-a742-148a73e7be99_color.png b/samples/react-lists-hide/teams/1b1dc257-2f1f-4255-a742-148a73e7be99_color.png
new file mode 100644
index 000000000..0e1f764fa
Binary files /dev/null and b/samples/react-lists-hide/teams/1b1dc257-2f1f-4255-a742-148a73e7be99_color.png differ
diff --git a/samples/react-lists-hide/teams/1b1dc257-2f1f-4255-a742-148a73e7be99_outline.png b/samples/react-lists-hide/teams/1b1dc257-2f1f-4255-a742-148a73e7be99_outline.png
new file mode 100644
index 000000000..892868fab
Binary files /dev/null and b/samples/react-lists-hide/teams/1b1dc257-2f1f-4255-a742-148a73e7be99_outline.png differ
diff --git a/samples/react-lists-hide/tsconfig.json b/samples/react-lists-hide/tsconfig.json
new file mode 100644
index 000000000..f55dc0d5f
--- /dev/null
+++ b/samples/react-lists-hide/tsconfig.json
@@ -0,0 +1,35 @@
+{
+ "extends": "./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json",
+ "compilerOptions": {
+ "target": "es5",
+ "forceConsistentCasingInFileNames": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "jsx": "react",
+ "declaration": true,
+ "sourceMap": true,
+ "experimentalDecorators": true,
+ "skipLibCheck": true,
+ "outDir": "lib",
+ "inlineSources": false,
+ "strictNullChecks": false,
+ "noUnusedLocals": false,
+ "typeRoots": [
+ "./node_modules/@types",
+ "./node_modules/@microsoft"
+ ],
+ "types": [
+ "webpack-env"
+ ],
+ "lib": [
+ "es5",
+ "dom",
+ "es2015.collection",
+ "es2015.promise"
+ ]
+ },
+ "include": [
+ "src/**/*.ts",
+ "src/**/*.tsx"
+ ]
+}
diff --git a/samples/react-lists-hide/tslint.json b/samples/react-lists-hide/tslint.json
new file mode 100644
index 000000000..6c3c92f28
--- /dev/null
+++ b/samples/react-lists-hide/tslint.json
@@ -0,0 +1,29 @@
+{
+ "extends": "./node_modules/@microsoft/sp-tslint-rules/base-tslint.json",
+ "rules": {
+ "class-name": false,
+ "export-name": false,
+ "forin": false,
+ "label-position": false,
+ "member-access": true,
+ "no-arg": false,
+ "no-console": false,
+ "no-construct": false,
+ "no-duplicate-variable": true,
+ "no-eval": false,
+ "no-function-expression": true,
+ "no-internal-module": true,
+ "no-shadowed-variable": true,
+ "no-switch-case-fall-through": true,
+ "no-unnecessary-semicolons": true,
+ "no-unused-expression": true,
+ "no-with-statement": true,
+ "semicolon": true,
+ "trailing-comma": false,
+ "typedef": false,
+ "typedef-whitespace": false,
+ "use-named-parameter": true,
+ "variable-name": false,
+ "whitespace": false
+ }
+}
\ No newline at end of file