@procore/data-table 14.31.0 → 14.32.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 +14 -8
- package/dist/legacy/index.cjs +58 -126
- package/dist/legacy/index.d.cts +6 -5
- package/dist/legacy/index.d.ts +6 -5
- package/dist/legacy/index.js +58 -126
- package/dist/modern/index.cjs +58 -126
- package/dist/modern/index.d.cts +6 -5
- package/dist/modern/index.d.ts +6 -5
- package/dist/modern/index.js +58 -126
- package/package.json +12 -14
package/dist/legacy/index.js
CHANGED
|
@@ -52615,9 +52615,6 @@ var Renderer6 = ({
|
|
|
52615
52615
|
},
|
|
52616
52616
|
[(_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.getInitials]
|
|
52617
52617
|
);
|
|
52618
|
-
React80.useEffect(() => {
|
|
52619
|
-
setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
|
|
52620
|
-
}, [rowHeight]);
|
|
52621
52618
|
const getPersonNameWithCompany = React80.useCallback(
|
|
52622
52619
|
(person) => {
|
|
52623
52620
|
const name = getPersonName(person);
|
|
@@ -52626,6 +52623,9 @@ var Renderer6 = ({
|
|
|
52626
52623
|
},
|
|
52627
52624
|
[getCompanyName, getPersonName]
|
|
52628
52625
|
);
|
|
52626
|
+
React80.useEffect(() => {
|
|
52627
|
+
setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
|
|
52628
|
+
}, [rowHeight]);
|
|
52629
52629
|
const namesWithCompany = React80.useMemo(
|
|
52630
52630
|
() => getPeople().map(getPersonNameWithCompany).join(", "),
|
|
52631
52631
|
[getPeople, getPersonNameWithCompany]
|
|
@@ -54000,7 +54000,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
54000
54000
|
return {
|
|
54001
54001
|
type: prev == null ? void 0 : prev.type,
|
|
54002
54002
|
filter: prev == null ? void 0 : prev.filter,
|
|
54003
|
-
filterTo: inputValue
|
|
54003
|
+
filterTo: inputValue !== "" ? Number(inputValue) : void 0
|
|
54004
54004
|
};
|
|
54005
54005
|
});
|
|
54006
54006
|
if (inputValue === void 0 || inputValue === "") {
|
|
@@ -54010,7 +54010,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
54010
54010
|
return {
|
|
54011
54011
|
type: prev == null ? void 0 : prev.type,
|
|
54012
54012
|
filter: prev == null ? void 0 : prev.filter,
|
|
54013
|
-
filterTo: inputValue
|
|
54013
|
+
filterTo: Number(inputValue)
|
|
54014
54014
|
};
|
|
54015
54015
|
});
|
|
54016
54016
|
}, []);
|
|
@@ -54278,7 +54278,7 @@ var ServerSideFilter = ({
|
|
|
54278
54278
|
"data-qa": `data-table-filter-heading-${fieldName}`,
|
|
54279
54279
|
id: `data-table-filter-heading-${fieldName}`
|
|
54280
54280
|
},
|
|
54281
|
-
filterHeading
|
|
54281
|
+
typeof filterHeading === "function" ? filterHeading({}) : filterHeading
|
|
54282
54282
|
) : null,
|
|
54283
54283
|
/* @__PURE__ */ React80.createElement(
|
|
54284
54284
|
Component4,
|
|
@@ -104612,11 +104612,6 @@ var de_DE_default = {
|
|
|
104612
104612
|
error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
|
|
104613
104613
|
placeholderForField: "%{fieldName} eingeben",
|
|
104614
104614
|
selection: "%{count} %{number} ausgew\xE4hlt",
|
|
104615
|
-
selection_count: {
|
|
104616
|
-
zero: "%{count} Elemente ausgew\xE4hlt",
|
|
104617
|
-
one: "%{count} Element ausgew\xE4hlt",
|
|
104618
|
-
other: "%{count} Elemente ausgew\xE4hlt"
|
|
104619
|
-
},
|
|
104620
104615
|
success: "Die Elemente wurden erfolgreich aktualisiert.",
|
|
104621
104616
|
one: "Element",
|
|
104622
104617
|
many: "Elemente"
|
|
@@ -104783,11 +104778,6 @@ var en_AU_default = {
|
|
|
104783
104778
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104784
104779
|
placeholderForField: "Enter %{fieldName}",
|
|
104785
104780
|
selection: "%{count} %{number} selected",
|
|
104786
|
-
selection_count: {
|
|
104787
|
-
zero: "%{count} items selected",
|
|
104788
|
-
one: "%{count} item selected",
|
|
104789
|
-
other: "%{count} items selected"
|
|
104790
|
-
},
|
|
104791
104781
|
success: "The items were successfully updated.",
|
|
104792
104782
|
one: "item",
|
|
104793
104783
|
many: "items"
|
|
@@ -104851,7 +104841,7 @@ var en_AU_default = {
|
|
|
104851
104841
|
autoSizeAllColumns: "Autosize all columns",
|
|
104852
104842
|
hideColumn: "Hide column",
|
|
104853
104843
|
resetColumns: "Reset columns",
|
|
104854
|
-
unGroupBy: "Un-
|
|
104844
|
+
unGroupBy: "Un-group by {{label}}",
|
|
104855
104845
|
groupBy: "Group by {{label}}"
|
|
104856
104846
|
},
|
|
104857
104847
|
grandTotals: "Grand totals",
|
|
@@ -104954,11 +104944,6 @@ var en_CA_default = {
|
|
|
104954
104944
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104955
104945
|
placeholderForField: "Enter %{fieldName}",
|
|
104956
104946
|
selection: "%{count} %{number} selected",
|
|
104957
|
-
selection_count: {
|
|
104958
|
-
zero: "%{count} items selected",
|
|
104959
|
-
one: "%{count} item selected",
|
|
104960
|
-
other: "%{count} items selected"
|
|
104961
|
-
},
|
|
104962
104947
|
success: "The items were successfully updated.",
|
|
104963
104948
|
one: "item",
|
|
104964
104949
|
many: "items"
|
|
@@ -105022,7 +105007,7 @@ var en_CA_default = {
|
|
|
105022
105007
|
autoSizeAllColumns: "Autosize all columns",
|
|
105023
105008
|
hideColumn: "Hide column",
|
|
105024
105009
|
resetColumns: "Reset columns",
|
|
105025
|
-
unGroupBy: "Un-
|
|
105010
|
+
unGroupBy: "Un-group by {{label}}",
|
|
105026
105011
|
groupBy: "Group by {{label}}"
|
|
105027
105012
|
},
|
|
105028
105013
|
grandTotals: "Grand totals",
|
|
@@ -105125,11 +105110,6 @@ var en_GB_default = {
|
|
|
105125
105110
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
105126
105111
|
placeholderForField: "Enter %{fieldName}",
|
|
105127
105112
|
selection: "%{count} %{number} selected",
|
|
105128
|
-
selection_count: {
|
|
105129
|
-
zero: "%{count} items selected",
|
|
105130
|
-
one: "%{count} item selected",
|
|
105131
|
-
other: "%{count} items selected"
|
|
105132
|
-
},
|
|
105133
105113
|
success: "The items were successfully updated.",
|
|
105134
105114
|
one: "item",
|
|
105135
105115
|
many: "items"
|
|
@@ -105467,11 +105447,6 @@ var es_ES_default = {
|
|
|
105467
105447
|
error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
|
|
105468
105448
|
placeholderForField: "Introducir %{fieldName}",
|
|
105469
105449
|
selection: "%{count} %{number} seleccionados",
|
|
105470
|
-
selection_count: {
|
|
105471
|
-
zero: "%{count} elementos seleccionados",
|
|
105472
|
-
one: "%{count} elemento seleccionado",
|
|
105473
|
-
other: "%{count} elementos seleccionados"
|
|
105474
|
-
},
|
|
105475
105450
|
success: "Los elementos se han actualizado correctamente.",
|
|
105476
105451
|
one: "elemento",
|
|
105477
105452
|
many: "elementos"
|
|
@@ -105622,7 +105597,7 @@ var es_default = {
|
|
|
105622
105597
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
105623
105598
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
105624
105599
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
|
|
105625
|
-
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}
|
|
105600
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}",
|
|
105626
105601
|
featureFilter: "Filtro",
|
|
105627
105602
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
105628
105603
|
featureGroupBy: "Agrupar por",
|
|
@@ -105635,14 +105610,9 @@ var es_default = {
|
|
|
105635
105610
|
bulkEdit: "Edici\xF3n masiva",
|
|
105636
105611
|
cancel: "Cancelar",
|
|
105637
105612
|
editValues: "Editar valores",
|
|
105638
|
-
error: "Lo sentimos, no se pudieron actualizar los \xEDtems.
|
|
105613
|
+
error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
|
|
105639
105614
|
placeholderForField: "Ingrese %{fieldName}",
|
|
105640
105615
|
selection: "%{count} %{number} seleccionado",
|
|
105641
|
-
selection_count: {
|
|
105642
|
-
zero: "%{count} \xEDtems seleccionados",
|
|
105643
|
-
one: "%{count} \xEDtem seleccionado",
|
|
105644
|
-
other: "%{count} \xEDtems seleccionados"
|
|
105645
|
-
},
|
|
105646
105616
|
success: "Los \xEDtems se actualizaron correctamente.",
|
|
105647
105617
|
one: "\xEDtem",
|
|
105648
105618
|
many: "\xEDtems"
|
|
@@ -105806,14 +105776,9 @@ var fr_CA_default = {
|
|
|
105806
105776
|
bulkEdit: "Modifier en bloc",
|
|
105807
105777
|
cancel: "Annuler",
|
|
105808
105778
|
editValues: "Modifier les valeurs",
|
|
105809
|
-
error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour.
|
|
105779
|
+
error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
|
|
105810
105780
|
placeholderForField: "Entrez %{fieldName}",
|
|
105811
105781
|
selection: "%{count} %{number} s\xE9lectionn\xE9",
|
|
105812
|
-
selection_count: {
|
|
105813
|
-
zero: "%{count}\xA0items s\xE9lectionn\xE9s",
|
|
105814
|
-
one: "%{count}\xA0item s\xE9lectionn\xE9",
|
|
105815
|
-
other: "%{count}\xA0items s\xE9lectionn\xE9s"
|
|
105816
|
-
},
|
|
105817
105782
|
success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
|
|
105818
105783
|
one: "Item",
|
|
105819
105784
|
many: "items"
|
|
@@ -105936,7 +105901,7 @@ var fr_CA_default = {
|
|
|
105936
105901
|
},
|
|
105937
105902
|
filterRenders: {
|
|
105938
105903
|
dateFilter: {
|
|
105939
|
-
single: "
|
|
105904
|
+
single: "Unique",
|
|
105940
105905
|
range: "Intervalle"
|
|
105941
105906
|
}
|
|
105942
105907
|
},
|
|
@@ -105977,14 +105942,9 @@ var fr_FR_default = {
|
|
|
105977
105942
|
bulkEdit: "Modifier en masse",
|
|
105978
105943
|
cancel: "Annuler",
|
|
105979
105944
|
editValues: "Modifier les valeurs",
|
|
105980
|
-
error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour.
|
|
105945
|
+
error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
|
|
105981
105946
|
placeholderForField: "Saisissez %{fieldName}",
|
|
105982
105947
|
selection: "%{count} %{number} s\xE9lectionn\xE9",
|
|
105983
|
-
selection_count: {
|
|
105984
|
-
zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
|
|
105985
|
-
one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
|
|
105986
|
-
other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
|
|
105987
|
-
},
|
|
105988
105948
|
success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
|
|
105989
105949
|
one: "\xE9l\xE9ment",
|
|
105990
105950
|
many: "\xE9l\xE9ments"
|
|
@@ -106151,11 +106111,6 @@ var is_IS_default = {
|
|
|
106151
106111
|
error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
|
|
106152
106112
|
placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
|
|
106153
106113
|
selection: "%{count} %{number} valinn",
|
|
106154
|
-
selection_count: {
|
|
106155
|
-
zero: "%{count} atri\xF0i valin",
|
|
106156
|
-
one: "%{count} atri\xF0i vali\xF0",
|
|
106157
|
-
other: "%{count} atri\xF0i valin"
|
|
106158
|
-
},
|
|
106159
106114
|
success: "Atri\xF0in voru uppf\xE6r\xF0.",
|
|
106160
106115
|
one: "Atri\xF0i",
|
|
106161
106116
|
many: "Hlutir"
|
|
@@ -106322,11 +106277,6 @@ var ja_JP_default = {
|
|
|
106322
106277
|
error: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u9805\u76EE\u3092\u66F4\u65B0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
106323
106278
|
placeholderForField: "%{fieldName}\u3092\u5165\u529B",
|
|
106324
106279
|
selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106325
|
-
selection_count: {
|
|
106326
|
-
zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106327
|
-
one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106328
|
-
other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
|
|
106329
|
-
},
|
|
106330
106280
|
success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
|
|
106331
106281
|
one: "\u9805\u76EE",
|
|
106332
106282
|
many: "\u9805\u76EE"
|
|
@@ -106493,11 +106443,6 @@ var pl_PL_default = {
|
|
|
106493
106443
|
error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
|
|
106494
106444
|
placeholderForField: "Wprowad\u017A %{fieldName}",
|
|
106495
106445
|
selection: "Wybrano %{count} %{number}",
|
|
106496
|
-
selection_count: {
|
|
106497
|
-
zero: "Wybrano pozycje: %{count}",
|
|
106498
|
-
one: "Wybrano pozycji: %{count}",
|
|
106499
|
-
other: "Wybrano pozycje: %{count}"
|
|
106500
|
-
},
|
|
106501
106446
|
success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
|
|
106502
106447
|
one: "pozycja",
|
|
106503
106448
|
many: "pozycje"
|
|
@@ -106832,14 +106777,9 @@ var pt_BR_default = {
|
|
|
106832
106777
|
bulkEdit: "Edi\xE7\xE3o em Massa",
|
|
106833
106778
|
cancel: "Cancelar",
|
|
106834
106779
|
editValues: "Editar Valores",
|
|
106835
|
-
error: "
|
|
106780
|
+
error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
|
|
106836
106781
|
placeholderForField: "Digite %{fieldName}",
|
|
106837
106782
|
selection: "%{count} %{number} selecionado",
|
|
106838
|
-
selection_count: {
|
|
106839
|
-
zero: "%{count} itens selecionados",
|
|
106840
|
-
one: "%{count} item selecionado",
|
|
106841
|
-
other: "%{count} itens selecionados"
|
|
106842
|
-
},
|
|
106843
106783
|
success: "Os itens foram atualizados com sucesso.",
|
|
106844
106784
|
one: "item",
|
|
106845
106785
|
many: "itens"
|
|
@@ -107003,14 +106943,9 @@ var th_TH_default = {
|
|
|
107003
106943
|
bulkEdit: "\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E1A\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21",
|
|
107004
106944
|
cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
|
|
107005
106945
|
editValues: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E48\u0E32",
|
|
107006
|
-
error: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49 \
|
|
106946
|
+
error: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07.",
|
|
107007
106947
|
placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
|
|
107008
106948
|
selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
|
|
107009
|
-
selection_count: {
|
|
107010
|
-
zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
107011
|
-
one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
107012
|
-
other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
|
|
107013
|
-
},
|
|
107014
106949
|
success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
107015
106950
|
one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
107016
106951
|
many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
|
|
@@ -107177,11 +107112,6 @@ var zh_SG_default = {
|
|
|
107177
107112
|
error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
107178
107113
|
placeholderForField: "\u8F93\u5165 %{fieldName}",
|
|
107179
107114
|
selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
|
|
107180
|
-
selection_count: {
|
|
107181
|
-
zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
|
|
107182
|
-
one: "\u5DF2\u9009\u62E9 %{count} \u9879",
|
|
107183
|
-
other: "\u5DF2\u9009\u62E9 %{count} \u9879"
|
|
107184
|
-
},
|
|
107185
107115
|
success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
|
|
107186
107116
|
one: "\u9879",
|
|
107187
107117
|
many: "\u9879"
|
|
@@ -109051,7 +108981,7 @@ var Table = (props) => {
|
|
|
109051
108981
|
(acc, column3) => acc + column3.width,
|
|
109052
108982
|
0
|
|
109053
108983
|
);
|
|
109054
|
-
const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.
|
|
108984
|
+
const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.getActualWidth() - 50;
|
|
109055
108985
|
column2.maxWidth = currentPinnedColumnMaxWidth;
|
|
109056
108986
|
}
|
|
109057
108987
|
},
|
|
@@ -109624,14 +109554,14 @@ function ClientSideFilterInner(props) {
|
|
|
109624
109554
|
const { Component: Component4, columnDefinition, onChange, options, value } = props;
|
|
109625
109555
|
const filterHeading = ((_b = (_a = columnDefinition.filterProps) == null ? void 0 : _a.getFilterHeadingText) == null ? void 0 : _b.call(_a, columnDefinition)) ?? columnDefinition.headerName;
|
|
109626
109556
|
const filterOptions = React80.useMemo(() => options ?? [], [options]);
|
|
109627
|
-
return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading
|
|
109557
|
+
return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80.createElement(
|
|
109628
109558
|
Label$1,
|
|
109629
109559
|
{
|
|
109630
109560
|
"data-qa": `data-table-filter-heading-${columnDefinition.field}`,
|
|
109631
109561
|
id: `data-table-filter-heading-${columnDefinition.field}`
|
|
109632
109562
|
},
|
|
109633
|
-
filterHeading
|
|
109634
|
-
)
|
|
109563
|
+
/* @__PURE__ */ React80.createElement(React80.Fragment, null, filterHeading)
|
|
109564
|
+
), /* @__PURE__ */ React80.createElement(
|
|
109635
109565
|
Component4,
|
|
109636
109566
|
{
|
|
109637
109567
|
"data-qa": `data-table-filter-input-${columnDefinition.field}`,
|
|
@@ -110633,58 +110563,60 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
|
|
|
110633
110563
|
const isValueEmpty = ["", null, void 0].includes(
|
|
110634
110564
|
ctx.state.value
|
|
110635
110565
|
);
|
|
110636
|
-
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110566
|
+
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110637
110567
|
isValueEmpty,
|
|
110638
110568
|
ctx.state.selectedLabel,
|
|
110639
110569
|
ctx.config.placeholder,
|
|
110640
110570
|
filterName
|
|
110641
|
-
));
|
|
110571
|
+
)));
|
|
110642
110572
|
}),
|
|
110643
|
-
TriggerContainer: React80.forwardRef(
|
|
110644
|
-
|
|
110645
|
-
|
|
110573
|
+
TriggerContainer: React80.forwardRef(
|
|
110574
|
+
(props, ref) => {
|
|
110575
|
+
const ctx = UNSAFE_useSuperSelectContext();
|
|
110576
|
+
if (!Array.isArray(ctx.state.value)) {
|
|
110577
|
+
return /* @__PURE__ */ React80.createElement(
|
|
110578
|
+
UNSAFE_StyledSuperSelectTrigger,
|
|
110579
|
+
{
|
|
110580
|
+
$block: ctx.config.block,
|
|
110581
|
+
...props,
|
|
110582
|
+
ref
|
|
110583
|
+
}
|
|
110584
|
+
);
|
|
110585
|
+
}
|
|
110646
110586
|
return /* @__PURE__ */ React80.createElement(
|
|
110647
|
-
|
|
110587
|
+
Popover,
|
|
110648
110588
|
{
|
|
110649
|
-
|
|
110650
|
-
|
|
110651
|
-
|
|
110652
|
-
|
|
110589
|
+
placement: "top",
|
|
110590
|
+
trigger: ctx.state.value.length > 1 ? "hover" : "none",
|
|
110591
|
+
overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
|
|
110592
|
+
const option = ctx.state.options.find(
|
|
110593
|
+
(option2) => ctx.option.value(option2) === v
|
|
110594
|
+
);
|
|
110595
|
+
return option ? ctx.option.label(option) : "";
|
|
110596
|
+
}).join(", ")))
|
|
110597
|
+
},
|
|
110598
|
+
/* @__PURE__ */ React80.createElement(
|
|
110599
|
+
UNSAFE_StyledSuperSelectTrigger,
|
|
110600
|
+
{
|
|
110601
|
+
$block: ctx.config.block,
|
|
110602
|
+
...props,
|
|
110603
|
+
ref
|
|
110604
|
+
}
|
|
110605
|
+
)
|
|
110653
110606
|
);
|
|
110654
110607
|
}
|
|
110655
|
-
|
|
110656
|
-
Popover,
|
|
110657
|
-
{
|
|
110658
|
-
placement: "top",
|
|
110659
|
-
trigger: ctx.state.value.length > 1 ? "hover" : "none",
|
|
110660
|
-
overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
|
|
110661
|
-
const option = ctx.state.options.find(
|
|
110662
|
-
(option2) => ctx.option.value(option2) === v
|
|
110663
|
-
);
|
|
110664
|
-
return option ? ctx.option.label(option) : "";
|
|
110665
|
-
}).join(", ")))
|
|
110666
|
-
},
|
|
110667
|
-
/* @__PURE__ */ React80.createElement(
|
|
110668
|
-
UNSAFE_StyledSuperSelectTrigger,
|
|
110669
|
-
{
|
|
110670
|
-
$block: ctx.config.block,
|
|
110671
|
-
...props,
|
|
110672
|
-
ref
|
|
110673
|
-
}
|
|
110674
|
-
)
|
|
110675
|
-
);
|
|
110676
|
-
}),
|
|
110608
|
+
),
|
|
110677
110609
|
MultiValueContainer: () => {
|
|
110678
110610
|
const ctx = UNSAFE_useSuperSelectContext();
|
|
110679
110611
|
if (Array.isArray(ctx.state.value)) {
|
|
110680
110612
|
const isValueEmpty = !ctx.state.value.length;
|
|
110681
110613
|
const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
|
|
110682
|
-
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110614
|
+
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110683
110615
|
isValueEmpty,
|
|
110684
110616
|
value,
|
|
110685
110617
|
ctx.config.placeholder,
|
|
110686
110618
|
filterName
|
|
110687
|
-
));
|
|
110619
|
+
)));
|
|
110688
110620
|
}
|
|
110689
110621
|
return /* @__PURE__ */ React80.createElement("div", null, "Value is not an array");
|
|
110690
110622
|
}
|
|
@@ -111241,7 +111173,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
|
|
|
111241
111173
|
if (!colDef) {
|
|
111242
111174
|
return null;
|
|
111243
111175
|
}
|
|
111244
|
-
return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(colDef, filter.filterValues)), /* @__PURE__ */ React80.createElement(
|
|
111176
|
+
return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: filter.field }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80.createElement(React80.Fragment, null, getFilterTokenText(colDef, filter.filterValues))), /* @__PURE__ */ React80.createElement(
|
|
111245
111177
|
UNSAFE_FilterToken.Remove,
|
|
111246
111178
|
{
|
|
111247
111179
|
onClick: () => {
|
|
@@ -111340,10 +111272,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
|
|
|
111340
111272
|
return null;
|
|
111341
111273
|
}
|
|
111342
111274
|
const filter = getListFilter(fieldName);
|
|
111343
|
-
return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
|
|
111275
|
+
return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, /* @__PURE__ */ React80.createElement(React80.Fragment, null, getFilterTokenText(
|
|
111344
111276
|
colDef,
|
|
111345
111277
|
colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
|
|
111346
|
-
)), /* @__PURE__ */ React80.createElement(
|
|
111278
|
+
))), /* @__PURE__ */ React80.createElement(
|
|
111347
111279
|
UNSAFE_FilterToken.Remove,
|
|
111348
111280
|
{
|
|
111349
111281
|
"data-qa": "data-table-quick-filter-remove-token",
|