@trackunit/filters-asset-filter-definitions 1.5.44 → 1.5.47
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 -1
- package/index.esm.js +2 -1
- package/package.json +17 -17
package/index.cjs.js
CHANGED
|
@@ -4360,7 +4360,7 @@ const useSetAssetFilterStateFromUrl = ({ setters }) => {
|
|
|
4360
4360
|
if (filterMappings.every(({ value }) => !value)) {
|
|
4361
4361
|
setIsDoneSettingFilters(true);
|
|
4362
4362
|
}
|
|
4363
|
-
//If any filter is defined, we need to navigate to the url
|
|
4363
|
+
//If any filter is defined, we need to navigate to the url without the filters
|
|
4364
4364
|
if (filterMappings.some(({ value }) => value)) {
|
|
4365
4365
|
navigate({
|
|
4366
4366
|
search: (prev) => {
|
|
@@ -4376,6 +4376,7 @@ const useSetAssetFilterStateFromUrl = ({ setters }) => {
|
|
|
4376
4376
|
};
|
|
4377
4377
|
return searchWithFilters;
|
|
4378
4378
|
},
|
|
4379
|
+
replace: true, // replace the current history entry so we don't end up in a loop of clearing the url params on back browser navigation
|
|
4379
4380
|
to: ".",
|
|
4380
4381
|
});
|
|
4381
4382
|
setIsDoneSettingFilters(true);
|
package/index.esm.js
CHANGED
|
@@ -4358,7 +4358,7 @@ const useSetAssetFilterStateFromUrl = ({ setters }) => {
|
|
|
4358
4358
|
if (filterMappings.every(({ value }) => !value)) {
|
|
4359
4359
|
setIsDoneSettingFilters(true);
|
|
4360
4360
|
}
|
|
4361
|
-
//If any filter is defined, we need to navigate to the url
|
|
4361
|
+
//If any filter is defined, we need to navigate to the url without the filters
|
|
4362
4362
|
if (filterMappings.some(({ value }) => value)) {
|
|
4363
4363
|
navigate({
|
|
4364
4364
|
search: (prev) => {
|
|
@@ -4374,6 +4374,7 @@ const useSetAssetFilterStateFromUrl = ({ setters }) => {
|
|
|
4374
4374
|
};
|
|
4375
4375
|
return searchWithFilters;
|
|
4376
4376
|
},
|
|
4377
|
+
replace: true, // replace the current history entry so we don't end up in a loop of clearing the url params on back browser navigation
|
|
4377
4378
|
to: ".",
|
|
4378
4379
|
});
|
|
4379
4380
|
setIsDoneSettingFilters(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-asset-filter-definitions",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.47",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
"@tanstack/react-router": "1.114.29",
|
|
18
18
|
"string-ts": "^2.0.0",
|
|
19
19
|
"tailwind-merge": "^2.0.0",
|
|
20
|
-
"@trackunit/iris-app-build-utilities": "1.3.
|
|
21
|
-
"@trackunit/filters-filter-bar": "1.3.
|
|
22
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
23
|
-
"@trackunit/react-filter-components": "1.3.
|
|
24
|
-
"@trackunit/react-form-components": "1.3.
|
|
25
|
-
"@trackunit/filters-graphql-hook": "1.5.
|
|
26
|
-
"@trackunit/utilization-indicator": "1.3.
|
|
27
|
-
"@trackunit/geo-json-utils": "1.3.
|
|
28
|
-
"@trackunit/react-components": "1.4.
|
|
29
|
-
"@trackunit/shared-utils": "1.5.
|
|
30
|
-
"@trackunit/translations-machine-type": "1.3.
|
|
31
|
-
"@trackunit/criticality-indicator": "1.3.
|
|
32
|
-
"@trackunit/iris-app-api": "1.3.
|
|
33
|
-
"@trackunit/react-core-contexts-test": "1.3.
|
|
34
|
-
"@trackunit/i18n-library-translation": "1.3.
|
|
35
|
-
"@trackunit/react-core-contexts-api": "1.4.
|
|
20
|
+
"@trackunit/iris-app-build-utilities": "1.3.111",
|
|
21
|
+
"@trackunit/filters-filter-bar": "1.3.171",
|
|
22
|
+
"@trackunit/react-core-hooks": "1.3.115",
|
|
23
|
+
"@trackunit/react-filter-components": "1.3.145",
|
|
24
|
+
"@trackunit/react-form-components": "1.3.145",
|
|
25
|
+
"@trackunit/filters-graphql-hook": "1.5.46",
|
|
26
|
+
"@trackunit/utilization-indicator": "1.3.138",
|
|
27
|
+
"@trackunit/geo-json-utils": "1.3.106",
|
|
28
|
+
"@trackunit/react-components": "1.4.127",
|
|
29
|
+
"@trackunit/shared-utils": "1.5.105",
|
|
30
|
+
"@trackunit/translations-machine-type": "1.3.121",
|
|
31
|
+
"@trackunit/criticality-indicator": "1.3.136",
|
|
32
|
+
"@trackunit/iris-app-api": "1.3.111",
|
|
33
|
+
"@trackunit/react-core-contexts-test": "1.3.116",
|
|
34
|
+
"@trackunit/i18n-library-translation": "1.3.119",
|
|
35
|
+
"@trackunit/react-core-contexts-api": "1.4.111"
|
|
36
36
|
},
|
|
37
37
|
"module": "./index.esm.js",
|
|
38
38
|
"main": "./index.cjs.js",
|