@churchillliving/se-ui-toolkit 6.52.63 → 6.52.64
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.
- package/bundles/churchillliving-se-ui-toolkit.umd.js +8 -23
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/cards/card.component.js +5 -12
- package/esm2015/lib/components/base/file-upload/file-upload.component.js +1 -10
- package/esm2015/lib/components/base/form/form.component.js +3 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +6 -21
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -6475,7 +6475,8 @@
|
|
|
6475
6475
|
}
|
|
6476
6476
|
});
|
|
6477
6477
|
// Save grid on formSave Button
|
|
6478
|
-
var saveAllGrid = document.getElementById('saveAllGridValues');
|
|
6478
|
+
var saveAllGrid = document === null || document === void 0 ? void 0 : document.getElementById('saveAllGridValues');
|
|
6479
|
+
console.log('saveAllGrid: ', saveAllGrid.click());
|
|
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
6481
|
if (saveAllGrid) {
|
|
6481
6482
|
saveAllGrid.click();
|
|
@@ -7610,15 +7611,6 @@
|
|
|
7610
7611
|
this.requestService.get('/Upload', fileData).subscribe(function (data) {
|
|
7611
7612
|
var _a;
|
|
7612
7613
|
if (data) {
|
|
7613
|
-
data.results.forEach(function (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
|
-
console.log('data: ', data);
|
|
7622
7614
|
_this.alertService.success('File Upload Successfully.');
|
|
7623
7615
|
if ((_a = _this.fields) === null || _a === void 0 ? void 0 : _a.onReturn) {
|
|
7624
7616
|
_this.fields.onReturn(data.results);
|
|
@@ -7750,11 +7742,10 @@
|
|
|
7750
7742
|
var _this = this;
|
|
7751
7743
|
var _a;
|
|
7752
7744
|
if (this.card) {
|
|
7753
|
-
var
|
|
7754
|
-
if (cardInfo_1
|
|
7755
|
-
|
|
7756
|
-
this.data = (_a = this.gridService.setDataFields(data)) === null || _a === void 0 ? void 0 : _a.map(function (record) {
|
|
7757
|
-
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] })); });
|
|
7758
7749
|
}
|
|
7759
7750
|
else {
|
|
7760
7751
|
this.data = this.gridService.setDataFields(data);
|
|
@@ -7823,16 +7814,10 @@
|
|
|
7823
7814
|
});
|
|
7824
7815
|
};
|
|
7825
7816
|
CardComponent.prototype.replacePropName = function (cardInfo) {
|
|
7826
|
-
var
|
|
7817
|
+
var _c;
|
|
7827
7818
|
if (this.displayCardInfo && Object.keys(this.displayCardInfo).length > 0) {
|
|
7828
7819
|
var cardProp = Object.assign({}, this.displayCardInfo);
|
|
7829
|
-
|
|
7830
|
-
console.log('obj: ', obj);
|
|
7831
|
-
delete obj.blobfileurl;
|
|
7832
|
-
delete obj.filecaption;
|
|
7833
|
-
delete obj.fileextension;
|
|
7834
|
-
console.log('obj2: ', obj);
|
|
7835
|
-
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));
|
|
7836
7821
|
}
|
|
7837
7822
|
else {
|
|
7838
7823
|
return cardInfo;
|