@churchillliving/se-ui-toolkit 6.53.192 → 6.53.194
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 +13 -15
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +14 -16
- package/fesm2015/churchillliving-se-ui-toolkit.js +13 -15
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/grid/grid.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3467,7 +3467,7 @@
|
|
|
3467
3467
|
this.inEditMode = false;
|
|
3468
3468
|
this.saveRecordArray = [];
|
|
3469
3469
|
this.disabledSaveBtn = false;
|
|
3470
|
-
this.
|
|
3470
|
+
this.isCheckBoxChangeEventCalled = false;
|
|
3471
3471
|
this.editModeChecked = true;
|
|
3472
3472
|
this.editModeunCkecked = false;
|
|
3473
3473
|
this.calendarFormat = 'mm/dd/y';
|
|
@@ -3626,12 +3626,8 @@
|
|
|
3626
3626
|
*/
|
|
3627
3627
|
set: function (data) {
|
|
3628
3628
|
var _this = this;
|
|
3629
|
-
var _a;
|
|
3630
3629
|
this.loading = false;
|
|
3631
|
-
if (!
|
|
3632
|
-
if (this.isFilterApplied) {
|
|
3633
|
-
this.isFilterApplied = false;
|
|
3634
|
-
}
|
|
3630
|
+
if (!this.isCheckBoxChangeEventCalled) {
|
|
3635
3631
|
if (data && data.length > 0) {
|
|
3636
3632
|
if (!this.dataKey) {
|
|
3637
3633
|
this.dataKey = 'id';
|
|
@@ -3717,7 +3713,7 @@
|
|
|
3717
3713
|
serverFilterValues.pageSize = _this.defaultRows;
|
|
3718
3714
|
}
|
|
3719
3715
|
if (_this.gridService.applyFilterEvent) {
|
|
3720
|
-
_this.
|
|
3716
|
+
_this.isCheckBoxChangeEventCalled = false;
|
|
3721
3717
|
_this.onServerSideEventChange.emit(serverFilterValues);
|
|
3722
3718
|
}
|
|
3723
3719
|
localStorage.removeItem('applyFilter');
|
|
@@ -3870,13 +3866,13 @@
|
|
|
3870
3866
|
};
|
|
3871
3867
|
GridComponent.prototype.ngOnChanges = function (change) {
|
|
3872
3868
|
var _this = this;
|
|
3873
|
-
var _a, _b, _c, _d, _e, _f
|
|
3874
|
-
if (!
|
|
3869
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3870
|
+
if (!this.isCheckBoxChangeEventCalled) {
|
|
3875
3871
|
if (this.allowCaching !== false && this.pagination) {
|
|
3876
3872
|
this.allowCaching = this.pagination;
|
|
3877
3873
|
}
|
|
3878
|
-
else if ((
|
|
3879
|
-
localStorage.removeItem('SetFilters-' + ((
|
|
3874
|
+
else if ((_a = this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id) {
|
|
3875
|
+
localStorage.removeItem('SetFilters-' + ((_b = this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id) + currentUrl());
|
|
3880
3876
|
}
|
|
3881
3877
|
// add defaultRow in pagination array
|
|
3882
3878
|
if (!this.setPaginationLength.includes(this.defaultRows)) {
|
|
@@ -3891,7 +3887,7 @@
|
|
|
3891
3887
|
this.applyColumnsPermissions();
|
|
3892
3888
|
// apply global permissions on entire grid
|
|
3893
3889
|
this.applyGridPermissions();
|
|
3894
|
-
this._selectedColumns = (
|
|
3890
|
+
this._selectedColumns = (_c = this.columns) === null || _c === void 0 ? void 0 : _c.filter(function (x) { return !x.hidden; });
|
|
3895
3891
|
this.cd.detectChanges();
|
|
3896
3892
|
if (hasColumns) {
|
|
3897
3893
|
this.columns = this.gridService.setColumnFields(this.columns);
|
|
@@ -4013,7 +4009,7 @@
|
|
|
4013
4009
|
}
|
|
4014
4010
|
});
|
|
4015
4011
|
// Searching scenario
|
|
4016
|
-
if (((
|
|
4012
|
+
if (((_d = change.rows) === null || _d === void 0 ? void 0 : _d.currentValue) && ((_e = change.columns) === null || _e === void 0 ? void 0 : _e.currentValue)) {
|
|
4017
4013
|
// Checks either column value is changes (i.e., column hidden scenario)
|
|
4018
4014
|
if (JSON.stringify(change.columns.currentValue).toLowerCase() !==
|
|
4019
4015
|
JSON.stringify(this.columns).toLowerCase()) {
|
|
@@ -4055,10 +4051,11 @@
|
|
|
4055
4051
|
if (globalSearchbtn) {
|
|
4056
4052
|
this.searchGridFilter = false;
|
|
4057
4053
|
}
|
|
4058
|
-
if (((
|
|
4054
|
+
if (((_f = this.rowsData) === null || _f === void 0 ? void 0 : _f.length) > 0) {
|
|
4059
4055
|
this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
|
|
4060
4056
|
}
|
|
4061
4057
|
}
|
|
4058
|
+
this.isCheckBoxChangeEventCalled = false;
|
|
4062
4059
|
};
|
|
4063
4060
|
// set DisplayText when value is in curly brackets.
|
|
4064
4061
|
GridComponent.prototype.setDisplayTextValue = function (column) {
|
|
@@ -4514,7 +4511,7 @@
|
|
|
4514
4511
|
}
|
|
4515
4512
|
var serverFilterValues = JSON.parse(JSON.stringify(_this.serverFilters));
|
|
4516
4513
|
serverFilterValues.filters = (_this.serverFilters.filters || []).concat(_this.globalData);
|
|
4517
|
-
_this.
|
|
4514
|
+
_this.isCheckBoxChangeEventCalled = false;
|
|
4518
4515
|
_this.onServerSideEventChange.emit(serverFilterValues);
|
|
4519
4516
|
}, 950);
|
|
4520
4517
|
};
|
|
@@ -5547,6 +5544,7 @@
|
|
|
5547
5544
|
};
|
|
5548
5545
|
GridComponent.prototype.checkBoxChangeEvent = function (event, column, row) {
|
|
5549
5546
|
row[column.field] = event;
|
|
5547
|
+
this.isCheckBoxChangeEventCalled = true;
|
|
5550
5548
|
this.rowsChange.emit(this.rowsData);
|
|
5551
5549
|
};
|
|
5552
5550
|
// set dropdown displayField value base on optionLabel & optionValue.
|