@trackunit/filters-filter-bar 1.18.30 → 1.20.6
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/index.cjs.js +2 -5
- package/index.esm.js +2 -5
- package/package.json +12 -12
- package/src/lib/types/FilterTypes.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -135,6 +135,7 @@ var defaultTranslations = {
|
|
|
135
135
|
"filtersBar.groups.CURRENT_LOCATION": "Current Location",
|
|
136
136
|
"filtersBar.groups.CUSTOM_FIELDS": "Custom Fields",
|
|
137
137
|
"filtersBar.groups.CUSTOMERS": "Customers",
|
|
138
|
+
"filtersBar.groups.DEVICE": "Device",
|
|
138
139
|
"filtersBar.groups.DEVICE_HEALTH": "Device Health",
|
|
139
140
|
"filtersBar.groups.INTEGRATION": "Integration",
|
|
140
141
|
"filtersBar.groups.MANAGEMENT": "Management",
|
|
@@ -1287,11 +1288,7 @@ const useHierarchicalOptionState = ({ options, option, selectedValues, cascadeSe
|
|
|
1287
1288
|
return currentSelectedValues;
|
|
1288
1289
|
});
|
|
1289
1290
|
}, [cascadeSelection, filterDefinition.filterKey, logEvent, setValue, isChecked, option, optionsMap, parentMap]);
|
|
1290
|
-
return {
|
|
1291
|
-
isChecked,
|
|
1292
|
-
isIndeterminate,
|
|
1293
|
-
handleSelect,
|
|
1294
|
-
};
|
|
1291
|
+
return react.useMemo(() => ({ isChecked, isIndeterminate, handleSelect }), [isChecked, isIndeterminate, handleSelect]);
|
|
1295
1292
|
};
|
|
1296
1293
|
|
|
1297
1294
|
/**
|
package/index.esm.js
CHANGED
|
@@ -133,6 +133,7 @@ var defaultTranslations = {
|
|
|
133
133
|
"filtersBar.groups.CURRENT_LOCATION": "Current Location",
|
|
134
134
|
"filtersBar.groups.CUSTOM_FIELDS": "Custom Fields",
|
|
135
135
|
"filtersBar.groups.CUSTOMERS": "Customers",
|
|
136
|
+
"filtersBar.groups.DEVICE": "Device",
|
|
136
137
|
"filtersBar.groups.DEVICE_HEALTH": "Device Health",
|
|
137
138
|
"filtersBar.groups.INTEGRATION": "Integration",
|
|
138
139
|
"filtersBar.groups.MANAGEMENT": "Management",
|
|
@@ -1285,11 +1286,7 @@ const useHierarchicalOptionState = ({ options, option, selectedValues, cascadeSe
|
|
|
1285
1286
|
return currentSelectedValues;
|
|
1286
1287
|
});
|
|
1287
1288
|
}, [cascadeSelection, filterDefinition.filterKey, logEvent, setValue, isChecked, option, optionsMap, parentMap]);
|
|
1288
|
-
return {
|
|
1289
|
-
isChecked,
|
|
1290
|
-
isIndeterminate,
|
|
1291
|
-
handleSelect,
|
|
1292
|
-
};
|
|
1289
|
+
return useMemo(() => ({ isChecked, isIndeterminate, handleSelect }), [isChecked, isIndeterminate, handleSelect]);
|
|
1293
1290
|
};
|
|
1294
1291
|
|
|
1295
1292
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-filter-bar",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.6",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"tailwind-merge": "^2.0.0",
|
|
12
12
|
"string-ts": "^2.0.0",
|
|
13
13
|
"zod": "^3.23.8",
|
|
14
|
-
"@trackunit/iris-app-api": "1.
|
|
15
|
-
"@trackunit/react-core-hooks": "1.
|
|
16
|
-
"@trackunit/react-filter-components": "1.
|
|
17
|
-
"@trackunit/react-date-and-time-components": "1.
|
|
18
|
-
"@trackunit/shared-utils": "1.13.
|
|
19
|
-
"@trackunit/react-form-components": "1.
|
|
20
|
-
"@trackunit/iris-app-runtime-core-api": "1.
|
|
21
|
-
"@trackunit/geo-json-utils": "1.
|
|
22
|
-
"@trackunit/i18n-library-translation": "1.
|
|
23
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
24
|
-
"@trackunit/react-components": "1.
|
|
14
|
+
"@trackunit/iris-app-api": "1.16.3",
|
|
15
|
+
"@trackunit/react-core-hooks": "1.15.4",
|
|
16
|
+
"@trackunit/react-filter-components": "1.19.6",
|
|
17
|
+
"@trackunit/react-date-and-time-components": "1.22.6",
|
|
18
|
+
"@trackunit/shared-utils": "1.13.91",
|
|
19
|
+
"@trackunit/react-form-components": "1.20.6",
|
|
20
|
+
"@trackunit/iris-app-runtime-core-api": "1.14.3",
|
|
21
|
+
"@trackunit/geo-json-utils": "1.12.1",
|
|
22
|
+
"@trackunit/i18n-library-translation": "1.17.4",
|
|
23
|
+
"@trackunit/css-class-variance-utilities": "1.11.91",
|
|
24
|
+
"@trackunit/react-components": "1.21.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.0.0",
|
|
@@ -47,7 +47,7 @@ export type FilterMapGetter = {
|
|
|
47
47
|
export type FilterName = string;
|
|
48
48
|
export type FilterBarDefinition = Record<FilterName, FilterDefinition>;
|
|
49
49
|
export type FilterTranslation = string;
|
|
50
|
-
export type FilterGroup = "METADATA" | "STATUS" | "SITES" | "CUSTOMERS" | "OTHER" | "CUSTOM_FIELDS" | "MY_NETWORK" | "DEVICE_HEALTH" | "ASSET" | "OPERATOR" | "SERVICE" | "RENTAL" | "INTEGRATION" | "CURRENT_LOCATION" | "MANAGEMENT";
|
|
50
|
+
export type FilterGroup = "METADATA" | "STATUS" | "SITES" | "CUSTOMERS" | "OTHER" | "CUSTOM_FIELDS" | "MY_NETWORK" | "DEVICE_HEALTH" | "DEVICE" | "ASSET" | "OPERATOR" | "SERVICE" | "RENTAL" | "INTEGRATION" | "CURRENT_LOCATION" | "MANAGEMENT";
|
|
51
51
|
export interface AbstractFilterDefinition {
|
|
52
52
|
/**
|
|
53
53
|
* The unique key or identifier for the filter.
|