@churchillliving/se-ui-toolkit 6.53.169 → 6.53.170
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/bundles/churchillliving-se-ui-toolkit.umd.js +14 -1
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/services/grid.service.js +14 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +13 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/grid.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2435,7 +2435,20 @@
|
|
|
2435
2435
|
GridService.prototype.getFormattedDate = function (value) {
|
|
2436
2436
|
return new Date(value + " Z").toISOString().slice(0, 10);
|
|
2437
2437
|
};
|
|
2438
|
-
// get allowSave true row
|
|
2438
|
+
// get allowSave true row list
|
|
2439
|
+
GridService.prototype.getAllowSaveRowlist = function (rowsData, columns) {
|
|
2440
|
+
if (rowsData === void 0) { rowsData = []; }
|
|
2441
|
+
columns.forEach(function (column) {
|
|
2442
|
+
if (!column.allowSave) {
|
|
2443
|
+
rowsData.forEach(function (row) {
|
|
2444
|
+
var _a;
|
|
2445
|
+
delete row[(_a = column.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()];
|
|
2446
|
+
});
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
return rowsData;
|
|
2450
|
+
};
|
|
2451
|
+
// get allowSave true || undefine row
|
|
2439
2452
|
GridService.prototype.getAllowSaveRow = function (rowInfo, columns) {
|
|
2440
2453
|
if (rowInfo === void 0) { rowInfo = {}; }
|
|
2441
2454
|
var row = Object.assign({}, rowInfo);
|