@churchillliving/se-ui-toolkit 6.53.335 → 6.53.337
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 +21 -12
- 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 +21 -12
- package/esm2015/lib/components/base/grid-row-actions/grid-row-actions.component.js +2 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +21 -12
- 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
|
@@ -3956,7 +3956,7 @@
|
|
|
3956
3956
|
// setting pagination page number UI
|
|
3957
3957
|
_this.table._first = 0;
|
|
3958
3958
|
}
|
|
3959
|
-
},
|
|
3959
|
+
}, 500);
|
|
3960
3960
|
}
|
|
3961
3961
|
},
|
|
3962
3962
|
enumerable: false,
|
|
@@ -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 = {
|
|
@@ -9811,7 +9820,7 @@
|
|
|
9811
9820
|
GridRowActionsComponent.decorators = [
|
|
9812
9821
|
{ type: i0.Component, args: [{
|
|
9813
9822
|
selector: 'se-grid-row-actions',
|
|
9814
|
-
template: "<!-- onRow Edit Button on Grid -->\n<button\n*ngIf=\"!editing && editRowPermission && !hideEditBtn
|
|
9823
|
+
template: "<!-- onRow Edit Button on Grid -->\n<button\n*ngIf=\"!editing && editRowPermission && !hideEditBtn\"\npButton\npRipple\ntype=\"button\"\npInitEditableRow\nicon=\"pi pi-pencil\"\n(click)=\"onRowEditInit(row)\"\n[class]=\"editAllRows || row['edit_btn'] ? 'pButtonHide editRow' : 'p-button-rounded p-button-text editRow'\"\n></button>\n<!-- onRow Edit delete Button on Grid -->\n<button\npButton\ntype=\"button\"\nicon=\"pi pi-trash\"\n(click)=\"deleteRecord(row)\"\nclass=\"p-button-rounded p-button-text\"\n*ngIf=\"!hideDeleteBtn && row.isNew !== true && deleteRowPermission && !row['delete_btn']\">\n</button>\n<!-- onRow Edit Save Button on Grid -->\n<button\n*ngIf=\"editing\"\npButton\npRipple\nid=\"saveSingleGridValue\"\ntype=\"button\"\npSaveEditableRow\nicon=\"pi pi-check\"\n(click)=\"onRowEditSave(row)\"\n[class]=\"editAllRows ? 'pButtonHide saveRow' : 'p-button-rounded p-button-text p-button-success p-mr-2 saveRow'\"\n></button>\n<!-- onRow Edit Cancel Button on Grid -->\n<button\n*ngIf=\"editing\"\npButton\npRipple\ntype=\"button\"\nicon=\"pi pi-times\"\n(click)=\"onRowEditCancel(row)\"\n[class]=\"editAllRows ? 'pButtonHide cancelRow' : 'p-button-rounded p-button-text p-button-danger cancelRow'\"\n></button>",
|
|
9815
9824
|
styles: [".pButtonHide{display:none}\n"]
|
|
9816
9825
|
},] }
|
|
9817
9826
|
];
|