@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.
Files changed (104) hide show
  1. package/dist/eox-itemfilter.js +1654 -1567
  2. package/dist/eox-itemfilter.umd.cjs +139 -67
  3. package/package.json +16 -3
  4. package/src/components/results.js +7 -3
  5. package/src/enums/config.js +6 -0
  6. package/src/main.js +22 -1
  7. package/src/methods/results/create.js +10 -1
  8. package/src/style.eox.js +65 -2
  9. package/types/components/chips.d.ts +43 -0
  10. package/types/components/chips.d.ts.map +1 -0
  11. package/types/components/expand-container.d.ts +35 -0
  12. package/types/components/expand-container.d.ts.map +1 -0
  13. package/types/components/filters/range.d.ts +51 -0
  14. package/types/components/filters/range.d.ts.map +1 -0
  15. package/types/components/filters/selector.d.ts +135 -0
  16. package/types/components/filters/selector.d.ts.map +1 -0
  17. package/types/components/filters/spatial.d.ts +82 -0
  18. package/types/components/filters/spatial.d.ts.map +1 -0
  19. package/types/components/filters/text.d.ts +54 -0
  20. package/types/components/filters/text.d.ts.map +1 -0
  21. package/types/components/itemfilter-container.d.ts +77 -0
  22. package/types/components/itemfilter-container.d.ts.map +1 -0
  23. package/types/components/results.d.ts +88 -0
  24. package/types/components/results.d.ts.map +1 -0
  25. package/types/enums/config.d.ts +77 -0
  26. package/types/enums/config.d.ts.map +1 -0
  27. package/types/enums/index.d.ts +2 -0
  28. package/types/enums/index.d.ts.map +1 -0
  29. package/types/helpers/chip-items.d.ts +9 -0
  30. package/types/helpers/chip-items.d.ts.map +1 -0
  31. package/types/helpers/filter-client.d.ts +3 -0
  32. package/types/helpers/filter-client.d.ts.map +1 -0
  33. package/types/helpers/filter-external.d.ts +11 -0
  34. package/types/helpers/filter-external.d.ts.map +1 -0
  35. package/types/helpers/get-value.d.ts +9 -0
  36. package/types/helpers/get-value.d.ts.map +1 -0
  37. package/types/helpers/highlighting.d.ts +11 -0
  38. package/types/helpers/highlighting.d.ts.map +1 -0
  39. package/types/helpers/index.d.ts +12 -0
  40. package/types/helpers/index.d.ts.map +1 -0
  41. package/types/helpers/is-filters-dirty.d.ts +8 -0
  42. package/types/helpers/is-filters-dirty.d.ts.map +1 -0
  43. package/types/helpers/map-layers.d.ts +9 -0
  44. package/types/helpers/map-layers.d.ts.map +1 -0
  45. package/types/helpers/reset-filter.d.ts +8 -0
  46. package/types/helpers/reset-filter.d.ts.map +1 -0
  47. package/types/helpers/spatial.d.ts +3 -0
  48. package/types/helpers/spatial.d.ts.map +1 -0
  49. package/types/helpers/tab-index.d.ts +9 -0
  50. package/types/helpers/tab-index.d.ts.map +1 -0
  51. package/types/helpers/toggle-accordion.d.ts +10 -0
  52. package/types/helpers/toggle-accordion.d.ts.map +1 -0
  53. package/types/main.d.ts +290 -0
  54. package/types/main.d.ts.map +1 -0
  55. package/types/methods/chips/handler.d.ts +23 -0
  56. package/types/methods/chips/handler.d.ts.map +1 -0
  57. package/types/methods/chips/index.d.ts +2 -0
  58. package/types/methods/chips/index.d.ts.map +1 -0
  59. package/types/methods/container/handler.d.ts +35 -0
  60. package/types/methods/container/handler.d.ts.map +1 -0
  61. package/types/methods/container/index.d.ts +5 -0
  62. package/types/methods/container/index.d.ts.map +1 -0
  63. package/types/methods/container/init-popver.d.ts +9 -0
  64. package/types/methods/container/init-popver.d.ts.map +1 -0
  65. package/types/methods/container/reset-filter.d.ts +9 -0
  66. package/types/methods/container/reset-filter.d.ts.map +1 -0
  67. package/types/methods/container/reset-search.d.ts +8 -0
  68. package/types/methods/container/reset-search.d.ts.map +1 -0
  69. package/types/methods/container/search-filter.d.ts +9 -0
  70. package/types/methods/container/search-filter.d.ts.map +1 -0
  71. package/types/methods/filters/index.d.ts +5 -0
  72. package/types/methods/filters/index.d.ts.map +1 -0
  73. package/types/methods/filters/range.d.ts +23 -0
  74. package/types/methods/filters/range.d.ts.map +1 -0
  75. package/types/methods/filters/selector.d.ts +42 -0
  76. package/types/methods/filters/selector.d.ts.map +1 -0
  77. package/types/methods/filters/spatial.d.ts +26 -0
  78. package/types/methods/filters/spatial.d.ts.map +1 -0
  79. package/types/methods/filters/text.d.ts +13 -0
  80. package/types/methods/filters/text.d.ts.map +1 -0
  81. package/types/methods/itemfilter/create-filter.d.ts +11 -0
  82. package/types/methods/itemfilter/create-filter.d.ts.map +1 -0
  83. package/types/methods/itemfilter/create-reset.d.ts +11 -0
  84. package/types/methods/itemfilter/create-reset.d.ts.map +1 -0
  85. package/types/methods/itemfilter/filter-apply.d.ts +11 -0
  86. package/types/methods/itemfilter/filter-apply.d.ts.map +1 -0
  87. package/types/methods/itemfilter/index.d.ts +7 -0
  88. package/types/methods/itemfilter/index.d.ts.map +1 -0
  89. package/types/methods/itemfilter/reset-filter.d.ts +7 -0
  90. package/types/methods/itemfilter/reset-filter.d.ts.map +1 -0
  91. package/types/methods/itemfilter/search.d.ts +11 -0
  92. package/types/methods/itemfilter/search.d.ts.map +1 -0
  93. package/types/methods/itemfilter/sort-results.d.ts +10 -0
  94. package/types/methods/itemfilter/sort-results.d.ts.map +1 -0
  95. package/types/methods/results/aggregate-results.d.ts +11 -0
  96. package/types/methods/results/aggregate-results.d.ts.map +1 -0
  97. package/types/methods/results/create.d.ts +17 -0
  98. package/types/methods/results/create.d.ts.map +1 -0
  99. package/types/methods/results/index.d.ts +3 -0
  100. package/types/methods/results/index.d.ts.map +1 -0
  101. package/types/style.d.ts +2 -0
  102. package/types/style.d.ts.map +1 -0
  103. package/types/style.eox.d.ts +2 -0
  104. package/types/style.eox.d.ts.map +1 -0
@@ -0,0 +1,54 @@
1
+ /**
2
+ * EOxItemFilterText is a custom web component that provides a text input field for filtering items.
3
+ *
4
+ * @module EOxItemFilterText
5
+ * @extends LitElement
6
+ * @property {Object} filterObject - The filter object containing the state and placeholder.
7
+ * @property {Number} tabIndex - The tab index for the input element.
8
+ * @property {Boolean} unstyled - Flag to determine if default styles should be applied.
9
+ */
10
+ export class EOxItemFilterText extends LitElement {
11
+ static get properties(): {
12
+ filterObject: {
13
+ attribute: boolean;
14
+ type: ObjectConstructor;
15
+ };
16
+ tabIndex: {
17
+ attribute: boolean;
18
+ type: NumberConstructor;
19
+ };
20
+ unstyled: {
21
+ type: BooleanConstructor;
22
+ };
23
+ isValid: {
24
+ state: boolean;
25
+ type: BooleanConstructor;
26
+ };
27
+ };
28
+ /**
29
+ * @type Object
30
+ */
31
+ filterObject: any;
32
+ /**
33
+ * @type Boolean
34
+ */
35
+ unstyled: boolean;
36
+ /**
37
+ * Resets the text input by calling the resetTextMethod with the current context.
38
+ */
39
+ reset(): void;
40
+ /**
41
+ * Debounced version of the input handler to improve performance by limiting the rate at which the input handler is called.
42
+ */
43
+ debouncedInputHandler: import("lodash").DebouncedFuncLeading<() => void>;
44
+ /**
45
+ * Overrides the default createRenderRoot method to render in the light DOM.
46
+ *
47
+ * @returns {this} - The current instance to render in the light DOM.
48
+ */
49
+ createRenderRoot(): this;
50
+ render(): undefined;
51
+ #private;
52
+ }
53
+ import { LitElement } from "lit";
54
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/filters/text.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH;IAEE;;;;;;;;;;;;;;;;MAOC;IAKC;;OAEG;IACH,kBAAsB;IAEtB;;OAEG;IACH,kBAAqB;IAsBvB;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,yEAEG;IAEH;;;;OAIG;IACH,oBAFa,IAAI,CAIhB;IAGD,oBA4BC;;CACF;2BA/GgC,KAAK"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * EOxItemFilterContainer is a custom web component that provides a container for item filters.
3
+ *
4
+ * @module EOxItemFilterContainer
5
+ * @extends LitElement
6
+ * @property {Object} filterProperties - The properties for the filter.
7
+ * @property {Boolean} inlineMode - Flag to determine if the component should operate in inline mode.
8
+ * @property {Boolean} unstyled - Flag to determine if default styles should be applied.
9
+ * @property {Object} filters - The filters applied in the container.
10
+ */
11
+ export class EOxItemFilterContainer extends LitElement {
12
+ static get properties(): {
13
+ filterProperties: {
14
+ attribute: boolean;
15
+ type: ObjectConstructor;
16
+ };
17
+ inlineMode: {
18
+ attribute: string;
19
+ type: BooleanConstructor;
20
+ };
21
+ unstyled: {
22
+ type: BooleanConstructor;
23
+ };
24
+ filters: {
25
+ state: boolean;
26
+ type: ObjectConstructor;
27
+ };
28
+ };
29
+ /**
30
+ * @type Object
31
+ */
32
+ filterProperties: any;
33
+ /**
34
+ * @type Boolean
35
+ */
36
+ unstyled: boolean;
37
+ /**
38
+ * @type Boolean
39
+ */
40
+ inlineMode: boolean;
41
+ /**
42
+ * @type Object
43
+ */
44
+ filters: any;
45
+ /**
46
+ * @type Function
47
+ */
48
+ _handleClickOutside: Function;
49
+ /**
50
+ * @type Function
51
+ */
52
+ _handleKeyDown: Function;
53
+ /**
54
+ * @type Boolean
55
+ */
56
+ set showDropdown(show: boolean);
57
+ get showDropdown(): boolean;
58
+ /**
59
+ * Stores the autoUpdate cleanup function to be called
60
+ * when disconnected
61
+ * @private
62
+ */
63
+ private _overlayCleanup;
64
+ /**
65
+ * Re renders when inline mode is configured
66
+ *
67
+ */
68
+ updateInline(): void;
69
+ updated(_changedProperties: any): void;
70
+ /**
71
+ * Renders the HTML template for the component.
72
+ */
73
+ render(): import("lit-html").TemplateResult<1>;
74
+ #private;
75
+ }
76
+ import { LitElement } from "lit";
77
+ //# sourceMappingURL=itemfilter-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemfilter-container.d.ts","sourceRoot":"","sources":["../../src/components/itemfilter-container.js"],"names":[],"mappings":"AAeA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;;;;;;;;MAOC;IAKC;;OAEG;IACH,sBAA0B;IAE1B;;OAEG;IACH,kBAAqB;IAErB;;OAEG;IACH,oBAAuB;IAEvB;;OAEG;IACH,aAAiB;IAEjB;;OAEG;IACH,8BAA8D;IAE9D;;OAEG;IACH,yBAAoD;IAGtD;;OAEG;IACH,gCAEC;IAED,4BAEC;IA6CD;;;;OAIG;IACH,wBAAoB;IAuEpB;;;OAGG;IACH,qBAEC;IAED,uCAKC;IAED;;OAEG;IACH,+CAmEC;;CACF;2BA9RgC,KAAK"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * EOxItemFilterResults is a custom web component that displays the results of item filtering.
3
+ * It uses the LitElement base class and integrates with external methods for aggregating results
4
+ * and creating item details and lists.
5
+ *
6
+ * @module EOxItemFilterResults
7
+ * @extends LitElement
8
+ * @property {Object} config - The configuration object for the results display.
9
+ * @property {Object} results - The state object containing the filter results.
10
+ * @property {Object} filters - The state object containing the applied filters.
11
+ * @property {Array} resultAggregation - The array of properties used for result aggregation.
12
+ * @property {Object} selectedResult - Property with pre-selected result
13
+ */
14
+ export class EOxItemFilterResults extends LitElement {
15
+ static get properties(): {
16
+ config: {
17
+ attribute: boolean;
18
+ type: ObjectConstructor;
19
+ };
20
+ results: {
21
+ state: boolean;
22
+ type: ObjectConstructor;
23
+ };
24
+ filters: {
25
+ state: boolean;
26
+ type: ObjectConstructor;
27
+ };
28
+ resultAggregation: {
29
+ attribute: boolean;
30
+ type: ArrayConstructor;
31
+ };
32
+ selectedResult: {
33
+ state: boolean;
34
+ type: ObjectConstructor;
35
+ };
36
+ resultType: {
37
+ attribute: string;
38
+ type: StringConstructor;
39
+ };
40
+ };
41
+ /**
42
+ * @type Object
43
+ */
44
+ config: any;
45
+ /**
46
+ * @type Object
47
+ */
48
+ filters: any;
49
+ /**
50
+ * @type Array
51
+ */
52
+ resultAggregation: any[];
53
+ /**
54
+ * @type Object
55
+ */
56
+ selectedResult: any;
57
+ /**
58
+ * @type String("list"|"card")
59
+ */
60
+ resultType: string;
61
+ /**
62
+ * Aggregates results based on the specified property.
63
+ *
64
+ * @param {Array} items - The array of items to be aggregated.
65
+ * @param {string} property - The property used for aggregation.
66
+ * @returns {Array} - The aggregated results.
67
+ */
68
+ aggregateResults(items: any[], property: string): any[];
69
+ /**
70
+ * Overrides the default createRenderRoot method to render in the light DOM.
71
+ *
72
+ * @returns {this} - The current instance to render in the light DOM.
73
+ */
74
+ createRenderRoot(): this;
75
+ /**
76
+ * Handles the toggle event for accordion.
77
+ *
78
+ * @param {Event} event - The toggle event.
79
+ */
80
+ handleAccordion(event: Event): void;
81
+ /**
82
+ * Renders the HTML template for the component.
83
+ */
84
+ render(): import("lit-html").TemplateResult<1>;
85
+ #private;
86
+ }
87
+ import { LitElement } from "lit";
88
+ //# sourceMappingURL=results.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/components/results.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;GAYG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;MASC;IAKC;;OAEG;IACH,YAAkB;IAElB;;OAEG;IACH,aAAiB;IAEjB;;OAEG;IACH,yBAA2B;IAE3B;;OAEG;IACH,oBAA0B;IAE1B;;OAEG;IACH,mBAAwB;IAyB1B;;;;;;OAMG;IACH,yCAHW,MAAM,SAKhB;IAED;;;;OAIG;IACH,oBAFa,IAAI,CAIhB;IAED;;;;OAIG;IACH,uBAFW,KAAK,QAIf;IAED;;OAEG;IACH,+CAqCC;;CACF;2BA7JyC,KAAK"}
@@ -0,0 +1,77 @@
1
+ export const ELEMENT_CONFIG: Readonly<{
2
+ /**
3
+ * Aggregate results by a property key
4
+ */
5
+ aggregateResults: any;
6
+ /**
7
+ * Automatically spread single item summaries
8
+ * removing the summary header
9
+ */
10
+ autoSpreadSingle: false;
11
+ /**
12
+ * Highlighting of search result character matches
13
+ */
14
+ enableHighlighting: false;
15
+ /**
16
+ * Use an external search endpoint instead of fuse search.
17
+ * Passed properties: input string, filters object
18
+ *
19
+ * (input, filters) => {}
20
+ */
21
+ externalFilter: () => void;
22
+ /**
23
+ * The filter properties.
24
+ */
25
+ filterProperties: any[];
26
+ /**
27
+ * Native fuse.js config override
28
+ */
29
+ fuseConfig: {};
30
+ /**
31
+ * Inline mode, for rendering the itemfilter in a very condensed space.
32
+ * Expects showResults to be false
33
+ */
34
+ inlineMode: false;
35
+ /**
36
+ * Show all result items if nothing is input by the user
37
+ * @default true
38
+ */
39
+ matchAllWhenEmpty: true;
40
+ /**
41
+ * Display results list
42
+ */
43
+ showResults: true;
44
+ /**
45
+ * Unique id property of items
46
+ */
47
+ idProperty: "id";
48
+ /**
49
+ * The property of the result items used for display
50
+ */
51
+ titleProperty: "title";
52
+ /**
53
+ * The property of the result items used for a subtitle
54
+ */
55
+ subTitleProperty: any;
56
+ /**
57
+ * The property of the result items used for an image
58
+ */
59
+ imageProperty: any;
60
+ /**
61
+ * Allow opening multiple filter accordions in parallel
62
+ * @default true
63
+ */
64
+ expandMultipleFilters: true;
65
+ /**
66
+ * Initialize result accordions expanded
67
+ * @default true
68
+ */
69
+ expandResults: true;
70
+ /**
71
+ * Allow opening multiple result accordions in parallel
72
+ * @default true
73
+ */
74
+ expandMultipleResults: true;
75
+ }>;
76
+ export const ELEMENT_PROPERTIES: string[];
77
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/enums/config.js"],"names":[],"mappings":"AAAA;IACE;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;;;;OAKG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;GAEF;AAEH,0CAkBE"}
@@ -0,0 +1,2 @@
1
+ export { ELEMENT_CONFIG, ELEMENT_PROPERTIES } from "./config";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export default getChipItems;
2
+ /**
3
+ * Generates an array of chip items from the given filters.
4
+ *
5
+ * @param {Object} filters - An object containing filter data.
6
+ * @returns {Array<Object>} An array of chip item objects.
7
+ */
8
+ declare function getChipItems(filters: any): Array<any>;
9
+ //# sourceMappingURL=chip-items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chip-items.d.ts","sourceRoot":"","sources":["../../src/helpers/chip-items.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,6CAFa,UAAa,CAUzB"}
@@ -0,0 +1,3 @@
1
+ export function indexItems(items: Array<any>, fuseConfig: any): void;
2
+ export function filter(items: Array<any>, filters: any, config: any): Promise<Array<any>>;
3
+ //# sourceMappingURL=filter-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-client.d.ts","sourceRoot":"","sources":["../../src/helpers/filter-client.js"],"names":[],"mappings":"AAYO,kCAHI,UAAa,yBAWvB;AAUM,8BALI,UAAa,8BAGX,QAAQ,UAAa,CAAC,CAsJlC"}
@@ -0,0 +1,11 @@
1
+ export default filterExternal;
2
+ /**
3
+ * Fetches and filters items based on the provided filters and configuration using an external API.
4
+ *
5
+ * @param {Array<Object>} items - The items to be filtered.
6
+ * @param {Object} filters - The filters to be applied.
7
+ * @param {Object} config - Configuration for filtering behavior.
8
+ * @returns {Promise<Array<Object>>} The filtered items from the external API.
9
+ */
10
+ declare function filterExternal(items: Array<any>, filters: any, config: any): Promise<Array<any>>;
11
+ //# sourceMappingURL=filter-external.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-external.d.ts","sourceRoot":"","sources":["../../src/helpers/filter-external.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;AACH,uCALW,UAAa,8BAGX,QAAQ,UAAa,CAAC,CASlC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Get value based on nested key or individual key
3
+ *
4
+ * @param {string} key - Key to identify the value
5
+ * @param {Object} items - Items contain list of key & it's value
6
+ * @returns {any}
7
+ */
8
+ export default function getValue(key: string, items: any): any;
9
+ //# sourceMappingURL=get-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-value.d.ts","sourceRoot":"","sources":["../../src/helpers/get-value.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,sCAJW,MAAM,eAEJ,GAAG,CAMf"}
@@ -0,0 +1,11 @@
1
+ export default highlight;
2
+ /**
3
+ * Highlights matched text in the Fuse.js search results.
4
+ *
5
+ * @param {Array<Object>} fuseSearchResult - The search results from Fuse.js.
6
+ * @param {string} [highlightClassName="highlight"] - The CSS class name to be used for highlighting.
7
+ * @param {string} [matchKey="title"] - The key of the object where matches should be highlighted.
8
+ * @returns {Array<Object>} The search results with highlighted matches.
9
+ */
10
+ declare function highlight(fuseSearchResult: Array<any>, highlightClassName?: string, matchKey?: string): Array<any>;
11
+ //# sourceMappingURL=highlighting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlighting.d.ts","sourceRoot":"","sources":["../../src/helpers/highlighting.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;AACH,6CALW,UAAa,uBACb,MAAM,aACN,MAAM,GACJ,UAAa,CAsEzB"}
@@ -0,0 +1,12 @@
1
+ export { default as highlight } from "./highlighting";
2
+ export { default as getMapLayers } from "./map-layers";
3
+ export { default as resetFilter } from "./reset-filter";
4
+ export { default as getTabIndex } from "./tab-index";
5
+ export { default as getChipItems } from "./chip-items";
6
+ export { default as isFiltersDirty } from "./is-filters-dirty";
7
+ export { default as filterExternal } from "./filter-external";
8
+ export { default as toggleAccordion } from "./toggle-accordion";
9
+ export { default as getValue } from "./get-value";
10
+ export { intersects, within } from "./spatial";
11
+ export { indexItems, filter } from "./filter-client";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Checks if any of the filters are dirty.
3
+ *
4
+ * @param {Object} filters - An object containing filter data.
5
+ * @returns {boolean} True if any filter is dirty, otherwise false.
6
+ */
7
+ export default function isFiltersDirty(filters: any): boolean;
8
+ //# sourceMappingURL=is-filters-dirty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-filters-dirty.d.ts","sourceRoot":"","sources":["../../src/helpers/is-filters-dirty.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,sDAFa,OAAO,CAQnB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generates an array of map layer configurations.
3
+ *
4
+ * @param {Object} [geometry] - Optional geometry data to include in the Vector source.
5
+ * @param {string} [url] - Optional URL for the GeoJSON data source.
6
+ * @returns {Array<Object>} An array of map layer configurations.
7
+ */
8
+ export default function getMapLayers(geometry?: any, url?: string): Array<any>;
9
+ //# sourceMappingURL=map-layers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-layers.d.ts","sourceRoot":"","sources":["../../src/helpers/map-layers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,2DAHW,MAAM,GACJ,UAAa,CAoCzB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Resets the given filter object to its default state.
3
+ *
4
+ * @param {Object} filterObject - The filter object to reset.
5
+ * @returns {Object|null} The reset filter object or null if the filter was not dirty.
6
+ */
7
+ export default function resetFilter(filterObject: any): any | null;
8
+ //# sourceMappingURL=reset-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-filter.d.ts","sourceRoot":"","sources":["../../src/helpers/reset-filter.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wDAFa,MAAO,IAAI,CAuDvB"}
@@ -0,0 +1,3 @@
1
+ export function intersects(itemGeometry: any, filterGeometry: any): boolean;
2
+ export function within(itemGeometry: any, filterGeometry: any): boolean;
3
+ //# sourceMappingURL=spatial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../src/helpers/spatial.js"],"names":[],"mappings":"AAUO,oEAFM,OAAO,CASnB;AASM,gEAFM,OAAO,CAUnB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Calculates the tab index based on the main index and sub-index.
3
+ *
4
+ * @param {number} index - The main index.
5
+ * @param {number} subIndex - The sub-index.
6
+ * @returns {number} The calculated tab index.
7
+ */
8
+ export default function getTabIndex(index: number, subIndex: number): number;
9
+ //# sourceMappingURL=tab-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-index.d.ts","sourceRoot":"","sources":["../../src/helpers/tab-index.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,2CAJW,MAAM,YACN,MAAM,GACJ,MAAM,CAOlB"}
@@ -0,0 +1,10 @@
1
+ export default toggleAccordion;
2
+ /**
3
+ * Handles the toggle event for the accordion.
4
+ *
5
+ * @param {Event} event - The toggle event.
6
+ * @param {Object} config - The configuration object for item-filter.
7
+ * @param {Element} that
8
+ */
9
+ declare function toggleAccordion(event: Event, config: any, that: Element): void;
10
+ //# sourceMappingURL=toggle-accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-accordion.d.ts","sourceRoot":"","sources":["../../src/helpers/toggle-accordion.js"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,wCAJW,KAAK,qBAEL,OAAO,QA+BjB"}