@eox/itemfilter 1.4.0 → 1.5.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 (100) hide show
  1. package/dist/eox-itemfilter.js +964 -957
  2. package/dist/eox-itemfilter.umd.cjs +43 -43
  3. package/package.json +16 -3
  4. package/src/helpers/chip-items.js +1 -1
  5. package/types/components/chips.d.ts +43 -0
  6. package/types/components/chips.d.ts.map +1 -0
  7. package/types/components/expand-container.d.ts +35 -0
  8. package/types/components/expand-container.d.ts.map +1 -0
  9. package/types/components/filters/range.d.ts +51 -0
  10. package/types/components/filters/range.d.ts.map +1 -0
  11. package/types/components/filters/selector.d.ts +135 -0
  12. package/types/components/filters/selector.d.ts.map +1 -0
  13. package/types/components/filters/spatial.d.ts +82 -0
  14. package/types/components/filters/spatial.d.ts.map +1 -0
  15. package/types/components/filters/text.d.ts +54 -0
  16. package/types/components/filters/text.d.ts.map +1 -0
  17. package/types/components/itemfilter-container.d.ts +77 -0
  18. package/types/components/itemfilter-container.d.ts.map +1 -0
  19. package/types/components/results.d.ts +80 -0
  20. package/types/components/results.d.ts.map +1 -0
  21. package/types/enums/config.d.ts +73 -0
  22. package/types/enums/config.d.ts.map +1 -0
  23. package/types/enums/index.d.ts +2 -0
  24. package/types/enums/index.d.ts.map +1 -0
  25. package/types/helpers/chip-items.d.ts +9 -0
  26. package/types/helpers/chip-items.d.ts.map +1 -0
  27. package/types/helpers/filter-client.d.ts +3 -0
  28. package/types/helpers/filter-client.d.ts.map +1 -0
  29. package/types/helpers/filter-external.d.ts +11 -0
  30. package/types/helpers/filter-external.d.ts.map +1 -0
  31. package/types/helpers/get-value.d.ts +9 -0
  32. package/types/helpers/get-value.d.ts.map +1 -0
  33. package/types/helpers/highlighting.d.ts +11 -0
  34. package/types/helpers/highlighting.d.ts.map +1 -0
  35. package/types/helpers/index.d.ts +12 -0
  36. package/types/helpers/index.d.ts.map +1 -0
  37. package/types/helpers/is-filters-dirty.d.ts +8 -0
  38. package/types/helpers/is-filters-dirty.d.ts.map +1 -0
  39. package/types/helpers/map-layers.d.ts +9 -0
  40. package/types/helpers/map-layers.d.ts.map +1 -0
  41. package/types/helpers/reset-filter.d.ts +8 -0
  42. package/types/helpers/reset-filter.d.ts.map +1 -0
  43. package/types/helpers/spatial.d.ts +3 -0
  44. package/types/helpers/spatial.d.ts.map +1 -0
  45. package/types/helpers/tab-index.d.ts +9 -0
  46. package/types/helpers/tab-index.d.ts.map +1 -0
  47. package/types/helpers/toggle-accordion.d.ts +10 -0
  48. package/types/helpers/toggle-accordion.d.ts.map +1 -0
  49. package/types/main.d.ts +270 -0
  50. package/types/main.d.ts.map +1 -0
  51. package/types/methods/chips/handler.d.ts +23 -0
  52. package/types/methods/chips/handler.d.ts.map +1 -0
  53. package/types/methods/chips/index.d.ts +2 -0
  54. package/types/methods/chips/index.d.ts.map +1 -0
  55. package/types/methods/container/handler.d.ts +35 -0
  56. package/types/methods/container/handler.d.ts.map +1 -0
  57. package/types/methods/container/index.d.ts +5 -0
  58. package/types/methods/container/index.d.ts.map +1 -0
  59. package/types/methods/container/init-popver.d.ts +9 -0
  60. package/types/methods/container/init-popver.d.ts.map +1 -0
  61. package/types/methods/container/reset-filter.d.ts +9 -0
  62. package/types/methods/container/reset-filter.d.ts.map +1 -0
  63. package/types/methods/container/reset-search.d.ts +8 -0
  64. package/types/methods/container/reset-search.d.ts.map +1 -0
  65. package/types/methods/container/search-filter.d.ts +9 -0
  66. package/types/methods/container/search-filter.d.ts.map +1 -0
  67. package/types/methods/filters/index.d.ts +5 -0
  68. package/types/methods/filters/index.d.ts.map +1 -0
  69. package/types/methods/filters/range.d.ts +23 -0
  70. package/types/methods/filters/range.d.ts.map +1 -0
  71. package/types/methods/filters/selector.d.ts +42 -0
  72. package/types/methods/filters/selector.d.ts.map +1 -0
  73. package/types/methods/filters/spatial.d.ts +26 -0
  74. package/types/methods/filters/spatial.d.ts.map +1 -0
  75. package/types/methods/filters/text.d.ts +13 -0
  76. package/types/methods/filters/text.d.ts.map +1 -0
  77. package/types/methods/itemfilter/create-filter.d.ts +11 -0
  78. package/types/methods/itemfilter/create-filter.d.ts.map +1 -0
  79. package/types/methods/itemfilter/create-reset.d.ts +11 -0
  80. package/types/methods/itemfilter/create-reset.d.ts.map +1 -0
  81. package/types/methods/itemfilter/filter-apply.d.ts +11 -0
  82. package/types/methods/itemfilter/filter-apply.d.ts.map +1 -0
  83. package/types/methods/itemfilter/index.d.ts +7 -0
  84. package/types/methods/itemfilter/index.d.ts.map +1 -0
  85. package/types/methods/itemfilter/reset-filter.d.ts +7 -0
  86. package/types/methods/itemfilter/reset-filter.d.ts.map +1 -0
  87. package/types/methods/itemfilter/search.d.ts +11 -0
  88. package/types/methods/itemfilter/search.d.ts.map +1 -0
  89. package/types/methods/itemfilter/sort-results.d.ts +10 -0
  90. package/types/methods/itemfilter/sort-results.d.ts.map +1 -0
  91. package/types/methods/results/aggregate-results.d.ts +11 -0
  92. package/types/methods/results/aggregate-results.d.ts.map +1 -0
  93. package/types/methods/results/create.d.ts +17 -0
  94. package/types/methods/results/create.d.ts.map +1 -0
  95. package/types/methods/results/index.d.ts +3 -0
  96. package/types/methods/results/index.d.ts.map +1 -0
  97. package/types/style.d.ts +2 -0
  98. package/types/style.d.ts.map +1 -0
  99. package/types/style.eox.d.ts +2 -0
  100. package/types/style.eox.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/itemfilter",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@types/geojson": "^7946.0.14",
@@ -12,11 +12,24 @@
12
12
  "node": ">=18.0.0"
13
13
  },
14
14
  "files": [
15
+ "types",
15
16
  "dist",
16
17
  "src"
17
18
  ],
18
19
  "main": "./src/main.js",
20
+ "types": "./types/main.d.ts",
21
+ "typesVersions": {
22
+ "*": {
23
+ ".": [
24
+ "./types/main.d.ts"
25
+ ],
26
+ "src/*": [
27
+ "./types/*"
28
+ ]
29
+ }
30
+ },
19
31
  "scripts": {
32
+ "prepack": "tsc -p tsconfig.build.json || true",
20
33
  "build": "vite build",
21
34
  "watch": "vite build --watch"
22
35
  },
@@ -26,13 +39,13 @@
26
39
  "@turf/boolean-intersects": "^7.0.0",
27
40
  "@turf/boolean-within": "^7.0.0",
28
41
  "fuse.js": "^7.0.0",
29
- "lit": "^3.0.2",
42
+ "lit": "^3.2.0",
30
43
  "lodash.debounce": "^4.0.8",
31
44
  "lodash.flatmap": "^4.5.0",
32
45
  "lodash.uniq": "^4.5.0",
33
46
  "toolcool-range-slider": "^4.0.27"
34
47
  },
35
48
  "peerDependencies": {
36
- "@eox/map": "^1.15.0"
49
+ "@eox/map": "*"
37
50
  }
38
51
  }
@@ -9,7 +9,7 @@ import { html } from "lit";
9
9
  function getChipItems(filters) {
10
10
  return Object.keys(filters)
11
11
  .map((filter) => ({
12
- title: html`${filters[filter].title}:
12
+ title: html`${filters[filter].title || filters[filter].key}:
13
13
  <strong>${filters[filter].stringifiedState}</strong>`,
14
14
  key: filter,
15
15
  }))
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EOxItemFilterChipsV2 is a custom web component that provides a chip-style item selector.
3
+ * It uses the LitElement base class and integrates with external methods for handling chip clicks,
4
+ * close events, and keyboard events.
5
+ *
6
+ * @module EOxItemFilterChips
7
+ * @extends LitElement
8
+ * @property {Object} items - The items to be displayed as chips.
9
+ * @property {Object} controller - The controller object to manage chip actions.
10
+ */
11
+ export class EOxItemFilterChipsV2 extends LitElement {
12
+ static get properties(): {
13
+ items: {
14
+ attribute: boolean;
15
+ type: ObjectConstructor;
16
+ };
17
+ controller: {
18
+ attribute: boolean;
19
+ type: ObjectConstructor;
20
+ };
21
+ };
22
+ /**
23
+ * @type Object
24
+ */
25
+ items: any;
26
+ /**
27
+ * @type Object
28
+ */
29
+ controller: any;
30
+ /**
31
+ * Dispatches a custom event with the selected items.
32
+ *
33
+ * @private
34
+ */
35
+ private _dispatchEvent;
36
+ /**
37
+ * Renders the HTML template for the component.
38
+ */
39
+ render(): import("lit-html").TemplateResult<1>;
40
+ #private;
41
+ }
42
+ import { LitElement } from "lit";
43
+ //# sourceMappingURL=chips.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chips.d.ts","sourceRoot":"","sources":["../../src/components/chips.js"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;MAKC;IAKC;;OAEG;IACH,WAAe;IAEf;;OAEG;IACH,gBAAoB;IA2BtB;;;;OAIG;IACH,uBAMC;IAsBD;;OAEG;IACH,+CA0BC;;CACF;2BAhIgC,KAAK"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * EOxItemFilterExpandContainer is a custom web component that provides an expandable container for item filters.
3
+ * The component supports a featured view and an expandable details view.
4
+ *
5
+ * @module EOxItemFilterExpandContainer
6
+ * @extends LitElement
7
+ * @property {Object} filterObject - The filter object containing state and properties such as title and expanded state.
8
+ * @property {Boolean} unstyled - Flag to determine if default styles should be applied.
9
+ */
10
+ export class EOxItemFilterExpandContainer extends LitElement {
11
+ static get properties(): {
12
+ filterObject: {
13
+ attribute: boolean;
14
+ type: ObjectConstructor;
15
+ };
16
+ unstyled: {
17
+ type: BooleanConstructor;
18
+ };
19
+ };
20
+ /**
21
+ * @type Object
22
+ */
23
+ filterObject: any;
24
+ /**
25
+ * @type Boolean
26
+ */
27
+ unstyled: boolean;
28
+ /**
29
+ * Renders the HTML template for the component.
30
+ */
31
+ render(): import("lit-html").TemplateResult<1>;
32
+ #private;
33
+ }
34
+ import { LitElement } from "lit";
35
+ //# sourceMappingURL=expand-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expand-container.d.ts","sourceRoot":"","sources":["../../src/components/expand-container.js"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH;IAEE;;;;;;;;MAKC;IAKC;;OAEG;IACH,kBAAsB;IAEtB;;OAEG;IACH,kBAAqB;IAoBvB;;OAEG;IACH,+CA+BC;;CACF;2BAxFyC,KAAK"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * EOxItemFilterRange is a custom web component that provides a range slider for filtering items.
3
+ * It uses the LitElement base class and integrates with external methods for handling input events,
4
+ * generating labels, and resetting the range filter.
5
+ *
6
+ * @module EOxItemFilterRange
7
+ * @extends LitElement
8
+ * @property {Object} filterObject - The filter object containing state and range limits.
9
+ * @property {Number} tabIndex - The tab index for the input elements.
10
+ */
11
+ export class EOxItemFilterRange extends LitElement {
12
+ static properties: {
13
+ filterObject: {
14
+ attribute: boolean;
15
+ type: ObjectConstructor;
16
+ };
17
+ tabIndex: {
18
+ attribute: boolean;
19
+ type: NumberConstructor;
20
+ };
21
+ };
22
+ /**
23
+ * @type Object
24
+ */
25
+ filterObject: any;
26
+ /**
27
+ * @type Function
28
+ */
29
+ inputHandler: Function;
30
+ /**
31
+ * @type Function
32
+ */
33
+ debouncedInputHandler: Function;
34
+ /**
35
+ * Resets the range filter using the resetRangeMethod.
36
+ */
37
+ reset(): void;
38
+ /**
39
+ * Overrides the default createRenderRoot method to render in the light DOM.
40
+ *
41
+ * @returns {this} - The current instance to render in the light DOM.
42
+ */
43
+ createRenderRoot(): this;
44
+ /**
45
+ * Renders the HTML template for the component.
46
+ */
47
+ render(): undefined;
48
+ #private;
49
+ }
50
+ import { LitElement } from "lit";
51
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/components/filters/range.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;MAGE;IAKA;;OAEG;IACH,kBAAsB;IAOtB;;OAEG;IACH,uBAAiD;IAEjD;;OAEG;IACH,gCAEE;IAyBJ;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,oBAFa,IAAI,CAIhB;IAED;;OAEG;IACH,oBAgBC;;CACF;2BA/GgC,KAAK"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * EOxSelector is a custom web component that provides a flexible selector interface for filtering items.
3
+ * It supports both autocomplete and select modes and integrates with external methods for handling input,
4
+ * key events, and selection updates.
5
+ *
6
+ * @module EOxSelector
7
+ * @extends LitElement
8
+ * @property {Object} filterObject - The filter object containing state and placeholder.
9
+ * @property {Array} suggestions - The list of suggestions for the selector.
10
+ * @property {Array} selectedItems - The list of currently selected items.
11
+ * @property {String} query - The current input query for autocomplete.
12
+ * @property {Boolean} showSuggestions - Flag to control the display of suggestions in autocomplete mode.
13
+ * @property {Number} highlightedIndex - The index of the currently highlighted suggestion.
14
+ * @property {Array} filteredSuggestions - The list of suggestions filtered based on the query.
15
+ * @property {String} type - The type of selector ("select", "multi-select", etc.).
16
+ * @property {Boolean} unstyled - Flag to determine if default styles should be applied.
17
+ * @property {Number} tabIndex - The tab index for the input elements.
18
+ * @property {Boolean} inlineMode - State whether to enable or disable inline mode
19
+ */
20
+ export class EOxSelector extends LitElement {
21
+ static properties: {
22
+ filterObject: {
23
+ attribute: boolean;
24
+ type: ObjectConstructor;
25
+ };
26
+ suggestions: {
27
+ attribute: boolean;
28
+ type: ArrayConstructor;
29
+ };
30
+ selectedItems: {
31
+ state: boolean;
32
+ type: ArrayConstructor;
33
+ };
34
+ query: {
35
+ state: boolean;
36
+ type: StringConstructor;
37
+ };
38
+ showSuggestions: {
39
+ state: boolean;
40
+ type: BooleanConstructor;
41
+ };
42
+ highlightedIndex: {
43
+ state: boolean;
44
+ type: NumberConstructor;
45
+ };
46
+ filteredSuggestions: {
47
+ state: boolean;
48
+ type: ArrayConstructor;
49
+ };
50
+ type: {
51
+ attribute: boolean;
52
+ type: StringConstructor;
53
+ };
54
+ unstyled: {
55
+ type: BooleanConstructor;
56
+ };
57
+ tabIndex: {
58
+ attribute: boolean;
59
+ type: NumberConstructor;
60
+ };
61
+ inlineMode: {
62
+ attribute: string;
63
+ type: BooleanConstructor;
64
+ };
65
+ };
66
+ /**
67
+ * @type Object
68
+ */
69
+ filterObject: any;
70
+ /**
71
+ * @type Array
72
+ */
73
+ suggestions: any[];
74
+ /**
75
+ * @type Array
76
+ */
77
+ selectedItems: any[];
78
+ /**
79
+ * @type String
80
+ */
81
+ query: string;
82
+ /**
83
+ * @type Boolean
84
+ */
85
+ showSuggestions: boolean;
86
+ /**
87
+ * @type Number
88
+ */
89
+ highlightedIndex: number;
90
+ /**
91
+ * @type Array
92
+ */
93
+ filteredSuggestions: any[];
94
+ /**
95
+ * @type String
96
+ */
97
+ type: string;
98
+ /**
99
+ * @type Boolean
100
+ */
101
+ unstyled: boolean;
102
+ /**
103
+ * @type Boolean
104
+ */
105
+ inlineMode: boolean;
106
+ /**
107
+ * Called when the element is updated. Triggers the updatedSelectorMethod.
108
+ *
109
+ * @param {Map} changedProperties - The properties that have changed.
110
+ */
111
+ updated(changedProperties: Map<any, any>): void;
112
+ /**
113
+ * Resets the selector using the resetSelectorMethod.
114
+ */
115
+ reset(): void;
116
+ /**
117
+ * Debounced version of the toggleItem method to improve performance by limiting the rate at which the method is called.
118
+ *
119
+ * @function debouncedInputHandler
120
+ * @private
121
+ */
122
+ private debouncedInputHandler;
123
+ /**
124
+ * Initialise pre-defined selected items using `state`
125
+ *
126
+ */
127
+ firstUpdated(): void;
128
+ /**
129
+ * Renders the HTML template for the component.
130
+ */
131
+ render(): import("lit-html").TemplateResult<1>;
132
+ #private;
133
+ }
134
+ import { LitElement } from "lit";
135
+ //# sourceMappingURL=selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../../src/components/filters/selector.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYE;IAKA;;OAEG;IACH,kBAAsB;IAEtB;;OAEG;IACH,mBAAqB;IAErB;;OAEG;IACH,qBAAuB;IAEvB;;OAEG;IACH,cAAe;IAEf;;OAEG;IACH,yBAA4B;IAE5B;;OAEG;IACH,yBAA0B;IAE1B;;OAEG;IACH,2BAA6B;IAE7B;;OAEG;IACH,aAAoB;IAEpB;;OAEG;IACH,kBAAqB;IAOrB;;OAEG;IACH,oBAAuB;IAGzB;;;;OAIG;IACH,gDAEC;IAgCD;;OAEG;IACH,cAEC;IAED;;;;;OAKG;IACH,8BAEG;IAEH;;;OAGG;IACH,qBAUC;IAED;;OAEG;IACH,+CA0DC;;CACF;2BAlPyC,KAAK"}
@@ -0,0 +1,82 @@
1
+ export function within(itemGeometry: any, filterGeometry: any): boolean;
2
+ /**
3
+ * EOxItemFilterSpatial is a custom web component that provides a spatial filter for items.
4
+ * The component allows users to select a spatial filter mode (intersects or within) and apply it to a map.
5
+ *
6
+ * @module EOxItemFilterSpatial
7
+ * @extends LitElement
8
+ * @property {Object} filterObject - The filter object containing the state and geometry.
9
+ * @property {Number} tabIndex - The tab index for the input elements.
10
+ */
11
+ export class EOxItemFilterSpatial extends LitElement {
12
+ static get properties(): {
13
+ filterObject: {
14
+ type: ObjectConstructor;
15
+ };
16
+ tabIndex: {
17
+ attribute: boolean;
18
+ type: NumberConstructor;
19
+ };
20
+ };
21
+ /**
22
+ * @type Object
23
+ */
24
+ filterObject: any;
25
+ /**
26
+ * Resets the spatial filter using the resetSpatialMethod.
27
+ */
28
+ reset(): void;
29
+ /**
30
+ * Overrides the default createRenderRoot method to render in the light DOM.
31
+ *
32
+ * @returns {this} - The current instance to render in the light DOM.
33
+ */
34
+ createRenderRoot(): this;
35
+ /**
36
+ * Renders the HTML template for the component.he template result for rendering.
37
+ */
38
+ render(): undefined;
39
+ #private;
40
+ }
41
+ /**
42
+ * SpatialFilter is a custom web component that renders a map and allows users to apply spatial filters.
43
+ * It uses the LitElement base class and integrates with external methods for setup and reset functionalities.
44
+ *
45
+ * @module SpatialFilter
46
+ * @extends LitElement
47
+ * @property {Object} geometry - The geometry object used for the spatial filter.
48
+ * @property {Object} eoxMap - The map object used to display and interact with the spatial filter.
49
+ */
50
+ export class SpatialFilter extends LitElement {
51
+ static get properties(): {
52
+ geometry: {
53
+ type: ObjectConstructor;
54
+ };
55
+ eoxMap: {
56
+ type: ObjectConstructor;
57
+ };
58
+ };
59
+ /**
60
+ * @type Object
61
+ */
62
+ geometry: any;
63
+ /**
64
+ * @type Object
65
+ */
66
+ eoxMap: any;
67
+ /**
68
+ * Lifecycle method called after the first update. Initializes the spatial filter.
69
+ */
70
+ firstUpdated(): void;
71
+ /**
72
+ * Resets the spatial filter using the resetSpatialFilterMethod.
73
+ */
74
+ reset(): void;
75
+ /**
76
+ * Renders the HTML template for the component.
77
+ */
78
+ render(): import("lit-html").TemplateResult<1>;
79
+ #private;
80
+ }
81
+ import { LitElement } from "lit";
82
+ //# sourceMappingURL=spatial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../../src/components/filters/spatial.js"],"names":[],"mappings":"AAkBO,gEAFM,OAAO,CAOnB;AAED;;;;;;;;GAQG;AACH;IAEE;;;;;;;;MAKC;IAKC;;OAEG;IACH,kBAAsB;IAQxB;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,oBAFa,IAAI,CAIhB;IAYD;;OAEG;IACH,oBAmCC;;CACF;AAID;;;;;;;;GAQG;AACH;IAEE;;;;;;;MAKC;IAKC;;OAEG;IACH,cAAoB;IAEpB;;OAEG;IACH,YAAkB;IAGpB;;OAEG;IACH,qBAEC;IAWD;;OAEG;IACH,cAEC;IAED;;OAEG;IACH,+CAEC;;CACF;2BA3LyC,KAAK"}
@@ -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,80 @@
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
+ };
37
+ /**
38
+ * @type Object
39
+ */
40
+ config: any;
41
+ /**
42
+ * @type Object
43
+ */
44
+ filters: any;
45
+ /**
46
+ * @type Array
47
+ */
48
+ resultAggregation: any[];
49
+ /**
50
+ * @type Object
51
+ */
52
+ selectedResult: any;
53
+ /**
54
+ * Aggregates results based on the specified property.
55
+ *
56
+ * @param {Array} items - The array of items to be aggregated.
57
+ * @param {string} property - The property used for aggregation.
58
+ * @returns {Array} - The aggregated results.
59
+ */
60
+ aggregateResults(items: any[], property: string): any[];
61
+ /**
62
+ * Overrides the default createRenderRoot method to render in the light DOM.
63
+ *
64
+ * @returns {this} - The current instance to render in the light DOM.
65
+ */
66
+ createRenderRoot(): this;
67
+ /**
68
+ * Handles the toggle event for accordion.
69
+ *
70
+ * @param {Event} event - The toggle event.
71
+ */
72
+ handleAccordion(event: Event): void;
73
+ /**
74
+ * Renders the HTML template for the component.
75
+ */
76
+ render(): import("lit-html").TemplateResult<1>;
77
+ #private;
78
+ }
79
+ import { LitElement } from "lit";
80
+ //# 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;;;;;;;;;;;;;;;;;;;;;MAQC;IAKC;;OAEG;IACH,YAAkB;IAElB;;OAEG;IACH,aAAiB;IAEjB;;OAEG;IACH,yBAA2B;IAE3B;;OAEG;IACH,oBAA0B;IAyB5B;;;;;;OAMG;IACH,yCAHW,MAAM,SAKhB;IAED;;;;OAIG;IACH,oBAFa,IAAI,CAIhB;IAED;;;;OAIG;IACH,uBAFW,KAAK,QAIf;IAED;;OAEG;IACH,+CAuCC;;CACF;2BAzJyC,KAAK"}