@procore/data-table 14.39.1 → 14.40.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 +6 -0
- package/dist/legacy/index.cjs +29 -7
- package/dist/legacy/index.d.cts +8 -2
- package/dist/legacy/index.d.ts +8 -2
- package/dist/legacy/index.js +29 -7
- package/dist/modern/index.cjs +29 -7
- package/dist/modern/index.d.cts +8 -2
- package/dist/modern/index.d.ts +8 -2
- package/dist/modern/index.js +29 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/legacy/index.cjs
CHANGED
|
@@ -57852,6 +57852,7 @@ var InternalTableContext = React80__default.default.createContext({
|
|
|
57852
57852
|
onExpandOrCollapseAll: () => {
|
|
57853
57853
|
},
|
|
57854
57854
|
onServerSideDataRequest: void 0,
|
|
57855
|
+
suppressBulkEditToasts: false,
|
|
57855
57856
|
onTableConfigChange: () => {
|
|
57856
57857
|
},
|
|
57857
57858
|
updateServerSideDataSource: () => {
|
|
@@ -103662,7 +103663,7 @@ var BulkEditInput = (props) => {
|
|
|
103662
103663
|
}
|
|
103663
103664
|
};
|
|
103664
103665
|
var BulkEdit = React80__default.default.forwardRef(
|
|
103665
|
-
({ onReset = noop4 }, ref) => {
|
|
103666
|
+
({ onReset = noop4, suppressBulkEditToasts = false }, ref) => {
|
|
103666
103667
|
var _a;
|
|
103667
103668
|
const {
|
|
103668
103669
|
analytics,
|
|
@@ -103767,14 +103768,18 @@ var BulkEdit = React80__default.default.forwardRef(
|
|
|
103767
103768
|
await (onBulkEditUpdate == null ? void 0 : onBulkEditUpdate(bulkEditedRows).then((result) => {
|
|
103768
103769
|
if (result === void 0) {
|
|
103769
103770
|
gridApi == null ? void 0 : gridApi.refreshServerSide({ purge: true });
|
|
103770
|
-
|
|
103771
|
+
if (!suppressBulkEditToasts) {
|
|
103772
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103773
|
+
}
|
|
103771
103774
|
resetForm({});
|
|
103772
103775
|
onReset();
|
|
103773
103776
|
} else {
|
|
103774
103777
|
throw new Error(result);
|
|
103775
103778
|
}
|
|
103776
103779
|
}).catch(() => {
|
|
103777
|
-
|
|
103780
|
+
if (!suppressBulkEditToasts) {
|
|
103781
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103782
|
+
}
|
|
103778
103783
|
}));
|
|
103779
103784
|
} else {
|
|
103780
103785
|
try {
|
|
@@ -103782,11 +103787,15 @@ var BulkEdit = React80__default.default.forwardRef(
|
|
|
103782
103787
|
{ update: clientSideItemsToUpdate },
|
|
103783
103788
|
() => onBulkEditUpdate == null ? void 0 : onBulkEditUpdate(bulkEditedRows)
|
|
103784
103789
|
);
|
|
103785
|
-
|
|
103790
|
+
if (!suppressBulkEditToasts) {
|
|
103791
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103792
|
+
}
|
|
103786
103793
|
resetForm({});
|
|
103787
103794
|
onReset();
|
|
103788
103795
|
} catch (error2) {
|
|
103789
|
-
|
|
103796
|
+
if (!suppressBulkEditToasts) {
|
|
103797
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103798
|
+
}
|
|
103790
103799
|
}
|
|
103791
103800
|
}
|
|
103792
103801
|
};
|
|
@@ -103820,7 +103829,7 @@ var BulkEdit = React80__default.default.forwardRef(
|
|
|
103820
103829
|
}
|
|
103821
103830
|
);
|
|
103822
103831
|
var BulkEditPanel = ({}) => {
|
|
103823
|
-
const { contextPanel } = useInternalTableContext();
|
|
103832
|
+
const { contextPanel, suppressBulkEditToasts } = useInternalTableContext();
|
|
103824
103833
|
const I18n = coreReact.useI18nContext();
|
|
103825
103834
|
const bulkEditRef = React80__default.default.useRef(null);
|
|
103826
103835
|
return /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
@@ -103833,7 +103842,14 @@ var BulkEditPanel = ({}) => {
|
|
|
103833
103842
|
}
|
|
103834
103843
|
},
|
|
103835
103844
|
/* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Title, null, I18n.t("dataTable.bulkActions.editValues"))
|
|
103836
|
-
), /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Body, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Section, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
103845
|
+
), /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Body, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Section, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
103846
|
+
BulkEdit,
|
|
103847
|
+
{
|
|
103848
|
+
ref: bulkEditRef,
|
|
103849
|
+
onReset: contextPanel.hide,
|
|
103850
|
+
suppressBulkEditToasts
|
|
103851
|
+
}
|
|
103852
|
+
))), /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Footer, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.FooterActions, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
103837
103853
|
coreReact.Button,
|
|
103838
103854
|
{
|
|
103839
103855
|
key: "cancel",
|
|
@@ -108997,6 +109013,7 @@ var DataTable = ({
|
|
|
108997
109013
|
onServerSideDataRequest,
|
|
108998
109014
|
onTableConfigChange,
|
|
108999
109015
|
showExpandCollapseAllToggle,
|
|
109016
|
+
suppressBulkEditToasts,
|
|
109000
109017
|
translations: translations2 = {},
|
|
109001
109018
|
enableCellTextSelection,
|
|
109002
109019
|
localStoragePersistenceKey,
|
|
@@ -109246,6 +109263,7 @@ var DataTable = ({
|
|
|
109246
109263
|
onBulkEditUpdate,
|
|
109247
109264
|
onExpandOrCollapseAll,
|
|
109248
109265
|
onServerSideDataRequest,
|
|
109266
|
+
suppressBulkEditToasts,
|
|
109249
109267
|
onTableConfigChange: internalOnTableConfigChange,
|
|
109250
109268
|
rowSelectionRef,
|
|
109251
109269
|
expandCollapseStateRef,
|
|
@@ -112325,6 +112343,7 @@ var ClientSideDataTable = ({
|
|
|
112325
112343
|
onBulkEditUpdate,
|
|
112326
112344
|
onExpandOrCollapseAll,
|
|
112327
112345
|
onTableConfigChange,
|
|
112346
|
+
suppressBulkEditToasts,
|
|
112328
112347
|
translations: translations2 = {},
|
|
112329
112348
|
enableCellTextSelection,
|
|
112330
112349
|
localStoragePersistenceKey,
|
|
@@ -112344,6 +112363,7 @@ var ClientSideDataTable = ({
|
|
|
112344
112363
|
onExpandOrCollapseAll,
|
|
112345
112364
|
onTableConfigChange,
|
|
112346
112365
|
showExpandCollapseAllToggle: true,
|
|
112366
|
+
suppressBulkEditToasts,
|
|
112347
112367
|
translations: translations2,
|
|
112348
112368
|
localStoragePersistenceKey,
|
|
112349
112369
|
customBulkEditorFields,
|
|
@@ -116739,6 +116759,7 @@ var ServerSideDataTable = ({
|
|
|
116739
116759
|
onTableConfigChange,
|
|
116740
116760
|
enableCellTextSelection,
|
|
116741
116761
|
showExpandCollapseAllToggle,
|
|
116762
|
+
suppressBulkEditToasts,
|
|
116742
116763
|
translations: translations2 = {},
|
|
116743
116764
|
localStoragePersistenceKey,
|
|
116744
116765
|
enableCDN
|
|
@@ -116758,6 +116779,7 @@ var ServerSideDataTable = ({
|
|
|
116758
116779
|
onServerSideDataRequest,
|
|
116759
116780
|
onTableConfigChange,
|
|
116760
116781
|
showExpandCollapseAllToggle,
|
|
116782
|
+
suppressBulkEditToasts,
|
|
116761
116783
|
translations: translations2,
|
|
116762
116784
|
customBulkEditorFields,
|
|
116763
116785
|
enableCellTextSelection,
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -1162,6 +1162,11 @@ interface DataTableProps {
|
|
|
1162
1162
|
* the updated values
|
|
1163
1163
|
*/
|
|
1164
1164
|
onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
|
|
1165
|
+
/**
|
|
1166
|
+
* When true, suppresses the success and error toast messages
|
|
1167
|
+
* that are normally shown after bulk edit operations
|
|
1168
|
+
*/
|
|
1169
|
+
suppressBulkEditToasts?: boolean;
|
|
1165
1170
|
localStoragePersistenceKey?: string;
|
|
1166
1171
|
showExpandCollapseAllToggle?: boolean;
|
|
1167
1172
|
translations?: DataTableTranslations;
|
|
@@ -1380,6 +1385,7 @@ interface InternalTableContext {
|
|
|
1380
1385
|
filterStorage: IFilterStorage;
|
|
1381
1386
|
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1382
1387
|
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1388
|
+
suppressBulkEditToasts?: DataTableProps['suppressBulkEditToasts'];
|
|
1383
1389
|
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1384
1390
|
localStoragePersistenceKey?: string;
|
|
1385
1391
|
onExpandOrCollapseAll?: (expanded: boolean) => void;
|
|
@@ -1463,7 +1469,7 @@ interface BulkActionProps {
|
|
|
1463
1469
|
style?: React__default.CSSProperties;
|
|
1464
1470
|
}
|
|
1465
1471
|
|
|
1466
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1472
|
+
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, suppressBulkEditToasts, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1467
1473
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1468
1474
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1469
1475
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1500,7 +1506,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1500
1506
|
|
|
1501
1507
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1502
1508
|
|
|
1503
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1509
|
+
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, suppressBulkEditToasts, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1504
1510
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1505
1511
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1506
1512
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1162,6 +1162,11 @@ interface DataTableProps {
|
|
|
1162
1162
|
* the updated values
|
|
1163
1163
|
*/
|
|
1164
1164
|
onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
|
|
1165
|
+
/**
|
|
1166
|
+
* When true, suppresses the success and error toast messages
|
|
1167
|
+
* that are normally shown after bulk edit operations
|
|
1168
|
+
*/
|
|
1169
|
+
suppressBulkEditToasts?: boolean;
|
|
1165
1170
|
localStoragePersistenceKey?: string;
|
|
1166
1171
|
showExpandCollapseAllToggle?: boolean;
|
|
1167
1172
|
translations?: DataTableTranslations;
|
|
@@ -1380,6 +1385,7 @@ interface InternalTableContext {
|
|
|
1380
1385
|
filterStorage: IFilterStorage;
|
|
1381
1386
|
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1382
1387
|
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1388
|
+
suppressBulkEditToasts?: DataTableProps['suppressBulkEditToasts'];
|
|
1383
1389
|
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1384
1390
|
localStoragePersistenceKey?: string;
|
|
1385
1391
|
onExpandOrCollapseAll?: (expanded: boolean) => void;
|
|
@@ -1463,7 +1469,7 @@ interface BulkActionProps {
|
|
|
1463
1469
|
style?: React__default.CSSProperties;
|
|
1464
1470
|
}
|
|
1465
1471
|
|
|
1466
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1472
|
+
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, suppressBulkEditToasts, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1467
1473
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1468
1474
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1469
1475
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1500,7 +1506,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1500
1506
|
|
|
1501
1507
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1502
1508
|
|
|
1503
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1509
|
+
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, suppressBulkEditToasts, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1504
1510
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1505
1511
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1506
1512
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/legacy/index.js
CHANGED
|
@@ -57839,6 +57839,7 @@ var InternalTableContext = React80.createContext({
|
|
|
57839
57839
|
onExpandOrCollapseAll: () => {
|
|
57840
57840
|
},
|
|
57841
57841
|
onServerSideDataRequest: void 0,
|
|
57842
|
+
suppressBulkEditToasts: false,
|
|
57842
57843
|
onTableConfigChange: () => {
|
|
57843
57844
|
},
|
|
57844
57845
|
updateServerSideDataSource: () => {
|
|
@@ -103649,7 +103650,7 @@ var BulkEditInput = (props) => {
|
|
|
103649
103650
|
}
|
|
103650
103651
|
};
|
|
103651
103652
|
var BulkEdit = React80.forwardRef(
|
|
103652
|
-
({ onReset = noop4 }, ref) => {
|
|
103653
|
+
({ onReset = noop4, suppressBulkEditToasts = false }, ref) => {
|
|
103653
103654
|
var _a;
|
|
103654
103655
|
const {
|
|
103655
103656
|
analytics,
|
|
@@ -103754,14 +103755,18 @@ var BulkEdit = React80.forwardRef(
|
|
|
103754
103755
|
await (onBulkEditUpdate == null ? void 0 : onBulkEditUpdate(bulkEditedRows).then((result) => {
|
|
103755
103756
|
if (result === void 0) {
|
|
103756
103757
|
gridApi == null ? void 0 : gridApi.refreshServerSide({ purge: true });
|
|
103757
|
-
|
|
103758
|
+
if (!suppressBulkEditToasts) {
|
|
103759
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103760
|
+
}
|
|
103758
103761
|
resetForm({});
|
|
103759
103762
|
onReset();
|
|
103760
103763
|
} else {
|
|
103761
103764
|
throw new Error(result);
|
|
103762
103765
|
}
|
|
103763
103766
|
}).catch(() => {
|
|
103764
|
-
|
|
103767
|
+
if (!suppressBulkEditToasts) {
|
|
103768
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103769
|
+
}
|
|
103765
103770
|
}));
|
|
103766
103771
|
} else {
|
|
103767
103772
|
try {
|
|
@@ -103769,11 +103774,15 @@ var BulkEdit = React80.forwardRef(
|
|
|
103769
103774
|
{ update: clientSideItemsToUpdate },
|
|
103770
103775
|
() => onBulkEditUpdate == null ? void 0 : onBulkEditUpdate(bulkEditedRows)
|
|
103771
103776
|
);
|
|
103772
|
-
|
|
103777
|
+
if (!suppressBulkEditToasts) {
|
|
103778
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103779
|
+
}
|
|
103773
103780
|
resetForm({});
|
|
103774
103781
|
onReset();
|
|
103775
103782
|
} catch (error2) {
|
|
103776
|
-
|
|
103783
|
+
if (!suppressBulkEditToasts) {
|
|
103784
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103785
|
+
}
|
|
103777
103786
|
}
|
|
103778
103787
|
}
|
|
103779
103788
|
};
|
|
@@ -103807,7 +103816,7 @@ var BulkEdit = React80.forwardRef(
|
|
|
103807
103816
|
}
|
|
103808
103817
|
);
|
|
103809
103818
|
var BulkEditPanel = ({}) => {
|
|
103810
|
-
const { contextPanel } = useInternalTableContext();
|
|
103819
|
+
const { contextPanel, suppressBulkEditToasts } = useInternalTableContext();
|
|
103811
103820
|
const I18n = useI18nContext();
|
|
103812
103821
|
const bulkEditRef = React80.useRef(null);
|
|
103813
103822
|
return /* @__PURE__ */ React80.createElement(Panel, null, /* @__PURE__ */ React80.createElement(
|
|
@@ -103820,7 +103829,14 @@ var BulkEditPanel = ({}) => {
|
|
|
103820
103829
|
}
|
|
103821
103830
|
},
|
|
103822
103831
|
/* @__PURE__ */ React80.createElement(Panel.Title, null, I18n.t("dataTable.bulkActions.editValues"))
|
|
103823
|
-
), /* @__PURE__ */ React80.createElement(Panel.Body, null, /* @__PURE__ */ React80.createElement(Panel.Section, null, /* @__PURE__ */ React80.createElement(
|
|
103832
|
+
), /* @__PURE__ */ React80.createElement(Panel.Body, null, /* @__PURE__ */ React80.createElement(Panel.Section, null, /* @__PURE__ */ React80.createElement(
|
|
103833
|
+
BulkEdit,
|
|
103834
|
+
{
|
|
103835
|
+
ref: bulkEditRef,
|
|
103836
|
+
onReset: contextPanel.hide,
|
|
103837
|
+
suppressBulkEditToasts
|
|
103838
|
+
}
|
|
103839
|
+
))), /* @__PURE__ */ React80.createElement(Panel.Footer, null, /* @__PURE__ */ React80.createElement(Panel.FooterActions, null, /* @__PURE__ */ React80.createElement(
|
|
103824
103840
|
Button,
|
|
103825
103841
|
{
|
|
103826
103842
|
key: "cancel",
|
|
@@ -108984,6 +109000,7 @@ var DataTable = ({
|
|
|
108984
109000
|
onServerSideDataRequest,
|
|
108985
109001
|
onTableConfigChange,
|
|
108986
109002
|
showExpandCollapseAllToggle,
|
|
109003
|
+
suppressBulkEditToasts,
|
|
108987
109004
|
translations: translations2 = {},
|
|
108988
109005
|
enableCellTextSelection,
|
|
108989
109006
|
localStoragePersistenceKey,
|
|
@@ -109233,6 +109250,7 @@ var DataTable = ({
|
|
|
109233
109250
|
onBulkEditUpdate,
|
|
109234
109251
|
onExpandOrCollapseAll,
|
|
109235
109252
|
onServerSideDataRequest,
|
|
109253
|
+
suppressBulkEditToasts,
|
|
109236
109254
|
onTableConfigChange: internalOnTableConfigChange,
|
|
109237
109255
|
rowSelectionRef,
|
|
109238
109256
|
expandCollapseStateRef,
|
|
@@ -112312,6 +112330,7 @@ var ClientSideDataTable = ({
|
|
|
112312
112330
|
onBulkEditUpdate,
|
|
112313
112331
|
onExpandOrCollapseAll,
|
|
112314
112332
|
onTableConfigChange,
|
|
112333
|
+
suppressBulkEditToasts,
|
|
112315
112334
|
translations: translations2 = {},
|
|
112316
112335
|
enableCellTextSelection,
|
|
112317
112336
|
localStoragePersistenceKey,
|
|
@@ -112331,6 +112350,7 @@ var ClientSideDataTable = ({
|
|
|
112331
112350
|
onExpandOrCollapseAll,
|
|
112332
112351
|
onTableConfigChange,
|
|
112333
112352
|
showExpandCollapseAllToggle: true,
|
|
112353
|
+
suppressBulkEditToasts,
|
|
112334
112354
|
translations: translations2,
|
|
112335
112355
|
localStoragePersistenceKey,
|
|
112336
112356
|
customBulkEditorFields,
|
|
@@ -116726,6 +116746,7 @@ var ServerSideDataTable = ({
|
|
|
116726
116746
|
onTableConfigChange,
|
|
116727
116747
|
enableCellTextSelection,
|
|
116728
116748
|
showExpandCollapseAllToggle,
|
|
116749
|
+
suppressBulkEditToasts,
|
|
116729
116750
|
translations: translations2 = {},
|
|
116730
116751
|
localStoragePersistenceKey,
|
|
116731
116752
|
enableCDN
|
|
@@ -116745,6 +116766,7 @@ var ServerSideDataTable = ({
|
|
|
116745
116766
|
onServerSideDataRequest,
|
|
116746
116767
|
onTableConfigChange,
|
|
116747
116768
|
showExpandCollapseAllToggle,
|
|
116769
|
+
suppressBulkEditToasts,
|
|
116748
116770
|
translations: translations2,
|
|
116749
116771
|
customBulkEditorFields,
|
|
116750
116772
|
enableCellTextSelection,
|
package/dist/modern/index.cjs
CHANGED
|
@@ -57750,6 +57750,7 @@ var InternalTableContext = React80__default.default.createContext({
|
|
|
57750
57750
|
onExpandOrCollapseAll: () => {
|
|
57751
57751
|
},
|
|
57752
57752
|
onServerSideDataRequest: void 0,
|
|
57753
|
+
suppressBulkEditToasts: false,
|
|
57753
57754
|
onTableConfigChange: () => {
|
|
57754
57755
|
},
|
|
57755
57756
|
updateServerSideDataSource: () => {
|
|
@@ -103550,7 +103551,7 @@ var BulkEditInput = (props) => {
|
|
|
103550
103551
|
}
|
|
103551
103552
|
};
|
|
103552
103553
|
var BulkEdit = React80__default.default.forwardRef(
|
|
103553
|
-
({ onReset = noop4 }, ref) => {
|
|
103554
|
+
({ onReset = noop4, suppressBulkEditToasts = false }, ref) => {
|
|
103554
103555
|
const {
|
|
103555
103556
|
analytics,
|
|
103556
103557
|
columnApi,
|
|
@@ -103652,14 +103653,18 @@ var BulkEdit = React80__default.default.forwardRef(
|
|
|
103652
103653
|
await onBulkEditUpdate?.(bulkEditedRows).then((result) => {
|
|
103653
103654
|
if (result === void 0) {
|
|
103654
103655
|
gridApi?.refreshServerSide({ purge: true });
|
|
103655
|
-
|
|
103656
|
+
if (!suppressBulkEditToasts) {
|
|
103657
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103658
|
+
}
|
|
103656
103659
|
resetForm({});
|
|
103657
103660
|
onReset();
|
|
103658
103661
|
} else {
|
|
103659
103662
|
throw new Error(result);
|
|
103660
103663
|
}
|
|
103661
103664
|
}).catch(() => {
|
|
103662
|
-
|
|
103665
|
+
if (!suppressBulkEditToasts) {
|
|
103666
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103667
|
+
}
|
|
103663
103668
|
});
|
|
103664
103669
|
} else {
|
|
103665
103670
|
try {
|
|
@@ -103667,11 +103672,15 @@ var BulkEdit = React80__default.default.forwardRef(
|
|
|
103667
103672
|
{ update: clientSideItemsToUpdate },
|
|
103668
103673
|
() => onBulkEditUpdate?.(bulkEditedRows)
|
|
103669
103674
|
);
|
|
103670
|
-
|
|
103675
|
+
if (!suppressBulkEditToasts) {
|
|
103676
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103677
|
+
}
|
|
103671
103678
|
resetForm({});
|
|
103672
103679
|
onReset();
|
|
103673
103680
|
} catch (error2) {
|
|
103674
|
-
|
|
103681
|
+
if (!suppressBulkEditToasts) {
|
|
103682
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103683
|
+
}
|
|
103675
103684
|
}
|
|
103676
103685
|
}
|
|
103677
103686
|
};
|
|
@@ -103699,7 +103708,7 @@ var BulkEdit = React80__default.default.forwardRef(
|
|
|
103699
103708
|
}
|
|
103700
103709
|
);
|
|
103701
103710
|
var BulkEditPanel = ({}) => {
|
|
103702
|
-
const { contextPanel } = useInternalTableContext();
|
|
103711
|
+
const { contextPanel, suppressBulkEditToasts } = useInternalTableContext();
|
|
103703
103712
|
const I18n = coreReact.useI18nContext();
|
|
103704
103713
|
const bulkEditRef = React80__default.default.useRef(null);
|
|
103705
103714
|
return /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
@@ -103711,7 +103720,14 @@ var BulkEditPanel = ({}) => {
|
|
|
103711
103720
|
}
|
|
103712
103721
|
},
|
|
103713
103722
|
/* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Title, null, I18n.t("dataTable.bulkActions.editValues"))
|
|
103714
|
-
), /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Body, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Section, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
103723
|
+
), /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Body, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Section, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
103724
|
+
BulkEdit,
|
|
103725
|
+
{
|
|
103726
|
+
ref: bulkEditRef,
|
|
103727
|
+
onReset: contextPanel.hide,
|
|
103728
|
+
suppressBulkEditToasts
|
|
103729
|
+
}
|
|
103730
|
+
))), /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.Footer, null, /* @__PURE__ */ React80__default.default.createElement(coreReact.Panel.FooterActions, null, /* @__PURE__ */ React80__default.default.createElement(
|
|
103715
103731
|
coreReact.Button,
|
|
103716
103732
|
{
|
|
103717
103733
|
key: "cancel",
|
|
@@ -108846,6 +108862,7 @@ var DataTable = ({
|
|
|
108846
108862
|
onServerSideDataRequest,
|
|
108847
108863
|
onTableConfigChange,
|
|
108848
108864
|
showExpandCollapseAllToggle,
|
|
108865
|
+
suppressBulkEditToasts,
|
|
108849
108866
|
translations: translations2 = {},
|
|
108850
108867
|
enableCellTextSelection,
|
|
108851
108868
|
localStoragePersistenceKey,
|
|
@@ -109091,6 +109108,7 @@ var DataTable = ({
|
|
|
109091
109108
|
onBulkEditUpdate,
|
|
109092
109109
|
onExpandOrCollapseAll,
|
|
109093
109110
|
onServerSideDataRequest,
|
|
109111
|
+
suppressBulkEditToasts,
|
|
109094
109112
|
onTableConfigChange: internalOnTableConfigChange,
|
|
109095
109113
|
rowSelectionRef,
|
|
109096
109114
|
expandCollapseStateRef,
|
|
@@ -112095,6 +112113,7 @@ var ClientSideDataTable = ({
|
|
|
112095
112113
|
onBulkEditUpdate,
|
|
112096
112114
|
onExpandOrCollapseAll,
|
|
112097
112115
|
onTableConfigChange,
|
|
112116
|
+
suppressBulkEditToasts,
|
|
112098
112117
|
translations: translations2 = {},
|
|
112099
112118
|
enableCellTextSelection,
|
|
112100
112119
|
localStoragePersistenceKey,
|
|
@@ -112114,6 +112133,7 @@ var ClientSideDataTable = ({
|
|
|
112114
112133
|
onExpandOrCollapseAll,
|
|
112115
112134
|
onTableConfigChange,
|
|
112116
112135
|
showExpandCollapseAllToggle: true,
|
|
112136
|
+
suppressBulkEditToasts,
|
|
112117
112137
|
translations: translations2,
|
|
112118
112138
|
localStoragePersistenceKey,
|
|
112119
112139
|
customBulkEditorFields,
|
|
@@ -116508,6 +116528,7 @@ var ServerSideDataTable = ({
|
|
|
116508
116528
|
onTableConfigChange,
|
|
116509
116529
|
enableCellTextSelection,
|
|
116510
116530
|
showExpandCollapseAllToggle,
|
|
116531
|
+
suppressBulkEditToasts,
|
|
116511
116532
|
translations: translations2 = {},
|
|
116512
116533
|
localStoragePersistenceKey,
|
|
116513
116534
|
enableCDN
|
|
@@ -116527,6 +116548,7 @@ var ServerSideDataTable = ({
|
|
|
116527
116548
|
onServerSideDataRequest,
|
|
116528
116549
|
onTableConfigChange,
|
|
116529
116550
|
showExpandCollapseAllToggle,
|
|
116551
|
+
suppressBulkEditToasts,
|
|
116530
116552
|
translations: translations2,
|
|
116531
116553
|
customBulkEditorFields,
|
|
116532
116554
|
enableCellTextSelection,
|
package/dist/modern/index.d.cts
CHANGED
|
@@ -1162,6 +1162,11 @@ interface DataTableProps {
|
|
|
1162
1162
|
* the updated values
|
|
1163
1163
|
*/
|
|
1164
1164
|
onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
|
|
1165
|
+
/**
|
|
1166
|
+
* When true, suppresses the success and error toast messages
|
|
1167
|
+
* that are normally shown after bulk edit operations
|
|
1168
|
+
*/
|
|
1169
|
+
suppressBulkEditToasts?: boolean;
|
|
1165
1170
|
localStoragePersistenceKey?: string;
|
|
1166
1171
|
showExpandCollapseAllToggle?: boolean;
|
|
1167
1172
|
translations?: DataTableTranslations;
|
|
@@ -1380,6 +1385,7 @@ interface InternalTableContext {
|
|
|
1380
1385
|
filterStorage: IFilterStorage;
|
|
1381
1386
|
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1382
1387
|
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1388
|
+
suppressBulkEditToasts?: DataTableProps['suppressBulkEditToasts'];
|
|
1383
1389
|
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1384
1390
|
localStoragePersistenceKey?: string;
|
|
1385
1391
|
onExpandOrCollapseAll?: (expanded: boolean) => void;
|
|
@@ -1463,7 +1469,7 @@ interface BulkActionProps {
|
|
|
1463
1469
|
style?: React__default.CSSProperties;
|
|
1464
1470
|
}
|
|
1465
1471
|
|
|
1466
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1472
|
+
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, suppressBulkEditToasts, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1467
1473
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1468
1474
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1469
1475
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1500,7 +1506,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1500
1506
|
|
|
1501
1507
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1502
1508
|
|
|
1503
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1509
|
+
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, suppressBulkEditToasts, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1504
1510
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1505
1511
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1506
1512
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -1162,6 +1162,11 @@ interface DataTableProps {
|
|
|
1162
1162
|
* the updated values
|
|
1163
1163
|
*/
|
|
1164
1164
|
onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
|
|
1165
|
+
/**
|
|
1166
|
+
* When true, suppresses the success and error toast messages
|
|
1167
|
+
* that are normally shown after bulk edit operations
|
|
1168
|
+
*/
|
|
1169
|
+
suppressBulkEditToasts?: boolean;
|
|
1165
1170
|
localStoragePersistenceKey?: string;
|
|
1166
1171
|
showExpandCollapseAllToggle?: boolean;
|
|
1167
1172
|
translations?: DataTableTranslations;
|
|
@@ -1380,6 +1385,7 @@ interface InternalTableContext {
|
|
|
1380
1385
|
filterStorage: IFilterStorage;
|
|
1381
1386
|
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1382
1387
|
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1388
|
+
suppressBulkEditToasts?: DataTableProps['suppressBulkEditToasts'];
|
|
1383
1389
|
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1384
1390
|
localStoragePersistenceKey?: string;
|
|
1385
1391
|
onExpandOrCollapseAll?: (expanded: boolean) => void;
|
|
@@ -1463,7 +1469,7 @@ interface BulkActionProps {
|
|
|
1463
1469
|
style?: React__default.CSSProperties;
|
|
1464
1470
|
}
|
|
1465
1471
|
|
|
1466
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1472
|
+
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onTableConfigChange, suppressBulkEditToasts, translations, enableCellTextSelection, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1467
1473
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1468
1474
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1469
1475
|
ConfigPanelButton: React__default.FC<{}>;
|
|
@@ -1500,7 +1506,7 @@ declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => Rea
|
|
|
1500
1506
|
|
|
1501
1507
|
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1502
1508
|
|
|
1503
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1509
|
+
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onExpandOrCollapseAll, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, showExpandCollapseAllToggle, suppressBulkEditToasts, translations, localStoragePersistenceKey, enableCDN, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1504
1510
|
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1505
1511
|
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1506
1512
|
ConfigPanelButton: React__default.FC<{}>;
|
package/dist/modern/index.js
CHANGED
|
@@ -57737,6 +57737,7 @@ var InternalTableContext = React80.createContext({
|
|
|
57737
57737
|
onExpandOrCollapseAll: () => {
|
|
57738
57738
|
},
|
|
57739
57739
|
onServerSideDataRequest: void 0,
|
|
57740
|
+
suppressBulkEditToasts: false,
|
|
57740
57741
|
onTableConfigChange: () => {
|
|
57741
57742
|
},
|
|
57742
57743
|
updateServerSideDataSource: () => {
|
|
@@ -103537,7 +103538,7 @@ var BulkEditInput = (props) => {
|
|
|
103537
103538
|
}
|
|
103538
103539
|
};
|
|
103539
103540
|
var BulkEdit = React80.forwardRef(
|
|
103540
|
-
({ onReset = noop4 }, ref) => {
|
|
103541
|
+
({ onReset = noop4, suppressBulkEditToasts = false }, ref) => {
|
|
103541
103542
|
const {
|
|
103542
103543
|
analytics,
|
|
103543
103544
|
columnApi,
|
|
@@ -103639,14 +103640,18 @@ var BulkEdit = React80.forwardRef(
|
|
|
103639
103640
|
await onBulkEditUpdate?.(bulkEditedRows).then((result) => {
|
|
103640
103641
|
if (result === void 0) {
|
|
103641
103642
|
gridApi?.refreshServerSide({ purge: true });
|
|
103642
|
-
|
|
103643
|
+
if (!suppressBulkEditToasts) {
|
|
103644
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103645
|
+
}
|
|
103643
103646
|
resetForm({});
|
|
103644
103647
|
onReset();
|
|
103645
103648
|
} else {
|
|
103646
103649
|
throw new Error(result);
|
|
103647
103650
|
}
|
|
103648
103651
|
}).catch(() => {
|
|
103649
|
-
|
|
103652
|
+
if (!suppressBulkEditToasts) {
|
|
103653
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103654
|
+
}
|
|
103650
103655
|
});
|
|
103651
103656
|
} else {
|
|
103652
103657
|
try {
|
|
@@ -103654,11 +103659,15 @@ var BulkEdit = React80.forwardRef(
|
|
|
103654
103659
|
{ update: clientSideItemsToUpdate },
|
|
103655
103660
|
() => onBulkEditUpdate?.(bulkEditedRows)
|
|
103656
103661
|
);
|
|
103657
|
-
|
|
103662
|
+
if (!suppressBulkEditToasts) {
|
|
103663
|
+
showToast.success(I18n.t("dataTable.bulkActions.success"));
|
|
103664
|
+
}
|
|
103658
103665
|
resetForm({});
|
|
103659
103666
|
onReset();
|
|
103660
103667
|
} catch (error2) {
|
|
103661
|
-
|
|
103668
|
+
if (!suppressBulkEditToasts) {
|
|
103669
|
+
showToast.error(I18n.t("dataTable.bulkActions.error"));
|
|
103670
|
+
}
|
|
103662
103671
|
}
|
|
103663
103672
|
}
|
|
103664
103673
|
};
|
|
@@ -103686,7 +103695,7 @@ var BulkEdit = React80.forwardRef(
|
|
|
103686
103695
|
}
|
|
103687
103696
|
);
|
|
103688
103697
|
var BulkEditPanel = ({}) => {
|
|
103689
|
-
const { contextPanel } = useInternalTableContext();
|
|
103698
|
+
const { contextPanel, suppressBulkEditToasts } = useInternalTableContext();
|
|
103690
103699
|
const I18n = useI18nContext();
|
|
103691
103700
|
const bulkEditRef = React80.useRef(null);
|
|
103692
103701
|
return /* @__PURE__ */ React80.createElement(Panel, null, /* @__PURE__ */ React80.createElement(
|
|
@@ -103698,7 +103707,14 @@ var BulkEditPanel = ({}) => {
|
|
|
103698
103707
|
}
|
|
103699
103708
|
},
|
|
103700
103709
|
/* @__PURE__ */ React80.createElement(Panel.Title, null, I18n.t("dataTable.bulkActions.editValues"))
|
|
103701
|
-
), /* @__PURE__ */ React80.createElement(Panel.Body, null, /* @__PURE__ */ React80.createElement(Panel.Section, null, /* @__PURE__ */ React80.createElement(
|
|
103710
|
+
), /* @__PURE__ */ React80.createElement(Panel.Body, null, /* @__PURE__ */ React80.createElement(Panel.Section, null, /* @__PURE__ */ React80.createElement(
|
|
103711
|
+
BulkEdit,
|
|
103712
|
+
{
|
|
103713
|
+
ref: bulkEditRef,
|
|
103714
|
+
onReset: contextPanel.hide,
|
|
103715
|
+
suppressBulkEditToasts
|
|
103716
|
+
}
|
|
103717
|
+
))), /* @__PURE__ */ React80.createElement(Panel.Footer, null, /* @__PURE__ */ React80.createElement(Panel.FooterActions, null, /* @__PURE__ */ React80.createElement(
|
|
103702
103718
|
Button,
|
|
103703
103719
|
{
|
|
103704
103720
|
key: "cancel",
|
|
@@ -108833,6 +108849,7 @@ var DataTable = ({
|
|
|
108833
108849
|
onServerSideDataRequest,
|
|
108834
108850
|
onTableConfigChange,
|
|
108835
108851
|
showExpandCollapseAllToggle,
|
|
108852
|
+
suppressBulkEditToasts,
|
|
108836
108853
|
translations: translations2 = {},
|
|
108837
108854
|
enableCellTextSelection,
|
|
108838
108855
|
localStoragePersistenceKey,
|
|
@@ -109078,6 +109095,7 @@ var DataTable = ({
|
|
|
109078
109095
|
onBulkEditUpdate,
|
|
109079
109096
|
onExpandOrCollapseAll,
|
|
109080
109097
|
onServerSideDataRequest,
|
|
109098
|
+
suppressBulkEditToasts,
|
|
109081
109099
|
onTableConfigChange: internalOnTableConfigChange,
|
|
109082
109100
|
rowSelectionRef,
|
|
109083
109101
|
expandCollapseStateRef,
|
|
@@ -112082,6 +112100,7 @@ var ClientSideDataTable = ({
|
|
|
112082
112100
|
onBulkEditUpdate,
|
|
112083
112101
|
onExpandOrCollapseAll,
|
|
112084
112102
|
onTableConfigChange,
|
|
112103
|
+
suppressBulkEditToasts,
|
|
112085
112104
|
translations: translations2 = {},
|
|
112086
112105
|
enableCellTextSelection,
|
|
112087
112106
|
localStoragePersistenceKey,
|
|
@@ -112101,6 +112120,7 @@ var ClientSideDataTable = ({
|
|
|
112101
112120
|
onExpandOrCollapseAll,
|
|
112102
112121
|
onTableConfigChange,
|
|
112103
112122
|
showExpandCollapseAllToggle: true,
|
|
112123
|
+
suppressBulkEditToasts,
|
|
112104
112124
|
translations: translations2,
|
|
112105
112125
|
localStoragePersistenceKey,
|
|
112106
112126
|
customBulkEditorFields,
|
|
@@ -116495,6 +116515,7 @@ var ServerSideDataTable = ({
|
|
|
116495
116515
|
onTableConfigChange,
|
|
116496
116516
|
enableCellTextSelection,
|
|
116497
116517
|
showExpandCollapseAllToggle,
|
|
116518
|
+
suppressBulkEditToasts,
|
|
116498
116519
|
translations: translations2 = {},
|
|
116499
116520
|
localStoragePersistenceKey,
|
|
116500
116521
|
enableCDN
|
|
@@ -116514,6 +116535,7 @@ var ServerSideDataTable = ({
|
|
|
116514
116535
|
onServerSideDataRequest,
|
|
116515
116536
|
onTableConfigChange,
|
|
116516
116537
|
showExpandCollapseAllToggle,
|
|
116538
|
+
suppressBulkEditToasts,
|
|
116517
116539
|
translations: translations2,
|
|
116518
116540
|
customBulkEditorFields,
|
|
116519
116541
|
enableCellTextSelection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.40.0",
|
|
4
4
|
"description": "Complex data grid built on top of ag-grid, with DST components and styles.",
|
|
5
5
|
"author": "Procore Technologies",
|
|
6
6
|
"homepage": "https://github.com/procore/core/tree/main/packages/data-table",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@procore/core-css": "10.17.0",
|
|
109
109
|
"@procore/core-icons": "^12.12.0",
|
|
110
110
|
"@procore/core-prettier": "10.2.0",
|
|
111
|
-
"@procore/core-react": "^12.34.
|
|
111
|
+
"@procore/core-react": "^12.34.1",
|
|
112
112
|
"@procore/eslint-config": "10.0.0",
|
|
113
113
|
"@procore/globalization-toolkit": "3.1.0",
|
|
114
114
|
"@procore/labs-financials-utils": "4.3.1",
|