@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7ba11177c: When using an input or date editor and focusing on an element outside of the table, clear the cell focus and ensure that the new element is focused.
|
|
8
|
+
|
|
9
|
+
## 14.12.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 86a0d0a3e5: Fix resizing pinned sections issue
|
|
14
|
+
|
|
3
15
|
## 14.12.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/legacy/index.cjs
CHANGED
|
@@ -8028,7 +8028,7 @@ var InternalBooleanCellEditor = React76__default.default.forwardRef(({ columnDef
|
|
|
8028
8028
|
return /* @__PURE__ */ React76__default.default.createElement(
|
|
8029
8029
|
coreReact.Select,
|
|
8030
8030
|
{
|
|
8031
|
-
afterHide: stopEditing,
|
|
8031
|
+
afterHide: () => stopEditing(),
|
|
8032
8032
|
block: true,
|
|
8033
8033
|
className: cx("input-cell"),
|
|
8034
8034
|
label: value ? I18n.t("dataTable.cells.booleanCell.options.yes") : I18n.t("dataTable.cells.booleanCell.options.no"),
|
|
@@ -8249,8 +8249,8 @@ var Editor = React76__default.default.forwardRef(
|
|
|
8249
8249
|
if (isEmptyValue(value) && !columnDefinition.editable) {
|
|
8250
8250
|
return null;
|
|
8251
8251
|
}
|
|
8252
|
-
function onBlur() {
|
|
8253
|
-
stopEditing();
|
|
8252
|
+
function onBlur(event) {
|
|
8253
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
8254
8254
|
}
|
|
8255
8255
|
const defaultValue = eventKey ? value : labsFinancialsUtils.formatNumber(value, {
|
|
8256
8256
|
...((_a = columnDefinition.cellEditorParams) == null ? void 0 : _a.formatConfig) ?? ((_b = columnDefinition.cellRendererParams) == null ? void 0 : _b.formatConfig) ?? {},
|
|
@@ -8693,8 +8693,8 @@ var DateCellRenderer = withDataTableRenderer(Renderer4, "date");
|
|
|
8693
8693
|
var Editor2 = React76__default.default.forwardRef(
|
|
8694
8694
|
({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
|
|
8695
8695
|
var _a, _b;
|
|
8696
|
-
function afterHide() {
|
|
8697
|
-
stopEditing();
|
|
8696
|
+
function afterHide(event) {
|
|
8697
|
+
stopEditing(ensureIsHTMLElement(event == null ? void 0 : event.target));
|
|
8698
8698
|
}
|
|
8699
8699
|
function onChange(date) {
|
|
8700
8700
|
if (date) {
|
|
@@ -8767,8 +8767,8 @@ var DateTimeCellRenderer = withDataTableRenderer(Renderer5, "date");
|
|
|
8767
8767
|
var Editor3 = React76__default.default.forwardRef(
|
|
8768
8768
|
({ columnDefinition, setDataValue, stopEditing, value }, ref) => {
|
|
8769
8769
|
var _a, _b;
|
|
8770
|
-
function afterHide() {
|
|
8771
|
-
stopEditing();
|
|
8770
|
+
function afterHide(event) {
|
|
8771
|
+
stopEditing(ensureIsHTMLElement(event == null ? void 0 : event.target));
|
|
8772
8772
|
}
|
|
8773
8773
|
function onChange(date) {
|
|
8774
8774
|
if (date) {
|
|
@@ -53043,8 +53043,8 @@ var InternalNumberCellEditor = React76__default.default.forwardRef(({ columnDefi
|
|
|
53043
53043
|
if (isEmptyValue(value) && !columnDefinition.editable) {
|
|
53044
53044
|
return null;
|
|
53045
53045
|
}
|
|
53046
|
-
function onBlur() {
|
|
53047
|
-
stopEditing();
|
|
53046
|
+
function onBlur(event) {
|
|
53047
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53048
53048
|
}
|
|
53049
53049
|
return /* @__PURE__ */ React76__default.default.createElement(
|
|
53050
53050
|
coreReact.Input,
|
|
@@ -53335,8 +53335,8 @@ var PercentCellRenderer = withDataTableRenderer(Renderer7, "input");
|
|
|
53335
53335
|
var Editor4 = React76__default.default.forwardRef(({ columnDefinition, eventKey, stopEditing, value }, ref) => {
|
|
53336
53336
|
var _a, _b, _c, _d, _e;
|
|
53337
53337
|
const I18n = coreReact.useI18nContext();
|
|
53338
|
-
function onBlur() {
|
|
53339
|
-
stopEditing();
|
|
53338
|
+
function onBlur(event) {
|
|
53339
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53340
53340
|
}
|
|
53341
53341
|
if (isEmptyValue(value) && !columnDefinition.editable) {
|
|
53342
53342
|
return null;
|
|
@@ -53741,8 +53741,8 @@ var TextCellRenderer = withDataTableRenderer(Renderer11, "input");
|
|
|
53741
53741
|
var Editor7 = React76__default.default.forwardRef(
|
|
53742
53742
|
({ columnDefinition, eventKey, stopEditing, value }, ref) => {
|
|
53743
53743
|
var _a, _b, _c, _d;
|
|
53744
|
-
function onBlur() {
|
|
53745
|
-
stopEditing();
|
|
53744
|
+
function onBlur(event) {
|
|
53745
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53746
53746
|
}
|
|
53747
53747
|
const I18n = coreReact.useI18nContext();
|
|
53748
53748
|
const internalValue = eventKey ? value : ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
|
|
@@ -53815,8 +53815,8 @@ var Renderer12 = ({
|
|
|
53815
53815
|
var Editor8 = React76__default.default.forwardRef(
|
|
53816
53816
|
({ columnDefinition, stopEditing, value }, ref) => {
|
|
53817
53817
|
var _a, _b, _c, _d;
|
|
53818
|
-
function onBlur() {
|
|
53819
|
-
stopEditing();
|
|
53818
|
+
function onBlur(event) {
|
|
53819
|
+
stopEditing(ensureIsHTMLElement(event.relatedTarget));
|
|
53820
53820
|
}
|
|
53821
53821
|
const I18n = coreReact.useI18nContext();
|
|
53822
53822
|
const internalValue = ((_a = columnDefinition.getStringFormattedValue) == null ? void 0 : _a.call(columnDefinition, value)) ?? value;
|
|
@@ -56070,7 +56070,14 @@ var DataTableCellEditor = React76__default.default.forwardRef(
|
|
|
56070
56070
|
node.setDataValue(field, newValue);
|
|
56071
56071
|
setCurrentValue(newValue);
|
|
56072
56072
|
},
|
|
56073
|
-
stopEditing
|
|
56073
|
+
stopEditing: (relatedTarget) => {
|
|
56074
|
+
const isRelatedTargetOutsideTable = (relatedTarget == null ? void 0 : relatedTarget.closest('[data-qa="data-table-table')) === null;
|
|
56075
|
+
stopEditing(isRelatedTargetOutsideTable);
|
|
56076
|
+
if (isRelatedTargetOutsideTable) {
|
|
56077
|
+
api.clearFocusedCell();
|
|
56078
|
+
relatedTarget.focus();
|
|
56079
|
+
}
|
|
56080
|
+
},
|
|
56074
56081
|
tableApi: tableRef == null ? void 0 : tableRef.current,
|
|
56075
56082
|
value: currentValue,
|
|
56076
56083
|
ref: handleRefs(editorType)
|
|
@@ -56952,6 +56959,9 @@ function withDataTableRenderer(Component4, editorType) {
|
|
|
56952
56959
|
}
|
|
56953
56960
|
);
|
|
56954
56961
|
}
|
|
56962
|
+
function ensureIsHTMLElement(element) {
|
|
56963
|
+
return element instanceof HTMLElement ? element : null;
|
|
56964
|
+
}
|
|
56955
56965
|
function getGroupNodes(params) {
|
|
56956
56966
|
var _a, _b;
|
|
56957
56967
|
const currentParentId = ((_b = (_a = params.node) == null ? void 0 : _a.parent) == null ? void 0 : _b.id) ?? "root";
|
|
@@ -57200,7 +57210,7 @@ var MultiSelectEditor = React76__default.default.forwardRef(({ columnDefinition,
|
|
|
57200
57210
|
coreReact.MultiSelect,
|
|
57201
57211
|
{
|
|
57202
57212
|
beforeShow,
|
|
57203
|
-
afterHide: stopEditing,
|
|
57213
|
+
afterHide: () => stopEditing(),
|
|
57204
57214
|
block: true,
|
|
57205
57215
|
loading: isSearching || loading,
|
|
57206
57216
|
getId: (option) => {
|
|
@@ -78164,8 +78174,9 @@ var de_DE_default = {
|
|
|
78164
78174
|
title: "Aktuell gibt es keine anzuzeigenden Elemente.",
|
|
78165
78175
|
itemsTitle: "Aktuell gibt es keine anzuzeigenden %{itemsLabel}",
|
|
78166
78176
|
tooltip: "Die Schaltfl\xE4che %{featureName} wird aktiviert, sobald Sie dem Feld %{tableName} Informationen hinzuf\xFCgen.",
|
|
78177
|
+
searchTooltip: "Die Suche wird aktiviert, sobald Sie Informationen zu den %{tableName}",
|
|
78167
78178
|
featureFilter: "Filtern",
|
|
78168
|
-
|
|
78179
|
+
featureQuickFilter: "Schnell-Filter",
|
|
78169
78180
|
featureGroupBy: "Gruppieren nach",
|
|
78170
78181
|
featureConfigure: "Konfigurieren",
|
|
78171
78182
|
tableNameFallback: "Tabelle"
|
|
@@ -78291,6 +78302,10 @@ var de_DE_default = {
|
|
|
78291
78302
|
single: "Einzeln",
|
|
78292
78303
|
range: "Bereich"
|
|
78293
78304
|
}
|
|
78305
|
+
},
|
|
78306
|
+
groupCell: {
|
|
78307
|
+
expand: "Gruppe erweitern",
|
|
78308
|
+
collapse: "Gruppe ausblenden"
|
|
78294
78309
|
}
|
|
78295
78310
|
}
|
|
78296
78311
|
};
|
|
@@ -78309,8 +78324,9 @@ var en_AU_default = {
|
|
|
78309
78324
|
title: "There Are No Items to Display Right Now",
|
|
78310
78325
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
78311
78326
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
78327
|
+
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
78312
78328
|
featureFilter: "Filter",
|
|
78313
|
-
|
|
78329
|
+
featureQuickFilter: "Quick Filter",
|
|
78314
78330
|
featureGroupBy: "Group By",
|
|
78315
78331
|
featureConfigure: "Configure",
|
|
78316
78332
|
tableNameFallback: "Table"
|
|
@@ -78436,6 +78452,10 @@ var en_AU_default = {
|
|
|
78436
78452
|
single: "Single",
|
|
78437
78453
|
range: "Range"
|
|
78438
78454
|
}
|
|
78455
|
+
},
|
|
78456
|
+
groupCell: {
|
|
78457
|
+
expand: "Expand group",
|
|
78458
|
+
collapse: "Collapse group"
|
|
78439
78459
|
}
|
|
78440
78460
|
}
|
|
78441
78461
|
};
|
|
@@ -78454,8 +78474,9 @@ var en_CA_default = {
|
|
|
78454
78474
|
title: "There Are No Items to Display Right Now",
|
|
78455
78475
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
78456
78476
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
78477
|
+
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
78457
78478
|
featureFilter: "Filter",
|
|
78458
|
-
|
|
78479
|
+
featureQuickFilter: "Quick Filter",
|
|
78459
78480
|
featureGroupBy: "Group By",
|
|
78460
78481
|
featureConfigure: "Configure",
|
|
78461
78482
|
tableNameFallback: "Table"
|
|
@@ -78581,6 +78602,10 @@ var en_CA_default = {
|
|
|
78581
78602
|
single: "Single",
|
|
78582
78603
|
range: "Range"
|
|
78583
78604
|
}
|
|
78605
|
+
},
|
|
78606
|
+
groupCell: {
|
|
78607
|
+
expand: "Expand group",
|
|
78608
|
+
collapse: "Collapse group"
|
|
78584
78609
|
}
|
|
78585
78610
|
}
|
|
78586
78611
|
};
|
|
@@ -78599,8 +78624,9 @@ var en_GB_default = {
|
|
|
78599
78624
|
title: "There Are No Items to Display Right Now",
|
|
78600
78625
|
itemsTitle: "There Are No %{itemsLabel} to Display Right Now",
|
|
78601
78626
|
tooltip: "The %{featureName} button will be enabled once you add information to the %{tableName}",
|
|
78627
|
+
searchTooltip: "Search will be enabled once you add information to the %{tableName}",
|
|
78602
78628
|
featureFilter: "Filter",
|
|
78603
|
-
|
|
78629
|
+
featureQuickFilter: "Quick Filter",
|
|
78604
78630
|
featureGroupBy: "Group By",
|
|
78605
78631
|
featureConfigure: "Configure",
|
|
78606
78632
|
tableNameFallback: "Table"
|
|
@@ -78726,6 +78752,10 @@ var en_GB_default = {
|
|
|
78726
78752
|
single: "Single",
|
|
78727
78753
|
range: "Range"
|
|
78728
78754
|
}
|
|
78755
|
+
},
|
|
78756
|
+
groupCell: {
|
|
78757
|
+
expand: "Expand group",
|
|
78758
|
+
collapse: "Collapse group"
|
|
78729
78759
|
}
|
|
78730
78760
|
}
|
|
78731
78761
|
};
|
|
@@ -78894,8 +78924,9 @@ var es_ES_default = {
|
|
|
78894
78924
|
title: "No hay elementos para mostrar en este momento",
|
|
78895
78925
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
78896
78926
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que a\xF1ada informaci\xF3n a la %{tableName}",
|
|
78927
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
78897
78928
|
featureFilter: "Filtro",
|
|
78898
|
-
|
|
78929
|
+
featureQuickFilter: "Filtro r\xE1pido",
|
|
78899
78930
|
featureGroupBy: "Agrupar por",
|
|
78900
78931
|
featureConfigure: "Configurar",
|
|
78901
78932
|
tableNameFallback: "tabla"
|
|
@@ -79021,6 +79052,10 @@ var es_ES_default = {
|
|
|
79021
79052
|
single: "\xDAnica",
|
|
79022
79053
|
range: "Rango"
|
|
79023
79054
|
}
|
|
79055
|
+
},
|
|
79056
|
+
groupCell: {
|
|
79057
|
+
expand: "Expandir grupo",
|
|
79058
|
+
collapse: "Contraer grupo"
|
|
79024
79059
|
}
|
|
79025
79060
|
}
|
|
79026
79061
|
};
|
|
@@ -79039,8 +79074,9 @@ var es_default = {
|
|
|
79039
79074
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
79040
79075
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
79041
79076
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n al %{tableName}",
|
|
79077
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
79042
79078
|
featureFilter: "Filtro",
|
|
79043
|
-
|
|
79079
|
+
featureQuickFilter: "Filtro r\xE1pido",
|
|
79044
79080
|
featureGroupBy: "Agrupar por",
|
|
79045
79081
|
featureConfigure: "Configurar",
|
|
79046
79082
|
tableNameFallback: "tabla"
|
|
@@ -79166,6 +79202,10 @@ var es_default = {
|
|
|
79166
79202
|
single: "\xDAnico",
|
|
79167
79203
|
range: "Intervalo"
|
|
79168
79204
|
}
|
|
79205
|
+
},
|
|
79206
|
+
groupCell: {
|
|
79207
|
+
expand: "Expandir grupo",
|
|
79208
|
+
collapse: "Colapsar grupo"
|
|
79169
79209
|
}
|
|
79170
79210
|
}
|
|
79171
79211
|
};
|
|
@@ -79184,8 +79224,9 @@ var fr_CA_default = {
|
|
|
79184
79224
|
title: "Il n'y a aucun item \xE0 afficher pour le moment",
|
|
79185
79225
|
itemsTitle: "Il n'y a pas de %{itemsLabel} \xE0 afficher pour le moment",
|
|
79186
79226
|
tooltip: "Le bouton %{featureName} sera activ\xE9 une fois que vous aurez ajout\xE9 des informations au %{tableName}",
|
|
79227
|
+
searchTooltip: "La recherche sera activ\xE9e une fois que vous aurez ajout\xE9 de l'information au %{tableName}",
|
|
79187
79228
|
featureFilter: "Filtre",
|
|
79188
|
-
|
|
79229
|
+
featureQuickFilter: "Filtre rapide",
|
|
79189
79230
|
featureGroupBy: "Regrouper par",
|
|
79190
79231
|
featureConfigure: "Configurer",
|
|
79191
79232
|
tableNameFallback: "tableau"
|
|
@@ -79272,9 +79313,9 @@ var fr_CA_default = {
|
|
|
79272
79313
|
configure: "Configurer"
|
|
79273
79314
|
},
|
|
79274
79315
|
rowGroupToggle: {
|
|
79275
|
-
expandTierOne: "
|
|
79316
|
+
expandTierOne: "Ouvrir les premiers groupes du tableau.",
|
|
79276
79317
|
expandAll: "Ouvrez tous les groupes du tableau.",
|
|
79277
|
-
collapseAll: "
|
|
79318
|
+
collapseAll: "Fermer tous les groupes du tableau."
|
|
79278
79319
|
},
|
|
79279
79320
|
columnGroupToggle: {
|
|
79280
79321
|
collapse: "R\xE9duire le groupe de colonnes",
|
|
@@ -79311,6 +79352,10 @@ var fr_CA_default = {
|
|
|
79311
79352
|
single: "Seul",
|
|
79312
79353
|
range: "Intervalle"
|
|
79313
79354
|
}
|
|
79355
|
+
},
|
|
79356
|
+
groupCell: {
|
|
79357
|
+
expand: "D\xE9velopper le groupe",
|
|
79358
|
+
collapse: "R\xE9duire le groupe"
|
|
79314
79359
|
}
|
|
79315
79360
|
}
|
|
79316
79361
|
};
|
|
@@ -79329,8 +79374,9 @@ var fr_FR_default = {
|
|
|
79329
79374
|
title: "Aucun \xE9l\xE9ment \xE0 afficher pour l'instant",
|
|
79330
79375
|
itemsTitle: "Aucun %{itemsLabel} \xE0 afficher pour l'instant",
|
|
79331
79376
|
tooltip: "Le bouton %{featureName} sera activ\xE9 une fois que vous aurez ajout\xE9 des informations au tableau %{tableName}",
|
|
79377
|
+
searchTooltip: "La recherche sera activ\xE9e une fois que vous aurez ajout\xE9 des informations au %{tableName}",
|
|
79332
79378
|
featureFilter: "Filtrer",
|
|
79333
|
-
|
|
79379
|
+
featureQuickFilter: "Filtre rapide",
|
|
79334
79380
|
featureGroupBy: "Regrouper par",
|
|
79335
79381
|
featureConfigure: "Configurer",
|
|
79336
79382
|
tableNameFallback: "Tableau"
|
|
@@ -79456,6 +79502,10 @@ var fr_FR_default = {
|
|
|
79456
79502
|
single: "Unique",
|
|
79457
79503
|
range: "Plage"
|
|
79458
79504
|
}
|
|
79505
|
+
},
|
|
79506
|
+
groupCell: {
|
|
79507
|
+
expand: "D\xE9velopper le groupe",
|
|
79508
|
+
collapse: "R\xE9duire le groupe"
|
|
79459
79509
|
}
|
|
79460
79510
|
}
|
|
79461
79511
|
};
|
|
@@ -79474,8 +79524,9 @@ var is_IS_default = {
|
|
|
79474
79524
|
title: "\xDEa\xF0 eru engir hlutir til a\xF0 s\xFDna n\xFAna",
|
|
79475
79525
|
itemsTitle: "\xDEa\xF0 eru engin %{itemsLabel} til a\xF0 s\xFDna n\xFAna",
|
|
79476
79526
|
tooltip: "%{featureName} hnappurinn ver\xF0ur virkur \xFEegar \xFE\xFA b\xE6tir uppl\xFDsingum vi\xF0 %{tableName}",
|
|
79527
|
+
searchTooltip: "Leit ver\xF0ur virkju\xF0 \xFEegar \xFE\xFA b\xE6tir uppl\xFDsingum vi\xF0 %{tableName}",
|
|
79477
79528
|
featureFilter: "S\xEDa",
|
|
79478
|
-
|
|
79529
|
+
featureQuickFilter: "Flj\xF3tleg s\xEDa",
|
|
79479
79530
|
featureGroupBy: "H\xF3pur eftir",
|
|
79480
79531
|
featureConfigure: "Stilla",
|
|
79481
79532
|
tableNameFallback: "Tafla"
|
|
@@ -79601,6 +79652,10 @@ var is_IS_default = {
|
|
|
79601
79652
|
single: "Einhleypur",
|
|
79602
79653
|
range: "Svi\xF0"
|
|
79603
79654
|
}
|
|
79655
|
+
},
|
|
79656
|
+
groupCell: {
|
|
79657
|
+
expand: "St\xE6kka h\xF3pinn",
|
|
79658
|
+
collapse: "Hrunh\xF3pur"
|
|
79604
79659
|
}
|
|
79605
79660
|
}
|
|
79606
79661
|
};
|
|
@@ -79619,8 +79674,9 @@ var ja_JP_default = {
|
|
|
79619
79674
|
title: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B\u9805\u76EE\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
79620
79675
|
itemsTitle: "\u73FE\u5728\u3001\u8868\u793A\u3059\u308B%{itemsLabel}\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
79621
79676
|
tooltip: "\u60C5\u5831\u3092%{tableName}\u306B\u8FFD\u52A0\u3059\u308B\u3068\u3001[%{featureName}]\u30DC\u30BF\u30F3\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
|
|
79677
|
+
searchTooltip: "%{tableName}\u306B\u60C5\u5831\u3092\u8FFD\u52A0\u3059\u308B\u3068\u691C\u7D22\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3059",
|
|
79622
79678
|
featureFilter: "\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79623
|
-
|
|
79679
|
+
featureQuickFilter: "\u30AF\u30A4\u30C3\u30AF\u30D5\u30A3\u30EB\u30BF\u30FC",
|
|
79624
79680
|
featureGroupBy: "\u30B0\u30EB\u30FC\u30D7\u5316",
|
|
79625
79681
|
featureConfigure: "\u69CB\u6210",
|
|
79626
79682
|
tableNameFallback: "\u8868"
|
|
@@ -79746,6 +79802,10 @@ var ja_JP_default = {
|
|
|
79746
79802
|
single: "\u5358\u72EC",
|
|
79747
79803
|
range: "\u7BC4\u56F2"
|
|
79748
79804
|
}
|
|
79805
|
+
},
|
|
79806
|
+
groupCell: {
|
|
79807
|
+
expand: "\u30B0\u30EB\u30FC\u30D7\u3092\u5C55\u958B\u3059\u308B",
|
|
79808
|
+
collapse: "\u30B0\u30EB\u30FC\u30D7\u3092\u6298\u308A\u305F\u305F\u3080"
|
|
79749
79809
|
}
|
|
79750
79810
|
}
|
|
79751
79811
|
};
|
|
@@ -79914,8 +79974,9 @@ var pt_BR_default = {
|
|
|
79914
79974
|
title: "N\xE3o H\xE1 Itens para Exibir Agora",
|
|
79915
79975
|
itemsTitle: "N\xE3o H\xE1 %{itemsLabel} para Exibir Agora",
|
|
79916
79976
|
tooltip: "O bot\xE3o %{featureName} ser\xE1 ativado assim que voc\xEA adicionar informa\xE7\xF5es ao %{tableName}",
|
|
79977
|
+
searchTooltip: "A pesquisa ser\xE1 ativada assim que voc\xEA adicionar informa\xE7\xF5es \xE0 tabela %{tableName}",
|
|
79917
79978
|
featureFilter: "Filtrar",
|
|
79918
|
-
|
|
79979
|
+
featureQuickFilter: "Filtro r\xE1pido",
|
|
79919
79980
|
featureGroupBy: "Agrupar por",
|
|
79920
79981
|
featureConfigure: "Configurar",
|
|
79921
79982
|
tableNameFallback: "tabela"
|
|
@@ -80041,6 +80102,10 @@ var pt_BR_default = {
|
|
|
80041
80102
|
single: "\xDAnico",
|
|
80042
80103
|
range: "Intervalo"
|
|
80043
80104
|
}
|
|
80105
|
+
},
|
|
80106
|
+
groupCell: {
|
|
80107
|
+
expand: "Expandir grupo",
|
|
80108
|
+
collapse: "Recolher grupo"
|
|
80044
80109
|
}
|
|
80045
80110
|
}
|
|
80046
80111
|
};
|
|
@@ -80059,8 +80124,9 @@ var th_TH_default = {
|
|
|
80059
80124
|
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",
|
|
80060
80125
|
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",
|
|
80061
80126
|
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}",
|
|
80127
|
+
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}",
|
|
80062
80128
|
featureFilter: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
|
80063
|
-
|
|
80129
|
+
featureQuickFilter: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E14\u0E48\u0E27\u0E19",
|
|
80064
80130
|
featureGroupBy: "\u0E41\u0E1A\u0E48\u0E07\u0E01\u0E25\u0E38\u0E48\u0E21\u0E15\u0E32\u0E21",
|
|
80065
80131
|
featureConfigure: "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E04\u0E48\u0E32",
|
|
80066
80132
|
tableNameFallback: "\u0E15\u0E32\u0E23\u0E32\u0E07"
|
|
@@ -80186,6 +80252,10 @@ var th_TH_default = {
|
|
|
80186
80252
|
single: "\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27",
|
|
80187
80253
|
range: "\u0E41\u0E19\u0E27"
|
|
80188
80254
|
}
|
|
80255
|
+
},
|
|
80256
|
+
groupCell: {
|
|
80257
|
+
expand: "\u0E02\u0E22\u0E32\u0E22\u0E01\u0E25\u0E38\u0E48\u0E21",
|
|
80258
|
+
collapse: "\u0E01\u0E32\u0E23\u0E22\u0E38\u0E1A\u0E01\u0E25\u0E38\u0E48\u0E21"
|
|
80189
80259
|
}
|
|
80190
80260
|
}
|
|
80191
80261
|
};
|
|
@@ -80204,8 +80274,9 @@ var zh_SG_default = {
|
|
|
80204
80274
|
title: "\u5F53\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684\u9879",
|
|
80205
80275
|
itemsTitle: "\u5F53\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684%{itemsLabel}",
|
|
80206
80276
|
tooltip: "\u4F60\u5C06\u4FE1\u606F\u6DFB\u52A0\u5230 %{tableName} \u540E\uFF0C\u7CFB\u7EDF\u5C06\u542F\u7528%{featureName}\u6309\u94AE",
|
|
80277
|
+
searchTooltip: "\u4E00\u65E6\u60A8\u5C06\u4FE1\u606F\u6DFB\u52A0\u5230%{tableName}\u641C\u7D22\u529F\u80FD\u5C31\u4F1A\u542F\u7528",
|
|
80207
80278
|
featureFilter: "\u7B5B\u9009\u5668",
|
|
80208
|
-
|
|
80279
|
+
featureQuickFilter: "\u5FEB\u901F\u7B5B\u9009",
|
|
80209
80280
|
featureGroupBy: "\u5206\u7EC4\u4F9D\u636E",
|
|
80210
80281
|
featureConfigure: "\u914D\u7F6E",
|
|
80211
80282
|
tableNameFallback: "\u8868\u683C"
|
|
@@ -80331,6 +80402,10 @@ var zh_SG_default = {
|
|
|
80331
80402
|
single: "\u5355\u4E2A",
|
|
80332
80403
|
range: "\u8303\u56F4"
|
|
80333
80404
|
}
|
|
80405
|
+
},
|
|
80406
|
+
groupCell: {
|
|
80407
|
+
expand: "\u5C55\u5F00\u7EC4",
|
|
80408
|
+
collapse: "\u6298\u53E0\u7EC4"
|
|
80334
80409
|
}
|
|
80335
80410
|
}
|
|
80336
80411
|
};
|
|
@@ -81952,10 +82027,27 @@ var Table = (props) => {
|
|
|
81952
82027
|
},
|
|
81953
82028
|
[columnApi, internalTableContext]
|
|
81954
82029
|
);
|
|
81955
|
-
const onColumnResized = React76__default.default.useCallback(
|
|
81956
|
-
|
|
81957
|
-
|
|
81958
|
-
|
|
82030
|
+
const onColumnResized = React76__default.default.useCallback(
|
|
82031
|
+
(params) => {
|
|
82032
|
+
internalTableContext.onTableConfigChange();
|
|
82033
|
+
setHeaderHeight();
|
|
82034
|
+
if (wrapperRef.current && params.column) {
|
|
82035
|
+
const { columnApi: columnApi2, column: column2 } = params;
|
|
82036
|
+
const tableWidth = wrapperRef.current.clientWidth;
|
|
82037
|
+
const columnState = columnApi2.getColumnState();
|
|
82038
|
+
const pinnedColumns = columnState.filter(
|
|
82039
|
+
(column3) => column3.pinned
|
|
82040
|
+
);
|
|
82041
|
+
const totalPinnedWidth = pinnedColumns.reduce(
|
|
82042
|
+
(acc, column3) => acc + column3.width,
|
|
82043
|
+
0
|
|
82044
|
+
);
|
|
82045
|
+
const currentPinnedColumnMaxWidth = tableWidth - totalPinnedWidth + column2.actualWidth - 50;
|
|
82046
|
+
column2.maxWidth = currentPinnedColumnMaxWidth;
|
|
82047
|
+
}
|
|
82048
|
+
},
|
|
82049
|
+
[internalTableContext.onTableConfigChange]
|
|
82050
|
+
);
|
|
81959
82051
|
const onDisplayedColumnsChanged = React76__default.default.useCallback(
|
|
81960
82052
|
(event) => {
|
|
81961
82053
|
var _a2;
|
|
@@ -82264,6 +82356,7 @@ var Table = (props) => {
|
|
|
82264
82356
|
return /* @__PURE__ */ React76__default.default.createElement(
|
|
82265
82357
|
Spinner,
|
|
82266
82358
|
{
|
|
82359
|
+
"data-qa": "data-table-table",
|
|
82267
82360
|
loading: loadingStatus.loading,
|
|
82268
82361
|
label: loadingStatus.message,
|
|
82269
82362
|
style: {
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -198,7 +198,7 @@ interface DataTableCellEditorProps<TValue = any, TColumnDefinition extends Colum
|
|
|
198
198
|
eventKey: string | null;
|
|
199
199
|
ref?: ((instance: HTMLElement | null) => void) | React__default.MutableRefObject<HTMLElement | null> | null;
|
|
200
200
|
setDataValue: (field: string, newValue: TValue) => void;
|
|
201
|
-
stopEditing: () => void;
|
|
201
|
+
stopEditing: (relatedTarget?: HTMLElement | null) => void;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
interface BooleanCellRendererParams {
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ interface DataTableCellEditorProps<TValue = any, TColumnDefinition extends Colum
|
|
|
198
198
|
eventKey: string | null;
|
|
199
199
|
ref?: ((instance: HTMLElement | null) => void) | React__default.MutableRefObject<HTMLElement | null> | null;
|
|
200
200
|
setDataValue: (field: string, newValue: TValue) => void;
|
|
201
|
-
stopEditing: () => void;
|
|
201
|
+
stopEditing: (relatedTarget?: HTMLElement | null) => void;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
interface BooleanCellRendererParams {
|