@churchillliving/se-ui-toolkit 6.53.441 → 6.53.442

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.
@@ -7194,23 +7194,18 @@
7194
7194
  _this.setCardIds(res.data);
7195
7195
  }
7196
7196
  else {
7197
- console.log('else: ');
7198
7197
  _this.setDeleteCardId((_b = res.data) === null || _b === void 0 ? void 0 : _b.cardData);
7199
7198
  }
7200
7199
  });
7201
7200
  };
7202
7201
  FormComponent.prototype.setDeleteCardId = function (updatedCardData) {
7203
- var _this = this;
7204
7202
  var _a, _b;
7205
- console.log('updatedCardData: ', updatedCardData);
7206
7203
  (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.formSections) === null || _b === void 0 ? void 0 : _b.forEach(function (section) {
7207
7204
  var cardControl = section.fields.find(function (field) { return field.control === exports.EFormControl.CARD; });
7208
- console.log('cardControl: ', cardControl);
7209
7205
  if (cardControl) {
7210
7206
  cardControl.card.data = updatedCardData;
7211
7207
  }
7212
7208
  ;
7213
- console.log('this.form: 00', _this.form);
7214
7209
  });
7215
7210
  };
7216
7211
  FormComponent.prototype.setCardIds = function (res) {
@@ -7601,7 +7596,6 @@
7601
7596
  if ((_j = (_h = field.format) === null || _h === void 0 ? void 0 : _h.formatParams) === null || _j === void 0 ? void 0 : _j.allowCalculate) {
7602
7597
  if (digitsInfo) {
7603
7598
  field.value = parseFloat((_k = (field.value / 100)) === null || _k === void 0 ? void 0 : _k.toString()).toFixed(digitsInfo);
7604
- console.log('new value', field.value);
7605
7599
  }
7606
7600
  else {
7607
7601
  field.value = field.value / 100;
@@ -7784,7 +7778,6 @@
7784
7778
  }
7785
7779
  };
7786
7780
  FormComponent.prototype.onClickEvent = function (formField) {
7787
- console.log(formField);
7788
7781
  if (formField.onClick && formField.disabled !== true) {
7789
7782
  formField.onClick(formField);
7790
7783
  }
@@ -10517,12 +10510,6 @@
10517
10510
  var cardData = fieldInfo.data;
10518
10511
  cardData = __spreadArray([], __read(this.deleteFromArray(cardData, cardInfo, fieldInfo === null || fieldInfo === void 0 ? void 0 : fieldInfo.url)));
10519
10512
  changeDynamicCardState({ cardData: cardData });
10520
- // dynamicForm.formSections?.forEach((section) => {
10521
- // let card = section.fields.find((x) => x.control === EFormControl.CARD && x.id === id);
10522
- // if (card && card.card) {
10523
- // card.card.data = cardData;
10524
- // }
10525
- // });
10526
10513
  };
10527
10514
  CardService.prototype.deleteFromArray = function (arr, cardInfo, deleteMatchKey) {
10528
10515
  if (arr === void 0) { arr = []; }
@@ -10537,25 +10524,6 @@
10537
10524
  };
10538
10525
  CardService.prototype.setResponseId = function (response, cardsInfo, fieldName, dynamicForm) {
10539
10526
  changeDynamicCardState({ records: response.records, cardsInfo: cardsInfo, fieldName: fieldName, isSave: true });
10540
- // response.records?.forEach((record: any, recordIndex: any) => {
10541
- // const matchCard = cardsInfo?.find((info, cardIndex)=> recordIndex === cardIndex && record[fieldName]);
10542
- // if(matchCard && Object.keys(matchCard)?.length > 0){
10543
- // matchCard[fieldName] = record[fieldName];
10544
- // }
10545
- // });
10546
- // if(dynamicForm && Object.keys(dynamicForm)?.length){
10547
- // dynamicForm.formSections.forEach((section)=>{
10548
- // const formField = section.fields.find((field)=> field.control === EFormControl.CARD);
10549
- // if(formField){
10550
- // if(cardsInfo?.length > 0){
10551
- // cardsInfo?.forEach((cardId)=>{
10552
- // cardId.id = null;
10553
- // })
10554
- // }
10555
- // formField.card.data = cardsInfo;
10556
- // };
10557
- // });
10558
- // }
10559
10527
  };
10560
10528
  return CardService;
10561
10529
  }());