@churchillliving/se-ui-toolkit 6.53.336 → 6.53.338
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 +19 -10
- 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 +20 -11
- package/fesm2015/churchillliving-se-ui-toolkit.js +19 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/grid/grid.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5749,16 +5749,25 @@
|
|
|
5749
5749
|
};
|
|
5750
5750
|
GridComponent.prototype.setFilterFocusOut = function (col, filter, event) {
|
|
5751
5751
|
var _this = this;
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5752
|
+
var _a;
|
|
5753
|
+
if (((_a = col === null || col === void 0 ? void 0 : col.filter) === null || _a === void 0 ? void 0 : _a.type) === exports.GridFilterControlType.LOOKUP_INPUT) {
|
|
5754
|
+
setTimeout(function () {
|
|
5755
|
+
_this.setGridFilter(col, filter, event);
|
|
5756
|
+
}, 250);
|
|
5757
|
+
}
|
|
5758
|
+
else {
|
|
5759
|
+
this.setGridFilter(col, filter, event);
|
|
5760
|
+
}
|
|
5761
|
+
};
|
|
5762
|
+
GridComponent.prototype.setGridFilter = function (col, filter, event) {
|
|
5763
|
+
this.gridFilterObj = { column: col, filter: filter, event: event };
|
|
5764
|
+
var newColumn = Object.assign({}, col);
|
|
5765
|
+
//change filter calender format
|
|
5766
|
+
if (newColumn.type === 'date' && newColumn.value) {
|
|
5767
|
+
newColumn.value = this.datePipe.transform(col.value.toString().trim(), 'yyyy-MM-dd');
|
|
5768
|
+
}
|
|
5769
|
+
this.filterObj(newColumn);
|
|
5770
|
+
localStorage.setItem('applyFilter', JSON.stringify(false));
|
|
5762
5771
|
};
|
|
5763
5772
|
GridComponent.prototype.filterObj = function (col) {
|
|
5764
5773
|
var obj = {
|