@eox/itemfilter 1.15.0 → 1.17.0

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.
package/types/main.d.ts CHANGED
@@ -5,13 +5,13 @@
5
5
  * - Supports `text`, `select`, `multiselect`, `range` (including date), and `spatial` filters
6
6
  * - Aggregates results by a property key (e.g. themes)
7
7
  * - Inline mode for compact UI
8
- * - Pre-set filter state via `state` in `filterProperties`
8
+ * - Pre-set filter state via `state` in `filterProperties` property/attribute
9
9
  * - Nested property filtering using dot notation
10
- * - External search API endpoint support via `externalFilter`
10
+ * - External search API endpoint support via `externalFilter` property
11
11
  * - Auto-spreading of single-item aggregations to root level
12
12
  * - Card display mode for results (`result-type="cards"`)
13
13
  * - Secondary result action button with custom icon and event handler (`click:result-action`)
14
- * - Custom result sorting via `resultSorting` property
14
+ * - Custom result sorting via `resultSorting` property/attribute
15
15
  * - Customizable layout and styling via CSS variables
16
16
  *
17
17
  * Usage examples and visual demos are available in Storybook stories, including scenarios for inline mode, external filtering, nested properties, card display, CSS variable customization, and result actions.
@@ -27,8 +27,7 @@
27
27
  export class EOxItemFilter extends LitElement {
28
28
  static get properties(): {
29
29
  items: {
30
- attribute: boolean;
31
- type: ObjectConstructor;
30
+ type: ArrayConstructor;
32
31
  };
33
32
  results: {
34
33
  state: boolean;
@@ -41,7 +40,6 @@ export class EOxItemFilter extends LitElement {
41
40
  type: ObjectConstructor;
42
41
  };
43
42
  selectedResult: {
44
- attribute: boolean;
45
43
  type: ObjectConstructor;
46
44
  };
47
45
  aggregateResults: {
@@ -57,11 +55,9 @@ export class EOxItemFilter extends LitElement {
57
55
  type: BooleanConstructor;
58
56
  };
59
57
  filterProperties: {
60
- attribute: boolean;
61
58
  type: ArrayConstructor;
62
59
  };
63
60
  fuseConfig: {
64
- attribute: boolean;
65
61
  type: ObjectConstructor;
66
62
  };
67
63
  inlineMode: {
@@ -93,7 +89,6 @@ export class EOxItemFilter extends LitElement {
93
89
  type: StringConstructor;
94
90
  };
95
91
  resultSorting: {
96
- attribute: boolean;
97
92
  type: ObjectConstructor;
98
93
  };
99
94
  expandMultipleFilters: {
@@ -117,11 +112,9 @@ export class EOxItemFilter extends LitElement {
117
112
  type: StringConstructor;
118
113
  };
119
114
  enableResultAction: {
120
- attribute: boolean;
121
115
  type: BooleanConstructor;
122
116
  };
123
117
  resultActionIcon: {
124
- attribute: boolean;
125
118
  type: StringConstructor;
126
119
  };
127
120
  styleOverride: {
@@ -131,7 +124,7 @@ export class EOxItemFilter extends LitElement {
131
124
  type: BooleanConstructor;
132
125
  };
133
126
  };
134
- /** The items to be filtered
127
+ /** The items to be filtered. Can be passed as a property or stringified JSON attribute.
135
128
  * @type Array<Object>
136
129
  */
137
130
  items: Array<any>;
@@ -180,6 +173,7 @@ export class EOxItemFilter extends LitElement {
180
173
  * The function can return a URL string, or an object containing a `url,
181
174
  * an optional `fetchFn` to handle the request, or/and an optional `key` to
182
175
  * return a specific property from the fetched data.
176
+ * This is a property-only field as it expects a function.
183
177
  *
184
178
  * @type {() => string| (() => {url:string;key?:string;fetchFn?:string})}
185
179
  */
@@ -189,7 +183,7 @@ export class EOxItemFilter extends LitElement {
189
183
  fetchFn?: string;
190
184
  });
191
185
  /**
192
- * The filter properties.
186
+ * The filter properties. Can be passed as a property or stringified JSON attribute.
193
187
  * @type Array<{key?: String, keys?: Array<String>, title: String, type: String, placeholder?: String, format?: String, state?: Object}>
194
188
  */
195
189
  filterProperties: Array<{
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmCC;IAoBC;;OAEG;IACH,OAFS,KAAK,KAAQ,CAEL;IA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ED;;;;OAIG;IACH,kBAFW;QAAC,MAAM,MAAQ;KAAC,QAe1B;IAED;;;;OAIG;IACH,sBAFW;QAAC,MAAM,MAAQ;KAAC,QAa1B;IAED;;;;OAIG;IACH,sBAFW;QAAC,MAAM,MAAQ;KAAC,QAa1B;IAED;;;;OAIG;IACH,sBAFW;QAAC,MAAM,MAAQ;KAAC,QAa1B;IAED;;OAEG;IACH,+CAyIC;;CACF;2BAtoByC,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/range.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,qDAFW,OAAO,mCAAmC,EAAE,kBAAkB,QAkBxE;AAED;;;;;GAKG;AACH,6CAHW,WAAW,iCAmCrB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,GAAC,MAAM,OACb,MAAM,4BAEJ,OAAO,KAAK,EAAE,kBAAkB,CAS5C"}
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/range.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,qDAFW,OAAO,mCAAmC,EAAE,kBAAkB,QA6BxE;AAED;;;;;GAKG;AACH,6CAHW,WAAW,iCAmCrB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,GAAC,MAAM,OACb,MAAM,4BAEJ,OAAO,KAAK,EAAE,kBAAkB,CAQ5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-filter.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/create-filter.js"],"names":[],"mappings":";AAIA;;;;;;;GAOG;AACH,iEAJW,MAAM,uBAEJ,OAAO,KAAK,EAAE,kBAAkB,CAwE5C"}
1
+ {"version":3,"file":"create-filter.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/create-filter.js"],"names":[],"mappings":";AAIA;;;;;;;GAOG;AACH,iEAJW,MAAM,uBAEJ,OAAO,KAAK,EAAE,kBAAkB,CA2E5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAKA,8BAmeE"}
1
+ {"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAKA,8BA0eE"}