@trackunit/filters-filter-bar 2.2.26 → 2.2.28-alpha-288640a1f26.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/index.cjs.js +18 -17
- package/index.esm.js +18 -17
- package/package.json +12 -12
- package/src/lib/hooks/useFilterBarAsync.d.ts +8 -0
- /package/{translation.cjs10.js → translation10.cjs.js} +0 -0
- /package/{translation.esm10.js → translation10.esm.js} +0 -0
- /package/{translation.cjs11.js → translation11.cjs.js} +0 -0
- /package/{translation.esm11.js → translation11.esm.js} +0 -0
- /package/{translation.cjs12.js → translation12.cjs.js} +0 -0
- /package/{translation.esm12.js → translation12.esm.js} +0 -0
- /package/{translation.cjs13.js → translation13.cjs.js} +0 -0
- /package/{translation.esm13.js → translation13.esm.js} +0 -0
- /package/{translation.cjs14.js → translation14.cjs.js} +0 -0
- /package/{translation.esm14.js → translation14.esm.js} +0 -0
- /package/{translation.cjs15.js → translation15.cjs.js} +0 -0
- /package/{translation.esm15.js → translation15.esm.js} +0 -0
- /package/{translation.cjs16.js → translation16.cjs.js} +0 -0
- /package/{translation.esm16.js → translation16.esm.js} +0 -0
- /package/{translation.cjs17.js → translation17.cjs.js} +0 -0
- /package/{translation.esm17.js → translation17.esm.js} +0 -0
- /package/{translation.cjs2.js → translation2.cjs.js} +0 -0
- /package/{translation.esm2.js → translation2.esm.js} +0 -0
- /package/{translation.cjs3.js → translation3.cjs.js} +0 -0
- /package/{translation.esm3.js → translation3.esm.js} +0 -0
- /package/{translation.cjs4.js → translation4.cjs.js} +0 -0
- /package/{translation.esm4.js → translation4.esm.js} +0 -0
- /package/{translation.cjs5.js → translation5.cjs.js} +0 -0
- /package/{translation.esm5.js → translation5.esm.js} +0 -0
- /package/{translation.cjs6.js → translation6.cjs.js} +0 -0
- /package/{translation.esm6.js → translation6.esm.js} +0 -0
- /package/{translation.cjs7.js → translation7.cjs.js} +0 -0
- /package/{translation.esm7.js → translation7.esm.js} +0 -0
- /package/{translation.cjs8.js → translation8.cjs.js} +0 -0
- /package/{translation.esm8.js → translation8.esm.js} +0 -0
- /package/{translation.cjs9.js → translation9.cjs.js} +0 -0
- /package/{translation.esm9.js → translation9.esm.js} +0 -0
package/index.cjs.js
CHANGED
|
@@ -294,22 +294,22 @@ const translations = {
|
|
|
294
294
|
default: defaultTranslations,
|
|
295
295
|
languages: {
|
|
296
296
|
de: () => Promise.resolve().then(function () { return require('./translation.cjs.js'); }),
|
|
297
|
-
da: () => Promise.resolve().then(function () { return require('./
|
|
298
|
-
cs: () => Promise.resolve().then(function () { return require('./
|
|
299
|
-
nl: () => Promise.resolve().then(function () { return require('./
|
|
300
|
-
fr: () => Promise.resolve().then(function () { return require('./
|
|
301
|
-
fi: () => Promise.resolve().then(function () { return require('./
|
|
302
|
-
hu: () => Promise.resolve().then(function () { return require('./
|
|
303
|
-
it: () => Promise.resolve().then(function () { return require('./
|
|
304
|
-
nb: () => Promise.resolve().then(function () { return require('./
|
|
305
|
-
pl: () => Promise.resolve().then(function () { return require('./
|
|
306
|
-
pt: () => Promise.resolve().then(function () { return require('./
|
|
307
|
-
ru: () => Promise.resolve().then(function () { return require('./
|
|
308
|
-
ro: () => Promise.resolve().then(function () { return require('./
|
|
309
|
-
es: () => Promise.resolve().then(function () { return require('./
|
|
310
|
-
sv: () => Promise.resolve().then(function () { return require('./
|
|
311
|
-
ja: () => Promise.resolve().then(function () { return require('./
|
|
312
|
-
th: () => Promise.resolve().then(function () { return require('./
|
|
297
|
+
da: () => Promise.resolve().then(function () { return require('./translation2.cjs.js'); }),
|
|
298
|
+
cs: () => Promise.resolve().then(function () { return require('./translation3.cjs.js'); }),
|
|
299
|
+
nl: () => Promise.resolve().then(function () { return require('./translation4.cjs.js'); }),
|
|
300
|
+
fr: () => Promise.resolve().then(function () { return require('./translation5.cjs.js'); }),
|
|
301
|
+
fi: () => Promise.resolve().then(function () { return require('./translation6.cjs.js'); }),
|
|
302
|
+
hu: () => Promise.resolve().then(function () { return require('./translation7.cjs.js'); }),
|
|
303
|
+
it: () => Promise.resolve().then(function () { return require('./translation8.cjs.js'); }),
|
|
304
|
+
nb: () => Promise.resolve().then(function () { return require('./translation9.cjs.js'); }),
|
|
305
|
+
pl: () => Promise.resolve().then(function () { return require('./translation10.cjs.js'); }),
|
|
306
|
+
pt: () => Promise.resolve().then(function () { return require('./translation11.cjs.js'); }),
|
|
307
|
+
ru: () => Promise.resolve().then(function () { return require('./translation12.cjs.js'); }),
|
|
308
|
+
ro: () => Promise.resolve().then(function () { return require('./translation13.cjs.js'); }),
|
|
309
|
+
es: () => Promise.resolve().then(function () { return require('./translation14.cjs.js'); }),
|
|
310
|
+
sv: () => Promise.resolve().then(function () { return require('./translation15.cjs.js'); }),
|
|
311
|
+
ja: () => Promise.resolve().then(function () { return require('./translation16.cjs.js'); }),
|
|
312
|
+
th: () => Promise.resolve().then(function () { return require('./translation17.cjs.js'); }),
|
|
313
313
|
},
|
|
314
314
|
};
|
|
315
315
|
/**
|
|
@@ -2442,10 +2442,11 @@ const useFilterBarAsync = ({ name, onValuesChange, filterBarDefinition, loadData
|
|
|
2442
2442
|
filterBarConfig: filterBarConfigMemoed,
|
|
2443
2443
|
filterBarDefinition: internalFilterBarDefinitions,
|
|
2444
2444
|
dataLoaded,
|
|
2445
|
+
isDataLoaded,
|
|
2445
2446
|
name,
|
|
2446
2447
|
onValuesChange: stableOnValuesChange,
|
|
2447
2448
|
};
|
|
2448
|
-
}, [filterBarConfigMemoed, internalFilterBarDefinitions, dataLoaded, name, stableOnValuesChange]);
|
|
2449
|
+
}, [filterBarConfigMemoed, internalFilterBarDefinitions, dataLoaded, isDataLoaded, name, stableOnValuesChange]);
|
|
2449
2450
|
};
|
|
2450
2451
|
|
|
2451
2452
|
/**
|
package/index.esm.js
CHANGED
|
@@ -292,22 +292,22 @@ const translations = {
|
|
|
292
292
|
default: defaultTranslations,
|
|
293
293
|
languages: {
|
|
294
294
|
de: () => import('./translation.esm.js'),
|
|
295
|
-
da: () => import('./
|
|
296
|
-
cs: () => import('./
|
|
297
|
-
nl: () => import('./
|
|
298
|
-
fr: () => import('./
|
|
299
|
-
fi: () => import('./
|
|
300
|
-
hu: () => import('./
|
|
301
|
-
it: () => import('./
|
|
302
|
-
nb: () => import('./
|
|
303
|
-
pl: () => import('./
|
|
304
|
-
pt: () => import('./
|
|
305
|
-
ru: () => import('./
|
|
306
|
-
ro: () => import('./
|
|
307
|
-
es: () => import('./
|
|
308
|
-
sv: () => import('./
|
|
309
|
-
ja: () => import('./
|
|
310
|
-
th: () => import('./
|
|
295
|
+
da: () => import('./translation2.esm.js'),
|
|
296
|
+
cs: () => import('./translation3.esm.js'),
|
|
297
|
+
nl: () => import('./translation4.esm.js'),
|
|
298
|
+
fr: () => import('./translation5.esm.js'),
|
|
299
|
+
fi: () => import('./translation6.esm.js'),
|
|
300
|
+
hu: () => import('./translation7.esm.js'),
|
|
301
|
+
it: () => import('./translation8.esm.js'),
|
|
302
|
+
nb: () => import('./translation9.esm.js'),
|
|
303
|
+
pl: () => import('./translation10.esm.js'),
|
|
304
|
+
pt: () => import('./translation11.esm.js'),
|
|
305
|
+
ru: () => import('./translation12.esm.js'),
|
|
306
|
+
ro: () => import('./translation13.esm.js'),
|
|
307
|
+
es: () => import('./translation14.esm.js'),
|
|
308
|
+
sv: () => import('./translation15.esm.js'),
|
|
309
|
+
ja: () => import('./translation16.esm.js'),
|
|
310
|
+
th: () => import('./translation17.esm.js'),
|
|
311
311
|
},
|
|
312
312
|
};
|
|
313
313
|
/**
|
|
@@ -2440,10 +2440,11 @@ const useFilterBarAsync = ({ name, onValuesChange, filterBarDefinition, loadData
|
|
|
2440
2440
|
filterBarConfig: filterBarConfigMemoed,
|
|
2441
2441
|
filterBarDefinition: internalFilterBarDefinitions,
|
|
2442
2442
|
dataLoaded,
|
|
2443
|
+
isDataLoaded,
|
|
2443
2444
|
name,
|
|
2444
2445
|
onValuesChange: stableOnValuesChange,
|
|
2445
2446
|
};
|
|
2446
|
-
}, [filterBarConfigMemoed, internalFilterBarDefinitions, dataLoaded, name, stableOnValuesChange]);
|
|
2447
|
+
}, [filterBarConfigMemoed, internalFilterBarDefinitions, dataLoaded, isDataLoaded, name, stableOnValuesChange]);
|
|
2447
2448
|
};
|
|
2448
2449
|
|
|
2449
2450
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-filter-bar",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.28-alpha-288640a1f26.0",
|
|
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.25.76",
|
|
14
|
-
"@trackunit/iris-app-api": "2.1.
|
|
15
|
-
"@trackunit/react-core-hooks": "1.18.
|
|
16
|
-
"@trackunit/react-filter-components": "2.2.
|
|
17
|
-
"@trackunit/react-date-and-time-components": "2.2.
|
|
18
|
-
"@trackunit/shared-utils": "1.15.
|
|
19
|
-
"@trackunit/react-form-components": "2.2.
|
|
20
|
-
"@trackunit/iris-app-runtime-core-api": "1.16.
|
|
21
|
-
"@trackunit/geo-json-utils": "1.14.
|
|
22
|
-
"@trackunit/i18n-library-translation": "2.1.
|
|
23
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
24
|
-
"@trackunit/react-components": "2.2.
|
|
14
|
+
"@trackunit/iris-app-api": "2.1.24-alpha-288640a1f26.0",
|
|
15
|
+
"@trackunit/react-core-hooks": "1.18.24-alpha-288640a1f26.0",
|
|
16
|
+
"@trackunit/react-filter-components": "2.2.27-alpha-288640a1f26.0",
|
|
17
|
+
"@trackunit/react-date-and-time-components": "2.2.27-alpha-288640a1f26.0",
|
|
18
|
+
"@trackunit/shared-utils": "1.15.86-alpha-288640a1f26.0",
|
|
19
|
+
"@trackunit/react-form-components": "2.2.27-alpha-288640a1f26.0",
|
|
20
|
+
"@trackunit/iris-app-runtime-core-api": "1.16.92-alpha-288640a1f26.0",
|
|
21
|
+
"@trackunit/geo-json-utils": "1.14.86-alpha-288640a1f26.0",
|
|
22
|
+
"@trackunit/i18n-library-translation": "2.1.24-alpha-288640a1f26.0",
|
|
23
|
+
"@trackunit/css-class-variance-utilities": "1.13.83-alpha-288640a1f26.0",
|
|
24
|
+
"@trackunit/react-components": "2.2.26-alpha-288640a1f26.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@apollo/client": "^3.13.8",
|
|
@@ -3,6 +3,14 @@ import { FilterBarProps } from "./types";
|
|
|
3
3
|
import { FilterBarHook } from "./useFilterBar";
|
|
4
4
|
export interface FilterBarAsyncHook<TFilterBarDefinition extends FilterBarDefinition> extends FilterBarHook<TFilterBarDefinition> {
|
|
5
5
|
dataLoaded: (filterBarDefinition: TFilterBarDefinition) => void;
|
|
6
|
+
/**
|
|
7
|
+
* `true` once {@link FilterBarAsyncHook.dataLoaded} has run and `filterBarConfig.values` hold the
|
|
8
|
+
* restored values. Until then the values are empty, which is indistinguishable from "no filters set".
|
|
9
|
+
*
|
|
10
|
+
* Use this to defer work that depends on the final filter values — e.g. gate a list query on it so it
|
|
11
|
+
* isn't fired against the interim empty values and immediately refetched once the real ones arrive.
|
|
12
|
+
*/
|
|
13
|
+
isDataLoaded: boolean;
|
|
6
14
|
}
|
|
7
15
|
/**
|
|
8
16
|
* Custom hook for managing a filter bar's state and actions.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|