Skip to content

Commit bde7827

Browse files
committed
Merge branch 'dev'
2 parents 5958429 + 36ad1fe commit bde7827

Some content is hidden

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

70 files changed

+1936
-244
lines changed

CHANGELOG.JSON

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
{
22
"versions": [
3+
{
4+
"version": "2.4.0",
5+
"changes": {
6+
"new": [
7+
"`AccessibleAccordion` control [#770](https://github.com/pnp/sp-dev-fx-controls-react/pull/770)"
8+
],
9+
"enhancements": [
10+
"`Placeholder`: support of custom rendering for `iconText` and `description`",
11+
"`PeoplePicker`: ability just to display inactive users name (ideally the value fetched from 'Author/Title') [#768](https://github.com/pnp/sp-dev-fx-controls-react/issues/768)",
12+
"`TaxonomyPicker`: New `onPanelSelectionChange` property added. Can be used to interact with the control while selecting items in the panel, before Click or Cancel is clicked. [#761](https://github.com/pnp/sp-dev-fx-controls-react/issues/761)",
13+
"`TaxonomyPicker`: `selectChildrenIfParentSelected` property added. Specifies if the children should be selected when parent item is selected (defaults to false). [#765](https://github.com/pnp/sp-dev-fx-controls-react/issues/765)",
14+
"`ListPicker`: ability to pick lists from specified site using `webAbsoluteUrl` property.",
15+
"`FilePicker`: `buttonIconProps` to define properties of the button's icon [#770](https://github.com/pnp/sp-dev-fx-controls-react/pull/770)"
16+
],
17+
"fixes": [
18+
"`DateTimePicker`: documentation fix [#767](https://github.com/pnp/sp-dev-fx-controls-react/pull/767)",
19+
"`PeoplePicker`: documentation fix - Changed isRequired property to new required [#769](https://github.com/pnp/sp-dev-fx-controls-react/pull/769)",
20+
"Documentation fix - missing `IFramePanel` link on home page [#775](https://github.com/pnp/sp-dev-fx-controls-react/pull/775)",
21+
"Documentation fix for `FilePicker`: updated `onChaged` to `onChange` [#776](https://github.com/pnp/sp-dev-fx-controls-react/pull/776)"
22+
]
23+
},
24+
"contributions": [
25+
"[André Lage](https://github.com/aaclage)",
26+
"[Christian Metz](https://github.com/ChrisOMetz)",
27+
"[Gaurav Goyal](https://github.com/Gaurav8Bizportals)",
28+
"[Leif Frederiksen](https://github.com/Leif-Frederiksen)",
29+
"[Ravichandran Krishnasamy](https://github.com/ravichandran-blog)",
30+
"[San](https://github.com/sankarkumar23)",
31+
"[João Mendes](https://github.com/joaojmendes)"
32+
]
33+
},
334
{
435
"version": "2.3.0",
536
"changes": {
@@ -167,8 +198,7 @@
167198
{
168199
"version": "1.19.0",
169200
"changes": {
170-
"new": [
171-
],
201+
"new": [],
172202
"enhancements": [
173203
"`ListView`: Add clear button to filter text box [#549](https://github.com/pnp/sp-dev-fx-controls-react/issues/549)",
174204
"`FolderExplorer`: Add clear button to filter text box [#553](https://github.com/pnp/sp-dev-fx-controls-react/pull/553)",

CHANGELOG.md

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

3+
## 2.4.0
4+
5+
### New control(s)
6+
7+
- `AccessibleAccordion` control [#770](https://github.com/pnp/sp-dev-fx-controls-react/pull/770)
8+
9+
### Enhancements
10+
11+
- `Placeholder`: support of custom rendering for `iconText` and `description`
12+
- `PeoplePicker`: ability just to display inactive users name (ideally the value fetched from 'Author/Title') [#768](https://github.com/pnp/sp-dev-fx-controls-react/issues/768)
13+
- `TaxonomyPicker`: New `onPanelSelectionChange` property added. Can be used to interact with the control while selecting items in the panel, before Click or Cancel is clicked. [#761](https://github.com/pnp/sp-dev-fx-controls-react/issues/761)
14+
- `TaxonomyPicker`: `selectChildrenIfParentSelected` property added. Specifies if the children should be selected when parent item is selected (defaults to false). [#765](https://github.com/pnp/sp-dev-fx-controls-react/issues/765)
15+
- `ListPicker`: ability to pick lists from specified site using `webAbsoluteUrl` property.
16+
- `FilePicker`: `buttonIconProps` to define properties of the button's icon [#770](https://github.com/pnp/sp-dev-fx-controls-react/pull/770)
17+
18+
### Fixes
19+
20+
- `DateTimePicker`: documentation fix [#767](https://github.com/pnp/sp-dev-fx-controls-react/pull/767)
21+
- `PeoplePicker`: documentation fix - Changed isRequired property to new required [#769](https://github.com/pnp/sp-dev-fx-controls-react/pull/769)
22+
- Documentation fix - missing `IFramePanel` link on home page [#775](https://github.com/pnp/sp-dev-fx-controls-react/pull/775)
23+
- Documentation fix for `FilePicker`: updated `onChaged` to `onChange` [#776](https://github.com/pnp/sp-dev-fx-controls-react/pull/776)
24+
25+
### Contributors
26+
27+
Special thanks to our contributors (in alphabetical order): [André Lage](https://github.com/aaclage), [Christian Metz](https://github.com/ChrisOMetz), [Gaurav Goyal](https://github.com/Gaurav8Bizportals), [Leif Frederiksen](https://github.com/Leif-Frederiksen), [Ravichandran Krishnasamy](https://github.com/ravichandran-blog), [San](https://github.com/sankarkumar23), [João Mendes](https://github.com/joaojmendes).
28+
329
## 2.3.0
430

531
### New control(s)

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

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

3+
## 2.4.0
4+
5+
### New control(s)
6+
7+
- `AccessibleAccordion` control [#770](https://github.com/pnp/sp-dev-fx-controls-react/pull/770)
8+
9+
### Enhancements
10+
11+
- `Placeholder`: support of custom rendering for `iconText` and `description`
12+
- `PeoplePicker`: ability just to display inactive users name (ideally the value fetched from 'Author/Title') [#768](https://github.com/pnp/sp-dev-fx-controls-react/issues/768)
13+
- `TaxonomyPicker`: New `onPanelSelectionChange` property added. Can be used to interact with the control while selecting items in the panel, before Click or Cancel is clicked. [#761](https://github.com/pnp/sp-dev-fx-controls-react/issues/761)
14+
- `TaxonomyPicker`: `selectChildrenIfParentSelected` property added. Specifies if the children should be selected when parent item is selected (defaults to false). [#765](https://github.com/pnp/sp-dev-fx-controls-react/issues/765)
15+
- `ListPicker`: ability to pick lists from specified site using `webAbsoluteUrl` property.
16+
- `FilePicker`: `buttonIconProps` to define properties of the button's icon [#770](https://github.com/pnp/sp-dev-fx-controls-react/pull/770)
17+
18+
### Fixes
19+
20+
- `DateTimePicker`: documentation fix [#767](https://github.com/pnp/sp-dev-fx-controls-react/pull/767)
21+
- `PeoplePicker`: documentation fix - Changed isRequired property to new required [#769](https://github.com/pnp/sp-dev-fx-controls-react/pull/769)
22+
- Documentation fix - missing `IFramePanel` link on home page [#775](https://github.com/pnp/sp-dev-fx-controls-react/pull/775)
23+
- Documentation fix for `FilePicker`: updated `onChaged` to `onChange` [#776](https://github.com/pnp/sp-dev-fx-controls-react/pull/776)
24+
25+
### Contributors
26+
27+
Special thanks to our contributors (in alphabetical order): [André Lage](https://github.com/aaclage), [Christian Metz](https://github.com/ChrisOMetz), [Gaurav Goyal](https://github.com/Gaurav8Bizportals), [Leif Frederiksen](https://github.com/Leif-Frederiksen), [Ravichandran Krishnasamy](https://github.com/ravichandran-blog), [San](https://github.com/sankarkumar23), [João Mendes](https://github.com/joaojmendes).
28+
329
## 2.3.0
430

531
### New control(s)
387 KB
Loading

docs/documentation/docs/controls/DateTimePicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here are some examples of the control:
2525
- Import the control into your component. The DateConvention and TimeConvention controls if the time of day controls are shown and the time format used (12 hours/24 hours).
2626

2727
```TypeScript
28-
import { DateTimePicker, DateConvention, TimeConvention } from '@pnp/spfx-controls-react/lib/dateTimePicker';
28+
import { DateTimePicker, DateConvention, TimeConvention } from '@pnp/spfx-controls-react/lib/DateTimePicker';
2929
```
3030
- Use the `DateTimePicker` control in your code as follows, either as an uncontrolled or a controlled component:
3131

docs/documentation/docs/controls/FilePicker.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { FilePicker, IFilePickerResult } from '@pnp/spfx-controls-react/lib/File
4545
accepts= {[".gif", ".jpg", ".jpeg", ".bmp", ".dib", ".tif", ".tiff", ".ico", ".png", ".jxr", ".svg"]}
4646
buttonIcon="FileImage"
4747
onSave={(filePickerResult: IFilePickerResult) => { this.setState({filePickerResult }) }}
48-
onChanged={(filePickerResult: IFilePickerResult) => { this.setState({filePickerResult }) }}
48+
onChange={(filePickerResult: IFilePickerResult) => { this.setState({filePickerResult }) }}
4949
context={this.props.context}
5050
/>
5151
```
@@ -59,6 +59,7 @@ The FilePicker component can be configured with the following properties:
5959
| label | string | no | Specifies the text describing the file picker. |
6060
| buttonLabel | string | no | Specifies the label of the file picker button. |
6161
| buttonIcon | string | no | In case it is provided the file picker will be rendered as an action button. |
62+
buttonIconProps | IIconProps | no | In case it is provided the file picker will be rendered as an Icon the and all can define Properties for Icon |
6263
| onSave | (filePickerResult: IFilePickerResult) => void | yes | Handler when the file has been selected and picker has been closed. |
6364
| onChange | (filePickerResult: IFilePickerResult) => void | no | Handler when the file selection has been changed. |
6465
| context | ExtensionContext \| WebPartContext | yes | Current context. |

docs/documentation/docs/controls/ListPicker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ The `ListPicker` control can be configured with the following properties:
6262
| placeHolder | string | no | Placeholder label to show in the dropdown. **Deprecated. Use `placeholder` instead.** |
6363
| placeholder | string | no | Placeholder label to show in the dropdown. |
6464
| onSelectionChanged | (newValue: string OR string[]): void | no | Callback function when the selected option changes. |
65+
| webAbsoulteUrl | string | no | Absolute Web Url of target site (user requires permissions) |
6566

6667
Enum `LibsOrderBy`
6768

docs/documentation/docs/controls/ListView.ContextualMenu.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,5 @@ The result will look like the following:
106106
Once you click on an action, you will see the alert:
107107

108108
![ContextualMenu_clicked](../assets/ListView.ContextualMenu_clicked.png)
109+
110+
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/ListViewContextualMenu)

docs/documentation/docs/controls/Pagination.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ The Pagination control can be configured with the following properties:
5151
| hideFirstPageJump | boolean | no | Hide the quick jump to the first page | false |
5252
| hideLastPageJump | boolean | no | Hide the quick jump to the last page | false |
5353
| limiterIcon | string | no | Limitir icon form Fluent IU | More |
54+
55+
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/Pagination)

docs/documentation/docs/controls/PeoplePicker.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { PeoplePicker, PrincipalType } from "@pnp/spfx-controls-react/lib/People
3333
personSelectionLimit={3}
3434
groupName={"Team Site Owners"} // Leave this blank in case you want to filter from all users
3535
showtooltip={true}
36-
isRequired={true}
36+
required={true}
3737
disabled={true}
3838
onChange={this._getPeoplePickerItems}
3939
showHiddenInUI={false}
@@ -70,7 +70,8 @@ The People picker control can be configured with the following properties:
7070
| onChange | (items: IPersonaProps[]) => void | no | Get the selected users in the control. | |
7171
| peoplePickerWPclassName | string | no | applies custom styling to the people picker element | |
7272
| peoplePickerCntrlclassName | string | no | applies custom styling to the people picker control only | |
73-
| defaultSelectedUsers | string[] | no | Default selected user emails or login names | |
73+
| defaultSelectedUsers | string[] | no | Default selected user emails or login names, optionally append `/title` with forward slash.
74+
If user is not found then only optional title will be shown. If you do not have email or login name of inactive users just pass `/title` alone prefixed with slash.| |
7475
| webAbsoluteUrl | string | no | Specify the site URL on which you want to perform the user query call. If not provided, the people picker will perform a tenant wide people/group search. When provided it will search users/groups on the provided site. | |
7576
| principalTypes | PrincipalType[] | no | Define which type of data you want to retrieve: User, SharePoint groups, Security groups. Multiple are possible. | |
7677
| ensureUser | boolean | no | When ensure user property is true, it will return the local user ID on the current site when doing a tenant wide search. | false |

0 commit comments

Comments
 (0)