Skip to content

Commit 8cbac7d

Browse files
author
Tom German
committed
Merge branch 'dev' into dynamic-form-list-customization
2 parents e4cf220 + deeaefe commit 8cbac7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1118
-318
lines changed

CHANGELOG.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,36 @@
44
"version": "3.16.0",
55
"changes": {
66
"new": [
7+
"`ViewPicker`: new control ViewPicker [#1439](https://github.com/pnp/sp-dev-fx-controls-react/issues/1439)"
78
],
89
"enhancements": [
10+
"`FieldCollectionData`: render on page instead of panel and added combobox and peoplepicker controls [#1588](https://github.com/pnp/sp-dev-fx-controls-react/pull/1588)",
11+
"`FieldCollectionData`: added date field control and updated number field [#1600](https://github.com/pnp/sp-dev-fx-controls-react/pull/1600)",
12+
"`ListItemComments`: Added ListItemComments component to Controls.tsx [#1621](https://github.com/pnp/sp-dev-fx-controls-react/pull/1621)",
13+
"`FolderPicker`: Improve documentation of FolderPicker [#1379](https://github.com/pnp/sp-dev-fx-controls-react/pull/1379)",
14+
"`RichText`: Add https:// as placeholder instead of textbox value when adding url [#1651](https://github.com/pnp/sp-dev-fx-controls-react/pull/1656)"
915
],
1016
"fixes": [
17+
"`AccessibleAccordion`: fix typo in documentation [#1634](https://github.com/pnp/sp-dev-fx-controls-react/pull/1634)",
18+
"`DynamicForm`: fix issue with MultiChoice field [#1510](https://github.com/pnp/sp-dev-fx-controls-react/issues/1510)",
19+
"`Localization`: Update dutch translations [#1635](https://github.com/pnp/sp-dev-fx-controls-react/issues/1635)",
20+
"`TaxonomyPicker`: suggested item contains double termset name [#1597](https://github.com/pnp/sp-dev-fx-controls-react/issues/1597)",
21+
"`DynamicForm`: DynamicForm does not properly handle NULL default values for Taxonomy fields [#1267](https://github.com/pnp/sp-dev-fx-controls-react/issues/1267)",
22+
"`DynamicForm`: New items are always created with the default content type if the list has multiple content types [#1626](https://github.com/pnp/sp-dev-fx-controls-react/pull/1626)",
23+
"`PeoplePicker`:PeoplePicker won't accept Multiple Users with the same name [#1620] (https://github.com/pnp/sp-dev-fx-controls-react/pull/1620)",
24+
"`DynamicForm`: Dynamic Form accessed TaxonomyFieldTypeMulti without considering sub-array results [#1614](https://github.com/pnp/sp-dev-fx-controls-react/pull/1614)",
25+
"`DynamicForm`: Number validations are working, but the percentage values are not getting saved [#1601](https://github.com/pnp/sp-dev-fx-controls-react/pull/1601)"
1126
]
1227
},
1328
"contributions": [
29+
"[Guido Zambarda](https://github.com/GuidoZam)",
30+
"[Joakim](https://github.com/daenur76)",
31+
"[Michaël Maillot](https://github.com/michaelmaillot)",
32+
"[Nils Andresen](https://github.com/nils-a)",
33+
"[Nishkalank Bezawada](https://github.com/NishkalankBezawada)",
34+
"[Rico van de Ven](https://github.com/RicoNL)",
35+
"[Steve Beaugé](https://github.com/stevebeauge)",
36+
"[wuxiaojun514](https://github.com/wuxiaojun514)"
1437
]
1538
},
1639
{

CHANGELOG.md

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

3+
## 3.16.0
4+
5+
### New control(s)
6+
7+
- `ViewPicker`: new control ViewPicker [#1439](https://github.com/pnp/sp-dev-fx-controls-react/issues/1439)
8+
9+
### Enhancements
10+
11+
- `FieldCollectionData`: render on page instead of panel and added combobox and peoplepicker controls [#1588](https://github.com/pnp/sp-dev-fx-controls-react/pull/1588)
12+
- `FieldCollectionData`: added date field control and updated number field [#1600](https://github.com/pnp/sp-dev-fx-controls-react/pull/1600)
13+
- `ListItemComments`: Added ListItemComments component to Controls.tsx [#1621](https://github.com/pnp/sp-dev-fx-controls-react/pull/1621)
14+
- `FolderPicker`: Improve documentation of FolderPicker [#1379](https://github.com/pnp/sp-dev-fx-controls-react/pull/1379)
15+
- `RichText`: Add https:// as placeholder instead of textbox value when adding url [#1651](https://github.com/pnp/sp-dev-fx-controls-react/pull/1656)
16+
17+
### Fixes
18+
19+
- `AccessibleAccordion`: fix typo in documentation [#1634](https://github.com/pnp/sp-dev-fx-controls-react/pull/1634)
20+
- `DynamicForm`: fix issue with MultiChoice field [#1510](https://github.com/pnp/sp-dev-fx-controls-react/issues/1510)
21+
- `Localization`: Update dutch translations [#1635](https://github.com/pnp/sp-dev-fx-controls-react/issues/1635)
22+
- `TaxonomyPicker`: suggested item contains double termset name [#1597](https://github.com/pnp/sp-dev-fx-controls-react/issues/1597)
23+
- `DynamicForm`: DynamicForm does not properly handle NULL default values for Taxonomy fields [#1267](https://github.com/pnp/sp-dev-fx-controls-react/issues/1267)
24+
- `DynamicForm`: New items are always created with the default content type if the list has multiple content types [#1626](https://github.com/pnp/sp-dev-fx-controls-react/pull/1626)
25+
- `PeoplePicker`:PeoplePicker won't accept Multiple Users with the same name [#1620] (https://github.com/pnp/sp-dev-fx-controls-react/pull/1620)
26+
- `DynamicForm`: Dynamic Form accessed TaxonomyFieldTypeMulti without considering sub-array results [#1614](https://github.com/pnp/sp-dev-fx-controls-react/pull/1614)
27+
- `DynamicForm`: Number validations are working, but the percentage values are not getting saved [#1601](https://github.com/pnp/sp-dev-fx-controls-react/pull/1601)
28+
29+
### Contributors
30+
31+
Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Joakim](https://github.com/daenur76), [Michaël Maillot](https://github.com/michaelmaillot), [Nils Andresen](https://github.com/nils-a), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Rico van de Ven](https://github.com/RicoNL), [Steve Beaugé](https://github.com/stevebeauge), [wuxiaojun514](https://github.com/wuxiaojun514).
32+
333
## 3.15.0
434

535
### New control(s)

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Please use following logic on submitting your questions or issues to right locat
1515
* You have general question or challenge with SPFx - use [sp-dev-docs repository issue list](https://github.com/sharepoint/sp-dev-docs/issues).
1616
* You have issue on specific controls in this package - use [issue list in this repository](https://github.com/pnp/sp-dev-fx-controls-react/issues).
1717

18-
1918
## Contributing
2019

2120
We'd love your help! If you have ideas for new features or feedback, let us know by creating an issue in the [issues list](https://github.com/pnp/sp-dev-fx-controls-react/issues). Before you submit a PR with your improvements, please review our [project guides](https://pnp.github.io/sp-dev-fx-controls-react/guides).

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

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

3+
## 3.16.0
4+
5+
### New control(s)
6+
7+
- `ViewPicker`: new control ViewPicker [#1439](https://github.com/pnp/sp-dev-fx-controls-react/issues/1439)
8+
9+
### Enhancements
10+
11+
- `FieldCollectionData`: render on page instead of panel and added combobox and peoplepicker controls [#1588](https://github.com/pnp/sp-dev-fx-controls-react/pull/1588)
12+
- `FieldCollectionData`: added date field control and updated number field [#1600](https://github.com/pnp/sp-dev-fx-controls-react/pull/1600)
13+
- `ListItemComments`: Added ListItemComments component to Controls.tsx [#1621](https://github.com/pnp/sp-dev-fx-controls-react/pull/1621)
14+
- `FolderPicker`: Improve documentation of FolderPicker [#1379](https://github.com/pnp/sp-dev-fx-controls-react/pull/1379)
15+
- `RichText`: Add https:// as placeholder instead of textbox value when adding url [#1651](https://github.com/pnp/sp-dev-fx-controls-react/pull/1656)
16+
17+
### Fixes
18+
19+
- `AccessibleAccordion`: fix typo in documentation [#1634](https://github.com/pnp/sp-dev-fx-controls-react/pull/1634)
20+
- `DynamicForm`: fix issue with MultiChoice field [#1510](https://github.com/pnp/sp-dev-fx-controls-react/issues/1510)
21+
- `Localization`: Update dutch translations [#1635](https://github.com/pnp/sp-dev-fx-controls-react/issues/1635)
22+
- `TaxonomyPicker`: suggested item contains double termset name [#1597](https://github.com/pnp/sp-dev-fx-controls-react/issues/1597)
23+
- `DynamicForm`: DynamicForm does not properly handle NULL default values for Taxonomy fields [#1267](https://github.com/pnp/sp-dev-fx-controls-react/issues/1267)
24+
- `DynamicForm`: New items are always created with the default content type if the list has multiple content types [#1626](https://github.com/pnp/sp-dev-fx-controls-react/pull/1626)
25+
- `PeoplePicker`:PeoplePicker won't accept Multiple Users with the same name [#1620] (https://github.com/pnp/sp-dev-fx-controls-react/pull/1620)
26+
- `DynamicForm`: Dynamic Form accessed TaxonomyFieldTypeMulti without considering sub-array results [#1614](https://github.com/pnp/sp-dev-fx-controls-react/pull/1614)
27+
- `DynamicForm`: Number validations are working, but the percentage values are not getting saved [#1601](https://github.com/pnp/sp-dev-fx-controls-react/pull/1601)
28+
29+
### Contributors
30+
31+
Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Joakim](https://github.com/daenur76), [Michaël Maillot](https://github.com/michaelmaillot), [Nils Andresen](https://github.com/nils-a), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Rico van de Ven](https://github.com/RicoNL), [Steve Beaugé](https://github.com/stevebeauge), [wuxiaojun514](https://github.com/wuxiaojun514).
32+
333
## 3.15.0
434

535
### New control(s)
30.2 KB
Loading
14.8 KB
Loading
31.5 KB
Loading

docs/documentation/docs/controls/AdaptiveCardDesignerHost.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ Here is an example of the control in action inside a Web Part:
3030
* Check that you installed the `@pnp/spfx-controls-react` dependency. Check out the [getting started](../../#getting-started) page for more information about installing the dependency.
3131

3232
* In your component file, import the `AdaptiveCardDesignerHost` control as follows:
33+
3334
```Typescript
3435
import { AdaptiveCardDesignerHost, HostContainer, BindingPreviewMode, Versions } from "@pnp/spfx-controls-react/lib/AdaptiveCardDesignerHost";
3536
```
3637

3738
- Example on use the `AdaptiveCardDesignerHost` control with only required properties:
39+
3840
```Typescript
3941
<AdaptiveCardDesignerHost
4042
headerText="Adaptive Card Designer"
@@ -45,6 +47,7 @@ import { AdaptiveCardDesignerHost, HostContainer, BindingPreviewMode, Versions }
4547
```
4648

4749
- Example on use the `AdaptiveCardDesignerHost` control with all properties:
50+
4851
```Typescript
4952
<AdaptiveCardDesignerHost
5053
headerText="Adaptive Card Designer"
@@ -72,6 +75,7 @@ import { AdaptiveCardDesignerHost, HostContainer, BindingPreviewMode, Versions }
7275
snippets={snippets}
7376
/>
7477
```
78+
7579
## Implementation
7680

7781
The `AdaptiveCardDesignerHost` control can be configured with the following properties:

docs/documentation/docs/controls/FieldCollectionData.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The `FieldCollectionData` control can be configured with the following propertie
9696
| saveAndAddBtnLabel | string | yes | Label of the save and add button. | |
9797
| cancelBtnLabel | string | yes | Label of the cancel button. | |
9898
| fields | ICustomCollectionField[] | yes | The fields to be used for the list of collection data. | |
99-
| value | string | yes | The collection data value. | |
99+
| value | any[] | yes | The collection data value. | |
100100
| enableSorting | boolean | no | Specify if you want to be able to sort the items in the collection. | false |
101101
| disabled | boolean | no | Specify if the control is disabled. | false |
102102
| disableItemCreation | boolean | no | Allows you to specify if user can create new items. | false |
@@ -106,6 +106,9 @@ The `FieldCollectionData` control can be configured with the following propertie
106106
| itemsPerPage | number | no | Allows you to specify the amount of items displayed per page. Paging control is added automatically. | |
107107
| executeFiltering | (searchFilter: string, item: any) => boolean | no | Allows you to show Search Box and specify own filtering logic. | |
108108
| panelProps | IPanelProps | no | Allows you to pass in props of the panel such as type and customWidth to control the underlying panel. | |
109+
| context | BaseComponentContext | no | Needed if **peoplepicker** field type is used | |
110+
| usePanel | boolean | no | Specify if you want the control to opened in a panel or directly on the page (only useful within webpart) | true |
111+
| noDataMessage | string | no | Specify the message when no items are added to the collection ||
109112

110113
Interface `ICustomCollectionField`
111114

@@ -116,13 +119,18 @@ Interface `ICustomCollectionField`
116119
| type | CustomCollectionFieldType | yes | Specifies the type of field to render. |
117120
| disableEdit | boolean | no | Allows you to specify if a field is disabled for editing. |
118121
| required | boolean | no | Specify if the field is required. |
119-
| options | [IDropdownOption[]](https://developer.microsoft.com/en-us/fabric#/components/dropdown) | no | Dropdown options. Only necessary when dropdown type is used. |
122+
| options | [IDropdownOption[]](https://developer.microsoft.com/en-us/fabric#/components/dropdown) [IComboboxOption[]](https://developer.microsoft.com/en-us/fluentui#/controls/web/combobox) | no | Dropdown options. Only necessary when dropdown or combobox type is used. |
120123
| onRenderOption | IRenderFunction<ISelectableOption> | no | Dropdown custom options render method. Only for the **dropdown** field type. |
121124
| placeholder | string | no | Placehoder text which will be used for the input field. If not provided the input title will be used. |
122125
| defaultValue | any | no | Specify a default value for the input field. |
123126
| deferredValidationTime | number | no | Field will start to validate after users stop typing for `deferredValidationTime` milliseconds. Default: 200ms. |
124127
| onGetErrorMessage | (value: any, index: number, crntItem: any): string \| Promise<string> | no | The method is used to get the validation error message and determine whether the input value is valid or not. It provides you the current row index and the item you are currently editing. |
125128
| onCustomRender | (field: ICustomCollectionField, value: any, onUpdate: (fieldId: string, value: any) => void, item: any, itemUniqueId: string, onCustomFieldValidation: (fieldId: string, errorMessage: string) => void) => JSX.Element | no | This property is only required if you are using the `custom` field type and it can be used to specify the custom rendering of your control in the collection data. |
129+
| multiSelect | boolean| no | Specifies multiple options can be selected (**combobox**) or mutliple users can be selected (**peoplepicker**) |
130+
| allowFreeform | boolean | no | Specifies that own options can be entered. Only for **combobox** field type |
131+
| minimumUsers| number | no | Specifies the minimum number of users to be entered for **peoplepicker** field type |
132+
| minimumUsersMessage| string | no | Specifies the message to be displayed if minimumUsers are not entered for **peoplepicker** field type |
133+
| maximumUsers | number | no | Specifies the maximum number of users to be entered for **peoplepicker** field type |
126134

127135
Enum `CustomCollectionFieldType`
128136

@@ -132,8 +140,10 @@ Enum `CustomCollectionFieldType`
132140
| number | Number field |
133141
| boolean | Checkbox |
134142
| dropdown | Dropdown field. You will have to specify the `options` property when using this field type |
143+
| combobox | Combobox field. You wil have to specify the `options` property, optional specify `allowFreeform` and `multiSelect` |
135144
| fabricIcon | Name of the [Office UI Fabric icon](https://developer.microsoft.com/en-us/fabric#/styles/icons) |
136145
| url | URL field |
146+
| peoplepicker | Peoplepicker control |
137147
| custom | This gives you control over the whole field rendering. Be sure to provide the `onCustomRender` method to render your control in the collection data. |
138148

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

docs/documentation/docs/controls/FolderPicker.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ private _onFolderSelect = (folder: IFolder): void => {
5050
}
5151
```
5252

53+
- If you want to pick a folder outside the current site collection (not the one targeted by the SPFx context), you have to specify which site collection owns the folder. You can do this by setting the `siteAbsoluteUrl` property to the URL of the site collection that owns the folder.
54+
55+
```TypeScript
56+
<FolderPicker context={this.props.context}
57+
label='Folder Picker'
58+
rootFolder={{
59+
Name: 'Documents',
60+
ServerRelativeUrl: '/sites/anotherSite/Shared Documents'
61+
}}
62+
siteAbsoluteUrl="https://contoso.sharepoint.com/sites/anotherSite"
63+
onSelect={this._onFolderSelect} />
64+
```
65+
5366
## Implementation
5467

5568
The `FolderPicker` control can be configured with the following properties:
@@ -59,6 +72,7 @@ The `FolderPicker` control can be configured with the following properties:
5972
| context | BaseComponentContext | yes | The context object of the SPFx loaded webpart or customizer. |
6073
| label | string | yes | The label for the control. |
6174
| rootFolder | IFolder | yes | The lowest level folder that can be explored. This can be the root folder of a library. |
75+
| siteAbsoluteUrl | string | no | The absolute url of the target site. Only required if rootFolder does not belongs to the current site |
6276
| defaultFolder | IFolder | no | The default folder to be selected or explored. |
6377
| required | boolean | no | Is selection required. |
6478
| disabled | boolean | no | Is the control disabled. |

0 commit comments

Comments
 (0)