@churchillliving/se-ui-toolkit 6.53.521 → 6.53.523
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 +19 -8
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/form/form.component.js +9 -6
- package/esm2015/lib/components/base/grid/grid.component.js +12 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js +19 -8
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/form/form.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5737,7 +5737,7 @@
|
|
|
5737
5737
|
var ref = this.openLookupDialog(obj, row);
|
|
5738
5738
|
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);
|
|
5739
5739
|
ref.onClose.subscribe(function (res) {
|
|
5740
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5740
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
5741
5741
|
if (res) {
|
|
5742
5742
|
var value = setDialogResponse(column, column.lookupControl, res);
|
|
5743
5743
|
res = objConvertToLower(res);
|
|
@@ -5784,8 +5784,16 @@
|
|
|
5784
5784
|
row[column.field + '_obj'] = Object.assign(Object.assign({}, row[column.field + '_obj']), { text: row[column.field] });
|
|
5785
5785
|
row[column.field] = (_k = row[column.field]) === null || _k === void 0 ? void 0 : _k.value;
|
|
5786
5786
|
}
|
|
5787
|
-
else if (
|
|
5788
|
-
|
|
5787
|
+
else if (column.displayField) {
|
|
5788
|
+
if (row[column.field + '_obj']) {
|
|
5789
|
+
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()] } });
|
|
5790
|
+
}
|
|
5791
|
+
else {
|
|
5792
|
+
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()] } };
|
|
5793
|
+
}
|
|
5794
|
+
}
|
|
5795
|
+
else {
|
|
5796
|
+
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()] } });
|
|
5789
5797
|
}
|
|
5790
5798
|
if (column.onReturn) {
|
|
5791
5799
|
column.onReturn(res, row);
|
|
@@ -7454,15 +7462,18 @@
|
|
|
7454
7462
|
*/
|
|
7455
7463
|
FormComponent.prototype.sectionDisabled = function (formSection) {
|
|
7456
7464
|
if (formSection.disabled) {
|
|
7457
|
-
|
|
7458
|
-
field.disabled = true;
|
|
7459
|
-
});
|
|
7460
|
-
return formSection;
|
|
7465
|
+
return this.disabledSectionFields(formSection, true);
|
|
7461
7466
|
}
|
|
7462
7467
|
else {
|
|
7463
|
-
return formSection;
|
|
7468
|
+
return this.disabledSectionFields(formSection, false);
|
|
7464
7469
|
}
|
|
7465
7470
|
};
|
|
7471
|
+
FormComponent.prototype.disabledSectionFields = function (formSection, disabled) {
|
|
7472
|
+
formSection.fields.map(function (field) {
|
|
7473
|
+
field.disabled = disabled;
|
|
7474
|
+
});
|
|
7475
|
+
return formSection;
|
|
7476
|
+
};
|
|
7466
7477
|
FormComponent.prototype.loadIFrame = function (formField) {
|
|
7467
7478
|
var _a, _b, _c;
|
|
7468
7479
|
this.handleClickEvent(formField);
|