@procore/data-table 14.28.0-cdn.3 → 14.28.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 +5 -4
- package/dist/legacy/index.cjs +24 -81
- package/dist/legacy/index.d.cts +2 -3
- package/dist/legacy/index.d.ts +2 -3
- package/dist/legacy/index.js +24 -81
- package/dist/modern/index.cjs +24 -81
- package/dist/modern/index.d.cts +2 -3
- package/dist/modern/index.d.ts +2 -3
- package/dist/modern/index.js +24 -81
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 14.28.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- e6586a3: If a row is not selectable, make isRowSelected = false
|
|
8
|
+
- 92682a0: Fix: ensure "Select All" checkbox stays visible and functional when the first column is hidden
|
|
7
9
|
- 3f72970: Add placeholder implementation for MultiSelectCellRenderer component
|
|
8
|
-
-
|
|
10
|
+
- 89c28a0: Prevent infinite requests when getRowId returns duplicate IDs in ServerSideDataTable.
|
|
9
11
|
|
|
10
12
|
### Patch Changes
|
|
11
13
|
|
|
12
|
-
-
|
|
13
|
-
- @procore/core-react@12.21.0-cdn.0
|
|
14
|
+
- 5d92cf2: Fix Misalignment in Table Headers with Nested Column Definitions
|
|
14
15
|
|
|
15
16
|
## 14.27.1
|
|
16
17
|
|
package/dist/legacy/index.cjs
CHANGED
|
@@ -12,7 +12,6 @@ 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');
|
|
16
15
|
var toastAlert = require('@procore/toast-alert');
|
|
17
16
|
var ReactDOM = require('react-dom');
|
|
18
17
|
var server = require('react-dom/server');
|
|
@@ -57318,22 +57317,26 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57318
57317
|
}, []);
|
|
57319
57318
|
React80__default.default.useEffect(() => {
|
|
57320
57319
|
function calculatePosition() {
|
|
57321
|
-
const
|
|
57322
|
-
if (!(
|
|
57320
|
+
const visibleColumns = props.columnApi.getAllDisplayedColumns();
|
|
57321
|
+
if (!(visibleColumns == null ? void 0 : visibleColumns.length))
|
|
57323
57322
|
return;
|
|
57324
|
-
|
|
57325
|
-
|
|
57326
|
-
setIsFirstColumn(true);
|
|
57327
|
-
} else {
|
|
57328
|
-
setIsFirstColumn(false);
|
|
57329
|
-
}
|
|
57323
|
+
const isCurrentFirst = visibleColumns[0].getColId() === colId;
|
|
57324
|
+
setIsFirstColumn(isCurrentFirst);
|
|
57330
57325
|
}
|
|
57331
57326
|
props.api.addEventListener("columnMoved", calculatePosition);
|
|
57327
|
+
props.api.addEventListener("columnPinned", calculatePosition);
|
|
57328
|
+
props.api.addEventListener("columnVisible", calculatePosition);
|
|
57332
57329
|
calculatePosition();
|
|
57333
57330
|
return () => {
|
|
57334
57331
|
removeEventListenerFromGrid("columnMoved", calculatePosition, props.api);
|
|
57332
|
+
removeEventListenerFromGrid("columnPinned", calculatePosition, props.api);
|
|
57333
|
+
removeEventListenerFromGrid(
|
|
57334
|
+
"columnVisible",
|
|
57335
|
+
calculatePosition,
|
|
57336
|
+
props.api
|
|
57337
|
+
);
|
|
57335
57338
|
};
|
|
57336
|
-
}, []);
|
|
57339
|
+
}, [colId, props.api]);
|
|
57337
57340
|
const onSortToggled = (event) => {
|
|
57338
57341
|
var _a2, _b, _c;
|
|
57339
57342
|
let currentSort = null;
|
|
@@ -57551,7 +57554,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57551
57554
|
}
|
|
57552
57555
|
function updateSelectAllCheckbox(e) {
|
|
57553
57556
|
var _a2;
|
|
57554
|
-
if (e.source === "uiSelectAll") {
|
|
57557
|
+
if (e && e.source === "uiSelectAll") {
|
|
57555
57558
|
return;
|
|
57556
57559
|
}
|
|
57557
57560
|
const selectionState = props.api.getServerSideSelectionState();
|
|
@@ -57579,6 +57582,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57579
57582
|
}
|
|
57580
57583
|
props.api.addEventListener(selectionChanged, updateSelectAllCheckbox);
|
|
57581
57584
|
props.api.addEventListener(paginationChanged, updateSelectAllCheckbox);
|
|
57585
|
+
updateSelectAllCheckbox();
|
|
57582
57586
|
return () => {
|
|
57583
57587
|
removeEventListenerFromGrid(
|
|
57584
57588
|
selectionChanged,
|
|
@@ -105775,9 +105779,6 @@ var de_DE_default = {
|
|
|
105775
105779
|
selectCell: {
|
|
105776
105780
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105777
105781
|
},
|
|
105778
|
-
multiSelectCell: {
|
|
105779
|
-
placeholder: "Werte ausw\xE4hlen"
|
|
105780
|
-
},
|
|
105781
105782
|
booleanCell: {
|
|
105782
105783
|
options: {
|
|
105783
105784
|
yes: "Ja",
|
|
@@ -105941,9 +105942,6 @@ var en_AU_default = {
|
|
|
105941
105942
|
selectCell: {
|
|
105942
105943
|
placeholder: "Select {{label}}"
|
|
105943
105944
|
},
|
|
105944
|
-
multiSelectCell: {
|
|
105945
|
-
placeholder: "Select values"
|
|
105946
|
-
},
|
|
105947
105945
|
booleanCell: {
|
|
105948
105946
|
options: {
|
|
105949
105947
|
yes: "Yes",
|
|
@@ -106107,9 +106105,6 @@ var en_CA_default = {
|
|
|
106107
106105
|
selectCell: {
|
|
106108
106106
|
placeholder: "Select {{label}}"
|
|
106109
106107
|
},
|
|
106110
|
-
multiSelectCell: {
|
|
106111
|
-
placeholder: "Select values"
|
|
106112
|
-
},
|
|
106113
106108
|
booleanCell: {
|
|
106114
106109
|
options: {
|
|
106115
106110
|
yes: "Yes",
|
|
@@ -106273,9 +106268,6 @@ var en_GB_default = {
|
|
|
106273
106268
|
selectCell: {
|
|
106274
106269
|
placeholder: "Select {{label}}"
|
|
106275
106270
|
},
|
|
106276
|
-
multiSelectCell: {
|
|
106277
|
-
placeholder: "Select values"
|
|
106278
|
-
},
|
|
106279
106271
|
booleanCell: {
|
|
106280
106272
|
options: {
|
|
106281
106273
|
yes: "Yes",
|
|
@@ -106605,9 +106597,6 @@ var es_ES_default = {
|
|
|
106605
106597
|
selectCell: {
|
|
106606
106598
|
placeholder: "Seleccionar {{label}}"
|
|
106607
106599
|
},
|
|
106608
|
-
multiSelectCell: {
|
|
106609
|
-
placeholder: "Seleccionar valores"
|
|
106610
|
-
},
|
|
106611
106600
|
booleanCell: {
|
|
106612
106601
|
options: {
|
|
106613
106602
|
yes: "S\xED",
|
|
@@ -106645,7 +106634,7 @@ var es_default = {
|
|
|
106645
106634
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
106646
106635
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
106647
106636
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
|
|
106648
|
-
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a
|
|
106637
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
106649
106638
|
featureFilter: "Filtro",
|
|
106650
106639
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
106651
106640
|
featureGroupBy: "Agrupar por",
|
|
@@ -106771,9 +106760,6 @@ var es_default = {
|
|
|
106771
106760
|
selectCell: {
|
|
106772
106761
|
placeholder: "Seleccionar {{label}}"
|
|
106773
106762
|
},
|
|
106774
|
-
multiSelectCell: {
|
|
106775
|
-
placeholder: "Seleccionar valores"
|
|
106776
|
-
},
|
|
106777
106763
|
booleanCell: {
|
|
106778
106764
|
options: {
|
|
106779
106765
|
yes: "S\xED",
|
|
@@ -106937,9 +106923,6 @@ var fr_CA_default = {
|
|
|
106937
106923
|
selectCell: {
|
|
106938
106924
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106939
106925
|
},
|
|
106940
|
-
multiSelectCell: {
|
|
106941
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
106942
|
-
},
|
|
106943
106926
|
booleanCell: {
|
|
106944
106927
|
options: {
|
|
106945
106928
|
yes: "Oui",
|
|
@@ -107103,9 +107086,6 @@ var fr_FR_default = {
|
|
|
107103
107086
|
selectCell: {
|
|
107104
107087
|
placeholder: "S\xE9lectionner {{label}}"
|
|
107105
107088
|
},
|
|
107106
|
-
multiSelectCell: {
|
|
107107
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
107108
|
-
},
|
|
107109
107089
|
booleanCell: {
|
|
107110
107090
|
options: {
|
|
107111
107091
|
yes: "Oui",
|
|
@@ -107269,9 +107249,6 @@ var is_IS_default = {
|
|
|
107269
107249
|
selectCell: {
|
|
107270
107250
|
placeholder: "Veldu {{label}}"
|
|
107271
107251
|
},
|
|
107272
|
-
multiSelectCell: {
|
|
107273
|
-
placeholder: "Veldu Gildi"
|
|
107274
|
-
},
|
|
107275
107252
|
booleanCell: {
|
|
107276
107253
|
options: {
|
|
107277
107254
|
yes: "J\xE1",
|
|
@@ -107435,9 +107412,6 @@ var ja_JP_default = {
|
|
|
107435
107412
|
selectCell: {
|
|
107436
107413
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107437
107414
|
},
|
|
107438
|
-
multiSelectCell: {
|
|
107439
|
-
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107440
|
-
},
|
|
107441
107415
|
booleanCell: {
|
|
107442
107416
|
options: {
|
|
107443
107417
|
yes: "\u306F\u3044",
|
|
@@ -107601,9 +107575,6 @@ var pl_PL_default = {
|
|
|
107601
107575
|
selectCell: {
|
|
107602
107576
|
placeholder: "Wybierz {{label}}"
|
|
107603
107577
|
},
|
|
107604
|
-
multiSelectCell: {
|
|
107605
|
-
placeholder: "Wybierz warto\u015Bci"
|
|
107606
|
-
},
|
|
107607
107578
|
booleanCell: {
|
|
107608
107579
|
options: {
|
|
107609
107580
|
yes: "Tak",
|
|
@@ -107933,9 +107904,6 @@ var pt_BR_default = {
|
|
|
107933
107904
|
selectCell: {
|
|
107934
107905
|
placeholder: "Selecionar {{label}}"
|
|
107935
107906
|
},
|
|
107936
|
-
multiSelectCell: {
|
|
107937
|
-
placeholder: "Selecionar Valores"
|
|
107938
|
-
},
|
|
107939
107907
|
booleanCell: {
|
|
107940
107908
|
options: {
|
|
107941
107909
|
yes: "Sim",
|
|
@@ -108099,9 +108067,6 @@ var th_TH_default = {
|
|
|
108099
108067
|
selectCell: {
|
|
108100
108068
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
108101
108069
|
},
|
|
108102
|
-
multiSelectCell: {
|
|
108103
|
-
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
108104
|
-
},
|
|
108105
108070
|
booleanCell: {
|
|
108106
108071
|
options: {
|
|
108107
108072
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108265,9 +108230,6 @@ var zh_SG_default = {
|
|
|
108265
108230
|
selectCell: {
|
|
108266
108231
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108267
108232
|
},
|
|
108268
|
-
multiSelectCell: {
|
|
108269
|
-
placeholder: "\u9009\u62E9\u503C"
|
|
108270
|
-
},
|
|
108271
108233
|
booleanCell: {
|
|
108272
108234
|
options: {
|
|
108273
108235
|
yes: "\u662F",
|
|
@@ -109290,8 +109252,7 @@ var DataTable = ({
|
|
|
109290
109252
|
showExpandCollapseAllToggle,
|
|
109291
109253
|
translations: translations2 = {},
|
|
109292
109254
|
enableCellTextSelection,
|
|
109293
|
-
localStoragePersistenceKey
|
|
109294
|
-
enableCDN
|
|
109255
|
+
localStoragePersistenceKey
|
|
109295
109256
|
}) => {
|
|
109296
109257
|
const initialTableConfig = localStoragePersistenceKey && webSdkStorage.storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
|
|
109297
109258
|
const onServerSideDataRequestRef = React80__default.default.useRef(onServerSideDataRequest);
|
|
@@ -109303,28 +109264,14 @@ var DataTable = ({
|
|
|
109303
109264
|
);
|
|
109304
109265
|
const contextPanel = useContextPanel();
|
|
109305
109266
|
const clientI18n = coreReact.useI18nContext();
|
|
109306
|
-
const isCDNEnabled = cdnTranslations.isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
109307
|
-
const cdnTranslations$1 = cdnTranslations.useRequestTranslations(
|
|
109308
|
-
{
|
|
109309
|
-
locale: clientI18n.locale,
|
|
109310
|
-
type: "file",
|
|
109311
|
-
absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}`
|
|
109312
|
-
},
|
|
109313
|
-
{ en: translations.en, pseudo: translations.pseudo },
|
|
109314
|
-
{
|
|
109315
|
-
oldTranslations: translations,
|
|
109316
|
-
enableCDN: isCDNEnabled
|
|
109317
|
-
}
|
|
109318
|
-
);
|
|
109319
109267
|
const internalI18n = coreReact.useI18n({
|
|
109320
|
-
|
|
109268
|
+
...clientI18n,
|
|
109321
109269
|
translations: ramda.mergeDeepLeft(
|
|
109322
109270
|
ramda.mergeDeepLeft(clientI18n.translations, {
|
|
109323
109271
|
[clientI18n.locale]: translations2
|
|
109324
109272
|
}),
|
|
109325
|
-
|
|
109326
|
-
)
|
|
109327
|
-
enableCDN: isCDNEnabled
|
|
109273
|
+
translations
|
|
109274
|
+
)
|
|
109328
109275
|
});
|
|
109329
109276
|
const rowSelectionRef = React80__default.default.useRef({
|
|
109330
109277
|
affectedRows: {},
|
|
@@ -112580,8 +112527,7 @@ var ClientSideDataTable = ({
|
|
|
112580
112527
|
onTableConfigChange,
|
|
112581
112528
|
translations: translations2 = {},
|
|
112582
112529
|
enableCellTextSelection,
|
|
112583
|
-
localStoragePersistenceKey
|
|
112584
|
-
enableCDN
|
|
112530
|
+
localStoragePersistenceKey
|
|
112585
112531
|
}) => {
|
|
112586
112532
|
return /* @__PURE__ */ React80__default.default.createElement(
|
|
112587
112533
|
DataTable,
|
|
@@ -112599,8 +112545,7 @@ var ClientSideDataTable = ({
|
|
|
112599
112545
|
translations: translations2,
|
|
112600
112546
|
localStoragePersistenceKey,
|
|
112601
112547
|
customBulkEditorFields,
|
|
112602
|
-
enableCellTextSelection
|
|
112603
|
-
enableCDN
|
|
112548
|
+
enableCellTextSelection
|
|
112604
112549
|
},
|
|
112605
112550
|
children
|
|
112606
112551
|
);
|
|
@@ -117061,8 +117006,7 @@ var ServerSideDataTable = ({
|
|
|
117061
117006
|
enableCellTextSelection,
|
|
117062
117007
|
showExpandCollapseAllToggle,
|
|
117063
117008
|
translations: translations2 = {},
|
|
117064
|
-
localStoragePersistenceKey
|
|
117065
|
-
enableCDN
|
|
117009
|
+
localStoragePersistenceKey
|
|
117066
117010
|
}) => {
|
|
117067
117011
|
return /* @__PURE__ */ React80__default.default.createElement(
|
|
117068
117012
|
DataTable,
|
|
@@ -117081,8 +117025,7 @@ var ServerSideDataTable = ({
|
|
|
117081
117025
|
translations: translations2,
|
|
117082
117026
|
customBulkEditorFields,
|
|
117083
117027
|
enableCellTextSelection,
|
|
117084
|
-
localStoragePersistenceKey
|
|
117085
|
-
enableCDN
|
|
117028
|
+
localStoragePersistenceKey
|
|
117086
117029
|
},
|
|
117087
117030
|
children
|
|
117088
117031
|
);
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -1148,7 +1148,6 @@ interface DataTableProps {
|
|
|
1148
1148
|
showExpandCollapseAllToggle?: boolean;
|
|
1149
1149
|
translations?: DataTableTranslations;
|
|
1150
1150
|
enableCellTextSelection?: boolean;
|
|
1151
|
-
enableCDN?: boolean;
|
|
1152
1151
|
}
|
|
1153
1152
|
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
|
|
1154
1153
|
}
|
|
@@ -1439,7 +1438,7 @@ interface BulkActionProps {
|
|
|
1439
1438
|
style?: React__default.CSSProperties;
|
|
1440
1439
|
}
|
|
1441
1440
|
|
|
1442
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey,
|
|
1441
|
+
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) & {
|
|
1443
1442
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1444
1443
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1445
1444
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1476,7 +1475,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1476
1475
|
|
|
1477
1476
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1478
1477
|
|
|
1479
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey,
|
|
1478
|
+
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) & {
|
|
1480
1479
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1481
1480
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1482
1481
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1148,7 +1148,6 @@ interface DataTableProps {
|
|
|
1148
1148
|
showExpandCollapseAllToggle?: boolean;
|
|
1149
1149
|
translations?: DataTableTranslations;
|
|
1150
1150
|
enableCellTextSelection?: boolean;
|
|
1151
|
-
enableCDN?: boolean;
|
|
1152
1151
|
}
|
|
1153
1152
|
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
|
|
1154
1153
|
}
|
|
@@ -1439,7 +1438,7 @@ interface BulkActionProps {
|
|
|
1439
1438
|
style?: React__default.CSSProperties;
|
|
1440
1439
|
}
|
|
1441
1440
|
|
|
1442
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey,
|
|
1441
|
+
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) & {
|
|
1443
1442
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1444
1443
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1445
1444
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1476,7 +1475,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1476
1475
|
|
|
1477
1476
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1478
1477
|
|
|
1479
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey,
|
|
1478
|
+
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) & {
|
|
1480
1479
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1481
1480
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1482
1481
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/legacy/index.js
CHANGED
|
@@ -10,7 +10,6 @@ import { formatNumber, formatCurrency, formatPercentage } from '@procore/labs-fi
|
|
|
10
10
|
import styled4, { css as css$1 } from 'styled-components';
|
|
11
11
|
import { format } from '@procore/labs-financials-utils/dist/format';
|
|
12
12
|
import { detectPrng, factory } from 'ulid';
|
|
13
|
-
import { isCDNFeatureFlagEnabled, useRequestTranslations } from '@procore/cdn-translations';
|
|
14
13
|
import { useToastAlertContext, ToastAlertProvider } from '@procore/toast-alert';
|
|
15
14
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
16
15
|
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
|
|
@@ -57305,22 +57304,26 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57305
57304
|
}, []);
|
|
57306
57305
|
React80.useEffect(() => {
|
|
57307
57306
|
function calculatePosition() {
|
|
57308
|
-
const
|
|
57309
|
-
if (!(
|
|
57307
|
+
const visibleColumns = props.columnApi.getAllDisplayedColumns();
|
|
57308
|
+
if (!(visibleColumns == null ? void 0 : visibleColumns.length))
|
|
57310
57309
|
return;
|
|
57311
|
-
|
|
57312
|
-
|
|
57313
|
-
setIsFirstColumn(true);
|
|
57314
|
-
} else {
|
|
57315
|
-
setIsFirstColumn(false);
|
|
57316
|
-
}
|
|
57310
|
+
const isCurrentFirst = visibleColumns[0].getColId() === colId;
|
|
57311
|
+
setIsFirstColumn(isCurrentFirst);
|
|
57317
57312
|
}
|
|
57318
57313
|
props.api.addEventListener("columnMoved", calculatePosition);
|
|
57314
|
+
props.api.addEventListener("columnPinned", calculatePosition);
|
|
57315
|
+
props.api.addEventListener("columnVisible", calculatePosition);
|
|
57319
57316
|
calculatePosition();
|
|
57320
57317
|
return () => {
|
|
57321
57318
|
removeEventListenerFromGrid("columnMoved", calculatePosition, props.api);
|
|
57319
|
+
removeEventListenerFromGrid("columnPinned", calculatePosition, props.api);
|
|
57320
|
+
removeEventListenerFromGrid(
|
|
57321
|
+
"columnVisible",
|
|
57322
|
+
calculatePosition,
|
|
57323
|
+
props.api
|
|
57324
|
+
);
|
|
57322
57325
|
};
|
|
57323
|
-
}, []);
|
|
57326
|
+
}, [colId, props.api]);
|
|
57324
57327
|
const onSortToggled = (event) => {
|
|
57325
57328
|
var _a2, _b, _c;
|
|
57326
57329
|
let currentSort = null;
|
|
@@ -57538,7 +57541,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57538
57541
|
}
|
|
57539
57542
|
function updateSelectAllCheckbox(e) {
|
|
57540
57543
|
var _a2;
|
|
57541
|
-
if (e.source === "uiSelectAll") {
|
|
57544
|
+
if (e && e.source === "uiSelectAll") {
|
|
57542
57545
|
return;
|
|
57543
57546
|
}
|
|
57544
57547
|
const selectionState = props.api.getServerSideSelectionState();
|
|
@@ -57566,6 +57569,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57566
57569
|
}
|
|
57567
57570
|
props.api.addEventListener(selectionChanged, updateSelectAllCheckbox);
|
|
57568
57571
|
props.api.addEventListener(paginationChanged, updateSelectAllCheckbox);
|
|
57572
|
+
updateSelectAllCheckbox();
|
|
57569
57573
|
return () => {
|
|
57570
57574
|
removeEventListenerFromGrid(
|
|
57571
57575
|
selectionChanged,
|
|
@@ -105762,9 +105766,6 @@ var de_DE_default = {
|
|
|
105762
105766
|
selectCell: {
|
|
105763
105767
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105764
105768
|
},
|
|
105765
|
-
multiSelectCell: {
|
|
105766
|
-
placeholder: "Werte ausw\xE4hlen"
|
|
105767
|
-
},
|
|
105768
105769
|
booleanCell: {
|
|
105769
105770
|
options: {
|
|
105770
105771
|
yes: "Ja",
|
|
@@ -105928,9 +105929,6 @@ var en_AU_default = {
|
|
|
105928
105929
|
selectCell: {
|
|
105929
105930
|
placeholder: "Select {{label}}"
|
|
105930
105931
|
},
|
|
105931
|
-
multiSelectCell: {
|
|
105932
|
-
placeholder: "Select values"
|
|
105933
|
-
},
|
|
105934
105932
|
booleanCell: {
|
|
105935
105933
|
options: {
|
|
105936
105934
|
yes: "Yes",
|
|
@@ -106094,9 +106092,6 @@ var en_CA_default = {
|
|
|
106094
106092
|
selectCell: {
|
|
106095
106093
|
placeholder: "Select {{label}}"
|
|
106096
106094
|
},
|
|
106097
|
-
multiSelectCell: {
|
|
106098
|
-
placeholder: "Select values"
|
|
106099
|
-
},
|
|
106100
106095
|
booleanCell: {
|
|
106101
106096
|
options: {
|
|
106102
106097
|
yes: "Yes",
|
|
@@ -106260,9 +106255,6 @@ var en_GB_default = {
|
|
|
106260
106255
|
selectCell: {
|
|
106261
106256
|
placeholder: "Select {{label}}"
|
|
106262
106257
|
},
|
|
106263
|
-
multiSelectCell: {
|
|
106264
|
-
placeholder: "Select values"
|
|
106265
|
-
},
|
|
106266
106258
|
booleanCell: {
|
|
106267
106259
|
options: {
|
|
106268
106260
|
yes: "Yes",
|
|
@@ -106592,9 +106584,6 @@ var es_ES_default = {
|
|
|
106592
106584
|
selectCell: {
|
|
106593
106585
|
placeholder: "Seleccionar {{label}}"
|
|
106594
106586
|
},
|
|
106595
|
-
multiSelectCell: {
|
|
106596
|
-
placeholder: "Seleccionar valores"
|
|
106597
|
-
},
|
|
106598
106587
|
booleanCell: {
|
|
106599
106588
|
options: {
|
|
106600
106589
|
yes: "S\xED",
|
|
@@ -106632,7 +106621,7 @@ var es_default = {
|
|
|
106632
106621
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
106633
106622
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
106634
106623
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
|
|
106635
|
-
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a
|
|
106624
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
106636
106625
|
featureFilter: "Filtro",
|
|
106637
106626
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
106638
106627
|
featureGroupBy: "Agrupar por",
|
|
@@ -106758,9 +106747,6 @@ var es_default = {
|
|
|
106758
106747
|
selectCell: {
|
|
106759
106748
|
placeholder: "Seleccionar {{label}}"
|
|
106760
106749
|
},
|
|
106761
|
-
multiSelectCell: {
|
|
106762
|
-
placeholder: "Seleccionar valores"
|
|
106763
|
-
},
|
|
106764
106750
|
booleanCell: {
|
|
106765
106751
|
options: {
|
|
106766
106752
|
yes: "S\xED",
|
|
@@ -106924,9 +106910,6 @@ var fr_CA_default = {
|
|
|
106924
106910
|
selectCell: {
|
|
106925
106911
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106926
106912
|
},
|
|
106927
|
-
multiSelectCell: {
|
|
106928
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
106929
|
-
},
|
|
106930
106913
|
booleanCell: {
|
|
106931
106914
|
options: {
|
|
106932
106915
|
yes: "Oui",
|
|
@@ -107090,9 +107073,6 @@ var fr_FR_default = {
|
|
|
107090
107073
|
selectCell: {
|
|
107091
107074
|
placeholder: "S\xE9lectionner {{label}}"
|
|
107092
107075
|
},
|
|
107093
|
-
multiSelectCell: {
|
|
107094
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
107095
|
-
},
|
|
107096
107076
|
booleanCell: {
|
|
107097
107077
|
options: {
|
|
107098
107078
|
yes: "Oui",
|
|
@@ -107256,9 +107236,6 @@ var is_IS_default = {
|
|
|
107256
107236
|
selectCell: {
|
|
107257
107237
|
placeholder: "Veldu {{label}}"
|
|
107258
107238
|
},
|
|
107259
|
-
multiSelectCell: {
|
|
107260
|
-
placeholder: "Veldu Gildi"
|
|
107261
|
-
},
|
|
107262
107239
|
booleanCell: {
|
|
107263
107240
|
options: {
|
|
107264
107241
|
yes: "J\xE1",
|
|
@@ -107422,9 +107399,6 @@ var ja_JP_default = {
|
|
|
107422
107399
|
selectCell: {
|
|
107423
107400
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107424
107401
|
},
|
|
107425
|
-
multiSelectCell: {
|
|
107426
|
-
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107427
|
-
},
|
|
107428
107402
|
booleanCell: {
|
|
107429
107403
|
options: {
|
|
107430
107404
|
yes: "\u306F\u3044",
|
|
@@ -107588,9 +107562,6 @@ var pl_PL_default = {
|
|
|
107588
107562
|
selectCell: {
|
|
107589
107563
|
placeholder: "Wybierz {{label}}"
|
|
107590
107564
|
},
|
|
107591
|
-
multiSelectCell: {
|
|
107592
|
-
placeholder: "Wybierz warto\u015Bci"
|
|
107593
|
-
},
|
|
107594
107565
|
booleanCell: {
|
|
107595
107566
|
options: {
|
|
107596
107567
|
yes: "Tak",
|
|
@@ -107920,9 +107891,6 @@ var pt_BR_default = {
|
|
|
107920
107891
|
selectCell: {
|
|
107921
107892
|
placeholder: "Selecionar {{label}}"
|
|
107922
107893
|
},
|
|
107923
|
-
multiSelectCell: {
|
|
107924
|
-
placeholder: "Selecionar Valores"
|
|
107925
|
-
},
|
|
107926
107894
|
booleanCell: {
|
|
107927
107895
|
options: {
|
|
107928
107896
|
yes: "Sim",
|
|
@@ -108086,9 +108054,6 @@ var th_TH_default = {
|
|
|
108086
108054
|
selectCell: {
|
|
108087
108055
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
108088
108056
|
},
|
|
108089
|
-
multiSelectCell: {
|
|
108090
|
-
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
108091
|
-
},
|
|
108092
108057
|
booleanCell: {
|
|
108093
108058
|
options: {
|
|
108094
108059
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108252,9 +108217,6 @@ var zh_SG_default = {
|
|
|
108252
108217
|
selectCell: {
|
|
108253
108218
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108254
108219
|
},
|
|
108255
|
-
multiSelectCell: {
|
|
108256
|
-
placeholder: "\u9009\u62E9\u503C"
|
|
108257
|
-
},
|
|
108258
108220
|
booleanCell: {
|
|
108259
108221
|
options: {
|
|
108260
108222
|
yes: "\u662F",
|
|
@@ -109277,8 +109239,7 @@ var DataTable = ({
|
|
|
109277
109239
|
showExpandCollapseAllToggle,
|
|
109278
109240
|
translations: translations2 = {},
|
|
109279
109241
|
enableCellTextSelection,
|
|
109280
|
-
localStoragePersistenceKey
|
|
109281
|
-
enableCDN
|
|
109242
|
+
localStoragePersistenceKey
|
|
109282
109243
|
}) => {
|
|
109283
109244
|
const initialTableConfig = localStoragePersistenceKey && storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
|
|
109284
109245
|
const onServerSideDataRequestRef = React80.useRef(onServerSideDataRequest);
|
|
@@ -109290,28 +109251,14 @@ var DataTable = ({
|
|
|
109290
109251
|
);
|
|
109291
109252
|
const contextPanel = useContextPanel();
|
|
109292
109253
|
const clientI18n = useI18nContext();
|
|
109293
|
-
const isCDNEnabled = isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
109294
|
-
const cdnTranslations = useRequestTranslations(
|
|
109295
|
-
{
|
|
109296
|
-
locale: clientI18n.locale,
|
|
109297
|
-
type: "file",
|
|
109298
|
-
absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}`
|
|
109299
|
-
},
|
|
109300
|
-
{ en: translations.en, pseudo: translations.pseudo },
|
|
109301
|
-
{
|
|
109302
|
-
oldTranslations: translations,
|
|
109303
|
-
enableCDN: isCDNEnabled
|
|
109304
|
-
}
|
|
109305
|
-
);
|
|
109306
109254
|
const internalI18n = useI18n({
|
|
109307
|
-
|
|
109255
|
+
...clientI18n,
|
|
109308
109256
|
translations: mergeDeepLeft(
|
|
109309
109257
|
mergeDeepLeft(clientI18n.translations, {
|
|
109310
109258
|
[clientI18n.locale]: translations2
|
|
109311
109259
|
}),
|
|
109312
|
-
|
|
109313
|
-
)
|
|
109314
|
-
enableCDN: isCDNEnabled
|
|
109260
|
+
translations
|
|
109261
|
+
)
|
|
109315
109262
|
});
|
|
109316
109263
|
const rowSelectionRef = React80.useRef({
|
|
109317
109264
|
affectedRows: {},
|
|
@@ -112567,8 +112514,7 @@ var ClientSideDataTable = ({
|
|
|
112567
112514
|
onTableConfigChange,
|
|
112568
112515
|
translations: translations2 = {},
|
|
112569
112516
|
enableCellTextSelection,
|
|
112570
|
-
localStoragePersistenceKey
|
|
112571
|
-
enableCDN
|
|
112517
|
+
localStoragePersistenceKey
|
|
112572
112518
|
}) => {
|
|
112573
112519
|
return /* @__PURE__ */ React80.createElement(
|
|
112574
112520
|
DataTable,
|
|
@@ -112586,8 +112532,7 @@ var ClientSideDataTable = ({
|
|
|
112586
112532
|
translations: translations2,
|
|
112587
112533
|
localStoragePersistenceKey,
|
|
112588
112534
|
customBulkEditorFields,
|
|
112589
|
-
enableCellTextSelection
|
|
112590
|
-
enableCDN
|
|
112535
|
+
enableCellTextSelection
|
|
112591
112536
|
},
|
|
112592
112537
|
children
|
|
112593
112538
|
);
|
|
@@ -117048,8 +116993,7 @@ var ServerSideDataTable = ({
|
|
|
117048
116993
|
enableCellTextSelection,
|
|
117049
116994
|
showExpandCollapseAllToggle,
|
|
117050
116995
|
translations: translations2 = {},
|
|
117051
|
-
localStoragePersistenceKey
|
|
117052
|
-
enableCDN
|
|
116996
|
+
localStoragePersistenceKey
|
|
117053
116997
|
}) => {
|
|
117054
116998
|
return /* @__PURE__ */ React80.createElement(
|
|
117055
116999
|
DataTable,
|
|
@@ -117068,8 +117012,7 @@ var ServerSideDataTable = ({
|
|
|
117068
117012
|
translations: translations2,
|
|
117069
117013
|
customBulkEditorFields,
|
|
117070
117014
|
enableCellTextSelection,
|
|
117071
|
-
localStoragePersistenceKey
|
|
117072
|
-
enableCDN
|
|
117015
|
+
localStoragePersistenceKey
|
|
117073
117016
|
},
|
|
117074
117017
|
children
|
|
117075
117018
|
);
|
package/dist/modern/index.cjs
CHANGED
|
@@ -12,7 +12,6 @@ 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');
|
|
16
15
|
var toastAlert = require('@procore/toast-alert');
|
|
17
16
|
var ReactDOM = require('react-dom');
|
|
18
17
|
var server = require('react-dom/server');
|
|
@@ -57216,22 +57215,26 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57216
57215
|
}, []);
|
|
57217
57216
|
React80__default.default.useEffect(() => {
|
|
57218
57217
|
function calculatePosition() {
|
|
57219
|
-
const
|
|
57220
|
-
if (!
|
|
57218
|
+
const visibleColumns = props.columnApi.getAllDisplayedColumns();
|
|
57219
|
+
if (!visibleColumns?.length)
|
|
57221
57220
|
return;
|
|
57222
|
-
|
|
57223
|
-
|
|
57224
|
-
setIsFirstColumn(true);
|
|
57225
|
-
} else {
|
|
57226
|
-
setIsFirstColumn(false);
|
|
57227
|
-
}
|
|
57221
|
+
const isCurrentFirst = visibleColumns[0].getColId() === colId;
|
|
57222
|
+
setIsFirstColumn(isCurrentFirst);
|
|
57228
57223
|
}
|
|
57229
57224
|
props.api.addEventListener("columnMoved", calculatePosition);
|
|
57225
|
+
props.api.addEventListener("columnPinned", calculatePosition);
|
|
57226
|
+
props.api.addEventListener("columnVisible", calculatePosition);
|
|
57230
57227
|
calculatePosition();
|
|
57231
57228
|
return () => {
|
|
57232
57229
|
removeEventListenerFromGrid("columnMoved", calculatePosition, props.api);
|
|
57230
|
+
removeEventListenerFromGrid("columnPinned", calculatePosition, props.api);
|
|
57231
|
+
removeEventListenerFromGrid(
|
|
57232
|
+
"columnVisible",
|
|
57233
|
+
calculatePosition,
|
|
57234
|
+
props.api
|
|
57235
|
+
);
|
|
57233
57236
|
};
|
|
57234
|
-
}, []);
|
|
57237
|
+
}, [colId, props.api]);
|
|
57235
57238
|
const onSortToggled = (event) => {
|
|
57236
57239
|
let currentSort = null;
|
|
57237
57240
|
if (Array.from(checkbox.current?.parentElement?.children || []).includes(
|
|
@@ -57443,7 +57446,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57443
57446
|
return;
|
|
57444
57447
|
}
|
|
57445
57448
|
function updateSelectAllCheckbox(e) {
|
|
57446
|
-
if (e.source === "uiSelectAll") {
|
|
57449
|
+
if (e && e.source === "uiSelectAll") {
|
|
57447
57450
|
return;
|
|
57448
57451
|
}
|
|
57449
57452
|
const selectionState = props.api.getServerSideSelectionState();
|
|
@@ -57471,6 +57474,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57471
57474
|
}
|
|
57472
57475
|
props.api.addEventListener(selectionChanged, updateSelectAllCheckbox);
|
|
57473
57476
|
props.api.addEventListener(paginationChanged, updateSelectAllCheckbox);
|
|
57477
|
+
updateSelectAllCheckbox();
|
|
57474
57478
|
return () => {
|
|
57475
57479
|
removeEventListenerFromGrid(
|
|
57476
57480
|
selectionChanged,
|
|
@@ -105609,9 +105613,6 @@ var de_DE_default = {
|
|
|
105609
105613
|
selectCell: {
|
|
105610
105614
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105611
105615
|
},
|
|
105612
|
-
multiSelectCell: {
|
|
105613
|
-
placeholder: "Werte ausw\xE4hlen"
|
|
105614
|
-
},
|
|
105615
105616
|
booleanCell: {
|
|
105616
105617
|
options: {
|
|
105617
105618
|
yes: "Ja",
|
|
@@ -105775,9 +105776,6 @@ var en_AU_default = {
|
|
|
105775
105776
|
selectCell: {
|
|
105776
105777
|
placeholder: "Select {{label}}"
|
|
105777
105778
|
},
|
|
105778
|
-
multiSelectCell: {
|
|
105779
|
-
placeholder: "Select values"
|
|
105780
|
-
},
|
|
105781
105779
|
booleanCell: {
|
|
105782
105780
|
options: {
|
|
105783
105781
|
yes: "Yes",
|
|
@@ -105941,9 +105939,6 @@ var en_CA_default = {
|
|
|
105941
105939
|
selectCell: {
|
|
105942
105940
|
placeholder: "Select {{label}}"
|
|
105943
105941
|
},
|
|
105944
|
-
multiSelectCell: {
|
|
105945
|
-
placeholder: "Select values"
|
|
105946
|
-
},
|
|
105947
105942
|
booleanCell: {
|
|
105948
105943
|
options: {
|
|
105949
105944
|
yes: "Yes",
|
|
@@ -106107,9 +106102,6 @@ var en_GB_default = {
|
|
|
106107
106102
|
selectCell: {
|
|
106108
106103
|
placeholder: "Select {{label}}"
|
|
106109
106104
|
},
|
|
106110
|
-
multiSelectCell: {
|
|
106111
|
-
placeholder: "Select values"
|
|
106112
|
-
},
|
|
106113
106105
|
booleanCell: {
|
|
106114
106106
|
options: {
|
|
106115
106107
|
yes: "Yes",
|
|
@@ -106439,9 +106431,6 @@ var es_ES_default = {
|
|
|
106439
106431
|
selectCell: {
|
|
106440
106432
|
placeholder: "Seleccionar {{label}}"
|
|
106441
106433
|
},
|
|
106442
|
-
multiSelectCell: {
|
|
106443
|
-
placeholder: "Seleccionar valores"
|
|
106444
|
-
},
|
|
106445
106434
|
booleanCell: {
|
|
106446
106435
|
options: {
|
|
106447
106436
|
yes: "S\xED",
|
|
@@ -106479,7 +106468,7 @@ var es_default = {
|
|
|
106479
106468
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
106480
106469
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
106481
106470
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
|
|
106482
|
-
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a
|
|
106471
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
106483
106472
|
featureFilter: "Filtro",
|
|
106484
106473
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
106485
106474
|
featureGroupBy: "Agrupar por",
|
|
@@ -106605,9 +106594,6 @@ var es_default = {
|
|
|
106605
106594
|
selectCell: {
|
|
106606
106595
|
placeholder: "Seleccionar {{label}}"
|
|
106607
106596
|
},
|
|
106608
|
-
multiSelectCell: {
|
|
106609
|
-
placeholder: "Seleccionar valores"
|
|
106610
|
-
},
|
|
106611
106597
|
booleanCell: {
|
|
106612
106598
|
options: {
|
|
106613
106599
|
yes: "S\xED",
|
|
@@ -106771,9 +106757,6 @@ var fr_CA_default = {
|
|
|
106771
106757
|
selectCell: {
|
|
106772
106758
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106773
106759
|
},
|
|
106774
|
-
multiSelectCell: {
|
|
106775
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
106776
|
-
},
|
|
106777
106760
|
booleanCell: {
|
|
106778
106761
|
options: {
|
|
106779
106762
|
yes: "Oui",
|
|
@@ -106937,9 +106920,6 @@ var fr_FR_default = {
|
|
|
106937
106920
|
selectCell: {
|
|
106938
106921
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106939
106922
|
},
|
|
106940
|
-
multiSelectCell: {
|
|
106941
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
106942
|
-
},
|
|
106943
106923
|
booleanCell: {
|
|
106944
106924
|
options: {
|
|
106945
106925
|
yes: "Oui",
|
|
@@ -107103,9 +107083,6 @@ var is_IS_default = {
|
|
|
107103
107083
|
selectCell: {
|
|
107104
107084
|
placeholder: "Veldu {{label}}"
|
|
107105
107085
|
},
|
|
107106
|
-
multiSelectCell: {
|
|
107107
|
-
placeholder: "Veldu Gildi"
|
|
107108
|
-
},
|
|
107109
107086
|
booleanCell: {
|
|
107110
107087
|
options: {
|
|
107111
107088
|
yes: "J\xE1",
|
|
@@ -107269,9 +107246,6 @@ var ja_JP_default = {
|
|
|
107269
107246
|
selectCell: {
|
|
107270
107247
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107271
107248
|
},
|
|
107272
|
-
multiSelectCell: {
|
|
107273
|
-
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107274
|
-
},
|
|
107275
107249
|
booleanCell: {
|
|
107276
107250
|
options: {
|
|
107277
107251
|
yes: "\u306F\u3044",
|
|
@@ -107435,9 +107409,6 @@ var pl_PL_default = {
|
|
|
107435
107409
|
selectCell: {
|
|
107436
107410
|
placeholder: "Wybierz {{label}}"
|
|
107437
107411
|
},
|
|
107438
|
-
multiSelectCell: {
|
|
107439
|
-
placeholder: "Wybierz warto\u015Bci"
|
|
107440
|
-
},
|
|
107441
107412
|
booleanCell: {
|
|
107442
107413
|
options: {
|
|
107443
107414
|
yes: "Tak",
|
|
@@ -107767,9 +107738,6 @@ var pt_BR_default = {
|
|
|
107767
107738
|
selectCell: {
|
|
107768
107739
|
placeholder: "Selecionar {{label}}"
|
|
107769
107740
|
},
|
|
107770
|
-
multiSelectCell: {
|
|
107771
|
-
placeholder: "Selecionar Valores"
|
|
107772
|
-
},
|
|
107773
107741
|
booleanCell: {
|
|
107774
107742
|
options: {
|
|
107775
107743
|
yes: "Sim",
|
|
@@ -107933,9 +107901,6 @@ var th_TH_default = {
|
|
|
107933
107901
|
selectCell: {
|
|
107934
107902
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
107935
107903
|
},
|
|
107936
|
-
multiSelectCell: {
|
|
107937
|
-
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
107938
|
-
},
|
|
107939
107904
|
booleanCell: {
|
|
107940
107905
|
options: {
|
|
107941
107906
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108099,9 +108064,6 @@ var zh_SG_default = {
|
|
|
108099
108064
|
selectCell: {
|
|
108100
108065
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108101
108066
|
},
|
|
108102
|
-
multiSelectCell: {
|
|
108103
|
-
placeholder: "\u9009\u62E9\u503C"
|
|
108104
|
-
},
|
|
108105
108067
|
booleanCell: {
|
|
108106
108068
|
options: {
|
|
108107
108069
|
yes: "\u662F",
|
|
@@ -109110,8 +109072,7 @@ var DataTable = ({
|
|
|
109110
109072
|
showExpandCollapseAllToggle,
|
|
109111
109073
|
translations: translations2 = {},
|
|
109112
109074
|
enableCellTextSelection,
|
|
109113
|
-
localStoragePersistenceKey
|
|
109114
|
-
enableCDN
|
|
109075
|
+
localStoragePersistenceKey
|
|
109115
109076
|
}) => {
|
|
109116
109077
|
const initialTableConfig = localStoragePersistenceKey && webSdkStorage.storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
|
|
109117
109078
|
const onServerSideDataRequestRef = React80__default.default.useRef(onServerSideDataRequest);
|
|
@@ -109123,28 +109084,14 @@ var DataTable = ({
|
|
|
109123
109084
|
);
|
|
109124
109085
|
const contextPanel = useContextPanel();
|
|
109125
109086
|
const clientI18n = coreReact.useI18nContext();
|
|
109126
|
-
const isCDNEnabled = cdnTranslations.isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
109127
|
-
const cdnTranslations$1 = cdnTranslations.useRequestTranslations(
|
|
109128
|
-
{
|
|
109129
|
-
locale: clientI18n.locale,
|
|
109130
|
-
type: "file",
|
|
109131
|
-
absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}`
|
|
109132
|
-
},
|
|
109133
|
-
{ en: translations.en, pseudo: translations.pseudo },
|
|
109134
|
-
{
|
|
109135
|
-
oldTranslations: translations,
|
|
109136
|
-
enableCDN: isCDNEnabled
|
|
109137
|
-
}
|
|
109138
|
-
);
|
|
109139
109087
|
const internalI18n = coreReact.useI18n({
|
|
109140
|
-
|
|
109088
|
+
...clientI18n,
|
|
109141
109089
|
translations: ramda.mergeDeepLeft(
|
|
109142
109090
|
ramda.mergeDeepLeft(clientI18n.translations, {
|
|
109143
109091
|
[clientI18n.locale]: translations2
|
|
109144
109092
|
}),
|
|
109145
|
-
|
|
109146
|
-
)
|
|
109147
|
-
enableCDN: isCDNEnabled
|
|
109093
|
+
translations
|
|
109094
|
+
)
|
|
109148
109095
|
});
|
|
109149
109096
|
const rowSelectionRef = React80__default.default.useRef({
|
|
109150
109097
|
affectedRows: {},
|
|
@@ -112321,8 +112268,7 @@ var ClientSideDataTable = ({
|
|
|
112321
112268
|
onTableConfigChange,
|
|
112322
112269
|
translations: translations2 = {},
|
|
112323
112270
|
enableCellTextSelection,
|
|
112324
|
-
localStoragePersistenceKey
|
|
112325
|
-
enableCDN
|
|
112271
|
+
localStoragePersistenceKey
|
|
112326
112272
|
}) => {
|
|
112327
112273
|
return /* @__PURE__ */ React80__default.default.createElement(
|
|
112328
112274
|
DataTable,
|
|
@@ -112340,8 +112286,7 @@ var ClientSideDataTable = ({
|
|
|
112340
112286
|
translations: translations2,
|
|
112341
112287
|
localStoragePersistenceKey,
|
|
112342
112288
|
customBulkEditorFields,
|
|
112343
|
-
enableCellTextSelection
|
|
112344
|
-
enableCDN
|
|
112289
|
+
enableCellTextSelection
|
|
112345
112290
|
},
|
|
112346
112291
|
children
|
|
112347
112292
|
);
|
|
@@ -116801,8 +116746,7 @@ var ServerSideDataTable = ({
|
|
|
116801
116746
|
enableCellTextSelection,
|
|
116802
116747
|
showExpandCollapseAllToggle,
|
|
116803
116748
|
translations: translations2 = {},
|
|
116804
|
-
localStoragePersistenceKey
|
|
116805
|
-
enableCDN
|
|
116749
|
+
localStoragePersistenceKey
|
|
116806
116750
|
}) => {
|
|
116807
116751
|
return /* @__PURE__ */ React80__default.default.createElement(
|
|
116808
116752
|
DataTable,
|
|
@@ -116821,8 +116765,7 @@ var ServerSideDataTable = ({
|
|
|
116821
116765
|
translations: translations2,
|
|
116822
116766
|
customBulkEditorFields,
|
|
116823
116767
|
enableCellTextSelection,
|
|
116824
|
-
localStoragePersistenceKey
|
|
116825
|
-
enableCDN
|
|
116768
|
+
localStoragePersistenceKey
|
|
116826
116769
|
},
|
|
116827
116770
|
children
|
|
116828
116771
|
);
|
package/dist/modern/index.d.cts
CHANGED
|
@@ -1148,7 +1148,6 @@ interface DataTableProps {
|
|
|
1148
1148
|
showExpandCollapseAllToggle?: boolean;
|
|
1149
1149
|
translations?: DataTableTranslations;
|
|
1150
1150
|
enableCellTextSelection?: boolean;
|
|
1151
|
-
enableCDN?: boolean;
|
|
1152
1151
|
}
|
|
1153
1152
|
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
|
|
1154
1153
|
}
|
|
@@ -1439,7 +1438,7 @@ interface BulkActionProps {
|
|
|
1439
1438
|
style?: React__default.CSSProperties;
|
|
1440
1439
|
}
|
|
1441
1440
|
|
|
1442
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey,
|
|
1441
|
+
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) & {
|
|
1443
1442
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1444
1443
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1445
1444
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1476,7 +1475,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1476
1475
|
|
|
1477
1476
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1478
1477
|
|
|
1479
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey,
|
|
1478
|
+
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) & {
|
|
1480
1479
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1481
1480
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1482
1481
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -1148,7 +1148,6 @@ interface DataTableProps {
|
|
|
1148
1148
|
showExpandCollapseAllToggle?: boolean;
|
|
1149
1149
|
translations?: DataTableTranslations;
|
|
1150
1150
|
enableCellTextSelection?: boolean;
|
|
1151
|
-
enableCDN?: boolean;
|
|
1152
1151
|
}
|
|
1153
1152
|
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest' | 'showExpandCollapseAllToggle'> {
|
|
1154
1153
|
}
|
|
@@ -1439,7 +1438,7 @@ interface BulkActionProps {
|
|
|
1439
1438
|
style?: React__default.CSSProperties;
|
|
1440
1439
|
}
|
|
1441
1440
|
|
|
1442
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey,
|
|
1441
|
+
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) & {
|
|
1443
1442
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1444
1443
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1445
1444
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1476,7 +1475,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1476
1475
|
|
|
1477
1476
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1478
1477
|
|
|
1479
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey,
|
|
1478
|
+
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) & {
|
|
1480
1479
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1481
1480
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1482
1481
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/modern/index.js
CHANGED
|
@@ -10,7 +10,6 @@ import { formatNumber, formatCurrency, formatPercentage } from '@procore/labs-fi
|
|
|
10
10
|
import styled4, { css as css$1 } from 'styled-components';
|
|
11
11
|
import { format } from '@procore/labs-financials-utils/dist/format';
|
|
12
12
|
import { detectPrng, factory } from 'ulid';
|
|
13
|
-
import { isCDNFeatureFlagEnabled, useRequestTranslations } from '@procore/cdn-translations';
|
|
14
13
|
import { useToastAlertContext, ToastAlertProvider } from '@procore/toast-alert';
|
|
15
14
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
16
15
|
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
|
|
@@ -57203,22 +57202,26 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57203
57202
|
}, []);
|
|
57204
57203
|
React80.useEffect(() => {
|
|
57205
57204
|
function calculatePosition() {
|
|
57206
|
-
const
|
|
57207
|
-
if (!
|
|
57205
|
+
const visibleColumns = props.columnApi.getAllDisplayedColumns();
|
|
57206
|
+
if (!visibleColumns?.length)
|
|
57208
57207
|
return;
|
|
57209
|
-
|
|
57210
|
-
|
|
57211
|
-
setIsFirstColumn(true);
|
|
57212
|
-
} else {
|
|
57213
|
-
setIsFirstColumn(false);
|
|
57214
|
-
}
|
|
57208
|
+
const isCurrentFirst = visibleColumns[0].getColId() === colId;
|
|
57209
|
+
setIsFirstColumn(isCurrentFirst);
|
|
57215
57210
|
}
|
|
57216
57211
|
props.api.addEventListener("columnMoved", calculatePosition);
|
|
57212
|
+
props.api.addEventListener("columnPinned", calculatePosition);
|
|
57213
|
+
props.api.addEventListener("columnVisible", calculatePosition);
|
|
57217
57214
|
calculatePosition();
|
|
57218
57215
|
return () => {
|
|
57219
57216
|
removeEventListenerFromGrid("columnMoved", calculatePosition, props.api);
|
|
57217
|
+
removeEventListenerFromGrid("columnPinned", calculatePosition, props.api);
|
|
57218
|
+
removeEventListenerFromGrid(
|
|
57219
|
+
"columnVisible",
|
|
57220
|
+
calculatePosition,
|
|
57221
|
+
props.api
|
|
57222
|
+
);
|
|
57220
57223
|
};
|
|
57221
|
-
}, []);
|
|
57224
|
+
}, [colId, props.api]);
|
|
57222
57225
|
const onSortToggled = (event) => {
|
|
57223
57226
|
let currentSort = null;
|
|
57224
57227
|
if (Array.from(checkbox.current?.parentElement?.children || []).includes(
|
|
@@ -57430,7 +57433,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57430
57433
|
return;
|
|
57431
57434
|
}
|
|
57432
57435
|
function updateSelectAllCheckbox(e) {
|
|
57433
|
-
if (e.source === "uiSelectAll") {
|
|
57436
|
+
if (e && e.source === "uiSelectAll") {
|
|
57434
57437
|
return;
|
|
57435
57438
|
}
|
|
57436
57439
|
const selectionState = props.api.getServerSideSelectionState();
|
|
@@ -57458,6 +57461,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
57458
57461
|
}
|
|
57459
57462
|
props.api.addEventListener(selectionChanged, updateSelectAllCheckbox);
|
|
57460
57463
|
props.api.addEventListener(paginationChanged, updateSelectAllCheckbox);
|
|
57464
|
+
updateSelectAllCheckbox();
|
|
57461
57465
|
return () => {
|
|
57462
57466
|
removeEventListenerFromGrid(
|
|
57463
57467
|
selectionChanged,
|
|
@@ -105596,9 +105600,6 @@ var de_DE_default = {
|
|
|
105596
105600
|
selectCell: {
|
|
105597
105601
|
placeholder: "{{label}} ausw\xE4hlen"
|
|
105598
105602
|
},
|
|
105599
|
-
multiSelectCell: {
|
|
105600
|
-
placeholder: "Werte ausw\xE4hlen"
|
|
105601
|
-
},
|
|
105602
105603
|
booleanCell: {
|
|
105603
105604
|
options: {
|
|
105604
105605
|
yes: "Ja",
|
|
@@ -105762,9 +105763,6 @@ var en_AU_default = {
|
|
|
105762
105763
|
selectCell: {
|
|
105763
105764
|
placeholder: "Select {{label}}"
|
|
105764
105765
|
},
|
|
105765
|
-
multiSelectCell: {
|
|
105766
|
-
placeholder: "Select values"
|
|
105767
|
-
},
|
|
105768
105766
|
booleanCell: {
|
|
105769
105767
|
options: {
|
|
105770
105768
|
yes: "Yes",
|
|
@@ -105928,9 +105926,6 @@ var en_CA_default = {
|
|
|
105928
105926
|
selectCell: {
|
|
105929
105927
|
placeholder: "Select {{label}}"
|
|
105930
105928
|
},
|
|
105931
|
-
multiSelectCell: {
|
|
105932
|
-
placeholder: "Select values"
|
|
105933
|
-
},
|
|
105934
105929
|
booleanCell: {
|
|
105935
105930
|
options: {
|
|
105936
105931
|
yes: "Yes",
|
|
@@ -106094,9 +106089,6 @@ var en_GB_default = {
|
|
|
106094
106089
|
selectCell: {
|
|
106095
106090
|
placeholder: "Select {{label}}"
|
|
106096
106091
|
},
|
|
106097
|
-
multiSelectCell: {
|
|
106098
|
-
placeholder: "Select values"
|
|
106099
|
-
},
|
|
106100
106092
|
booleanCell: {
|
|
106101
106093
|
options: {
|
|
106102
106094
|
yes: "Yes",
|
|
@@ -106426,9 +106418,6 @@ var es_ES_default = {
|
|
|
106426
106418
|
selectCell: {
|
|
106427
106419
|
placeholder: "Seleccionar {{label}}"
|
|
106428
106420
|
},
|
|
106429
|
-
multiSelectCell: {
|
|
106430
|
-
placeholder: "Seleccionar valores"
|
|
106431
|
-
},
|
|
106432
106421
|
booleanCell: {
|
|
106433
106422
|
options: {
|
|
106434
106423
|
yes: "S\xED",
|
|
@@ -106466,7 +106455,7 @@ var es_default = {
|
|
|
106466
106455
|
title: "No hay \xEDtems para mostrar en este momento",
|
|
106467
106456
|
itemsTitle: "No hay %{itemsLabel} para mostrar en este momento",
|
|
106468
106457
|
tooltip: "El bot\xF3n %{featureName} se habilitar\xE1 una vez que agregue informaci\xF3n a la %{tableName}.",
|
|
106469
|
-
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a
|
|
106458
|
+
searchTooltip: "La b\xFAsqueda se habilitar\xE1 una vez que agregue informaci\xF3n a %{tableName}",
|
|
106470
106459
|
featureFilter: "Filtro",
|
|
106471
106460
|
featureQuickFilter: "Filtro r\xE1pido",
|
|
106472
106461
|
featureGroupBy: "Agrupar por",
|
|
@@ -106592,9 +106581,6 @@ var es_default = {
|
|
|
106592
106581
|
selectCell: {
|
|
106593
106582
|
placeholder: "Seleccionar {{label}}"
|
|
106594
106583
|
},
|
|
106595
|
-
multiSelectCell: {
|
|
106596
|
-
placeholder: "Seleccionar valores"
|
|
106597
|
-
},
|
|
106598
106584
|
booleanCell: {
|
|
106599
106585
|
options: {
|
|
106600
106586
|
yes: "S\xED",
|
|
@@ -106758,9 +106744,6 @@ var fr_CA_default = {
|
|
|
106758
106744
|
selectCell: {
|
|
106759
106745
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106760
106746
|
},
|
|
106761
|
-
multiSelectCell: {
|
|
106762
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
106763
|
-
},
|
|
106764
106747
|
booleanCell: {
|
|
106765
106748
|
options: {
|
|
106766
106749
|
yes: "Oui",
|
|
@@ -106924,9 +106907,6 @@ var fr_FR_default = {
|
|
|
106924
106907
|
selectCell: {
|
|
106925
106908
|
placeholder: "S\xE9lectionner {{label}}"
|
|
106926
106909
|
},
|
|
106927
|
-
multiSelectCell: {
|
|
106928
|
-
placeholder: "S\xE9lectionner les valeurs"
|
|
106929
|
-
},
|
|
106930
106910
|
booleanCell: {
|
|
106931
106911
|
options: {
|
|
106932
106912
|
yes: "Oui",
|
|
@@ -107090,9 +107070,6 @@ var is_IS_default = {
|
|
|
107090
107070
|
selectCell: {
|
|
107091
107071
|
placeholder: "Veldu {{label}}"
|
|
107092
107072
|
},
|
|
107093
|
-
multiSelectCell: {
|
|
107094
|
-
placeholder: "Veldu Gildi"
|
|
107095
|
-
},
|
|
107096
107073
|
booleanCell: {
|
|
107097
107074
|
options: {
|
|
107098
107075
|
yes: "J\xE1",
|
|
@@ -107256,9 +107233,6 @@ var ja_JP_default = {
|
|
|
107256
107233
|
selectCell: {
|
|
107257
107234
|
placeholder: "{{label}}\u3092\u9078\u629E\u3059\u308B"
|
|
107258
107235
|
},
|
|
107259
|
-
multiSelectCell: {
|
|
107260
|
-
placeholder: "\u5024\u3092\u9078\u629E"
|
|
107261
|
-
},
|
|
107262
107236
|
booleanCell: {
|
|
107263
107237
|
options: {
|
|
107264
107238
|
yes: "\u306F\u3044",
|
|
@@ -107422,9 +107396,6 @@ var pl_PL_default = {
|
|
|
107422
107396
|
selectCell: {
|
|
107423
107397
|
placeholder: "Wybierz {{label}}"
|
|
107424
107398
|
},
|
|
107425
|
-
multiSelectCell: {
|
|
107426
|
-
placeholder: "Wybierz warto\u015Bci"
|
|
107427
|
-
},
|
|
107428
107399
|
booleanCell: {
|
|
107429
107400
|
options: {
|
|
107430
107401
|
yes: "Tak",
|
|
@@ -107754,9 +107725,6 @@ var pt_BR_default = {
|
|
|
107754
107725
|
selectCell: {
|
|
107755
107726
|
placeholder: "Selecionar {{label}}"
|
|
107756
107727
|
},
|
|
107757
|
-
multiSelectCell: {
|
|
107758
|
-
placeholder: "Selecionar Valores"
|
|
107759
|
-
},
|
|
107760
107728
|
booleanCell: {
|
|
107761
107729
|
options: {
|
|
107762
107730
|
yes: "Sim",
|
|
@@ -107920,9 +107888,6 @@ var th_TH_default = {
|
|
|
107920
107888
|
selectCell: {
|
|
107921
107889
|
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01 {{label}}"
|
|
107922
107890
|
},
|
|
107923
|
-
multiSelectCell: {
|
|
107924
|
-
placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E04\u0E48\u0E32"
|
|
107925
|
-
},
|
|
107926
107891
|
booleanCell: {
|
|
107927
107892
|
options: {
|
|
107928
107893
|
yes: "\u0E43\u0E0A\u0E48",
|
|
@@ -108086,9 +108051,6 @@ var zh_SG_default = {
|
|
|
108086
108051
|
selectCell: {
|
|
108087
108052
|
placeholder: "\u9009\u62E9{{label}}"
|
|
108088
108053
|
},
|
|
108089
|
-
multiSelectCell: {
|
|
108090
|
-
placeholder: "\u9009\u62E9\u503C"
|
|
108091
|
-
},
|
|
108092
108054
|
booleanCell: {
|
|
108093
108055
|
options: {
|
|
108094
108056
|
yes: "\u662F",
|
|
@@ -109097,8 +109059,7 @@ var DataTable = ({
|
|
|
109097
109059
|
showExpandCollapseAllToggle,
|
|
109098
109060
|
translations: translations2 = {},
|
|
109099
109061
|
enableCellTextSelection,
|
|
109100
|
-
localStoragePersistenceKey
|
|
109101
|
-
enableCDN
|
|
109062
|
+
localStoragePersistenceKey
|
|
109102
109063
|
}) => {
|
|
109103
109064
|
const initialTableConfig = localStoragePersistenceKey && storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
|
|
109104
109065
|
const onServerSideDataRequestRef = React80.useRef(onServerSideDataRequest);
|
|
@@ -109110,28 +109071,14 @@ var DataTable = ({
|
|
|
109110
109071
|
);
|
|
109111
109072
|
const contextPanel = useContextPanel();
|
|
109112
109073
|
const clientI18n = useI18nContext();
|
|
109113
|
-
const isCDNEnabled = isCDNFeatureFlagEnabled(clientI18n, enableCDN);
|
|
109114
|
-
const cdnTranslations = useRequestTranslations(
|
|
109115
|
-
{
|
|
109116
|
-
locale: clientI18n.locale,
|
|
109117
|
-
type: "file",
|
|
109118
|
-
absolute_file_path: (locale) => `core/packages/data-table/src/locales/${locale}`
|
|
109119
|
-
},
|
|
109120
|
-
{ en: translations.en, pseudo: translations.pseudo },
|
|
109121
|
-
{
|
|
109122
|
-
oldTranslations: translations,
|
|
109123
|
-
enableCDN: isCDNEnabled
|
|
109124
|
-
}
|
|
109125
|
-
);
|
|
109126
109074
|
const internalI18n = useI18n({
|
|
109127
|
-
|
|
109075
|
+
...clientI18n,
|
|
109128
109076
|
translations: mergeDeepLeft(
|
|
109129
109077
|
mergeDeepLeft(clientI18n.translations, {
|
|
109130
109078
|
[clientI18n.locale]: translations2
|
|
109131
109079
|
}),
|
|
109132
|
-
|
|
109133
|
-
)
|
|
109134
|
-
enableCDN: isCDNEnabled
|
|
109080
|
+
translations
|
|
109081
|
+
)
|
|
109135
109082
|
});
|
|
109136
109083
|
const rowSelectionRef = React80.useRef({
|
|
109137
109084
|
affectedRows: {},
|
|
@@ -112308,8 +112255,7 @@ var ClientSideDataTable = ({
|
|
|
112308
112255
|
onTableConfigChange,
|
|
112309
112256
|
translations: translations2 = {},
|
|
112310
112257
|
enableCellTextSelection,
|
|
112311
|
-
localStoragePersistenceKey
|
|
112312
|
-
enableCDN
|
|
112258
|
+
localStoragePersistenceKey
|
|
112313
112259
|
}) => {
|
|
112314
112260
|
return /* @__PURE__ */ React80.createElement(
|
|
112315
112261
|
DataTable,
|
|
@@ -112327,8 +112273,7 @@ var ClientSideDataTable = ({
|
|
|
112327
112273
|
translations: translations2,
|
|
112328
112274
|
localStoragePersistenceKey,
|
|
112329
112275
|
customBulkEditorFields,
|
|
112330
|
-
enableCellTextSelection
|
|
112331
|
-
enableCDN
|
|
112276
|
+
enableCellTextSelection
|
|
112332
112277
|
},
|
|
112333
112278
|
children
|
|
112334
112279
|
);
|
|
@@ -116788,8 +116733,7 @@ var ServerSideDataTable = ({
|
|
|
116788
116733
|
enableCellTextSelection,
|
|
116789
116734
|
showExpandCollapseAllToggle,
|
|
116790
116735
|
translations: translations2 = {},
|
|
116791
|
-
localStoragePersistenceKey
|
|
116792
|
-
enableCDN
|
|
116736
|
+
localStoragePersistenceKey
|
|
116793
116737
|
}) => {
|
|
116794
116738
|
return /* @__PURE__ */ React80.createElement(
|
|
116795
116739
|
DataTable,
|
|
@@ -116808,8 +116752,7 @@ var ServerSideDataTable = ({
|
|
|
116808
116752
|
translations: translations2,
|
|
116809
116753
|
customBulkEditorFields,
|
|
116810
116754
|
enableCellTextSelection,
|
|
116811
|
-
localStoragePersistenceKey
|
|
116812
|
-
enableCDN
|
|
116755
|
+
localStoragePersistenceKey
|
|
116813
116756
|
},
|
|
116814
116757
|
children
|
|
116815
116758
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.28.0
|
|
3
|
+
"version": "14.28.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",
|
|
@@ -79,7 +79,6 @@
|
|
|
79
79
|
"styled-components": ">= 5.1.1 < 6"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@procore/cdn-translations": "0.1.0",
|
|
83
82
|
"@procore/error-pages": "0.2.1",
|
|
84
83
|
"@procore/labs-datetime-select": "0.1.1",
|
|
85
84
|
"@procore/labs-group-by-select": "4.0.0",
|
|
@@ -114,7 +113,7 @@
|
|
|
114
113
|
"@procore/core-css": "10.17.0",
|
|
115
114
|
"@procore/core-icons": "12.6.0",
|
|
116
115
|
"@procore/core-prettier": "10.2.0",
|
|
117
|
-
"@procore/core-react": "12.21.0
|
|
116
|
+
"@procore/core-react": "12.21.0",
|
|
118
117
|
"@procore/eslint-config": "10.0.0",
|
|
119
118
|
"@procore/globalization-toolkit": "3.1.0",
|
|
120
119
|
"@procore/labs-financials-utils": "4.3.1",
|