Skip to content

Commit 87af8a7

Browse files
committed
Merge for 1.19.0 release
2 parents 62cd463 + 7ef51e0 commit 87af8a7

Some content is hidden

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

48 files changed

+5036
-3501
lines changed

CHANGELOG.JSON

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
{
22
"versions": [
3+
{
4+
"version": "1.19.0",
5+
"changes": {
6+
"new": [
7+
],
8+
"enhancements": [
9+
"`ListView`: Add clear button to filter text box [#549](https://github.com/pnp/sp-dev-fx-controls-react/issues/549)",
10+
"`FolderExplorer`: Add clear button to filter text box [#553](https://github.com/pnp/sp-dev-fx-controls-react/pull/553)",
11+
"`TreeView`: there should be possibility to collapse the first level nodes by default [#561](https://github.com/pnp/sp-dev-fx-controls-react/issues/561)",
12+
"`TreeView`: Expand to selected [#559](https://github.com/pnp/sp-dev-fx-controls-react/issues/559)",
13+
"`DateTimePicker`: When using the datetimePicker I would like to have an opportunity to set maximum/minimum date like in Office UI Fabric [#497](https://github.com/pnp/sp-dev-fx-controls-react/issues/497)",
14+
"`TaxonomyPicker`: Added the `selectTerm`, `hideTerm`, and `disableTerm` actions [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)",
15+
"`TaxonomyPicker`: Added the functionality to enable/disable term actions on the fly [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)",
16+
"`Carousel`: indicators, slide animation, auto cycling, easier basic usage [#587](https://github.com/pnp/sp-dev-fx-controls-react/pull/587)"
17+
],
18+
"fixes": [
19+
"`TaxonomyPicker`: Correct the AnchorID getting all TermSet search options [#150](https://github.com/pnp/sp-dev-fx-controls-react/issues/150)",
20+
"Documentation fix for `TreeView`: Some tables in TreeView documentation are displayed as plain text. [#562](https://github.com/pnp/sp-dev-fx-controls-react/pull/562)",
21+
"`ComboBoxListItemPicker`, `ListItemPicker`: Show error span if error is present [#557](https://github.com/pnp/sp-dev-fx-controls-react/pull/557)",
22+
"`TreeView`: `defaultExpanded: true` doesn't work [#560](https://github.com/pnp/sp-dev-fx-controls-react/issues/560)",
23+
"`IListPicker`: typo fix [#574](https://github.com/pnp/sp-dev-fx-controls-react/pull/574)",
24+
"`DateTimePicker`: DateTime Picker noon/midnight issue with 12 hour format [#576](https://github.com/pnp/sp-dev-fx-controls-react/issues/576)"
25+
]
26+
},
27+
"contributions": [
28+
"[Chad Eiserloh](https://github.com/c-eiser13)",
29+
"[Gautam Sheth](https://github.com/gautamdsheth)",
30+
"[Koen Zomers](https://github.com/KoenZomers)",
31+
"[Markus Langer](https://github.com/MarkusLanger)",
32+
"[Nanddeep Nachan](https://github.com/nanddeepn)",
33+
"[Prasad Kasireddy](https://github.com/PrasadKasireddy)",
34+
"[David Ramalho](https://github.com/DRamalho92)",
35+
"[Siddharth Vaghasia](https://github.com/siddharth-vaghasia)"
36+
]
37+
},
338
{
439
"version": "1.18.0",
540
"changes": {

CHANGELOG.md

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

3+
## 1.19.0
4+
5+
### Enhancements
6+
7+
- `ListView`: Add clear button to filter text box [#549](https://github.com/pnp/sp-dev-fx-controls-react/issues/549)
8+
- `FolderExplorer`: Add clear button to filter text box [#553](https://github.com/pnp/sp-dev-fx-controls-react/pull/553)
9+
- `TreeView`: there should be possibility to collapse the first level nodes by default [#561](https://github.com/pnp/sp-dev-fx-controls-react/issues/561)
10+
- `TreeView`: Expand to selected [#559](https://github.com/pnp/sp-dev-fx-controls-react/issues/559)
11+
- `DateTimePicker`: When using the datetimePicker I would like to have an opportunity to set maximum/minimum date like in Office UI Fabric [#497](https://github.com/pnp/sp-dev-fx-controls-react/issues/497)
12+
- `TaxonomyPicker`: Added the `selectTerm`, `hideTerm`, and `disableTerm` actions [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)
13+
- `TaxonomyPicker`: Added the functionality to enable/disable term actions on the fly [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)
14+
- `Carousel`: indicators, slide animation, auto cycling, easier basic usage [#587](https://github.com/pnp/sp-dev-fx-controls-react/pull/587)
15+
16+
### Fixes
17+
18+
- `TaxonomyPicker`: Correct the AnchorID getting all TermSet search options [#150](https://github.com/pnp/sp-dev-fx-controls-react/issues/150)
19+
- Documentation fix for `TreeView`: Some tables in TreeView documentation are displayed as plain text. [#562](https://github.com/pnp/sp-dev-fx-controls-react/pull/562)
20+
- `ComboBoxListItemPicker`, `ListItemPicker`: Show error span if error is present [#557](https://github.com/pnp/sp-dev-fx-controls-react/pull/557)
21+
- `TreeView`: `defaultExpanded: true` doesn't work [#560](https://github.com/pnp/sp-dev-fx-controls-react/issues/560)
22+
- `IListPicker`: typo fix [#574](https://github.com/pnp/sp-dev-fx-controls-react/pull/574)
23+
- `DateTimePicker`: DateTime Picker noon/midnight issue with 12 hour format [#576](https://github.com/pnp/sp-dev-fx-controls-react/issues/576)
24+
25+
### Contributors
26+
27+
Special thanks to our contributors (in alphabetical order): [Chad Eiserloh](https://github.com/c-eiser13), [Gautam Sheth](https://github.com/gautamdsheth), [Koen Zomers](https://github.com/KoenZomers), [Markus Langer](https://github.com/MarkusLanger), [Nanddeep Nachan](https://github.com/nanddeepn), [Prasad Kasireddy](https://github.com/PrasadKasireddy), [David Ramalho](https://github.com/DRamalho92), [Siddharth Vaghasia](https://github.com/siddharth-vaghasia).
28+
329
## 1.18.0
430

531
### New control(s)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Please use following logic on submitting your questions or issues to right locat
2020

2121
## Contributing
2222

23+
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).
24+
2325
This project welcomes contributions and suggestions. Most contributions require you to agree to a
2426
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
2527
the rights to use your contribution. For details, visit https://cla.microsoft.com.

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+
## 1.19.0
4+
5+
### Enhancements
6+
7+
- `ListView`: Add clear button to filter text box [#549](https://github.com/pnp/sp-dev-fx-controls-react/issues/549)
8+
- `FolderExplorer`: Add clear button to filter text box [#553](https://github.com/pnp/sp-dev-fx-controls-react/pull/553)
9+
- `TreeView`: there should be possibility to collapse the first level nodes by default [#561](https://github.com/pnp/sp-dev-fx-controls-react/issues/561)
10+
- `TreeView`: Expand to selected [#559](https://github.com/pnp/sp-dev-fx-controls-react/issues/559)
11+
- `DateTimePicker`: When using the datetimePicker I would like to have an opportunity to set maximum/minimum date like in Office UI Fabric [#497](https://github.com/pnp/sp-dev-fx-controls-react/issues/497)
12+
- `TaxonomyPicker`: Added the `selectTerm`, `hideTerm`, and `disableTerm` actions [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)
13+
- `TaxonomyPicker`: Added the functionality to enable/disable term actions on the fly [#578](https://github.com/pnp/sp-dev-fx-controls-react/issues/578)
14+
- `Carousel`: indicators, slide animation, auto cycling, easier basic usage [#587](https://github.com/pnp/sp-dev-fx-controls-react/pull/587)
15+
16+
### Fixes
17+
18+
- `TaxonomyPicker`: Correct the AnchorID getting all TermSet search options [#150](https://github.com/pnp/sp-dev-fx-controls-react/issues/150)
19+
- Documentation fix for `TreeView`: Some tables in TreeView documentation are displayed as plain text. [#562](https://github.com/pnp/sp-dev-fx-controls-react/pull/562)
20+
- `ComboBoxListItemPicker`, `ListItemPicker`: Show error span if error is present [#557](https://github.com/pnp/sp-dev-fx-controls-react/pull/557)
21+
- `TreeView`: `defaultExpanded: true` doesn't work [#560](https://github.com/pnp/sp-dev-fx-controls-react/issues/560)
22+
- `IListPicker`: typo fix [#574](https://github.com/pnp/sp-dev-fx-controls-react/pull/574)
23+
- `DateTimePicker`: DateTime Picker noon/midnight issue with 12 hour format [#576](https://github.com/pnp/sp-dev-fx-controls-react/issues/576)
24+
25+
### Contributors
26+
27+
Special thanks to our contributors (in alphabetical order): [Chad Eiserloh](https://github.com/c-eiser13), [Gautam Sheth](https://github.com/gautamdsheth), [Koen Zomers](https://github.com/KoenZomers), [Markus Langer](https://github.com/MarkusLanger), [Nanddeep Nachan](https://github.com/nanddeepn), [Prasad Kasireddy](https://github.com/PrasadKasireddy), [David Ramalho](https://github.com/DRamalho92), [Siddharth Vaghasia](https://github.com/siddharth-vaghasia).
28+
329
## 1.18.0
430

531
### New control(s)
1.33 MB
Loading

docs/documentation/docs/controls/Carousel.md

Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Carousel control
22

3-
This control renders passed elements with 'previous/next element' option.
3+
A slideshow component for cycling through elements—images or slides of text—like a carousel.
44

55
Here is an example of the control in action:
66

@@ -17,6 +17,8 @@ import { Carousel } from "@pnp/spfx-controls-react/lib/Carousel";
1717

1818
- Use the `Carousel` control in your code as follows:
1919

20+
Carousel component with provided `JSX.Element[]` slides
21+
2022
```TypeScript
2123
<Carousel
2224
buttonsLocation={CarouselButtonsLocation.top}
@@ -31,7 +33,11 @@ import { Carousel } from "@pnp/spfx-controls-react/lib/Carousel";
3133
onMoveNextClicked={(index: number) => { console.log(`Next button clicked: ${index}`); }}
3234
onMovePrevClicked={(index: number) => { console.log(`Prev button clicked: ${index}`); }}
3335
/>
36+
```
37+
38+
Carousel component with provided `triggerPageEvent`
3439

40+
```TypeScript
3541
<Carousel
3642
buttonsLocation={CarouselButtonsLocation.bottom}
3743
buttonsDisplay={CarouselButtonsDisplay.buttonsOnly}
@@ -46,6 +52,48 @@ import { Carousel } from "@pnp/spfx-controls-react/lib/Carousel";
4652
/>
4753
```
4854

55+
Carousel component with provided `ICarouselImageProps[]` slides:
56+
57+
```TypeSCript
58+
<Carousel
59+
buttonsLocation={CarouselButtonsLocation.center}
60+
buttonsDisplay={CarouselButtonsDisplay.buttonsOnly}
61+
contentContainerStyles={styles.carouselImageContent}
62+
isInfinite={true}
63+
indicatorShape={CarouselIndicatorShape.circle}
64+
pauseOnHover={true}
65+
66+
element={[
67+
{
68+
imageSrc: 'https://images.unsplash.com/photo-1588614959060-4d144f28b207?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3078&q=80',
69+
title: 'Colosseum',
70+
description: 'This is Colosseum',
71+
url: 'https://en.wikipedia.org/wiki/Colosseum',
72+
showDetailsOnHover: true,
73+
imageFit: ImageFit.cover
74+
},
75+
{
76+
imageSrc: 'https://images.unsplash.com/photo-1588614959060-4d144f28b207?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3078&q=80',
77+
title: 'Colosseum',
78+
description: 'This is Colosseum',
79+
url: 'https://en.wikipedia.org/wiki/Colosseum',
80+
showDetailsOnHover: true,
81+
imageFit: ImageFit.cover
82+
},
83+
{
84+
imageSrc: 'https://images.unsplash.com/photo-1588614959060-4d144f28b207?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3078&q=80',
85+
title: 'Colosseum',
86+
description: 'This is Colosseum',
87+
url: 'https://en.wikipedia.org/wiki/Colosseum',
88+
showDetailsOnHover: true,
89+
imageFit: ImageFit.cover
90+
}
91+
]}
92+
onMoveNextClicked={(index: number) => { console.log(`Next button clicked: ${index}`); }}
93+
onMovePrevClicked={(index: number) => { console.log(`Prev button clicked: ${index}`); }}
94+
/>
95+
```
96+
4997
## Implementation
5098

5199
The Carousel component can be configured with the following properties:
@@ -71,6 +119,16 @@ The Carousel component can be configured with the following properties:
71119
| loadingComponent | JSX.Element | no | Allows to inject custom component when the carousel is in processing state. If not provided, Spinner is displayed. |
72120
| onMoveNextClicked | (currentIndex: number) => void | no | Callback function called after the next item button is clicked. Not used when triggerPageEvent is specified. |
73121
| onMovePrevClicked | (currentIndex: number) => void | no | Callback function called after the previous item button is clicked. Not used when triggerPageEvent is specified. |
122+
| elementsCount | number | no | In case triggerPageEvent is in use, provides total number of slides in the carousel. |
123+
| onSelect | (selectedIndex: number) => void | no | Callback function called when element has been selected in the carousel |
124+
| slide | boolean | no | Enables animation on the Carousel as it transitions between slides. This property is ignored if triggerPageEvent is in use. |
125+
| interval | number \| null | no | The amount of time to delay between automatically cycling an item. If null, carousel will not automatically cycle. |
126+
| pauseOnHover | boolean | no | Specifies if slides cycling should pause when hovering over the content (touchStart on touch devices). |
127+
| indicators | boolean | no | Specifies if set of slide position indicators is shown. |
128+
| indicatorShape | CarouselIndicatorShape | no | Specifies indicators' shape. If onRenderIndicator is provided - this property is ignored |
129+
| indicatorClassName | string | no | Specifies additional class applied to slide position indicators |
130+
| indicatorStyle | React.CSSProperties | no | Specifies additional styles applied to slide position indicators |
131+
| onRenderIndicator | (index: number, onClick: (e: React.MouseEvent&lt;HTMLElement&gt; | React.TouchEvent&lt;HTMLElement&gt;, selectedIndex: number) => void) => JSX.Element | no | Function to render indicator element |
74132

75133
enum `CarouselButtonsLocation`
76134

@@ -92,4 +150,37 @@ Provides options for carousel buttons display mode.
92150
| buttonsOnly | Only icon buttons are displayed. |
93151
| hidden | Buttons are not displayed. They appear onhover event. |
94152

153+
enum `CarouselIndicatorShape`
154+
155+
Provides options for carousel indicators' shape.
156+
157+
| Value | Description |
158+
| ---- | ---- |
159+
| circle | Indicators displayed as cirlces |
160+
| square | Indicators displayed as squares |
161+
| rectangle | Indicators displayed as rectangles |
162+
163+
Interface `ICarouselImageProps`
164+
165+
Allows to easily render a set of `CarouselImage` components in the carousel
166+
| Property | Type | Required | Description |
167+
| ---- | ---- | ---- | ---- |
168+
| imageSrc | string | yes | Image source |
169+
| imageFit | ImageFit | no | Specifies the method to be used to fit image. Default: `ImageFit.none`. See [Fluent UI Image](https://developer.microsoft.com/en-us/fluentui#/controls/web/image#implementation) |
170+
| url | string | no | URL to be opened when clicking on details |
171+
| title | string | no | Title to display in details |
172+
| description | string \| JSX.Element | no | Description to show in details. Can be either a string (text) or JSX.Element to show HTML. |
173+
| target | "_blank" \| "_self" | no | Target of the URL to open. Default `"_blank"` |
174+
| showDetailsOnHover | boolean | no | Specifies if the details are shown on hover or constantly |
175+
| className | string | no | Class to apply to the component |
176+
| style | React.CSSProperties | no | Styles to apply to the component |
177+
| imgClassName | string | no | Class to apply to the image control |
178+
| imgStyle | React.CSSProperties | no | Styles to apply to the image control |
179+
| detailsClassName | string | no | Class to apply to the details control |
180+
| detailsStyle | React.CSSProperties | no | Styles to apply to the details control |
181+
| titleClassName | string | no | Class to apply to the title control |
182+
| titleStyle | React.CSSProperties | no | Styles to apply to the title control |
183+
| descriptionClassName | string | no | Class to apply to the description control |
184+
| descriptionStyle | React.CSSProperties | no | Styles to apply to the description control |
185+
95186
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/Carousel)

docs/documentation/docs/controls/DateTimePicker.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ The `DateTimePicker` control can be configured with the following properties:
6969
| timeDisplayControlType | TimeDisplayControlType | no | Specifies what type of control to use when rendering time part. |
7070
| showLabels | boolean | no | Specifies if labels in front of date and time parts should be rendered. |
7171
| placeholder | string | no | Placeholder text for the DatePicker. |
72+
| maxDate | Date | no | The maximum allowable date. |
73+
| minDate | Date | no | The minimum allowable date. |
7274

7375
Enum `TimeDisplayControlType`
7476

0 commit comments

Comments
 (0)