@churchillliving/se-ui-toolkit 6.53.39 → 6.53.41
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 +7 -1
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +3 -1
- package/esm2015/lib/components/shared/global-filters/global-filters.component.js +6 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +7 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -5068,10 +5068,12 @@
|
|
|
5068
5068
|
var _this = this;
|
|
5069
5069
|
this.gridFilterObj = { column: col, filter: filter, event: event };
|
|
5070
5070
|
var newColumn = Object.assign({}, col);
|
|
5071
|
+
console.log('BBBBBBBB: ', newColumn);
|
|
5071
5072
|
//change filter calender format
|
|
5072
5073
|
if (newColumn.type === 'date' && newColumn.value) {
|
|
5073
5074
|
newColumn.value = this.datePipe.transform(col.value.toString().trim(), 'yyyy-MM-dd');
|
|
5074
5075
|
}
|
|
5076
|
+
console.log('AAAA: ', this.globalFiltersArray);
|
|
5075
5077
|
setTimeout(function () {
|
|
5076
5078
|
_this.filterObj(newColumn);
|
|
5077
5079
|
}, newColumn.type === exports.EGridColumnType.LOOKUP_INPUT ? 250 : 0);
|
|
@@ -8335,7 +8337,7 @@
|
|
|
8335
8337
|
// change calendar format on run time if user type date on the calendar field.
|
|
8336
8338
|
SeGlobalFilterComponent.prototype.calendarFocusEvent = function (globalFilter, event) {
|
|
8337
8339
|
var _this = this;
|
|
8338
|
-
var _a, _b, _c;
|
|
8340
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
8339
8341
|
if (((_b = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) === 0 && globalFilter.type === exports.GridFilterControlType.DATE_RANGE) {
|
|
8340
8342
|
this.setDateRangeValue(globalFilter, true);
|
|
8341
8343
|
}
|
|
@@ -8353,6 +8355,10 @@
|
|
|
8353
8355
|
_this.calendarFormat = 'mm/dd/y';
|
|
8354
8356
|
}
|
|
8355
8357
|
});
|
|
8358
|
+
var yearValue = (_f = (_e = (_d = event === null || event === void 0 ? void 0 : event.target) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.toString()) === null || _f === void 0 ? void 0 : _f.split('/')[4];
|
|
8359
|
+
if ((((_h = (_g = event === null || event === void 0 ? void 0 : event.target) === null || _g === void 0 ? void 0 : _g.value) === null || _h === void 0 ? void 0 : _h.length) === 0 || yearValue == undefined || ((_j = yearValue === null || yearValue === void 0 ? void 0 : yearValue.toString()) === null || _j === void 0 ? void 0 : _j.length) === 1) && globalFilter.type === exports.GridFilterControlType.DATE_RANGE) {
|
|
8360
|
+
this.setDateRangeValue(globalFilter, true);
|
|
8361
|
+
}
|
|
8356
8362
|
};
|
|
8357
8363
|
SeGlobalFilterComponent.prototype.checkFilterValidation = function (removeError) {
|
|
8358
8364
|
if (removeError === void 0) { removeError = false; }
|