@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/modern/index.js
CHANGED
|
@@ -57854,7 +57854,9 @@ var InternalTableContext = React80.createContext({
|
|
|
57854
57854
|
totalRowCount: 0,
|
|
57855
57855
|
setTotalRowCount: () => {
|
|
57856
57856
|
},
|
|
57857
|
-
hasDuplicateRowIds: false
|
|
57857
|
+
hasDuplicateRowIds: false,
|
|
57858
|
+
filtersPanelId: void 0,
|
|
57859
|
+
filtersBodyId: void 0
|
|
57858
57860
|
});
|
|
57859
57861
|
var useInternalTableContext = () => React80.useContext(InternalTableContext);
|
|
57860
57862
|
var prng = detectPrng(true);
|
|
@@ -103266,10 +103268,103 @@ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
|
|
|
103266
103268
|
return f === null || f === void 0 ? void 0 : f(...args);
|
|
103267
103269
|
}, []);
|
|
103268
103270
|
}
|
|
103271
|
+
var $b5e257d569688ac6$var$defaultContext = {
|
|
103272
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
103273
|
+
current: 0
|
|
103274
|
+
};
|
|
103275
|
+
var $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ (React80).createContext($b5e257d569688ac6$var$defaultContext);
|
|
103276
|
+
var $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ (React80).createContext(false);
|
|
103277
|
+
var $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
103278
|
+
var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
103279
|
+
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
103280
|
+
let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
|
|
103281
|
+
let ref = (useRef)(null);
|
|
103282
|
+
if (ref.current === null && !isDisabled) {
|
|
103283
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
103284
|
+
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;
|
|
103285
|
+
if (currentOwner) {
|
|
103286
|
+
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
103287
|
+
if (prevComponentValue == null)
|
|
103288
|
+
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
|
103289
|
+
id: ctx.current,
|
|
103290
|
+
state: currentOwner.memoizedState
|
|
103291
|
+
});
|
|
103292
|
+
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
103293
|
+
ctx.current = prevComponentValue.id;
|
|
103294
|
+
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
|
103295
|
+
}
|
|
103296
|
+
}
|
|
103297
|
+
ref.current = ++ctx.current;
|
|
103298
|
+
}
|
|
103299
|
+
return ref.current;
|
|
103300
|
+
}
|
|
103301
|
+
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
103302
|
+
let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
|
|
103303
|
+
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.");
|
|
103304
|
+
let counter2 = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
103305
|
+
let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
|
|
103306
|
+
return defaultId || `${prefix}-${counter2}`;
|
|
103307
|
+
}
|
|
103308
|
+
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
103309
|
+
let id = (React80).useId();
|
|
103310
|
+
let [didSSR] = (useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
103311
|
+
let prefix = didSSR || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
103312
|
+
return defaultId || `${prefix}-${id}`;
|
|
103313
|
+
}
|
|
103314
|
+
var $b5e257d569688ac6$export$619500959fc48b26 = typeof (React80)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
103315
|
+
function $b5e257d569688ac6$var$getSnapshot() {
|
|
103316
|
+
return false;
|
|
103317
|
+
}
|
|
103318
|
+
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
103319
|
+
return true;
|
|
103320
|
+
}
|
|
103321
|
+
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
103322
|
+
return () => {
|
|
103323
|
+
};
|
|
103324
|
+
}
|
|
103325
|
+
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
103326
|
+
if (typeof (React80)["useSyncExternalStore"] === "function") return (React80)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
103327
|
+
return (useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
103328
|
+
}
|
|
103329
|
+
|
|
103330
|
+
// ../../node_modules/@react-aria/utils/dist/useId.mjs
|
|
103331
|
+
var $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
103269
103332
|
var $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
|
|
103270
|
-
|
|
103333
|
+
var $bdb11010cef70236$var$registry;
|
|
103334
|
+
if (typeof FinalizationRegistry !== "undefined") $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
|
|
103271
103335
|
$bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
|
|
103272
103336
|
});
|
|
103337
|
+
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
103338
|
+
let [value, setValue] = (useState)(defaultId);
|
|
103339
|
+
let nextId = (useRef)(null);
|
|
103340
|
+
let res = ($b5e257d569688ac6$export$619500959fc48b26)(value);
|
|
103341
|
+
let cleanupRef = (useRef)(null);
|
|
103342
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);
|
|
103343
|
+
if ($bdb11010cef70236$var$canUseDOM) {
|
|
103344
|
+
const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
|
|
103345
|
+
if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
|
|
103346
|
+
else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
|
|
103347
|
+
nextId
|
|
103348
|
+
]);
|
|
103349
|
+
}
|
|
103350
|
+
($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(() => {
|
|
103351
|
+
let r2 = res;
|
|
103352
|
+
return () => {
|
|
103353
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
|
|
103354
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
|
|
103355
|
+
};
|
|
103356
|
+
}, [
|
|
103357
|
+
res
|
|
103358
|
+
]);
|
|
103359
|
+
(useEffect)(() => {
|
|
103360
|
+
let newId = nextId.current;
|
|
103361
|
+
if (newId) setValue(newId);
|
|
103362
|
+
return () => {
|
|
103363
|
+
if (newId) nextId.current = null;
|
|
103364
|
+
};
|
|
103365
|
+
});
|
|
103366
|
+
return res;
|
|
103367
|
+
}
|
|
103273
103368
|
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
103274
103369
|
if (idA === idB) return idA;
|
|
103275
103370
|
let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
|
|
@@ -104999,7 +105094,8 @@ var de_DE_default = {
|
|
|
104999
105094
|
exporting: "Wird exportiert\xA0\u2026",
|
|
105000
105095
|
filters: {
|
|
105001
105096
|
filters: "Filter",
|
|
105002
|
-
allFilters: "
|
|
105097
|
+
allFilters: "Alle Filter",
|
|
105098
|
+
moreFilters: "Weitere Filter",
|
|
105003
105099
|
clearAllFilters: "Alle Filter zur\xFCcksetzen",
|
|
105004
105100
|
close: "Schlie\xDFen",
|
|
105005
105101
|
removeFilterToken: "%{name} entfernen",
|
|
@@ -105018,6 +105114,7 @@ var de_DE_default = {
|
|
|
105018
105114
|
options: {
|
|
105019
105115
|
any_value: "Beliebiger Wert",
|
|
105020
105116
|
is_between: "Ist zwischen",
|
|
105117
|
+
is_equal_to: "Ist gleich",
|
|
105021
105118
|
greater_than: "Ist gr\xF6\xDFer als",
|
|
105022
105119
|
greater_than_equal_to: "Ist gr\xF6\xDFer als oder gleich",
|
|
105023
105120
|
less_than: "Ist kleiner als",
|
|
@@ -105096,7 +105193,7 @@ var de_DE_default = {
|
|
|
105096
105193
|
placeholder: "W\xE4hrung eingeben"
|
|
105097
105194
|
},
|
|
105098
105195
|
linkCell: {
|
|
105099
|
-
externalLabel: "
|
|
105196
|
+
externalLabel: "Externen Link \xF6ffnen"
|
|
105100
105197
|
},
|
|
105101
105198
|
numberCell: {
|
|
105102
105199
|
placeholder: "Nummer eingeben"
|
|
@@ -105178,7 +105275,8 @@ var en_AU_default = {
|
|
|
105178
105275
|
exporting: "Exporting...",
|
|
105179
105276
|
filters: {
|
|
105180
105277
|
filters: "Filters",
|
|
105181
|
-
allFilters: "All
|
|
105278
|
+
allFilters: "All filters",
|
|
105279
|
+
moreFilters: "More filters",
|
|
105182
105280
|
clearAllFilters: "Clear all filters",
|
|
105183
105281
|
close: "Close",
|
|
105184
105282
|
removeFilterToken: "Remove %{name}",
|
|
@@ -105197,6 +105295,7 @@ var en_AU_default = {
|
|
|
105197
105295
|
options: {
|
|
105198
105296
|
any_value: "Any value",
|
|
105199
105297
|
is_between: "Is between",
|
|
105298
|
+
is_equal_to: "Is equal to",
|
|
105200
105299
|
greater_than: "Is greater than",
|
|
105201
105300
|
greater_than_equal_to: "Is greater than or equal to",
|
|
105202
105301
|
less_than: "Is less than",
|
|
@@ -105357,7 +105456,8 @@ var en_CA_default = {
|
|
|
105357
105456
|
exporting: "Exporting...",
|
|
105358
105457
|
filters: {
|
|
105359
105458
|
filters: "Filters",
|
|
105360
|
-
allFilters: "All
|
|
105459
|
+
allFilters: "All filters",
|
|
105460
|
+
moreFilters: "More filters",
|
|
105361
105461
|
clearAllFilters: "Clear all filters",
|
|
105362
105462
|
close: "Close",
|
|
105363
105463
|
removeFilterToken: "Remove %{name}",
|
|
@@ -105376,6 +105476,7 @@ var en_CA_default = {
|
|
|
105376
105476
|
options: {
|
|
105377
105477
|
any_value: "Any value",
|
|
105378
105478
|
is_between: "Is between",
|
|
105479
|
+
is_equal_to: "Is equal to",
|
|
105379
105480
|
greater_than: "Is greater than",
|
|
105380
105481
|
greater_than_equal_to: "Is greater than or equal to",
|
|
105381
105482
|
less_than: "Is less than",
|
|
@@ -105536,7 +105637,8 @@ var en_GB_default = {
|
|
|
105536
105637
|
exporting: "Exporting...",
|
|
105537
105638
|
filters: {
|
|
105538
105639
|
filters: "Filters",
|
|
105539
|
-
allFilters: "All
|
|
105640
|
+
allFilters: "All filters",
|
|
105641
|
+
moreFilters: "More filters",
|
|
105540
105642
|
clearAllFilters: "Clear all filters",
|
|
105541
105643
|
close: "Close",
|
|
105542
105644
|
removeFilterToken: "Remove %{name}",
|
|
@@ -105555,6 +105657,7 @@ var en_GB_default = {
|
|
|
105555
105657
|
options: {
|
|
105556
105658
|
any_value: "Any value",
|
|
105557
105659
|
is_between: "Is between",
|
|
105660
|
+
is_equal_to: "Is equal to",
|
|
105558
105661
|
greater_than: "Is greater than",
|
|
105559
105662
|
greater_than_equal_to: "Is greater than or equal to",
|
|
105560
105663
|
less_than: "Is less than",
|
|
@@ -105896,7 +105999,8 @@ var es_ES_default = {
|
|
|
105896
105999
|
exporting: "Exportando...",
|
|
105897
106000
|
filters: {
|
|
105898
106001
|
filters: "Filtros",
|
|
105899
|
-
allFilters: "
|
|
106002
|
+
allFilters: "Todos los filtros",
|
|
106003
|
+
moreFilters: "M\xE1s filtros",
|
|
105900
106004
|
clearAllFilters: "Borrar todos los filtros",
|
|
105901
106005
|
close: "Cerrar",
|
|
105902
106006
|
removeFilterToken: "Eliminar %{name}",
|
|
@@ -105915,6 +106019,7 @@ var es_ES_default = {
|
|
|
105915
106019
|
options: {
|
|
105916
106020
|
any_value: "Cualquier valor",
|
|
105917
106021
|
is_between: "Est\xE1 entre",
|
|
106022
|
+
is_equal_to: "Es igual a",
|
|
105918
106023
|
greater_than: "Es mayor que",
|
|
105919
106024
|
greater_than_equal_to: "Es mayor o igual que",
|
|
105920
106025
|
less_than: "Es menor que",
|
|
@@ -105993,7 +106098,7 @@ var es_ES_default = {
|
|
|
105993
106098
|
placeholder: "Introducir moneda"
|
|
105994
106099
|
},
|
|
105995
106100
|
linkCell: {
|
|
105996
|
-
externalLabel: "
|
|
106101
|
+
externalLabel: "Abrir enlace externo"
|
|
105997
106102
|
},
|
|
105998
106103
|
numberCell: {
|
|
105999
106104
|
placeholder: "Introducir n\xFAmero"
|
|
@@ -106075,7 +106180,8 @@ var es_default = {
|
|
|
106075
106180
|
exporting: "Exportando...",
|
|
106076
106181
|
filters: {
|
|
106077
106182
|
filters: "Filtros",
|
|
106078
|
-
allFilters: "
|
|
106183
|
+
allFilters: "Todos los filtros",
|
|
106184
|
+
moreFilters: "M\xE1s filtros",
|
|
106079
106185
|
clearAllFilters: "Restablecer todos los filtros",
|
|
106080
106186
|
close: "Cerrar",
|
|
106081
106187
|
removeFilterToken: "Eliminar %{name}",
|
|
@@ -106094,6 +106200,7 @@ var es_default = {
|
|
|
106094
106200
|
options: {
|
|
106095
106201
|
any_value: "Cualquier valor",
|
|
106096
106202
|
is_between: "Est\xE1 entre",
|
|
106203
|
+
is_equal_to: "Es igual a",
|
|
106097
106204
|
greater_than: "Es mayor que",
|
|
106098
106205
|
greater_than_equal_to: "Es mayor o igual que",
|
|
106099
106206
|
less_than: "Es menor que",
|
|
@@ -106172,7 +106279,7 @@ var es_default = {
|
|
|
106172
106279
|
placeholder: "Ingresar moneda"
|
|
106173
106280
|
},
|
|
106174
106281
|
linkCell: {
|
|
106175
|
-
externalLabel: "
|
|
106282
|
+
externalLabel: "Abrir enlace externo"
|
|
106176
106283
|
},
|
|
106177
106284
|
numberCell: {
|
|
106178
106285
|
placeholder: "Ingresar n\xFAmero"
|
|
@@ -106254,7 +106361,8 @@ var fr_CA_default = {
|
|
|
106254
106361
|
exporting: "Exportation ...",
|
|
106255
106362
|
filters: {
|
|
106256
106363
|
filters: "Filtres",
|
|
106257
|
-
allFilters: "
|
|
106364
|
+
allFilters: "Tous les filtres",
|
|
106365
|
+
moreFilters: "Plus de filtres",
|
|
106258
106366
|
clearAllFilters: "Effacer tous les filtres",
|
|
106259
106367
|
close: "Fermer",
|
|
106260
106368
|
removeFilterToken: "Retirer %{name}",
|
|
@@ -106273,6 +106381,7 @@ var fr_CA_default = {
|
|
|
106273
106381
|
options: {
|
|
106274
106382
|
any_value: "N'importe quelle valeur",
|
|
106275
106383
|
is_between: "Est entre",
|
|
106384
|
+
is_equal_to: "Est \xE9gal \xE0",
|
|
106276
106385
|
greater_than: "Est sup\xE9rieur \xE0",
|
|
106277
106386
|
greater_than_equal_to: "Est sup\xE9rieur ou \xE9gal \xE0",
|
|
106278
106387
|
less_than: "Est inf\xE9rieur \xE0",
|
|
@@ -106351,7 +106460,7 @@ var fr_CA_default = {
|
|
|
106351
106460
|
placeholder: "Saisir la devise"
|
|
106352
106461
|
},
|
|
106353
106462
|
linkCell: {
|
|
106354
|
-
externalLabel: "
|
|
106463
|
+
externalLabel: "Lien externe ouvert"
|
|
106355
106464
|
},
|
|
106356
106465
|
numberCell: {
|
|
106357
106466
|
placeholder: "Saisir un num\xE9ro"
|
|
@@ -106433,7 +106542,8 @@ var fr_FR_default = {
|
|
|
106433
106542
|
exporting: "Exportation...",
|
|
106434
106543
|
filters: {
|
|
106435
106544
|
filters: "Filtres",
|
|
106436
|
-
allFilters: "
|
|
106545
|
+
allFilters: "Tous les filtres",
|
|
106546
|
+
moreFilters: "Plus de filtres",
|
|
106437
106547
|
clearAllFilters: "Effacer tous les filtres",
|
|
106438
106548
|
close: "Fermer",
|
|
106439
106549
|
removeFilterToken: "Retirer %{name}",
|
|
@@ -106452,6 +106562,7 @@ var fr_FR_default = {
|
|
|
106452
106562
|
options: {
|
|
106453
106563
|
any_value: "N'importe quelle valeur",
|
|
106454
106564
|
is_between: "Est comprise entre",
|
|
106565
|
+
is_equal_to: "Est \xE9gal \xE0",
|
|
106455
106566
|
greater_than: "Est sup\xE9rieure \xE0",
|
|
106456
106567
|
greater_than_equal_to: "Est sup\xE9rieure ou \xE9gale \xE0",
|
|
106457
106568
|
less_than: "Est inf\xE9rieure \xE0",
|
|
@@ -106515,8 +106626,8 @@ var fr_FR_default = {
|
|
|
106515
106626
|
},
|
|
106516
106627
|
rowGroupToggle: {
|
|
106517
106628
|
expandTierOne: "Ouvrez les premiers groupes du tableau.",
|
|
106518
|
-
expandAll: "
|
|
106519
|
-
collapseAll: "Fermer tous les groupes du tableau
|
|
106629
|
+
expandAll: "Ouvrir tous les groupes du tableau",
|
|
106630
|
+
collapseAll: "Fermer tous les groupes du tableau"
|
|
106520
106631
|
},
|
|
106521
106632
|
columnGroupToggle: {
|
|
106522
106633
|
collapse: "R\xE9duire le groupe de colonnes",
|
|
@@ -106530,7 +106641,7 @@ var fr_FR_default = {
|
|
|
106530
106641
|
placeholder: "Saisir la devise"
|
|
106531
106642
|
},
|
|
106532
106643
|
linkCell: {
|
|
106533
|
-
externalLabel: "
|
|
106644
|
+
externalLabel: "Ouvrir le lien externe"
|
|
106534
106645
|
},
|
|
106535
106646
|
numberCell: {
|
|
106536
106647
|
placeholder: "Saisir un num\xE9ro"
|
|
@@ -106612,7 +106723,8 @@ var is_IS_default = {
|
|
|
106612
106723
|
exporting: "Flytur \xFAt ...",
|
|
106613
106724
|
filters: {
|
|
106614
106725
|
filters: "S\xEDur",
|
|
106615
|
-
allFilters: "
|
|
106726
|
+
allFilters: "Allar s\xEDur",
|
|
106727
|
+
moreFilters: "Fleiri s\xEDur",
|
|
106616
106728
|
clearAllFilters: "Hreinsa allar s\xEDur",
|
|
106617
106729
|
close: "Loka\xF0u",
|
|
106618
106730
|
removeFilterToken: "Fjarl\xE6gja %{name}",
|
|
@@ -106631,6 +106743,7 @@ var is_IS_default = {
|
|
|
106631
106743
|
options: {
|
|
106632
106744
|
any_value: "Hva\xF0a gildi sem er",
|
|
106633
106745
|
is_between: "Er \xE1 milli",
|
|
106746
|
+
is_equal_to: "Er jafnt",
|
|
106634
106747
|
greater_than: "Er meiri en",
|
|
106635
106748
|
greater_than_equal_to: "Er st\xE6rra en e\xF0a jafnt",
|
|
106636
106749
|
less_than: "Er minna en",
|
|
@@ -106709,7 +106822,7 @@ var is_IS_default = {
|
|
|
106709
106822
|
placeholder: "Sl\xE1\xF0u inn gjaldmi\xF0il"
|
|
106710
106823
|
},
|
|
106711
106824
|
linkCell: {
|
|
106712
|
-
externalLabel: "
|
|
106825
|
+
externalLabel: "Opna utana\xF0komandi tengil"
|
|
106713
106826
|
},
|
|
106714
106827
|
numberCell: {
|
|
106715
106828
|
placeholder: "Sl\xE1\xF0u inn n\xFAmer"
|
|
@@ -106791,7 +106904,8 @@ var it_IT_default = {
|
|
|
106791
106904
|
exporting: "Esportazione in corso...",
|
|
106792
106905
|
filters: {
|
|
106793
106906
|
filters: "Filtri",
|
|
106794
|
-
allFilters: "
|
|
106907
|
+
allFilters: "Tutti i filtri",
|
|
106908
|
+
moreFilters: "Altri filtri",
|
|
106795
106909
|
clearAllFilters: "Cancella tutti i filtri",
|
|
106796
106910
|
close: "Chiudi",
|
|
106797
106911
|
removeFilterToken: "Rimuovi %{name}",
|
|
@@ -106810,6 +106924,7 @@ var it_IT_default = {
|
|
|
106810
106924
|
options: {
|
|
106811
106925
|
any_value: "Qualsiasi valore",
|
|
106812
106926
|
is_between: "\xC8 compreso tra",
|
|
106927
|
+
is_equal_to: "\xC8 uguale a",
|
|
106813
106928
|
greater_than: "\xC8 maggiore di",
|
|
106814
106929
|
greater_than_equal_to: "\xC8 maggiore o uguale a",
|
|
106815
106930
|
less_than: "\xC8 minore di",
|
|
@@ -106888,7 +107003,7 @@ var it_IT_default = {
|
|
|
106888
107003
|
placeholder: "Inserisci valuta"
|
|
106889
107004
|
},
|
|
106890
107005
|
linkCell: {
|
|
106891
|
-
externalLabel: "
|
|
107006
|
+
externalLabel: "Apri collegamento esterno"
|
|
106892
107007
|
},
|
|
106893
107008
|
numberCell: {
|
|
106894
107009
|
placeholder: "Inserisci numero"
|
|
@@ -106970,7 +107085,8 @@ var ja_JP_default = {
|
|
|
106970
107085
|
exporting: "\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u4E2D...",
|
|
106971
107086
|
filters: {
|
|
106972
107087
|
filters: "\u30D5\u30A3\u30EB\u30BF",
|
|
106973
|
-
allFilters: "
|
|
107088
|
+
allFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
107089
|
+
moreFilters: "\u305D\u306E\u4ED6\u306E\u30D5\u30A3\u30EB\u30BF",
|
|
106974
107090
|
clearAllFilters: "\u3059\u3079\u3066\u306E\u30D5\u30A3\u30EB\u30BF\u3092\u6D88\u53BB",
|
|
106975
107091
|
close: "\u7D42\u4E86",
|
|
106976
107092
|
removeFilterToken: "%{name}\u524A\u9664",
|
|
@@ -106989,6 +107105,7 @@ var ja_JP_default = {
|
|
|
106989
107105
|
options: {
|
|
106990
107106
|
any_value: "\u4EFB\u610F\u306E\u5024",
|
|
106991
107107
|
is_between: "\u9593\u306B\u3042\u308B",
|
|
107108
|
+
is_equal_to: "\u7B49\u3057\u3044",
|
|
106992
107109
|
greater_than: "\u3088\u308A\u5927\u304D\u3044",
|
|
106993
107110
|
greater_than_equal_to: "\u4EE5\u4E0A\u3067\u3042\u308B",
|
|
106994
107111
|
less_than: "\u672A\u6E80\u3067\u3042\u308B",
|
|
@@ -107067,7 +107184,7 @@ var ja_JP_default = {
|
|
|
107067
107184
|
placeholder: "\u901A\u8CA8\u3092\u5165\u529B"
|
|
107068
107185
|
},
|
|
107069
107186
|
linkCell: {
|
|
107070
|
-
externalLabel: "
|
|
107187
|
+
externalLabel: "\u5916\u90E8\u30EA\u30F3\u30AF\u3092\u958B\u304F"
|
|
107071
107188
|
},
|
|
107072
107189
|
numberCell: {
|
|
107073
107190
|
placeholder: "\u756A\u53F7\u3092\u5165\u529B"
|
|
@@ -107112,13 +107229,13 @@ var nb_NO_default = {
|
|
|
107112
107229
|
dataTable: {
|
|
107113
107230
|
emptyState: {
|
|
107114
107231
|
noFilteredResults: {
|
|
107115
|
-
description: "
|
|
107232
|
+
description: "Kontroller staving og filteralternativer, eller s\xF8k etter et annet n\xF8kkelord.",
|
|
107116
107233
|
title: "Ingen enheter samsvarer med s\xF8ket ditt",
|
|
107117
107234
|
itemsTitle: "No %{itemsLabel} Match Your Search"
|
|
107118
107235
|
},
|
|
107119
107236
|
noResults: {
|
|
107120
107237
|
description: "Once your team creates these items, you can access them here. ",
|
|
107121
|
-
title: "
|
|
107238
|
+
title: "Ingen enheter kan vises akkurat n\xE5",
|
|
107122
107239
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
107123
107240
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
107124
107241
|
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
@@ -107149,8 +107266,9 @@ var nb_NO_default = {
|
|
|
107149
107266
|
exporting: "Exporting...",
|
|
107150
107267
|
filters: {
|
|
107151
107268
|
filters: "Filtre",
|
|
107152
|
-
allFilters: "
|
|
107153
|
-
|
|
107269
|
+
allFilters: "Alle filtre",
|
|
107270
|
+
moreFilters: "More Filters",
|
|
107271
|
+
clearAllFilters: "Fjern alle filtre",
|
|
107154
107272
|
close: "Close",
|
|
107155
107273
|
removeFilterToken: "Fjern %{name}",
|
|
107156
107274
|
locationFilter: {
|
|
@@ -107168,6 +107286,7 @@ var nb_NO_default = {
|
|
|
107168
107286
|
options: {
|
|
107169
107287
|
any_value: "Any Value",
|
|
107170
107288
|
is_between: "Is Between",
|
|
107289
|
+
is_equal_to: "Is Equal To",
|
|
107171
107290
|
greater_than: "Is Greater Than",
|
|
107172
107291
|
greater_than_equal_to: "Is Greater Than or Equal To",
|
|
107173
107292
|
less_than: "Is Less Than",
|
|
@@ -107209,7 +107328,7 @@ var nb_NO_default = {
|
|
|
107209
107328
|
autoSizeThisColumn: "Autosize This Column",
|
|
107210
107329
|
autoSizeAllColumns: "Autosize All Columns",
|
|
107211
107330
|
hideColumn: "Hide Column",
|
|
107212
|
-
resetColumns: "
|
|
107331
|
+
resetColumns: "Tilbakestill kolonner",
|
|
107213
107332
|
unGroupBy: "Un-Group by {{label}}",
|
|
107214
107333
|
groupBy: "Group by {{label}}"
|
|
107215
107334
|
},
|
|
@@ -107246,7 +107365,7 @@ var nb_NO_default = {
|
|
|
107246
107365
|
placeholder: "Enter currency"
|
|
107247
107366
|
},
|
|
107248
107367
|
linkCell: {
|
|
107249
|
-
externalLabel: "
|
|
107368
|
+
externalLabel: "\xC5pne ekstern kobling"
|
|
107250
107369
|
},
|
|
107251
107370
|
numberCell: {
|
|
107252
107371
|
placeholder: "Enter number"
|
|
@@ -107328,7 +107447,8 @@ var pl_PL_default = {
|
|
|
107328
107447
|
exporting: "Eksportowanie...",
|
|
107329
107448
|
filters: {
|
|
107330
107449
|
filters: "Filtry",
|
|
107331
|
-
allFilters: "
|
|
107450
|
+
allFilters: "Wszystkie filtry",
|
|
107451
|
+
moreFilters: "Wi\u0119cej filtr\xF3w",
|
|
107332
107452
|
clearAllFilters: "Wyczy\u015B\u0107 wszystkie filtry",
|
|
107333
107453
|
close: "Zamknij",
|
|
107334
107454
|
removeFilterToken: "Usu\u0144 %{name}",
|
|
@@ -107347,6 +107467,7 @@ var pl_PL_default = {
|
|
|
107347
107467
|
options: {
|
|
107348
107468
|
any_value: "Dowolna warto\u015B\u0107",
|
|
107349
107469
|
is_between: "jest pomi\u0119dzy",
|
|
107470
|
+
is_equal_to: "jest r\xF3wne",
|
|
107350
107471
|
greater_than: "jest wi\u0119ksze ni\u017C",
|
|
107351
107472
|
greater_than_equal_to: "jest wi\u0119ksze ni\u017C lub r\xF3wne",
|
|
107352
107473
|
less_than: "mniej ni\u017C",
|
|
@@ -107425,7 +107546,7 @@ var pl_PL_default = {
|
|
|
107425
107546
|
placeholder: "Wprowad\u017A walut\u0119"
|
|
107426
107547
|
},
|
|
107427
107548
|
linkCell: {
|
|
107428
|
-
externalLabel: "
|
|
107549
|
+
externalLabel: "Otw\xF3rz zewn\u0119trzne \u0142\u0105cze"
|
|
107429
107550
|
},
|
|
107430
107551
|
numberCell: {
|
|
107431
107552
|
placeholder: "Wprowad\u017A numer"
|
|
@@ -107688,7 +107809,8 @@ var pt_BR_default = {
|
|
|
107688
107809
|
exporting: "Exportando...",
|
|
107689
107810
|
filters: {
|
|
107690
107811
|
filters: "Filtros",
|
|
107691
|
-
allFilters: "
|
|
107812
|
+
allFilters: "Todos os Filtros",
|
|
107813
|
+
moreFilters: "Mais Filtros",
|
|
107692
107814
|
clearAllFilters: "Limpar Todos os Filtros",
|
|
107693
107815
|
close: "Fechar",
|
|
107694
107816
|
removeFilterToken: "Remover %{name}",
|
|
@@ -107707,6 +107829,7 @@ var pt_BR_default = {
|
|
|
107707
107829
|
options: {
|
|
107708
107830
|
any_value: "Qualquer Valor",
|
|
107709
107831
|
is_between: "Est\xE1 entre",
|
|
107832
|
+
is_equal_to: "\xC9 igual a",
|
|
107710
107833
|
greater_than: "\xC9 Maior Que",
|
|
107711
107834
|
greater_than_equal_to: "\xC9 Maior Que ou Igual a",
|
|
107712
107835
|
less_than: "\xC9 Menor Que",
|
|
@@ -107785,7 +107908,7 @@ var pt_BR_default = {
|
|
|
107785
107908
|
placeholder: "Insira moeda"
|
|
107786
107909
|
},
|
|
107787
107910
|
linkCell: {
|
|
107788
|
-
externalLabel: "
|
|
107911
|
+
externalLabel: "Abrir link externo"
|
|
107789
107912
|
},
|
|
107790
107913
|
numberCell: {
|
|
107791
107914
|
placeholder: "Inserir n\xFAmeros"
|
|
@@ -107867,7 +107990,8 @@ var pt_PT_default = {
|
|
|
107867
107990
|
exporting: "A exportar...",
|
|
107868
107991
|
filters: {
|
|
107869
107992
|
filters: "Filtros",
|
|
107870
|
-
allFilters: "
|
|
107993
|
+
allFilters: "Todos os filtros",
|
|
107994
|
+
moreFilters: "Mais filtros",
|
|
107871
107995
|
clearAllFilters: "Apagar todos os filtros",
|
|
107872
107996
|
close: "Fechar",
|
|
107873
107997
|
removeFilterToken: "Remover %{name}",
|
|
@@ -107886,6 +108010,7 @@ var pt_PT_default = {
|
|
|
107886
108010
|
options: {
|
|
107887
108011
|
any_value: "Qualquer valor",
|
|
107888
108012
|
is_between: "Est\xE1 entre",
|
|
108013
|
+
is_equal_to: "\xC9 igual a",
|
|
107889
108014
|
greater_than: "\xC9 superior a",
|
|
107890
108015
|
greater_than_equal_to: "\xC9 igual ou superior a",
|
|
107891
108016
|
less_than: "\xC9 inferior a",
|
|
@@ -107964,7 +108089,7 @@ var pt_PT_default = {
|
|
|
107964
108089
|
placeholder: "Introduzir moeda"
|
|
107965
108090
|
},
|
|
107966
108091
|
linkCell: {
|
|
107967
|
-
externalLabel: "
|
|
108092
|
+
externalLabel: "Abrir liga\xE7\xE3o externa"
|
|
107968
108093
|
},
|
|
107969
108094
|
numberCell: {
|
|
107970
108095
|
placeholder: "Introduzir n\xFAmero"
|
|
@@ -108046,7 +108171,8 @@ var th_TH_default = {
|
|
|
108046
108171
|
exporting: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E2D\u0E2D\u0E01...",
|
|
108047
108172
|
filters: {
|
|
108048
108173
|
filters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
108049
|
-
allFilters: "
|
|
108174
|
+
allFilters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
108175
|
+
moreFilters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
|
|
108050
108176
|
clearAllFilters: "\u0E25\u0E49\u0E32\u0E07\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
|
108051
108177
|
close: "\u0E1B\u0E34\u0E14",
|
|
108052
108178
|
removeFilterToken: "\u0E25\u0E1A %{name}",
|
|
@@ -108065,6 +108191,7 @@ var th_TH_default = {
|
|
|
108065
108191
|
options: {
|
|
108066
108192
|
any_value: "\u0E04\u0E48\u0E32\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49",
|
|
108067
108193
|
is_between: "\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07",
|
|
108194
|
+
is_equal_to: "\u0E40\u0E17\u0E48\u0E32\u0E01\u0E31\u0E1A",
|
|
108068
108195
|
greater_than: "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",
|
|
108069
108196
|
greater_than_equal_to: "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E17\u0E48\u0E32\u0E01\u0E31\u0E1A",
|
|
108070
108197
|
less_than: "\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
|
|
@@ -108143,7 +108270,7 @@ var th_TH_default = {
|
|
|
108143
108270
|
placeholder: "\u0E1B\u0E49\u0E2D\u0E19\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19"
|
|
108144
108271
|
},
|
|
108145
108272
|
linkCell: {
|
|
108146
|
-
externalLabel: "
|
|
108273
|
+
externalLabel: "\u0E40\u0E1B\u0E34\u0E14\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E20\u0E32\u0E22\u0E19\u0E2D\u0E01"
|
|
108147
108274
|
},
|
|
108148
108275
|
numberCell: {
|
|
108149
108276
|
placeholder: "\u0E1B\u0E49\u0E2D\u0E19\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02"
|
|
@@ -108225,7 +108352,8 @@ var zh_SG_default = {
|
|
|
108225
108352
|
exporting: "\u6B63\u5728\u5BFC\u51FA...",
|
|
108226
108353
|
filters: {
|
|
108227
108354
|
filters: "\u7B5B\u9009\u5668",
|
|
108228
|
-
allFilters: "
|
|
108355
|
+
allFilters: "\u6240\u6709\u7B5B\u9009\u5668",
|
|
108356
|
+
moreFilters: "\u66F4\u591A\u7B5B\u9009\u5668",
|
|
108229
108357
|
clearAllFilters: "\u6E05\u9664\u6240\u6709\u7B5B\u9009\u5668",
|
|
108230
108358
|
close: "\u5173\u95ED",
|
|
108231
108359
|
removeFilterToken: "\u79FB\u9664 %{name}",
|
|
@@ -108244,6 +108372,7 @@ var zh_SG_default = {
|
|
|
108244
108372
|
options: {
|
|
108245
108373
|
any_value: "\u4EFB\u610F\u503C",
|
|
108246
108374
|
is_between: "\u4ECB\u4E8E",
|
|
108375
|
+
is_equal_to: "\u7B49\u4E8E",
|
|
108247
108376
|
greater_than: "\u5927\u4E8E",
|
|
108248
108377
|
greater_than_equal_to: "\u5927\u4E8E\u6216\u7B49\u4E8E",
|
|
108249
108378
|
less_than: "\u5C0F\u4E8E",
|
|
@@ -108322,7 +108451,7 @@ var zh_SG_default = {
|
|
|
108322
108451
|
placeholder: "\u8F93\u5165\u8D27\u5E01"
|
|
108323
108452
|
},
|
|
108324
108453
|
linkCell: {
|
|
108325
|
-
externalLabel: "
|
|
108454
|
+
externalLabel: "\u6253\u5F00\u5916\u90E8\u94FE\u63A5"
|
|
108326
108455
|
},
|
|
108327
108456
|
numberCell: {
|
|
108328
108457
|
placeholder: "\u8F93\u5165\u6570\u5B57"
|
|
@@ -108404,7 +108533,8 @@ var zh_TW_default = {
|
|
|
108404
108533
|
exporting: "\u532F\u51FA\u4E2D\u2026\u2026",
|
|
108405
108534
|
filters: {
|
|
108406
108535
|
filters: "\u7BE9\u9078\u689D\u4EF6",
|
|
108407
|
-
allFilters: "
|
|
108536
|
+
allFilters: "\u6240\u6709\u7BE9\u9078\u689D\u4EF6",
|
|
108537
|
+
moreFilters: "\u66F4\u591A\u7BE9\u9078\u689D\u4EF6",
|
|
108408
108538
|
clearAllFilters: "\u6E05\u9664\u6240\u6709\u7BE9\u9078\u689D\u4EF6",
|
|
108409
108539
|
close: "\u95DC\u9589",
|
|
108410
108540
|
removeFilterToken: "\u79FB\u9664\u300C%{name}\u300D",
|
|
@@ -108423,6 +108553,7 @@ var zh_TW_default = {
|
|
|
108423
108553
|
options: {
|
|
108424
108554
|
any_value: "\u4EFB\u4F55\u503C",
|
|
108425
108555
|
is_between: "\u4ECB\u65BC",
|
|
108556
|
+
is_equal_to: "\u7B49\u65BC",
|
|
108426
108557
|
greater_than: "\u5927\u65BC",
|
|
108427
108558
|
greater_than_equal_to: "\u5927\u65BC\u6216\u7B49\u65BC",
|
|
108428
108559
|
less_than: "\u5C0F\u65BC",
|
|
@@ -108501,7 +108632,7 @@ var zh_TW_default = {
|
|
|
108501
108632
|
placeholder: "\u8F38\u5165\u8CA8\u5E63"
|
|
108502
108633
|
},
|
|
108503
108634
|
linkCell: {
|
|
108504
|
-
externalLabel: "
|
|
108635
|
+
externalLabel: "\u958B\u555F\u5916\u90E8\u9023\u7D50"
|
|
108505
108636
|
},
|
|
108506
108637
|
numberCell: {
|
|
108507
108638
|
placeholder: "\u8F38\u5165\u6578\u5B57"
|
|
@@ -109541,6 +109672,8 @@ var DataTable = ({
|
|
|
109541
109672
|
!initialTableConfig
|
|
109542
109673
|
);
|
|
109543
109674
|
const contextPanel = useContextPanel();
|
|
109675
|
+
const filtersPanelId = $bdb11010cef70236$export$f680877a34711e37();
|
|
109676
|
+
const filtersBodyId = $bdb11010cef70236$export$f680877a34711e37();
|
|
109544
109677
|
const clientI18n = useI18nContext();
|
|
109545
109678
|
const isCDNEnabled = isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
109546
109679
|
const cdnTranslations = useRequestTranslations(
|
|
@@ -109788,7 +109921,9 @@ var DataTable = ({
|
|
|
109788
109921
|
totalRowCount,
|
|
109789
109922
|
setTotalRowCount,
|
|
109790
109923
|
updateServerSideDataSource,
|
|
109791
|
-
hasDuplicateRowIds
|
|
109924
|
+
hasDuplicateRowIds,
|
|
109925
|
+
filtersPanelId,
|
|
109926
|
+
filtersBodyId
|
|
109792
109927
|
}
|
|
109793
109928
|
},
|
|
109794
109929
|
children
|
|
@@ -111102,7 +111237,7 @@ var BaseFiltersPanel = ({
|
|
|
111102
111237
|
...props
|
|
111103
111238
|
}) => {
|
|
111104
111239
|
const ref = React80.useRef(null);
|
|
111105
|
-
const { contextPanel } = useInternalTableContext();
|
|
111240
|
+
const { contextPanel, filtersBodyId, filtersPanelId } = useInternalTableContext();
|
|
111106
111241
|
const I18n = useI18nContext();
|
|
111107
111242
|
const hidden = !contextPanel.isVisible || contextPanel.content !== "filters";
|
|
111108
111243
|
React80.useLayoutEffect(() => {
|
|
@@ -111119,6 +111254,7 @@ var BaseFiltersPanel = ({
|
|
|
111119
111254
|
"contextPanel--hidden": hidden
|
|
111120
111255
|
}),
|
|
111121
111256
|
"data-qa": "data-table-filters-context-panel",
|
|
111257
|
+
id: filtersPanelId,
|
|
111122
111258
|
...props
|
|
111123
111259
|
},
|
|
111124
111260
|
/* @__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(
|
|
@@ -111130,7 +111266,7 @@ var BaseFiltersPanel = ({
|
|
|
111130
111266
|
variant: "tertiary"
|
|
111131
111267
|
},
|
|
111132
111268
|
I18n.t("dataTable.filters.clearAllFilters")
|
|
111133
|
-
)), /* @__PURE__ */ React80.createElement(Panel.Body, { className: cx20("contextPanelBody") }, /* @__PURE__ */ React80.createElement(Panel.Section, null, children))))
|
|
111269
|
+
)), /* @__PURE__ */ React80.createElement(Panel.Body, { id: filtersBodyId, className: cx20("contextPanelBody") }, /* @__PURE__ */ React80.createElement(Panel.Section, null, children))))
|
|
111134
111270
|
);
|
|
111135
111271
|
};
|
|
111136
111272
|
function ClientSideFiltersPanel(props) {
|
|
@@ -112292,10 +112428,26 @@ var SingleSelectQuickFilterRenderer = (props) => {
|
|
|
112292
112428
|
return /* @__PURE__ */ React80.createElement(ClientSideSingleSelectQuickFilter, { ...props });
|
|
112293
112429
|
};
|
|
112294
112430
|
var SingleSelectQuickFilterRenderer_default = SingleSelectQuickFilterRenderer;
|
|
112431
|
+
var FOCUSABLE_SELECTOR2 = 'button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
112295
112432
|
var FiltersPanelToggleButton = ({ hasDefinedFilters }) => {
|
|
112296
112433
|
const I18n = useI18nContext();
|
|
112297
|
-
const { contextPanel } = useInternalTableContext();
|
|
112434
|
+
const { contextPanel, filtersBodyId, filtersPanelId } = useInternalTableContext();
|
|
112298
112435
|
const hasNoContent = useTableHasNoContent();
|
|
112436
|
+
const buttonRef = React80.useRef(null);
|
|
112437
|
+
const isFiltersOpen = contextPanel.content === "filters";
|
|
112438
|
+
const isMounted = React80.useRef(false);
|
|
112439
|
+
React80.useEffect(() => {
|
|
112440
|
+
if (!isMounted.current) {
|
|
112441
|
+
isMounted.current = true;
|
|
112442
|
+
return;
|
|
112443
|
+
}
|
|
112444
|
+
if (isFiltersOpen) {
|
|
112445
|
+
const panel = filtersBodyId ? document.getElementById(filtersBodyId) : null;
|
|
112446
|
+
panel?.querySelector(FOCUSABLE_SELECTOR2)?.focus();
|
|
112447
|
+
} else {
|
|
112448
|
+
buttonRef.current?.focus();
|
|
112449
|
+
}
|
|
112450
|
+
}, [isFiltersOpen, filtersBodyId]);
|
|
112299
112451
|
if (!hasDefinedFilters) {
|
|
112300
112452
|
return null;
|
|
112301
112453
|
}
|
|
@@ -112308,17 +112460,20 @@ var FiltersPanelToggleButton = ({ hasDefinedFilters }) => {
|
|
|
112308
112460
|
/* @__PURE__ */ React80.createElement(
|
|
112309
112461
|
ToggleButton,
|
|
112310
112462
|
{
|
|
112463
|
+
ref: buttonRef,
|
|
112311
112464
|
"data-qa": "data-table-show-filters-button",
|
|
112312
112465
|
disabled: hasNoContent,
|
|
112313
112466
|
icon: /* @__PURE__ */ React80.createElement(FilterIcon, null),
|
|
112467
|
+
"aria-expanded": isFiltersOpen,
|
|
112468
|
+
"aria-controls": filtersPanelId,
|
|
112314
112469
|
onClick: () => {
|
|
112315
|
-
if (
|
|
112316
|
-
contextPanel.hide();
|
|
112317
|
-
} else {
|
|
112470
|
+
if (!isFiltersOpen) {
|
|
112318
112471
|
contextPanel.show("filters");
|
|
112472
|
+
} else {
|
|
112473
|
+
contextPanel.hide();
|
|
112319
112474
|
}
|
|
112320
112475
|
},
|
|
112321
|
-
selected:
|
|
112476
|
+
selected: isFiltersOpen
|
|
112322
112477
|
},
|
|
112323
112478
|
I18n.t("dataTable.filters.allFilters")
|
|
112324
112479
|
)
|