Skip to content

Commit 0193e9a

Browse files
committed
Merge branch 'develop'
2 parents 9535600 + ac80ca1 commit 0193e9a

File tree

6 files changed

+30
-16
lines changed

6 files changed

+30
-16
lines changed

docs/usage/data-filters/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,14 @@ The Web Part supports two types of filters (_'Static'_ and _'Refiner'_). However
5555
- **Refiner**: a 'Refiner' filter means the filter gets its values from the data source and sends back the selected ones the data source. If the data source has no result, there won't be any refiner values, simple as that.
5656
- **Static filter**: a 'Static' filter means the filter doesn't care about filter values sent by the data source and provides its own arbitrary values regardless of input values. A date range picker or a taxonomy picker (or any picker) are good examples of what an 'Static' filter is. Such a filter do not need necessarily need a Data Visualizer connection.
5757

58+
59+
## Use indexed property bag properties with taxonomny values
60+
61+
> **This behavior only works with the SharePoint Search Data source and the _Enabled localization_ flag activated.**
62+
63+
Using an indexed property bag value could be useful to store information about a SharePoint site or other element that can't be tagged with a taxonomy value directly. The 'Modern Data Visualizer' solution supports property bag properties values that use the following taxonomy value format to be able to filter on them (ex: a taxonomy multi values separated by a semicolon (;)):
64+
65+
`L0|#a2cf1afb-44b6-4cf4-bf37-642bb2e9bff3|Category 1;L0|#02e3406c0-1048-4bce-90eb-e7a51dfa7f31|Category3;L0|#07e094327-23d7-48af-9699-781eb26dc40f|Category2`
66+
67+
These taxonomy values can then be used in the Data Filters Web Part using a `RefinableStringXX` search managed property to filter specific sites or elements. As an example, you can refer to the ["Create an end-to-end Office 365 groups provisioning solution"](https://github.com/pnp/tutorial-workspace-provisioning) tutorial GitHub project to leverage this format.
68+

docs/usage/data-visualizer/data-sources/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ By default, the following data sources are provided:
77

88
!["Available data sources"](../../../assets/webparts/data_visualizer/page1/available_datasources.png){: .center}
99

10-
> Be careful, when you switch the data source in the property pane, all the previous data source properties are lost. We do this to avoid polluting the Web Part property bag with multiple useless configurations..
10+
> Be careful, when you switch the data source in the property pane, all the previous data source properties are lost. We do this to avoid polluting the Web Part property bag with multiple useless configurations.
1111
1212
### SharePoint Search
1313

docs/usage/data-visualizer/data-sources/odata.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,23 @@ You can also call an API endpoint with no specific authentifcation like an Azure
5050

5151
The only method allowed are `GET` or `POST`. For each, you have the ability so set your own HTTP headers. **The value must be a valid JSON value**:
5252

53-
{
54-
"Content-Type": "application/json;odata=verbose",
55-
"Accept": "application/json",
56-
...
57-
}
58-
53+
```json
54+
{
55+
"Content-Type": "application/json;odata=verbose",
56+
"Accept": "application/json",
57+
...
58+
}
59+
```
5960

6061
> If you specify a `POST` request, you can also benefit of [builtin tokens](../tokens.md).
6162
62-
{
63-
"ItemsCount": "{itemsCountPerPage}",
64-
"MyProperty": "My Value",
65-
...
66-
}
63+
```json
64+
{
65+
"ItemsCount": "{itemsCountPerPage}",
66+
"MyProperty": "My Value",
67+
...
68+
}
69+
```
6770

6871
#### Pagination
6972

docs/usage/data-visualizer/data-sources/sharepoint-caml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To build your CAML query, you have the choice to use the interactive builder or
2323
| **View Fields** | The item fields to return from the. They will be available in your templates with the same name. | <ul><li>UniqueId</li><li>EncodedAbsUrl</li><li>FileRef</li><li>File_x0020_Type</li><li>FileLeafRef</li><li>Name</li><li>Author</li><li>Created</li></ul>
2424
| **Order by field** | An optional field to sort results. If a field is selected, you have the option to select ascending or descending order. | None.
2525
| **Search within folders** | Enable this option if you want to search in folders recursively in your list or document library. | False.
26-
| **Filters** | The filter condition builder. From here you can select: </br><p align="center">!["Filter builder"](../../../assets/webparts/data_visualizer/caml/filter_builder.png)</p></br><ul><li><b>Field</b>: the list to apply the condition</li><li><b>Operator</b>: the operator to use. Supported operators are _"Equals,Does not equal, Is greater than, Is less than, Is grater or equal to, Is less or equal to, Is null, Is not null, Begins with and Contains"_</li><li><b>Value</b>: the value to use for the condition. You can use a plain text/date/taxonomy value here (depending of the selected field type) or use a dynamic token. For the second option, enable the corresponding checkbox to have access to the dynamic tokens menu. Notice that not all available tokens are listed here. If the token you want to use is not is the list, you can add it using the _'Custom value'_ option and press enter. All supported tokens can be found [here](../tokens.md)</li></ul>
26+
| **Filters** | The filter condition builder. From here you can select: </br><p align="center">!["Filter builder"](../../../assets/webparts/data_visualizer/caml/filter_builder.png)</p></br><ul><li><b>Field</b>: the list to apply the condition</li><li><b>Operator</b>: the operator to use. Supported operators are _"Equals,Does not equal, Is greater than, Is less than, Is grater or equal to, Is less or equal to, Is null, Is not null, Begins with and Contains"_.**Operator choices are automatically adjusted regarding the selected field type.**</li><li><b>Value</b>: the value to use for the condition. You can use a plain text/date/taxonomy value here (depending of the selected field type) or use a dynamic token. For the second option, enable the corresponding checkbox to have access to the dynamic tokens menu. Notice that not all available tokens are listed here. If the token you want to use is not is the list, you can add it using the _'Custom value'_ option and press enter. All supported tokens can be found [here](../tokens.md)</li></ul>
2727

2828
##### Using the advanced mode
2929

extensibility-library-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"test": "gulp test"
1313
},
1414
"dependencies": {
15-
"@aequos/extensibility": "1.0.0",
15+
"@aequos/extensibility": "1.0.1",
1616
"@microsoft/sp-component-base": "1.10.0",
1717
"@microsoft/sp-core-library": "1.10.0",
1818
"@microsoft/sp-http": "1.10.0",

extensibility-library-demo/src/libraries/CustomDataSource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseDataSource, IDataSourceData, ITemplateSlot, BuiltinTemplateSlots } from "@aequos/extensibility";
1+
import { BaseDataSource, IDataSourceData, ITemplateSlot, BuiltinTemplateSlots, IDataContext } from "@aequos/extensibility";
22
import { IPropertyPaneGroup } from "@microsoft/sp-property-pane";
33
import { PropertyPaneTextField } from '@microsoft/sp-webpart-base';
44

@@ -12,7 +12,7 @@ export class CustomDataSource extends BaseDataSource<ICustomDataSourceProperties
1212
return 0;
1313
}
1414

15-
public async getData(): Promise<IDataSourceData> {
15+
public async getData(dataContext: IDataContext): Promise<IDataSourceData> {
1616

1717
/* Your logic to get the data */
1818
return Promise.resolve({

0 commit comments

Comments
 (0)