@churchillliving/se-ui-toolkit 6.53.521 → 6.53.523

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.
@@ -5120,7 +5120,7 @@ class GridComponent {
5120
5120
  const ref = this.openLookupDialog(obj, row);
5121
5121
  draggableDialog((column === null || column === void 0 ? void 0 : column.field) ? column === null || column === void 0 ? void 0 : column.field : column === null || column === void 0 ? void 0 : column.header);
5122
5122
  ref.onClose.subscribe((res) => {
5123
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5123
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
5124
5124
  if (res) {
5125
5125
  let value = setDialogResponse(column, column.lookupControl, res);
5126
5126
  res = objConvertToLower(res);
@@ -5167,8 +5167,16 @@ class GridComponent {
5167
5167
  row[column.field + '_obj'] = Object.assign(Object.assign({}, row[column.field + '_obj']), { text: row[column.field] });
5168
5168
  row[column.field] = (_k = row[column.field]) === null || _k === void 0 ? void 0 : _k.value;
5169
5169
  }
5170
- else if (!column.displayField) {
5171
- row[column.field + '_obj'] = Object.assign(Object.assign({}, row[column.field + '_obj']), { text: { text: res[(_l = column.field) === null || _l === void 0 ? void 0 : _l.toLowerCase()], value: res[(_m = column.field) === null || _m === void 0 ? void 0 : _m.toLowerCase()] } });
5170
+ else if (column.displayField) {
5171
+ if (row[column.field + '_obj']) {
5172
+ row[column.field + '_obj'] = Object.assign(Object.assign({}, row[column.field + '_obj']), { text: { text: row[(_l = column.displayField) === null || _l === void 0 ? void 0 : _l.toLowerCase()], value: row[(_m = column.field) === null || _m === void 0 ? void 0 : _m.toLowerCase()] } });
5173
+ }
5174
+ else {
5175
+ row[column.field + '_obj'] = { text: { text: row[(_o = column.displayField) === null || _o === void 0 ? void 0 : _o.toLowerCase()], value: row[(_p = column.field) === null || _p === void 0 ? void 0 : _p.toLowerCase()] } };
5176
+ }
5177
+ }
5178
+ else {
5179
+ row[column.field + '_obj'] = Object.assign(Object.assign({}, row[column.field + '_obj']), { text: { text: res[(_q = column.field) === null || _q === void 0 ? void 0 : _q.toLowerCase()], value: res[(_r = column.field) === null || _r === void 0 ? void 0 : _r.toLowerCase()] } });
5172
5180
  }
5173
5181
  if (column.onReturn) {
5174
5182
  column.onReturn(res, row);
@@ -6760,15 +6768,18 @@ class FormComponent {
6760
6768
  */
6761
6769
  sectionDisabled(formSection) {
6762
6770
  if (formSection.disabled) {
6763
- formSection.fields.map((field) => {
6764
- field.disabled = true;
6765
- });
6766
- return formSection;
6771
+ return this.disabledSectionFields(formSection, true);
6767
6772
  }
6768
6773
  else {
6769
- return formSection;
6774
+ return this.disabledSectionFields(formSection, false);
6770
6775
  }
6771
6776
  }
6777
+ disabledSectionFields(formSection, disabled) {
6778
+ formSection.fields.map((field) => {
6779
+ field.disabled = disabled;
6780
+ });
6781
+ return formSection;
6782
+ }
6772
6783
  loadIFrame(formField) {
6773
6784
  var _a, _b, _c;
6774
6785
  this.handleClickEvent(formField);