sccoreui 6.1.38 → 6.1.39
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.
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
function BulkEditAction({ props }) {
|
|
5
|
-
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const { dynamicText } = props;
|
|
6
7
|
const onSave = () => {
|
|
7
8
|
if (!(props === null || props === void 0 ? void 0 : props.saveBulkEdit))
|
|
8
9
|
return;
|
|
@@ -13,6 +14,6 @@ function BulkEditAction({ props }) {
|
|
|
13
14
|
return;
|
|
14
15
|
props === null || props === void 0 ? void 0 : props.discardBulkEdit();
|
|
15
16
|
};
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex " }, { children: [(0, jsx_runtime_1.jsx)("button", Object.assign({ className: "bg-white", onClick: onDiscard }, { children: "Discard" })), (0, jsx_runtime_1.jsx)("button", Object.assign({ className: "bg-white", onClick: onSave }, { children: "Save Changes" }))] })));
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex " }, { children: [(0, jsx_runtime_1.jsx)("button", Object.assign({ className: "bg-white", onClick: onDiscard }, { children: ((_a = dynamicText === null || dynamicText === void 0 ? void 0 : dynamicText.bulkEditAction) === null || _a === void 0 ? void 0 : _a.discard) || "Discard" })), (0, jsx_runtime_1.jsx)("button", Object.assign({ className: "bg-white", onClick: onSave }, { children: ((_b = dynamicText === null || dynamicText === void 0 ? void 0 : dynamicText.bulkEditAction) === null || _b === void 0 ? void 0 : _b.save) || "Save Changes" }))] })));
|
|
17
18
|
}
|
|
18
19
|
exports.default = BulkEditAction;
|
|
@@ -117,7 +117,8 @@ const fillOperation = (params, api, parentNode, editedRecords, setEditedRecords)
|
|
|
117
117
|
}
|
|
118
118
|
const schemaForEdit = {
|
|
119
119
|
row: rowData,
|
|
120
|
-
field: []
|
|
120
|
+
field: [],
|
|
121
|
+
isCustomAttribute: columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.isCustomAttribute
|
|
121
122
|
};
|
|
122
123
|
if (!((_c = schemaForEdit === null || schemaForEdit === void 0 ? void 0 : schemaForEdit.field) === null || _c === void 0 ? void 0 : _c.includes(columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field))) {
|
|
123
124
|
(_d = schemaForEdit === null || schemaForEdit === void 0 ? void 0 : schemaForEdit.field) === null || _d === void 0 ? void 0 : _d.push(columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field);
|