Skip to content
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

Migrate from Original Dev Branch #1

Merged
merged 36 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
285cb32
Merge pull request #1757 from pnp/dev
joelfmrodrigues Feb 6, 2024
634560e
Bugfix for issue #1758
IRRDC Feb 8, 2024
e0a64ee
Upgrade version references in config files to publish v3.16.1
michaelmaillot Jan 7, 2024
b97fc24
Update the PeoplePicker control:
michaelmaillot Feb 13, 2024
5283279
Bump ip from 1.1.8 to 1.1.9
dependabot[bot] Feb 22, 2024
9e65307
Added style property to Rich text control. It will provide the flexib…
HarminderSethi Feb 24, 2024
387d8b6
Fast-serve update to match the most recent changes.
s-KaiNet Feb 27, 2024
88ace81
Fast-serve update.
s-KaiNet Feb 29, 2024
a04c28c
update package.json details
jrodriguesStorm Mar 4, 2024
f62c218
Merge pull request #1761 from IRRDC/1758_dev
joelfmrodrigues Mar 4, 2024
dcf33e3
changelog
jrodriguesStorm Mar 4, 2024
f11250c
Merge branch 'dev' of https://github.com/SharePoint/sp-dev-fx-control…
jrodriguesStorm Mar 4, 2024
4cbc6ea
Merge pull request #1772 from pnp/dependabot/npm_and_yarn/ip-1.1.9
joelfmrodrigues Mar 4, 2024
b8cb07c
Merge pull request #1773 from HarminderSethi/dev
joelfmrodrigues Mar 4, 2024
adb4be9
changelog
jrodriguesStorm Mar 4, 2024
2fb2551
Merge pull request #1782 from s-KaiNet/fast-serve-update
joelfmrodrigues Mar 4, 2024
c4c3292
changelog
jrodriguesStorm Mar 4, 2024
f472f9c
Merge branch 'dev' of https://github.com/SharePoint/sp-dev-fx-control…
jrodriguesStorm Mar 4, 2024
a3b51b0
Merge pull request #1764 from michaelmaillot/feat/peoplepicker-contex…
michaelmaillot Mar 11, 2024
fa196a5
Update release notes + changelog following PR #1764
michaelmaillot Mar 11, 2024
4e82afa
Carousel: make buttonLocation and buttonDisplay optional, add content…
AJIXuMuK Apr 2, 2024
259ef80
Merge pull request #1801 from pnp/carousel-defaults
AJIXuMuK Apr 2, 2024
052abc1
Update FluentUI imports
raclettierer Apr 21, 2024
8485b1c
update fluentui imports
joelfmrodrigues Apr 21, 2024
e4d10f3
update changelog
joelfmrodrigues Apr 21, 2024
6be67f9
update changelog and release notes
joelfmrodrigues Apr 21, 2024
747ac1f
#1101: fix issue with adding link by typing in FilePicker "From a lin…
Ateina May 4, 2024
34f318a
FileTypeIcon enhancements (#1789)
GuidoZam May 6, 2024
7cd95f5
Update release notes + changelog following PR #1789
michaelmaillot May 6, 2024
c7614dd
3.19.0
AJIXuMuK May 15, 2024
2f7b618
bump version
AJIXuMuK May 15, 2024
8554bec
precommit
AJIXuMuK May 15, 2024
e52931f
Merge pull request #1814 from Ateina/1101-filepicker-cannot-enter-lin…
joaojmendes May 19, 2024
77c8130
Update nl-nl.ts (#1823)
estruyf May 29, 2024
f4cc5ae
Creating version 3.18.1
michaelmaillot May 29, 2024
511dd5e
Restore 3.19.0
michaelmaillot May 29, 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
39 changes: 37 additions & 2 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,58 @@
{
"versions": [
{
"version": "3.19.0",
"changes": {
"new": [],
"enhancements": [],
"fixes": []
},
"contributions": []
},
{
"version": "3.18.1",
"changes": {
"new": [],
"enhancements": [],
"fixes": [
"`FilePicker`: Fix issue with adding link by typing in 'From a link' tab [#1814](https://github.com/pnp/sp-dev-fx-controls-react/pull/1814)",
"Update nl-nl.ts [#1823](https://github.com/pnp/sp-dev-fx-controls-react/pull/1823)"
]
},
"contributions": [
"[Antanina Druzhkina](https://github.com/Ateina)",
"[Elio Struyf](https://github.com/estruyf)"
]
},
{
"version": "3.18.0",
"changes": {
"new": [],
"enhancements": [
"`DynamicField`: Added orderBy to DynamicField props for lookup fields [#1747](https://github.com/pnp/sp-dev-fx-controls-react/pull/1747)",
"`DateTimePicker`: disable array of dates [#516](https://github.com/pnp/sp-dev-fx-controls-react/issues/516)",
"`DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)"
"`DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)",
"`RichText`: Added style property to Rich text control [#1773](https://github.com/pnp/sp-dev-fx-controls-react/pull/1773)",
"`fast-serve`: Fast-serve update to match the most recent changes. [#1782](https://github.com/pnp/sp-dev-fx-controls-react/pull/1782)",
"`PeoplePicker`: Added context optimization [#1764](https://github.com/pnp/sp-dev-fx-controls-react/pull/1764)",
"`Multiple controls`: Wrong fluentui imports cause webpack build errors [#1763](https://github.com/pnp/sp-dev-fx-controls-react/issues/1763)",
"`FileTypeIcon`: Added standard events [#1789](https://github.com/pnp/sp-dev-fx-controls-react/pull/1789)"
],
"fixes": [
"`FolderPicker`: Update documentation on how to use the control with siteAbsoluteUrl property [#1743](https://github.com/pnp/sp-dev-fx-controls-react/pull/1743)",
"Readme documents highlight extension does not work correctly [#1495](https://github.com/pnp/sp-dev-fx-controls-react/issues/1495)",
"`DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)"
"`DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)",
"`DynamicForm`: Dynamic form loading error in other site [#1758](https://github.com/pnp/sp-dev-fx-controls-react/issues/1758)"
]
},
"contributions": [
"[Guido Zambarda](https://github.com/GuidoZam)",
"[Harminder Singh](https://github.com/HarminderSethi)",
"[IRRDC](https://github.com/IRRDC)",
"[Matthias Z'Brun](https://github.com/raclettierer)",
"[Michaël Maillot](https://github.com/michaelmaillot)",
"[Nishkalank Bezawada](https://github.com/NishkalankBezawada)",
"[Sergei Sergeev](https://github.com/s-KaiNet)",
"[srpmtt](https://github.com/srpmtt)"
]
},
Expand Down
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
# Releases

## 3.19.0

## 3.18.1

### Fixes

- `FilePicker`: Fix issue with adding link by typing in 'From a link' tab [#1814](https://github.com/pnp/sp-dev-fx-controls-react/pull/1814)
- Update nl-nl.ts [#1823](https://github.com/pnp/sp-dev-fx-controls-react/pull/1823)

### Contributors

Special thanks to our contributors (in alphabetical order): [Antanina Druzhkina](https://github.com/Ateina), [Elio Struyf](https://github.com/estruyf).

## 3.18.0

### Enhancements

- `DynamicField`: Added orderBy to DynamicField props for lookup fields [#1747](https://github.com/pnp/sp-dev-fx-controls-react/pull/1747)
- `DateTimePicker`: disable array of dates [#516](https://github.com/pnp/sp-dev-fx-controls-react/issues/516)
- `DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)
- `RichText`: Added style property to Rich text control [#1773](https://github.com/pnp/sp-dev-fx-controls-react/pull/1773)
- `fast-serve`: Fast-serve update to match the most recent changes. [#1782](https://github.com/pnp/sp-dev-fx-controls-react/pull/1782)
- `PeoplePicker`: Added context optimization [#1764](https://github.com/pnp/sp-dev-fx-controls-react/pull/1764)
- `Multiple controls`: Wrong fluentui imports cause webpack build errors [#1763](https://github.com/pnp/sp-dev-fx-controls-react/issues/1763)
- `FileTypeIcon`: Added standard events [#1789](https://github.com/pnp/sp-dev-fx-controls-react/pull/1789)

### Fixes

- `FolderPicker`: Update documentation on how to use the control with siteAbsoluteUrl property [#1743](https://github.com/pnp/sp-dev-fx-controls-react/pull/1743)
- Readme documents highlight extension does not work correctly [#1495](https://github.com/pnp/sp-dev-fx-controls-react/issues/1495)
- `DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)
- `DynamicForm`: Dynamic form loading error in other site [#1758](https://github.com/pnp/sp-dev-fx-controls-react/issues/1758)

### Contributors

Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [srpmtt](https://github.com/srpmtt).
Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Harminder Singh](https://github.com/HarminderSethi), [IRRDC](https://github.com/IRRDC), [Matthias Z'Brun](https://github.com/raclettierer), [Michaël Maillot](https://github.com/michaelmaillot), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Sergei Sergeev](https://github.com/s-KaiNet), [srpmtt](https://github.com/srpmtt).

## 3.17.0

Expand Down
21 changes: 20 additions & 1 deletion docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
# Releases

## 3.19.0

## 3.18.1

### Fixes

- `FilePicker`: Fix issue with adding link by typing in 'From a link' tab [#1814](https://github.com/pnp/sp-dev-fx-controls-react/pull/1814)
- Update nl-nl.ts [#1823](https://github.com/pnp/sp-dev-fx-controls-react/pull/1823)

### Contributors

Special thanks to our contributors (in alphabetical order): [Antanina Druzhkina](https://github.com/Ateina), [Elio Struyf](https://github.com/estruyf).

## 3.18.0

### Enhancements

- `DynamicField`: Added orderBy to DynamicField props for lookup fields [#1747](https://github.com/pnp/sp-dev-fx-controls-react/pull/1747)
- `DateTimePicker`: disable array of dates [#516](https://github.com/pnp/sp-dev-fx-controls-react/issues/516)
- `DynamicForm`: new `customIcons` property to allow custom icons for the form [#1745](https://github.com/pnp/sp-dev-fx-controls-react/pull/1745)
- `RichText`: Added style property to Rich text control [#1773](https://github.com/pnp/sp-dev-fx-controls-react/pull/1773)
- `fast-serve`: Fast-serve update to match the most recent changes. [#1782](https://github.com/pnp/sp-dev-fx-controls-react/pull/1782)
- `PeoplePicker`: Added context optimization [#1764](https://github.com/pnp/sp-dev-fx-controls-react/pull/1764)
- `Multiple controls`: Wrong fluentui imports cause webpack build errors [#1763](https://github.com/pnp/sp-dev-fx-controls-react/issues/1763)
- `FileTypeIcon`: Added standard events [#1789](https://github.com/pnp/sp-dev-fx-controls-react/pull/1789)

### Fixes

- `FolderPicker`: Update documentation on how to use the control with siteAbsoluteUrl property [#1743](https://github.com/pnp/sp-dev-fx-controls-react/pull/1743)
- Readme documents highlight extension does not work correctly [#1495](https://github.com/pnp/sp-dev-fx-controls-react/issues/1495)
- `DynamicForm`: Error on rendering DynamicForm when having a Date Field with internal name starting with underscore ('_')[#1738](https://github.com/pnp/sp-dev-fx-controls-react/issues/1738)
- `DynamicForm`: Dynamic form loading error in other site [#1758](https://github.com/pnp/sp-dev-fx-controls-react/issues/1758)

### Contributors

Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [srpmtt](https://github.com/srpmtt).
Special thanks to our contributors (in alphabetical order): [Guido Zambarda](https://github.com/GuidoZam), [Harminder Singh](https://github.com/HarminderSethi), [IRRDC](https://github.com/IRRDC), [Matthias Z'Brun](https://github.com/raclettierer), [Michaël Maillot](https://github.com/michaelmaillot), [Nishkalank Bezawada](https://github.com/NishkalankBezawada), [Sergei Sergeev](https://github.com/s-KaiNet), [srpmtt](https://github.com/srpmtt).

## 3.17.0

Expand Down
5 changes: 3 additions & 2 deletions docs/documentation/docs/controls/Carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ The Carousel component can be configured with the following properties:
| isInfinite | boolean | no | Indicates if infinite scrolling is enabled. |
| canMoveNext | boolean | no | Property indicates if the next item button can be clicked. If not provided, status of the button is calculated based on the current index. <br />It is mandatory when triggerPageEvent is used. |
| canMovePrev | boolean | no | Property indicates if the previous item button can be clicked. If not provided, status of the button is calculated based on the current index. <br />It is mandatory when triggerPageEvent is used. |
| buttonsLocation | CarouselButtonsLocation | yes | Specifies the location of the buttons inside the container. |
| buttonsDisplay | CarouselButtonsDisplay | yes | Specifies the buttons container display mode. |
| buttonsLocation | CarouselButtonsLocation | no | Specifies the location of the buttons inside the container. Default: center |
| buttonsDisplay | CarouselButtonsDisplay | no | Specifies the buttons container display mode. Default: block |
| containerStyles | ICssInput | no | Allows to specify own styles for carousel container. |
| loadingComponentContainerStyles | ICssInput | no | Allows to specify own styles for loading component. |
| contentContainerStyles | ICssInput | no | Allows to specify own styles for elements container. |
Expand Down Expand Up @@ -134,6 +134,7 @@ The Carousel component can be configured with the following properties:
| indicatorsContainerStyles | ICssInput | no | Allows to specify own styles for indicators container when indicatorsDisplay is set to "block" |
| prevButtonAriaLabel | string | no | Aria label of the PreviousItem button. Default 'Previous item'. |
| nextButtonAriaLabel | string | no | Aria label of the NextItem button. Default 'Next item'. |
| contentHeight | number | no | Allows to specify the height of the content. Can be used instead of providing styles for the content container (`contentContainerStyles`). |

enum `CarouselButtonsLocation`

Expand Down
6 changes: 6 additions & 0 deletions docs/documentation/docs/controls/FileTypeIcon.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,11 @@ The FileTypeIcon component can be configured with the following properties:
| path | string | no | Path to the document. If this is provided, the control will use the file extension to display the corresponding icon. |
| size | ImageSize | no | This is a property that only needs to be used when the type is set to image. It allows you to specify the image size. small (16px), normal (20px), medium (48px) and large (96px) are possible. Use the **ImageSize** enum to get the list of available images sizes. |
| type | IconType | yes | This property specifies is you want to use the icon font or image. Use the **IconType** enum to get the list of available icon types. |
| onClick | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the icon is clicked. |
| onDoubleClick | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the icon is double clicked. |
| onMouseEnter | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse cursor enters the icon (without event bubbling). |
| onMouseLeave | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse cursor leaves the icon. |
| onMouseOver | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse cursor enters the icon (with event bubbling). |
| onMouseUp | React.MouseEvent&lt;HTMLElement&gt; | no | Event triggered when the mouse button is released after clicked on the icon. |

![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/FileTypeIcon)
33 changes: 23 additions & 10 deletions docs/documentation/docs/controls/PeoplePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,26 @@ This control renders a People picker field which can be used to select one or mo

![Selected people](../assets/Peoplepicker-multiplechoices.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 { PeoplePicker, PrincipalType } from "@pnp/spfx-controls-react/lib/PeoplePicker";
import { IPeoplePickerContext, PeoplePicker, PrincipalType } from "@pnp/spfx-controls-react/lib/PeoplePicker";
```

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

```typescript
const peoplePickerContext: IPeoplePickerContext = {
absoluteUrl: this.props.context.pageContext.web.absoluteUrl,
msGraphClientFactory: this.props.context.msGraphClientFactory,
spHttpClient: this.props.context.spHttpClient
};

<PeoplePicker
context={this.props.context}
context={peoplePickerContext}
titleText="People Picker"
personSelectionLimit={3}
groupName={"Team Site Owners"} // Leave this blank in case you want to filter from all users
Expand Down Expand Up @@ -59,7 +64,7 @@ The People picker control can be configured with the following properties:

| Property | Type | Required | Description | Default |
| ---- | ---- | ---- | ---- | ---- |
| context | BaseComponentContext | yes | Context of the current web part. | |
| context | IPeoplePickerContext | yes | Context of the component, based on the SPFx context ([*BaseComponentContext*](https://learn.microsoft.com/javascript/api/sp-component-base/basecomponentcontext?view=sp-typescript-latest)). | |
| titleText | string | no | Text to be displayed on the control | |
| groupName | string | no | Group from which users are fetched. Leave it blank if need to filter all users. When both groupName and groupId specified groupName takes precedence. | _none_ |
| groupId | number \| string \| (string\|number)[] | no | Group from which users are fetched. Leave it blank if need to filter all users. When both groupId and groupName specified groupName takes precedence. If string is specified, Microsoft 365 Group is used. If array is used, fetch results from multiple groups | _none_ |
Expand All @@ -82,8 +87,8 @@ The People picker control can be configured with the following properties:
| allowUnvalidated | boolean | no | When true, allow email addresses that have not been validated to be entered, effectively allowing any user. | false |
| suggestionsLimit | number | no | Maximum number of suggestions to show in the full suggestion list. | 5 |
| resolveDelay | number | no | Add delay to resolve and search users | 200 |
| placeholder | string | no | Short text hint to display in empty picker |
| styles | Partial<IBasePickerStyles> | no | Styles to apply on control |
| placeholder | string | no | Short text hint to display in empty picker | |
| styles | Partial<IBasePickerStyles> | no | Styles to apply on control | |
| searchTextLimit | number | no | Specifies the minimum character count needed to begin retrieving search results. | 2 |

Enum `PrincipalType`
Expand All @@ -97,13 +102,21 @@ The `PrincipalType` enum can be used to specify the types of information you wan
| SecurityGroup | 4 |
| SharePointGroup | 8 |

Interface `IPeoplePickerContext`

## MSGraph Permissions required
Provides mandatory properties to search users on the tenant

This control requires the following scopes if groupId is of type String:
| Value | Type | Description |
| ---- | ---- | ---- |
| absoluteUrl | string | Current `SPWeb` absolute URL. |
| msGraphClientFactory | MSGraphClientFactory | Instance of MSGraphClientFactory used for querying Microsoft Graph REST API. |
| spHttpClient | SPHttpClient | Instance of SPHttpClient used for querying SharePoint REST API. |

at least : GroupMember.Read.All, Directory.Read.All
## MSGraph Permissions required

This control requires at least one the following scopes if `groupId` is of type `string`:

![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/PeoplePicker)
- *GroupMember.Read.All* + *User.ReadBasic.All*
- *Directory.Read.All*

![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/PeoplePicker)
1 change: 1 addition & 0 deletions docs/documentation/docs/controls/RichText.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The RichText control can be configured with the following properties:
| id | string | no | The ID to apply to the RichText control. |
| label | string | no | The label displayed above the RichText control. |
| className | string | no | The custom CSS class to apply to the RichText control. |
| style | React.CSSProperties | no | The custom styles to apply to the RichText control. |
| isEditMode | boolean | no | `true` indicates that users will be able to edit the content of the RichText control. `false` will display the rich text as read-only. |
| styleOptions | StyleOptions | no | Define the styles you want to show or hide for the rich text editor |
| value | string | no | Sets the rich text to display in the RichText control. |
Expand Down
6 changes: 0 additions & 6 deletions fast-serve/config.json

This file was deleted.

24 changes: 0 additions & 24 deletions fast-serve/webpack.extend.js

This file was deleted.

Loading