@eox/itemfilter 1.4.1 → 1.6.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/dist/eox-itemfilter.js +1654 -1567
- package/dist/eox-itemfilter.umd.cjs +139 -67
- package/package.json +16 -3
- package/src/components/results.js +7 -3
- package/src/enums/config.js +6 -0
- package/src/main.js +22 -1
- package/src/methods/results/create.js +10 -1
- package/src/style.eox.js +65 -2
- package/types/components/chips.d.ts +43 -0
- package/types/components/chips.d.ts.map +1 -0
- package/types/components/expand-container.d.ts +35 -0
- package/types/components/expand-container.d.ts.map +1 -0
- package/types/components/filters/range.d.ts +51 -0
- package/types/components/filters/range.d.ts.map +1 -0
- package/types/components/filters/selector.d.ts +135 -0
- package/types/components/filters/selector.d.ts.map +1 -0
- package/types/components/filters/spatial.d.ts +82 -0
- package/types/components/filters/spatial.d.ts.map +1 -0
- package/types/components/filters/text.d.ts +54 -0
- package/types/components/filters/text.d.ts.map +1 -0
- package/types/components/itemfilter-container.d.ts +77 -0
- package/types/components/itemfilter-container.d.ts.map +1 -0
- package/types/components/results.d.ts +88 -0
- package/types/components/results.d.ts.map +1 -0
- package/types/enums/config.d.ts +77 -0
- package/types/enums/config.d.ts.map +1 -0
- package/types/enums/index.d.ts +2 -0
- package/types/enums/index.d.ts.map +1 -0
- package/types/helpers/chip-items.d.ts +9 -0
- package/types/helpers/chip-items.d.ts.map +1 -0
- package/types/helpers/filter-client.d.ts +3 -0
- package/types/helpers/filter-client.d.ts.map +1 -0
- package/types/helpers/filter-external.d.ts +11 -0
- package/types/helpers/filter-external.d.ts.map +1 -0
- package/types/helpers/get-value.d.ts +9 -0
- package/types/helpers/get-value.d.ts.map +1 -0
- package/types/helpers/highlighting.d.ts +11 -0
- package/types/helpers/highlighting.d.ts.map +1 -0
- package/types/helpers/index.d.ts +12 -0
- package/types/helpers/index.d.ts.map +1 -0
- package/types/helpers/is-filters-dirty.d.ts +8 -0
- package/types/helpers/is-filters-dirty.d.ts.map +1 -0
- package/types/helpers/map-layers.d.ts +9 -0
- package/types/helpers/map-layers.d.ts.map +1 -0
- package/types/helpers/reset-filter.d.ts +8 -0
- package/types/helpers/reset-filter.d.ts.map +1 -0
- package/types/helpers/spatial.d.ts +3 -0
- package/types/helpers/spatial.d.ts.map +1 -0
- package/types/helpers/tab-index.d.ts +9 -0
- package/types/helpers/tab-index.d.ts.map +1 -0
- package/types/helpers/toggle-accordion.d.ts +10 -0
- package/types/helpers/toggle-accordion.d.ts.map +1 -0
- package/types/main.d.ts +290 -0
- package/types/main.d.ts.map +1 -0
- package/types/methods/chips/handler.d.ts +23 -0
- package/types/methods/chips/handler.d.ts.map +1 -0
- package/types/methods/chips/index.d.ts +2 -0
- package/types/methods/chips/index.d.ts.map +1 -0
- package/types/methods/container/handler.d.ts +35 -0
- package/types/methods/container/handler.d.ts.map +1 -0
- package/types/methods/container/index.d.ts +5 -0
- package/types/methods/container/index.d.ts.map +1 -0
- package/types/methods/container/init-popver.d.ts +9 -0
- package/types/methods/container/init-popver.d.ts.map +1 -0
- package/types/methods/container/reset-filter.d.ts +9 -0
- package/types/methods/container/reset-filter.d.ts.map +1 -0
- package/types/methods/container/reset-search.d.ts +8 -0
- package/types/methods/container/reset-search.d.ts.map +1 -0
- package/types/methods/container/search-filter.d.ts +9 -0
- package/types/methods/container/search-filter.d.ts.map +1 -0
- package/types/methods/filters/index.d.ts +5 -0
- package/types/methods/filters/index.d.ts.map +1 -0
- package/types/methods/filters/range.d.ts +23 -0
- package/types/methods/filters/range.d.ts.map +1 -0
- package/types/methods/filters/selector.d.ts +42 -0
- package/types/methods/filters/selector.d.ts.map +1 -0
- package/types/methods/filters/spatial.d.ts +26 -0
- package/types/methods/filters/spatial.d.ts.map +1 -0
- package/types/methods/filters/text.d.ts +13 -0
- package/types/methods/filters/text.d.ts.map +1 -0
- package/types/methods/itemfilter/create-filter.d.ts +11 -0
- package/types/methods/itemfilter/create-filter.d.ts.map +1 -0
- package/types/methods/itemfilter/create-reset.d.ts +11 -0
- package/types/methods/itemfilter/create-reset.d.ts.map +1 -0
- package/types/methods/itemfilter/filter-apply.d.ts +11 -0
- package/types/methods/itemfilter/filter-apply.d.ts.map +1 -0
- package/types/methods/itemfilter/index.d.ts +7 -0
- package/types/methods/itemfilter/index.d.ts.map +1 -0
- package/types/methods/itemfilter/reset-filter.d.ts +7 -0
- package/types/methods/itemfilter/reset-filter.d.ts.map +1 -0
- package/types/methods/itemfilter/search.d.ts +11 -0
- package/types/methods/itemfilter/search.d.ts.map +1 -0
- package/types/methods/itemfilter/sort-results.d.ts +10 -0
- package/types/methods/itemfilter/sort-results.d.ts.map +1 -0
- package/types/methods/results/aggregate-results.d.ts +11 -0
- package/types/methods/results/aggregate-results.d.ts.map +1 -0
- package/types/methods/results/create.d.ts +17 -0
- package/types/methods/results/create.d.ts.map +1 -0
- package/types/methods/results/index.d.ts +3 -0
- package/types/methods/results/index.d.ts.map +1 -0
- package/types/style.d.ts +2 -0
- package/types/style.d.ts.map +1 -0
- package/types/style.eox.d.ts +2 -0
- package/types/style.eox.d.ts.map +1 -0
package/types/main.d.ts
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EOxItemFilter is a custom web component that provides a comprehensive item filtering system.
|
|
3
|
+
* It includes methods for applying filters, searching, sorting results, and resetting filters.
|
|
4
|
+
* The component supports both inline and dropdown modes for filter display.
|
|
5
|
+
*
|
|
6
|
+
* @module EOxItemFilter
|
|
7
|
+
* @extends {LitElement}
|
|
8
|
+
*/
|
|
9
|
+
export class EOxItemFilter extends LitElement {
|
|
10
|
+
static get properties(): {
|
|
11
|
+
items: {
|
|
12
|
+
attribute: boolean;
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
};
|
|
15
|
+
results: {
|
|
16
|
+
state: boolean;
|
|
17
|
+
attribute: boolean;
|
|
18
|
+
type: ObjectConstructor;
|
|
19
|
+
};
|
|
20
|
+
filters: {
|
|
21
|
+
state: boolean;
|
|
22
|
+
attribute: boolean;
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
};
|
|
25
|
+
selectedResult: {
|
|
26
|
+
attribute: boolean;
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
};
|
|
29
|
+
aggregateResults: {
|
|
30
|
+
attribute: string;
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
autoSpreadSingle: {
|
|
34
|
+
attribute: string;
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
};
|
|
37
|
+
enableHighlighting: {
|
|
38
|
+
attribute: string;
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
};
|
|
41
|
+
filterProperties: {
|
|
42
|
+
attribute: boolean;
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
};
|
|
45
|
+
fuseConfig: {
|
|
46
|
+
attribute: boolean;
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
};
|
|
49
|
+
inlineMode: {
|
|
50
|
+
attribute: string;
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
};
|
|
53
|
+
matchAllWhenEmpty: {
|
|
54
|
+
attribute: string;
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
};
|
|
57
|
+
showResults: {
|
|
58
|
+
attribute: string;
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
};
|
|
61
|
+
idProperty: {
|
|
62
|
+
attribute: string;
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
titleProperty: {
|
|
66
|
+
attribute: string;
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
};
|
|
69
|
+
subTitleProperty: {
|
|
70
|
+
attribute: string;
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
};
|
|
73
|
+
imageProperty: {
|
|
74
|
+
attribute: string;
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
expandMultipleFilters: {
|
|
78
|
+
attribute: string;
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
};
|
|
81
|
+
expandResults: {
|
|
82
|
+
attribute: string;
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
};
|
|
85
|
+
expandMultipleResults: {
|
|
86
|
+
attribute: string;
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
};
|
|
89
|
+
externalFilter: {
|
|
90
|
+
attribute: boolean;
|
|
91
|
+
type: FunctionConstructor;
|
|
92
|
+
};
|
|
93
|
+
resultType: {
|
|
94
|
+
attribute: string;
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
};
|
|
97
|
+
unstyled: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
/** The items to be filtered
|
|
102
|
+
* @type Array<Object>
|
|
103
|
+
*/
|
|
104
|
+
items: Array<any>;
|
|
105
|
+
/**
|
|
106
|
+
* The state object containing the applied filters.
|
|
107
|
+
* @type Object
|
|
108
|
+
*/
|
|
109
|
+
filters: any;
|
|
110
|
+
/**
|
|
111
|
+
* The state object containing the filtered results.
|
|
112
|
+
* @type Array<Object>
|
|
113
|
+
*/
|
|
114
|
+
results: Array<any>;
|
|
115
|
+
/**
|
|
116
|
+
* The currently selected result
|
|
117
|
+
* @type Object
|
|
118
|
+
*/
|
|
119
|
+
selectedResult: any;
|
|
120
|
+
/**
|
|
121
|
+
* @type Function
|
|
122
|
+
* @private
|
|
123
|
+
*/
|
|
124
|
+
private search;
|
|
125
|
+
/**
|
|
126
|
+
* Aggregate results by a property key
|
|
127
|
+
*
|
|
128
|
+
* @type String
|
|
129
|
+
*/
|
|
130
|
+
aggregateResults: string;
|
|
131
|
+
/**
|
|
132
|
+
* Automatically spread single item summaries
|
|
133
|
+
* removing the summary header
|
|
134
|
+
*
|
|
135
|
+
* @type Boolean
|
|
136
|
+
*/
|
|
137
|
+
autoSpreadSingle: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Highlighting of search result character matches
|
|
140
|
+
*
|
|
141
|
+
* @type Boolean
|
|
142
|
+
*/
|
|
143
|
+
enableHighlighting: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Use an external search endpoint instead of fuse search.
|
|
146
|
+
* Passed properties: input string, filters object
|
|
147
|
+
*
|
|
148
|
+
* @type Function
|
|
149
|
+
*/
|
|
150
|
+
externalFilter: Function;
|
|
151
|
+
/**
|
|
152
|
+
* The filter properties.
|
|
153
|
+
* @type Array<{key?: String, keys?: Array<String>, title: String, type: String, placeholder?: String, format?: String, state?: Object}>
|
|
154
|
+
*/
|
|
155
|
+
filterProperties: Array<{
|
|
156
|
+
key?: string;
|
|
157
|
+
keys?: Array<string>;
|
|
158
|
+
title: string;
|
|
159
|
+
type: string;
|
|
160
|
+
placeholder?: string;
|
|
161
|
+
format?: string;
|
|
162
|
+
state?: any;
|
|
163
|
+
}>;
|
|
164
|
+
/**
|
|
165
|
+
* Native fuse.js config override
|
|
166
|
+
*
|
|
167
|
+
* @type Object
|
|
168
|
+
*/
|
|
169
|
+
fuseConfig: any;
|
|
170
|
+
/**
|
|
171
|
+
* Inline mode, for rendering the itemfilter in a very condensed space.
|
|
172
|
+
* Expects showResults to be false
|
|
173
|
+
*
|
|
174
|
+
* @type Boolean
|
|
175
|
+
*/
|
|
176
|
+
inlineMode: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Show all result items if nothing is input by the user
|
|
179
|
+
*
|
|
180
|
+
* @type Boolean
|
|
181
|
+
*/
|
|
182
|
+
matchAllWhenEmpty: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Display results list
|
|
185
|
+
*
|
|
186
|
+
* @type Boolean
|
|
187
|
+
*/
|
|
188
|
+
showResults: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* The property of the result items used for display
|
|
191
|
+
*
|
|
192
|
+
* @type String
|
|
193
|
+
*/
|
|
194
|
+
titleProperty: string;
|
|
195
|
+
/**
|
|
196
|
+
* The property of the result items used for a subtitle
|
|
197
|
+
*
|
|
198
|
+
* @type String
|
|
199
|
+
*/
|
|
200
|
+
subTitleProperty: string;
|
|
201
|
+
/**
|
|
202
|
+
* The property of the result items used for an image
|
|
203
|
+
*
|
|
204
|
+
* @type String
|
|
205
|
+
*/
|
|
206
|
+
imageProperty: string;
|
|
207
|
+
/**
|
|
208
|
+
* Unique id property of items
|
|
209
|
+
*
|
|
210
|
+
* @type String
|
|
211
|
+
*/
|
|
212
|
+
idProperty: string;
|
|
213
|
+
/**
|
|
214
|
+
* Allow opening multiple filter accordions in parallel
|
|
215
|
+
*
|
|
216
|
+
* @type Boolean
|
|
217
|
+
*/
|
|
218
|
+
expandMultipleFilters: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Initialize result accordions expanded
|
|
221
|
+
*
|
|
222
|
+
* @type Boolean
|
|
223
|
+
*/
|
|
224
|
+
expandResults: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Allow opening multiple result accordions in parallel
|
|
227
|
+
*
|
|
228
|
+
* @type Boolean
|
|
229
|
+
*/
|
|
230
|
+
expandMultipleResults: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Rendering type for results (can be `list`or `cards`)
|
|
233
|
+
*
|
|
234
|
+
* @type String
|
|
235
|
+
*/
|
|
236
|
+
resultType: string;
|
|
237
|
+
/**
|
|
238
|
+
* Render the element without additional styles
|
|
239
|
+
*/
|
|
240
|
+
unstyled: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Applies the filters to the items and updates the result aggregation.
|
|
243
|
+
*/
|
|
244
|
+
apply(): void;
|
|
245
|
+
/**
|
|
246
|
+
* Performs a search based on the current configuration and items.
|
|
247
|
+
* Requests an update after the search completes.
|
|
248
|
+
*/
|
|
249
|
+
searchHandler(): Promise<void>;
|
|
250
|
+
/**
|
|
251
|
+
* Sorts the given items based on the current configuration.
|
|
252
|
+
*
|
|
253
|
+
* @param {Array<object>} items - The items to be sorted.
|
|
254
|
+
* @returns {Array<object>} - The sorted items.
|
|
255
|
+
*/
|
|
256
|
+
sortResults(items: Array<object>): Array<object>;
|
|
257
|
+
/**
|
|
258
|
+
* Resets all applied filters.
|
|
259
|
+
*/
|
|
260
|
+
resetFilters(): void;
|
|
261
|
+
/**
|
|
262
|
+
* Lifecycle method called after the first update.
|
|
263
|
+
* Initializes the configuration and items, and applies the filters.
|
|
264
|
+
*
|
|
265
|
+
* @param {Map} _changedProperties - The changed properties.
|
|
266
|
+
*/
|
|
267
|
+
firstUpdated(_changedProperties: Map<any, any>): void;
|
|
268
|
+
/**
|
|
269
|
+
* Called when the element is updated.
|
|
270
|
+
* Re-Initialize itemfilter when `config` and `items` changes.
|
|
271
|
+
*
|
|
272
|
+
* @param {Map} changedProperties - The properties that have changed.
|
|
273
|
+
*/
|
|
274
|
+
updated(changedProperties: Map<any, any>): void;
|
|
275
|
+
/**
|
|
276
|
+
* Updates selected result when result component triggers the "result" event.
|
|
277
|
+
*
|
|
278
|
+
* @param {{detail: Object}} evt - "result" event triggered by result component
|
|
279
|
+
*/
|
|
280
|
+
updateResult(evt: {
|
|
281
|
+
detail: any;
|
|
282
|
+
}): void;
|
|
283
|
+
/**
|
|
284
|
+
* Renders the HTML template for the component.
|
|
285
|
+
*/
|
|
286
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
287
|
+
#private;
|
|
288
|
+
}
|
|
289
|
+
import { LitElement } from "lit";
|
|
290
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AA+BA;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BC;IAoBC;;OAEG;IACH,OAFS,UAAa,CAEL;IAEjB;;;OAGG;IACH,aAAiB;IAEjB;;;OAGG;IACH,SAFS,UAAa,CAEL;IAEjB;;;OAGG;IACH,oBAA0B;IAE1B;;;OAGG;IACH,eAEE;IAEF;;;;OAIG;IACH,yBAAiC;IAEjC;;;;;OAKG;IACH,0BAA6B;IAE7B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;;OAKG;IACH,yBAA0B;IAE1B;;;OAGG;IACH,kBAFS,MAAM;QAAC,GAAG,CAAC,SAAS;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,KAAK,SAAS;QAAC,IAAI,SAAS;QAAC,WAAW,CAAC,SAAS;QAAC,MAAM,CAAC,SAAS;QAAC,KAAK,CAAC,MAAQ;KAAC,CAAC,CAE9G;IAE1B;;;;OAIG;IACH,gBAAoB;IAEpB;;;;;OAKG;IACH,oBAAuB;IAEvB;;;;OAIG;IACH,2BAA6B;IAE7B;;;;OAIG;IACH,qBAAuB;IAEvB;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,yBAAiC;IAEjC;;;;OAIG;IACH,sBAA8B;IAE9B;;;;OAIG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,+BAAiC;IAEjC;;;;OAIG;IACH,uBAAyB;IACzB;;;;OAIG;IACH,+BAAiC;IAEjC;;;;OAIG;IACH,mBAAwB;IAExB;;OAEG;IACH,kBAAqB;IAGvB;;OAEG;IACH,cAOC;IAED;;;OAGG;IACH,+BAkBC;IAED;;;;;OAKG;IACH,mBAHW,MAAM,MAAM,CAAC,GACX,MAAM,MAAM,CAAC,CAIzB;IA0BD;;OAEG;IACH,qBAEC;IAED;;;;;OAKG;IACH,sDAcC;IAED;;;;;OAKG;IACH,gDAOC;IAED;;;;OAIG;IACH,kBAFW;QAAC,MAAM,MAAQ;KAAC,QAe1B;IAED;;OAEG;IACH,+CAiGC;;CACF;2BApeyC,KAAK"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles the click event on a chip, highlighting the clicked chip and updating the component.
|
|
3
|
+
*
|
|
4
|
+
* @param {Event} evt - The click event.
|
|
5
|
+
* @param {Object} EOxItemFilterChips - The EOxItemFilterChips component instance.
|
|
6
|
+
*/
|
|
7
|
+
export function handleChipClickMethod(evt: Event, EOxItemFilterChips: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* Handles the close event on a chip, removing the chip from the controller.
|
|
10
|
+
*
|
|
11
|
+
* @param {Event} event - The close event.
|
|
12
|
+
* @param {number} index - The index of the chip to be removed.
|
|
13
|
+
* @param {Object} EOxItemFilterChips - The EOxItemFilterChips component instance.
|
|
14
|
+
*/
|
|
15
|
+
export function handleCloseMethod(event: Event, index: number, EOxItemFilterChips: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* Handles keyboard events for the EOxItemFilterChips component.
|
|
18
|
+
*
|
|
19
|
+
* @param {Event} event - The keyboard event.
|
|
20
|
+
* @param {Object} EOxItemFilterChips - The EOxItemFilterChips component instance.
|
|
21
|
+
*/
|
|
22
|
+
export function keyboardEventListenerMethod(event: Event, EOxItemFilterChips: any): void;
|
|
23
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/methods/chips/handler.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2CAHW,KAAK,iCAWf;AAED;;;;;;GAMG;AACH,yCAJW,KAAK,SACL,MAAM,iCAMhB;AAED;;;;;GAKG;AACH,mDAHW,KAAK,iCAyBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/methods/chips/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles the click event on the form, stopping propagation if in inline mode.
|
|
3
|
+
*
|
|
4
|
+
* @param {Event} event - The click event.
|
|
5
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
6
|
+
*/
|
|
7
|
+
export function handleFormClickMethod(event: Event, EOxItemFilterContainer: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* Shows the dropdown when the component is focused, if in inline mode.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
12
|
+
*/
|
|
13
|
+
export function handleShowDropdownOnFocusMethod(EOxItemFilterContainer: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Toggles the dropdown visibility when an event occurs, stopping propagation if in inline mode.
|
|
16
|
+
*
|
|
17
|
+
* @param {Event} event - The event that triggers the toggle.
|
|
18
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
19
|
+
*/
|
|
20
|
+
export function handleToggleDropdownMethod(event: Event, EOxItemFilterContainer: any): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handles the keydown event, resetting the search and hiding the dropdown if Escape is pressed in inline mode.
|
|
23
|
+
*
|
|
24
|
+
* @param {Event} event - The keydown event.
|
|
25
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
26
|
+
*/
|
|
27
|
+
export function handleKeyDownMethod(event: Event, EOxItemFilterContainer: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Handles clicks outside the component, resetting the search and hiding the dropdown if in inline mode.
|
|
30
|
+
*
|
|
31
|
+
* @param {Event} event - The click event.
|
|
32
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
33
|
+
*/
|
|
34
|
+
export function handleClickOutsideMethod(event: Event, EOxItemFilterContainer: any): void;
|
|
35
|
+
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/methods/container/handler.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,6CAHW,KAAK,qCAKf;AAED;;;;GAIG;AACH,mFAIC;AAED;;;;;GAKG;AACH,kDAHW,KAAK,qCAQf;AAED;;;;;GAKG;AACH,2CAHW,KAAK,qCAYf;AAED;;;;;GAKG;AACH,gDAHW,KAAK,qCAaf"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as searchFilterMethod } from "./search-filter";
|
|
2
|
+
export { default as resetFilterMethod } from "./reset-filter";
|
|
3
|
+
export { default as initPopoverMethod } from "./init-popver";
|
|
4
|
+
export { handleFormClickMethod, handleShowDropdownOnFocusMethod, handleToggleDropdownMethod, handleKeyDownMethod, handleClickOutsideMethod } from "./handler";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/methods/container/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default initPopover;
|
|
2
|
+
/**
|
|
3
|
+
* Init popover autoUpdate and position
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
6
|
+
* @return {Function}
|
|
7
|
+
*/
|
|
8
|
+
declare function initPopover(EOxItemFilterContainer: any): Function;
|
|
9
|
+
//# sourceMappingURL=init-popver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-popver.d.ts","sourceRoot":"","sources":["../../../src/methods/container/init-popver.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,oEAuBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default resetFilterMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Resets a specific filter in the EOxItemFilterContainer based on the event target.
|
|
4
|
+
*
|
|
5
|
+
* @param {Event} event - The event that triggers the filter reset.
|
|
6
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
7
|
+
*/
|
|
8
|
+
declare function resetFilterMethod(event: Event, EOxItemFilterContainer: any): void;
|
|
9
|
+
//# sourceMappingURL=reset-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-filter.d.ts","sourceRoot":"","sources":["../../../src/methods/container/reset-filter.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,0CAHW,KAAK,qCAQf"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default resetSearchMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Resets the search input in the EOxItemFilterContainer and triggers a search filter update.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
6
|
+
*/
|
|
7
|
+
declare function resetSearchMethod(EOxItemFilterContainer: any): void;
|
|
8
|
+
//# sourceMappingURL=reset-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-search.d.ts","sourceRoot":"","sources":["../../../src/methods/container/reset-search.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,sEAMC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default searchFilterMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Filters the items in the EOxItemFilterContainer based on the search input.
|
|
4
|
+
*
|
|
5
|
+
* @param {Event} event - The input event that triggers the search.
|
|
6
|
+
* @param {Object} EOxItemFilterContainer - The EOxItemFilterContainer component instance.
|
|
7
|
+
*/
|
|
8
|
+
declare function searchFilterMethod(event: Event, EOxItemFilterContainer: any): void;
|
|
9
|
+
//# sourceMappingURL=search-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-filter.d.ts","sourceRoot":"","sources":["../../../src/methods/container/search-filter.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,2CAHW,KAAK,qCAmBf"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { resetTextMethod, textInputHandlerMethod } from "./text";
|
|
2
|
+
export { rangeLabelMethod, resetRangeMethod, rangeInputHandlerMethod } from "./range";
|
|
3
|
+
export { resetSelectorMethod, removeItemSelectorMethod, toggleItemSelectorMethod, handleInputSelectorMethod, handleKeyDownSelectorMethod, updatedSelectorMethod } from "./selector";
|
|
4
|
+
export { resetSpatialMethod, handleClickSpatialMethod, setupSpatialMethod, resetSpatialFilterMethod } from "./spatial";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resets the range filter to its default state and requests an update.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../components/filters/range.js").EOxItemFilterRange} EOxItemFilterRange - The EOxItemFilterRange component instance.
|
|
5
|
+
*/
|
|
6
|
+
export function resetRangeMethod(EOxItemFilterRange: import("../../components/filters/range.js").EOxItemFilterRange): void;
|
|
7
|
+
/**
|
|
8
|
+
* Handles input changes for the range filter and updates the filter state accordingly.
|
|
9
|
+
*
|
|
10
|
+
* @param {Event} evt - The input event that triggers the update.
|
|
11
|
+
* @param {Object} EOxItemFilterRange - The EOxItemFilterRange component instance.
|
|
12
|
+
*/
|
|
13
|
+
export function rangeInputHandlerMethod(evt: Event, EOxItemFilterRange: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Generates the HTML for the range labels, formatted as dates if necessary.
|
|
16
|
+
*
|
|
17
|
+
* @param {number|string} val - The value of the range label.
|
|
18
|
+
* @param {string} pos - The position of the range label (e.g., "min" or "max").
|
|
19
|
+
* @param {Object} EOxItemFilterRange - The EOxItemFilterRange component instance.
|
|
20
|
+
* @returns {TemplateResult<1>} The HTML template for the range label.
|
|
21
|
+
*/
|
|
22
|
+
export function rangeLabelMethod(val: number | string, pos: string, EOxItemFilterRange: any): TemplateResult<1>;
|
|
23
|
+
//# sourceMappingURL=range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/range.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,qDAFW,OAAO,mCAAmC,EAAE,kBAAkB,QAexE;AAED;;;;;GAKG;AACH,6CAHW,KAAK,iCAmCf;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,GAAC,MAAM,OACb,MAAM,8CAShB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resets the selector filter to its default state and updates the component.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} EOxItemFilterSelector - The EOxItemFilterSelector component instance.
|
|
5
|
+
*/
|
|
6
|
+
export function resetSelectorMethod(EOxItemFilterSelector: any): void;
|
|
7
|
+
/**
|
|
8
|
+
* Removes an item from the selected items list and updates suggestions and filter list.
|
|
9
|
+
*
|
|
10
|
+
* @param {number} index - The index of the item to remove, or -1 to remove all items.
|
|
11
|
+
* @param {Object} EOxItemFilterSelector - The EOxItemFilterSelector component instance.
|
|
12
|
+
*/
|
|
13
|
+
export function removeItemSelectorMethod(index: number, EOxItemFilterSelector: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Toggles the selection of an item and updates the component.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} item - The item to toggle.
|
|
18
|
+
* @param {Object} EOxItemFilterSelector - The EOxItemFilterSelector component instance.
|
|
19
|
+
*/
|
|
20
|
+
export function toggleItemSelectorMethod(item: any, EOxItemFilterSelector: any): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handles input changes for the selector and updates the query and suggestions.
|
|
23
|
+
*
|
|
24
|
+
* @param {Event} event - The input event.
|
|
25
|
+
* @param {Object} EOxItemFilterSelector - The EOxItemFilterSelector component instance.
|
|
26
|
+
*/
|
|
27
|
+
export function handleInputSelectorMethod(event: Event, EOxItemFilterSelector: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Handles keydown events for the selector and navigates or selects items based on the key pressed.
|
|
30
|
+
*
|
|
31
|
+
* @param {Event} event - The keydown event.
|
|
32
|
+
* @param {Object} EOxItemFilterSelector - The EOxItemFilterSelector component instance.
|
|
33
|
+
*/
|
|
34
|
+
export function handleKeyDownSelectorMethod(event: Event, EOxItemFilterSelector: any): void;
|
|
35
|
+
/**
|
|
36
|
+
* Updates the Fuse.js instance and suggestions when properties change.
|
|
37
|
+
*
|
|
38
|
+
* @param {Object} changedProperties - The properties that changed.
|
|
39
|
+
* @param {Object} EOxItemFilterSelector - The EOxItemFilterSelector component instance.
|
|
40
|
+
*/
|
|
41
|
+
export function updatedSelectorMethod(changedProperties: any, EOxItemFilterSelector: any): void;
|
|
42
|
+
//# sourceMappingURL=selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/selector.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,sEAKC;AAED;;;;;GAKG;AACH,gDAHW,MAAM,oCAWhB;AAED;;;;;GAKG;AACH,sFAuBC;AAED;;;;;GAKG;AACH,iDAHW,KAAK,oCAMf;AAED;;;;;GAKG;AACH,mDAHW,KAAK,oCAqCf;AAED;;;;;GAKG;AACH,gGAOC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resets the spatial filter to its default state and updates the component.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} EOxItemFilterSpatial - The EOxItemFilterSpatial component instance.
|
|
5
|
+
*/
|
|
6
|
+
export function resetSpatialMethod(EOxItemFilterSpatial: any): void;
|
|
7
|
+
/**
|
|
8
|
+
* Resets the spatial filter map and re-initializes it.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} EOxItemFilterSpatial - The EOxItemFilterSpatial component instance.
|
|
11
|
+
*/
|
|
12
|
+
export function resetSpatialFilterMethod(EOxItemFilterSpatial: any): void;
|
|
13
|
+
/**
|
|
14
|
+
* Handles the click event for spatial mode buttons and updates the filter state.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} mode - The selected spatial mode.
|
|
17
|
+
* @param {Object} EOxItemFilterSpatial - The EOxItemFilterSpatial component instance.
|
|
18
|
+
*/
|
|
19
|
+
export function handleClickSpatialMethod(mode: string, EOxItemFilterSpatial: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* Sets up the spatial filter map and its interactions.
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} that - The EOxItemFilterSpatial component instance.
|
|
24
|
+
*/
|
|
25
|
+
export function setupSpatialMethod(that: any): void;
|
|
26
|
+
//# sourceMappingURL=spatial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/spatial.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,oEAQC;AAED;;;;GAIG;AACH,0EAGC;AAED;;;;;GAKG;AACH,+CAHW,MAAM,mCAWhB;AAED;;;;GAIG;AACH,oDA2CC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resets the text filter to its default state and updates the component.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} EOxItemFilterText - The EOxItemFilterText component instance.
|
|
5
|
+
*/
|
|
6
|
+
export function resetTextMethod(EOxItemFilterText: any): void;
|
|
7
|
+
/**
|
|
8
|
+
* Handles input changes for the text filter and updates the filter state accordingly.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} EOxItemFilterText - The EOxItemFilterText component instance.
|
|
11
|
+
*/
|
|
12
|
+
export function textInputHandlerMethod(EOxItemFilterText: any): void;
|
|
13
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/methods/filters/text.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,8DAMC;AAED;;;;GAIG;AACH,qEAWC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default createFilterMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a filter element based on the filter object type.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} filterObject - The filter object containing filter details.
|
|
6
|
+
* @param {number} tabIndex - The tab index for the filter element.
|
|
7
|
+
* @param {Object} EOxItemFilter - The EOxItemFilter component instance.
|
|
8
|
+
* @returns {TemplateResult} The HTML template for the filter element.
|
|
9
|
+
*/
|
|
10
|
+
declare function createFilterMethod(filterObject: any, tabIndex: number, EOxItemFilter: any): TemplateResult;
|
|
11
|
+
//# sourceMappingURL=create-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-filter.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/create-filter.js"],"names":[],"mappings":";AAIA;;;;;;;GAOG;AACH,iEAJW,MAAM,sCAwEhB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default createResetMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a reset button for the filter object if it is dirty.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} filterObject - The filter object containing filter details.
|
|
6
|
+
* @param {number} tabIndex - The tab index for the reset button.
|
|
7
|
+
* @param {Object} EOxItemFilter - The EOxItemFilter component instance.
|
|
8
|
+
* @returns {TemplateResult} The HTML template for the reset button.
|
|
9
|
+
*/
|
|
10
|
+
declare function createResetMethod(filterObject: any, tabIndex: number, EOxItemFilter: any): TemplateResult;
|
|
11
|
+
//# sourceMappingURL=create-reset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reset.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/create-reset.js"],"names":[],"mappings":";AAGA;;;;;;;GAOG;AACH,gEAJW,MAAM,sCA6BhB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default filterApplyMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Applies filters to the provided items based on the given configuration and updates the EOxItemFilter instance.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} config - The configuration object for the filters.
|
|
6
|
+
* @param {Array<Object>} items - The items to be filtered.
|
|
7
|
+
* @param {Object} EOxItemFilter - The EOxItemFilter component instance.
|
|
8
|
+
* @returns {Array<string>} The aggregated results if config.aggregateResults is specified, otherwise an empty array.
|
|
9
|
+
*/
|
|
10
|
+
declare function filterApplyMethod(config: any, items: Array<any>, EOxItemFilter: any): Array<string>;
|
|
11
|
+
//# sourceMappingURL=filter-apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-apply.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/filter-apply.js"],"names":[],"mappings":";AAKA;;;;;;;GAOG;AACH,uDAJW,UAAa,uBAEX,MAAM,MAAM,CAAC,CA8HzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as filterApplyMethod } from "./filter-apply";
|
|
2
|
+
export { default as searchMethod } from "./search";
|
|
3
|
+
export { default as createFilterMethod } from "./create-filter";
|
|
4
|
+
export { default as sortResultsMethod } from "./sort-results";
|
|
5
|
+
export { default as createResetMethod } from "./create-reset";
|
|
6
|
+
export { default as resetFilterMethod } from "./reset-filter";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resets all filters in the EOxItemFilter component and triggers a search update.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} EOxItemFilter - The EOxItemFilter component instance.
|
|
5
|
+
*/
|
|
6
|
+
export default function resetFilterMethod(EOxItemFilter: any): void;
|
|
7
|
+
//# sourceMappingURL=reset-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-filter.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/reset-filter.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oEAOC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default searchMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Executes a search based on the provided configuration, items, and filters in the EOxItemFilter component.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} config - The configuration object for the search.
|
|
6
|
+
* @param {Array<Object>} items - The items to be filtered.
|
|
7
|
+
* @param {Object} EOxItemFilter - The EOxItemFilter component instance.
|
|
8
|
+
* @returns {Promise<void>} A promise that resolves when the search is complete.
|
|
9
|
+
*/
|
|
10
|
+
declare function searchMethod(config: any, items: Array<any>, EOxItemFilter: any): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=search.d.ts.map
|