@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/modern/index.js
CHANGED
|
@@ -52592,9 +52592,6 @@ var Renderer6 = ({
|
|
|
52592
52592
|
},
|
|
52593
52593
|
[columnDefinition.cellRendererParams?.getInitials]
|
|
52594
52594
|
);
|
|
52595
|
-
React80.useEffect(() => {
|
|
52596
|
-
setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
|
|
52597
|
-
}, [rowHeight]);
|
|
52598
52595
|
const getPersonNameWithCompany = React80.useCallback(
|
|
52599
52596
|
(person) => {
|
|
52600
52597
|
const name = getPersonName(person);
|
|
@@ -52603,6 +52600,9 @@ var Renderer6 = ({
|
|
|
52603
52600
|
},
|
|
52604
52601
|
[getCompanyName, getPersonName]
|
|
52605
52602
|
);
|
|
52603
|
+
React80.useEffect(() => {
|
|
52604
|
+
setFullCellView(rowHeight === rowSize.lg || rowHeight === rowSize.md);
|
|
52605
|
+
}, [rowHeight]);
|
|
52606
52606
|
const namesWithCompany = React80.useMemo(
|
|
52607
52607
|
() => getPeople().map(getPersonNameWithCompany).join(", "),
|
|
52608
52608
|
[getPeople, getPersonNameWithCompany]
|
|
@@ -53940,7 +53940,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
53940
53940
|
return {
|
|
53941
53941
|
type: prev?.type,
|
|
53942
53942
|
filter: prev?.filter,
|
|
53943
|
-
filterTo: inputValue
|
|
53943
|
+
filterTo: inputValue !== "" ? Number(inputValue) : void 0
|
|
53944
53944
|
};
|
|
53945
53945
|
});
|
|
53946
53946
|
if (inputValue === void 0 || inputValue === "") {
|
|
@@ -53950,7 +53950,7 @@ var NumberFilterRenderer = React80.memo(
|
|
|
53950
53950
|
return {
|
|
53951
53951
|
type: prev?.type,
|
|
53952
53952
|
filter: prev?.filter,
|
|
53953
|
-
filterTo: inputValue
|
|
53953
|
+
filterTo: Number(inputValue)
|
|
53954
53954
|
};
|
|
53955
53955
|
});
|
|
53956
53956
|
}, []);
|
|
@@ -54217,7 +54217,7 @@ var ServerSideFilter = ({
|
|
|
54217
54217
|
"data-qa": `data-table-filter-heading-${fieldName}`,
|
|
54218
54218
|
id: `data-table-filter-heading-${fieldName}`
|
|
54219
54219
|
},
|
|
54220
|
-
filterHeading
|
|
54220
|
+
typeof filterHeading === "function" ? filterHeading({}) : filterHeading
|
|
54221
54221
|
) : null,
|
|
54222
54222
|
/* @__PURE__ */ React80.createElement(
|
|
54223
54223
|
Component4,
|
|
@@ -104446,11 +104446,6 @@ var de_DE_default = {
|
|
|
104446
104446
|
error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
|
|
104447
104447
|
placeholderForField: "%{fieldName} eingeben",
|
|
104448
104448
|
selection: "%{count} %{number} ausgew\xE4hlt",
|
|
104449
|
-
selection_count: {
|
|
104450
|
-
zero: "%{count} Elemente ausgew\xE4hlt",
|
|
104451
|
-
one: "%{count} Element ausgew\xE4hlt",
|
|
104452
|
-
other: "%{count} Elemente ausgew\xE4hlt"
|
|
104453
|
-
},
|
|
104454
104449
|
success: "Die Elemente wurden erfolgreich aktualisiert.",
|
|
104455
104450
|
one: "Element",
|
|
104456
104451
|
many: "Elemente"
|
|
@@ -104617,11 +104612,6 @@ var en_AU_default = {
|
|
|
104617
104612
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104618
104613
|
placeholderForField: "Enter %{fieldName}",
|
|
104619
104614
|
selection: "%{count} %{number} selected",
|
|
104620
|
-
selection_count: {
|
|
104621
|
-
zero: "%{count} items selected",
|
|
104622
|
-
one: "%{count} item selected",
|
|
104623
|
-
other: "%{count} items selected"
|
|
104624
|
-
},
|
|
104625
104615
|
success: "The items were successfully updated.",
|
|
104626
104616
|
one: "item",
|
|
104627
104617
|
many: "items"
|
|
@@ -104685,7 +104675,7 @@ var en_AU_default = {
|
|
|
104685
104675
|
autoSizeAllColumns: "Autosize all columns",
|
|
104686
104676
|
hideColumn: "Hide column",
|
|
104687
104677
|
resetColumns: "Reset columns",
|
|
104688
|
-
unGroupBy: "Un-
|
|
104678
|
+
unGroupBy: "Un-group by {{label}}",
|
|
104689
104679
|
groupBy: "Group by {{label}}"
|
|
104690
104680
|
},
|
|
104691
104681
|
grandTotals: "Grand totals",
|
|
@@ -104788,11 +104778,6 @@ var en_CA_default = {
|
|
|
104788
104778
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104789
104779
|
placeholderForField: "Enter %{fieldName}",
|
|
104790
104780
|
selection: "%{count} %{number} selected",
|
|
104791
|
-
selection_count: {
|
|
104792
|
-
zero: "%{count} items selected",
|
|
104793
|
-
one: "%{count} item selected",
|
|
104794
|
-
other: "%{count} items selected"
|
|
104795
|
-
},
|
|
104796
104781
|
success: "The items were successfully updated.",
|
|
104797
104782
|
one: "item",
|
|
104798
104783
|
many: "items"
|
|
@@ -104856,7 +104841,7 @@ var en_CA_default = {
|
|
|
104856
104841
|
autoSizeAllColumns: "Autosize all columns",
|
|
104857
104842
|
hideColumn: "Hide column",
|
|
104858
104843
|
resetColumns: "Reset columns",
|
|
104859
|
-
unGroupBy: "Un-
|
|
104844
|
+
unGroupBy: "Un-group by {{label}}",
|
|
104860
104845
|
groupBy: "Group by {{label}}"
|
|
104861
104846
|
},
|
|
104862
104847
|
grandTotals: "Grand totals",
|
|
@@ -104959,11 +104944,6 @@ var en_GB_default = {
|
|
|
104959
104944
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104960
104945
|
placeholderForField: "Enter %{fieldName}",
|
|
104961
104946
|
selection: "%{count} %{number} selected",
|
|
104962
|
-
selection_count: {
|
|
104963
|
-
zero: "%{count} items selected",
|
|
104964
|
-
one: "%{count} item selected",
|
|
104965
|
-
other: "%{count} items selected"
|
|
104966
|
-
},
|
|
104967
104947
|
success: "The items were successfully updated.",
|
|
104968
104948
|
one: "item",
|
|
104969
104949
|
many: "items"
|
|
@@ -105301,11 +105281,6 @@ var es_ES_default = {
|
|
|
105301
105281
|
error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
|
|
105302
105282
|
placeholderForField: "Introducir %{fieldName}",
|
|
105303
105283
|
selection: "%{count} %{number} seleccionados",
|
|
105304
|
-
selection_count: {
|
|
105305
|
-
zero: "%{count} elementos seleccionados",
|
|
105306
|
-
one: "%{count} elemento seleccionado",
|
|
105307
|
-
other: "%{count} elementos seleccionados"
|
|
105308
|
-
},
|
|
105309
105284
|
success: "Los elementos se han actualizado correctamente.",
|
|
105310
105285
|
one: "elemento",
|
|
105311
105286
|
many: "elementos"
|
|
@@ -105456,7 +105431,7 @@ var es_default = {
|
|
|
105456
105431
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
105457
105432
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
105458
105433
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
|
|
105459
|
-
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}
|
|
105434
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}",
|
|
105460
105435
|
featureFilter: "Filtro",
|
|
105461
105436
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
105462
105437
|
featureGroupBy: "Agrupar por",
|
|
@@ -105469,14 +105444,9 @@ var es_default = {
|
|
|
105469
105444
|
bulkEdit: "Edici\xF3n masiva",
|
|
105470
105445
|
cancel: "Cancelar",
|
|
105471
105446
|
editValues: "Editar valores",
|
|
105472
|
-
error: "Lo sentimos, no se pudieron actualizar los \xEDtems.
|
|
105447
|
+
error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
|
|
105473
105448
|
placeholderForField: "Ingrese %{fieldName}",
|
|
105474
105449
|
selection: "%{count} %{number} seleccionado",
|
|
105475
|
-
selection_count: {
|
|
105476
|
-
zero: "%{count} \xEDtems seleccionados",
|
|
105477
|
-
one: "%{count} \xEDtem seleccionado",
|
|
105478
|
-
other: "%{count} \xEDtems seleccionados"
|
|
105479
|
-
},
|
|
105480
105450
|
success: "Los \xEDtems se actualizaron correctamente.",
|
|
105481
105451
|
one: "\xEDtem",
|
|
105482
105452
|
many: "\xEDtems"
|
|
@@ -105640,14 +105610,9 @@ var fr_CA_default = {
|
|
|
105640
105610
|
bulkEdit: "Modifier en bloc",
|
|
105641
105611
|
cancel: "Annuler",
|
|
105642
105612
|
editValues: "Modifier les valeurs",
|
|
105643
|
-
error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour.
|
|
105613
|
+
error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
|
|
105644
105614
|
placeholderForField: "Entrez %{fieldName}",
|
|
105645
105615
|
selection: "%{count} %{number} s\xE9lectionn\xE9",
|
|
105646
|
-
selection_count: {
|
|
105647
|
-
zero: "%{count}\xA0items s\xE9lectionn\xE9s",
|
|
105648
|
-
one: "%{count}\xA0item s\xE9lectionn\xE9",
|
|
105649
|
-
other: "%{count}\xA0items s\xE9lectionn\xE9s"
|
|
105650
|
-
},
|
|
105651
105616
|
success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
|
|
105652
105617
|
one: "Item",
|
|
105653
105618
|
many: "items"
|
|
@@ -105770,7 +105735,7 @@ var fr_CA_default = {
|
|
|
105770
105735
|
},
|
|
105771
105736
|
filterRenders: {
|
|
105772
105737
|
dateFilter: {
|
|
105773
|
-
single: "
|
|
105738
|
+
single: "Unique",
|
|
105774
105739
|
range: "Intervalle"
|
|
105775
105740
|
}
|
|
105776
105741
|
},
|
|
@@ -105811,14 +105776,9 @@ var fr_FR_default = {
|
|
|
105811
105776
|
bulkEdit: "Modifier en masse",
|
|
105812
105777
|
cancel: "Annuler",
|
|
105813
105778
|
editValues: "Modifier les valeurs",
|
|
105814
|
-
error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour.
|
|
105779
|
+
error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
|
|
105815
105780
|
placeholderForField: "Saisissez %{fieldName}",
|
|
105816
105781
|
selection: "%{count} %{number} s\xE9lectionn\xE9",
|
|
105817
|
-
selection_count: {
|
|
105818
|
-
zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
|
|
105819
|
-
one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
|
|
105820
|
-
other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
|
|
105821
|
-
},
|
|
105822
105782
|
success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
|
|
105823
105783
|
one: "\xE9l\xE9ment",
|
|
105824
105784
|
many: "\xE9l\xE9ments"
|
|
@@ -105985,11 +105945,6 @@ var is_IS_default = {
|
|
|
105985
105945
|
error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
|
|
105986
105946
|
placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
|
|
105987
105947
|
selection: "%{count} %{number} valinn",
|
|
105988
|
-
selection_count: {
|
|
105989
|
-
zero: "%{count} atri\xF0i valin",
|
|
105990
|
-
one: "%{count} atri\xF0i vali\xF0",
|
|
105991
|
-
other: "%{count} atri\xF0i valin"
|
|
105992
|
-
},
|
|
105993
105948
|
success: "Atri\xF0in voru uppf\xE6r\xF0.",
|
|
105994
105949
|
one: "Atri\xF0i",
|
|
105995
105950
|
many: "Hlutir"
|
|
@@ -106156,11 +106111,6 @@ var ja_JP_default = {
|
|
|
106156
106111
|
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",
|
|
106157
106112
|
placeholderForField: "%{fieldName}\u3092\u5165\u529B",
|
|
106158
106113
|
selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106159
|
-
selection_count: {
|
|
106160
|
-
zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106161
|
-
one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106162
|
-
other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
|
|
106163
|
-
},
|
|
106164
106114
|
success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
|
|
106165
106115
|
one: "\u9805\u76EE",
|
|
106166
106116
|
many: "\u9805\u76EE"
|
|
@@ -106327,11 +106277,6 @@ var pl_PL_default = {
|
|
|
106327
106277
|
error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
|
|
106328
106278
|
placeholderForField: "Wprowad\u017A %{fieldName}",
|
|
106329
106279
|
selection: "Wybrano %{count} %{number}",
|
|
106330
|
-
selection_count: {
|
|
106331
|
-
zero: "Wybrano pozycje: %{count}",
|
|
106332
|
-
one: "Wybrano pozycji: %{count}",
|
|
106333
|
-
other: "Wybrano pozycje: %{count}"
|
|
106334
|
-
},
|
|
106335
106280
|
success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
|
|
106336
106281
|
one: "pozycja",
|
|
106337
106282
|
many: "pozycje"
|
|
@@ -106666,14 +106611,9 @@ var pt_BR_default = {
|
|
|
106666
106611
|
bulkEdit: "Edi\xE7\xE3o em Massa",
|
|
106667
106612
|
cancel: "Cancelar",
|
|
106668
106613
|
editValues: "Editar Valores",
|
|
106669
|
-
error: "
|
|
106614
|
+
error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
|
|
106670
106615
|
placeholderForField: "Digite %{fieldName}",
|
|
106671
106616
|
selection: "%{count} %{number} selecionado",
|
|
106672
|
-
selection_count: {
|
|
106673
|
-
zero: "%{count} itens selecionados",
|
|
106674
|
-
one: "%{count} item selecionado",
|
|
106675
|
-
other: "%{count} itens selecionados"
|
|
106676
|
-
},
|
|
106677
106617
|
success: "Os itens foram atualizados com sucesso.",
|
|
106678
106618
|
one: "item",
|
|
106679
106619
|
many: "itens"
|
|
@@ -106837,14 +106777,9 @@ var th_TH_default = {
|
|
|
106837
106777
|
bulkEdit: "\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E1A\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21",
|
|
106838
106778
|
cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
|
|
106839
106779
|
editValues: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E04\u0E48\u0E32",
|
|
106840
|
-
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 \
|
|
106780
|
+
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.",
|
|
106841
106781
|
placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
|
|
106842
106782
|
selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
|
|
106843
|
-
selection_count: {
|
|
106844
|
-
zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
106845
|
-
one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
106846
|
-
other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
|
|
106847
|
-
},
|
|
106848
106783
|
success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
106849
106784
|
one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
106850
106785
|
many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
|
|
@@ -107011,11 +106946,6 @@ var zh_SG_default = {
|
|
|
107011
106946
|
error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
107012
106947
|
placeholderForField: "\u8F93\u5165 %{fieldName}",
|
|
107013
106948
|
selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
|
|
107014
|
-
selection_count: {
|
|
107015
|
-
zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
|
|
107016
|
-
one: "\u5DF2\u9009\u62E9 %{count} \u9879",
|
|
107017
|
-
other: "\u5DF2\u9009\u62E9 %{count} \u9879"
|
|
107018
|
-
},
|
|
107019
106949
|
success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
|
|
107020
106950
|
one: "\u9879",
|
|
107021
106951
|
many: "\u9879"
|
|
@@ -108843,7 +108773,7 @@ var Table = (props) => {
|
|
|
108843
108773
|
(acc, column3) => acc + column3.width,
|
|
108844
108774
|
0
|
|
108845
108775
|
);
|
|
108846
|
-
const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.
|
|
108776
|
+
const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.getActualWidth() - 50;
|
|
108847
108777
|
column2.maxWidth = currentPinnedColumnMaxWidth;
|
|
108848
108778
|
}
|
|
108849
108779
|
},
|
|
@@ -109406,14 +109336,14 @@ function ClientSideFilterInner(props) {
|
|
|
109406
109336
|
const { Component: Component4, columnDefinition, onChange, options, value } = props;
|
|
109407
109337
|
const filterHeading = columnDefinition.filterProps?.getFilterHeadingText?.(columnDefinition) ?? columnDefinition.headerName;
|
|
109408
109338
|
const filterOptions = React80.useMemo(() => options ?? [], [options]);
|
|
109409
|
-
return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading
|
|
109339
|
+
return /* @__PURE__ */ React80.createElement(Box, { as: "li", display: "block", paddingBottom: "xl", style: { width: "100%" } }, filterHeading && /* @__PURE__ */ React80.createElement(
|
|
109410
109340
|
Label$1,
|
|
109411
109341
|
{
|
|
109412
109342
|
"data-qa": `data-table-filter-heading-${columnDefinition.field}`,
|
|
109413
109343
|
id: `data-table-filter-heading-${columnDefinition.field}`
|
|
109414
109344
|
},
|
|
109415
|
-
filterHeading
|
|
109416
|
-
)
|
|
109345
|
+
/* @__PURE__ */ React80.createElement(React80.Fragment, null, filterHeading)
|
|
109346
|
+
), /* @__PURE__ */ React80.createElement(
|
|
109417
109347
|
Component4,
|
|
109418
109348
|
{
|
|
109419
109349
|
"data-qa": `data-table-filter-input-${columnDefinition.field}`,
|
|
@@ -110407,58 +110337,60 @@ var getSuperSelectFilterPreset = (columnDefinition) => {
|
|
|
110407
110337
|
const isValueEmpty = ["", null, void 0].includes(
|
|
110408
110338
|
ctx.state.value
|
|
110409
110339
|
);
|
|
110410
|
-
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110340
|
+
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110411
110341
|
isValueEmpty,
|
|
110412
110342
|
ctx.state.selectedLabel,
|
|
110413
110343
|
ctx.config.placeholder,
|
|
110414
110344
|
filterName
|
|
110415
|
-
));
|
|
110345
|
+
)));
|
|
110416
110346
|
}),
|
|
110417
|
-
TriggerContainer: React80.forwardRef(
|
|
110418
|
-
|
|
110419
|
-
|
|
110347
|
+
TriggerContainer: React80.forwardRef(
|
|
110348
|
+
(props, ref) => {
|
|
110349
|
+
const ctx = UNSAFE_useSuperSelectContext();
|
|
110350
|
+
if (!Array.isArray(ctx.state.value)) {
|
|
110351
|
+
return /* @__PURE__ */ React80.createElement(
|
|
110352
|
+
UNSAFE_StyledSuperSelectTrigger,
|
|
110353
|
+
{
|
|
110354
|
+
$block: ctx.config.block,
|
|
110355
|
+
...props,
|
|
110356
|
+
ref
|
|
110357
|
+
}
|
|
110358
|
+
);
|
|
110359
|
+
}
|
|
110420
110360
|
return /* @__PURE__ */ React80.createElement(
|
|
110421
|
-
|
|
110361
|
+
Popover,
|
|
110422
110362
|
{
|
|
110423
|
-
|
|
110424
|
-
|
|
110425
|
-
|
|
110426
|
-
|
|
110363
|
+
placement: "top",
|
|
110364
|
+
trigger: ctx.state.value.length > 1 ? "hover" : "none",
|
|
110365
|
+
overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
|
|
110366
|
+
const option = ctx.state.options.find(
|
|
110367
|
+
(option2) => ctx.option.value(option2) === v
|
|
110368
|
+
);
|
|
110369
|
+
return option ? ctx.option.label(option) : "";
|
|
110370
|
+
}).join(", ")))
|
|
110371
|
+
},
|
|
110372
|
+
/* @__PURE__ */ React80.createElement(
|
|
110373
|
+
UNSAFE_StyledSuperSelectTrigger,
|
|
110374
|
+
{
|
|
110375
|
+
$block: ctx.config.block,
|
|
110376
|
+
...props,
|
|
110377
|
+
ref
|
|
110378
|
+
}
|
|
110379
|
+
)
|
|
110427
110380
|
);
|
|
110428
110381
|
}
|
|
110429
|
-
|
|
110430
|
-
Popover,
|
|
110431
|
-
{
|
|
110432
|
-
placement: "top",
|
|
110433
|
-
trigger: ctx.state.value.length > 1 ? "hover" : "none",
|
|
110434
|
-
overlay: /* @__PURE__ */ React80.createElement(StyledFilterPresetPopoverContent, null, /* @__PURE__ */ React80.createElement(Typography, null, ctx.state.value.map((v) => {
|
|
110435
|
-
const option = ctx.state.options.find(
|
|
110436
|
-
(option2) => ctx.option.value(option2) === v
|
|
110437
|
-
);
|
|
110438
|
-
return option ? ctx.option.label(option) : "";
|
|
110439
|
-
}).join(", ")))
|
|
110440
|
-
},
|
|
110441
|
-
/* @__PURE__ */ React80.createElement(
|
|
110442
|
-
UNSAFE_StyledSuperSelectTrigger,
|
|
110443
|
-
{
|
|
110444
|
-
$block: ctx.config.block,
|
|
110445
|
-
...props,
|
|
110446
|
-
ref
|
|
110447
|
-
}
|
|
110448
|
-
)
|
|
110449
|
-
);
|
|
110450
|
-
}),
|
|
110382
|
+
),
|
|
110451
110383
|
MultiValueContainer: () => {
|
|
110452
110384
|
const ctx = UNSAFE_useSuperSelectContext();
|
|
110453
110385
|
if (Array.isArray(ctx.state.value)) {
|
|
110454
110386
|
const isValueEmpty = !ctx.state.value.length;
|
|
110455
110387
|
const value = ctx.state.value.length > 1 ? `(${ctx.state.value.length})` : ctx.state.value.length === 1 ? `${ctx.state.selectedLabel}` : "";
|
|
110456
|
-
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110388
|
+
return /* @__PURE__ */ React80.createElement(UNSAFE_StyledSuperSelectLabel, { $hoverable: false }, /* @__PURE__ */ React80.createElement(React80.Fragment, null, typeof getValueLabel_ === "function" ? getValueLabel_(ctx.state.value) : getValueLabel(
|
|
110457
110389
|
isValueEmpty,
|
|
110458
110390
|
value,
|
|
110459
110391
|
ctx.config.placeholder,
|
|
110460
110392
|
filterName
|
|
110461
|
-
));
|
|
110393
|
+
)));
|
|
110462
110394
|
}
|
|
110463
110395
|
return /* @__PURE__ */ React80.createElement("div", null, "Value is not an array");
|
|
110464
110396
|
}
|
|
@@ -110990,7 +110922,7 @@ var ClientSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
|
|
|
110990
110922
|
if (!colDef) {
|
|
110991
110923
|
return null;
|
|
110992
110924
|
}
|
|
110993
|
-
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(
|
|
110925
|
+
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(
|
|
110994
110926
|
UNSAFE_FilterToken.Remove,
|
|
110995
110927
|
{
|
|
110996
110928
|
onClick: () => tableRef?.current?.removeFilter(filter.field)
|
|
@@ -111085,10 +111017,10 @@ var ServerSideQuickFilters = ({ overlayMatchesTriggerWidth }) => {
|
|
|
111085
111017
|
return null;
|
|
111086
111018
|
}
|
|
111087
111019
|
const filter = getListFilter(fieldName);
|
|
111088
|
-
return /* @__PURE__ */ React80.createElement(StyledFilterTokenWrapper, { key: fieldName }, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken, null, /* @__PURE__ */ React80.createElement(UNSAFE_FilterToken.Label, null, getFilterTokenText(
|
|
111020
|
+
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(
|
|
111089
111021
|
colDef,
|
|
111090
111022
|
colDef.filterRenderer === DateFilterRenderer_default ? filter.value : filter.selected
|
|
111091
|
-
)), /* @__PURE__ */ React80.createElement(
|
|
111023
|
+
))), /* @__PURE__ */ React80.createElement(
|
|
111092
111024
|
UNSAFE_FilterToken.Remove,
|
|
111093
111025
|
{
|
|
111094
111026
|
"data-qa": "data-table-quick-filter-remove-token",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.32.0",
|
|
4
4
|
"description": "Complex data grid built on top of ag-grid, with DST components and styles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/legacy/index.cjs",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"@procore/labs-financials-utils": ">=3.0.1 < 5",
|
|
77
77
|
"react": ">=16.8.0 < 19",
|
|
78
78
|
"react-dom": ">=16.8.0 < 19",
|
|
79
|
-
"styled-components": ">= 5.1.1 <
|
|
79
|
+
"styled-components": ">= 5.1.1 < 7"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@procore/error-pages": "0.2.
|
|
83
|
-
"@procore/labs-datetime-select": "0.1.
|
|
84
|
-
"@procore/labs-group-by-select": "4.0
|
|
82
|
+
"@procore/error-pages": "0.2.3",
|
|
83
|
+
"@procore/labs-datetime-select": "0.1.3",
|
|
84
|
+
"@procore/labs-group-by-select": "4.1.0",
|
|
85
85
|
"@procore/toast-alert": "5.1.1",
|
|
86
86
|
"@procore/web-sdk-storage": "^0.1.0",
|
|
87
87
|
"classnames": "2.5.1",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@procore/core-css": "10.17.0",
|
|
114
114
|
"@procore/core-icons": "12.6.1",
|
|
115
115
|
"@procore/core-prettier": "10.2.0",
|
|
116
|
-
"@procore/core-react": "12.
|
|
116
|
+
"@procore/core-react": "12.22.0",
|
|
117
117
|
"@procore/eslint-config": "10.0.0",
|
|
118
118
|
"@procore/globalization-toolkit": "3.1.0",
|
|
119
119
|
"@procore/labs-financials-utils": "4.3.1",
|
|
@@ -127,16 +127,14 @@
|
|
|
127
127
|
"@testing-library/cypress": "10.0.1",
|
|
128
128
|
"@testing-library/dom": "8.20.0",
|
|
129
129
|
"@testing-library/jest-dom": "5.16.4",
|
|
130
|
-
"@testing-library/react": "
|
|
131
|
-
"@testing-library/react-hooks": "8.0.1",
|
|
130
|
+
"@testing-library/react": "16.3.0",
|
|
132
131
|
"@testing-library/user-event": "13.1.5",
|
|
133
132
|
"@types/lodash.debounce": "4.0.7",
|
|
134
133
|
"@types/lodash.isequal": "4.5.0",
|
|
135
134
|
"@types/ramda": "0.28.23",
|
|
136
|
-
"@types/react": "
|
|
137
|
-
"@types/react-dom": "
|
|
135
|
+
"@types/react": "18.3.1",
|
|
136
|
+
"@types/react-dom": "18.3.1",
|
|
138
137
|
"@types/safe-json-stringify": "^1.1.2",
|
|
139
|
-
"@types/styled-components": "5.1.26",
|
|
140
138
|
"@types/testing-library__jest-dom": "5.14.5",
|
|
141
139
|
"@typescript-eslint/eslint-plugin": "5.48.2",
|
|
142
140
|
"@typescript-eslint/parser": "5.48.1",
|
|
@@ -163,8 +161,8 @@
|
|
|
163
161
|
"mocha-junit-reporter": "^2.2.1",
|
|
164
162
|
"mochawesome": "^7.1.3",
|
|
165
163
|
"postcss-modules": "^6.0.0",
|
|
166
|
-
"react": "
|
|
167
|
-
"react-dom": "
|
|
164
|
+
"react": "18.3.1",
|
|
165
|
+
"react-dom": "18.3.1",
|
|
168
166
|
"rimraf": "3.0.2",
|
|
169
167
|
"safe-json-stringify": "^1.2.0",
|
|
170
168
|
"sass": "1.57.1",
|
|
@@ -172,7 +170,7 @@
|
|
|
172
170
|
"start-server-and-test": "1.15.4",
|
|
173
171
|
"storybook": "^7.5.3",
|
|
174
172
|
"style-loader": "3.3.1",
|
|
175
|
-
"styled-components": "
|
|
173
|
+
"styled-components": "6.1.18",
|
|
176
174
|
"tsup": "^8.4.0",
|
|
177
175
|
"typescript": "^4.9.5"
|
|
178
176
|
}
|