@churchillliving/se-ui-toolkit 6.53.308 → 6.53.309

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.
@@ -4271,11 +4271,11 @@
4271
4271
  };
4272
4272
  GridComponent.prototype.autoCompleteSelectedValue = function (row, column, value) {
4273
4273
  var _3;
4274
- var _a, _b, _c;
4274
+ var _a, _b, _c, _d;
4275
4275
  if (column.optionLabel) {
4276
4276
  var valueKey = column.optionValue ? column.optionValue : column.field;
4277
- row[column.field] = __spreadArray(__spreadArray([], __read(row[column.field])), [(_3 = {}, _3[(_a = column.optionLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()] = value[(_b = column.optionLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()], _3[valueKey === null || valueKey === void 0 ? void 0 : valueKey.toLowerCase()] = value[valueKey === null || valueKey === void 0 ? void 0 : valueKey.toLowerCase()], _3)]);
4278
- var index = (_c = row[column.field]) === null || _c === void 0 ? void 0 : _c.findIndex(function (x) { return JSON.stringify(x) === JSON.stringify(value); });
4277
+ row[column.field] = __spreadArray(__spreadArray([], __read(row[column.field])), [(_3 = {}, _3[(_a = column.optionLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()] = value[(_b = column.optionLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()], _3[valueKey === null || valueKey === void 0 ? void 0 : valueKey.toLowerCase()] = value[valueKey === null || valueKey === void 0 ? void 0 : valueKey.toLowerCase()], _3[(_c = column.field) === null || _c === void 0 ? void 0 : _c.toLowerCase()] = value[valueKey === null || valueKey === void 0 ? void 0 : valueKey.toLowerCase()], _3)]);
4278
+ var index = (_d = row[column.field]) === null || _d === void 0 ? void 0 : _d.findIndex(function (x) { return JSON.stringify(x) === JSON.stringify(value); });
4279
4279
  row[column.field].splice(index, 1);
4280
4280
  }
4281
4281
  };
@@ -4971,7 +4971,11 @@
4971
4971
  if (column.type === exports.EGridColumnType.AUTOCOMPLETE &&
4972
4972
  ((_h = selectedRow[column.field]) === null || _h === void 0 ? void 0 : _h.length) > 0) {
4973
4973
  automCompleteTempData = __spreadArray([], __read(selectedRow[column.field]));
4974
- selectedRow[column.field] = (_l = (_k = (_j = selectedRow[column.field]) === null || _j === void 0 ? void 0 : _j.map(function (row) { var _a, _b, _c; return (column === null || column === void 0 ? void 0 : column.optionValue) && row[(_a = column.optionValue) === null || _a === void 0 ? void 0 : _a.toLowerCase()] ? row[(_b = column.optionValue) === null || _b === void 0 ? void 0 : _b.toLowerCase()] : row[(_c = column.field) === null || _c === void 0 ? void 0 : _c.toLowerCase()]; })) === null || _k === void 0 ? void 0 : _k.toString()) === null || _l === void 0 ? void 0 : _l.replaceAll(',', ';');
4974
+ selectedRow[column.field] = (_l = (_k = (_j = selectedRow[column.field]) === null || _j === void 0 ? void 0 : _j.map(function (row) {
4975
+ var _a, _b, _c;
4976
+ return (column === null || column === void 0 ? void 0 : column.optionValue) && row[(_a = column.optionValue) === null || _a === void 0 ? void 0 : _a.toLowerCase()] ?
4977
+ row[(_b = column.optionValue) === null || _b === void 0 ? void 0 : _b.toLowerCase()] : row[(_c = column.field) === null || _c === void 0 ? void 0 : _c.toLowerCase()];
4978
+ })) === null || _k === void 0 ? void 0 : _k.toString()) === null || _l === void 0 ? void 0 : _l.replaceAll(',', ';');
4975
4979
  }
4976
4980
  });
4977
4981
  var row = Object.assign({}, selectedRow);