@eox/itemfilter 1.14.0 → 1.16.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 +7120 -6921
- package/dist/eox-itemfilter.umd.cjs +191 -178
- package/dist/material-symbols-outlined.woff2 +0 -0
- package/dist/material-symbols-rounded.woff2 +0 -0
- package/dist/material-symbols-sharp.woff2 +0 -0
- package/dist/material-symbols-subset.woff2 +0 -0
- package/package.json +7 -7
- package/src/components/filters/spatial.js +6 -4
- package/src/enums/config.js +9 -0
- package/src/main.js +33 -12
- package/src/methods/itemfilter/create-reset.js +1 -1
- package/src/methods/itemfilter/search.js +3 -1
- package/src/methods/itemfilter/sort-results.js +54 -8
- package/src/style.eox.js +42 -31
- package/types/components/filters/spatial.d.ts.map +1 -1
- package/types/enums/config.d.ts +7 -0
- package/types/enums/config.d.ts.map +1 -1
- package/types/main.d.ts +29 -12
- package/types/main.d.ts.map +1 -1
- package/types/methods/itemfilter/search.d.ts.map +1 -1
- package/types/methods/itemfilter/sort-results.d.ts +12 -2
- package/types/methods/itemfilter/sort-results.d.ts.map +1 -1
- package/types/style.eox.d.ts.map +1 -1
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
export default sortResultsMethod;
|
|
2
2
|
/**
|
|
3
|
-
* Sorts the provided items based on the
|
|
3
|
+
* Sorts the provided items based on the resultSorting configuration.
|
|
4
|
+
* Supports:
|
|
5
|
+
* - undefined (default): smart alphabetical sorting (skips if externalFilter or fuseConfig.shouldSort is truthy)
|
|
6
|
+
* - false: no sorting
|
|
7
|
+
* - string: property key to sort by (ascending)
|
|
8
|
+
* - function: custom comparator function (a, b) => number
|
|
9
|
+
* - object: { key: string, order?: 'asc' | 'desc' }
|
|
4
10
|
*
|
|
5
11
|
* @param {Array<Object>} items - The items to be sorted.
|
|
6
12
|
* @param {Object} config - The configuration object containing sorting options.
|
|
13
|
+
* @param {Object} [options] - Optional sorting parameters.
|
|
14
|
+
* @param {boolean} [options.isExternalResult] - Flag for results from external filter.
|
|
7
15
|
* @returns {Array<Object>} The sorted array of items.
|
|
8
16
|
*/
|
|
9
|
-
declare function sortResultsMethod(items: Array<any>, config: any
|
|
17
|
+
declare function sortResultsMethod(items: Array<any>, config: any, options?: {
|
|
18
|
+
isExternalResult?: boolean;
|
|
19
|
+
}): Array<any>;
|
|
10
20
|
//# sourceMappingURL=sort-results.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-results.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/sort-results.js"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"sort-results.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/sort-results.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;GAcG;AACH,0CANW,KAAK,KAAQ,yBAGrB;IAA0B,gBAAgB,GAAlC,OAAO;CACf,GAAU,KAAK,KAAQ,CA+CzB"}
|
package/types/style.eox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAKA,8BAweE"}
|