@churchillliving/se-ui-toolkit 6.52.68 → 6.52.70
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 +12 -26
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/cards/card.component.js +5 -22
- package/esm2015/lib/components/base/form/form.component.js +6 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js +9 -23
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -6475,10 +6475,13 @@
|
|
|
6475
6475
|
}
|
|
6476
6476
|
});
|
|
6477
6477
|
// Save grid on formSave Button
|
|
6478
|
-
var
|
|
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 (
|
|
6481
|
-
|
|
6481
|
+
if (saveAllGrid_1) {
|
|
6482
|
+
setTimeout(function () {
|
|
6483
|
+
saveAllGrid_1 === null || saveAllGrid_1 === void 0 ? void 0 : saveAllGrid_1.click();
|
|
6484
|
+
}, 50);
|
|
6482
6485
|
}
|
|
6483
6486
|
else if (getBtns && getBtns.length > 0) {
|
|
6484
6487
|
try {
|
|
@@ -7741,16 +7744,10 @@
|
|
|
7741
7744
|
var _this = this;
|
|
7742
7745
|
var _a;
|
|
7743
7746
|
if (this.card) {
|
|
7744
|
-
var
|
|
7745
|
-
if (cardInfo_1
|
|
7746
|
-
|
|
7747
|
-
(_a = this.gridService.setDataFields(data)) === null || _a === void 0 ? void 0 : _a.
|
|
7748
|
-
var _a, _b, _c, _d;
|
|
7749
|
-
if (!((_a = Object.keys(record)) === null || _a === void 0 ? void 0 : _a.includes('azurecontainerid'))) {
|
|
7750
|
-
record = Object.assign(Object.assign({}, record), { blobfileurl: record[(_b = cardInfo_1.url) === null || _b === void 0 ? void 0 : _b.toLowerCase()], filecaption: record[(_c = cardInfo_1.caption) === null || _c === void 0 ? void 0 : _c.toLowerCase()], fileextension: record[(_d = cardInfo_1.extension) === null || _d === void 0 ? void 0 : _d.toLowerCase()] });
|
|
7751
|
-
}
|
|
7752
|
-
});
|
|
7753
|
-
this.data = data;
|
|
7747
|
+
var _c = this.card, data = _c.data, formSections = _c.formSections, cardInfo_1 = _c.cardInfo;
|
|
7748
|
+
if (cardInfo_1) {
|
|
7749
|
+
cardInfo_1 = objConvertToLower(cardInfo_1);
|
|
7750
|
+
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] })); });
|
|
7754
7751
|
}
|
|
7755
7752
|
else {
|
|
7756
7753
|
this.data = this.gridService.setDataFields(data);
|
|
@@ -7819,21 +7816,10 @@
|
|
|
7819
7816
|
});
|
|
7820
7817
|
};
|
|
7821
7818
|
CardComponent.prototype.replacePropName = function (cardInfo) {
|
|
7822
|
-
var
|
|
7819
|
+
var _c;
|
|
7823
7820
|
if (this.displayCardInfo && Object.keys(this.displayCardInfo).length > 0) {
|
|
7824
7821
|
var cardProp = Object.assign({}, this.displayCardInfo);
|
|
7825
|
-
|
|
7826
|
-
var values = Object.values(cardProp);
|
|
7827
|
-
if (!values.includes('blobfileurl')) {
|
|
7828
|
-
delete obj.blobfileurl;
|
|
7829
|
-
}
|
|
7830
|
-
if (!values.includes('filecaption')) {
|
|
7831
|
-
delete obj.filecaption;
|
|
7832
|
-
}
|
|
7833
|
-
if (!values.includes('fileextension')) {
|
|
7834
|
-
delete obj.fileextension;
|
|
7835
|
-
}
|
|
7836
|
-
return obj;
|
|
7822
|
+
return Object.assign(Object.assign({}, cardInfo), (_c = {}, _c[cardProp.url] = cardInfo.blobfileurl, _c[cardProp.caption] = cardInfo.filecaption, _c[cardProp.extension] = cardInfo.fileextension, _c));
|
|
7837
7823
|
}
|
|
7838
7824
|
else {
|
|
7839
7825
|
return cardInfo;
|