@churchillliving/se-ui-toolkit 6.52.63 → 6.52.65
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 +13 -11
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/cards/card.component.js +6 -3
- package/esm2015/lib/components/base/file-upload/file-upload.component.js +9 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js +13 -11
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -7610,15 +7610,14 @@
|
|
|
7610
7610
|
this.requestService.get('/Upload', fileData).subscribe(function (data) {
|
|
7611
7611
|
var _a;
|
|
7612
7612
|
if (data) {
|
|
7613
|
-
data.results.forEach(
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
})
|
|
7621
|
-
console.log('data: ', 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
|
+
// })
|
|
7622
7621
|
_this.alertService.success('File Upload Successfully.');
|
|
7623
7622
|
if ((_a = _this.fields) === null || _a === void 0 ? void 0 : _a.onReturn) {
|
|
7624
7623
|
_this.fields.onReturn(data.results);
|
|
@@ -7751,13 +7750,16 @@
|
|
|
7751
7750
|
var _a;
|
|
7752
7751
|
if (this.card) {
|
|
7753
7752
|
var _d = this.card, data = _d.data, formSections = _d.formSections, cardInfo_1 = _d.cardInfo;
|
|
7754
|
-
|
|
7753
|
+
var isIncluded = data.some(function (x) { var _a, _b, _c; return ((_a = Object.keys(x)) === null || _a === void 0 ? void 0 : _a.includes("blobfileurl")) && ((_b = Object.keys(x)) === null || _b === void 0 ? void 0 : _b.includes("fileextension")) && ((_c = Object.keys(x)) === null || _c === void 0 ? void 0 : _c.includes("filecaption")); });
|
|
7754
|
+
console.log('isIncluded: ', isIncluded);
|
|
7755
|
+
if (cardInfo_1 && Object.keys(cardInfo_1).length > 0 && !isIncluded) {
|
|
7755
7756
|
this.displayCardInfo = cardInfo_1;
|
|
7756
7757
|
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()] })); });
|
|
7757
|
-
console.log('this.
|
|
7758
|
+
console.log('this.data1: ', this.data);
|
|
7758
7759
|
}
|
|
7759
7760
|
else {
|
|
7760
7761
|
this.data = this.gridService.setDataFields(data);
|
|
7762
|
+
console.log('this.dataq: ', this.data);
|
|
7761
7763
|
}
|
|
7762
7764
|
this.dynamicForm = { formSections: formSections };
|
|
7763
7765
|
// set the default value of allowDelete, allowEditableCaption and allowDownload
|