@churchillliving/se-ui-toolkit 6.53.88 → 6.53.90
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 +13 -1
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/services/form.service.js +9 -2
- package/esm2015/lib/services/grid.service.js +4 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js +11 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/form.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2491,6 +2491,9 @@
|
|
|
2491
2491
|
columnInfo.optionLabel = columnInfo.optionLabel ? columnInfo.optionLabel : 'label';
|
|
2492
2492
|
columnInfo.optionValue = columnInfo.optionValue ? columnInfo.optionValue : 'value';
|
|
2493
2493
|
}
|
|
2494
|
+
else if (columnInfo.type === exports.EGridColumnType.DIALOG && !columnInfo.filtering && !columnInfo.filter) {
|
|
2495
|
+
columnInfo.filtering = false;
|
|
2496
|
+
}
|
|
2494
2497
|
var column = {
|
|
2495
2498
|
allowSearch: columnInfo.allowSearch,
|
|
2496
2499
|
field: columnInfo.field,
|
|
@@ -5808,8 +5811,17 @@
|
|
|
5808
5811
|
return this.addFormField(fieldInfo);
|
|
5809
5812
|
};
|
|
5810
5813
|
// Search AutoComplete Data for form
|
|
5811
|
-
FormService.prototype.getAutoCompleteData = function (formField, uniqueKey, filters) {
|
|
5814
|
+
FormService.prototype.getAutoCompleteData = function (formField, uniqueKey, filters, search) {
|
|
5815
|
+
if (search === void 0) { search = ''; }
|
|
5812
5816
|
this.requestService.get('/Data/Fetch', { uniqueKey: uniqueKey, filters: filters }).subscribe(function (response) {
|
|
5817
|
+
var _e;
|
|
5818
|
+
if (search) {
|
|
5819
|
+
var existInRecord = response.records.some(function (record) { var _a, _b, _c; return record[formField.displayField] && ((_b = (_a = record[formField.displayField]) === null || _a === void 0 ? void 0 : _a.toString()) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === ((_c = search === null || search === void 0 ? void 0 : search.toString()) === null || _c === void 0 ? void 0 : _c.toLowerCase()); });
|
|
5820
|
+
console.log('existInRecord: ', existInRecord);
|
|
5821
|
+
if (!existInRecord) {
|
|
5822
|
+
response.records.unshift((_e = {}, _e[formField.displayField] = search, _e));
|
|
5823
|
+
}
|
|
5824
|
+
}
|
|
5813
5825
|
formField.data = __spreadArray([], __read(response.records));
|
|
5814
5826
|
});
|
|
5815
5827
|
};
|