@churchillliving/se-ui-toolkit 6.53.100 → 6.53.102
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 +26 -25
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/form/form.component.js +16 -14
- package/esm2015/lib/components/base/grid/grid.component.js +2 -3
- package/fesm2015/churchillliving-se-ui-toolkit.js +16 -15
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -3304,7 +3304,7 @@
|
|
|
3304
3304
|
this.addDataKeyValue = false;
|
|
3305
3305
|
this.globalData = [];
|
|
3306
3306
|
this.sortDisabled = false;
|
|
3307
|
-
this.hideRefreshBtn =
|
|
3307
|
+
this.hideRefreshBtn = false;
|
|
3308
3308
|
// Stores selected columns
|
|
3309
3309
|
this._selectedColumns = [];
|
|
3310
3310
|
// Boolean prop to allow horizontal Scroll on Table.
|
|
@@ -5338,7 +5338,6 @@
|
|
|
5338
5338
|
finally { if (e_2) throw e_2.error; }
|
|
5339
5339
|
}
|
|
5340
5340
|
Promise.all(records$_1).then(function (response) {
|
|
5341
|
-
console.log("AAAA");
|
|
5342
5341
|
_this.onRowUpdate.emit(_this.saveRecordArray);
|
|
5343
5342
|
_this.saveRecordArray = [];
|
|
5344
5343
|
});
|
|
@@ -6554,9 +6553,30 @@
|
|
|
6554
6553
|
}
|
|
6555
6554
|
});
|
|
6556
6555
|
if (validity) {
|
|
6556
|
+
// Save grid on formSave Button
|
|
6557
|
+
var saveAllGrid = document.getElementById('saveAllGridValues');
|
|
6558
|
+
var getBtns = (_c = (_b = this.el) === null || _b === void 0 ? void 0 : _b.nativeElement) === null || _c === void 0 ? void 0 : _c.getElementsByClassName('saveRow');
|
|
6559
|
+
if (saveAllGrid) {
|
|
6560
|
+
saveAllGrid.click();
|
|
6561
|
+
}
|
|
6562
|
+
else if (getBtns && getBtns.length > 0) {
|
|
6563
|
+
try {
|
|
6564
|
+
for (var getBtns_1 = __values(getBtns), getBtns_1_1 = getBtns_1.next(); !getBtns_1_1.done; getBtns_1_1 = getBtns_1.next()) {
|
|
6565
|
+
var btn = getBtns_1_1.value;
|
|
6566
|
+
btn === null || btn === void 0 ? void 0 : btn.click();
|
|
6567
|
+
}
|
|
6568
|
+
}
|
|
6569
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6570
|
+
finally {
|
|
6571
|
+
try {
|
|
6572
|
+
if (getBtns_1_1 && !getBtns_1_1.done && (_s = getBtns_1.return)) _s.call(getBtns_1);
|
|
6573
|
+
}
|
|
6574
|
+
finally { if (e_1) throw e_1.error; }
|
|
6575
|
+
}
|
|
6576
|
+
}
|
|
6557
6577
|
var tempValue_1 = [];
|
|
6558
6578
|
// set value as 1 or 0 in case of checkbox
|
|
6559
|
-
(
|
|
6579
|
+
(_d = this.form.formSections) === null || _d === void 0 ? void 0 : _d.forEach(function (formSection) {
|
|
6560
6580
|
if (formSection.fields && validity) {
|
|
6561
6581
|
formSection.fields.forEach(function (field) {
|
|
6562
6582
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -6585,29 +6605,10 @@
|
|
|
6585
6605
|
});
|
|
6586
6606
|
}
|
|
6587
6607
|
});
|
|
6588
|
-
// Save grid on formSave Button
|
|
6589
|
-
var saveAllGrid = document.getElementById('saveAllGridValues');
|
|
6590
|
-
var getBtns = (_d = (_c = this.el) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.getElementsByClassName('saveRow');
|
|
6591
|
-
if (saveAllGrid) {
|
|
6592
|
-
saveAllGrid.click();
|
|
6593
|
-
}
|
|
6594
|
-
else if (getBtns && getBtns.length > 0) {
|
|
6595
|
-
try {
|
|
6596
|
-
for (var getBtns_1 = __values(getBtns), getBtns_1_1 = getBtns_1.next(); !getBtns_1_1.done; getBtns_1_1 = getBtns_1.next()) {
|
|
6597
|
-
var btn = getBtns_1_1.value;
|
|
6598
|
-
btn === null || btn === void 0 ? void 0 : btn.click();
|
|
6599
|
-
}
|
|
6600
|
-
}
|
|
6601
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6602
|
-
finally {
|
|
6603
|
-
try {
|
|
6604
|
-
if (getBtns_1_1 && !getBtns_1_1.done && (_s = getBtns_1.return)) _s.call(getBtns_1);
|
|
6605
|
-
}
|
|
6606
|
-
finally { if (e_1) throw e_1.error; }
|
|
6607
|
-
}
|
|
6608
|
-
}
|
|
6609
6608
|
this.browserTabCloseEvent(false);
|
|
6610
|
-
|
|
6609
|
+
setTimeout(function () {
|
|
6610
|
+
_this.saveForm.emit(_this.form.formSections);
|
|
6611
|
+
}, saveAllGrid ? 80 : 0);
|
|
6611
6612
|
(_e = this.form.formSections) === null || _e === void 0 ? void 0 : _e.forEach(function (formSection) {
|
|
6612
6613
|
if (formSection.fields) {
|
|
6613
6614
|
formSection.fields.forEach(function (field) {
|