@churchillliving/se-ui-toolkit 6.53.429 → 6.53.430
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 -8
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +16 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js +15 -9
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/grid/grid.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4554,10 +4554,11 @@ class GridComponent {
|
|
|
4554
4554
|
this.rowActionEvents(selectedRow);
|
|
4555
4555
|
this.browserCloseEvent(false);
|
|
4556
4556
|
if (row.isNew || row.isnew) {
|
|
4557
|
-
|
|
4557
|
+
let { isNew, isnew } = row, newRowObj = __rest(row, ["isNew", "isnew"]);
|
|
4558
4558
|
if (!this.addDataKeyValue) {
|
|
4559
4559
|
delete newRowObj[this.dataKey];
|
|
4560
4560
|
}
|
|
4561
|
+
newRowObj = this.setRowsData(newRowObj);
|
|
4561
4562
|
if (this.saveAllRecord) {
|
|
4562
4563
|
this.saveRecordArray.push(newRowObj);
|
|
4563
4564
|
}
|
|
@@ -5556,22 +5557,27 @@ class GridComponent {
|
|
|
5556
5557
|
setRowsData(rowsData) {
|
|
5557
5558
|
if (Array.isArray(rowsData)) {
|
|
5558
5559
|
rowsData.forEach((row) => {
|
|
5559
|
-
|
|
5560
|
-
if ((keys === null || keys === void 0 ? void 0 : keys.length) > 0) {
|
|
5561
|
-
keys.forEach((key) => {
|
|
5562
|
-
if (key.includes('_obj')) {
|
|
5563
|
-
delete row[key];
|
|
5564
|
-
}
|
|
5565
|
-
});
|
|
5566
|
-
}
|
|
5560
|
+
row = this.removeRowObj(row);
|
|
5567
5561
|
row = this.gridService.setRowValue(row);
|
|
5568
5562
|
});
|
|
5569
5563
|
}
|
|
5570
5564
|
else {
|
|
5565
|
+
rowsData = this.removeRowObj(rowsData);
|
|
5571
5566
|
rowsData = this.gridService.setRowValue(rowsData);
|
|
5572
5567
|
}
|
|
5573
5568
|
return rowsData;
|
|
5574
5569
|
}
|
|
5570
|
+
removeRowObj(row) {
|
|
5571
|
+
const keys = Object.keys(row);
|
|
5572
|
+
if ((keys === null || keys === void 0 ? void 0 : keys.length) > 0) {
|
|
5573
|
+
keys.forEach((key) => {
|
|
5574
|
+
if (key.includes('_obj')) {
|
|
5575
|
+
delete row[key];
|
|
5576
|
+
}
|
|
5577
|
+
});
|
|
5578
|
+
}
|
|
5579
|
+
return row;
|
|
5580
|
+
}
|
|
5575
5581
|
applyDropdownFilter(filter, event) {
|
|
5576
5582
|
filter(event.target);
|
|
5577
5583
|
}
|