Skip to content

Commit 32b0def

Browse files
committed
merge with dev
2 parents d9bbeed + b88a9f2 commit 32b0def

40 files changed

+1573
-1207
lines changed

CHANGELOG.JSON

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "1.20.0",
55
"changes": {
66
"new": [
7+
"`Accordion` control [#638](https://github.com/pnp/sp-dev-fx-controls-react/pull/638)",
78
"`FieldCollectionData` control [#591](https://github.com/pnp/sp-dev-fx-controls-react/pull/591)"
89
],
910
"enhancements": [
@@ -13,7 +14,10 @@
1314
"`ListItemPicker`: ability to use substring search instead of startswith [#583](https://github.com/pnp/sp-dev-fx-controls-react/issues/583)",
1415
"`Map`: return display name and address details for the location [#585](https://github.com/pnp/sp-dev-fx-controls-react/issues/585)",
1516
"`Map`: support for draggable and static Bing maps [#586](https://github.com/pnp/sp-dev-fx-controls-react/issues/586)",
16-
"`TaxonomyPicker`: onLoad validation [#602](https://github.com/pnp/sp-dev-fx-controls-react/issues/602)"
17+
"`TaxonomyPicker`: onLoad validation [#602](https://github.com/pnp/sp-dev-fx-controls-react/issues/602)",
18+
"`FieldCollectionData`: Add pagining and filtering [#617](https://github.com/pnp/sp-dev-fx-controls-react/pull/617)",
19+
"`TaxonomyPicker`: Finding terms with labels [#288](https://github.com/pnp/sp-dev-fx-controls-react/issues/288)",
20+
"`FileTypeIcon`: Added support for additional file type in `Image` mode [#640](https://github.com/pnp/sp-dev-fx-controls-react/pull/640)"
1721
],
1822
"fixes": [
1923
"`ComboBoxListItemPicker`: fetching only 100 items [#569](https://github.com/pnp/sp-dev-fx-controls-react/issues/569)",
@@ -23,13 +27,24 @@
2327
"`ListItemAttachments`: fails in Microsoft Teams Tab SPFx applications [#582](fails in Microsoft Teams Tab SPFx applications)",
2428
"`Carousel`: Changing pages doesn't work [#609](https://github.com/pnp/sp-dev-fx-controls-react/issues/609)",
2529
"`TaxonomyPicker`: no suggestions are displayed if `anchorId` is not set",
26-
"`TaxonomyPicker`: Suggestion/match does not work as expected [#604](https://github.com/pnp/sp-dev-fx-controls-react/issues/604)"
30+
"`TaxonomyPicker`: Suggestion/match does not work as expected [#604](https://github.com/pnp/sp-dev-fx-controls-react/issues/604)",
31+
"`TaxonomyPicker`: Include check for separator while filtering path of terms when anchorId is configured [#625](https://github.com/pnp/sp-dev-fx-controls-react/issues/625)",
32+
"`FilePicker`: Bing API search issue [#633](https://github.com/pnp/sp-dev-fx-controls-react/pull/633)",
33+
"`ListView`: Sort fires selection [#621](https://github.com/pnp/sp-dev-fx-controls-react/issues/621)",
34+
"`Map`: A minor issue in componentWillUpdate method to get the next props rather than the current props.[#641](https://github.com/pnp/sp-dev-fx-controls-react/pull/641)",
35+
"`IFrameDialog`: dialog size is incorrect when opening the dialog second time [#615](https://github.com/pnp/sp-dev-fx-controls-react/issues/615)",
36+
"`FolderPicker`: imports don't work [#614](https://github.com/pnp/sp-dev-fx-controls-react/issues/614)"
2737
]
2838
},
2939
"contributions": [
40+
"[Alexey Sadomov](https://github.com/sadomovalex)",
41+
"[Anoop Tatti](https://github.com/anoopt)",
42+
"[Devang Bhavsar](https://github.com/devangbhavsar89)",
43+
"[Gautam Sheth](https://github.com/gautamdsheth)",
3044
"[geltapatio](https://github.com/geltapatio)",
3145
"[Joel Jeffery](https://github.com/joeljeffery)",
32-
"[Piotr Siatka](https://github.com/siata13)"
46+
"[Piotr Siatka](https://github.com/siata13)",
47+
"[Victor Pollet](https://github.com/TheThor59)"
3348
]
3449
},
3550
{

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### New control(s)
66

7+
- `Accordion` control [#638](https://github.com/pnp/sp-dev-fx-controls-react/pull/638)
78
- `FieldCollectionData` control [#591](https://github.com/pnp/sp-dev-fx-controls-react/pull/591)
89

910
### Enhancements
@@ -15,6 +16,9 @@
1516
- `Map`: return display name and address details for the location [#585](https://github.com/pnp/sp-dev-fx-controls-react/issues/585)
1617
- `Map`: support for draggable and static Bing maps [#586](https://github.com/pnp/sp-dev-fx-controls-react/issues/586)
1718
- `TaxonomyPicker`: onLoad validation [#602](https://github.com/pnp/sp-dev-fx-controls-react/issues/602)
19+
- `FieldCollectionData`: Add pagining and filtering [#617](https://github.com/pnp/sp-dev-fx-controls-react/pull/617)
20+
- `TaxonomyPicker`: Finding terms with labels [#288](https://github.com/pnp/sp-dev-fx-controls-react/issues/288)
21+
- `FileTypeIcon`: Added support for additional file type in `Image` mode [#640](https://github.com/pnp/sp-dev-fx-controls-react/pull/640)
1822

1923
### Fixes
2024

@@ -26,10 +30,20 @@
2630
- `Carousel`: Changing pages doesn't work [#609](https://github.com/pnp/sp-dev-fx-controls-react/issues/609)
2731
- `TaxonomyPicker`: no suggestions are displayed if `anchorId` is not set
2832
- `TaxonomyPicker`: Suggestion/match does not work as expected [#604](https://github.com/pnp/sp-dev-fx-controls-react/issues/604)
33+
<<<<<<< HEAD
2934

3035
### Contributors
3136

3237
Special thanks to our contributors (in alphabetical order): [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Piotr Siatka](https://github.com/siata13).
38+
=======
39+
- `TaxonomyPicker`: Include check for separator while filtering path of terms when anchorId is configured [#625](https://github.com/pnp/sp-dev-fx-controls-react/issues/625)
40+
- `FilePicker`: Bing API search issue [#633](https://github.com/pnp/sp-dev-fx-controls-react/pull/633)
41+
- `ListView`: Sort fires selection [#621](https://github.com/pnp/sp-dev-fx-controls-react/issues/621)
42+
43+
### Contributors
44+
45+
Special thanks to our contributors (in alphabetical order): [Devang Bhavsar](https://github.com/devangbhavsar89), [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Victor Pollet](https://github.com/TheThor59), [Alexey Sadomov](https://github.com/sadomovalex), [Gautam Sheth](https://github.com/gautamdsheth), [Piotr Siatka](https://github.com/siata13).
46+
>>>>>>> dev
3347
3448
## 1.19.0
3549

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### New control(s)
66

7+
- `Accordion` control [#638](https://github.com/pnp/sp-dev-fx-controls-react/pull/638)
78
- `FieldCollectionData` control [#591](https://github.com/pnp/sp-dev-fx-controls-react/pull/591)
89

910
### Enhancements
@@ -15,6 +16,12 @@
1516
- `Map`: return display name and address details for the location [#585](https://github.com/pnp/sp-dev-fx-controls-react/issues/585)
1617
- `Map`: support for draggable and static Bing maps [#586](https://github.com/pnp/sp-dev-fx-controls-react/issues/586)
1718
- `TaxonomyPicker`: onLoad validation [#602](https://github.com/pnp/sp-dev-fx-controls-react/issues/602)
19+
<<<<<<< HEAD
20+
=======
21+
- `FieldCollectionData`: Add pagining and filtering [#617](https://github.com/pnp/sp-dev-fx-controls-react/pull/617)
22+
- `TaxonomyPicker`: Finding terms with labels [#288](https://github.com/pnp/sp-dev-fx-controls-react/issues/288)
23+
- `FileTypeIcon`: Added support for additional file type in `Image` mode [#640](https://github.com/pnp/sp-dev-fx-controls-react/pull/640)
24+
>>>>>>> dev
1825
1926
### Fixes
2027

@@ -26,10 +33,20 @@
2633
- `Carousel`: Changing pages doesn't work [#609](https://github.com/pnp/sp-dev-fx-controls-react/issues/609)
2734
- `TaxonomyPicker`: no suggestions are displayed if `anchorId` is not set
2835
- `TaxonomyPicker`: Suggestion/match does not work as expected [#604](https://github.com/pnp/sp-dev-fx-controls-react/issues/604)
36+
<<<<<<< HEAD
2937

3038
### Contributors
3139

3240
Special thanks to our contributors (in alphabetical order): [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Piotr Siatka](https://github.com/siata13).
41+
=======
42+
- `TaxonomyPicker`: Include check for separator while filtering path of terms when anchorId is configured [#625](https://github.com/pnp/sp-dev-fx-controls-react/issues/625)
43+
- `FilePicker`: Bing API search issue [#633](https://github.com/pnp/sp-dev-fx-controls-react/pull/633)
44+
- `ListView`: Sort fires selection [#621](https://github.com/pnp/sp-dev-fx-controls-react/issues/621)
45+
46+
### Contributors
47+
48+
Special thanks to our contributors (in alphabetical order): [Devang Bhavsar](https://github.com/devangbhavsar89), [geltapatio](https://github.com/geltapatio), [Joel Jeffery](https://github.com/joeljeffery), [Victor Pollet](https://github.com/TheThor59), [Alexey Sadomov](https://github.com/sadomovalex), [Gautam Sheth](https://github.com/gautamdsheth), [Piotr Siatka](https://github.com/siata13).
49+
>>>>>>> dev
3350
3451
## 1.19.0
3552

116 KB
Loading
80.7 KB
Loading
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Accordion
2+
3+
This control allows you to render an accordion control.
4+
5+
Here is an example of the control in action:
6+
7+
![Accordion control](../assets/accordion.png)
8+
9+
## How to use this control in your solutions
10+
11+
- 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.
12+
- In your component file, import the `Accordion` control as follows:
13+
14+
```TypeScript
15+
import { Accordion } from "@pnp/spfx-controls-react/lib/Accordion";
16+
```
17+
18+
- Use the `Accordion` control in your code as follows:
19+
20+
```TypeScript
21+
{
22+
sampleItems.map((item, index) => (
23+
<Accordion title={item.Question} defaultCollapsed={true} className={"itemCell"} key={index}>
24+
<div className={"itemContent"}>
25+
<div className={"itemResponse"}>{item.Reponse}</div>
26+
<div className={"itemIndex"}>{`Langue : ${item.Langue.Nom}`}</div>
27+
</div>
28+
</Accordion>
29+
))
30+
}
31+
```
32+
33+
## Implementation
34+
35+
The `Accordion` control can be configured with the following properties:
36+
37+
| Property | Type | Required | Description | Default |
38+
| ---- | ---- | ---- | ---- | ---- |
39+
| title | string | yes | The title in the accordion to display. | |
40+
| defaultCollapsed | boolean | no | Is the accordion by default collapsed? | false |
41+
| className | string | no | Additional class name to add to your accordion. | |
42+
43+
44+
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/Accordion)

docs/documentation/docs/controls/FieldCollectionData.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ import { FieldCollectionData, CustomCollectionFieldType } from '@pnp/spfx-contro
3737
manageBtnLabel={"Manage"} onChanged={(value) => { console.log(value); }}
3838
panelHeader={"Manage values"}
3939

40+
executeFiltering={(searchFilter: string, item: any) => {
41+
return item["Field2"] === +searchFilter;
42+
}}
43+
itemsPerPage={3}
4044
fields={[
4145
{id: "Field1", title:"String field", type: CustomCollectionFieldType.string, required: true},
4246
{id: "Field2", title:"Number field", type: CustomCollectionFieldType.number},
@@ -99,6 +103,8 @@ The `FieldCollectionData` control can be configured with the following propertie
99103
| disableItemDeletion | boolean | no | Allows you to specify if users can delete already inserted items. | false |
100104
| panelClassName | string | no | Allows you to specify a custom CSS class name for the collection data panel. | |
101105
| tableClassName | string | no | Allows you to specify a custom CSS class name for the collection data table inside the panel. | |
106+
| itemsPerPage | number | no | Allows you to specify the amount of items displayed per page. Paging control is added automatically. | |
107+
| itemsPerPage | (searchFilter: string, item: any) => boolean | no | Allows you to show Search Box and specify own filtering logic. | |
102108

103109
Interface `ICustomCollectionField`
104110

docs/documentation/docs/controls/FolderPicker.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Here is an example of the control:
2525
- Import the control into your component:
2626

2727
```TypeScript
28-
import { FolderPicker, IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker";
28+
import FolderPicker from "@pnp/spfx-controls-react/lib/controls/folderPicker/FolderPicker";
29+
import { IFolder } from "@pnp/spfx-controls-react/lib/FolderPicker";
2930
```
3031

3132
- Use the `FolderPicker` control in your code as follows:

docs/documentation/docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ telemetry.optOut();
4949

5050
The following controls are currently available:
5151

52+
- [Accordion](./controls/Accordion) (Control to render an accordion)
5253
- [Carousel](./controls/Carousel) (Control displays children elements with 'previous/next element' options)
5354
- [Charts](./controls/ChartControl) (makes it easy to integrate [Chart.js](https://www.chartjs.org/) charts into web part)
5455
- [ComboBoxListItemPicker](./controls/ComboBoxListItemPicker) (allows to select one or more items from a list)

docs/documentation/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ site_name: '@pnp/spfx-controls-react'
22
nav:
33
- Home: 'index.md'
44
- Controls:
5+
- Accordion: 'controls/Accordion.md'
56
- Carousel: 'controls/Carousel.md'
67
- Charts:
78
- "ChartControl": 'controls/ChartControl.md'

0 commit comments

Comments
 (0)