Skip to content

Commit

Permalink
Merge pull request #363 from pnp/dev
Browse files Browse the repository at this point in the history
Merge for 3.1.0
  • Loading branch information
estruyf authored May 5, 2021
2 parents 7fb3a42 + 5557d64 commit ca23bed
Show file tree
Hide file tree
Showing 21 changed files with 3,398 additions and 2,937 deletions.
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ workflows:
- build:
filters:
branches:
ignore: /^(dev|master|v2|v2-dev)/
ignore: /^(dev|master|v2)/
release_next:
jobs:
- build:
Expand All @@ -107,7 +107,6 @@ workflows:
only:
- dev
- v2
- v2-dev
- build_next:
requires:
- build
Expand All @@ -116,7 +115,6 @@ workflows:
only:
- dev
- v2
- v2-dev
- publish_next:
requires:
- build_next
Expand All @@ -125,7 +123,6 @@ workflows:
only:
- dev
- v2
- v2-dev
release:
jobs:
- build:
Expand All @@ -149,4 +146,4 @@ workflows:
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+/
branches:
ignore: /.*/
ignore: /.*/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ docs/documentation/site

# other files
tslint.json

# Release
release
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

npm run changelog

27 changes: 27 additions & 0 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"versions": [
{
"version": "3.1.0",
"changes": {
"new": [],
"enhancements": [
"SharePoint Framework v1.12.1 support",
"`PropertyFieldColumnPicker`: Multiselect dropdown option [#354](https://github.com/pnp/sp-dev-fx-property-controls/pull/354)"
],
"fixes": [
"`PropertyFieldSitePicker`: Site Picker doesn't return sites with title starting from the typed string [#355](https://github.com/pnp/sp-dev-fx-property-controls/issues/355)"
]
},
"contributions": [
"[Sudharsan Kesavanarayanan](https://github.com/sudharsank)"
]
},
{
"version": "3.0.0",
"changes": {
Expand All @@ -12,6 +28,17 @@
},
"contributions": []
},
{
"version": "2.6.0",
"changes": {
"new": [],
"enhancements": [],
"fixes": [
"`PropertyFieldSitePicker`: Site Picker doesn't return sites with title starting from the typed string [#355](https://github.com/pnp/sp-dev-fx-property-controls/issues/355)"
]
},
"contributions": []
},
{
"version": "2.5.0",
"changes": {
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
# Releases

## 3.1.0

### Enhancements

- SharePoint Framework v1.12.1 support
- `PropertyFieldColumnPicker`: Multiselect dropdown option [#354](https://github.com/pnp/sp-dev-fx-property-controls/pull/354)

### Fixes

- `PropertyFieldSitePicker`: Site Picker doesn't return sites with title starting from the typed string [#355](https://github.com/pnp/sp-dev-fx-property-controls/issues/355)

### Contributors

Special thanks to our contributor: [Sudharsan Kesavanarayanan](https://github.com/sudharsank).

## 3.0.0

### Enhancements

- SharePoint Framework v1.12 support (Breaking change)
- FLuent UI v7 support

## 2.6.0

### Fixes

- `PropertyFieldSitePicker`: Site Picker doesn't return sites with title starting from the typed string [#355](https://github.com/pnp/sp-dev-fx-property-controls/issues/355)

## 2.5.0

### New control(s)
Expand Down
21 changes: 21 additions & 0 deletions docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
# Releases

## 3.1.0

### Enhancements

- SharePoint Framework v1.12.1 support
- `PropertyFieldColumnPicker`: Multiselect dropdown option [#354](https://github.com/pnp/sp-dev-fx-property-controls/pull/354)

### Fixes

- `PropertyFieldSitePicker`: Site Picker doesn't return sites with title starting from the typed string [#355](https://github.com/pnp/sp-dev-fx-property-controls/issues/355)

### Contributors

Special thanks to our contributor: [Sudharsan Kesavanarayanan](https://github.com/sudharsank).

## 3.0.0

### Enhancements

- SharePoint Framework v1.12 support (Breaking change)
- FLuent UI v7 support

## 2.6.0

### Fixes

- `PropertyFieldSitePicker`: Site Picker doesn't return sites with title starting from the typed string [#355](https://github.com/pnp/sp-dev-fx-property-controls/issues/355)

## 2.5.0

### New control(s)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions docs/documentation/docs/controls/PropertyFieldColumnPicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The control automatically retrieves the columns for a given SharePoint list:

![MultiColumn picker](../assets/multiColumnPicker.png)

![MultiColumn picker - Multiselect Dropdown](../assets/multicolumnpicker-dropdown.png)

## How to use this control in your solutions

1. Check that you installed the `@pnp/spfx-property-controls` dependency. Check out The [getting started](../../#getting-started) page for more information about installing the dependency.
Expand Down Expand Up @@ -77,6 +79,25 @@ PropertyFieldColumnPicker('multiColumn', {
columnReturnProperty: IColumnReturnProperty.Title,
multiSelect: true
})

// Multi column selection returning the 'Title' of the selected columns as a multi-select dropdown
PropertyFieldColumnPicker('multiColumn', {
label: 'Select columns',
context: this.context,
selectedColumn: this.properties.multiColumn,
listId: this.properties.singleListFiltered,
disabled: false,
orderBy: PropertyFieldColumnPickerOrderBy.Title,
onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
properties: this.properties,
onGetErrorMessage: null,
deferredValidationTime: 0,
key: 'multiColumnPickerFieldId',
displayHiddenColumns: false,
columnReturnProperty: IColumnReturnProperty.Title,
multiSelect: true
renderFieldAs: IPropertyFieldRenderOption["Multiselect Dropdown"]
})
```

## Implementation
Expand All @@ -103,6 +124,7 @@ multiSelect | boolean | no | Specify if you want to have a single or multi-colum
| onColumnsRetrieved | (columns: ISPColumn[]) => PromiseLike<ISPColumn[]> \| ISPColumn[] | no | Callback that is called before the dropdown is populated. |
displayHiddenColumns | boolean | no | Hidden columns to be returned or not. By default this is set to `false` (No Hidden columns) |
columnReturnProperty | IColumnReturnProperty | no | Property to be returned for the selected column(s). |
renderFieldAs | IPropertyFieldRenderOption | no | Property to render the control as `Choice group` or `Multiselect Dropdown`. This is applicable only if the multiselect is `true`. By default the control will be displayed as `Choice Group`

Enum `PropertyFieldColumnPickerOrderBy`

Expand All @@ -119,4 +141,10 @@ Enum `IColumnReturnProperty`
| Title | Column `Title` to be returned |
| Internal Name | Column `InternalName` to be returned |

Enum `IPropertyFieldRenderOption`
| Name | Description |
| ---- | ---- |
| Choice Group | Render the control as multi-select checkbox list
| Multiselect Dropdown | Render the control as multi-select dropdown

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

0 comments on commit ca23bed

Please sign in to comment.