Updated readme and PnP modules

This commit is contained in:
Hugo Bernier 2020-12-16 22:07:41 -05:00
parent 8bc02e9955
commit 5df6f212ab
6 changed files with 48 additions and 24798 deletions

View File

@ -24,16 +24,25 @@ This is a sample project that contains a web part which makes use of the PnP SPF
![Web part outcome](./assets/webpart-outcome.gif) ![Web part outcome](./assets/webpart-outcome.gif)
## Used SharePoint Framework Version ## Compatibility
![drop](https://img.shields.io/badge/drop-1.4.1-green.svg)
![SPFx 1.11](https://img.shields.io/badge/spfx-1.11.0-green.svg)
![Node.js LTS 10.x](https://img.shields.io/badge/Node.js-LTS%2010.x-green.svg)
![SharePoint Online](https://img.shields.io/badge/SharePoint-Online-red.svg)
![Teams Incompatible](https://img.shields.io/badge/Teams-Incompatible-lightgrey.svg)
![Workbench Local (Partially) | Hosted](https://img.shields.io/badge/Workbench-Local%20(Partial)%20%7C%20Hosted-yellow.svg)
## Which PnP SPFx controls are being used in this sample? ## Which PnP SPFx controls are being used in this sample?
The sample makes use of the following controls: The sample makes use of the following controls:
- PropertyFieldListPicker - `PropertyFieldListPicker`
- PropertyFieldTermPicker - `PropertyFieldTermPicker`
- Placeholder - `Placeholder`
- ListView (which also uses the FileTypeIcon control) - `ListView` (which also uses the `FileTypeIcon` control)
## Applies to ## Applies to
@ -44,15 +53,18 @@ The sample makes use of the following controls:
Solution|Author(s) Solution|Author(s)
--------|--------- --------|---------
pnp-controls|Elio Struyf (MVP, U2U, [@eliostruyf](https://twitter.com/eliostruyf)) pnp-controls|Elio Struyf (MVP, U2U, [@eliostruyf](https://twitter.com/eliostruyf))
pnp-controls|Swaminathan Sriram ([@SwaminathanSri3](https://twitter.com/SwaminathanSri3))
## Version history ## Version history
Version|Date|Comments Version|Date|Comments
-------|----|-------- -------|----|--------
0.0.1|September 20, 2017|Initial release 1.0.1|September 20, 2017|Initial release
0.0.2|March 03, 2018|Update to 1.4.1 1.0.2|March 03, 2018|Update to 1.4.1
1.0.3|December 16, 2020|Update to 1.11.0
## Disclaimer ## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** **THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
--- ---

View File

@ -3,7 +3,7 @@
"solution": { "solution": {
"name": "component-test-client-side-solution", "name": "component-test-client-side-solution",
"id": "7d4d5b98-cea3-4361-8e3d-5143d5c86334", "id": "7d4d5b98-cea3-4361-8e3d-5143d5c86334",
"version": "1.0.0.0", "version": "1.0.3.0",
"includeClientSideAssets": true, "includeClientSideAssets": true,
"skipFeatureDeployment": false, "skipFeatureDeployment": false,
"isDomainIsolated": false, "isDomainIsolated": false,

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "component-test", "name": "component-test",
"version": "0.0.2", "version": "1.0.3",
"private": true, "private": true,
"main": "lib/index.js", "main": "lib/index.js",
"engines": { "engines": {
@ -15,8 +15,8 @@
"@microsoft/sp-core-library": "1.11.0", "@microsoft/sp-core-library": "1.11.0",
"@microsoft/sp-property-pane": "1.11.0", "@microsoft/sp-property-pane": "1.11.0",
"@microsoft/sp-webpart-base": "1.11.0", "@microsoft/sp-webpart-base": "1.11.0",
"@pnp/spfx-controls-react": "^1.2.2", "@pnp/spfx-controls-react": "2.3.0",
"@pnp/spfx-property-controls": "^1.4.1", "@pnp/spfx-property-controls": "2.2.0",
"@types/react": "16.8.8", "@types/react": "16.8.8",
"moment": "2.18.1", "moment": "2.18.1",
"natives": "^1.1.6", "natives": "^1.1.6",

View File

@ -1,7 +1,7 @@
import { ICheckedTerms } from "@pnp/spfx-property-controls/lib/PropertyFieldTermPicker"; import { IPickerTerms } from "@pnp/spfx-property-controls/lib/PropertyFieldTermPicker";
export interface IPnPControlsWebPartProps { export interface IPnPControlsWebPartProps {
lists: string | string[]; // Stores the list ID(s) lists: string | string[]; // Stores the list ID(s)
terms: ICheckedTerms; // Keeps hold of the selected terms terms: IPickerTerms; // Keeps hold of the selected terms
description: string; description: string;
} }

View File

@ -1,11 +1,11 @@
import { ICheckedTerms } from '@pnp/spfx-property-controls/lib/PropertyFieldTermPicker'; import { IPickerTerms } from '@pnp/spfx-property-controls/lib/PropertyFieldTermPicker';
import { WebPartContext } from "@microsoft/sp-webpart-base"; import { WebPartContext } from "@microsoft/sp-webpart-base";
export interface IPnPControlsProps { export interface IPnPControlsProps {
context: WebPartContext; context: WebPartContext;
description: string; description: string;
list: string | string[]; list: string | string[];
terms: ICheckedTerms; terms: IPickerTerms;
} }
export interface IPnpControlsState { export interface IPnpControlsState {