Skip to content

v3.20.0 #1912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 81 commits into from
Nov 28, 2024
Merged

v3.20.0 #1912

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
d42997f
commit
joaojmendes Oct 7, 2023
81e7a11
commit changes on UserPicker
joaojmendes Oct 8, 2023
05d4e89
commit chnages on new control userPicker
joaojmendes Oct 8, 2023
abd19d1
Fixing #1733 for non-standard cases
IRRDC Jan 24, 2024
7f77c2b
Merge branch 'pnp:dev' into dev
IRRDC Feb 1, 2024
a089158
Merge branch 'pnp:dev' into dev
IRRDC Feb 7, 2024
45050da
Bugfix for issue #1758
IRRDC Feb 8, 2024
fcb9c84
commit chnages on userPicker
joaojmendes May 19, 2024
da0690a
Merge branch 'dev' into userPicker
joaojmendes May 19, 2024
c84e2e7
commit changes new imagePicker
joaojmendes May 26, 2024
853bf9f
commit changes update docs of ImagePicker
joaojmendes May 26, 2024
0d528cc
Merge branch 'pnp:dev' into dev
IRRDC May 27, 2024
3e3d0b5
Merge branch 'pnp:dev' into dev
IRRDC Jun 7, 2024
b01588e
Bugfix for issue #838
IRRDC Jul 11, 2024
eb26221
Removed code from other branch
IRRDC Jul 11, 2024
c129367
3.20.0
AJIXuMuK Aug 14, 2024
033f586
version bump
AJIXuMuK Aug 14, 2024
ca254ad
pre-commit
AJIXuMuK Aug 14, 2024
152cafe
Added new WidgetSize (#1845)
GuidoZam Aug 16, 2024
759d11b
IWidgetLink improvements (#1813)
GuidoZam Aug 16, 2024
34d9c48
DynamicForm - Custom sorting (#1802)
srpmtt Aug 16, 2024
fb43d69
Updating changelog following PR #1802, #1813 & #1845 merged
michaelmaillot Aug 16, 2024
6515ebd
Removing moment & @popperjs libraries
michaelmaillot Aug 16, 2024
1bd4601
Adding missing return type for SitePicker component function
michaelmaillot Aug 16, 2024
4df9deb
Merge branch 'pnp:master' into dev_838
IRRDC Aug 20, 2024
e1ee098
Fix 1862
NishkalankBezawada Aug 21, 2024
7f63687
DynamicForm storeLastActiveTab option
IRRDC Sep 3, 2024
cd9d3b8
Removing locale references for SPFx test components, to allow local r…
michaelmaillot Sep 23, 2024
77faa23
Fix #1876 - lock down adaptive-expressions version (#1881)
wilecoyotegenius Sep 23, 2024
79b4e4b
Fix #1876 - lock down adaptive-expressions version (#1881)
wilecoyotegenius Sep 23, 2024
142f17e
Merge branch 'dev' of https://github.com/pnp/sp-dev-fx-controls-react…
michaelmaillot Sep 23, 2024
4125609
#1870 fix
wilecoyotegenius Oct 1, 2024
4009789
commitc hanges
joaojmendes Oct 16, 2024
3425068
commitc hanges
joaojmendes Oct 16, 2024
2d3a51d
update testControl
joaojmendes Oct 16, 2024
bcee32b
commit changes
joaojmendes Oct 16, 2024
fd35e55
commit chnages update controlsTest
joaojmendes Oct 16, 2024
61888ba
Merge branch 'dev' into imagePicker
joaojmendes Oct 16, 2024
db84f97
dev
joaojmendes Oct 16, 2024
3380176
update zh-cn.ts file
Oct 18, 2024
ac14490
update zh-tw.ts
Oct 18, 2024
c1a3c05
commit chnages no imagePicker
joaojmendes Oct 18, 2024
443fac4
Merge pull request #1820 from pnp/imagePicker
joaojmendes Oct 18, 2024
6bfca24
commit CHnages update Log
joaojmendes Oct 18, 2024
a9c6c37
cmmit chnages Log
joaojmendes Oct 18, 2024
81bd5d8
Merge branch 'master' into userPicker
joaojmendes Oct 18, 2024
12383b5
Merge branch 'userPicker' into dev
joaojmendes Oct 18, 2024
19e1545
Merge pull request #1675 from pnp/userPicker
joaojmendes Oct 18, 2024
35e3d0b
update chnage Log
joaojmendes Oct 18, 2024
b391e0b
Update Change Log
joaojmendes Oct 18, 2024
680466a
Merge branch 'dev' of https://github.com/pnp/sp-dev-fx-controls-react…
joaojmendes Oct 18, 2024
c242f31
commit chnages
joaojmendes Oct 18, 2024
a7342a8
Merge pull request #1894 from wuxiaojun514/1858
joaojmendes Oct 18, 2024
9f24cdb
commit chnages
joaojmendes Oct 18, 2024
a443fcd
commiotc hanges log
joaojmendes Oct 18, 2024
ee147ae
Merge pull request #1887 from wilecoyotegenius/fix-1870
joaojmendes Oct 18, 2024
b186958
commit changes Log
joaojmendes Oct 18, 2024
2a416b3
commit changes Log
joaojmendes Oct 18, 2024
dfcf10f
Merge pull request #1879 from IRRDC/dynamicformstorelastactivetab
joaojmendes Oct 18, 2024
9cb3b57
commit changes on Log
joaojmendes Oct 18, 2024
cde9d71
commit changes on Log
joaojmendes Oct 18, 2024
dd9a259
Merge pull request #1872 from NishkalankBezawada/Issue-1862---Hide-fi…
joaojmendes Oct 18, 2024
ecf1036
commit changes on Log
joaojmendes Oct 18, 2024
4054e99
commit changes on Log
joaojmendes Oct 18, 2024
ad766de
Merge pull request #1851 from IRRDC/dev_838
joaojmendes Oct 18, 2024
559cc85
commit changes
joaojmendes Oct 18, 2024
4eecc00
commit change Log
joaojmendes Oct 18, 2024
484ff24
Fix for #1775 and #1760 (#1781)
wuxiaojun514 Nov 12, 2024
6e948c1
update changelog
joelfmrodrigues Nov 12, 2024
2bd431c
update release notes
joelfmrodrigues Nov 12, 2024
dc9083b
updates to remove warnings
AJIXuMuK Nov 17, 2024
9ad640d
Merge pull request #1907 from pnp/spfx-1-20
AJIXuMuK Nov 17, 2024
2fa480c
Fix #1367: Image picker enhancements (#1805)
Ateina Nov 26, 2024
6abff12
update changelog following PR #1805
michaelmaillot Nov 26, 2024
f0b33a4
Renders file/folder name field. Closes #1683 (#1906)
martinlingstuyl Nov 27, 2024
79c38b1
update changelog following PR #1906
michaelmaillot Nov 27, 2024
d16f4bb
Adds ability to create files/folders in subfolder using DynamicForm. …
martinlingstuyl Nov 13, 2024
edc1fc6
Merge pull request #1903 from martinlingstuyl/dynamicform-subfolders
joelfmrodrigues Nov 27, 2024
f40a606
update changelog
joelfmrodrigues Nov 27, 2024
676f50e
update release notes
joelfmrodrigues Nov 27, 2024
aff9a52
bump spfx-fast-serve-helpers to match SPFx version of the repo
michaelmaillot Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 2 additions & 35 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,6 @@ module.exports = {
'@rushstack/security/no-unsafe-regexp': 0,
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
'@typescript-eslint/adjacent-overload-signatures': 1,
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
//
// CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol
'@typescript-eslint/ban-types': [
1,
{
'extendDefaults': false,
'types': {
'String': {
'message': 'Use \'string\' instead',
'fixWith': 'string'
},
'Boolean': {
'message': 'Use \'boolean\' instead',
'fixWith': 'boolean'
},
'Number': {
'message': 'Use \'number\' instead',
'fixWith': 'number'
},
'Object': {
'message': 'Use \'object\' instead, or else define a proper TypeScript type:'
},
'Symbol': {
'message': 'Use \'symbol\' instead',
'fixWith': 'symbol'
},
'Function': {
'message': 'The \'Function\' type accepts any function-like value.\nIt provides no type safety when calling the function, which can be a common source of bugs.\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \'new\'.\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
}
}
}
],
// RATIONALE: Code is more readable when the type of every variable is immediately obvious.
// Even if the compiler may be able to infer a type, this inference will be unavailable
// to a person who is reviewing a GitHub diff. This rule makes writing code harder,
Expand Down Expand Up @@ -125,7 +92,7 @@ module.exports = {
//
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
// Set to 1 (warning) or 2 (error) to enable the rule
'@typescript-eslint/no-parameter-properties': 0,
'@typescript-eslint/parameter-properties': 0,
// RATIONALE: When left in shipping code, unused variables often indicate a mistake. Dead code
// may impact performance.
//
Expand Down Expand Up @@ -358,4 +325,4 @@ module.exports = {
}
}
]
};
};
15 changes: 15 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"development"
],
"hints": {
"axe/aria": "off",
"no-inline-styles": "off",
"axe/text-alternatives": [
"default",
{
"frame-title": "off"
}
]
}
}
4 changes: 2 additions & 2 deletions .yo-rc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@microsoft/generator-sharepoint": {
"version": "1.19.0",
"version": "1.20.0",
"libraryName": "sp-dev-fx-controls-react",
"libraryId": "92b1e52c-a5fa-490a-bcf4-76080f39442c",
"environment": "spo",
Expand All @@ -11,7 +11,7 @@
"nodeVersion": "18.17.1",
"sdksVersions": {
"@microsoft/microsoft-graph-client": "3.0.2",
"@microsoft/teams-js": "2.12.0"
"@microsoft/teams-js": "2.24.0"
},
"componentType": "extension",
"extensionType": "ApplicationCustomizer"
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
{
"versions": [
{
"version": "3.20.0",
"changes": {
"new": [],
"enhancements": [
"`Dashboard`: added new WidgetSize [#1845](https://github.com/pnp/sp-dev-fx-controls-react/pull/1845)",
"`Dashboard`: IWidgetLink improvements [#1813](https://github.com/pnp/sp-dev-fx-controls-react/pull/1813)",
"`DynamicForm`: custom sorting [#1802](https://github.com/pnp/sp-dev-fx-controls-react/pull/1802)",
"`ImagePicker`: new Control ImagePicker [#1820](https://github.com/pnp/sp-dev-fx-controls-react/pull/1820)",
"`UserPicker`: new Control UserPicker [#1675](https://github.com/pnp/sp-dev-fx-controls-react/pull/1675)",
"`DynamicForm`: DynamicForm storeLastActiveTab option #1879 [#1879](https://github.com/pnp/sp-dev-fx-controls-react/pull/1879)",
"`FilePicker`: Image picker enhancements [#1805](https://github.com/pnp/sp-dev-fx-controls-react/pull/1805)",
"`DynamicForm`: Adds ability to create files/folders in subfolder using DynamicForm. [#1901](https://github.com/pnp/sp-dev-fx-controls-react/issues/1901)"
],
"fixes": [
"Debug Controls in any language [#1882](https://github.com/pnp/sp-dev-fx-controls-react/pull/1882)",
"`AdaptiveCardHost`: lock down adaptive-expression package version [#1876](https://github.com/pnp/sp-dev-fx-controls-react/issues/1876)",
"`ListItemPicker`: PR fixes an issue with filtering when using calculated column as columnInternalName in ListItemPicker. [#1887](https://github.com/pnp/sp-dev-fx-controls-react/pull/1887)",
"`ListItemAttachments`: Fix 1858 to correct Chinese localization files #1894 [#1894](https://github.com/pnp/sp-dev-fx-controls-react/pull/1894)",
"`DynamicForm`: Fixing issue 1862 - Dynamic form should hide fields that are hidden on the List Content Type [#1872](https://github.com/pnp/sp-dev-fx-controls-react/pull/1872)",
"`GridLayout`: A quick fix for #838. When compact mode the number of items rendered per page must match the number of all items. [1851](https://github.com/pnp/sp-dev-fx-controls-react/pull/1851)",
"`DynamicForm`: Always Show Required Field Validation Error In FormDisplayMode.Edit Mode [#1775](https://github.com/pnp/sp-dev-fx-controls-react/issues/1775)",
"`DynamicForm`: Required Field Validation won't work [#1760](https://github.com/pnp/sp-dev-fx-controls-react/issues/1760)",
"`DynamicForm`: Adds ability to render file/folder name field in DynamicForm and Field. [#1906](https://github.com/pnp/sp-dev-fx-controls-react/pull/1906)"
]
},
"contributions": [
"[Alex Terentiev](https://github.com/AJIXuMuK)",
"[Antanina Druzhkina](https://github.com/Ateina)",
"[Guido Zambarda](https://github.com/GuidoZam)",
"[IRRDC](https://github.com/IRRDC)",
"[joaojmendes](https://github.com/joaojmendes)",
"[Martin Lingstuyl](https://github.com/martinlingstuyl)",
"[Michaël Maillot](https://github.com/michaelmaillot)",
"[Nishkalank Bezawada](https://github.com/NishkalankBezawada)",
"[srpmtt](https://github.com/srpmtt)",
"[wilecoyotegenius](https://github.com/wilecoyotegenius)",
"[wuxiaojun514](https://github.com/wuxiaojun514)"
]
},
{
"version": "3.19.0",
"changes": {
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Releases

## 3.20.0

### Enhancements

- `Dashboard`: added new WidgetSize [#1845](https://github.com/pnp/sp-dev-fx-controls-react/pull/1845)
- `Dashboard`: IWidgetLink improvements [#1813](https://github.com/pnp/sp-dev-fx-controls-react/pull/1813)
- `DynamicForm`: custom sorting [#1802](https://github.com/pnp/sp-dev-fx-controls-react/pull/1802)
- `ImagePicker`: new Control ImagePicker [#1820](https://github.com/pnp/sp-dev-fx-controls-react/pull/1820)
- `UserPicker`: new Control UserPicker [#1675](https://github.com/pnp/sp-dev-fx-controls-react/pull/1675)
- `DynamicForm`: DynamicForm storeLastActiveTab option #1879 [#1879](https://github.com/pnp/sp-dev-fx-controls-react/pull/1879)
- `FilePicker`: Image picker enhancements [#1805](https://github.com/pnp/sp-dev-fx-controls-react/pull/1805)
- `DynamicForm`: Adds ability to create files/folders in subfolder using DynamicForm. [#1901](https://github.com/pnp/sp-dev-fx-controls-react/issues/1901)

### Fixes

- Debug Controls in any language [#1882](https://github.com/pnp/sp-dev-fx-controls-react/pull/1882)
- `AdaptiveCardHost`: lock down adaptive-expression package version [#1876](https://github.com/pnp/sp-dev-fx-controls-react/issues/1876)
- `ListItemPicker`: PR fixes an issue with filtering when using calculated column as columnInternalName in ListItemPicker. [#1887](https://github.com/pnp/sp-dev-fx-controls-react/pull/1887)
- `ListItemAttachments`: Fix 1858 to correct Chinese localization files #1894 [#1894](https://github.com/pnp/sp-dev-fx-controls-react/pull/1894)
- `DynamicForm`: Fixing issue 1862 - Dynamic form should hide fields that are hidden on the List Content Type [#1872](https://github.com/pnp/sp-dev-fx-controls-react/pull/1872)
- `GridLayout`: A quick fix for #838. When compact mode the number of items rendered per page must match the number of all items. [1851](https://github.com/pnp/sp-dev-fx-controls-react/pull/1851)
- `DynamicForm`: Always Show Required Field Validation Error In FormDisplayMode.Edit Mode [#1775](https://github.com/pnp/sp-dev-fx-controls-react/issues/1775)
- `DynamicForm`: Required Field Validation won't work [#1760](https://github.com/pnp/sp-dev-fx-controls-react/issues/1760)
- `DynamicForm`: Adds ability to render file/folder name field in DynamicForm and Field. [#1906](https://github.com/pnp/sp-dev-fx-controls-react/pull/1906)

### Contributors

Special thanks to our contributors (in alphabetical order): [Alex Terentiev](https://github.com/AJIXuMuK), [Antanina Druzhkina](https://github.com/Ateina), [Guido Zambarda](https://github.com/GuidoZam), [IRRDC](https://github.com/IRRDC), [joaojmendes](https://github.com/joaojmendes), [Martin Lingstuyl](https://github.com/martinlingstuyl), [Michaël Maillot](https://github.com/michaelmaillot), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [srpmtt](https://github.com/srpmtt), [wilecoyotegenius](https://github.com/wilecoyotegenius), [wuxiaojun514](https://github.com/wuxiaojun514).

## 3.19.0

### Enhancements
Expand Down
5 changes: 1 addition & 4 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
},
"externals": {},
"localizedResources": {
"ControlStrings": "lib/loc/{locale}.js",
"ControlsTestWebPartStrings": "lib/webparts/controlsTest/loc/{locale}.js",
"ControlsTestFormCustomizerStrings": "lib/extensions/testForm/loc/{locale}.js",
"TestApplicationCustomizerStrings": "lib/extensions/testApp/loc/{locale}.js"
"ControlStrings": "lib/loc/{locale}.js"
}
}
29 changes: 29 additions & 0 deletions docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Releases

## 3.20.0

### Enhancements

- `Dashboard`: added new WidgetSize [#1845](https://github.com/pnp/sp-dev-fx-controls-react/pull/1845)
- `Dashboard`: IWidgetLink improvements [#1813](https://github.com/pnp/sp-dev-fx-controls-react/pull/1813)
- `DynamicForm`: custom sorting [#1802](https://github.com/pnp/sp-dev-fx-controls-react/pull/1802)
- `ImagePicker`: new Control ImagePicker [#1820](https://github.com/pnp/sp-dev-fx-controls-react/pull/1820)
- `UserPicker`: new Control UserPicker [#1675](https://github.com/pnp/sp-dev-fx-controls-react/pull/1675)
- `DynamicForm`: DynamicForm storeLastActiveTab option #1879 [#1879](https://github.com/pnp/sp-dev-fx-controls-react/pull/1879)
- `FilePicker`: Image picker enhancements [#1805](https://github.com/pnp/sp-dev-fx-controls-react/pull/1805)
- `DynamicForm`: Adds ability to create files/folders in subfolder using DynamicForm. [#1901](https://github.com/pnp/sp-dev-fx-controls-react/issues/1901)

### Fixes

- Debug Controls in any language [#1882](https://github.com/pnp/sp-dev-fx-controls-react/pull/1882)
- `AdaptiveCardHost`: lock down adaptive-expression package version [#1876](https://github.com/pnp/sp-dev-fx-controls-react/issues/1876)
- `ListItemPicker`: PR fixes an issue with filtering when using calculated column as columnInternalName in ListItemPicker. [#1887](https://github.com/pnp/sp-dev-fx-controls-react/pull/1887)
- `ListItemAttachments`: Fix 1858 to correct Chinese localization files #1894 [#1894](https://github.com/pnp/sp-dev-fx-controls-react/pull/1894)
- `DynamicForm`: Fixing issue 1862 - Dynamic form should hide fields that are hidden on the List Content Type [#1872](https://github.com/pnp/sp-dev-fx-controls-react/pull/1872)
- `GridLayout`: A quick fix for #838. When compact mode the number of items rendered per page must match the number of all items. [1851](https://github.com/pnp/sp-dev-fx-controls-react/pull/1851)
- `DynamicForm`: Always Show Required Field Validation Error In FormDisplayMode.Edit Mode [#1775](https://github.com/pnp/sp-dev-fx-controls-react/issues/1775)
- `DynamicForm`: Required Field Validation won't work [#1760](https://github.com/pnp/sp-dev-fx-controls-react/issues/1760)
- `DynamicForm`: Adds ability to render file/folder name field in DynamicForm and Field. [#1906](https://github.com/pnp/sp-dev-fx-controls-react/pull/1906)

### Contributors

Special thanks to our contributors (in alphabetical order): [Alex Terentiev](https://github.com/AJIXuMuK), [Antanina Druzhkina](https://github.com/Ateina), [Guido Zambarda](https://github.com/GuidoZam), [IRRDC](https://github.com/IRRDC), [joaojmendes](https://github.com/joaojmendes), [Martin Lingstuyl](https://github.com/martinlingstuyl), [Michaël Maillot](https://github.com/michaelmaillot), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [srpmtt](https://github.com/srpmtt), [wilecoyotegenius](https://github.com/wilecoyotegenius), [wuxiaojun514](https://github.com/wuxiaojun514).

## 3.19.0

### Enhancements
Expand Down
Binary file added docs/documentation/docs/assets/ImagePicker00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/ImagePicker01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/ImagePicker02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/ImagePicker03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/ImagePicker04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/ImagePicker05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/userPicker01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/userPicker02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/documentation/docs/assets/userPicker03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion docs/documentation/docs/controls/Dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ import { WidgetSize, Dashboard } from '@pnp/spfx-controls-react/lib/Dashboard';

```TypeScript
const linkExample = { href: "#" };
const customizedLinkExample = {
href: "#",
title: "This is a customized link!",
color: "red",
target: "_top"
};
const calloutItemsExample = [
{
id: "action_1",
Expand Down Expand Up @@ -71,7 +77,7 @@ const calloutItemsExample = [
{
title: "Card 2",
size: WidgetSize.Single,
link: linkExample,
link: customizedLinkExample,
},
{
title: "Card 3",
Expand Down Expand Up @@ -142,6 +148,9 @@ Provides Widget link properties
| Property | Type | Required | Description |
| ---- | ---- | ---- | ---- |
| href | string | yes | Link to be opened. |
| title | string | no | The text to display for the link, if not provided, the default text will be used. |
| color | string | no | The color of the link, if not provided, the "default" color will be used. The available colors can be found on the [official Fluent UI documentation of the Text control](https://fluentsite.z22.web.core.windows.net/0.66.2/components/text/definition#variations-color). |
| target | string | no | The target property value for the generated anchor tag, if not provided, the default target will be *_blank*. |

Enum `WidgetSize`

Expand All @@ -152,6 +161,7 @@ Provides size of the widget
| Single | Single-sized grid item. |
| Double | Double-width grid item. |
| Triple | Triple width grid item. |
| Quadruple | Quadruple width grid item. |
| Box | Double-width, double-height grid item. |

![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/Dashboard)
3 changes: 3 additions & 0 deletions docs/documentation/docs/controls/DynamicForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The `DynamicForm` can be configured with the following properties:
| disabled | boolean | no | Allows form to be disabled. Default value is `false`|
| disabledFields | string[] | no | InternalName of fields that should be disabled. Default value is `false`|
| enableFileSelection | boolean | no | Specify if the form should support the creation of a new list item in a document library attaching a file to it. This option is only available for document libraries and works only when the contentTypeId is specified and has a base type of type Document. Default value is `false`|
| fieldOrder | string[] | no | List of fields internal names. Specifies fields custom sorting. |
| hiddenFields | string[] | no | InternalName of fields that should be hidden. Default value is `false`|
| onListItemLoaded | (listItemData: any) => Promise<void> | no | List item loaded handler. Allows to access list item information after it's loaded.|
| onBeforeSubmit | (listItemData: any) => Promise<boolean> | no | Before submit handler. Allows to modify the object to be submitted or cancel the submission. To cancel, return `true`.|
Expand All @@ -64,6 +65,8 @@ The `DynamicForm` can be configured with the following properties:
| saveDisabled | boolean | no | Specifies if save button is disabled. |
| validationErrorDialogProps | IValidationErrorDialogProps | no | Specifies validation error dialog properties |
| customIcons | { [ columnInternalName: string ]: string } | no | Specifies custom icons for the form. The key of this dictionary is the column internal name, the value is the Fluent UI icon name. |
| storeLastActiveTab | boolean | no | When uploading files: Specifies if last active tab will be stored after the Upload panel has been closed. Note: the value of selected tab is stored in the queryString hash. Default - `true` |
| folderPath | string | no | Server relative or library relative folder to create the item in. This option is only available for document libraries and works only when the contentTypeId is specified and has a base type of type Document or Folder. Defaults to the root folder of the library. |

## Validation Error Dialog Properties `IValidationErrorDialogProps`
| Property | Type | Required | Description |
Expand Down
67 changes: 67 additions & 0 deletions docs/documentation/docs/controls/ImagePicker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# HoverReactionsBar

This control allows you to select or Upload Image from SharePoint, Ondrive or Stock Images.

## ImagePicker

![imagepicker](../assets/ImagePicker00.png)

![imagepicker](../assets/ImagePicker01.png)

![imagepicker](../assets/ImagePicker02.png)

![imagepicker](../assets/ImagePicker03.png)

![imagepicker](../assets/ImagePicker04.png)

![imagepicker](../assets/ImagePicker05.png)

## How to use this control in your solutions

- 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.
- Import the following modules to your component:

```TypeScript
import { ImagePicker } from '@pnp/spfx-controls-react/lib/ImagePicker';
```

- Use the `ImagePicker` control in your code as follows:

```Typescript

<ImagePicker
onFileSelected={handleFileSelected}
onDeleteFile={handleDeleteFile}
selectedFileUrl={selectedImageUrl}
context={appContext}
>
```

- With the `onFileSelect` property you can get the selected image:

```typescript
const handleFileSelected = React.useCallback(async (file: IFilePickerResult) => {
console.log("file", file);
}, []);
```

- With the `onDelete` property you can execute a callback after delete the image:

```typescript
const onDeleteFile = React.useCallback(async () => {
console.log("onDeleteFile");
}, []);
```

## Implementation

The HoverReactionsBar control can be configured with the following properties:

| Property | Type | Required | Description |
| --------------- | ------------------------------------------------- | -------- | ----------------------- |
| onFileSelected | onFileSelect: (file: IFilePickerResult ) => void; | yes | OnSelectedFile Callback |
| onDeleteFile | onDeleteFile: () => void | no | onDeleteFile CallBack |
| selectedFileUrl | string | no | Default Selected Image |
| context | BaseComponentContext | yes | Context |

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