@churchillliving/se-ui-toolkit 6.53.287 → 6.53.289
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 +10 -7
- 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 +11 -8
- package/fesm2015/churchillliving-se-ui-toolkit.js +10 -7
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -3873,6 +3873,7 @@
|
|
|
3873
3873
|
});
|
|
3874
3874
|
this.loading = this.autoLoadData;
|
|
3875
3875
|
setTimeout(function () {
|
|
3876
|
+
var _a;
|
|
3876
3877
|
if (_this.gridService.applyFilterEvent || _this.autoLoadData) {
|
|
3877
3878
|
_this.onApplyFilter.emit();
|
|
3878
3879
|
}
|
|
@@ -3894,6 +3895,7 @@
|
|
|
3894
3895
|
}
|
|
3895
3896
|
if (_this.gridService.applyFilterEvent) {
|
|
3896
3897
|
_this.isCheckBoxChangeEventCalled = false;
|
|
3898
|
+
_this.gridService.softCachingFilters[((_a = _this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id) + currentUrl()] = serverFilterValues;
|
|
3897
3899
|
_this.onServerSideEventChange.emit(serverFilterValues);
|
|
3898
3900
|
}
|
|
3899
3901
|
localStorage.removeItem('applyFilter');
|
|
@@ -5678,7 +5680,7 @@
|
|
|
5678
5680
|
};
|
|
5679
5681
|
// Removing Header Filter Value using Backspace key Event or Delete key Event.
|
|
5680
5682
|
GridComponent.prototype.removingFilters = function (event, column) {
|
|
5681
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5683
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5682
5684
|
if ((event.key === 'Backspace' || event.key === 'Delete') &&
|
|
5683
5685
|
((_a = column.value) === null || _a === void 0 ? void 0 : _a.toString().length) === 0) {
|
|
5684
5686
|
var searchFilters = void 0;
|
|
@@ -5691,17 +5693,18 @@
|
|
|
5691
5693
|
if (searchFilters && searchFilters.filters) {
|
|
5692
5694
|
if (searchFilters.filters.length > 0) {
|
|
5693
5695
|
var index = searchFilters.filters.findIndex(function (x) { return x.field === column.field; });
|
|
5694
|
-
if (index
|
|
5696
|
+
if (index > -1) {
|
|
5695
5697
|
if (searchFilters.filters.length === 1 && ((_f = this.componentTableRef) === null || _f === void 0 ? void 0 : _f.id)) {
|
|
5696
|
-
|
|
5698
|
+
this.gridService.softCachingFilters[((_g = this.componentTableRef) === null || _g === void 0 ? void 0 : _g.id) + currentUrl()] = [];
|
|
5699
|
+
localStorage.removeItem('SetFilters-' + ((_h = this.componentTableRef) === null || _h === void 0 ? void 0 : _h.id) + currentUrl());
|
|
5697
5700
|
}
|
|
5698
5701
|
else {
|
|
5699
5702
|
searchFilters.filters.splice(index, 1);
|
|
5700
|
-
if (!this.softCaching && ((
|
|
5701
|
-
localStorage.setItem('SetFilters-' + ((
|
|
5703
|
+
if (!this.softCaching && ((_j = this.componentTableRef) === null || _j === void 0 ? void 0 : _j.id)) {
|
|
5704
|
+
localStorage.setItem('SetFilters-' + ((_k = this.componentTableRef) === null || _k === void 0 ? void 0 : _k.id) + currentUrl(), JSON.stringify(searchFilters));
|
|
5702
5705
|
}
|
|
5703
|
-
else if ((
|
|
5704
|
-
this.gridService.softCachingFilters[((
|
|
5706
|
+
else if ((_l = this.componentTableRef) === null || _l === void 0 ? void 0 : _l.id) {
|
|
5707
|
+
this.gridService.softCachingFilters[((_m = this.componentTableRef) === null || _m === void 0 ? void 0 : _m.id) + currentUrl()] = searchFilters;
|
|
5705
5708
|
}
|
|
5706
5709
|
}
|
|
5707
5710
|
}
|