@procore/data-table 14.12.0 → 14.12.2
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 +12 -0
- package/dist/legacy/index.cjs +129 -36
- package/dist/legacy/index.d.cts +1 -1
- package/dist/legacy/index.d.ts +1 -1
- package/dist/legacy/index.js +129 -36
- package/dist/modern/index.cjs +129 -36
- package/dist/modern/index.d.cts +1 -1
- package/dist/modern/index.d.ts +1 -1
- package/dist/modern/index.js +129 -36
- package/package.json +2 -2
package/dist/modern/index.js
CHANGED
|
@@ -8011,7 +8011,7 @@ var InternalBooleanCellEditor = React76.forwardRef(({ columnDefinition, setDataV
|
|
|
8011
8011
|
return /* @__PURE__ */ React76.createElement(
|
|
8012
8012
|
Select,
|
|
8013
8013
|
{
|
|
8014
|
-
afterHide: stopEditing,
|
|
8014
|
+
afterHide: () => stopEditing(),
|
|
8015
8015
|
block: true,
|
|
8016
8016
|
className: cx("input-cell"),
|
|
8017
8017
|
label: value ? I18n.t("dataTable.cells.booleanCell.options.yes") : I18n.t("dataTable.cells.booleanCell.options.no"),
|
|
@@ -8229,8 +8229,8 @@ var Editor = React76.forwardRef(
|
|
|
8229
8229
|
if (isEmptyValue(value) && !columnDefinition.editable) {
|
|
8230
8230
|
return null;
|
|
8231
8231
|
}
|
|
8232
|
-
function onBlur() {
|
|
8233
|
-
stopEditing();
|
|
8232
|
+
function onBlur(event) {
|
|
8233
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
8234
8234
|
}
|
|
8235
8235
|
const defaultValue = eventKey ? value : formatNumber(value, {
|
|
8236
8236
|
...columnDefinition.cellEditorParams?.formatConfig ?? columnDefinition.cellRendererParams?.formatConfig ?? {},
|
|
@@ -8668,8 +8668,8 @@ var Renderer4 = (props) => {
|
|
|
8668
8668
|
var DateCellRenderer = withDataTableRenderer(Renderer4, "date");
|
|
8669
8669
|
var Editor2 = React76.forwardRef(
|
|
8670
8670
|
({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
|
|
8671
|
-
function afterHide() {
|
|
8672
|
-
stopEditing();
|
|
8671
|
+
function afterHide(event) {
|
|
8672
|
+
stopEditing(ensureIsHTMLElement(event?.target));
|
|
8673
8673
|
}
|
|
8674
8674
|
function onChange(date) {
|
|
8675
8675
|
if (date) {
|
|
@@ -8739,8 +8739,8 @@ var Renderer5 = (props) => {
|
|
|
8739
8739
|
var DateTimeCellRenderer = withDataTableRenderer(Renderer5, "date");
|
|
8740
8740
|
var Editor3 = React76.forwardRef(
|
|
8741
8741
|
({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
|
|
8742
|
-
function afterHide() {
|
|
8743
|
-
stopEditing();
|
|
8742
|
+
function afterHide(event) {
|
|
8743
|
+
stopEditing(ensureIsHTMLElement(event?.target));
|
|
8744
8744
|
}
|
|
8745
8745
|
function onChange(date) {
|
|
8746
8746
|
if (date) {
|
|
@@ -53012,8 +53012,8 @@ var InternalNumberCellEditor = React76.forwardRef(({ columnDefinition, stopEditi
|
|
|
53012
53012
|
if (isEmptyValue(value) && !columnDefinition.editable) {
|
|
53013
53013
|
return null;
|
|
53014
53014
|
}
|
|
53015
|
-
function onBlur() {
|
|
53016
|
-
stopEditing();
|
|
53015
|
+
function onBlur(event) {
|
|
53016
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53017
53017
|
}
|
|
53018
53018
|
return /* @__PURE__ */ React76.createElement(
|
|
53019
53019
|
Input,
|
|
@@ -53296,8 +53296,8 @@ var Renderer7 = ({
|
|
|
53296
53296
|
var PercentCellRenderer = withDataTableRenderer(Renderer7, "input");
|
|
53297
53297
|
var Editor4 = React76.forwardRef(({ columnDefinition, eventKey, stopEditing, value }, ref) => {
|
|
53298
53298
|
const I18n = useI18nContext();
|
|
53299
|
-
function onBlur() {
|
|
53300
|
-
stopEditing();
|
|
53299
|
+
function onBlur(event) {
|
|
53300
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53301
53301
|
}
|
|
53302
53302
|
if (isEmptyValue(value) && !columnDefinition.editable) {
|
|
53303
53303
|
return null;
|
|
@@ -53688,8 +53688,8 @@ var Renderer11 = ({
|
|
|
53688
53688
|
var TextCellRenderer = withDataTableRenderer(Renderer11, "input");
|
|
53689
53689
|
var Editor7 = React76.forwardRef(
|
|
53690
53690
|
({ columnDefinition, eventKey, stopEditing, value }, ref) => {
|
|
53691
|
-
function onBlur() {
|
|
53692
|
-
stopEditing();
|
|
53691
|
+
function onBlur(event) {
|
|
53692
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53693
53693
|
}
|
|
53694
53694
|
const I18n = useI18nContext();
|
|
53695
53695
|
const internalValue = eventKey ? value : columnDefinition.getStringFormattedValue?.(value) ?? value;
|
|
@@ -53759,8 +53759,8 @@ var Renderer12 = ({
|
|
|
53759
53759
|
};
|
|
53760
53760
|
var Editor8 = React76.forwardRef(
|
|
53761
53761
|
({ columnDefinition, stopEditing, value }, ref) => {
|
|
53762
|
-
function onBlur() {
|
|
53763
|
-
stopEditing();
|
|
53762
|
+
function onBlur(event) {
|
|
53763
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53764
53764
|
}
|
|
53765
53765
|
const I18n = useI18nContext();
|
|
53766
53766
|
const internalValue = columnDefinition.getStringFormattedValue?.(value) ?? value;
|
|
@@ -55970,7 +55970,14 @@ var DataTableCellEditor = React76.forwardRef(
|
|
|
55970
55970
|
node.setDataValue(field, newValue);
|
|
55971
55971
|
setCurrentValue(newValue);
|
|
55972
55972
|
},
|
|
55973
|
-
stopEditing
|
|
55973
|
+
stopEditing: (relatedTarget) => {
|
|
55974
|
+
const isRelatedTargetOutsideTable = relatedTarget?.closest('[data-qa="data-table-table') === null;
|
|
55975
|
+
stopEditing(isRelatedTargetOutsideTable);
|
|
55976
|
+
if (isRelatedTargetOutsideTable) {
|
|
55977
|
+
api.clearFocusedCell();
|
|
55978
|
+
relatedTarget.focus();
|
|
55979
|
+
}
|
|
55980
|
+
},
|
|
55974
55981
|
tableApi: tableRef?.current,
|
|
55975
55982
|
value: currentValue,
|
|
55976
55983
|
ref: handleRefs(editorType)
|
|
@@ -56842,6 +56849,9 @@ function withDataTableRenderer(Component4, editorType) {
|
|
|
56842
56849
|
}
|
|
56843
56850
|
);
|
|
56844
56851
|
}
|
|
56852
|
+
function ensureIsHTMLElement(element) {
|
|
56853
|
+
return element instanceof HTMLElement ? element : null;
|
|
56854
|
+
}
|
|
56845
56855
|
function getGroupNodes(params) {
|
|
56846
56856
|
const currentParentId = params.node?.parent?.id ?? "root";
|
|
56847
56857
|
let groupNodes = {
|
|
@@ -57081,7 +57091,7 @@ var MultiSelectEditor = React76.forwardRef(({ columnDefinition, value = [], setD
|
|
|
57081
57091
|
MultiSelect,
|
|
57082
57092
|
{
|
|
57083
57093
|
beforeShow,
|
|
57084
|
-
afterHide: stopEditing,
|
|
57094
|
+
afterHide: () => stopEditing(),
|
|
57085
57095
|
block: true,
|
|
57086
57096
|
loading: isSearching || loading,
|
|
57087
57097
|
getId: (option) => {
|
|
@@ -77998,8 +78008,9 @@ var de_DE_default = {
|
|
|
77998
78008
|
title: "Aktuell gibt es keine anzuzeigenden Elemente.",
|
|
77999
78009
|
itemsTitle: "Aktuell gibt es keine anzuzeigenden %{itemsLabel}",
|
|
78000
78010
|
tooltip: "Die Schaltfl\xE4che %{featureName} wird aktiviert, sobald Sie dem Feld %{tableName} Informationen hinzuf\xFCgen.",
|
|
78011
|
+
searchTooltip: "Die Suche wird aktiviert, sobald Sie Informationen zu den %{tableName}",
|
|
78001
78012
|
featureFilter: "Filtern",
|
|
78002
|
-
|
|
78013
|
+
featureQuickFilter: "Schnell-Filter",
|
|
78003
78014
|
featureGroupBy: "Gruppieren nach",
|
|
78004
78015
|
featureConfigure: "Konfigurieren",
|
|
78005
78016
|
tableNameFallback: "Tabelle"
|
|
@@ -78125,6 +78136,10 @@ var de_DE_default = {
|
|
|
78125
78136
|
single: "Einzeln",
|
|
78126
78137
|
range: "Bereich"
|
|
78127
78138
|
}
|
|
78139
|
+
},
|
|
78140
|
+
groupCell: {
|
|
78141
|
+
expand: "Gruppe erweitern",
|
|
78142
|
+
collapse: "Gruppe ausblenden"
|
|
78128
78143
|
}
|
|
78129
78144
|
}
|
|
78130
78145
|
};
|
|
@@ -78143,8 +78158,9 @@ var en_AU_default = {
|
|
|
78143
78158
|
title: "There Are No Items to Display Right Now",
|
|
78144
78159
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
78145
78160
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
78161
|
+
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
78146
78162
|
featureFilter: "Filter",
|
|
78147
|
-
|
|
78163
|
+
featureQuickFilter: "Quick Filter",
|
|
78148
78164
|
featureGroupBy: "Group By",
|
|
78149
78165
|
featureConfigure: "Configure",
|
|
78150
78166
|
tableNameFallback: "Table"
|
|
@@ -78270,6 +78286,10 @@ var en_AU_default = {
|
|
|
78270
78286
|
single: "Single",
|
|
78271
78287
|
range: "Range"
|
|
78272
78288
|
}
|
|
78289
|
+
},
|
|
78290
|
+
groupCell: {
|
|
78291
|
+
expand: "Expand group",
|
|
78292
|
+
collapse: "Collapse group"
|
|
78273
78293
|
}
|
|
78274
78294
|
}
|
|
78275
78295
|
};
|
|
@@ -78288,8 +78308,9 @@ var en_CA_default = {
|
|
|
78288
78308
|
title: "There Are No Items to Display Right Now",
|
|
78289
78309
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
78290
78310
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
78311
|
+
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
78291
78312
|
featureFilter: "Filter",
|
|
78292
|
-
|
|
78313
|
+
featureQuickFilter: "Quick Filter",
|
|
78293
78314
|
featureGroupBy: "Group By",
|
|
78294
78315
|
featureConfigure: "Configure",
|
|
78295
78316
|
tableNameFallback: "Table"
|
|
@@ -78415,6 +78436,10 @@ var en_CA_default = {
|
|
|
78415
78436
|
single: "Single",
|
|
78416
78437
|
range: "Range"
|
|
78417
78438
|
}
|
|
78439
|
+
},
|
|
78440
|
+
groupCell: {
|
|
78441
|
+
expand: "Expand group",
|
|
78442
|
+
collapse: "Collapse group"
|
|
78418
78443
|
}
|
|
78419
78444
|
}
|
|
78420
78445
|
};
|
|
@@ -78433,8 +78458,9 @@ var en_GB_default = {
|
|
|
78433
78458
|
title: "There Are No Items to Display Right Now",
|
|
78434
78459
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
78435
78460
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
78461
|
+
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
78436
78462
|
featureFilter: "Filter",
|
|
78437
|
-
|
|
78463
|
+
featureQuickFilter: "Quick Filter",
|
|
78438
78464
|
featureGroupBy: "Group By",
|
|
78439
78465
|
featureConfigure: "Configure",
|
|
78440
78466
|
tableNameFallback: "Table"
|
|
@@ -78560,6 +78586,10 @@ var en_GB_default = {
|
|
|
78560
78586
|
single: "Single",
|
|
78561
78587
|
range: "Range"
|
|
78562
78588
|
}
|
|
78589
|
+
},
|
|
78590
|
+
groupCell: {
|
|
78591
|
+
expand: "Expand group",
|
|
78592
|
+
collapse: "Collapse group"
|
|
78563
78593
|
}
|
|
78564
78594
|
}
|
|
78565
78595
|
};
|
|
@@ -78728,8 +78758,9 @@ var es_ES_default = {
|
|
|
78728
78758
|
title: "No hay elementos para mostrar en este momento",
|
|
78729
78759
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
78730
78760
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que a\xF1ada informaci\xF3n a la %{tableName}",
|
|
78761
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
78731
78762
|
featureFilter: "Filtro",
|
|
78732
|
-
|
|
78763
|
+
featureQuickFilter: "Filtro r\xE1pido",
|
|
78733
78764
|
featureGroupBy: "Agrupar por",
|
|
78734
78765
|
featureConfigure: "Configurar",
|
|
78735
78766
|
tableNameFallback: "tabla"
|
|
@@ -78855,6 +78886,10 @@ var es_ES_default = {
|
|
|
78855
78886
|
single: "\xDAnica",
|
|
78856
78887
|
range: "Rango"
|
|
78857
78888
|
}
|
|
78889
|
+
},
|
|
78890
|
+
groupCell: {
|
|
78891
|
+
expand: "Expandir grupo",
|
|
78892
|
+
collapse: "Contraer grupo"
|
|
78858
78893
|
}
|
|
78859
78894
|
}
|
|
78860
78895
|
};
|
|
@@ -78873,8 +78908,9 @@ var es_default = {
|
|
|
78873
78908
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
78874
78909
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
78875
78910
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n al %{tableName}",
|
|
78911
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
78876
78912
|
featureFilter: "Filtro",
|
|
78877
|
-
|
|
78913
|
+
featureQuickFilter: "Filtro r\xE1pido",
|
|
78878
78914
|
featureGroupBy: "Agrupar por",
|
|
78879
78915
|
featureConfigure: "Configurar",
|
|
78880
78916
|
tableNameFallback: "tabla"
|
|
@@ -79000,6 +79036,10 @@ var es_default = {
|
|
|
79000
79036
|
single: "\xDAnico",
|
|
79001
79037
|
range: "Intervalo"
|
|
79002
79038
|
}
|
|
79039
|
+
},
|
|
79040
|
+
groupCell: {
|
|
79041
|
+
expand: "Expandir grupo",
|
|
79042
|
+
collapse: "Colapsar grupo"
|
|
79003
79043
|
}
|
|
79004
79044
|
}
|
|
79005
79045
|
};
|
|
@@ -79018,8 +79058,9 @@ var fr_CA_default = {
|
|
|
79018
79058
|
title: "Il n'y a aucun item \xE0 afficher pour le moment",
|
|
79019
79059
|
itemsTitle: "Il n'y a pas de %{itemsLabel} \xE0 afficher pour le moment",
|
|
79020
79060
|
tooltip: "Le bouton %{featureName} sera activ\xE9 une fois que vous aurez ajout\xE9 des informations au %{tableName}",
|
|
79061
|
+
searchTooltip: "La recherche sera activ\xE9e une fois que vous aurez ajout\xE9 de l'information au %{tableName}",
|
|
79021
79062
|
featureFilter: "Filtre",
|
|
79022
|
-
|
|
79063
|
+
featureQuickFilter: "Filtre rapide",
|
|
79023
79064
|
featureGroupBy: "Regrouper par",
|
|
79024
79065
|
featureConfigure: "Configurer",
|
|
79025
79066
|
tableNameFallback: "tableau"
|
|
@@ -79106,9 +79147,9 @@ var fr_CA_default = {
|
|
|
79106
79147
|
configure: "Configurer"
|
|
79107
79148
|
},
|
|
79108
79149
|
rowGroupToggle: {
|
|
79109
|
-
expandTierOne: "
|
|
79150
|
+
expandTierOne: "Ouvrir les premiers groupes du tableau.",
|
|
79110
79151
|
expandAll: "Ouvrez tous les groupes du tableau.",
|
|
79111
|
-
collapseAll: "
|
|
79152
|
+
collapseAll: "Fermer tous les groupes du tableau."
|
|
79112
79153
|
},
|
|
79113
79154
|
columnGroupToggle: {
|
|
79114
79155
|
collapse: "R\xE9duire le groupe de colonnes",
|
|
@@ -79145,6 +79186,10 @@ var fr_CA_default = {
|
|
|
79145
79186
|
single: "Seul",
|
|
79146
79187
|
range: "Intervalle"
|
|
79147
79188
|
}
|
|
79189
|
+
},
|
|
79190
|
+
groupCell: {
|
|
79191
|
+
expand: "D\xE9velopper le groupe",
|
|
79192
|
+
collapse: "R\xE9duire le groupe"
|
|
79148
79193
|
}
|
|
79149
79194
|
}
|
|
79150
79195
|
};
|
|
@@ -79163,8 +79208,9 @@ var fr_FR_default = {
|
|
|
79163
79208
|
title: "Aucun \xE9l\xE9ment \xE0 afficher pour l'instant",
|
|
79164
79209
|
itemsTitle: "Aucun %{itemsLabel} \xE0 afficher pour l'instant",
|
|
79165
79210
|
tooltip: "Le bouton %{featureName} sera activ\xE9 une fois que vous aurez ajout\xE9 des informations au tableau %{tableName}",
|
|
79211
|
+
searchTooltip: "La recherche sera activ\xE9e une fois que vous aurez ajout\xE9 des informations au %{tableName}",
|
|
79166
79212
|
featureFilter: "Filtrer",
|
|
79167
|
-
|
|
79213
|
+
featureQuickFilter: "Filtre rapide",
|
|
79168
79214
|
featureGroupBy: "Regrouper par",
|
|
79169
79215
|
featureConfigure: "Configurer",
|
|
79170
79216
|
tableNameFallback: "Tableau"
|
|
@@ -79290,6 +79336,10 @@ var fr_FR_default = {
|
|
|
79290
79336
|
single: "Unique",
|
|
79291
79337
|
range: "Plage"
|
|
79292
79338
|
}
|
|
79339
|
+
},
|
|
79340
|
+
groupCell: {
|
|
79341
|
+
expand: "D\xE9velopper le groupe",
|
|
79342
|
+
collapse: "R\xE9duire le groupe"
|
|
79293
79343
|
}
|
|
79294
79344
|
}
|
|
79295
79345
|
};
|
|
@@ -79308,8 +79358,9 @@ var is_IS_default = {
|
|
|
79308
79358
|
title: "\xDEa\xF0 eru engir hlutir til a\xF0 s\xFDna n\xFAna",
|
|
79309
79359
|
itemsTitle: "\xDEa\xF0 eru engin %{itemsLabel} til a\xF0 s\xFDna n\xFAna",
|
|
79310
79360
|
tooltip: "%{featureName} hnappurinn ver\xF0ur virkur \xFEegar \xFE\xFA b\xE6tir uppl\xFDsingum vi\xF0 %{tableName}",
|
|
79361
|
+
searchTooltip: "Leit ver\xF0ur virkju\xF0 \xFEegar \xFE\xFA b\xE6tir uppl\xFDsingum vi\xF0 %{tableName}",
|
|
79311
79362
|
featureFilter: "S\xEDa",
|
|
79312
|
-
|
|
79363
|
+
featureQuickFilter: "Flj\xF3tleg s\xEDa",
|
|
79313
79364
|
featureGroupBy: "H\xF3pur eftir",
|
|
79314
79365
|
featureConfigure: "Stilla",
|
|
79315
79366
|
tableNameFallback: "Tafla"
|
|
@@ -79435,6 +79486,10 @@ var is_IS_default = {
|
|
|
79435
79486
|
single: "Einhleypur",
|
|
79436
79487
|
range: "Svi\xF0"
|
|
79437
79488
|
}
|
|
79489
|
+
},
|
|
79490
|
+
groupCell: {
|
|
79491
|
+
expand: "St\xE6kka h\xF3pinn",
|
|
79492
|
+
collapse: "Hrunh\xF3pur"
|
|
79438
79493
|
}
|
|
79439
79494
|
}
|
|
79440
79495
|
};
|
|
@@ -79453,8 +79508,9 @@ var ja_JP_default = {
|
|
|
79453
79508
|
title: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B\u9805\u76EE\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
79454
79509
|
itemsTitle: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B%{itemsLabel}\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
79455
79510
|
tooltip: "\u60C5\u5831\u3092%{tableName}\u306B\u8FFD\u52A0\u3059\u308B\u3068\u3001[%{featureName}]\u30DC\u30BF\u30F3\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
|
|
79511
|
+
searchTooltip: "%{tableName}\u306B\u60C5\u5831\u3092\u8FFD\u52A0\u3059\u308B\u3068\u691C\u7D22\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
|
|
79456
79512
|
featureFilter: "\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79457
|
-
|
|
79513
|
+
featureQuickFilter: "\u30AF\u30A4\u30C3\u30AF\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79458
79514
|
featureGroupBy: "\u30B0\u30EB\u30FC\u30D7\u5316",
|
|
79459
79515
|
featureConfigure: "\u69CB\u6210",
|
|
79460
79516
|
tableNameFallback: "\u8868"
|
|
@@ -79580,6 +79636,10 @@ var ja_JP_default = {
|
|
|
79580
79636
|
single: "\u5358\u72EC",
|
|
79581
79637
|
range: "\u7BC4\u56F2"
|
|
79582
79638
|
}
|
|
79639
|
+
},
|
|
79640
|
+
groupCell: {
|
|
79641
|
+
expand: "\u30B0\u30EB\u30FC\u30D7\u3092\u5C55\u958B\u3059\u308B",
|
|
79642
|
+
collapse: "\u30B0\u30EB\u30FC\u30D7\u3092\u6298\u308A\u305F\u305F\u3080"
|
|
79583
79643
|
}
|
|
79584
79644
|
}
|
|
79585
79645
|
};
|
|
@@ -79748,8 +79808,9 @@ var pt_BR_default = {
|
|
|
79748
79808
|
title: "N\xE3o H\xE1 Itens para Exibir Agora",
|
|
79749
79809
|
itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
|
|
79750
79810
|
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es ao %{tableName}",
|
|
79811
|
+
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 tabela %{tableName}",
|
|
79751
79812
|
featureFilter: "Filtrar",
|
|
79752
|
-
|
|
79813
|
+
featureQuickFilter: "Filtro r\xE1pido",
|
|
79753
79814
|
featureGroupBy: "Agrupar por",
|
|
79754
79815
|
featureConfigure: "Configurar",
|
|
79755
79816
|
tableNameFallback: "tabela"
|
|
@@ -79875,6 +79936,10 @@ var pt_BR_default = {
|
|
|
79875
79936
|
single: "\xDAnico",
|
|
79876
79937
|
range: "Intervalo"
|
|
79877
79938
|
}
|
|
79939
|
+
},
|
|
79940
|
+
groupCell: {
|
|
79941
|
+
expand: "Expandir grupo",
|
|
79942
|
+
collapse: "Recolher grupo"
|
|
79878
79943
|
}
|
|
79879
79944
|
}
|
|
79880
79945
|
};
|
|
@@ -79893,8 +79958,9 @@ var th_TH_default = {
|
|
|
79893
79958
|
title: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E43\u0E19\u0E02\u0E13\u0E30\u0E19\u0E35\u0E49",
|
|
79894
79959
|
itemsTitle: "\u0E44\u0E21\u0E48\u0E21\u0E35 %{itemsLabel} \u0E17\u0E35\u0E48\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E43\u0E19\u0E02\u0E13\u0E30\u0E19\u0E35\u0E49",
|
|
79895
79960
|
tooltip: "\u0E1B\u0E38\u0E48\u0E21 %{featureName} \u0E08\u0E30\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E25\u0E07\u0E43\u0E19 %{tableName}",
|
|
79961
|
+
searchTooltip: "\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E08\u0E30\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E25\u0E07\u0E43\u0E19 %{tableName}",
|
|
79896
79962
|
featureFilter: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
79897
|
-
|
|
79963
|
+
featureQuickFilter: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E14\u0E48\u0E27\u0E19",
|
|
79898
79964
|
featureGroupBy: "\u0E41\u0E1A\u0E48\u0E07\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21",
|
|
79899
79965
|
featureConfigure: "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E04\u0E48\u0E32",
|
|
79900
79966
|
tableNameFallback: "\u0E15\u0E32\u0E23\u0E32\u0E07"
|
|
@@ -80020,6 +80086,10 @@ var th_TH_default = {
|
|
|
80020
80086
|
single: "\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27",
|
|
80021
80087
|
range: "\u0E41\u0E19\u0E27"
|
|
80022
80088
|
}
|
|
80089
|
+
},
|
|
80090
|
+
groupCell: {
|
|
80091
|
+
expand: "\u0E02\u0E22\u0E32\u0E22\u0E01\u0E25\u0E38\u0E48\u0E21",
|
|
80092
|
+
collapse: "\u0E01\u0E32\u0E23\u0E22\u0E38\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21"
|
|
80023
80093
|
}
|
|
80024
80094
|
}
|
|
80025
80095
|
};
|
|
@@ -80038,8 +80108,9 @@ var zh_SG_default = {
|
|
|
80038
80108
|
title: "\u5F53\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684\u9879",
|
|
80039
80109
|
itemsTitle: "\u5F53\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684%{itemsLabel}",
|
|
80040
80110
|
tooltip: "\u4F60\u5C06\u4FE1\u606F\u6DFB\u52A0\u5230 %{tableName} \u540E\uFF0C\u7CFB\u7EDF\u5C06\u542F\u7528%{featureName}\u6309\u94AE",
|
|
80111
|
+
searchTooltip: "\u4E00\u65E6\u60A8\u5C06\u4FE1\u606F\u6DFB\u52A0\u5230%{tableName}\u641C\u7D22\u529F\u80FD\u5C31\u4F1A\u542F\u7528",
|
|
80041
80112
|
featureFilter: "\u7B5B\u9009\u5668",
|
|
80042
|
-
|
|
80113
|
+
featureQuickFilter: "\u5FEB\u901F\u7B5B\u9009",
|
|
80043
80114
|
featureGroupBy: "\u5206\u7EC4\u4F9D\u636E",
|
|
80044
80115
|
featureConfigure: "\u914D\u7F6E",
|
|
80045
80116
|
tableNameFallback: "\u8868\u683C"
|
|
@@ -80165,6 +80236,10 @@ var zh_SG_default = {
|
|
|
80165
80236
|
single: "\u5355\u4E2A",
|
|
80166
80237
|
range: "\u8303\u56F4"
|
|
80167
80238
|
}
|
|
80239
|
+
},
|
|
80240
|
+
groupCell: {
|
|
80241
|
+
expand: "\u5C55\u5F00\u7EC4",
|
|
80242
|
+
collapse: "\u6298\u53E0\u7EC4"
|
|
80168
80243
|
}
|
|
80169
80244
|
}
|
|
80170
80245
|
};
|
|
@@ -81746,10 +81821,27 @@ var Table = (props) => {
|
|
|
81746
81821
|
},
|
|
81747
81822
|
[columnApi, internalTableContext]
|
|
81748
81823
|
);
|
|
81749
|
-
const onColumnResized = React76.useCallback(
|
|
81750
|
-
|
|
81751
|
-
|
|
81752
|
-
|
|
81824
|
+
const onColumnResized = React76.useCallback(
|
|
81825
|
+
(params) => {
|
|
81826
|
+
internalTableContext.onTableConfigChange();
|
|
81827
|
+
setHeaderHeight();
|
|
81828
|
+
if (wrapperRef.current && params.column) {
|
|
81829
|
+
const { columnApi: columnApi2, column: column2 } = params;
|
|
81830
|
+
const tableWidth = wrapperRef.current.clientWidth;
|
|
81831
|
+
const columnState = columnApi2.getColumnState();
|
|
81832
|
+
const pinnedColumns = columnState.filter(
|
|
81833
|
+
(column3) => column3.pinned
|
|
81834
|
+
);
|
|
81835
|
+
const totalPinnedWidth = pinnedColumns.reduce(
|
|
81836
|
+
(acc, column3) => acc + column3.width,
|
|
81837
|
+
0
|
|
81838
|
+
);
|
|
81839
|
+
const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.actualWidth - 50;
|
|
81840
|
+
column2.maxWidth = currentPinnedColumnMaxWidth;
|
|
81841
|
+
}
|
|
81842
|
+
},
|
|
81843
|
+
[internalTableContext.onTableConfigChange]
|
|
81844
|
+
);
|
|
81753
81845
|
const onDisplayedColumnsChanged = React76.useCallback(
|
|
81754
81846
|
(event) => {
|
|
81755
81847
|
if (props.onRowDragEnd) {
|
|
@@ -82049,6 +82141,7 @@ var Table = (props) => {
|
|
|
82049
82141
|
return /* @__PURE__ */ React76.createElement(
|
|
82050
82142
|
Spinner,
|
|
82051
82143
|
{
|
|
82144
|
+
"data-qa": "data-table-table",
|
|
82052
82145
|
loading: loadingStatus.loading,
|
|
82053
82146
|
label: loadingStatus.message,
|
|
82054
82147
|
style: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.12.
|
|
3
|
+
"version": "14.12.2",
|
|
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",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@procore/core-css": "10.17.0",
|
|
112
112
|
"@procore/core-icons": "12.1.0",
|
|
113
113
|
"@procore/core-prettier": "10.2.0",
|
|
114
|
-
"@procore/core-react": "12.
|
|
114
|
+
"@procore/core-react": "12.9.0",
|
|
115
115
|
"@procore/eslint-config": "10.0.0",
|
|
116
116
|
"@procore/globalization-toolkit": "3.1.0",
|
|
117
117
|
"@procore/labs-financials-utils": "3.0.1",
|