@churchillliving/se-ui-toolkit 6.53.310 → 6.53.311
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 +10 -3
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +11 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js +10 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -4310,6 +4310,7 @@ class GridComponent {
|
|
|
4310
4310
|
*/
|
|
4311
4311
|
onRowEditSave(selectedRow) {
|
|
4312
4312
|
let automCompleteTempData = [];
|
|
4313
|
+
let lookupInfo = {};
|
|
4313
4314
|
this.selectedColumns.forEach((column) => {
|
|
4314
4315
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4315
4316
|
delete selectedRow[column.field + '-data'];
|
|
@@ -4401,6 +4402,7 @@ class GridComponent {
|
|
|
4401
4402
|
if (column.type === EGridColumnType.LOOKUP_INPUT &&
|
|
4402
4403
|
column.field &&
|
|
4403
4404
|
typeof row[column.field] === 'object') {
|
|
4405
|
+
lookupInfo = Object.assign({}, row[column.field]);
|
|
4404
4406
|
const newRow = Object.assign({}, row);
|
|
4405
4407
|
newRow[column.field] = (_a = newRow[column.field]) === null || _a === void 0 ? void 0 : _a.value;
|
|
4406
4408
|
row = Object.assign({}, newRow);
|
|
@@ -4497,12 +4499,17 @@ class GridComponent {
|
|
|
4497
4499
|
}
|
|
4498
4500
|
}
|
|
4499
4501
|
}
|
|
4500
|
-
|
|
4501
|
-
if (column.type === EGridColumnType.AUTOCOMPLETE &&
|
|
4502
|
+
else if (column.type === EGridColumnType.AUTOCOMPLETE &&
|
|
4502
4503
|
selectedRow[column.field]) {
|
|
4504
|
+
// set autocompelet array data after save row
|
|
4503
4505
|
selectedRow[column.field] = automCompleteTempData;
|
|
4504
4506
|
}
|
|
4505
|
-
if (column.type === EGridColumnType.
|
|
4507
|
+
else if (column.type === EGridColumnType.LOOKUP_INPUT &&
|
|
4508
|
+
selectedRow[column.field]) {
|
|
4509
|
+
// set LOOKUP_INPUT data after save row
|
|
4510
|
+
selectedRow[column.field] = lookupInfo;
|
|
4511
|
+
}
|
|
4512
|
+
else if (column.type === EGridColumnType.DROPDOWN &&
|
|
4506
4513
|
column.optionLabel &&
|
|
4507
4514
|
column.optionValue) {
|
|
4508
4515
|
this.setDropdownValue(column, selectedRow);
|