@churchillliving/se-ui-toolkit 6.53.285 → 6.53.287

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.
@@ -4162,7 +4162,7 @@
4162
4162
  _this.rowsData.length > 0) {
4163
4163
  _this.rowsData.forEach(function (row) {
4164
4164
  var _3;
4165
- var _a, _b, _c, _d;
4165
+ var _a, _b, _c, _d, _e;
4166
4166
  // convert string that contains comma into arrays
4167
4167
  if (row[column.field] &&
4168
4168
  ((_a = row[column.field]) === null || _a === void 0 ? void 0 : _a.toString().includes(','))) {
@@ -4174,7 +4174,7 @@
4174
4174
  var key = Object.keys(row).find(function (x) { return x === column.field.toLowerCase(); });
4175
4175
  // convert simple string into array
4176
4176
  if (!Array.isArray(row[key]) && row[key]) {
4177
- row[key] = [(_3 = {}, _3[(_d = column.displayField) === null || _d === void 0 ? void 0 : _d.toLowerCase()] = row[key], _3)];
4177
+ row[key] = [(_3 = {}, _3[(_d = column.displayField) === null || _d === void 0 ? void 0 : _d.toLowerCase()] = row[key], _3[(_e = column.field) === null || _e === void 0 ? void 0 : _e.toLowerCase()] = row[column.displayField], _3)];
4178
4178
  }
4179
4179
  });
4180
4180
  }
@@ -4751,6 +4751,13 @@
4751
4751
  ((_a = col.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (key === null || key === void 0 ? void 0 : key.toLowerCase()) &&
4752
4752
  value &&
4753
4753
  value.length > 0) {
4754
+ if (col.displayField) {
4755
+ selectedRow[col.field].forEach(function (row) {
4756
+ var _a;
4757
+ row[((_a = col.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()) + '_temp'] = row[col.displayField];
4758
+ row[col.displayField] = row[col.field];
4759
+ });
4760
+ }
4754
4761
  var newValue = value.map(function (x) { return x[col.displayField]; });
4755
4762
  if ((_b = newValue === null || newValue === void 0 ? void 0 : newValue.toString()) === null || _b === void 0 ? void 0 : _b.includes(';')) {
4756
4763
  row[col.field] = (_e = (_d = (_c = newValue === null || newValue === void 0 ? void 0 : newValue.toString()) === null || _c === void 0 ? void 0 : _c.replaceAll(';', ',')) === null || _d === void 0 ? void 0 : _d.split(',')) === null || _e === void 0 ? void 0 : _e.map(function (x) {
@@ -4927,6 +4934,9 @@
4927
4934
  ((_h = selectedRow[column.field]) === null || _h === void 0 ? void 0 : _h.length) > 0) {
4928
4935
  var arr_1 = [];
4929
4936
  selectedRow[column.field].forEach(function (row) {
4937
+ if (row[column.field + '_temp']) {
4938
+ row[column.field] = row[column.field + '_temp'];
4939
+ }
4930
4940
  if (row[column.field]) {
4931
4941
  arr_1.push(row[column.field]);
4932
4942
  }