@churchillliving/se-ui-toolkit 6.52.67 → 6.52.69

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.
@@ -6475,10 +6475,13 @@
6475
6475
  }
6476
6476
  });
6477
6477
  // Save grid on formSave Button
6478
- var saveAllGrid = document.getElementById('saveAllGridValues');
6478
+ var saveAllGrid_1 = document === null || document === void 0 ? void 0 : document.getElementById('saveAllGridValues');
6479
+ console.log('saveAllGrid: ', saveAllGrid_1);
6479
6480
  var getBtns = (_d = (_c = this.el) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.getElementsByClassName('saveRow');
6480
- if (saveAllGrid) {
6481
- saveAllGrid.click();
6481
+ if (saveAllGrid_1) {
6482
+ setTimeout(function () {
6483
+ saveAllGrid_1 === null || saveAllGrid_1 === void 0 ? void 0 : saveAllGrid_1.click();
6484
+ }, 1000);
6482
6485
  }
6483
6486
  else if (getBtns && getBtns.length > 0) {
6484
6487
  try {
@@ -6496,7 +6499,9 @@
6496
6499
  }
6497
6500
  }
6498
6501
  this.browserTabCloseEvent(false);
6499
- this.saveForm.emit(this.form.formSections);
6502
+ setTimeout(function () {
6503
+ _this.saveForm.emit(_this.form.formSections);
6504
+ }, 3000);
6500
6505
  (_e = this.form.formSections) === null || _e === void 0 ? void 0 : _e.forEach(function (formSection) {
6501
6506
  if (formSection.fields) {
6502
6507
  formSection.fields.forEach(function (field) {
@@ -7610,14 +7615,6 @@
7610
7615
  this.requestService.get('/Upload', fileData).subscribe(function (data) {
7611
7616
  var _a;
7612
7617
  if (data) {
7613
- // data.results.forEach((res)=>{
7614
- // res['url'] = res.blobFileUrl,
7615
- // res['extension'] = res.fileExtension,
7616
- // res['caption'] = res.fileCaption,
7617
- // delete res.blobFileUrl;
7618
- // delete res.fileExtension;
7619
- // delete res.fileCaption;
7620
- // })
7621
7618
  _this.alertService.success('File Upload Successfully.');
7622
7619
  if ((_a = _this.fields) === null || _a === void 0 ? void 0 : _a.onReturn) {
7623
7620
  _this.fields.onReturn(data.results);
@@ -7749,25 +7746,13 @@
7749
7746
  var _this = this;
7750
7747
  var _a;
7751
7748
  if (this.card) {
7752
- var _d = this.card, data = _d.data, formSections = _d.formSections, cardInfo_1 = _d.cardInfo;
7753
- var isIncluded_1 = false;
7754
- data.forEach(function (x) {
7755
- var _a, _b;
7756
- x = objConvertToLower(x);
7757
- if (((_a = Object.keys(x)) === null || _a === void 0 ? void 0 : _a.includes('azurecontainerid')) && ((_b = Object.keys(x)) === null || _b === void 0 ? void 0 : _b.includes('blobfileurl'))) {
7758
- isIncluded_1 = true;
7759
- }
7760
- });
7761
- // const isIncluded = data.some((x)=> Object.keys(x)?.includes("blobfileurl") && Object.keys(x)?.includes("fileextension") && Object.keys(x)?.includes("filecaption"));
7762
- // console.log('isIncluded: ', isIncluded);
7763
- if (cardInfo_1 && Object.keys(cardInfo_1).length > 0 && !isIncluded_1) {
7764
- this.displayCardInfo = cardInfo_1;
7765
- this.data = (_a = this.gridService.setDataFields(data)) === null || _a === void 0 ? void 0 : _a.map(function (record) { var _a, _b, _c; return (Object.assign(Object.assign({}, record), { blobfileurl: record[(_a = cardInfo_1.url) === null || _a === void 0 ? void 0 : _a.toLowerCase()], filecaption: record[(_b = cardInfo_1.caption) === null || _b === void 0 ? void 0 : _b.toLowerCase()], fileextension: record[(_c = cardInfo_1.extension) === null || _c === void 0 ? void 0 : _c.toLowerCase()] })); });
7766
- console.log('this.data1: ', this.data);
7749
+ var _c = this.card, data = _c.data, formSections = _c.formSections, cardInfo_1 = _c.cardInfo;
7750
+ if (cardInfo_1) {
7751
+ cardInfo_1 = objConvertToLower(cardInfo_1);
7752
+ this.data = (_a = this.gridService.setDataFields(data)) === null || _a === void 0 ? void 0 : _a.map(function (record) { return (Object.assign(Object.assign({}, record), { blobfileurl: record[cardInfo_1.url], filecaption: record[cardInfo_1.caption], fileextension: record[cardInfo_1.extension] })); });
7767
7753
  }
7768
7754
  else {
7769
7755
  this.data = this.gridService.setDataFields(data);
7770
- console.log('this.dataq: ', this.data);
7771
7756
  }
7772
7757
  this.dynamicForm = { formSections: formSections };
7773
7758
  // set the default value of allowDelete, allowEditableCaption and allowDownload
@@ -7833,16 +7818,10 @@
7833
7818
  });
7834
7819
  };
7835
7820
  CardComponent.prototype.replacePropName = function (cardInfo) {
7836
- var _d;
7821
+ var _c;
7837
7822
  if (this.displayCardInfo && Object.keys(this.displayCardInfo).length > 0) {
7838
7823
  var cardProp = Object.assign({}, this.displayCardInfo);
7839
- var obj = Object.assign(Object.assign({}, cardInfo), (_d = {}, _d[cardProp.url] = cardInfo.blobfileurl, _d[cardProp.caption] = cardInfo.filecaption, _d[cardProp.extension] = cardInfo.fileextension, _d));
7840
- console.log('obj: ', obj);
7841
- delete obj.blobfileurl;
7842
- delete obj.filecaption;
7843
- delete obj.fileextension;
7844
- console.log('obj2: ', obj);
7845
- return obj;
7824
+ return Object.assign(Object.assign({}, cardInfo), (_c = {}, _c[cardProp.url] = cardInfo.blobfileurl, _c[cardProp.caption] = cardInfo.filecaption, _c[cardProp.extension] = cardInfo.fileextension, _c));
7846
7825
  }
7847
7826
  else {
7848
7827
  return cardInfo;