@churchillliving/se-ui-toolkit 6.53.193 → 6.53.195
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 +24 -25
- 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 +25 -26
- package/fesm2015/churchillliving-se-ui-toolkit.js +24 -25
- 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()) {
|
|
@@ -4039,26 +4035,27 @@
|
|
|
4039
4035
|
}
|
|
4040
4036
|
});
|
|
4041
4037
|
}
|
|
4038
|
+
setTimeout(function () {
|
|
4039
|
+
var _a, _b;
|
|
4040
|
+
var classElement = document.getElementsByClassName('highlighted-row');
|
|
4041
|
+
if (classElement.length > 0) {
|
|
4042
|
+
classElement[0].scrollIntoView();
|
|
4043
|
+
}
|
|
4044
|
+
if (_this.editAllRows && ((_a = _this.rowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = _this.columns) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
4045
|
+
_this.editAllRowsAtOnce();
|
|
4046
|
+
}
|
|
4047
|
+
}, 500);
|
|
4042
4048
|
}
|
|
4043
4049
|
this.setDropdowndataValue = true;
|
|
4044
4050
|
var globalSearchbtn = document.getElementById('globalSearchbtn');
|
|
4045
4051
|
if (globalSearchbtn) {
|
|
4046
4052
|
this.searchGridFilter = false;
|
|
4047
4053
|
}
|
|
4048
|
-
if (((
|
|
4054
|
+
if (((_f = this.rowsData) === null || _f === void 0 ? void 0 : _f.length) > 0) {
|
|
4049
4055
|
this.rowsDataCopy = JSON.parse(JSON.stringify(this.rowsData));
|
|
4050
4056
|
}
|
|
4051
4057
|
}
|
|
4052
|
-
|
|
4053
|
-
var _a, _b;
|
|
4054
|
-
var classElement = document.getElementsByClassName('highlighted-row');
|
|
4055
|
-
if (classElement.length > 0) {
|
|
4056
|
-
classElement[0].scrollIntoView();
|
|
4057
|
-
}
|
|
4058
|
-
if (_this.editAllRows && ((_a = _this.rowsData) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = _this.columns) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
4059
|
-
_this.editAllRowsAtOnce();
|
|
4060
|
-
}
|
|
4061
|
-
}, 500);
|
|
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
|
};
|
|
@@ -4881,6 +4878,7 @@
|
|
|
4881
4878
|
if (!this.inEditMode && this.setGridRefreshTime) {
|
|
4882
4879
|
this.refreshGrid();
|
|
4883
4880
|
}
|
|
4881
|
+
this.isCheckBoxChangeEventCalled = false;
|
|
4884
4882
|
};
|
|
4885
4883
|
// check the validation of the field
|
|
4886
4884
|
GridComponent.prototype.gridValidation = function (columns, row) {
|
|
@@ -5547,6 +5545,7 @@
|
|
|
5547
5545
|
};
|
|
5548
5546
|
GridComponent.prototype.checkBoxChangeEvent = function (event, column, row) {
|
|
5549
5547
|
row[column.field] = event;
|
|
5548
|
+
this.isCheckBoxChangeEventCalled = true;
|
|
5550
5549
|
this.rowsChange.emit(this.rowsData);
|
|
5551
5550
|
};
|
|
5552
5551
|
// set dropdown displayField value base on optionLabel & optionValue.
|