@churchillliving/se-ui-toolkit 6.53.158 → 6.53.160
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 +23 -7
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/form/form.component.js +2 -2
- package/esm2015/lib/components/base/grid/grid.component.js +23 -7
- package/fesm2015/churchillliving-se-ui-toolkit.js +23 -7
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -3554,6 +3554,7 @@
|
|
|
3554
3554
|
*/
|
|
3555
3555
|
GridComponent.prototype.ngOnInit = function () {
|
|
3556
3556
|
var _this = this;
|
|
3557
|
+
var _a;
|
|
3557
3558
|
// automatically reload grid after 9 seconds.
|
|
3558
3559
|
if (this.setGridRefreshTime) {
|
|
3559
3560
|
this.refreshGrid();
|
|
@@ -3562,6 +3563,8 @@
|
|
|
3562
3563
|
this.disabledSaveBtn = true;
|
|
3563
3564
|
}
|
|
3564
3565
|
this.componentTableRef = this.table;
|
|
3566
|
+
console.log('111: ', this.componentTableRef);
|
|
3567
|
+
console.log('BBB: ', (_a = this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id);
|
|
3565
3568
|
setTimeout(function () {
|
|
3566
3569
|
_this.setNumericValues();
|
|
3567
3570
|
}, 500);
|
|
@@ -3669,11 +3672,13 @@
|
|
|
3669
3672
|
};
|
|
3670
3673
|
GridComponent.prototype.ngOnChanges = function (change) {
|
|
3671
3674
|
var _this = this;
|
|
3672
|
-
var _a, _b, _c, _d;
|
|
3675
|
+
var _a, _b, _c, _d, _e;
|
|
3673
3676
|
if (this.allowCaching !== false && this.pagination) {
|
|
3674
3677
|
this.allowCaching = this.pagination;
|
|
3675
3678
|
}
|
|
3676
3679
|
else {
|
|
3680
|
+
console.log('222: ', this.componentTableRef);
|
|
3681
|
+
console.log('BBB: ', (_a = this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id);
|
|
3677
3682
|
localStorage.removeItem('SetFilters-' + currentUrl());
|
|
3678
3683
|
}
|
|
3679
3684
|
// add defaultRow in pagination array
|
|
@@ -3689,7 +3694,7 @@
|
|
|
3689
3694
|
this.applyColumnsPermissions();
|
|
3690
3695
|
// apply global permissions on entire grid
|
|
3691
3696
|
this.applyGridPermissions();
|
|
3692
|
-
this._selectedColumns = (
|
|
3697
|
+
this._selectedColumns = (_b = this.columns) === null || _b === void 0 ? void 0 : _b.filter(function (x) { return !x.hidden; });
|
|
3693
3698
|
this.cd.detectChanges();
|
|
3694
3699
|
if (hasColumns) {
|
|
3695
3700
|
this.columns = this.gridService.setColumnFields(this.columns);
|
|
@@ -3699,6 +3704,7 @@
|
|
|
3699
3704
|
this.hideFilter = true;
|
|
3700
3705
|
}
|
|
3701
3706
|
this.columns.forEach(function (column) {
|
|
3707
|
+
var _a;
|
|
3702
3708
|
// convert string time into the date
|
|
3703
3709
|
if (column.type === exports.EGridColumnType.DATE && column.timeOnly === true) {
|
|
3704
3710
|
_this.rowsData.forEach(function (row) {
|
|
@@ -3729,6 +3735,8 @@
|
|
|
3729
3735
|
}
|
|
3730
3736
|
var searchFilters;
|
|
3731
3737
|
if (!_this.softCaching) {
|
|
3738
|
+
console.log('333: ', _this.componentTableRef);
|
|
3739
|
+
console.log('CCC: ', (_a = _this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id);
|
|
3732
3740
|
searchFilters = JSON.parse(localStorage.getItem('SetFilters-' + currentUrl()));
|
|
3733
3741
|
}
|
|
3734
3742
|
else {
|
|
@@ -3785,7 +3793,7 @@
|
|
|
3785
3793
|
}
|
|
3786
3794
|
});
|
|
3787
3795
|
// Searching scenario
|
|
3788
|
-
if (((
|
|
3796
|
+
if (((_c = change.rows) === null || _c === void 0 ? void 0 : _c.currentValue) && ((_d = change.columns) === null || _d === void 0 ? void 0 : _d.currentValue)) {
|
|
3789
3797
|
// Checks either column value is changes (i.e., column hidden scenario)
|
|
3790
3798
|
if (JSON.stringify(change.columns.currentValue).toLowerCase() !==
|
|
3791
3799
|
JSON.stringify(this.columns).toLowerCase()) {
|
|
@@ -3826,7 +3834,7 @@
|
|
|
3826
3834
|
if (globalSearchbtn) {
|
|
3827
3835
|
this.searchGridFilter = false;
|
|
3828
3836
|
}
|
|
3829
|
-
if (((
|
|
3837
|
+
if (((_e = this.rowsData) === null || _e === void 0 ? void 0 : _e.length) > 0) {
|
|
3830
3838
|
this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
|
|
3831
3839
|
}
|
|
3832
3840
|
};
|
|
@@ -4255,7 +4263,7 @@
|
|
|
4255
4263
|
var _this = this;
|
|
4256
4264
|
this.gridfilter = event;
|
|
4257
4265
|
setTimeout(function () {
|
|
4258
|
-
var _a, _b;
|
|
4266
|
+
var _a, _b, _c;
|
|
4259
4267
|
if (_this.selectedColumns && _this.selectedColumns.length > 0) {
|
|
4260
4268
|
_this.selectedColumns.forEach(function (x) {
|
|
4261
4269
|
if (event.filters[x.field]) {
|
|
@@ -4274,6 +4282,8 @@
|
|
|
4274
4282
|
((_b = _this.serverFilters) === null || _b === void 0 ? void 0 : _b.filters.length) > 0 &&
|
|
4275
4283
|
(_this.allowCaching || _this.softCaching)) {
|
|
4276
4284
|
if (!_this.softCaching) {
|
|
4285
|
+
console.log('444: ', _this.componentTableRef);
|
|
4286
|
+
console.log('DDD: ', (_c = _this.componentTableRef) === null || _c === void 0 ? void 0 : _c.id);
|
|
4277
4287
|
localStorage.setItem('SetFilters-' + currentUrl(), JSON.stringify(_this.serverFilters));
|
|
4278
4288
|
}
|
|
4279
4289
|
else {
|
|
@@ -5195,11 +5205,13 @@
|
|
|
5195
5205
|
};
|
|
5196
5206
|
// Removing Header Filter Value using Backspace key Event or Delete key Event.
|
|
5197
5207
|
GridComponent.prototype.removingFilters = function (event, column) {
|
|
5198
|
-
var _a;
|
|
5208
|
+
var _a, _b, _c, _d;
|
|
5199
5209
|
if ((event.key === 'Backspace' || event.key === 'Delete') &&
|
|
5200
5210
|
((_a = column.value) === null || _a === void 0 ? void 0 : _a.toString().length) === 0) {
|
|
5201
5211
|
var searchFilters = void 0;
|
|
5202
5212
|
if (!this.softCaching) {
|
|
5213
|
+
console.log('555: ', this.componentTableRef);
|
|
5214
|
+
console.log('EEE: ', (_b = this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id);
|
|
5203
5215
|
searchFilters = JSON.parse(localStorage.getItem('SetFilters-' + currentUrl()));
|
|
5204
5216
|
}
|
|
5205
5217
|
else {
|
|
@@ -5210,11 +5222,15 @@
|
|
|
5210
5222
|
var index = searchFilters.filters.findIndex(function (x) { return x.field === column.field; });
|
|
5211
5223
|
if (index !== -1) {
|
|
5212
5224
|
if (searchFilters.filters.length === 1) {
|
|
5225
|
+
console.log('666: ', this.componentTableRef);
|
|
5226
|
+
console.log('FFF: ', (_c = this.componentTableRef) === null || _c === void 0 ? void 0 : _c.id);
|
|
5213
5227
|
localStorage.removeItem('SetFilters-' + currentUrl());
|
|
5214
5228
|
}
|
|
5215
5229
|
else {
|
|
5216
5230
|
searchFilters.filters.splice(index, 1);
|
|
5217
5231
|
if (!this.softCaching) {
|
|
5232
|
+
console.log('555: ', this.componentTableRef);
|
|
5233
|
+
console.log('EEE: ', (_d = this.componentTableRef) === null || _d === void 0 ? void 0 : _d.id);
|
|
5218
5234
|
localStorage.setItem('SetFilters-' + currentUrl(), JSON.stringify(searchFilters));
|
|
5219
5235
|
}
|
|
5220
5236
|
else {
|
|
@@ -6545,7 +6561,7 @@
|
|
|
6545
6561
|
else if (((_c = formField.hyperlink) === null || _c === void 0 ? void 0 : _c.target) === exports.EHyperlink.DIALOG) {
|
|
6546
6562
|
this.onClickEvent(formField);
|
|
6547
6563
|
var dialog = this.dialogService.open(formField.hyperlink.component, {
|
|
6548
|
-
header: ((_d = formField.hyperlink.data) === null || _d === void 0 ? void 0 : _d.header) ? (_e = formField.hyperlink.data) === null || _e === void 0 ? void 0 : _e.header : '
|
|
6564
|
+
header: ((_d = formField.hyperlink.data) === null || _d === void 0 ? void 0 : _d.header) ? (_e = formField.hyperlink.data) === null || _e === void 0 ? void 0 : _e.header : '',
|
|
6549
6565
|
width: formField.hyperlink.width ? formField.hyperlink.width : '90%',
|
|
6550
6566
|
height: formField.hyperlink.height ? formField.hyperlink.height : '80%',
|
|
6551
6567
|
data: formField.hyperlink.params,
|