@churchillliving/se-ui-toolkit 6.53.13 → 6.53.15
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 +8 -9
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +9 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js +8 -9
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -3576,21 +3576,21 @@ class GridComponent {
|
|
|
3576
3576
|
openGridDialog(column, row) {
|
|
3577
3577
|
this.onClickEvent(column, row);
|
|
3578
3578
|
setTimeout(() => {
|
|
3579
|
-
var _a, _b, _c;
|
|
3579
|
+
var _a, _b, _c, _d;
|
|
3580
3580
|
if (this.setDialogData) {
|
|
3581
|
-
column['parentDialogData'] = column.data.data;
|
|
3581
|
+
column['parentDialogData'] = (_a = column.data) === null || _a === void 0 ? void 0 : _a.data;
|
|
3582
3582
|
this.setDialogData = false;
|
|
3583
3583
|
}
|
|
3584
3584
|
if (column.data && column.data.data && row[column.field + '_obj']) {
|
|
3585
|
-
column.data.data = (
|
|
3585
|
+
column.data.data = (_b = row[column.field + '_obj']) === null || _b === void 0 ? void 0 : _b.dialogData;
|
|
3586
3586
|
}
|
|
3587
3587
|
if (column.component && column.data && this.rowClickData) {
|
|
3588
3588
|
const keys = Object.keys(this.rowClickData);
|
|
3589
3589
|
column.data.data = autoSetLookupData(column.parentDialogData, this.rowClickData);
|
|
3590
3590
|
const ref = this.dialogService.open(column.component, column.data);
|
|
3591
|
-
const componentName = (
|
|
3591
|
+
const componentName = (_c = column.component) === null || _c === void 0 ? void 0 : _c.name;
|
|
3592
3592
|
if (componentName) {
|
|
3593
|
-
this.pageLoggerService.savePageLoggerInfo((
|
|
3593
|
+
this.pageLoggerService.savePageLoggerInfo((_d = this.router.url) === null || _d === void 0 ? void 0 : _d.substring(1), componentName);
|
|
3594
3594
|
}
|
|
3595
3595
|
ref.onClose.subscribe((data) => {
|
|
3596
3596
|
if (data && column.onReturn) {
|
|
@@ -4046,11 +4046,10 @@ class GridComponent {
|
|
|
4046
4046
|
this.rowActionEvents(selectedRow);
|
|
4047
4047
|
this.browserCloseEvent(false);
|
|
4048
4048
|
if (row.isNew) {
|
|
4049
|
-
if (this.addDataKeyValue) {
|
|
4050
|
-
row['id'] = selectedRow['id'];
|
|
4051
|
-
}
|
|
4052
4049
|
const { isNew } = row, newRowObj = __rest(row, ["isNew"]);
|
|
4053
|
-
|
|
4050
|
+
if (!this.addDataKeyValue) {
|
|
4051
|
+
delete newRowObj[this.dataKey];
|
|
4052
|
+
}
|
|
4054
4053
|
if (this.saveAllRecord) {
|
|
4055
4054
|
this.saveRecordArray.push(newRowObj);
|
|
4056
4055
|
}
|