Skip to content

Commit db72114

Browse files
author
Piotr Siatka
committed
Merge
1 parent da0d765 commit db72114

29 files changed

+52
-53
lines changed

CHANGELOG.JSON

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
"new": [],
77
"enhancements": [
88
"`FilePicker`: Fixes for OneDrive CORS issues [#407](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/407)",
9-
"`ListItemPicker`: added new control property `filter` [#392](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/392)"
9+
"`ListItemPicker`: added new control property `filter` [#392](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/392)",
10+
"allowing to use context from any type of SPFx extensions: [#419](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/419)"
1011
],
1112
"fixes": [
1213
"Documentation fix for `FilePicker`: updated `accepts` value in props [#404](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/404)",
1314
"The `FilePicker` control doesn't work in many languages due to missing localization keys [#412](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/412)",
1415
"Documentation fix for broken links of Property Controls landing page [#388](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/388)",
1516
"Documentation fix to include new components from v 1.15.0 [#394](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/394)",
16-
"`DateTimePicker`: dropdown for time not handling AM/PM correctly [#405](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/409)"
17+
"`DateTimePicker`: dropdown for time not handling AM/PM correctly [#405](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/409)",
18+
"Documentation fix for `index` page: updated link to Chart controls [#417](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/417)",
19+
"Documentation update for SPFx On Premises notice: [#418](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/418)"
1720
]
1821
},
1922
"contributions": [
@@ -22,7 +25,8 @@
2225
"[Siddharth Vaghasia](https://github.com/siddharth-vaghasia)",
2326
"[João Mendes](https://github.com/joaojmendes)",
2427
"[PrasadKasireddy](https://github.com/PrasadKasireddy)",
25-
"[Chad Eiserloh](https://github.com/c-eiser13)"
28+
"[Chad Eiserloh](https://github.com/c-eiser13)",
29+
"[Koen Zomers](https://github.com/KoenZomers)"
2630
]
2731
},
2832
{

docs/documentation/docs/controls/FilePicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The FilePicker component can be configured with the following properties:
6161
| buttonIcon | string | no | In case it is provided the file picker will be rendered as an action button. |
6262
| onSave | (filePickerResult: IFilePickerResult) => void | yes | Handler when the file has been selected and picker has been closed. |
6363
| onChange | (filePickerResult: IFilePickerResult) => void | no | Handler when the file selection has been changed. |
64-
| context | ApplicationCustomizerContext | WebPartContext | yes | Current context. |
64+
| context | ExtensionContext \| WebPartContext | yes | Current context. |
6565
| accepts | string[] | no | Array of strings containing allowed files extensions. E.g. [".gif", ".jpg", ".jpeg", ".bmp", ".dib", ".tif", ".tiff", ".ico", ".png", ".jxr", ".svg"] |
6666
| required | boolean | no | Sets the label to inform that the value is required. |
6767
| bingAPIKey | string | no | Used to execute WebSearch. If not provided SearchTab will not be available. |

docs/documentation/docs/controls/ListItemAttachments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The `ListItemAttachments` control can be configured with the following propertie
3636

3737
| Property | Type | Required | Description |
3838
| ---- | ---- | ---- | ---- |
39-
| context | WebPartContext \| ApplicationCustomizerContext | yes | SPFx web part or extention context |
39+
| context | WebPartContext \| ExtensionContext | yes | SPFx web part or extention context |
4040
| itemId | number | yes | List Item Id |
4141
| listId | string | yes | Guid of the list. |
4242
| webUrl | string | no | URL of the site. By default it uses the current site URL. |

docs/documentation/docs/controls/ListItemPicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The `ListItemPicker` control can be configured with the following properties:
4949
| ---- | ---- | ---- | ---- |
5050
| columnInternalName | string | yes | InternalName of column to search and get values. |
5151
| keyColumnInternalName | string | no | InternalName of column to use as the key for the selection. Must be a column with unique values. Default: Id |
52-
| context | WebPartContext \| ApplicationCustomizerContext | yes | SPFx web part or extention context |
52+
| context | WebPartContext \| ExtensionContext | yes | SPFx web part or extention context |
5353
| listId | string | yes | Guid of the list. |
5454
| itemLimit | number | yes | Number of items which can be selected |
5555
| onSelectItem | (items: any[]) => void | yes | Callback function which returns the selected items. |

docs/documentation/docs/controls/ListPicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The `ListPicker` control can be configured with the following properties:
4949

5050
| Property | Type | Required | Description |
5151
| ---- | ---- | ---- | ---- |
52-
| context | WebPartContext OR ApplicationCustomizerContext | yes | The context object of the SPFx loaded webpart or customizer. |
52+
| context | WebPartContext \| ExtensionContext | yes | The context object of the SPFx loaded webpart or customizer. |
5353
| className | string | no | If provided, additional class name to provide on the dropdown element. |
5454
| disabled | boolean | no | Whether or not the control is disabled. |
5555
| baseTemplate | number | no | The SharePoint BaseTemplate ID to filter the list options by. |

docs/documentation/docs/controls/SecurityTrimmedControl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The `SecurityTrimmedControl` can be configured with the following properties:
6262

6363
| Property | Type | Required | Description |
6464
| ---- | ---- | ---- | ---- |
65-
| context | WebPartContext or ApplicationCustomizerContext or FieldCustomizerContext or ListViewCommandSetContext | yes | Context of the web part, application customizer, field customizer, or list view command set. |
65+
| context | WebPartContext \| ExtensionContext | yes | Context of the web part, application customizer, field customizer, or list view command set. |
6666
| permissions | SPPermission[] | yes | The permissions to check for the user. |
6767
| level | PermissionLevel | yes | Specify where to check the user permissions: current site or list / remote site or list. |
6868
| remoteSiteUrl | string | no | The URL of the remote site. Required when you want to check permissions on remote site or list. |

docs/documentation/docs/controls/SiteBreadcrumb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ The SiteBreadcrumb control can be configured with the following properties:
2626

2727
| Property | Type | Required | Description |
2828
| ---- | ---- | ---- | ---- |
29-
| context | WebPartContext OR ApplicationCustomizerContext | yes | Pass the context of your web part or application customizer extension. |
29+
| context | WebPartContext \| ExtensionContext | yes | Pass the context of your web part or application customizer extension. |
3030

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

docs/documentation/docs/controls/TaxonomyPicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The TaxonomyPicker control can be configured with the following properties:
105105
| panelTitle | string | yes | TermSet Picker Panel title. |
106106
| label | string | yes | Text displayed above the Taxonomy Picker. |
107107
| disabled | string | no | Specify if the control needs to be disabled. |
108-
| context | WebPartContext | yes | Context of the current web part. |
108+
| context | WebPartContext \| ExtensionContext | yes | Context of the current web part or extension. |
109109
| initialValues | IPickerTerms | no | Defines the selected by default term sets. |
110110
| allowMultipleSelections | boolean | no | Defines if the user can select only one or many term sets. Default value is false. |
111111
| termsetNameOrID | string | yes | The name or Id of your TermSet that you would like the Taxonomy Picker to chose terms from. |

docs/documentation/docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This repository provides developers with a set of reusable React controls that c
55
![Placeholder example](./assets/placeholder-intro.png)
66

77
!!! attention
8-
The controls project has a minimal dependency on SharePoint Framework version `1.3.0`. Be aware that the controls might not work in solutions your building for on-premises. As for on-premises solutions version `1.1.0` is currently used.
8+
The controls project has a minimal dependency on SharePoint Framework version `1.3.0`. Be aware that the controls might not work in solutions your building for SharePoint 2016 with Feature Pack 2 on-premises. As for SharePoint 2016 with Feature Pack 2 version `1.1.0` of the SharePoint framework is the only version that can be used. SharePoint 2019 on-premises uses SharePoint framework `v1.4.0` and therefore should be fine to use with these controls.
99

1010
## Getting started
1111

@@ -35,7 +35,7 @@ Once the package is installed, you will have to configure the resource file of t
3535
The following controls are currently available:
3636

3737
- [Carousel](./controls/Carousel) (Control displays children elements with 'previous/next element' options)
38-
- [Charts](./controls/ChartControls) (makes it easy to integrate [Chart.js](https://www.chartjs.org/) charts into web part)
38+
- [Charts](./controls/ChartControl) (makes it easy to integrate [Chart.js](https://www.chartjs.org/) charts into web part)
3939
- [DateTimePicker](./controls/DateTimePicker) (DateTime Picker)
4040
- [FilePicker](./controls/FilePicker) (control that allows to browse and select a file from various places)
4141
- [FileTypeIcon](./controls/FileTypeIcon) (Control that shows the icon of a specified file path or application)

src/controls/dateTimePicker/HoursComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class HoursComponent extends React.Component<IHoursComponentProps
3636
label=''
3737
options={this._hours}
3838
onChanged={option => {
39-
onChange(option.text)
39+
onChange(option.text);
4040
}}
4141
dropdownWidth={110} />);
4242
}

0 commit comments

Comments
 (0)