Skip to content

Commit fbdbbc6

Browse files
authored
Merge pull request pnp#127 from SharePoint/dev
Merge for v1.8.0
2 parents 6dfc483 + 2f74bdb commit fbdbbc6

30 files changed

+463
-186
lines changed

CHANGELOG.JSON

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
{
22
"versions": [
3+
{
4+
"version": "1.8.0",
5+
"changes": {
6+
"new": [],
7+
"enhancements": [
8+
"`PeoplePicker`: Specify to hide or show the users/groups which are hidden in the UI [#122](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/122)",
9+
"`WebPartTitle`: changing font-sizes on different resolutions [#114](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/114)",
10+
"`WebPartTitle`: Added accessibility tags for web part title [#121](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/121)",
11+
"`ListView`: Resizable columns - introduced a `isResizable` property [#119](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/119)",
12+
"`FieldNameRenderer` double click support added [#116](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/116)",
13+
"`TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)",
14+
"`PeoplePicker`: ability to specify the source site to load users from [#110](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/110)",
15+
"`TaxonomyPicker`: Disable the terms which are set as deprecated or unavailable for tagging [#109](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/109)",
16+
"`PeoplePicker`: Specify principle type to retrieve (users, groups, ...) [#94](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/94)"
17+
],
18+
"fixes": [
19+
"`FieldLookupRenderer`: Fixed URL querystring params [#126](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/126)",
20+
"`IFrameDialog`: dialog width is not correct in IE11 [#118](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/118)",
21+
"`PeoplePicker`: fix freezes when typing in search values [#117](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/117)"
22+
]
23+
},
24+
"contributions": ["[Thomas Lamb](https://github.com/ThomasLamb)", "[Joel Rodrigues](https://github.com/joelfmrodrigues)", "[Mikael Svenson](https://github.com/wobba)", "[Alex Terentiev](https://github.com/AJIXuMuK)"]
25+
},
326
{
427
"version": "1.7.0",
528
"changes": {

CHANGELOG.md

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

3+
## 1.8.0
4+
5+
**Enhancements**
6+
7+
- `PeoplePicker`: Specify to hide or show the users/groups which are hidden in the UI [#122](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/122)
8+
- `WebPartTitle`: changing font-sizes on different resolutions [#114](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/114)
9+
- `WebPartTitle`: Added accessibility tags for web part title [#121](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/121)
10+
- `ListView`: Resizable columns - introduced a `isResizable` property [#119](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/119)
11+
- `FieldNameRenderer` double click support added [#116](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/116)
12+
- `TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)
13+
- `PeoplePicker`: ability to specify the source site to load users from [#110](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/110)
14+
- `TaxonomyPicker`: Disable the terms which are set as deprecated or unavailable for tagging [#109](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/109)
15+
- `PeoplePicker`: Specify principle type to retrieve (users, groups, ...) [#94](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/94)
16+
17+
**Fixes**
18+
19+
- `FieldLookupRenderer`: Fixed URL querystring params [#126](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/126)
20+
- `IFrameDialog`: dialog width is not correct in IE11 [#118](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/118)
21+
- `PeoplePicker`: fix freezes when typing in search values [#117](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/117)
22+
323
## 1.7.0
424

525
**Enhancements**

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

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

3+
## 1.8.0
4+
5+
**Enhancements**
6+
7+
- `PeoplePicker`: Specify to hide or show the users/groups which are hidden in the UI [#122](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/122)
8+
- `WebPartTitle`: changing font-sizes on different resolutions [#114](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/114)
9+
- `WebPartTitle`: Added accessibility tags for web part title [#121](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/121)
10+
- `ListView`: Resizable columns - introduced a `isResizable` property [#119](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/119)
11+
- `FieldNameRenderer` double click support added [#116](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/116)
12+
- `TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)
13+
- `PeoplePicker`: ability to specify the source site to load users from [#110](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/110)
14+
- `TaxonomyPicker`: Disable the terms which are set as deprecated or unavailable for tagging [#109](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/109)
15+
- `PeoplePicker`: Specify principle type to retrieve (users, groups, ...) [#94](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/94)
16+
17+
**Fixes**
18+
19+
- `FieldLookupRenderer`: Fixed URL querystring params [#126](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/126)
20+
- `IFrameDialog`: dialog width is not correct in IE11 [#118](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/118)
21+
- `PeoplePicker`: fix freezes when typing in search values [#117](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/117)
22+
323
## 1.7.0
424

525
**Enhancements**
Lines changed: 1 addition & 0 deletions
Loading

docs/documentation/docs/controls/ListView.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const groupByFields: IGrouping[] = [
5555
```
5656

5757
!!! note "Extend ListView with a ContextualMenu"
58-
To extend the `ListView` control with a [ContextualMenu](https://developer.microsoft.com/en-us/fabric#/components/contextualmenu) refer to [ListView.ContextualMenu](./ListView.ContextualMenu).
58+
To extend the `ListView` control with a [ContextualMenu](https://developer.microsoft.com/en-us/fabric#/components/contextualmenu) refer to [ListView.ContextualMenu](./ListView.ContextualMenu.md).
5959

6060
## Implementation
6161

@@ -82,6 +82,7 @@ The `IViewField` has the following implementation:
8282
| sorting | boolean | no | Specify if you want to enable sorting for the current field. |
8383
| maxWidth | number | no | Specify the minimum width of the column. |
8484
| maxWidth | number | no | Specify the maximum width of the column. |
85+
| isResizable | boolean | no | Determines if the column can be resized. |
8586
| render | function | no | Override how the field has to get rendered. |
8687

8788
The `IGrouping` has the following implementation:

docs/documentation/docs/controls/PeoplePicker.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This control renders a People picker field which can be used to select one or mo
2121
- Import the following modules to your component:
2222

2323
```typescript
24-
import { PeoplePicker } from "@pnp/spfx-controls-react/lib/PeoplePicker";
24+
import { PeoplePicker, PrincipalType } from "@pnp/spfx-controls-react/lib/PeoplePicker";
2525
```
2626

2727
- Use the `PeoplePicker` control in your code as follows:
@@ -35,7 +35,9 @@ import { PeoplePicker } from "@pnp/spfx-controls-react/lib/PeoplePicker";
3535
showtooltip={true}
3636
isRequired={true}
3737
disabled={true}
38-
selectedItems={this._getPeoplePickerItems} />
38+
selectedItems={this._getPeoplePickerItems}
39+
showHiddenInUI={false}
40+
principleTypes={[PrincipalType.User]} />
3941
```
4042

4143
- With the `selectedItems` property you can get the selected People in the Peoplepicker :
@@ -67,6 +69,19 @@ The People picker control can be configured with the following properties:
6769
| peoplePickerWPclassName | string | no | applies custom styling to the people picker element |
6870
| peoplePickerCntrlclassName | string | no | applies custom styling to the people picker control only |
6971
| defaultSelectedUsers | string[] | no | Default selected user emails |
72+
| webAbsoluteUrl | string | no | Specify the site URL on which you want to perform the user query call. Default is the current site URL. |
73+
| showHiddenInUI | boolean | no | Show users which are hidden from the UI. By default these users/groups hidden for the UI will not be shown. |
74+
| principleTypes | PrincipleType[] | no | Define which type of data you want to retrieve: User, SharePoint groups, Security groups. Multiple are possible. |
7075

76+
Enum `PrincipalType`
77+
78+
The `PrincipalType` enum can be used to specify the types of information you want to query: User, Security groups, and/or SharePoint groups.
79+
80+
| Name |
81+
| ---- |
82+
| User |
83+
| DistributionList |
84+
| SecurityGroup |
85+
| SharePointGroup |
7186

7287
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/PeoplePicker)

docs/documentation/docs/controls/fields/FieldNameRenderer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ The FieldNameRenderer component can be configured with the following properties:
3737
| isLink | boolean | yes | True if the name should be rendered as a link. |
3838
| isNew | boolean | no | True if the document is new. |
3939
| filePath | string | no | Path to the document. |
40-
| hasPreview | boolean | no | True if the document has preview (true by default) |
41-
| onClick | (args: INameClickEventArgs) => {} | no | Custom handler for link click. If not set link click will lead to rendering document preview. |
42-
40+
| hasPreview | boolean | no | True if the document has preview and link href should be constructed to display the preview (instead of direct document's link). The flag works only if `onClick` property is NOT defined. |
41+
| onClick | (args: INameClickEventArgs) => {} | no | Custom handler for link click. If not set link click will lead to rendering document preview. Works if `isLink` is set to `true` |
42+
| onDoubleClick | (args: INameClickEventArgs) => {} | no | Custom handler for link double click. If not set link If not set link will use OOTB behavior. Works if `isLink` is set to `true` |
4343

4444
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/fields/FieldNameRenderer)
4545

docs/documentation/docs/css/extra.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.md-logo {
2+
height: 32px;
3+
width: 150px;
4+
}
5+
6+
.md-logo img {
7+
width: 100% !important;
8+
height: auto !important;
9+
margin-top: -0.25em;
10+
}
11+
12+
.md-header{
13+
height: 75px;
14+
}
15+
16+
.md-container{
17+
padding-top: 70px;
18+
}
19+
20+
.md-sidebar[data-md-state="lock"]{
21+
padding-top: 75px;
22+
}
23+
24+
.md-footer {
25+
margin-top: 5em;
26+
}
27+
28+
@media only screen and (max-width: 76.1875em) {
29+
.md-nav--primary .md-nav__title--site .md-nav__button {
30+
width: 150px;
31+
}
32+
}

docs/documentation/mkdocs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
site_name: SharePoint Framework React Controls
2-
pages:
1+
site_name: '@pnp/spfx-controls-react'
2+
nav:
33
- Home: 'index.md'
44
- Controls:
55
- FileTypeIcon: 'controls/FileTypeIcon.md'
@@ -34,9 +34,11 @@ theme:
3434
name: 'material'
3535
palette:
3636
primary: 'blue'
37-
logo: 'assets/sharepoint.png'
37+
logo: 'assets/pnp-spfx-controls.svg'
3838
feature:
3939
tabs: true
40+
extra_css:
41+
- 'css/extra.css'
4042
markdown_extensions:
4143
- admonition
4244
- codehilite:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pnp/spfx-controls-react",
33
"description": "Reusable React controls for SharePoint Framework solutions",
4-
"version": "1.7.0",
4+
"version": "1.8.0",
55
"engines": {
66
"node": ">=0.10.0"
77
},
@@ -21,7 +21,8 @@
2121
"@pnp/odata": "^1.0.1",
2222
"@pnp/sp": "^1.0.1",
2323
"@pnp/telemetry-js": "1.0.0",
24-
"lodash": "^4.17.4"
24+
"lodash": "^4.17.4",
25+
"office-ui-fabric-react": "~5.122.0"
2526
},
2627
"devDependencies": {
2728
"@microsoft/decorators": "~1.3.0",

0 commit comments

Comments
 (0)