@churchillliving/se-ui-toolkit 6.52.71 → 6.52.72
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 +15 -28
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/cards/card.component.js +6 -23
- package/esm2015/lib/components/base/form/form.component.js +8 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js +12 -25
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -6475,10 +6475,12 @@
|
|
|
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
6479
|
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
|
-
|
|
6480
|
+
if (saveAllGrid_1) {
|
|
6481
|
+
setTimeout(function () {
|
|
6482
|
+
saveAllGrid_1 === null || saveAllGrid_1 === void 0 ? void 0 : saveAllGrid_1.click();
|
|
6483
|
+
}, 100);
|
|
6482
6484
|
}
|
|
6483
6485
|
else if (getBtns && getBtns.length > 0) {
|
|
6484
6486
|
try {
|
|
@@ -6496,7 +6498,9 @@
|
|
|
6496
6498
|
}
|
|
6497
6499
|
}
|
|
6498
6500
|
this.browserTabCloseEvent(false);
|
|
6499
|
-
|
|
6501
|
+
setTimeout(function () {
|
|
6502
|
+
_this.saveForm.emit(_this.form.formSections);
|
|
6503
|
+
}, 2000);
|
|
6500
6504
|
(_e = this.form.formSections) === null || _e === void 0 ? void 0 : _e.forEach(function (formSection) {
|
|
6501
6505
|
if (formSection.fields) {
|
|
6502
6506
|
formSection.fields.forEach(function (field) {
|
|
@@ -7739,18 +7743,12 @@
|
|
|
7739
7743
|
CardComponent.prototype.ngOnInit = function () { };
|
|
7740
7744
|
CardComponent.prototype.ngOnChanges = function () {
|
|
7741
7745
|
var _this = this;
|
|
7746
|
+
var _a;
|
|
7742
7747
|
if (this.card) {
|
|
7743
|
-
var
|
|
7744
|
-
if (cardInfo_1
|
|
7745
|
-
|
|
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;
|
|
7748
|
+
var _c = this.card, data = _c.data, formSections = _c.formSections, cardInfo_1 = _c.cardInfo;
|
|
7749
|
+
if (cardInfo_1) {
|
|
7750
|
+
cardInfo_1 = objConvertToLower(cardInfo_1);
|
|
7751
|
+
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
7752
|
}
|
|
7755
7753
|
else {
|
|
7756
7754
|
this.data = this.gridService.setDataFields(data);
|
|
@@ -7819,21 +7817,10 @@
|
|
|
7819
7817
|
});
|
|
7820
7818
|
};
|
|
7821
7819
|
CardComponent.prototype.replacePropName = function (cardInfo) {
|
|
7822
|
-
var
|
|
7820
|
+
var _c;
|
|
7823
7821
|
if (this.displayCardInfo && Object.keys(this.displayCardInfo).length > 0) {
|
|
7824
7822
|
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;
|
|
7823
|
+
return Object.assign(Object.assign({}, cardInfo), (_c = {}, _c[cardProp.url] = cardInfo.blobfileurl, _c[cardProp.caption] = cardInfo.filecaption, _c[cardProp.extension] = cardInfo.fileextension, _c));
|
|
7837
7824
|
}
|
|
7838
7825
|
else {
|
|
7839
7826
|
return cardInfo;
|