@churchillliving/se-ui-toolkit 6.53.202 → 6.53.204
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 +6 -5
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/form/form.component.js +7 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js +6 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -6689,16 +6689,17 @@
|
|
|
6689
6689
|
FormComponent.prototype.setCardResponseId = function () {
|
|
6690
6690
|
var _this = this;
|
|
6691
6691
|
onDynamicFormStateChange1().subscribe(function (res) {
|
|
6692
|
-
_this.setCardIds(res);
|
|
6692
|
+
_this.setCardIds(res.data);
|
|
6693
6693
|
});
|
|
6694
6694
|
};
|
|
6695
6695
|
FormComponent.prototype.setCardIds = function (res) {
|
|
6696
6696
|
var _a, _b, _c, _d;
|
|
6697
|
+
res.records = this.gridService.setDataFields(res.records);
|
|
6697
6698
|
(_a = res.records) === null || _a === void 0 ? void 0 : _a.forEach(function (record, recordIndex) {
|
|
6698
|
-
var _a, _b;
|
|
6699
|
-
var matchCard = (_a = res.cardsInfo) === null || _a === void 0 ? void 0 : _a.find(function (info, cardIndex) { return recordIndex === cardIndex && record[res.fieldName]; });
|
|
6699
|
+
var _a, _b, _c;
|
|
6700
|
+
var matchCard = (_a = res.cardsInfo) === null || _a === void 0 ? void 0 : _a.find(function (info, cardIndex) { var _a; return recordIndex === cardIndex && record[(_a = res.fieldName) === null || _a === void 0 ? void 0 : _a.toLowerCase()]; });
|
|
6700
6701
|
if (matchCard && ((_b = Object.keys(matchCard)) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
6701
|
-
matchCard[res.fieldName] = record[res.fieldName];
|
|
6702
|
+
matchCard[res.fieldName] = record[(_c = res.fieldName) === null || _c === void 0 ? void 0 : _c.toLowerCase()];
|
|
6702
6703
|
}
|
|
6703
6704
|
});
|
|
6704
6705
|
if (((_c = (_b = this.form) === null || _b === void 0 ? void 0 : _b.formSections) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
@@ -7098,7 +7099,7 @@
|
|
|
7098
7099
|
field.value = field.value === 1 ? true : false;
|
|
7099
7100
|
}
|
|
7100
7101
|
if (field.control === exports.EFormControl.CARD && ((_d = (_c = field.card) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
|
7101
|
-
|
|
7102
|
+
// this.fileOnchangeEvent();
|
|
7102
7103
|
}
|
|
7103
7104
|
});
|
|
7104
7105
|
}
|