@procore/data-table 14.33.0 → 14.35.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 +16 -0
- package/dist/legacy/index.cjs +112 -18
- package/dist/legacy/index.d.cts +6 -2
- package/dist/legacy/index.d.ts +6 -2
- package/dist/legacy/index.js +112 -18
- package/dist/modern/index.cjs +112 -17
- package/dist/modern/index.d.cts +6 -2
- package/dist/modern/index.d.ts +6 -2
- package/dist/modern/index.js +112 -17
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a69ac50: support dynamic tooltip content based on row data
|
|
8
|
+
|
|
9
|
+
## 14.34.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 5848cca: Update I18nProviders to have the option to pull translations from the CDN package cdn-translations
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 46714d4: Fix broken "groupSelectsChildren" prop behaviour
|
|
18
|
+
|
|
3
19
|
## 14.33.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/legacy/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ var labsFinancialsUtils = require('@procore/labs-financials-utils');
|
|
|
12
12
|
var styled4 = require('styled-components');
|
|
13
13
|
var format = require('@procore/labs-financials-utils/dist/format');
|
|
14
14
|
var ulid$1 = require('ulid');
|
|
15
|
+
var cdnTranslations = require('@procore/cdn-translations');
|
|
15
16
|
var toastAlert = require('@procore/toast-alert');
|
|
16
17
|
var ReactDOM = require('react-dom');
|
|
17
18
|
var server = require('react-dom/server');
|
|
@@ -55419,19 +55420,15 @@ function getAffectedRows(currentRows, selectionNode, affectedRows) {
|
|
|
55419
55420
|
function noop2() {
|
|
55420
55421
|
}
|
|
55421
55422
|
function getSelectedState(node, affectedRows) {
|
|
55422
|
-
var _a;
|
|
55423
55423
|
const self = affectedRows[node.id];
|
|
55424
55424
|
if ((self == null ? void 0 : self.selectedState) === "selected") {
|
|
55425
55425
|
return true;
|
|
55426
|
-
} else if (node.
|
|
55427
|
-
node.setSelected(true, void 0
|
|
55428
|
-
affectedRows[node.id] = {
|
|
55429
|
-
node,
|
|
55430
|
-
selectedState: "selected"
|
|
55431
|
-
};
|
|
55426
|
+
} else if (node.isSelected()) {
|
|
55427
|
+
node.setSelected(true, void 0);
|
|
55428
|
+
affectedRows[node.id] = { node, selectedState: "selected" };
|
|
55432
55429
|
return true;
|
|
55433
55430
|
} else {
|
|
55434
|
-
return
|
|
55431
|
+
return false;
|
|
55435
55432
|
}
|
|
55436
55433
|
}
|
|
55437
55434
|
function getCheckboxState(node, isServerSideDataRequest, rowSelectionRef) {
|
|
@@ -55971,7 +55968,12 @@ var DataTableCellRenderer = ({
|
|
|
55971
55968
|
}),
|
|
55972
55969
|
[column2, node]
|
|
55973
55970
|
);
|
|
55974
|
-
const
|
|
55971
|
+
const rawTooltipParams = (_e = columnDefinition.cellRendererParams) == null ? void 0 : _e.tooltipParams;
|
|
55972
|
+
const tooltipProps = typeof rawTooltipParams === "function" ? rawTooltipParams({
|
|
55973
|
+
data,
|
|
55974
|
+
value,
|
|
55975
|
+
node: serializeNode(node)
|
|
55976
|
+
}) : rawTooltipParams;
|
|
55975
55977
|
if (tooltipProps) {
|
|
55976
55978
|
return /* @__PURE__ */ React80__default.default.createElement(CellTooltipWrapper, { tooltipProps }, /* @__PURE__ */ React80__default.default.createElement(
|
|
55977
55979
|
CellContent,
|
|
@@ -104573,6 +104575,11 @@ var de_DE_default = {
|
|
|
104573
104575
|
error: "Entschuldigung, die Elemente konnten nicht aktualisiert werden. Versuchen Sie es noch einmal.",
|
|
104574
104576
|
placeholderForField: "%{fieldName} eingeben",
|
|
104575
104577
|
selection: "%{count} %{number} ausgew\xE4hlt",
|
|
104578
|
+
selection_count: {
|
|
104579
|
+
zero: "%{count} Elemente ausgew\xE4hlt",
|
|
104580
|
+
one: "%{count} Element ausgew\xE4hlt",
|
|
104581
|
+
other: "%{count} Elemente ausgew\xE4hlt"
|
|
104582
|
+
},
|
|
104576
104583
|
success: "Die Elemente wurden erfolgreich aktualisiert.",
|
|
104577
104584
|
one: "Element",
|
|
104578
104585
|
many: "Elemente"
|
|
@@ -104739,6 +104746,11 @@ var en_AU_default = {
|
|
|
104739
104746
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104740
104747
|
placeholderForField: "Enter %{fieldName}",
|
|
104741
104748
|
selection: "%{count} %{number} selected",
|
|
104749
|
+
selection_count: {
|
|
104750
|
+
zero: "%{count} items selected",
|
|
104751
|
+
one: "%{count} item selected",
|
|
104752
|
+
other: "%{count} items selected"
|
|
104753
|
+
},
|
|
104742
104754
|
success: "The items were successfully updated.",
|
|
104743
104755
|
one: "item",
|
|
104744
104756
|
many: "items"
|
|
@@ -104905,6 +104917,11 @@ var en_CA_default = {
|
|
|
104905
104917
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
104906
104918
|
placeholderForField: "Enter %{fieldName}",
|
|
104907
104919
|
selection: "%{count} %{number} selected",
|
|
104920
|
+
selection_count: {
|
|
104921
|
+
zero: "%{count} items selected",
|
|
104922
|
+
one: "%{count} item selected",
|
|
104923
|
+
other: "%{count} items selected"
|
|
104924
|
+
},
|
|
104908
104925
|
success: "The items were successfully updated.",
|
|
104909
104926
|
one: "item",
|
|
104910
104927
|
many: "items"
|
|
@@ -105071,6 +105088,11 @@ var en_GB_default = {
|
|
|
105071
105088
|
error: "Sorry, the items couldn't be updated. Try again.",
|
|
105072
105089
|
placeholderForField: "Enter %{fieldName}",
|
|
105073
105090
|
selection: "%{count} %{number} selected",
|
|
105091
|
+
selection_count: {
|
|
105092
|
+
zero: "%{count} items selected",
|
|
105093
|
+
one: "%{count} item selected",
|
|
105094
|
+
other: "%{count} items selected"
|
|
105095
|
+
},
|
|
105074
105096
|
success: "The items were successfully updated.",
|
|
105075
105097
|
one: "item",
|
|
105076
105098
|
many: "items"
|
|
@@ -105408,6 +105430,11 @@ var es_ES_default = {
|
|
|
105408
105430
|
error: "No se han podido actualizar los elementos. Int\xE9ntelo de nuevo.",
|
|
105409
105431
|
placeholderForField: "Introducir %{fieldName}",
|
|
105410
105432
|
selection: "%{count} %{number} seleccionados",
|
|
105433
|
+
selection_count: {
|
|
105434
|
+
zero: "%{count} elementos seleccionados",
|
|
105435
|
+
one: "%{count} elemento seleccionado",
|
|
105436
|
+
other: "%{count} elementos seleccionados"
|
|
105437
|
+
},
|
|
105411
105438
|
success: "Los elementos se han actualizado correctamente.",
|
|
105412
105439
|
one: "elemento",
|
|
105413
105440
|
many: "elementos"
|
|
@@ -105574,6 +105601,11 @@ var es_default = {
|
|
|
105574
105601
|
error: "Lo sentimos, no se pudieron actualizar los \xEDtems. Int\xE9ntelo de nuevo.",
|
|
105575
105602
|
placeholderForField: "Ingrese %{fieldName}",
|
|
105576
105603
|
selection: "%{count} %{number} seleccionado",
|
|
105604
|
+
selection_count: {
|
|
105605
|
+
zero: "%{count} \xEDtems seleccionados",
|
|
105606
|
+
one: "%{count} \xEDtem seleccionado",
|
|
105607
|
+
other: "%{count} \xEDtems seleccionados"
|
|
105608
|
+
},
|
|
105577
105609
|
success: "Los \xEDtems se actualizaron correctamente.",
|
|
105578
105610
|
one: "\xEDtem",
|
|
105579
105611
|
many: "\xEDtems"
|
|
@@ -105740,6 +105772,11 @@ var fr_CA_default = {
|
|
|
105740
105772
|
error: "D\xE9sol\xE9, les items n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
|
|
105741
105773
|
placeholderForField: "Entrez %{fieldName}",
|
|
105742
105774
|
selection: "%{count} %{number} s\xE9lectionn\xE9",
|
|
105775
|
+
selection_count: {
|
|
105776
|
+
zero: "%{count}\xA0items s\xE9lectionn\xE9s",
|
|
105777
|
+
one: "%{count}\xA0item s\xE9lectionn\xE9",
|
|
105778
|
+
other: "%{count}\xA0items s\xE9lectionn\xE9s"
|
|
105779
|
+
},
|
|
105743
105780
|
success: "Les items ont \xE9t\xE9 mis \xE0 jour avec succ\xE8s.",
|
|
105744
105781
|
one: "Item",
|
|
105745
105782
|
many: "items"
|
|
@@ -105906,6 +105943,11 @@ var fr_FR_default = {
|
|
|
105906
105943
|
error: "D\xE9sol\xE9, les \xE9l\xE9ments n'ont pas pu \xEAtre mis \xE0 jour. Veuillez r\xE9essayer.",
|
|
105907
105944
|
placeholderForField: "Saisissez %{fieldName}",
|
|
105908
105945
|
selection: "%{count} %{number} s\xE9lectionn\xE9",
|
|
105946
|
+
selection_count: {
|
|
105947
|
+
zero: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s",
|
|
105948
|
+
one: "%{count}\xA0\xE9l\xE9ment s\xE9lectionn\xE9",
|
|
105949
|
+
other: "%{count}\xA0\xE9l\xE9ments s\xE9lectionn\xE9s"
|
|
105950
|
+
},
|
|
105909
105951
|
success: "Les \xE9l\xE9ments ont bien \xE9t\xE9 mis \xE0 jour.",
|
|
105910
105952
|
one: "\xE9l\xE9ment",
|
|
105911
105953
|
many: "\xE9l\xE9ments"
|
|
@@ -106072,6 +106114,11 @@ var is_IS_default = {
|
|
|
106072
106114
|
error: "\xDEv\xED mi\xF0ur var ekki h\xE6gt a\xF0 uppf\xE6ra atri\xF0in. Reyndu aftur.",
|
|
106073
106115
|
placeholderForField: "Sl\xE1\xF0u inn %{fieldName}",
|
|
106074
106116
|
selection: "%{count} %{number} valinn",
|
|
106117
|
+
selection_count: {
|
|
106118
|
+
zero: "%{count} atri\xF0i valin",
|
|
106119
|
+
one: "%{count} atri\xF0i vali\xF0",
|
|
106120
|
+
other: "%{count} atri\xF0i valin"
|
|
106121
|
+
},
|
|
106075
106122
|
success: "Atri\xF0in voru uppf\xE6r\xF0.",
|
|
106076
106123
|
one: "Atri\xF0i",
|
|
106077
106124
|
many: "Hlutir"
|
|
@@ -106238,6 +106285,11 @@ var ja_JP_default = {
|
|
|
106238
106285
|
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",
|
|
106239
106286
|
placeholderForField: "%{fieldName}\u3092\u5165\u529B",
|
|
106240
106287
|
selection: "%{count}%{number}\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106288
|
+
selection_count: {
|
|
106289
|
+
zero: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106290
|
+
one: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F",
|
|
106291
|
+
other: "%{count}\u500B\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F"
|
|
106292
|
+
},
|
|
106241
106293
|
success: "\u9805\u76EE\u3092\u6B63\u5E38\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002",
|
|
106242
106294
|
one: "\u9805\u76EE",
|
|
106243
106295
|
many: "\u9805\u76EE"
|
|
@@ -106404,6 +106456,11 @@ var pl_PL_default = {
|
|
|
106404
106456
|
error: "Przepraszamy, nie mo\u017Cna zaktualizowa\u0107 pozycji. Spr\xF3buj ponownie.",
|
|
106405
106457
|
placeholderForField: "Wprowad\u017A %{fieldName}",
|
|
106406
106458
|
selection: "Wybrano %{count} %{number}",
|
|
106459
|
+
selection_count: {
|
|
106460
|
+
zero: "Wybrano pozycje: %{count}",
|
|
106461
|
+
one: "Wybrano pozycji: %{count}",
|
|
106462
|
+
other: "Wybrano pozycje: %{count}"
|
|
106463
|
+
},
|
|
106407
106464
|
success: "Pozycje zosta\u0142y pomy\u015Blnie zaktualizowane.",
|
|
106408
106465
|
one: "pozycja",
|
|
106409
106466
|
many: "pozycje"
|
|
@@ -106741,6 +106798,11 @@ var pt_BR_default = {
|
|
|
106741
106798
|
error: "Sentimos muito, mas n\xE3o foi poss\xEDvel atualizar os itens. Tente novamente.",
|
|
106742
106799
|
placeholderForField: "Digite %{fieldName}",
|
|
106743
106800
|
selection: "%{count} %{number} selecionado",
|
|
106801
|
+
selection_count: {
|
|
106802
|
+
zero: "%{count} itens selecionados",
|
|
106803
|
+
one: "%{count} item selecionado",
|
|
106804
|
+
other: "%{count} itens selecionados"
|
|
106805
|
+
},
|
|
106744
106806
|
success: "Os itens foram atualizados com sucesso.",
|
|
106745
106807
|
one: "item",
|
|
106746
106808
|
many: "itens"
|
|
@@ -106907,6 +106969,11 @@ var th_TH_default = {
|
|
|
106907
106969
|
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.",
|
|
106908
106970
|
placeholderForField: "\u0E1B\u0E49\u0E2D\u0E19 %{fieldName}",
|
|
106909
106971
|
selection: "%{count} %{number} \u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01",
|
|
106972
|
+
selection_count: {
|
|
106973
|
+
zero: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
106974
|
+
one: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
106975
|
+
other: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27 %{count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
|
|
106976
|
+
},
|
|
106910
106977
|
success: "\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08\u0E41\u0E25\u0E49\u0E27",
|
|
106911
106978
|
one: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",
|
|
106912
106979
|
many: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"
|
|
@@ -107073,6 +107140,11 @@ var zh_SG_default = {
|
|
|
107073
107140
|
error: "\u62B1\u6B49\uFF0C\u65E0\u6CD5\u66F4\u65B0\u6B64\u9879\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
107074
107141
|
placeholderForField: "\u8F93\u5165 %{fieldName}",
|
|
107075
107142
|
selection: "\u5DF2\u9009\u62E9 %{count} %{number}",
|
|
107143
|
+
selection_count: {
|
|
107144
|
+
zero: "\u5DF2\u9009\u62E9 %{count} \u9879",
|
|
107145
|
+
one: "\u5DF2\u9009\u62E9 %{count} \u9879",
|
|
107146
|
+
other: "\u5DF2\u9009\u62E9 %{count} \u9879"
|
|
107147
|
+
},
|
|
107076
107148
|
success: "\u5DF2\u6210\u529F\u66F4\u65B0\u8FD9\u4E9B\u9879\u3002",
|
|
107077
107149
|
one: "\u9879",
|
|
107078
107150
|
many: "\u9879"
|
|
@@ -108206,7 +108278,8 @@ var DataTable = ({
|
|
|
108206
108278
|
showExpandCollapseAllToggle,
|
|
108207
108279
|
translations: translations2 = {},
|
|
108208
108280
|
enableCellTextSelection,
|
|
108209
|
-
localStoragePersistenceKey
|
|
108281
|
+
localStoragePersistenceKey,
|
|
108282
|
+
enableCDN
|
|
108210
108283
|
}) => {
|
|
108211
108284
|
const initialTableConfig = localStoragePersistenceKey && webSdkStorage.storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
|
|
108212
108285
|
const onServerSideDataRequestRef = React80__default.default.useRef(onServerSideDataRequest);
|
|
@@ -108218,14 +108291,28 @@ var DataTable = ({
|
|
|
108218
108291
|
);
|
|
108219
108292
|
const contextPanel = useContextPanel();
|
|
108220
108293
|
const clientI18n = coreReact.useI18nContext();
|
|
108294
|
+
const isCDNEnabled = cdnTranslations.isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
108295
|
+
const cdnTranslations$1 = cdnTranslations.useRequestTranslations(
|
|
108296
|
+
{
|
|
108297
|
+
locale: clientI18n.locale,
|
|
108298
|
+
type: "file",
|
|
108299
|
+
absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}.json`
|
|
108300
|
+
},
|
|
108301
|
+
{ en: translations.en, pseudo: translations.pseudo },
|
|
108302
|
+
{
|
|
108303
|
+
oldTranslations: translations,
|
|
108304
|
+
enableCDN: isCDNEnabled
|
|
108305
|
+
}
|
|
108306
|
+
);
|
|
108221
108307
|
const internalI18n = coreReact.useI18n({
|
|
108222
|
-
|
|
108308
|
+
locale: clientI18n.locale,
|
|
108223
108309
|
translations: ramda.mergeDeepLeft(
|
|
108224
108310
|
ramda.mergeDeepLeft(clientI18n.translations, {
|
|
108225
108311
|
[clientI18n.locale]: translations2
|
|
108226
108312
|
}),
|
|
108227
|
-
translations
|
|
108228
|
-
)
|
|
108313
|
+
cdnTranslations$1.translations
|
|
108314
|
+
),
|
|
108315
|
+
enableCDN: isCDNEnabled
|
|
108229
108316
|
});
|
|
108230
108317
|
const rowSelectionRef = React80__default.default.useRef({
|
|
108231
108318
|
affectedRows: {},
|
|
@@ -109355,7 +109442,10 @@ var Table = (props) => {
|
|
|
109355
109442
|
groupDefaultExpanded: props.groupsAlwaysExpanded ? -1 : props.groupDefaultExpanded,
|
|
109356
109443
|
groupIncludeFooter: !onSSDR && props.groupIncludeFooter === void 0 ? true : props.groupIncludeFooter,
|
|
109357
109444
|
getGroupRowAgg: props.getGroupRowAgg ? getGroupRowAgg : void 0,
|
|
109358
|
-
groupSelectsChildren:
|
|
109445
|
+
groupSelectsChildren: (
|
|
109446
|
+
// Always true for client side, defaults to true for server side
|
|
109447
|
+
internalTableContext.totalRowCount > 0 && props.groupSelectsChildren !== false || !onSSDR
|
|
109448
|
+
),
|
|
109359
109449
|
groupSelectsFiltered: true,
|
|
109360
109450
|
headerHeight: props.headerHeight,
|
|
109361
109451
|
icons: tableIcons,
|
|
@@ -111488,7 +111578,8 @@ var ClientSideDataTable = ({
|
|
|
111488
111578
|
onTableConfigChange,
|
|
111489
111579
|
translations: translations2 = {},
|
|
111490
111580
|
enableCellTextSelection,
|
|
111491
|
-
localStoragePersistenceKey
|
|
111581
|
+
localStoragePersistenceKey,
|
|
111582
|
+
enableCDN
|
|
111492
111583
|
}) => {
|
|
111493
111584
|
return /* @__PURE__ */ React80__default.default.createElement(
|
|
111494
111585
|
DataTable,
|
|
@@ -111506,7 +111597,8 @@ var ClientSideDataTable = ({
|
|
|
111506
111597
|
translations: translations2,
|
|
111507
111598
|
localStoragePersistenceKey,
|
|
111508
111599
|
customBulkEditorFields,
|
|
111509
|
-
enableCellTextSelection
|
|
111600
|
+
enableCellTextSelection,
|
|
111601
|
+
enableCDN
|
|
111510
111602
|
},
|
|
111511
111603
|
children
|
|
111512
111604
|
);
|
|
@@ -115897,7 +115989,8 @@ var ServerSideDataTable = ({
|
|
|
115897
115989
|
enableCellTextSelection,
|
|
115898
115990
|
showExpandCollapseAllToggle,
|
|
115899
115991
|
translations: translations2 = {},
|
|
115900
|
-
localStoragePersistenceKey
|
|
115992
|
+
localStoragePersistenceKey,
|
|
115993
|
+
enableCDN
|
|
115901
115994
|
}) => {
|
|
115902
115995
|
return /* @__PURE__ */ React80__default.default.createElement(
|
|
115903
115996
|
DataTable,
|
|
@@ -115916,7 +116009,8 @@ var ServerSideDataTable = ({
|
|
|
115916
116009
|
translations: translations2,
|
|
115917
116010
|
customBulkEditorFields,
|
|
115918
116011
|
enableCellTextSelection,
|
|
115919
|
-
localStoragePersistenceKey
|
|
116012
|
+
localStoragePersistenceKey,
|
|
116013
|
+
enableCDN
|
|
115920
116014
|
},
|
|
115921
116015
|
children
|
|
115922
116016
|
);
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -1151,6 +1151,10 @@ interface DataTableProps {
|
|
|
1151
1151
|
showExpandCollapseAllToggle?: boolean;
|
|
1152
1152
|
translations?: DataTableTranslations;
|
|
1153
1153
|
enableCellTextSelection?: boolean;
|
|
1154
|
+
/**
|
|
1155
|
+
* Whether to pull data-table translations from the CDN or not, by default it follows the value passed down through the parent I18nProvider.
|
|
1156
|
+
*/
|
|
1157
|
+
enableCDN?: boolean;
|
|
1154
1158
|
}
|
|
1155
1159
|
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
|
|
1156
1160
|
}
|
|
@@ -1443,7 +1447,7 @@ interface BulkActionProps {
|
|
|
1443
1447
|
style?: React__default.CSSProperties;
|
|
1444
1448
|
}
|
|
1445
1449
|
|
|
1446
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1450
|
+
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1447
1451
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1448
1452
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1449
1453
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1480,7 +1484,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1480
1484
|
|
|
1481
1485
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1482
1486
|
|
|
1483
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1487
|
+
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1484
1488
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1485
1489
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1486
1490
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1151,6 +1151,10 @@ interface DataTableProps {
|
|
|
1151
1151
|
showExpandCollapseAllToggle?: boolean;
|
|
1152
1152
|
translations?: DataTableTranslations;
|
|
1153
1153
|
enableCellTextSelection?: boolean;
|
|
1154
|
+
/**
|
|
1155
|
+
* Whether to pull data-table translations from the CDN or not, by default it follows the value passed down through the parent I18nProvider.
|
|
1156
|
+
*/
|
|
1157
|
+
enableCDN?: boolean;
|
|
1154
1158
|
}
|
|
1155
1159
|
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
|
|
1156
1160
|
}
|
|
@@ -1443,7 +1447,7 @@ interface BulkActionProps {
|
|
|
1443
1447
|
style?: React__default.CSSProperties;
|
|
1444
1448
|
}
|
|
1445
1449
|
|
|
1446
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1450
|
+
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1447
1451
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1448
1452
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1449
1453
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1480,7 +1484,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1480
1484
|
|
|
1481
1485
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1482
1486
|
|
|
1483
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1487
|
+
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1484
1488
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1485
1489
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1486
1490
|
ConfigPanelButton: React__default.FC<{}>;
|