@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.
- package/dist/eox-itemfilter.js +964 -957
- package/dist/eox-itemfilter.umd.cjs +43 -43
- package/package.json +16 -3
- package/src/helpers/chip-items.js +1 -1
- 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 +80 -0
- package/types/components/results.d.ts.map +1 -0
- package/types/enums/config.d.ts +73 -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 +270 -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
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/search.js"],"names":[],"mappings":";AAGA;;;;;;;GAOG;AACH,kDAJW,UAAa,uBAEX,QAAQ,IAAI,CAAC,CAWzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default sortResultsMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Sorts the provided items based on the title property specified in the configuration.
|
|
4
|
+
*
|
|
5
|
+
* @param {Array<Object>} items - The items to be sorted.
|
|
6
|
+
* @param {Object} config - The configuration object containing sorting options.
|
|
7
|
+
* @returns {Array<Object>} The sorted array of items.
|
|
8
|
+
*/
|
|
9
|
+
declare function sortResultsMethod(items: Array<any>, config: any): Array<any>;
|
|
10
|
+
//# sourceMappingURL=sort-results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-results.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/sort-results.js"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,0CAJW,UAAa,gBAEX,UAAa,CAMzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters and aggregates results based on a specified property in the EOxItemFilterResults component.
|
|
3
|
+
*
|
|
4
|
+
* @param {Array<Object>} items - The items to be filtered and aggregated.
|
|
5
|
+
* @param {string} property - The property used for aggregation.
|
|
6
|
+
* @param {Object} EOxItemFilterResults - The EOxItemFilterResults component instance.
|
|
7
|
+
* @returns {Array<Object>} The filtered and aggregated items.
|
|
8
|
+
*/
|
|
9
|
+
export function aggregateResultsMethod(items: Array<any>, property: string, EOxItemFilterResults: any): Array<any>;
|
|
10
|
+
export default aggregateResultsMethod;
|
|
11
|
+
//# sourceMappingURL=aggregate-results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregate-results.d.ts","sourceRoot":"","sources":["../../../src/methods/results/aggregate-results.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,8CALW,UAAa,YACb,MAAM,8BAEJ,UAAa,CAkCzB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the item details view for the aggregation property in the EOxItemFilterResults component.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} aggregationProperty - The property used for aggregation.
|
|
5
|
+
* @param {Object} EOxItemFilterResults - The EOxItemFilterResults component instance.
|
|
6
|
+
* @returns {TemplateResult} The HTML template for the item details view.
|
|
7
|
+
*/
|
|
8
|
+
export function createItemDetailsMethod(aggregationProperty: string, EOxItemFilterResults: any): TemplateResult;
|
|
9
|
+
/**
|
|
10
|
+
* Creates the item list view for the aggregation property in the EOxItemFilterResults component.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} aggregationProperty - The property used for aggregation.
|
|
13
|
+
* @param {Object} EOxItemFilterResults - The EOxItemFilterResults component instance.
|
|
14
|
+
* @returns {TemplateResult} The HTML template for the item list view.
|
|
15
|
+
*/
|
|
16
|
+
export function createItemListMethod(aggregationProperty: string, EOxItemFilterResults: any): TemplateResult;
|
|
17
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/methods/results/create.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,6DAJW,MAAM,6CA8BhB;AAED;;;;;;GAMG;AACH,0DAJW,MAAM,6CAmEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/methods/results/index.js"],"names":[],"mappings":""}
|
package/types/style.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const style: "\n:host {\n display: flex;\n box-sizing: border-box;\n height: 100%;\n line-height: 1;\n}\n*,\n*:before,\n*:after {\n box-sizing: inherit;\n}\nform#itemfilter {\n height: 100%;\n width: 100%;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n}\nform#itemfilter:not(.inline) {\n overflow-y: auto;\n}\ndetails {\n width: 100%;\n}\n";
|
|
2
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.js"],"names":[],"mappings":"AAAA,yXAyBE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const styleEOX: "\n:host, :root {\n --item-color: color-mix(\n in srgb,\n var(--primary-color) 10%,\n transparent\n );\n --item-hover-color: color-mix(\n in srgb,\n var(--secondary-color) 30%,\n transparent\n );\n --item-select-color: var(--primary-color);\n --inline-bg-color: color-mix(\n in srgb,\n var(--secondary-color) 10%,\n transparent\n );\n --border-color: color-mix(\n in srgb,\n #000000 20%,\n transparent\n );\n --background-color: #fff;\n --padding: 0.5rem;\n --text-transform: capitalize;\n}\n* {\n font-family: Roboto, sans-serif;\n}\nul {\n padding-left: 0;\n margin-top: 0;\n}\nli {\n list-style: none;\n}\nli span {\n text-overflow: ellipsis;\n white-space: nowrap;\n}\nli label {\n display: flex;\n align-items: center;\n}\ndetails summary > * {\n display: inline;\n}\ndetails summary {\n display: flex;\n align-items: center;\n border-bottom: 1px solid #0002;\n padding: .5rem var(--padding);\n}\n\ndetails > summary::-webkit-details-marker {\n display: none;\n}\n\n.title {\n font-size: 13px;\n align-items: center;\n text-transform: var(--text-transform);\n}\n.subtitle {\n font-size: 11px;\n opacity: .7;\n margin-top: 6px;\n}\n.title-container {\n display: flex;\n flex-direction: column;\n}\nh6.main-heading {\n font-size: 1rem;\n margin-block-start: 1.33em;\n margin-block-end: 1.33em;\n margin-top: var(--padding);\n padding: 0 var(--padding);\n}\ndetails summary .title {\n display: flex;\n font-weight: 500;\n}\ndetails.details-filter summary::after,\ndetails.details-results summary::before {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230009' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E\");\n height: 24px;\n width: 24px;\n}\ndetails.details-filter summary::after {\n position: absolute;\n right: 8px;\n transform: rotate(90deg);\n}\ndetails[open] summary::before {\n transform: rotate(90deg);\n}\ndetails[open] summary::after {\n transform: rotate(270deg);\n}\neox-itemfilter-expandcontainer {\n max-height: 200px;\n}\neox-itemfilter-expandcontainer > [data-type=filter] {\n display: block;\n height: calc(100% - 32px);\n overflow-y: auto;\n overflow-x: hidden;\n padding: 0 var(--padding);\n}\n[data-type=filter] .title,\ndetails summary {\n text-transform: var(--text-transform);\n}\nli,\nlabel,\ndetails,\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n cursor: pointer;\n}\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n margin: 0;\n}\ninput[type=\"text\"] {\n box-sizing: border-box;\n width: 100%;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n padding: 5px 7px;\n border-radius: 4px;\n border: 1px solid var(--border-color);\n}\nsection:not(section:last-of-type) {\n margin-bottom: 1rem;\n}\n#section-results {\n overflow: hidden;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\nul:not(#filters) > li {\n padding: 5px 0;\n}\nul#results li {\n padding: 5px var(--padding);\n}\nsection {\n position: relative;\n background-color: var(--background-color);\n}\nbutton#filter-reset {\n position: absolute;\n top: 0;\n right: var(--padding);\n padding: 2px 10px;\n}\n.count {\n display: flex;\n justify-content: center;\n align-items: center;\n background: var(--secondary-color);\n padding: 0 12px;\n height: 20px;\n border-radius: 10px;\n color: var(--primary-color);\n font-weight: 500;\n margin-left: 9px;\n}\neox-itemfilter-range,\ntc-range-slider {\n align-items: center;\n display: block;\n}\ntc-range-slider {\n width: calc(100% - 16px);\n margin-left: 8px;\n margin-right: 8px;\n --width: 100%;\n}\n.range-before,\n.range-after {\n font-size: small;\n}\n.range-before,\n.range-after {\n margin: 1rem 0px;\n}\n\nbutton.reset-icon:before {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E\");\n}\neox-itemfilter-expandcontainer button.reset-icon {\n margin-left: 4px;\n margin-top: -5px;\n height: 14px;\n width: 14px;\n}\neox-itemfilter-expandcontainer button.reset-icon:before {\n height: 14px;\n width: 14px;\n}\n.inline-content {\n border: 1.5px solid var(--secondary-color);\n border-radius: 4px;\n max-height: 300px;\n overflow-y: auto;\n background: var(--inline-bg-color);\n margin-top: 4px;\n padding: 8px;\n}\n.inline-container {\n position: relative;\n align-items: center;\n}\n.inline-container-wrapper {\n width: 100%;\n position: relative;\n}\n.inline-container {\n position: relative;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n height: 24px;\n padding: 8px;\n flex: 1;\n justify-content: space-between;\n cursor: text;\n transition: all 0.2s ease-in-out;\n display: flex;\n}\n.inline-container:hover {\n border: 1px solid var(--primary-color);\n}\n[popover] {\n position: fixed;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n border: none;\n}\n.input-container {\n display: flex;\n flex: 1;\n align-items: center;\n}\n.input-container input,\n.input-container input:focus {\n height: 100%;\n border: none;\n outline: none;\n border: 0;\n min-width: 25%;\n}\n.button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n right: 1px;\n top: 5px;\n height: calc(100% - 10px);\n width: 34px;\n background: white;\n}\nbutton.icon {\n color: #004170;\n height: 24px;\n font-size: large;\n width: unset;\n}\n.inline-container::-webkit-scrollbar {\n height: 2px;\n}\n.inline-container::-webkit-scrollbar-thumb {\n background: lightgrey;\n border-radius: 2px;\n}\n.hidden {\n height: 0;\n padding: 0;\n border: none;\n}\n.hidden:hover {\n border: none;\n}\n.chip-title {\n pointer-events: none;\n text-transform: var(--text-transform);\n}\n.chip {\n display: flex;\n align-items: center;\n background: var(--item-color);\n border-radius: 30px;\n margin-right: 4px;\n padding: 5px 10px;\n font-size: small;\n cursor: default;\n white-space: nowrap;\n}\n.chip.highlighted {\n background: var(--primary-color);\n color: white;\n}\n.chip-close {\n cursor: pointer;\n font-weight: 600;\n position: absolute;\n right: -25px;\n background: white;\n top: 0;\n height: 100%;\n display: flex;\n align-items: center;\n height: 24px;\n width: 24px;\n}\n.chip-close:before {\n position: absolute;\n text-indent: 0;\n line-height: initial;\n height: 24px;\n width: 24px;\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E\");\n}\n.chip-container {\n position: relative;\n max-width: 75%;\n}\n.autocomplete-container,\n.text-container {\n position: relative;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n justify-content: space-between;\n cursor: text;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n background: white;\n}\n.autocomplete-container-wrapper,\n.text-container-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n flex: 1;\n overflow-x: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.autocomplete-container-wrapper::-webkit-scrollbar {\n display: none;\n}\n.chip-wrapper {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.chip-wrapper::-webkit-scrollbar {\n display: none;\n width: 0;\n background: transparent;\n}\n.autocomplete-input,\n.text-input {\n flex: 1;\n border: 1px solid var(--border-color);\n outline: none;\n box-sizing: border-box;\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n min-width: 150px;\n}\ninput[type=\"text\"].text-input,\ninput[type=\"text\"].autocomplete-input {\n padding: 9px 6px !important;\n border-radius: 4px;\n}\n.text-input:hover,\n.autocomplete-input:hover {\n border: 1px solid var(--primary-color);\n}\n.text-input:invalid {\n border: 1px solid red;\n}\n.selected-items {\n display: flex;\n flex-wrap: nowrap;\n gap: 4px;\n}\n.select li:hover,\n.multiselect li:hover,\neox-itemfilter-results li:hover {\n background: var(--item-hover-color);\n}\neox-itemfilter-results li.highlighted {\n color: var(--background-color);\n background: var(--item-select-color);\n}\n.selected-item span {\n margin-right: 8px;\n}\n.selected-item button {\n background: none;\n border: none;\n color: #fff;\n cursor: pointer;\n font-size: 16px;\n line-height: 1;\n}\n.multiselect-container,\n.select-container {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.multiselect-container label,\n.select-container label {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.multiselect-container input,\n.select-container input {\n margin-right: 8px;\n}\n.select-overflow {\n max-height: 185px;\n overflow-y: auto;\n}\n.chip-title strong {\n font-weight: 500;\n}\n.chip-wrapper {\n max-width: 100%;\n overflow-x: scroll;\n}\n.chip-container {\n display: flex;\n flex: 0;\n}\n.input-container.dirty-filter-input {\n margin-left: 25px;\n}\n.error-validation {\n position: relative;\n color: red;\n font-size: x-small;\n top: -8px;\n}\n";
|
|
2
|
+
//# sourceMappingURL=style.eox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAAA,40SAwcE"}
|