@churchillliving/se-ui-toolkit 6.53.510 → 6.53.517
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 +26 -46
- 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 +14 -26
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +7 -7
- package/esm2015/lib/models/form.model.js +2 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +20 -32
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/grid/grid.component.d.ts +2 -3
- package/lib/models/form.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
EMatchMode["NOTCONTAINS"] = "notContains";
|
|
1054
1054
|
EMatchMode["LT"] = "lt";
|
|
1055
1055
|
EMatchMode["BEFORE"] = "before";
|
|
1056
|
-
EMatchMode["DATEBEFORE"] = "
|
|
1056
|
+
EMatchMode["DATEBEFORE"] = "dateBefore";
|
|
1057
1057
|
EMatchMode["LTE"] = "lte";
|
|
1058
1058
|
EMatchMode["GT"] = "gt";
|
|
1059
1059
|
EMatchMode["AFTER"] = "after";
|
|
@@ -3884,6 +3884,8 @@
|
|
|
3884
3884
|
this.reportButtons = [];
|
|
3885
3885
|
this.rowHover = false;
|
|
3886
3886
|
this.hideFilterOptions = false;
|
|
3887
|
+
// Sets pagenation for the table Data.
|
|
3888
|
+
this.setPaginationLength = [5, 10, 15, { showAll: 'All' }];
|
|
3887
3889
|
// set the change in the rowData
|
|
3888
3890
|
this.rowsChange = new i0.EventEmitter();
|
|
3889
3891
|
// Input decorator to receive columns to be displayed in header
|
|
@@ -3905,6 +3907,8 @@
|
|
|
3905
3907
|
this.aggregatedResult = [];
|
|
3906
3908
|
this.showconfirmDialog = true;
|
|
3907
3909
|
this.saveAllData = false;
|
|
3910
|
+
// Sets number of rows to be shown the grid
|
|
3911
|
+
this.defaultRows = 0;
|
|
3908
3912
|
this.columnActions = [];
|
|
3909
3913
|
// Decides the grid's behavior either for client side or server side events
|
|
3910
3914
|
this.useServerSideEvents = false;
|
|
@@ -3957,20 +3961,6 @@
|
|
|
3957
3961
|
enumerable: false,
|
|
3958
3962
|
configurable: true
|
|
3959
3963
|
});
|
|
3960
|
-
Object.defineProperty(GridComponent.prototype, "setPaginationLength", {
|
|
3961
|
-
// Sets pagenation for the table Data.
|
|
3962
|
-
set: function (value) {
|
|
3963
|
-
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
3964
|
-
this.rowsPerPageOptions = value;
|
|
3965
|
-
if (this.defaultRowNumber && !this.rowsPerPageOptions.includes(this.defaultRowNumber)) {
|
|
3966
|
-
this.rowsPerPageOptions.unshift(this.defaultRowNumber);
|
|
3967
|
-
}
|
|
3968
|
-
}
|
|
3969
|
-
},
|
|
3970
|
-
enumerable: false,
|
|
3971
|
-
configurable: true
|
|
3972
|
-
});
|
|
3973
|
-
;
|
|
3974
3964
|
Object.defineProperty(GridComponent.prototype, "rows", {
|
|
3975
3965
|
/**
|
|
3976
3966
|
* Stops the loader and sets the data to grid
|
|
@@ -4064,8 +4054,8 @@
|
|
|
4064
4054
|
// setting pagination page as first
|
|
4065
4055
|
serverFilterValues.page = 1;
|
|
4066
4056
|
this.autoLoadData = true;
|
|
4067
|
-
if (this.
|
|
4068
|
-
serverFilterValues.pageSize = this.
|
|
4057
|
+
if (this.defaultRows && this.pagination) {
|
|
4058
|
+
serverFilterValues.pageSize = this.defaultRows;
|
|
4069
4059
|
}
|
|
4070
4060
|
if (this.gridService.applyFilterEvent) {
|
|
4071
4061
|
this.isCheckBoxChangeEventCalled = false;
|
|
@@ -4081,20 +4071,6 @@
|
|
|
4081
4071
|
enumerable: false,
|
|
4082
4072
|
configurable: true
|
|
4083
4073
|
});
|
|
4084
|
-
Object.defineProperty(GridComponent.prototype, "defaultRows", {
|
|
4085
|
-
// Sets number of rows to be shown the grid
|
|
4086
|
-
set: function (value) {
|
|
4087
|
-
if (value) {
|
|
4088
|
-
this.defaultRowNumber = value;
|
|
4089
|
-
if (!this.rowsPerPageOptions.includes(this.defaultRowNumber)) {
|
|
4090
|
-
this.rowsPerPageOptions.unshift(this.defaultRowNumber);
|
|
4091
|
-
}
|
|
4092
|
-
}
|
|
4093
|
-
},
|
|
4094
|
-
enumerable: false,
|
|
4095
|
-
configurable: true
|
|
4096
|
-
});
|
|
4097
|
-
;
|
|
4098
4074
|
Object.defineProperty(GridComponent.prototype, "selectedColumns", {
|
|
4099
4075
|
get: function () {
|
|
4100
4076
|
return this._selectedColumns;
|
|
@@ -4238,6 +4214,10 @@
|
|
|
4238
4214
|
else if ((_a = this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id) {
|
|
4239
4215
|
localStorage.removeItem('SetFilters-' + ((_b = this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id) + this.currentUrl);
|
|
4240
4216
|
}
|
|
4217
|
+
// add defaultRow in pagination array
|
|
4218
|
+
if (!this.setPaginationLength.includes(this.defaultRows)) {
|
|
4219
|
+
this.setPaginationLength.unshift(this.defaultRows);
|
|
4220
|
+
}
|
|
4241
4221
|
var hasColumns = this.columns && this.columns.length > 0;
|
|
4242
4222
|
if (hasColumns) {
|
|
4243
4223
|
this.columns = this.gridService.setColumnFields(this.columns);
|
|
@@ -4258,7 +4238,7 @@
|
|
|
4258
4238
|
this.hideFilter = true;
|
|
4259
4239
|
}
|
|
4260
4240
|
this.columns.forEach(function (column) {
|
|
4261
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4241
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4262
4242
|
// set isRequired true for required column to show astric in column header
|
|
4263
4243
|
if ((_a = column.validations) === null || _a === void 0 ? void 0 : _a.find(function (validation) { return validation.type == exports.EGridValidator.REQUIRED; })) {
|
|
4264
4244
|
column.isRequired = true;
|
|
@@ -4311,7 +4291,7 @@
|
|
|
4311
4291
|
if (!_this.hideFilter &&
|
|
4312
4292
|
searchFilters &&
|
|
4313
4293
|
searchFilters.filters &&
|
|
4314
|
-
searchFilters.filters.length > 0) {
|
|
4294
|
+
((_g = searchFilters.filters) === null || _g === void 0 ? void 0 : _g.length) > 0) {
|
|
4315
4295
|
searchFilters.filters.forEach(function (x) {
|
|
4316
4296
|
var _a;
|
|
4317
4297
|
if (x.field === column.field) {
|
|
@@ -4334,7 +4314,7 @@
|
|
|
4334
4314
|
// set AutoComplete Data
|
|
4335
4315
|
if (column.type === exports.EGridColumnType.AUTOCOMPLETE &&
|
|
4336
4316
|
_this.rowsData &&
|
|
4337
|
-
_this.rowsData.length > 0) {
|
|
4317
|
+
((_h = _this.rowsData) === null || _h === void 0 ? void 0 : _h.length) > 0) {
|
|
4338
4318
|
_this.rowsData.forEach(function (row) {
|
|
4339
4319
|
var _32, _33, _34;
|
|
4340
4320
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -8496,8 +8476,8 @@
|
|
|
8496
8476
|
action: x.action,
|
|
8497
8477
|
items: x.items && x.items.length > 0 ? _this.setMenuItems(x) : [],
|
|
8498
8478
|
title: _this.setMenuTitle(x),
|
|
8499
|
-
command: function (
|
|
8500
|
-
var item =
|
|
8479
|
+
command: function (_g) {
|
|
8480
|
+
var item = _g.item;
|
|
8501
8481
|
if (x.action && x.action === exports.ESidebarAction.NAVIGATION) {
|
|
8502
8482
|
_this.navigateToSection(x, item);
|
|
8503
8483
|
}
|
|
@@ -8533,8 +8513,8 @@
|
|
|
8533
8513
|
expanded: menu.expanded,
|
|
8534
8514
|
action: menu.action,
|
|
8535
8515
|
title: _this.setMenuTitle(x),
|
|
8536
|
-
command: function (
|
|
8537
|
-
var item =
|
|
8516
|
+
command: function (_g) {
|
|
8517
|
+
var item = _g.item;
|
|
8538
8518
|
if (x.action && x.action === exports.ESidebarAction.NAVIGATION) {
|
|
8539
8519
|
_this.navigateToSection(menu, item);
|
|
8540
8520
|
}
|
|
@@ -8574,15 +8554,15 @@
|
|
|
8574
8554
|
};
|
|
8575
8555
|
SidebarComponent.prototype.loadIFrameData = function (menu, item) {
|
|
8576
8556
|
var _this = this;
|
|
8577
|
-
var _a, _b, _c, _d;
|
|
8557
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8578
8558
|
if (menu) {
|
|
8579
8559
|
var dialogRef = this.dialogService.open(IframeComponent, {
|
|
8580
|
-
header: menu.section,
|
|
8581
|
-
width: ((
|
|
8582
|
-
height: ((
|
|
8583
|
-
data: { value: (
|
|
8560
|
+
header: ((_a = menu['data']) === null || _a === void 0 ? void 0 : _a.header) ? (_b = menu['data']) === null || _b === void 0 ? void 0 : _b.header : menu.section,
|
|
8561
|
+
width: ((_c = menu.iFrame) === null || _c === void 0 ? void 0 : _c.width) ? menu.iFrame.width : '90%',
|
|
8562
|
+
height: ((_d = menu.iFrame) === null || _d === void 0 ? void 0 : _d.height) ? menu.iFrame.height : '80%',
|
|
8563
|
+
data: { value: (_e = menu.iFrame) === null || _e === void 0 ? void 0 : _e.link, iFrameId: menu.section },
|
|
8584
8564
|
});
|
|
8585
|
-
this.pageLoggerService.savePageLoggerInfo((
|
|
8565
|
+
this.pageLoggerService.savePageLoggerInfo((_f = this.router.url) === null || _f === void 0 ? void 0 : _f.substring(1), 'IframeComponent');
|
|
8586
8566
|
this.handleActiveItem(item);
|
|
8587
8567
|
draggableDialog(menu.label);
|
|
8588
8568
|
dialogRef.onClose.subscribe(function (data) {
|
|
@@ -8744,8 +8724,8 @@
|
|
|
8744
8724
|
* @param item
|
|
8745
8725
|
* Passes the event of the menu
|
|
8746
8726
|
*/
|
|
8747
|
-
SidebarComponent.prototype.handleActiveItem = function (
|
|
8748
|
-
var icon =
|
|
8727
|
+
SidebarComponent.prototype.handleActiveItem = function (_g, closeDialog) {
|
|
8728
|
+
var icon = _g.icon;
|
|
8749
8729
|
if (closeDialog === void 0) { closeDialog = true; }
|
|
8750
8730
|
this.menuItems = this.menuItems.map(function (x) {
|
|
8751
8731
|
var _a;
|