@procore/data-table 14.45.0 → 14.46.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/CHANGELOG.md +6 -0
- package/dist/legacy/index.cjs +205 -49
- package/dist/legacy/index.d.cts +2 -0
- package/dist/legacy/index.d.ts +2 -0
- package/dist/legacy/index.js +205 -49
- package/dist/modern/index.cjs +204 -49
- package/dist/modern/index.d.cts +2 -0
- package/dist/modern/index.d.ts +2 -0
- package/dist/modern/index.js +204 -49
- package/package.json +2 -2
package/dist/legacy/index.js
CHANGED
|
@@ -57959,7 +57959,9 @@ var InternalTableContext = React80.createContext({
|
|
|
57959
57959
|
totalRowCount: 0,
|
|
57960
57960
|
setTotalRowCount: () => {
|
|
57961
57961
|
},
|
|
57962
|
-
hasDuplicateRowIds: false
|
|
57962
|
+
hasDuplicateRowIds: false,
|
|
57963
|
+
filtersPanelId: void 0,
|
|
57964
|
+
filtersBodyId: void 0
|
|
57963
57965
|
});
|
|
57964
57966
|
var useInternalTableContext = () => React80.useContext(InternalTableContext);
|
|
57965
57967
|
var prng = detectPrng(true);
|
|
@@ -103372,10 +103374,103 @@ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
|
|
|
103372
103374
|
return f === null || f === void 0 ? void 0 : f(...args);
|
|
103373
103375
|
}, []);
|
|
103374
103376
|
}
|
|
103377
|
+
var $b5e257d569688ac6$var$defaultContext = {
|
|
103378
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
103379
|
+
current: 0
|
|
103380
|
+
};
|
|
103381
|
+
var $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ (React80).createContext($b5e257d569688ac6$var$defaultContext);
|
|
103382
|
+
var $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ (React80).createContext(false);
|
|
103383
|
+
var $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
103384
|
+
var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
103385
|
+
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
103386
|
+
let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
|
|
103387
|
+
let ref = (useRef)(null);
|
|
103388
|
+
if (ref.current === null && !isDisabled) {
|
|
103389
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
103390
|
+
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (React80).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
103391
|
+
if (currentOwner) {
|
|
103392
|
+
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
103393
|
+
if (prevComponentValue == null)
|
|
103394
|
+
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
|
103395
|
+
id: ctx.current,
|
|
103396
|
+
state: currentOwner.memoizedState
|
|
103397
|
+
});
|
|
103398
|
+
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
103399
|
+
ctx.current = prevComponentValue.id;
|
|
103400
|
+
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
|
103401
|
+
}
|
|
103402
|
+
}
|
|
103403
|
+
ref.current = ++ctx.current;
|
|
103404
|
+
}
|
|
103405
|
+
return ref.current;
|
|
103406
|
+
}
|
|
103407
|
+
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
103408
|
+
let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
|
|
103409
|
+
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && process.env.NODE_ENV !== "production") console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
103410
|
+
let counter2 = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
103411
|
+
let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
|
|
103412
|
+
return defaultId || `${prefix}-${counter2}`;
|
|
103413
|
+
}
|
|
103414
|
+
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
103415
|
+
let id = (React80).useId();
|
|
103416
|
+
let [didSSR] = (useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
103417
|
+
let prefix = didSSR || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
103418
|
+
return defaultId || `${prefix}-${id}`;
|
|
103419
|
+
}
|
|
103420
|
+
var $b5e257d569688ac6$export$619500959fc48b26 = typeof (React80)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
103421
|
+
function $b5e257d569688ac6$var$getSnapshot() {
|
|
103422
|
+
return false;
|
|
103423
|
+
}
|
|
103424
|
+
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
103425
|
+
return true;
|
|
103426
|
+
}
|
|
103427
|
+
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
103428
|
+
return () => {
|
|
103429
|
+
};
|
|
103430
|
+
}
|
|
103431
|
+
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
103432
|
+
if (typeof (React80)["useSyncExternalStore"] === "function") return (React80)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
103433
|
+
return (useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
103434
|
+
}
|
|
103435
|
+
|
|
103436
|
+
// ../../node_modules/@react-aria/utils/dist/useId.mjs
|
|
103437
|
+
var $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
103375
103438
|
var $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
|
|
103376
|
-
|
|
103439
|
+
var $bdb11010cef70236$var$registry;
|
|
103440
|
+
if (typeof FinalizationRegistry !== "undefined") $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
|
|
103377
103441
|
$bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
|
|
103378
103442
|
});
|
|
103443
|
+
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
103444
|
+
let [value, setValue] = (useState)(defaultId);
|
|
103445
|
+
let nextId = (useRef)(null);
|
|
103446
|
+
let res = ($b5e257d569688ac6$export$619500959fc48b26)(value);
|
|
103447
|
+
let cleanupRef = (useRef)(null);
|
|
103448
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);
|
|
103449
|
+
if ($bdb11010cef70236$var$canUseDOM) {
|
|
103450
|
+
const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
|
|
103451
|
+
if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
|
|
103452
|
+
else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
|
|
103453
|
+
nextId
|
|
103454
|
+
]);
|
|
103455
|
+
}
|
|
103456
|
+
($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(() => {
|
|
103457
|
+
let r2 = res;
|
|
103458
|
+
return () => {
|
|
103459
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
|
|
103460
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
|
|
103461
|
+
};
|
|
103462
|
+
}, [
|
|
103463
|
+
res
|
|
103464
|
+
]);
|
|
103465
|
+
(useEffect)(() => {
|
|
103466
|
+
let newId = nextId.current;
|
|
103467
|
+
if (newId) setValue(newId);
|
|
103468
|
+
return () => {
|
|
103469
|
+
if (newId) nextId.current = null;
|
|
103470
|
+
};
|
|
103471
|
+
});
|
|
103472
|
+
return res;
|
|
103473
|
+
}
|
|
103379
103474
|
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
103380
103475
|
if (idA === idB) return idA;
|
|
103381
103476
|
let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
|
|
@@ -105141,7 +105236,8 @@ var de_DE_default = {
|
|
|
105141
105236
|
exporting: "Wird exportiert\xA0\u2026",
|
|
105142
105237
|
filters: {
|
|
105143
105238
|
filters: "Filter",
|
|
105144
|
-
allFilters: "
|
|
105239
|
+
allFilters: "Alle Filter",
|
|
105240
|
+
moreFilters: "Weitere Filter",
|
|
105145
105241
|
clearAllFilters: "Alle Filter zur\xFCcksetzen",
|
|
105146
105242
|
close: "Schlie\xDFen",
|
|
105147
105243
|
removeFilterToken: "%{name} entfernen",
|
|
@@ -105160,6 +105256,7 @@ var de_DE_default = {
|
|
|
105160
105256
|
options: {
|
|
105161
105257
|
any_value: "Beliebiger Wert",
|
|
105162
105258
|
is_between: "Ist zwischen",
|
|
105259
|
+
is_equal_to: "Ist gleich",
|
|
105163
105260
|
greater_than: "Ist gr\xF6\xDFer als",
|
|
105164
105261
|
greater_than_equal_to: "Ist gr\xF6\xDFer als oder gleich",
|
|
105165
105262
|
less_than: "Ist kleiner als",
|
|
@@ -105238,7 +105335,7 @@ var de_DE_default = {
|
|
|
105238
105335
|
placeholder: "W\xE4hrung eingeben"
|
|
105239
105336
|
},
|
|
105240
105337
|
linkCell: {
|
|
105241
|
-
externalLabel: "
|
|
105338
|
+
externalLabel: "Externen Link \xF6ffnen"
|
|
105242
105339
|
},
|
|
105243
105340
|
numberCell: {
|
|
105244
105341
|
placeholder: "Nummer eingeben"
|
|
@@ -105320,7 +105417,8 @@ var en_AU_default = {
|
|
|
105320
105417
|
exporting: "Exporting...",
|
|
105321
105418
|
filters: {
|
|
105322
105419
|
filters: "Filters",
|
|
105323
|
-
allFilters: "All
|
|
105420
|
+
allFilters: "All filters",
|
|
105421
|
+
moreFilters: "More filters",
|
|
105324
105422
|
clearAllFilters: "Clear all filters",
|
|
105325
105423
|
close: "Close",
|
|
105326
105424
|
removeFilterToken: "Remove %{name}",
|
|
@@ -105339,6 +105437,7 @@ var en_AU_default = {
|
|
|
105339
105437
|
options: {
|
|
105340
105438
|
any_value: "Any value",
|
|
105341
105439
|
is_between: "Is between",
|
|
105440
|
+
is_equal_to: "Is equal to",
|
|
105342
105441
|
greater_than: "Is greater than",
|
|
105343
105442
|
greater_than_equal_to: "Is greater than or equal to",
|
|
105344
105443
|
less_than: "Is less than",
|
|
@@ -105499,7 +105598,8 @@ var en_CA_default = {
|
|
|
105499
105598
|
exporting: "Exporting...",
|
|
105500
105599
|
filters: {
|
|
105501
105600
|
filters: "Filters",
|
|
105502
|
-
allFilters: "All
|
|
105601
|
+
allFilters: "All filters",
|
|
105602
|
+
moreFilters: "More filters",
|
|
105503
105603
|
clearAllFilters: "Clear all filters",
|
|
105504
105604
|
close: "Close",
|
|
105505
105605
|
removeFilterToken: "Remove %{name}",
|
|
@@ -105518,6 +105618,7 @@ var en_CA_default = {
|
|
|
105518
105618
|
options: {
|
|
105519
105619
|
any_value: "Any value",
|
|
105520
105620
|
is_between: "Is between",
|
|
105621
|
+
is_equal_to: "Is equal to",
|
|
105521
105622
|
greater_than: "Is greater than",
|
|
105522
105623
|
greater_than_equal_to: "Is greater than or equal to",
|
|
105523
105624
|
less_than: "Is less than",
|
|
@@ -105678,7 +105779,8 @@ var en_GB_default = {
|
|
|
105678
105779
|
exporting: "Exporting...",
|
|
105679
105780
|
filters: {
|
|
105680
105781
|
filters: "Filters",
|
|
105681
|
-
allFilters: "All
|
|
105782
|
+
allFilters: "All filters",
|
|
105783
|
+
moreFilters: "More filters",
|
|
105682
105784
|
clearAllFilters: "Clear all filters",
|
|
105683
105785
|
close: "Close",
|
|
105684
105786
|
removeFilterToken: "Remove %{name}",
|
|
@@ -105697,6 +105799,7 @@ var en_GB_default = {
|
|
|
105697
105799
|
options: {
|
|
105698
105800
|
any_value: "Any value",
|
|
105699
105801
|
is_between: "Is between",
|
|
105802
|
+
is_equal_to: "Is equal to",
|
|
105700
105803
|
greater_than: "Is greater than",
|
|
105701
105804
|
greater_than_equal_to: "Is greater than or equal to",
|
|
105702
105805
|
less_than: "Is less than",
|
|
@@ -106038,7 +106141,8 @@ var es_ES_default = {
|
|
|
106038
106141
|
exporting: "Exportando...",
|
|
106039
106142
|
filters: {
|
|
106040
106143
|
filters: "Filtros",
|
|
106041
|
-
allFilters: "
|
|
106144
|
+
allFilters: "Todos los filtros",
|
|
106145
|
+
moreFilters: "M\xE1s filtros",
|
|
106042
106146
|
clearAllFilters: "Borrar todos los filtros",
|
|
106043
106147
|
close: "Cerrar",
|
|
106044
106148
|
removeFilterToken: "Eliminar %{name}",
|
|
@@ -106057,6 +106161,7 @@ var es_ES_default = {
|
|
|
106057
106161
|
options: {
|
|
106058
106162
|
any_value: "Cualquier valor",
|
|
106059
106163
|
is_between: "Est\xE1 entre",
|
|
106164
|
+
is_equal_to: "Es igual a",
|
|
106060
106165
|
greater_than: "Es mayor que",
|
|
106061
106166
|
greater_than_equal_to: "Es mayor o igual que",
|
|
106062
106167
|
less_than: "Es menor que",
|
|
@@ -106135,7 +106240,7 @@ var es_ES_default = {
|
|
|
106135
106240
|
placeholder: "Introducir moneda"
|
|
106136
106241
|
},
|
|
106137
106242
|
linkCell: {
|
|
106138
|
-
externalLabel: "
|
|
106243
|
+
externalLabel: "Abrir enlace externo"
|
|
106139
106244
|
},
|
|
106140
106245
|
numberCell: {
|
|
106141
106246
|
placeholder: "Introducir n\xFAmero"
|
|
@@ -106217,7 +106322,8 @@ var es_default = {
|
|
|
106217
106322
|
exporting: "Exportando...",
|
|
106218
106323
|
filters: {
|
|
106219
106324
|
filters: "Filtros",
|
|
106220
|
-
allFilters: "
|
|
106325
|
+
allFilters: "Todos los filtros",
|
|
106326
|
+
moreFilters: "M\xE1s filtros",
|
|
106221
106327
|
clearAllFilters: "Restablecer todos los filtros",
|
|
106222
106328
|
close: "Cerrar",
|
|
106223
106329
|
removeFilterToken: "Eliminar %{name}",
|
|
@@ -106236,6 +106342,7 @@ var es_default = {
|
|
|
106236
106342
|
options: {
|
|
106237
106343
|
any_value: "Cualquier valor",
|
|
106238
106344
|
is_between: "Est\xE1 entre",
|
|
106345
|
+
is_equal_to: "Es igual a",
|
|
106239
106346
|
greater_than: "Es mayor que",
|
|
106240
106347
|
greater_than_equal_to: "Es mayor o igual que",
|
|
106241
106348
|
less_than: "Es menor que",
|
|
@@ -106314,7 +106421,7 @@ var es_default = {
|
|
|
106314
106421
|
placeholder: "Ingresar moneda"
|
|
106315
106422
|
},
|
|
106316
106423
|
linkCell: {
|
|
106317
|
-
externalLabel: "
|
|
106424
|
+
externalLabel: "Abrir enlace externo"
|
|
106318
106425
|
},
|
|
106319
106426
|
numberCell: {
|
|
106320
106427
|
placeholder: "Ingresar n\xFAmero"
|
|
@@ -106396,7 +106503,8 @@ var fr_CA_default = {
|
|
|
106396
106503
|
exporting: "Exportation ...",
|
|
106397
106504
|
filters: {
|
|
106398
106505
|
filters: "Filtres",
|
|
106399
|
-
allFilters: "
|
|
106506
|
+
allFilters: "Tous les filtres",
|
|
106507
|
+
moreFilters: "Plus de filtres",
|
|
106400
106508
|
clearAllFilters: "Effacer tous les filtres",
|
|
106401
106509
|
close: "Fermer",
|
|
106402
106510
|
removeFilterToken: "Retirer %{name}",
|
|
@@ -106415,6 +106523,7 @@ var fr_CA_default = {
|
|
|
106415
106523
|
options: {
|
|
106416
106524
|
any_value: "N'importe quelle valeur",
|
|
106417
106525
|
is_between: "Est entre",
|
|
106526
|
+
is_equal_to: "Est \xE9gal \xE0",
|
|
106418
106527
|
greater_than: "Est sup\xE9rieur \xE0",
|
|
106419
106528
|
greater_than_equal_to: "Est sup\xE9rieur ou \xE9gal \xE0",
|
|
106420
106529
|
less_than: "Est inf\xE9rieur \xE0",
|
|
@@ -106493,7 +106602,7 @@ var fr_CA_default = {
|
|
|
106493
106602
|
placeholder: "Saisir la devise"
|
|
106494
106603
|
},
|
|
106495
106604
|
linkCell: {
|
|
106496
|
-
externalLabel: "
|
|
106605
|
+
externalLabel: "Lien externe ouvert"
|
|
106497
106606
|
},
|
|
106498
106607
|
numberCell: {
|
|
106499
106608
|
placeholder: "Saisir un num\xE9ro"
|
|
@@ -106575,7 +106684,8 @@ var fr_FR_default = {
|
|
|
106575
106684
|
exporting: "Exportation...",
|
|
106576
106685
|
filters: {
|
|
106577
106686
|
filters: "Filtres",
|
|
106578
|
-
allFilters: "
|
|
106687
|
+
allFilters: "Tous les filtres",
|
|
106688
|
+
moreFilters: "Plus de filtres",
|
|
106579
106689
|
clearAllFilters: "Effacer tous les filtres",
|
|
106580
106690
|
close: "Fermer",
|
|
106581
106691
|
removeFilterToken: "Retirer %{name}",
|
|
@@ -106594,6 +106704,7 @@ var fr_FR_default = {
|
|
|
106594
106704
|
options: {
|
|
106595
106705
|
any_value: "N'importe quelle valeur",
|
|
106596
106706
|
is_between: "Est comprise entre",
|
|
106707
|
+
is_equal_to: "Est \xE9gal \xE0",
|
|
106597
106708
|
greater_than: "Est sup\xE9rieure \xE0",
|
|
106598
106709
|
greater_than_equal_to: "Est sup\xE9rieure ou \xE9gale \xE0",
|
|
106599
106710
|
less_than: "Est inf\xE9rieure \xE0",
|
|
@@ -106657,8 +106768,8 @@ var fr_FR_default = {
|
|
|
106657
106768
|
},
|
|
106658
106769
|
rowGroupToggle: {
|
|
106659
106770
|
expandTierOne: "Ouvrez les premiers groupes du tableau.",
|
|
106660
|
-
expandAll: "
|
|
106661
|
-
collapseAll: "Fermer tous les groupes du tableau
|
|
106771
|
+
expandAll: "Ouvrir tous les groupes du tableau",
|
|
106772
|
+
collapseAll: "Fermer tous les groupes du tableau"
|
|
106662
106773
|
},
|
|
106663
106774
|
columnGroupToggle: {
|
|
106664
106775
|
collapse: "R\xE9duire le groupe de colonnes",
|
|
@@ -106672,7 +106783,7 @@ var fr_FR_default = {
|
|
|
106672
106783
|
placeholder: "Saisir la devise"
|
|
106673
106784
|
},
|
|
106674
106785
|
linkCell: {
|
|
106675
|
-
externalLabel: "
|
|
106786
|
+
externalLabel: "Ouvrir le lien externe"
|
|
106676
106787
|
},
|
|
106677
106788
|
numberCell: {
|
|
106678
106789
|
placeholder: "Saisir un num\xE9ro"
|
|
@@ -106754,7 +106865,8 @@ var is_IS_default = {
|
|
|
106754
106865
|
exporting: "Flytur \xFAt ...",
|
|
106755
106866
|
filters: {
|
|
106756
106867
|
filters: "S\xEDur",
|
|
106757
|
-
allFilters: "
|
|
106868
|
+
allFilters: "Allar s\xEDur",
|
|
106869
|
+
moreFilters: "Fleiri s\xEDur",
|
|
106758
106870
|
clearAllFilters: "Hreinsa allar s\xEDur",
|
|
106759
106871
|
close: "Loka\xF0u",
|
|
106760
106872
|
removeFilterToken: "Fjarl\xE6gja %{name}",
|
|
@@ -106773,6 +106885,7 @@ var is_IS_default = {
|
|
|
106773
106885
|
options: {
|
|
106774
106886
|
any_value: "Hva\xF0a gildi sem er",
|
|
106775
106887
|
is_between: "Er \xE1 milli",
|
|
106888
|
+
is_equal_to: "Er jafnt",
|
|
106776
106889
|
greater_than: "Er meiri en",
|
|
106777
106890
|
greater_than_equal_to: "Er st\xE6rra en e\xF0a jafnt",
|
|
106778
106891
|
less_than: "Er minna en",
|
|
@@ -106851,7 +106964,7 @@ var is_IS_default = {
|
|
|
106851
106964
|
placeholder: "Sl\xE1\xF0u inn gjaldmi\xF0il"
|
|
106852
106965
|
},
|
|
106853
106966
|
linkCell: {
|
|
106854
|
-
externalLabel: "
|
|
106967
|
+
externalLabel: "Opna utana\xF0komandi tengil"
|
|
106855
106968
|
},
|
|
106856
106969
|
numberCell: {
|
|
106857
106970
|
placeholder: "Sl\xE1\xF0u inn n\xFAmer"
|
|
@@ -106933,7 +107046,8 @@ var it_IT_default = {
|
|
|
106933
107046
|
exporting: "Esportazione in corso...",
|
|
106934
107047
|
filters: {
|
|
106935
107048
|
filters: "Filtri",
|
|
106936
|
-
allFilters: "
|
|
107049
|
+
allFilters: "Tutti i filtri",
|
|
107050
|
+
moreFilters: "Altri filtri",
|
|
106937
107051
|
clearAllFilters: "Cancella tutti i filtri",
|
|
106938
107052
|
close: "Chiudi",
|
|
106939
107053
|
removeFilterToken: "Rimuovi %{name}",
|
|
@@ -106952,6 +107066,7 @@ var it_IT_default = {
|
|
|
106952
107066
|
options: {
|
|
106953
107067
|
any_value: "Qualsiasi valore",
|
|
106954
107068
|
is_between: "\xC8 compreso tra",
|
|
107069
|
+
is_equal_to: "\xC8 uguale a",
|
|
106955
107070
|
greater_than: "\xC8 maggiore di",
|
|
106956
107071
|
greater_than_equal_to: "\xC8 maggiore o uguale a",
|
|
106957
107072
|
less_than: "\xC8 minore di",
|
|
@@ -107030,7 +107145,7 @@ var it_IT_default = {
|
|
|
107030
107145
|
placeholder: "Inserisci valuta"
|
|
107031
107146
|
},
|
|
107032
107147
|
linkCell: {
|
|
107033
|
-
externalLabel: "
|
|
107148
|
+
externalLabel: "Apri collegamento esterno"
|
|
107034
107149
|
},
|
|
107035
107150
|
numberCell: {
|
|
107036
107151
|
placeholder: "Inserisci numero"
|
|
@@ -107112,7 +107227,8 @@ var ja_JP_default = {
|
|
|
107112
107227
|
exporting: "\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u4E2D...",
|
|
107113
107228
|
filters: {
|
|
107114
107229
|
filters: "\u30D5\u30A3\u30EB\u30BF",
|
|
107115
|
-
allFilters: "
|
|
107230
|
+
allFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
107231
|
+
moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF",
|
|
107116
107232
|
clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u3092\u6D88\u53BB",
|
|
107117
107233
|
close: "\u7D42\u4E86",
|
|
107118
107234
|
removeFilterToken: "%{name}\u524A\u9664",
|
|
@@ -107131,6 +107247,7 @@ var ja_JP_default = {
|
|
|
107131
107247
|
options: {
|
|
107132
107248
|
any_value: "\u4EFB\u610F\u306E\u5024",
|
|
107133
107249
|
is_between: "\u9593\u306B\u3042\u308B",
|
|
107250
|
+
is_equal_to: "\u7B49\u3057\u3044",
|
|
107134
107251
|
greater_than: "\u3088\u308A\u5927\u304D\u3044",
|
|
107135
107252
|
greater_than_equal_to: "\u4EE5\u4E0A\u3067\u3042\u308B",
|
|
107136
107253
|
less_than: "\u672A\u6E80\u3067\u3042\u308B",
|
|
@@ -107209,7 +107326,7 @@ var ja_JP_default = {
|
|
|
107209
107326
|
placeholder: "\u901A\u8CA8\u3092\u5165\u529B"
|
|
107210
107327
|
},
|
|
107211
107328
|
linkCell: {
|
|
107212
|
-
externalLabel: "
|
|
107329
|
+
externalLabel: "\u5916\u90E8\u30EA\u30F3\u30AF\u3092\u958B\u304F"
|
|
107213
107330
|
},
|
|
107214
107331
|
numberCell: {
|
|
107215
107332
|
placeholder: "\u756A\u53F7\u3092\u5165\u529B"
|
|
@@ -107254,13 +107371,13 @@ var nb_NO_default = {
|
|
|
107254
107371
|
dataTable: {
|
|
107255
107372
|
emptyState: {
|
|
107256
107373
|
noFilteredResults: {
|
|
107257
|
-
description: "
|
|
107374
|
+
description: "Kontroller staving og filteralternativer, eller s\xF8k etter et annet n\xF8kkelord.",
|
|
107258
107375
|
title: "Ingen enheter samsvarer med s\xF8ket ditt",
|
|
107259
107376
|
itemsTitle: "No %{itemsLabel} Match Your Search"
|
|
107260
107377
|
},
|
|
107261
107378
|
noResults: {
|
|
107262
107379
|
description: "Once your team creates these items, you can access them here. ",
|
|
107263
|
-
title: "
|
|
107380
|
+
title: "Ingen enheter kan vises akkurat n\xE5",
|
|
107264
107381
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
107265
107382
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
107266
107383
|
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
@@ -107291,8 +107408,9 @@ var nb_NO_default = {
|
|
|
107291
107408
|
exporting: "Exporting...",
|
|
107292
107409
|
filters: {
|
|
107293
107410
|
filters: "Filtre",
|
|
107294
|
-
allFilters: "
|
|
107295
|
-
|
|
107411
|
+
allFilters: "Alle filtre",
|
|
107412
|
+
moreFilters: "More Filters",
|
|
107413
|
+
clearAllFilters: "Fjern alle filtre",
|
|
107296
107414
|
close: "Close",
|
|
107297
107415
|
removeFilterToken: "Fjern %{name}",
|
|
107298
107416
|
locationFilter: {
|
|
@@ -107310,6 +107428,7 @@ var nb_NO_default = {
|
|
|
107310
107428
|
options: {
|
|
107311
107429
|
any_value: "Any Value",
|
|
107312
107430
|
is_between: "Is Between",
|
|
107431
|
+
is_equal_to: "Is Equal To",
|
|
107313
107432
|
greater_than: "Is Greater Than",
|
|
107314
107433
|
greater_than_equal_to: "Is Greater Than or Equal To",
|
|
107315
107434
|
less_than: "Is Less Than",
|
|
@@ -107351,7 +107470,7 @@ var nb_NO_default = {
|
|
|
107351
107470
|
autoSizeThisColumn: "Autosize This Column",
|
|
107352
107471
|
autoSizeAllColumns: "Autosize All Columns",
|
|
107353
107472
|
hideColumn: "Hide Column",
|
|
107354
|
-
resetColumns: "
|
|
107473
|
+
resetColumns: "Tilbakestill kolonner",
|
|
107355
107474
|
unGroupBy: "Un-Group by {{label}}",
|
|
107356
107475
|
groupBy: "Group by {{label}}"
|
|
107357
107476
|
},
|
|
@@ -107388,7 +107507,7 @@ var nb_NO_default = {
|
|
|
107388
107507
|
placeholder: "Enter currency"
|
|
107389
107508
|
},
|
|
107390
107509
|
linkCell: {
|
|
107391
|
-
externalLabel: "
|
|
107510
|
+
externalLabel: "\xC5pne ekstern kobling"
|
|
107392
107511
|
},
|
|
107393
107512
|
numberCell: {
|
|
107394
107513
|
placeholder: "Enter number"
|
|
@@ -107470,7 +107589,8 @@ var pl_PL_default = {
|
|
|
107470
107589
|
exporting: "Eksportowanie...",
|
|
107471
107590
|
filters: {
|
|
107472
107591
|
filters: "Filtry",
|
|
107473
|
-
allFilters: "
|
|
107592
|
+
allFilters: "Wszystkie filtry",
|
|
107593
|
+
moreFilters: "Wi\u0119cej filtr\xF3w",
|
|
107474
107594
|
clearAllFilters: "Wyczy\u015B\u0107 wszystkie filtry",
|
|
107475
107595
|
close: "Zamknij",
|
|
107476
107596
|
removeFilterToken: "Usu\u0144 %{name}",
|
|
@@ -107489,6 +107609,7 @@ var pl_PL_default = {
|
|
|
107489
107609
|
options: {
|
|
107490
107610
|
any_value: "Dowolna warto\u015B\u0107",
|
|
107491
107611
|
is_between: "jest pomi\u0119dzy",
|
|
107612
|
+
is_equal_to: "jest r\xF3wne",
|
|
107492
107613
|
greater_than: "jest wi\u0119ksze ni\u017C",
|
|
107493
107614
|
greater_than_equal_to: "jest wi\u0119ksze ni\u017C lub r\xF3wne",
|
|
107494
107615
|
less_than: "mniej ni\u017C",
|
|
@@ -107567,7 +107688,7 @@ var pl_PL_default = {
|
|
|
107567
107688
|
placeholder: "Wprowad\u017A walut\u0119"
|
|
107568
107689
|
},
|
|
107569
107690
|
linkCell: {
|
|
107570
|
-
externalLabel: "
|
|
107691
|
+
externalLabel: "Otw\xF3rz zewn\u0119trzne \u0142\u0105cze"
|
|
107571
107692
|
},
|
|
107572
107693
|
numberCell: {
|
|
107573
107694
|
placeholder: "Wprowad\u017A numer"
|
|
@@ -107830,7 +107951,8 @@ var pt_BR_default = {
|
|
|
107830
107951
|
exporting: "Exportando...",
|
|
107831
107952
|
filters: {
|
|
107832
107953
|
filters: "Filtros",
|
|
107833
|
-
allFilters: "
|
|
107954
|
+
allFilters: "Todos os Filtros",
|
|
107955
|
+
moreFilters: "Mais Filtros",
|
|
107834
107956
|
clearAllFilters: "Limpar Todos os Filtros",
|
|
107835
107957
|
close: "Fechar",
|
|
107836
107958
|
removeFilterToken: "Remover %{name}",
|
|
@@ -107849,6 +107971,7 @@ var pt_BR_default = {
|
|
|
107849
107971
|
options: {
|
|
107850
107972
|
any_value: "Qualquer Valor",
|
|
107851
107973
|
is_between: "Est\xE1 entre",
|
|
107974
|
+
is_equal_to: "\xC9 igual a",
|
|
107852
107975
|
greater_than: "\xC9 Maior Que",
|
|
107853
107976
|
greater_than_equal_to: "\xC9 Maior Que ou Igual a",
|
|
107854
107977
|
less_than: "\xC9 Menor Que",
|
|
@@ -107927,7 +108050,7 @@ var pt_BR_default = {
|
|
|
107927
108050
|
placeholder: "Insira moeda"
|
|
107928
108051
|
},
|
|
107929
108052
|
linkCell: {
|
|
107930
|
-
externalLabel: "
|
|
108053
|
+
externalLabel: "Abrir link externo"
|
|
107931
108054
|
},
|
|
107932
108055
|
numberCell: {
|
|
107933
108056
|
placeholder: "Inserir n\xFAmeros"
|
|
@@ -108009,7 +108132,8 @@ var pt_PT_default = {
|
|
|
108009
108132
|
exporting: "A exportar...",
|
|
108010
108133
|
filters: {
|
|
108011
108134
|
filters: "Filtros",
|
|
108012
|
-
allFilters: "
|
|
108135
|
+
allFilters: "Todos os filtros",
|
|
108136
|
+
moreFilters: "Mais filtros",
|
|
108013
108137
|
clearAllFilters: "Apagar todos os filtros",
|
|
108014
108138
|
close: "Fechar",
|
|
108015
108139
|
removeFilterToken: "Remover %{name}",
|
|
@@ -108028,6 +108152,7 @@ var pt_PT_default = {
|
|
|
108028
108152
|
options: {
|
|
108029
108153
|
any_value: "Qualquer valor",
|
|
108030
108154
|
is_between: "Est\xE1 entre",
|
|
108155
|
+
is_equal_to: "\xC9 igual a",
|
|
108031
108156
|
greater_than: "\xC9 superior a",
|
|
108032
108157
|
greater_than_equal_to: "\xC9 igual ou superior a",
|
|
108033
108158
|
less_than: "\xC9 inferior a",
|
|
@@ -108106,7 +108231,7 @@ var pt_PT_default = {
|
|
|
108106
108231
|
placeholder: "Introduzir moeda"
|
|
108107
108232
|
},
|
|
108108
108233
|
linkCell: {
|
|
108109
|
-
externalLabel: "
|
|
108234
|
+
externalLabel: "Abrir liga\xE7\xE3o externa"
|
|
108110
108235
|
},
|
|
108111
108236
|
numberCell: {
|
|
108112
108237
|
placeholder: "Introduzir n\xFAmero"
|
|
@@ -108188,7 +108313,8 @@ var th_TH_default = {
|
|
|
108188
108313
|
exporting: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E2D\u0E2D\u0E01...",
|
|
108189
108314
|
filters: {
|
|
108190
108315
|
filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
108191
|
-
allFilters: "
|
|
108316
|
+
allFilters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
108317
|
+
moreFilters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
|
|
108192
108318
|
clearAllFilters: "\u0E25\u0E49\u0E32\u0E07\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
108193
108319
|
close: "\u0E1B\u0E34\u0E14",
|
|
108194
108320
|
removeFilterToken: "\u0E25\u0E1A %{name}",
|
|
@@ -108207,6 +108333,7 @@ var th_TH_default = {
|
|
|
108207
108333
|
options: {
|
|
108208
108334
|
any_value: "\u0E04\u0E48\u0E32\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49",
|
|
108209
108335
|
is_between: "\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07",
|
|
108336
|
+
is_equal_to: "\u0E40\u0E17\u0E48\u0E32\u0E01\u0E31\u0E1A",
|
|
108210
108337
|
greater_than: "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",
|
|
108211
108338
|
greater_than_equal_to: "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E17\u0E48\u0E32\u0E01\u0E31\u0E1A",
|
|
108212
108339
|
less_than: "\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
@@ -108285,7 +108412,7 @@ var th_TH_default = {
|
|
|
108285
108412
|
placeholder: "\u0E1B\u0E49\u0E2D\u0E19\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19"
|
|
108286
108413
|
},
|
|
108287
108414
|
linkCell: {
|
|
108288
|
-
externalLabel: "
|
|
108415
|
+
externalLabel: "\u0E40\u0E1B\u0E34\u0E14\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E20\u0E32\u0E22\u0E19\u0E2D\u0E01"
|
|
108289
108416
|
},
|
|
108290
108417
|
numberCell: {
|
|
108291
108418
|
placeholder: "\u0E1B\u0E49\u0E2D\u0E19\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02"
|
|
@@ -108367,7 +108494,8 @@ var zh_SG_default = {
|
|
|
108367
108494
|
exporting: "\u6B63\u5728\u5BFC\u51FA...",
|
|
108368
108495
|
filters: {
|
|
108369
108496
|
filters: "\u7B5B\u9009\u5668",
|
|
108370
|
-
allFilters: "
|
|
108497
|
+
allFilters: "\u6240\u6709\u7B5B\u9009\u5668",
|
|
108498
|
+
moreFilters: "\u66F4\u591A\u7B5B\u9009\u5668",
|
|
108371
108499
|
clearAllFilters: "\u6E05\u9664\u6240\u6709\u7B5B\u9009\u5668",
|
|
108372
108500
|
close: "\u5173\u95ED",
|
|
108373
108501
|
removeFilterToken: "\u79FB\u9664 %{name}",
|
|
@@ -108386,6 +108514,7 @@ var zh_SG_default = {
|
|
|
108386
108514
|
options: {
|
|
108387
108515
|
any_value: "\u4EFB\u610F\u503C",
|
|
108388
108516
|
is_between: "\u4ECB\u4E8E",
|
|
108517
|
+
is_equal_to: "\u7B49\u4E8E",
|
|
108389
108518
|
greater_than: "\u5927\u4E8E",
|
|
108390
108519
|
greater_than_equal_to: "\u5927\u4E8E\u6216\u7B49\u4E8E",
|
|
108391
108520
|
less_than: "\u5C0F\u4E8E",
|
|
@@ -108464,7 +108593,7 @@ var zh_SG_default = {
|
|
|
108464
108593
|
placeholder: "\u8F93\u5165\u8D27\u5E01"
|
|
108465
108594
|
},
|
|
108466
108595
|
linkCell: {
|
|
108467
|
-
externalLabel: "
|
|
108596
|
+
externalLabel: "\u6253\u5F00\u5916\u90E8\u94FE\u63A5"
|
|
108468
108597
|
},
|
|
108469
108598
|
numberCell: {
|
|
108470
108599
|
placeholder: "\u8F93\u5165\u6570\u5B57"
|
|
@@ -108546,7 +108675,8 @@ var zh_TW_default = {
|
|
|
108546
108675
|
exporting: "\u532F\u51FA\u4E2D\u2026\u2026",
|
|
108547
108676
|
filters: {
|
|
108548
108677
|
filters: "\u7BE9\u9078\u689D\u4EF6",
|
|
108549
|
-
allFilters: "
|
|
108678
|
+
allFilters: "\u6240\u6709\u7BE9\u9078\u689D\u4EF6",
|
|
108679
|
+
moreFilters: "\u66F4\u591A\u7BE9\u9078\u689D\u4EF6",
|
|
108550
108680
|
clearAllFilters: "\u6E05\u9664\u6240\u6709\u7BE9\u9078\u689D\u4EF6",
|
|
108551
108681
|
close: "\u95DC\u9589",
|
|
108552
108682
|
removeFilterToken: "\u79FB\u9664\u300C%{name}\u300D",
|
|
@@ -108565,6 +108695,7 @@ var zh_TW_default = {
|
|
|
108565
108695
|
options: {
|
|
108566
108696
|
any_value: "\u4EFB\u4F55\u503C",
|
|
108567
108697
|
is_between: "\u4ECB\u65BC",
|
|
108698
|
+
is_equal_to: "\u7B49\u65BC",
|
|
108568
108699
|
greater_than: "\u5927\u65BC",
|
|
108569
108700
|
greater_than_equal_to: "\u5927\u65BC\u6216\u7B49\u65BC",
|
|
108570
108701
|
less_than: "\u5C0F\u65BC",
|
|
@@ -108643,7 +108774,7 @@ var zh_TW_default = {
|
|
|
108643
108774
|
placeholder: "\u8F38\u5165\u8CA8\u5E63"
|
|
108644
108775
|
},
|
|
108645
108776
|
linkCell: {
|
|
108646
|
-
externalLabel: "
|
|
108777
|
+
externalLabel: "\u958B\u555F\u5916\u90E8\u9023\u7D50"
|
|
108647
108778
|
},
|
|
108648
108779
|
numberCell: {
|
|
108649
108780
|
placeholder: "\u8F38\u5165\u6578\u5B57"
|
|
@@ -109697,6 +109828,8 @@ var DataTable = ({
|
|
|
109697
109828
|
!initialTableConfig
|
|
109698
109829
|
);
|
|
109699
109830
|
const contextPanel = useContextPanel();
|
|
109831
|
+
const filtersPanelId = $bdb11010cef70236$export$f680877a34711e37();
|
|
109832
|
+
const filtersBodyId = $bdb11010cef70236$export$f680877a34711e37();
|
|
109700
109833
|
const clientI18n = useI18nContext();
|
|
109701
109834
|
const isCDNEnabled = isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
109702
109835
|
const cdnTranslations = useRequestTranslations(
|
|
@@ -109948,7 +110081,9 @@ var DataTable = ({
|
|
|
109948
110081
|
totalRowCount,
|
|
109949
110082
|
setTotalRowCount,
|
|
109950
110083
|
updateServerSideDataSource,
|
|
109951
|
-
hasDuplicateRowIds
|
|
110084
|
+
hasDuplicateRowIds,
|
|
110085
|
+
filtersPanelId,
|
|
110086
|
+
filtersBodyId
|
|
109952
110087
|
}
|
|
109953
110088
|
},
|
|
109954
110089
|
children
|
|
@@ -111296,7 +111431,7 @@ var BaseFiltersPanel = ({
|
|
|
111296
111431
|
...props
|
|
111297
111432
|
}) => {
|
|
111298
111433
|
const ref = React80.useRef(null);
|
|
111299
|
-
const { contextPanel } = useInternalTableContext();
|
|
111434
|
+
const { contextPanel, filtersBodyId, filtersPanelId } = useInternalTableContext();
|
|
111300
111435
|
const I18n = useI18nContext();
|
|
111301
111436
|
const hidden = !contextPanel.isVisible || contextPanel.content !== "filters";
|
|
111302
111437
|
React80.useLayoutEffect(() => {
|
|
@@ -111313,6 +111448,7 @@ var BaseFiltersPanel = ({
|
|
|
111313
111448
|
"contextPanel--hidden": hidden
|
|
111314
111449
|
}),
|
|
111315
111450
|
"data-qa": "data-table-filters-context-panel",
|
|
111451
|
+
id: filtersPanelId,
|
|
111316
111452
|
...props
|
|
111317
111453
|
},
|
|
111318
111454
|
/* @__PURE__ */ React80.createElement(Box, { className: cx20("contextPanelWrapper"), display: "flex-column" }, /* @__PURE__ */ React80.createElement(Panel, null, /* @__PURE__ */ React80.createElement(Panel.Header, { onClose: contextPanel.hide }, /* @__PURE__ */ React80.createElement(Panel.Title, null, I18n.t("dataTable.filters.filters")), /* @__PURE__ */ React80.createElement(
|
|
@@ -111324,7 +111460,7 @@ var BaseFiltersPanel = ({
|
|
|
111324
111460
|
variant: "tertiary"
|
|
111325
111461
|
},
|
|
111326
111462
|
I18n.t("dataTable.filters.clearAllFilters")
|
|
111327
|
-
)), /* @__PURE__ */ React80.createElement(Panel.Body, { className: cx20("contextPanelBody") }, /* @__PURE__ */ React80.createElement(Panel.Section, null, children))))
|
|
111463
|
+
)), /* @__PURE__ */ React80.createElement(Panel.Body, { id: filtersBodyId, className: cx20("contextPanelBody") }, /* @__PURE__ */ React80.createElement(Panel.Section, null, children))))
|
|
111328
111464
|
);
|
|
111329
111465
|
};
|
|
111330
111466
|
function ClientSideFiltersPanel(props) {
|
|
@@ -112511,10 +112647,27 @@ var SingleSelectQuickFilterRenderer = (props) => {
|
|
|
112511
112647
|
return /* @__PURE__ */ React80.createElement(ClientSideSingleSelectQuickFilter, { ...props });
|
|
112512
112648
|
};
|
|
112513
112649
|
var SingleSelectQuickFilterRenderer_default = SingleSelectQuickFilterRenderer;
|
|
112650
|
+
var FOCUSABLE_SELECTOR2 = 'button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
112514
112651
|
var FiltersPanelToggleButton = ({ hasDefinedFilters }) => {
|
|
112515
112652
|
const I18n = useI18nContext();
|
|
112516
|
-
const { contextPanel } = useInternalTableContext();
|
|
112653
|
+
const { contextPanel, filtersBodyId, filtersPanelId } = useInternalTableContext();
|
|
112517
112654
|
const hasNoContent = useTableHasNoContent();
|
|
112655
|
+
const buttonRef = React80.useRef(null);
|
|
112656
|
+
const isFiltersOpen = contextPanel.content === "filters";
|
|
112657
|
+
const isMounted = React80.useRef(false);
|
|
112658
|
+
React80.useEffect(() => {
|
|
112659
|
+
var _a, _b;
|
|
112660
|
+
if (!isMounted.current) {
|
|
112661
|
+
isMounted.current = true;
|
|
112662
|
+
return;
|
|
112663
|
+
}
|
|
112664
|
+
if (isFiltersOpen) {
|
|
112665
|
+
const panel = filtersBodyId ? document.getElementById(filtersBodyId) : null;
|
|
112666
|
+
(_a = panel == null ? void 0 : panel.querySelector(FOCUSABLE_SELECTOR2)) == null ? void 0 : _a.focus();
|
|
112667
|
+
} else {
|
|
112668
|
+
(_b = buttonRef.current) == null ? void 0 : _b.focus();
|
|
112669
|
+
}
|
|
112670
|
+
}, [isFiltersOpen, filtersBodyId]);
|
|
112518
112671
|
if (!hasDefinedFilters) {
|
|
112519
112672
|
return null;
|
|
112520
112673
|
}
|
|
@@ -112527,17 +112680,20 @@ var FiltersPanelToggleButton = ({ hasDefinedFilters }) => {
|
|
|
112527
112680
|
/* @__PURE__ */ React80.createElement(
|
|
112528
112681
|
ToggleButton,
|
|
112529
112682
|
{
|
|
112683
|
+
ref: buttonRef,
|
|
112530
112684
|
"data-qa": "data-table-show-filters-button",
|
|
112531
112685
|
disabled: hasNoContent,
|
|
112532
112686
|
icon: /* @__PURE__ */ React80.createElement(FilterIcon, null),
|
|
112687
|
+
"aria-expanded": isFiltersOpen,
|
|
112688
|
+
"aria-controls": filtersPanelId,
|
|
112533
112689
|
onClick: () => {
|
|
112534
|
-
if (
|
|
112535
|
-
contextPanel.hide();
|
|
112536
|
-
} else {
|
|
112690
|
+
if (!isFiltersOpen) {
|
|
112537
112691
|
contextPanel.show("filters");
|
|
112692
|
+
} else {
|
|
112693
|
+
contextPanel.hide();
|
|
112538
112694
|
}
|
|
112539
112695
|
},
|
|
112540
|
-
selected:
|
|
112696
|
+
selected: isFiltersOpen
|
|
112541
112697
|
},
|
|
112542
112698
|
I18n.t("dataTable.filters.allFilters")
|
|
112543
112699
|
)
|