@churchillliving/se-ui-toolkit 6.52.61 → 6.52.62

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.
@@ -6404,7 +6404,7 @@
6404
6404
  FormComponent.prototype.onSaveForm = function () {
6405
6405
  var e_1, _s;
6406
6406
  var _this = this;
6407
- var _a, _b, _c, _d, _e;
6407
+ var _a, _b, _c, _d, _e, _f, _g;
6408
6408
  var validity = true;
6409
6409
  (_a = this.form.formSections) === null || _a === void 0 ? void 0 : _a.forEach(function (formSection) {
6410
6410
  if (formSection.fields) {
@@ -6475,8 +6475,9 @@
6475
6475
  }
6476
6476
  });
6477
6477
  // Save grid on formSave Button
6478
- var saveAllGrid = document.getElementById('saveAllGridValues');
6479
- var getBtns = (_d = (_c = this.el) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.getElementsByClassName('saveRow');
6478
+ var saveAllGrid = (_d = (_c = this.el) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.getElementById('saveAllGridValues');
6479
+ console.log('saveAllGrid: ', saveAllGrid);
6480
+ var getBtns = (_f = (_e = this.el) === null || _e === void 0 ? void 0 : _e.nativeElement) === null || _f === void 0 ? void 0 : _f.getElementsByClassName('saveRow');
6480
6481
  if (saveAllGrid) {
6481
6482
  saveAllGrid.click();
6482
6483
  }
@@ -6497,7 +6498,7 @@
6497
6498
  }
6498
6499
  this.browserTabCloseEvent(false);
6499
6500
  this.saveForm.emit(this.form.formSections);
6500
- (_e = this.form.formSections) === null || _e === void 0 ? void 0 : _e.forEach(function (formSection) {
6501
+ (_g = this.form.formSections) === null || _g === void 0 ? void 0 : _g.forEach(function (formSection) {
6501
6502
  if (formSection.fields) {
6502
6503
  formSection.fields.forEach(function (field) {
6503
6504
  var _a, _b, _c, _d;
@@ -7610,7 +7611,6 @@
7610
7611
  this.requestService.get('/Upload', fileData).subscribe(function (data) {
7611
7612
  var _a;
7612
7613
  if (data) {
7613
- console.log('data: ', data);
7614
7614
  _this.alertService.success('File Upload Successfully.');
7615
7615
  if ((_a = _this.fields) === null || _a === void 0 ? void 0 : _a.onReturn) {
7616
7616
  _this.fields.onReturn(data.results);
@@ -7742,11 +7742,10 @@
7742
7742
  var _this = this;
7743
7743
  var _a;
7744
7744
  if (this.card) {
7745
- var _d = this.card, data = _d.data, formSections = _d.formSections, cardInfo_1 = _d.cardInfo;
7746
- if (cardInfo_1 && Object.keys(cardInfo_1).length > 0) {
7747
- this.displayCardInfo = cardInfo_1;
7748
- 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()] })); });
7749
- console.log('this.data: ', this.data);
7745
+ var _c = this.card, data = _c.data, formSections = _c.formSections, cardInfo_1 = _c.cardInfo;
7746
+ if (cardInfo_1) {
7747
+ cardInfo_1 = objConvertToLower(cardInfo_1);
7748
+ 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] })); });
7750
7749
  }
7751
7750
  else {
7752
7751
  this.data = this.gridService.setDataFields(data);
@@ -7815,16 +7814,10 @@
7815
7814
  });
7816
7815
  };
7817
7816
  CardComponent.prototype.replacePropName = function (cardInfo) {
7818
- var _d;
7817
+ var _c;
7819
7818
  if (this.displayCardInfo && Object.keys(this.displayCardInfo).length > 0) {
7820
7819
  var cardProp = Object.assign({}, this.displayCardInfo);
7821
- var obj = Object.assign(Object.assign({}, cardInfo), (_d = {}, _d[cardProp.url] = cardInfo.blobfileurl, _d[cardProp.caption] = cardInfo.filecaption, _d[cardProp.extension] = cardInfo.fileextension, _d));
7822
- console.log('obj: ', obj);
7823
- delete obj.blobfileurl;
7824
- delete obj.filecaption;
7825
- delete obj.fileextension;
7826
- console.log('obj2: ', obj);
7827
- return obj;
7820
+ return Object.assign(Object.assign({}, cardInfo), (_c = {}, _c[cardProp.url] = cardInfo.blobfileurl, _c[cardProp.caption] = cardInfo.filecaption, _c[cardProp.extension] = cardInfo.fileextension, _c));
7828
7821
  }
7829
7822
  else {
7830
7823
  return cardInfo;