@churchillliving/se-ui-toolkit 6.53.151 → 6.53.152
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 -0
- 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 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js +13 -0
- 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,6 +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
|
|
2439
|
+
GridService.prototype.getAllowSaveRow = function (rowInfo, columns) {
|
|
2440
|
+
if (rowInfo === void 0) { rowInfo = {}; }
|
|
2441
|
+
var row = Object.assign({}, rowInfo);
|
|
2442
|
+
columns.forEach(function (column) {
|
|
2443
|
+
if (column.allowSave == false) {
|
|
2444
|
+
var key = Object.keys(row).find(function (x) { var _a; return x.toLowerCase() === ((_a = column.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()); });
|
|
2445
|
+
if (key) {
|
|
2446
|
+
delete row[key];
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
return row;
|
|
2451
|
+
};
|
|
2438
2452
|
// add simple grid column without
|
|
2439
2453
|
GridService.prototype.addColumn = function (columnInfo) {
|
|
2440
2454
|
if (columnInfo.type === exports.EGridColumnType.DROPDOWN) {
|