@churchillliving/se-ui-toolkit 6.53.521 → 6.53.522

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);