@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.
@@ -1016,7 +1016,7 @@
1016
1016
  * Modify this.value directly to receive effect
1017
1017
  */
1018
1018
  var formstate = new rxjs.Subject();
1019
- var formState1 = new rxjs.Subject();
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 formState1.asObservable();
1027
+ return cardState.asObservable();
1028
1028
  }
1029
1029
  function changeDynamicFormState1(data) {
1030
- formState1.next({ data: data });
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
- var _this = this;
6666
- var _a, _b;
6667
- var cardControl = false;
6668
- (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.formSections) === null || _b === void 0 ? void 0 : _b.forEach(function (formSection) {
6669
- var _a;
6670
- if ((_a = formSection === null || formSection === void 0 ? void 0 : formSection.fields) === null || _a === void 0 ? void 0 : _a.some(function (formField) { return (formField === null || formField === void 0 ? void 0 : formField.control) === exports.EFormControl.CARD; })) {
6671
- cardControl = true;
6672
- }
6673
- });
6674
- setTimeout(function () {
6675
- if (cardControl) {
6676
- _this.loadDynamicComponents();
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, _c, _d;
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
  });