Skip to content

Commit c3c8be7

Browse files
authored
Merge pull request #46 from SharePoint/dev
Merge for the 1.5.0 release
2 parents f046a2f + 1d34a7d commit c3c8be7

25 files changed

+685
-117
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Releases
22

3+
## 1.5.0
4+
5+
**Enhancements**
6+
7+
- `PropertyFieldListPicker` control extended with select all lists option [#8](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/8)
8+
- `PropertyFieldTermPicker` control extended with the ability to search terms by typing in the textbox [#11](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/11) [#42](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/42) [#44](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/44) [#45](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/45)
9+
- `SPTermStorePickerService` has a new interface which contains only the required properties
10+
311
## 1.4.2
412

513
**Enhancements**

docs/documentation/docs/about/release-notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Releases
22

3+
## 1.5.0
4+
5+
**Enhancements**
6+
7+
- `PropertyFieldListPicker` control extended with select all lists option [#8](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/8)
8+
- `PropertyFieldTermPicker` control extended with the ability to search terms by typing in the textbox [#11](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/11) [#42](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/42) [#44](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/44) [#45](https://github.com/SharePoint/sp-dev-fx-property-controls/issues/45)
9+
- `SPTermStorePickerService` has a new interface which contains only the required properties
10+
311
## 1.4.2
412

513
**Enhancements**
16.1 KB
Loading
-4.45 KB
Loading
-3.18 KB
Loading

docs/documentation/docs/controls/PropertyFieldListPicker.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ The `PropertyFieldListPicker` control can be configured with the following prope
6262
| includeHidden | boolean | no | Specify if you want to include hidden lists in the list picker. By default this is set to `true`. |
6363
| orderBy | PropertyFieldListPickerOrderBy | no | Specify the property on which you want to order the retrieve set of lists. |
6464
| multiSelect | boolean | no | Specify if you want to have a single or multi-list picker. By default this is set to `false` (single list picker). |
65+
| showSelectAll | boolean | no | Specify if you want the Select All checkbox. By default this is set to `false` (mult-list picker only). |
66+
| selectAllInList | boolean | no | Specify where to show the Select All checkbox. When false (default), checkbox is shown before the label, when true it is shown with the lists (mult-list picker only). |
67+
| selectAllInListLabel | string | no | The label to use for the in list select all checkbox (mult-list picker only). |
6568
| onPropertyChange | function | yes | Defines a onPropertyChange function to raise when the date gets changed. |
6669
| properties | any | yes | Parent web part properties, this object is use to update the property value. |
6770
| key | string | yes | An unique key that indicates the identity of this control. |

docs/documentation/docs/controls/PropertyFieldTermPicker.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ This control generates a term picker that can be used in the property pane of yo
2020

2121
![Selected terms in the input](../assets/termpicker-selected-terms.png)
2222

23+
**Term picker: Auto Complete**
24+
25+
![Selected terms in the input](../assets/termpicker-autocomplete.png)
26+
2327
**Limit the term set to a specific group or termset**
2428

2529
![Limit to a group or termset](../assets/termpicker-limit-to-group.png)
@@ -36,10 +40,10 @@ import { PropertyFieldTermPicker } from '@pnp/spfx-property-controls/lib/Propert
3640
3. Create a new property for your web part, for example:
3741

3842
```TypeScript
39-
import { ICheckedTerms } from "@pnp/spfx-property-controls/lib/PropertyFieldTermPicker";
43+
import { IPickerTerms } from "@pnp/spfx-property-controls/lib/PropertyFieldTermPicker";
4044

4145
export interface IPropertyControlsTestWebPartProps {
42-
terms: ICheckedTerms;
46+
terms: IPickerTerms;
4347
}
4448
```
4549

@@ -73,7 +77,7 @@ The `PropertyFieldTermPicker` control can be configured with the following prope
7377
| panelTitle | string | yes | TermSet Picker Panel title. |
7478
| disabled | boolean | no | Specify if the control needs to be disabled. |
7579
| context | WebPartContext | yes | Context of the current web part. |
76-
| initialValues | ICheckedTerms | no | Defines the selected by default term sets. |
80+
| initialValues | IPickerTerms | no | Defines the selected by default term sets. |
7781
| allowMultipleSelections | boolean | no | Defines if the user can select only one or many term sets. Default value is false. |
7882
| excludeSystemGroup | boolean | no | Indicator to define if the system Groups are exclude. Default is false. |
7983
| limitByGroupNameOrID | string | no | Limit the term sets that can be used by the group name or ID. |
@@ -85,13 +89,15 @@ The `PropertyFieldTermPicker` control can be configured with the following prope
8589
| onGetErrorMessage | function | no | The method is used to get the validation error message and determine whether the input value is valid or not. See [this documentation](https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/validate-web-part-property-values) to learn how to use it. |
8690
| deferredValidationTime | number | no | Control will start to validate after users stop typing for `deferredValidationTime` milliseconds. Default value is 200. |
8791

88-
Interface `ICheckedTerms`
92+
Interface `IPickerTerms`
8993

9094
| Property | Type | Required | Description |
9195
| ---- | ---- | ---- | ---- |
92-
| id | string | yes | The ID of the term |
96+
| key | string | yes | The ID of the term |
9397
| name | string | yes | The name of the term |
9498
| path | string | yes | The path of the term |
95-
| termSet | string | yes | The parent term set of the term |
99+
| termSet | string | yes | The Id of the parent term set of the term |
100+
| termSetName | string | no | The Name of the parent term set of the term |
101+
96102

97103
![](https://telemetry.sharepointpnp.com/sp-dev-fx-property-controls/wiki/PropertyFieldTermPicker)

0 commit comments

Comments
 (0)