@churchillliving/se-ui-toolkit 6.53.207 → 6.53.209
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 +16 -21
- 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 +14 -18
- package/esm2015/lib/services/utilities.service.js +4 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js +16 -20
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -1016,7 +1016,7 @@
|
|
|
1016
1016
|
* Modify this.value directly to receive effect
|
|
1017
1017
|
*/
|
|
1018
1018
|
var formstate = new rxjs.Subject();
|
|
1019
|
-
var
|
|
1019
|
+
var cardState = new rxjs.Subject();
|
|
1020
1020
|
function changeDynamicFormState(id, data) {
|
|
1021
1021
|
formstate.next({ id: id, data: data });
|
|
1022
1022
|
}
|
|
@@ -1024,10 +1024,10 @@
|
|
|
1024
1024
|
return formstate.asObservable();
|
|
1025
1025
|
}
|
|
1026
1026
|
function onDynamicCardStateChange() {
|
|
1027
|
-
return
|
|
1027
|
+
return cardState.asObservable();
|
|
1028
1028
|
}
|
|
1029
1029
|
function changeDynamicFormState1(data) {
|
|
1030
|
-
|
|
1030
|
+
cardState.next({ data: data });
|
|
1031
1031
|
}
|
|
1032
1032
|
function closeIFrame() {
|
|
1033
1033
|
var close = window.parent.document.querySelector('.p-dialog-header-icon');
|
|
@@ -6662,20 +6662,18 @@
|
|
|
6662
6662
|
};
|
|
6663
6663
|
//invoke when file upload OR delete a file
|
|
6664
6664
|
FormComponent.prototype.fileOnchangeEvent = function () {
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
(
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
}
|
|
6678
|
-
}, 3000);
|
|
6665
|
+
this.setCardData = !this.setCardData;
|
|
6666
|
+
// let cardControl: boolean = false;
|
|
6667
|
+
// this.form?.formSections?.forEach((formSection)=> {
|
|
6668
|
+
// if(formSection?.fields?.some((formField: any)=> formField?.control === EFormControl.CARD)){
|
|
6669
|
+
// cardControl = true;
|
|
6670
|
+
// }
|
|
6671
|
+
// });
|
|
6672
|
+
// setTimeout(() => {
|
|
6673
|
+
// if(cardControl){
|
|
6674
|
+
// this.loadDynamicComponents();
|
|
6675
|
+
// }
|
|
6676
|
+
// }, 3000);
|
|
6679
6677
|
};
|
|
6680
6678
|
FormComponent.prototype.ngAfterViewInit = function () {
|
|
6681
6679
|
var _this = this;
|
|
@@ -7090,7 +7088,7 @@
|
|
|
7090
7088
|
(_e = this.form.formSections) === null || _e === void 0 ? void 0 : _e.forEach(function (formSection) {
|
|
7091
7089
|
if (formSection.fields) {
|
|
7092
7090
|
formSection.fields.forEach(function (field) {
|
|
7093
|
-
var _a, _b
|
|
7091
|
+
var _a, _b;
|
|
7094
7092
|
if (field.control === exports.EFormControl.AUTOCOMPLETE && !field.showAllValue) {
|
|
7095
7093
|
field.value = (_b = (_a = tempValue_1.toString().replaceAll(",", ";")) === null || _a === void 0 ? void 0 : _a.split(";")) === null || _b === void 0 ? void 0 : _b.map(function (val) {
|
|
7096
7094
|
var _s;
|
|
@@ -7100,9 +7098,6 @@
|
|
|
7100
7098
|
if (field.control === exports.EFormControl.CHECKBOX) {
|
|
7101
7099
|
field.value = field.value === 1 ? true : false;
|
|
7102
7100
|
}
|
|
7103
|
-
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) {
|
|
7104
|
-
// this.fileOnchangeEvent();
|
|
7105
|
-
}
|
|
7106
7101
|
});
|
|
7107
7102
|
}
|
|
7108
7103
|
});
|