@omnia/fx-sp 7.0.441-dev → 7.0.443-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,5 +22,6 @@ export interface TaxonomyFilterEnginePropertyOutput extends TypedFilterEnginePro
22
22
  export declare class SPSearchFilterEngineContext extends FilterEngineContext {
23
23
  componentId: string;
24
24
  constructor(componentId: string);
25
- isRefinable: boolean;
25
+ isRefinable(prop: BaseFilterEngineProperty): boolean;
26
+ getAvailableProperties(): import("@omnia/fx-models").EnterprisePropertyDefinition[];
26
27
  }
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SPSearchFilterEngineContext = exports.FilterEngineTaxonomyValueSortOrder = void 0;
4
4
  const fx_models_1 = require("@omnia/fx-models");
5
+ const fx_1 = require("@omnia/fx");
6
+ const stores_1 = require("@omnia/../../fx/stores");
5
7
  var FilterEngineTaxonomyValueSortOrder;
6
8
  (function (FilterEngineTaxonomyValueSortOrder) {
7
9
  FilterEngineTaxonomyValueSortOrder[FilterEngineTaxonomyValueSortOrder["TermsetOrder"] = 0] = "TermsetOrder";
@@ -11,7 +13,16 @@ class SPSearchFilterEngineContext extends fx_models_1.FilterEngineContext {
11
13
  constructor(componentId) {
12
14
  super(componentId);
13
15
  this.componentId = componentId;
14
- this.isRefinable = true;
16
+ }
17
+ isRefinable(prop) {
18
+ const enterprisePropertyStore = (0, fx_1.useInject)(stores_1.EnterprisePropertyStore);
19
+ const result = enterprisePropertyStore.getters.refinableManagedProperties().find(p => p.internalName === prop.name) && true;
20
+ return result;
21
+ }
22
+ getAvailableProperties() {
23
+ const enterprisePropertyStore = (0, fx_1.useInject)(stores_1.EnterprisePropertyStore);
24
+ const result = enterprisePropertyStore.getters.enterprisePropertyDefinitions().filter(p => p.managedPropertySettings?.queryable || p.managedPropertySettings?.refinable);
25
+ return result;
15
26
  }
16
27
  }
17
28
  exports.SPSearchFilterEngineContext = SPSearchFilterEngineContext;
@@ -8,9 +8,9 @@ export declare abstract class SharePointUserProfilePropertyValueBase {
8
8
  abstract readonly type: SharePointUserProfilePropertyValueTypes;
9
9
  }
10
10
  export declare class SharePointUserProfileTextPropertyValue extends SharePointUserProfilePropertyValueBase {
11
- text: string;
11
+ texts: string[];
12
12
  type: SharePointUserProfilePropertyValueTypes;
13
- constructor(text: string);
13
+ constructor(texts: string[]);
14
14
  }
15
15
  export declare class SharePointUserProfileTermSetPropertyValue extends SharePointUserProfilePropertyValueBase {
16
16
  termIds: GuidValue[];
@@ -11,9 +11,9 @@ class SharePointUserProfilePropertyValueBase {
11
11
  }
12
12
  exports.SharePointUserProfilePropertyValueBase = SharePointUserProfilePropertyValueBase;
13
13
  class SharePointUserProfileTextPropertyValue extends SharePointUserProfilePropertyValueBase {
14
- constructor(text) {
14
+ constructor(texts) {
15
15
  super();
16
- this.text = text;
16
+ this.texts = texts;
17
17
  this.type = SharePointUserProfilePropertyValueTypes.Text;
18
18
  }
19
19
  }
@@ -17,10 +17,11 @@ export default class TaxonomyFilterEngineHandler extends Store implements ITyped
17
17
  private selectedRefinements;
18
18
  private mediator;
19
19
  private refinerName;
20
+ private isRefinable;
20
21
  /**
21
22
  *
22
23
  */
23
- constructor(property: TaxonomyFilterEngineProperty, routerDefaultValue: QueryFilterEnginePropertyOutput);
24
+ constructor(property: TaxonomyFilterEngineProperty, routerDefaultValue: QueryFilterEnginePropertyOutput, isRefinable: boolean);
24
25
  generateTypedPropertyOutput: () => TaxonomyFilterEnginePropertyOutput;
25
26
  generateRefinementOutput: () => FilterEngineRefinementOutput;
26
27
  generatePropertyOutput: () => BaseFilterEnginePropertyOutput;
@@ -52,7 +53,7 @@ export default class TaxonomyFilterEngineHandler extends Store implements ITyped
52
53
  };
53
54
  private getTermSetId;
54
55
  init(): Promise<void>;
55
- isRefinable(): boolean;
56
+ isUsingRefiner(): boolean;
56
57
  isolatedRefinementEnabled(): boolean;
57
58
  getManagedProperty(): string;
58
59
  getSelectionCount(): number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-sp",
3
3
  "license": "MIT",
4
- "version": "7.0.441-dev",
4
+ "version": "7.0.443-dev",
5
5
  "description": "Provide Omnia Fx Sharepoint Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx": "7.0.441-dev",
23
- "@omnia/fx-sp-models": "7.0.441-dev"
22
+ "@omnia/fx": "7.0.443-dev",
23
+ "@omnia/fx-sp-models": "7.0.443-dev"
24
24
  },
25
25
  "typings": "./index.d.ts",
26
26
  "bugs": {