@churchillliving/se-ui-toolkit 6.53.206 → 6.53.208

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.
@@ -1023,7 +1023,7 @@
1023
1023
  function onDynamicFormStateChange() {
1024
1024
  return formstate.asObservable();
1025
1025
  }
1026
- function onDynamicFormStateChange1() {
1026
+ function onDynamicCardStateChange() {
1027
1027
  return formState1.asObservable();
1028
1028
  }
1029
1029
  function changeDynamicFormState1(data) {
@@ -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;
@@ -6689,7 +6687,7 @@
6689
6687
  };
6690
6688
  FormComponent.prototype.setCardResponseId = function () {
6691
6689
  var _this = this;
6692
- onDynamicFormStateChange1().subscribe(function (res) {
6690
+ onDynamicCardStateChange().subscribe(function (res) {
6693
6691
  _this.setCardIds(res.data);
6694
6692
  });
6695
6693
  };
@@ -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
  });
@@ -9829,8 +9824,8 @@
9829
9824
  exports.hasRole = hasRole;
9830
9825
  exports.highlightLeftSidebar = highlightLeftSidebar;
9831
9826
  exports.objConvertToLower = objConvertToLower;
9827
+ exports.onDynamicCardStateChange = onDynamicCardStateChange;
9832
9828
  exports.onDynamicFormStateChange = onDynamicFormStateChange;
9833
- exports.onDynamicFormStateChange1 = onDynamicFormStateChange1;
9834
9829
  exports.removeActiveIconClass = removeActiveIconClass;
9835
9830
  exports.setAllFormFieldsValues = setAllFormFieldsValues;
9836
9831
  exports.setAndFilter = setAndFilter;