@churchillliving/se-ui-toolkit 6.53.120 → 6.53.122

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.
@@ -3287,8 +3287,6 @@
3287
3287
  this.inEditMode = false;
3288
3288
  this.saveRecordArray = [];
3289
3289
  this.disabledSaveBtn = false;
3290
- this.setDialogData = true;
3291
- this.setDialogField = '';
3292
3290
  this.editModeChecked = true;
3293
3291
  this.editModeunCkecked = false;
3294
3292
  this.calendarFormat = 'mm/dd/y';
@@ -3380,6 +3378,7 @@
3380
3378
  // Displays total number of records
3381
3379
  this.totalRecords = 0;
3382
3380
  this.showconfirmDialog = true;
3381
+ this.saveAlldata = false;
3383
3382
  this.columnActions = [];
3384
3383
  // Decides the grid's behavior either for client side or server side events
3385
3384
  this.useServerSideEvents = false;
@@ -4093,22 +4092,18 @@
4093
4092
  var _this = this;
4094
4093
  this.onClickEvent(column, row);
4095
4094
  setTimeout(function () {
4096
- var _a, _b, _c, _d;
4095
+ var _a, _b, _c;
4097
4096
  _this.rowClickData = row;
4098
- if (_this.setDialogData || _this.setDialogField !== column.field) {
4099
- column['parentDialogData'] = (_a = column.data) === null || _a === void 0 ? void 0 : _a.data;
4100
- _this.setDialogData = false;
4101
- _this.setDialogField = column.field;
4102
- }
4103
4097
  if (column.data && column.data.data && row[column.field + '_obj']) {
4104
- column.data.data = (_b = row[column.field + '_obj']) === null || _b === void 0 ? void 0 : _b.dialogData;
4098
+ column.data.data = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.dialogData;
4105
4099
  }
4106
4100
  if (column.component && column.data && _this.rowClickData) {
4107
- column.data.data = autoSetLookupData(column.parentDialogData, _this.rowClickData);
4108
- var ref = _this.dialogService.open(column.component, column.data);
4109
- var componentName = (_c = column.component) === null || _c === void 0 ? void 0 : _c.name;
4101
+ var data = Object.assign({}, column.data);
4102
+ data.data = autoSetLookupData(column.data.data, _this.rowClickData);
4103
+ var ref = _this.dialogService.open(column.component, data);
4104
+ var componentName = (_b = column.component) === null || _b === void 0 ? void 0 : _b.name;
4110
4105
  if (componentName) {
4111
- _this.pageLoggerService.savePageLoggerInfo((_d = _this.router.url) === null || _d === void 0 ? void 0 : _d.substring(1), componentName);
4106
+ _this.pageLoggerService.savePageLoggerInfo((_c = _this.router.url) === null || _c === void 0 ? void 0 : _c.substring(1), componentName);
4112
4107
  }
4113
4108
  ref.onClose.subscribe(function (data) {
4114
4109
  if (data && column.onReturn) {
@@ -4538,7 +4533,7 @@
4538
4533
  newRow[column.field] = (_a = newRow[column.field]) === null || _a === void 0 ? void 0 : _a.value;
4539
4534
  row = Object.assign({}, newRow);
4540
4535
  }
4541
- if ((column.allowSave === true || column.allowSave === undefined)) {
4536
+ if ((column.allowSave === true || column.allowSave === undefined || _this.saveAlldata)) {
4542
4537
  obj[column.field] = row[column.field];
4543
4538
  if (column.type === exports.EGridColumnType.DIALOG &&
4544
4539
  ((_b = column.filter) === null || _b === void 0 ? void 0 : _b.type) === 'calendar') {
@@ -4563,7 +4558,7 @@
4563
4558
  }
4564
4559
  }
4565
4560
  else if (row.isNew &&
4566
- (column.allowSave === false || column.editable === false)) {
4561
+ (column.allowSave === false || column.editable === false || !_this.saveAlldata)) {
4567
4562
  delete row[column.field];
4568
4563
  }
4569
4564
  });
@@ -5554,6 +5549,7 @@
5554
5549
  showCurrentPageReport: [{ type: i0.Input }],
5555
5550
  totalRecords: [{ type: i0.Input }],
5556
5551
  showconfirmDialog: [{ type: i0.Input }],
5552
+ saveAlldata: [{ type: i0.Input }],
5557
5553
  defaultRows: [{ type: i0.Input }],
5558
5554
  columnActions: [{ type: i0.Input }],
5559
5555
  useServerSideEvents: [{ type: i0.Input }],