@churchillliving/se-ui-toolkit 6.52.70 → 6.52.71
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 +27 -13
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/cards/card.component.js +23 -6
- package/esm2015/lib/components/base/form/form.component.js +3 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js +24 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -6475,13 +6475,10 @@
|
|
|
6475
6475
|
}
|
|
6476
6476
|
});
|
|
6477
6477
|
// Save grid on formSave Button
|
|
6478
|
-
var
|
|
6479
|
-
console.log('saveAllGrid: ', saveAllGrid_1);
|
|
6478
|
+
var saveAllGrid = document.getElementById('saveAllGridValues');
|
|
6480
6479
|
var getBtns = (_d = (_c = this.el) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.getElementsByClassName('saveRow');
|
|
6481
|
-
if (
|
|
6482
|
-
|
|
6483
|
-
saveAllGrid_1 === null || saveAllGrid_1 === void 0 ? void 0 : saveAllGrid_1.click();
|
|
6484
|
-
}, 50);
|
|
6480
|
+
if (saveAllGrid) {
|
|
6481
|
+
saveAllGrid.click();
|
|
6485
6482
|
}
|
|
6486
6483
|
else if (getBtns && getBtns.length > 0) {
|
|
6487
6484
|
try {
|
|
@@ -7742,12 +7739,18 @@
|
|
|
7742
7739
|
CardComponent.prototype.ngOnInit = function () { };
|
|
7743
7740
|
CardComponent.prototype.ngOnChanges = function () {
|
|
7744
7741
|
var _this = this;
|
|
7745
|
-
var _a;
|
|
7746
7742
|
if (this.card) {
|
|
7747
|
-
var
|
|
7748
|
-
if (cardInfo_1) {
|
|
7749
|
-
|
|
7750
|
-
|
|
7743
|
+
var _e = this.card, data = _e.data, formSections = _e.formSections, cardInfo_1 = _e.cardInfo;
|
|
7744
|
+
if (cardInfo_1 && Object.keys(cardInfo_1).length) {
|
|
7745
|
+
this.displayCardInfo = cardInfo_1;
|
|
7746
|
+
data = this.gridService.setDataFields(data);
|
|
7747
|
+
data === null || data === void 0 ? void 0 : data.forEach(function (record) {
|
|
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;
|
|
7751
7754
|
}
|
|
7752
7755
|
else {
|
|
7753
7756
|
this.data = this.gridService.setDataFields(data);
|
|
@@ -7816,10 +7819,21 @@
|
|
|
7816
7819
|
});
|
|
7817
7820
|
};
|
|
7818
7821
|
CardComponent.prototype.replacePropName = function (cardInfo) {
|
|
7819
|
-
var
|
|
7822
|
+
var _e;
|
|
7820
7823
|
if (this.displayCardInfo && Object.keys(this.displayCardInfo).length > 0) {
|
|
7821
7824
|
var cardProp = Object.assign({}, this.displayCardInfo);
|
|
7822
|
-
|
|
7825
|
+
var obj = Object.assign(Object.assign({}, cardInfo), (_e = {}, _e[cardProp.url] = cardInfo.blobfileurl, _e[cardProp.caption] = cardInfo.filecaption, _e[cardProp.extension] = cardInfo.fileextension, _e));
|
|
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;
|
|
7823
7837
|
}
|
|
7824
7838
|
else {
|
|
7825
7839
|
return cardInfo;
|