+ {
+ 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
diff --git a/templates/README-template.md b/templates/README-template.md
index 05470c41c..c6dd7bc2a 100644
--- a/templates/README-template.md
+++ b/templates/README-template.md
@@ -2,12 +2,20 @@
## Summary
@@ -33,7 +41,7 @@ You can add as many screen shots as you'd like to help users understand your web
## Compatibility
![SPFx 1.14](https://img.shields.io/badge/SPFx-1.14-green.svg)
-![Node.js v14 | v12](https://img.shields.io/badge/Node.js-v14%20%7C%20v12-green.svg)
+![Node.js v14 | v12](https://img.shields.io/badge/Node.js-v14%20%7C%20v12-green.svg)
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
@@ -42,7 +50,7 @@ You can add as many screen shots as you'd like to help users understand your web
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
If using SPFx 1.12.1, update the SPFx and Node.js tags accordingly:
![SPFx 1.12.1](https://img.shields.io/badge/SPFx-1.12.1-green.svg)
@@ -127,7 +135,7 @@ Please describe the steps to configure the pre-requisites. Feel free to add scre
-->
-## Minimal Path to Awesome
+## Minimal path to awesome