@churchillliving/se-ui-toolkit 6.53.307 → 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.
- package/bundles/churchillliving-se-ui-toolkit.umd.js +15 -4
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +17 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js +16 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 = (
|
|
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
|
};
|
|
@@ -4915,6 +4915,7 @@
|
|
|
4915
4915
|
*/
|
|
4916
4916
|
GridComponent.prototype.onRowEditSave = function (selectedRow) {
|
|
4917
4917
|
var _this = this;
|
|
4918
|
+
var automCompleteTempData = [];
|
|
4918
4919
|
this.selectedColumns.forEach(function (column) {
|
|
4919
4920
|
var _3;
|
|
4920
4921
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
@@ -4969,7 +4970,12 @@
|
|
|
4969
4970
|
// Saving AutoComplete Data
|
|
4970
4971
|
if (column.type === exports.EGridColumnType.AUTOCOMPLETE &&
|
|
4971
4972
|
((_h = selectedRow[column.field]) === null || _h === void 0 ? void 0 : _h.length) > 0) {
|
|
4972
|
-
|
|
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) {
|
|
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(',', ';');
|
|
4973
4979
|
}
|
|
4974
4980
|
});
|
|
4975
4981
|
var row = Object.assign({}, selectedRow);
|
|
@@ -5099,6 +5105,11 @@
|
|
|
5099
5105
|
}
|
|
5100
5106
|
}
|
|
5101
5107
|
}
|
|
5108
|
+
// set autocompelet array data after save row
|
|
5109
|
+
if (column.type === exports.EGridColumnType.AUTOCOMPLETE &&
|
|
5110
|
+
selectedRow[column.field]) {
|
|
5111
|
+
selectedRow[column.field] = automCompleteTempData;
|
|
5112
|
+
}
|
|
5102
5113
|
if (column.type === exports.EGridColumnType.DROPDOWN &&
|
|
5103
5114
|
column.optionLabel &&
|
|
5104
5115
|
column.optionValue) {
|