@churchillliving/se-ui-toolkit 6.53.137 → 6.53.138
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 -19
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/services/form.service.js +18 -2
- package/esm2015/lib/services/utilities.service.js +1 -16
- package/fesm2015/churchillliving-se-ui-toolkit.js +18 -17
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/form.service.d.ts +1 -0
- package/lib/services/utilities.service.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1219,23 +1219,6 @@
|
|
|
1219
1219
|
});
|
|
1220
1220
|
return formFieldObj;
|
|
1221
1221
|
}
|
|
1222
|
-
function setFormFieldValue(_k, field, value, displayText) {
|
|
1223
|
-
var formSections = _k.formSections;
|
|
1224
|
-
if (displayText === void 0) { displayText = ''; }
|
|
1225
|
-
formSections === null || formSections === void 0 ? void 0 : formSections.forEach(function (section) {
|
|
1226
|
-
section.fields.forEach(function (formField) {
|
|
1227
|
-
var _a;
|
|
1228
|
-
if (((_a = formField.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (field === null || field === void 0 ? void 0 : field.toLowerCase())) {
|
|
1229
|
-
if (displayText && displayText.length > 0) {
|
|
1230
|
-
formField.value = { text: displayText, value: value };
|
|
1231
|
-
}
|
|
1232
|
-
else {
|
|
1233
|
-
formField.value = value;
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
});
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
1222
|
function getFormFields(_k, formControl) {
|
|
1240
1223
|
var formSections = _k.formSections;
|
|
1241
1224
|
var formFields = [];
|
|
@@ -5962,7 +5945,25 @@
|
|
|
5962
5945
|
});
|
|
5963
5946
|
});
|
|
5964
5947
|
};
|
|
5965
|
-
// set formfield
|
|
5948
|
+
// set formfield value
|
|
5949
|
+
FormService.prototype.setFormFieldValue = function (_e, field, value, displayText) {
|
|
5950
|
+
var formSections = _e.formSections;
|
|
5951
|
+
if (displayText === void 0) { displayText = ''; }
|
|
5952
|
+
formSections === null || formSections === void 0 ? void 0 : formSections.forEach(function (section) {
|
|
5953
|
+
section.fields.forEach(function (formField) {
|
|
5954
|
+
var _a;
|
|
5955
|
+
if (((_a = formField.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (field === null || field === void 0 ? void 0 : field.toLowerCase())) {
|
|
5956
|
+
if (displayText && displayText.length > 0) {
|
|
5957
|
+
formField.value = { text: displayText, value: value };
|
|
5958
|
+
}
|
|
5959
|
+
else {
|
|
5960
|
+
formField.value = value;
|
|
5961
|
+
}
|
|
5962
|
+
}
|
|
5963
|
+
});
|
|
5964
|
+
});
|
|
5965
|
+
};
|
|
5966
|
+
// set formfield property
|
|
5966
5967
|
FormService.prototype.setFormFieldProp = function (_e, field, props) {
|
|
5967
5968
|
var formSections = _e.formSections;
|
|
5968
5969
|
return formSections === null || formSections === void 0 ? void 0 : formSections.map(function (section) {
|
|
@@ -9388,7 +9389,6 @@
|
|
|
9388
9389
|
exports.setEditFormFields = setEditFormFields;
|
|
9389
9390
|
exports.setFilter = setFilter;
|
|
9390
9391
|
exports.setFormField = setFormField;
|
|
9391
|
-
exports.setFormFieldValue = setFormFieldValue;
|
|
9392
9392
|
exports.setFormFields = setFormFields;
|
|
9393
9393
|
exports.setGlobalFilterPropValues = setGlobalFilterPropValues;
|
|
9394
9394
|
exports.setGridLookupData = setGridLookupData;
|