Skip to content

Commit aa321c4

Browse files
Merge branch 'dev' into user/keco/functional-async-dispose
2 parents b6a716a + dda1929 commit aa321c4

115 files changed

Lines changed: 3849 additions & 2540 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: New Issue
3+
about: React Controls Issue template
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
11+
needs please complete the below template to ensure we have the details to help. Thanks!
12+
13+
**Please check out the [documentation](https://pnp.github.io/sp-dev-fx-controls-react/) to see if your question is already addressed there. This will help us ensure our documentation is up to date.**
14+
15+
#### Category
16+
[ ] Enhancement
17+
18+
[ ] Bug
19+
20+
[ ] Question
21+
22+
#### Version
23+
24+
Please specify what version of the library you are using: [ ]
25+
26+
_If you are not using the latest release, please update and see if the issue is resolved before submitting an issue._
27+
28+
#### Expected / Desired Behavior / Question
29+
_If you are reporting an issue please describe the expected behavior. If you are suggesting an enhancement please
30+
describe thoroughly the enhancement, how it can be achieved, and expected benefit. If you are asking a question, ask away!_
31+
32+
#### Observed Behavior
33+
_If you are reporting an issue please describe the behavior you expected to occur when performing the action. If you are making a
34+
suggestion or asking a question delete this section._
35+
36+
#### Steps to Reproduce
37+
_If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making
38+
a suggestion or asking a question delete this section._
39+
40+
#### Submission Guidelines
41+
_Delete this section after reading_
42+
- All suggestions, questions and issues are welcome, please let us know what's on your mind.
43+
- Remember to include sufficient details and context.
44+
- If you have multiple suggestions, questions, or bugs please submit them in separate issues so we can track resolution.
45+
46+
Thanks!

.nvmrc

14 Bytes
Binary file not shown.

CHANGELOG.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
{
22
"versions": [
3+
{
4+
"version": "3.21.0",
5+
"changes": {
6+
"new": [
7+
"`ShareDialog`: new control ShareDialog [#1897](https://github.com/pnp/sp-dev-fx-controls-react/pull/1897)",
8+
"Add cs-cz.ts [#1932](https://github.com/pnp/sp-dev-fx-controls-react/pull/1932)"
9+
10+
],
11+
"enhancements": [],
12+
"fixes": [
13+
"`ListItemComments`: Can't select text from comment [#1874](https://github.com/pnp/sp-dev-fx-controls-react/issues/1874)",
14+
"`Localization`: Bad translations in DateTimePicker control [#1909](https://github.com/pnp/sp-dev-fx-controls-react/issues/1909)",
15+
"`WebPartTitle`: Control Fails to Update After Initial Save [#1877](https://github.com/pnp/sp-dev-fx-controls-react/issues/1877)",
16+
"`DynamicForm`: Creating a document set sometimes throws a 409 save [#1919](https://github.com/pnp/sp-dev-fx-controls-react/issues/1919)",
17+
"`ModernTaxonomyPicker` Fix - Adding a new term adds the term to the parentLevel [#1922](https://github.com/pnp/sp-dev-fx-controls-react/pull/1922)",
18+
"`ModernTaxonomyPicker` allowMultipleSelections = false, but panel allows multiple items to be selected [#1847](https://github.com/pnp/sp-dev-fx-controls-react/issues/1847)",
19+
"`UserPicker` fix exports and add missing link to documentation [#1925](https://github.com/pnp/sp-dev-fx-controls-react/issues/1925)",
20+
"Optimizing ControlsTest webpart in the SPFx source project [#1951](https://github.com/pnp/sp-dev-fx-controls-react/pull/1951)"
21+
]
22+
},
23+
"contributions": [
24+
"[Adam Wójcik](https://github.com/Adam-it)",
25+
"[Alessandro Chiavarino](https://github.com/Alesso-Chiavarino)",
26+
"[Antanina Druzhkina](https://github.com/Ateina)",
27+
"[EnablingLogic](https://github.com/EnablingLogic)",
28+
"[João Mendes](https://github.com/joaojmendes)",
29+
"[Martin Lingstuyl](https://github.com/martinlingstuyl)",
30+
"[Michaël Maillot](https://github.com/michaelmaillot)",
31+
"[Nello D'Andrea](https://github.com/ferrarirosso)",
32+
"[Nishkalank Bezawada](https://github.com/NishkalankBezawada)",
33+
"[Petr Malášek](https://github.com/MalasekPetr)"
34+
]
35+
},
336
{
437
"version": "3.20.0",
538
"changes": {

CHANGELOG.md

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

3+
## 3.21.0
4+
5+
### New control(s)
6+
7+
- `ShareDialog`: new control ShareDialog [#1897](https://github.com/pnp/sp-dev-fx-controls-react/pull/1897)
8+
- Add cs-cz.ts [#1932](https://github.com/pnp/sp-dev-fx-controls-react/pull/1932)
9+
10+
### Fixes
11+
12+
- `ListItemComments`: Can't select text from comment [#1874](https://github.com/pnp/sp-dev-fx-controls-react/issues/1874)
13+
- `Localization`: Bad translations in DateTimePicker control [#1909](https://github.com/pnp/sp-dev-fx-controls-react/issues/1909)
14+
- `WebPartTitle`: Control Fails to Update After Initial Save [#1877](https://github.com/pnp/sp-dev-fx-controls-react/issues/1877)
15+
- `DynamicForm`: Creating a document set sometimes throws a 409 save [#1919](https://github.com/pnp/sp-dev-fx-controls-react/issues/1919)
16+
- `ModernTaxonomyPicker` Fix - Adding a new term adds the term to the parentLevel [#1922](https://github.com/pnp/sp-dev-fx-controls-react/pull/1922)
17+
- `ModernTaxonomyPicker` allowMultipleSelections = false, but panel allows multiple items to be selected [#1847](https://github.com/pnp/sp-dev-fx-controls-react/issues/1847)
18+
- `UserPicker` fix exports and add missing link to documentation [#1925](https://github.com/pnp/sp-dev-fx-controls-react/issues/1925)
19+
- Optimizing ControlsTest webpart in the SPFx source project [#1951](https://github.com/pnp/sp-dev-fx-controls-react/pull/1951)
20+
21+
### Contributors
22+
23+
Special thanks to our contributors (in alphabetical order): [Adam Wójcik](https://github.com/Adam-it), [Alessandro Chiavarino](https://github.com/Alesso-Chiavarino), [Antanina Druzhkina](https://github.com/Ateina), [EnablingLogic](https://github.com/EnablingLogic), [João Mendes](https://github.com/joaojmendes), [Martin Lingstuyl](https://github.com/martinlingstuyl), [Michaël Maillot](https://github.com/michaelmaillot), [Nello D'Andrea](https://github.com/ferrarirosso), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Petr Malášek](https://github.com/MalasekPetr).
24+
325
## 3.20.0
426

527
### Enhancements

docs/documentation/docs/about/license.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
License
1+
# License
22

33
MIT License
44

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

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

3+
## 3.21.0
4+
5+
### New control(s)
6+
7+
- `ShareDialog`: new control ShareDialog [#1897](https://github.com/pnp/sp-dev-fx-controls-react/pull/1897)
8+
- Add cs-cz.ts [#1932](https://github.com/pnp/sp-dev-fx-controls-react/pull/1932)
9+
10+
### Fixes
11+
12+
- `ListItemComments`: Can't select text from comment [#1874](https://github.com/pnp/sp-dev-fx-controls-react/issues/1874)
13+
- `Localization`: Bad translations in DateTimePicker control [#1909](https://github.com/pnp/sp-dev-fx-controls-react/issues/1909)
14+
- `WebPartTitle`: Control Fails to Update After Initial Save [#1877](https://github.com/pnp/sp-dev-fx-controls-react/issues/1877)
15+
- `DynamicForm`: Creating a document set sometimes throws a 409 save [#1919](https://github.com/pnp/sp-dev-fx-controls-react/issues/1919)
16+
- `ModernTaxonomyPicker` Fix - Adding a new term adds the term to the parentLevel [#1922](https://github.com/pnp/sp-dev-fx-controls-react/pull/1922)
17+
- `ModernTaxonomyPicker` allowMultipleSelections = false, but panel allows multiple items to be selected [#1847](https://github.com/pnp/sp-dev-fx-controls-react/issues/1847)
18+
- `UserPicker` fix exports and add missing link to documentation [#1925](https://github.com/pnp/sp-dev-fx-controls-react/issues/1925)
19+
- Optimizing ControlsTest webpart in the SPFx source project [#1951](https://github.com/pnp/sp-dev-fx-controls-react/pull/1951)
20+
21+
### Contributors
22+
23+
Special thanks to our contributors (in alphabetical order): [Adam Wójcik](https://github.com/Adam-it), [Alessandro Chiavarino](https://github.com/Alesso-Chiavarino), [Antanina Druzhkina](https://github.com/Ateina), [EnablingLogic](https://github.com/EnablingLogic), [João Mendes](https://github.com/joaojmendes), [Martin Lingstuyl](https://github.com/martinlingstuyl), [Michaël Maillot](https://github.com/michaelmaillot), [Nello D'Andrea](https://github.com/ferrarirosso), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Petr Malášek](https://github.com/MalasekPetr).
24+
325
## 3.20.0
426

527
### Enhancements
1.94 MB
Loading

docs/documentation/docs/beta.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Testing out a beta release ![](https://img.shields.io/npm/v/@pnp/spfx-controls-react/next.svg)
1+
# Testing out a beta release
2+
3+
![](https://img.shields.io/npm/v/@pnp/spfx-controls-react/next.svg)
24

35
All you need to do for testing out a beta release of `@pnp/spfx-controls-react` is to install the dependency as follows:
46

5-
```
7+
```bash
68
npm install @pnp/spfx-controls-react@next --save
79
```
810

docs/documentation/docs/controls/AccessibleAccordion.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,16 @@ import {
6363
6464
The `Accordion` control can be configured with the following properties:
6565
66-
6766
### Accordion
6867
6968
| Property | Type | Required | Description | Default |
7069
| ---- | ---- | ---- | ---- | ---- |
71-
| allowMultipleExpanded | boolean | no | Don't autocollapse items when expanding other items. | `false` |
70+
| allowMultipleExpanded | boolean | no | Don't auto-collapse items when expanding other items. | `false` |
7271
| allowZeroExpanded | boolean | no | Allow the only remaining expanded item to be collapsed. | `false` |
7372
| preExpanded | string[] | no | Accepts an array of strings and any `AccordionItem` whose `uuid` prop matches any one of these strings will be expanded on mount. | `[]` |
7473
| className | string | no | Class(es) to apply to element. | "accordion" |
7574
| onChange | (string[]) => void | no | Callback which is invoked when items are expanded or collapsed. Gets passed `uuid`s of the currently expanded `AccordionItem`s. | |
76-
| theme | IPartialTheme \| ITheme | no | Set Fluent UI Theme. If not set or set to null or not defined, the theme passed through context will be used, or the default theme of the page will be loaded. |
77-
78-
75+
| theme | IPartialTheme \| ITheme | no | Set Fluent UI Theme. If not set or set to null or not defined, the theme passed through context will be used, or the default theme of the page will be loaded. | |
7976
8077
### AccordionItem
8178
@@ -85,7 +82,6 @@ The `Accordion` control can be configured with the following properties:
8582
| uuid | string \| number | no | Recommended for use with `onChange`. Will be auto-generated if not provided. | |
8683
| dangerouslySetExpanded | boolean | no | Enables external control of the expansion. **Warning: This may impact accessibility negatively, use at your own risk** | |
8784
88-
8985
### AccordionItemHeading
9086
9187
| Property | Type | Required | Description | Default |
@@ -95,24 +91,21 @@ The `Accordion` control can be configured with the following properties:
9591
9692
### AccordionItemButton
9793
98-
| Property | Type | Required | Description | Default |
99-
| ---- | ---- | ---- | ---- | ---- |
100-
| className | string | no | Class(es) to apply to the 'button' element. | "accordion__button" |
101-
94+
| Property | Type | Required | Description | Default |
95+
| --------- | ------ | -------- | ------------------------------------------- | ------------------- |
96+
| className | string | no | Class(es) to apply to the 'button' element. | "accordion__button" |
10297
10398
### AccordionItemPanel
10499
105-
| Property | Type | Required | Description | Default |
106-
| ---- | ---- | ---- | ---- | ---- |
107-
| className | string | no | Class(es) to apply to element. | "accordion__panel" |
108-
100+
| Property | Type | Required | Description | Default |
101+
| --------- | ------ | -------- | ------------------------------ | ------------------ |
102+
| className | string | no | Class(es) to apply to element. | "accordion__panel" |
109103
110104
### AccordionItemState
111105
112-
| Property | Type | Required | Description | Default |
113-
| ---- | ---- | ---- | ---- | ---- |
114-
| children | ({ expanded: boolean, disabled: booleam }): JSX.Element | yes | item's children. | |
115-
106+
| Property | Type | Required | Description | Default |
107+
| -------- | ------------------------------------------------------- | -------- | ---------------- | ------- |
108+
| children | ({ expanded: boolean, disabled: boolean }): JSX.Element | yes | item's children. | |
116109
117110
## Helpers
118111
@@ -125,5 +118,4 @@ resetNextUuid : () => void
125118
Resets the internal counter for Accordion items' identifiers (including `id`
126119
attributes). For use in test suites and isomorphic frameworks.
127120
128-
129121
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/AccessibleAccordion)

0 commit comments

Comments
 (0)