@churchillliving/se-ui-toolkit 6.53.234 → 6.53.236

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.
@@ -2541,6 +2541,7 @@
2541
2541
  if (rowsData === void 0) { rowsData = []; }
2542
2542
  columns.forEach(function (column) {
2543
2543
  if (column.allowSave === false) {
2544
+ rowsData = _this.setDataFields(rowsData);
2544
2545
  rowsData.forEach(function (row) {
2545
2546
  var _a;
2546
2547
  var obj = Object.keys(row);
@@ -3554,6 +3555,7 @@
3554
3555
  this.globalData = [];
3555
3556
  this.sortDisabled = false;
3556
3557
  this.showRefreshBtn = false;
3558
+ this.hideRefreshBtn = true;
3557
3559
  // Stores selected columns
3558
3560
  this._selectedColumns = [];
3559
3561
  // Boolean prop to allow horizontal Scroll on Table.
@@ -5926,6 +5928,7 @@
5926
5928
  setGridRefreshTime: [{ type: i0.Input }],
5927
5929
  addDataKeyValue: [{ type: i0.Input }],
5928
5930
  showRefreshBtn: [{ type: i0.Input }],
5931
+ hideRefreshBtn: [{ type: i0.Input }],
5929
5932
  horizontalScroll: [{ type: i0.Input }],
5930
5933
  hideDeleteBtn: [{ type: i0.Input }],
5931
5934
  hideEditBtn: [{ type: i0.Input }],
@@ -7036,7 +7039,6 @@
7036
7039
  }
7037
7040
  };
7038
7041
  FormComponent.prototype.onSaveForm = function () {
7039
- var e_1, _s;
7040
7042
  var _this = this;
7041
7043
  var _a, _b, _c, _d, _e;
7042
7044
  var validity = true;
@@ -7085,31 +7087,15 @@
7085
7087
  });
7086
7088
  if (validity) {
7087
7089
  // Save grid on formSave Button
7088
- var saveAllGrid = document.getElementById('saveAllGridValues');
7089
- var getBtns = (_c = (_b = this.el) === null || _b === void 0 ? void 0 : _b.nativeElement) === null || _c === void 0 ? void 0 : _c.getElementsByClassName('saveRow');
7090
- if (saveAllGrid) {
7091
- saveAllGrid.click();
7092
- }
7093
- else if (getBtns && getBtns.length > 0) {
7094
- try {
7095
- for (var getBtns_1 = __values(getBtns), getBtns_1_1 = getBtns_1.next(); !getBtns_1_1.done; getBtns_1_1 = getBtns_1.next()) {
7096
- var btn = getBtns_1_1.value;
7097
- btn === null || btn === void 0 ? void 0 : btn.click();
7098
- }
7099
- }
7100
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
7101
- finally {
7102
- try {
7103
- if (getBtns_1_1 && !getBtns_1_1.done && (_s = getBtns_1.return)) _s.call(getBtns_1);
7104
- }
7105
- finally { if (e_1) throw e_1.error; }
7106
- }
7107
- }
7090
+ var saveAllGrid_1 = document.getElementById('saveAllGridValues');
7091
+ var getBtns_1 = (_c = (_b = this.el) === null || _b === void 0 ? void 0 : _b.nativeElement) === null || _c === void 0 ? void 0 : _c.getElementsByClassName('saveRow');
7092
+ var customComponent_1 = false;
7108
7093
  var tempValue_1 = [];
7109
7094
  // set value as 1 or 0 in case of checkbox
7110
7095
  (_d = this.form.formSections) === null || _d === void 0 ? void 0 : _d.forEach(function (formSection) {
7111
7096
  if (formSection.fields && validity) {
7112
7097
  formSection.fields.forEach(function (field) {
7098
+ var e_1, _s;
7113
7099
  var _a, _b, _c, _d, _e, _f, _g;
7114
7100
  if ((field.value === '') || (field.value === undefined)) {
7115
7101
  field.value = null;
@@ -7133,13 +7119,35 @@
7133
7119
  if (field.control === exports.EFormControl.CHECKBOX) {
7134
7120
  field.value = field.value ? 1 : 0;
7135
7121
  }
7122
+ // Save grid on formSave Button
7123
+ if (field.control === exports.EFormControl.COMPONENT && !customComponent_1) {
7124
+ customComponent_1 = true;
7125
+ if (saveAllGrid_1) {
7126
+ saveAllGrid_1.click();
7127
+ }
7128
+ else if (getBtns_1 && getBtns_1.length > 0) {
7129
+ try {
7130
+ for (var getBtns_2 = __values(getBtns_1), getBtns_2_1 = getBtns_2.next(); !getBtns_2_1.done; getBtns_2_1 = getBtns_2.next()) {
7131
+ var btn = getBtns_2_1.value;
7132
+ btn === null || btn === void 0 ? void 0 : btn.click();
7133
+ }
7134
+ }
7135
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
7136
+ finally {
7137
+ try {
7138
+ if (getBtns_2_1 && !getBtns_2_1.done && (_s = getBtns_2.return)) _s.call(getBtns_2);
7139
+ }
7140
+ finally { if (e_1) throw e_1.error; }
7141
+ }
7142
+ }
7143
+ }
7136
7144
  });
7137
7145
  }
7138
7146
  });
7139
7147
  this.browserTabCloseEvent(false);
7140
7148
  setTimeout(function () {
7141
7149
  _this.saveForm.emit(_this.form.formSections);
7142
- }, saveAllGrid ? 80 : 0);
7150
+ }, saveAllGrid_1 ? 80 : 0);
7143
7151
  (_e = this.form.formSections) === null || _e === void 0 ? void 0 : _e.forEach(function (formSection) {
7144
7152
  if (formSection.fields) {
7145
7153
  formSection.fields.forEach(function (field) {