@acorex/data-grid 3.0.63 → 3.0.66
Sign up to get free protection for your applications and to get access to all the features.
- package/acorex-data-grid.metadata.json +1 -1
- package/bundles/acorex-data-grid.umd.js +25 -13
- package/bundles/acorex-data-grid.umd.js.map +1 -1
- package/bundles/acorex-data-grid.umd.min.js +1 -1
- package/bundles/acorex-data-grid.umd.min.js.map +1 -1
- package/esm2015/lib/data-grid/datagrid.component.js +26 -14
- package/esm5/lib/data-grid/datagrid.component.js +26 -14
- package/fesm2015/acorex-data-grid.js +25 -13
- package/fesm2015/acorex-data-grid.js.map +1 -1
- package/fesm5/acorex-data-grid.js +25 -13
- package/fesm5/acorex-data-grid.js.map +1 -1
- package/lib/data-grid/datagrid.component.d.ts +5 -1
- package/package.json +1 -1
@@ -52,6 +52,8 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
52
52
|
this.sizeColumnsToFit = true;
|
53
53
|
this.showCheckBox = true;
|
54
54
|
this.floatingFilter = false;
|
55
|
+
// @Input()
|
56
|
+
// takeCount: number;
|
55
57
|
this.autoGroupColumnDef = {};
|
56
58
|
this.selectionMode = 'single';
|
57
59
|
// @Input()
|
@@ -85,6 +87,12 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
85
87
|
this.getColumnDefs = () => {
|
86
88
|
return this.gridApi.getColumnDefs();
|
87
89
|
};
|
90
|
+
this.getCurrentPageNumber = () => {
|
91
|
+
return {
|
92
|
+
current: this.gridApi.paginationGetCurrentPage() + 1,
|
93
|
+
total: this.gridApi.paginationGetTotalPages()
|
94
|
+
};
|
95
|
+
};
|
88
96
|
this.getServerSideGroupKey = (e) => {
|
89
97
|
return e[this.keyField];
|
90
98
|
};
|
@@ -180,7 +188,8 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
180
188
|
loadParams.searchText = that.searchText;
|
181
189
|
loadParams.skip = params.request.startRow;
|
182
190
|
// loadParams.take = params.request.endRow - params.request.startRow;
|
183
|
-
loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
|
191
|
+
//// loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
|
192
|
+
loadParams.take = params.request.endRow - params.request.startRow;
|
184
193
|
loadParams.sort = params.request.sortModel.map((c) => {
|
185
194
|
return {
|
186
195
|
field: c.colId,
|
@@ -196,7 +205,10 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
196
205
|
parentData: params.parentNode.data
|
197
206
|
};
|
198
207
|
loadParams.filter = params.request.filterModel;
|
208
|
+
debugger;
|
209
|
+
/// setTimeout(() => {
|
199
210
|
that.dataSource.fetch(loadParams);
|
211
|
+
// }, 5000);
|
200
212
|
}
|
201
213
|
};
|
202
214
|
}
|
@@ -206,12 +218,15 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
206
218
|
ngOnDestroy() {
|
207
219
|
this.gridApi.destroy();
|
208
220
|
}
|
221
|
+
paginationGoToPage(number) {
|
222
|
+
this.gridApi.paginationGoToPage(number - 1);
|
223
|
+
}
|
209
224
|
// todo gridOptions: GridOptions
|
210
225
|
internalGridReady(gridOptions) {
|
211
|
-
gridOptions.api.checkGridSize();
|
212
|
-
this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
|
226
|
+
//// gridOptions.api.checkGridSize();
|
227
|
+
//// this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
|
213
228
|
// this.takeCount = this.takeCount < 20 ? 20 : this.takeCount;
|
214
|
-
gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
|
229
|
+
//// gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
|
215
230
|
this.gridApi = gridOptions.api;
|
216
231
|
this.mapColumns();
|
217
232
|
this.calcHeight();
|
@@ -246,11 +261,11 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
246
261
|
//this.cdr
|
247
262
|
}
|
248
263
|
ngOnInit() {
|
249
|
-
if (this.takeCount && this.takeCount > 0) {
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
}
|
264
|
+
// if (this.takeCount && this.takeCount > 0) {
|
265
|
+
// this.paginationPageSize = this.takeCount;
|
266
|
+
// this.paginationAutoPageSize = false;
|
267
|
+
// this.cacheBlockSize = this.takeCount;
|
268
|
+
// }
|
254
269
|
if (this.selectionMode === 'single') {
|
255
270
|
this.groupSelectsChildren = false;
|
256
271
|
}
|
@@ -339,6 +354,7 @@ let AXDataGridComponent = class AXDataGridComponent {
|
|
339
354
|
//});
|
340
355
|
this.enabelSelect = true;
|
341
356
|
this.dataSource.onDataReceived.subscribe((_data) => {
|
357
|
+
debugger;
|
342
358
|
const result = _data.data.result;
|
343
359
|
this.hideLoading();
|
344
360
|
let items;
|
@@ -585,10 +601,6 @@ __decorate([
|
|
585
601
|
Input(),
|
586
602
|
__metadata("design:type", Boolean)
|
587
603
|
], AXDataGridComponent.prototype, "floatingFilter", void 0);
|
588
|
-
__decorate([
|
589
|
-
Input(),
|
590
|
-
__metadata("design:type", Number)
|
591
|
-
], AXDataGridComponent.prototype, "takeCount", void 0);
|
592
604
|
__decorate([
|
593
605
|
Input(),
|
594
606
|
__metadata("design:type", String)
|
@@ -719,4 +731,4 @@ AXDataGridComponent = __decorate([
|
|
719
731
|
__metadata("design:paramtypes", [ElementRef, ChangeDetectorRef])
|
720
732
|
], AXDataGridComponent);
|
721
733
|
export { AXDataGridComponent };
|
722
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWdyaWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2RhdGFncmlkLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLGVBQWUsRUFDZixTQUFTLEVB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biAgfVxyXG5cclxuICBncmlkU2VsZWN0Um93KCkge1xyXG4gICAgaWYgKHRoaXMuZ3JpZEFwaSkge1xyXG4gICAgICBpZiAodGhpcy5zZWxlY3RSb3cgJiYgdGhpcy5zZWxlY3RSb3cubGVuZ3RoID4gMCAmJiB0aGlzLmdyaWRBcGkgIT09IHVuZGVmaW5lZCAmJiB0eXBlb2YgdGhpcy5zZWxlY3RSb3dbMF0gIT0gJ29iamVjdCcpIHtcclxuICAgICAgICB0aGlzLmdyaWRBcGkuZm9yRWFjaE5vZGUoKG5vZGUpID0+IHtcclxuICAgICAgICAgIGlmIChub2RlLmRhdGEgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICBsZXQgc2VsZWN0OiBib29sZWFuID0gZmFsc2U7XHJcbiAgICAgICAgICAgIHRoaXMuc2VsZWN0Um93LmZvckVhY2goKGlkKSA9PiB7XHJcbiAgICAgICAgICAgICAgaWYgKG5vZGUuZGF0YVt0aGlzLmtleUZpZWxkXSA9PT0gaWQpIHtcclxuICAgICAgICAgICAgICAgIHNlbGVjdCA9IHRydWU7XHJcbiAgICAgICAgICAgICAgICBub2RlLnNldFNlbGVjdGVkKHNlbGVjdCk7XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgICAgfSBlbHNlIHtcclxuICAgICAgICB0aGlzLmdyaWRBcGkuZm9yRWFjaE5vZGUoKG5vZGUpID0+IHtcclxuICAgICAgICAgIGlmIChub2RlLmRhdGEgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICBsZXQgc2VsZWN0OiBib29sZWFuID0gZmFsc2U7XHJcbiAgICAgICAgICAgIHRoaXMuc2VsZWN0Um93LmZvckVhY2goKGl0ZW0pID0+IHtcclxuICAgICAgICAgICAgICBpZiAoaXRlbS5yb3dJbmRleCAhPSB1bmRlZmluZWQgJiYgaXRlbS5yb3dMZXZlbCAhPSB1bm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ztcclxuICAgIGNvbnN0IG5vZGVzID0gdGhpcy5ncmlkQXBpLmdldFNlbGVjdGVkTm9kZXMoKTtcclxuICAgIG5vZGVzLmZvckVhY2goKGkpID0+IHtcclxuICAgICAgYXJncy5pdGVtcy5wdXNoKHtcclxuICAgICAgICByb3dMZXZlbDogaS5sZXZlbCxcclxuICAgICAgICByb3dJbmRleDogaS5yb3dJbmRleCxcclxuICAgICAgICBkYXRhOiBpLmRhdGFcclxuICAgICAgfSk7XHJcbiAgICB9KTtcclxuICAgIHRoaXMuc2VsZWN0aW9uQ2hhbmdlZC5lbWl0KHsgZGF0YTogYXJncywgY29tcG9uZW50OiB0aGlzLCBodG1sRWxlbWVudDogdGhpcy5yZWYubmF0aXZlRWxlbWVudCB9KTtcclxuICAgIGxldCBhY3Rpb24gPSBub2Rlcy5sZW5ndGggPiBvbGROb2Rlcy5sZW5ndGggPyB0cnVlIDogZmFsc2U7XHJcbiAgICBjb25zdCBub2RlID0gdGhpcy5kaWZmZXJlbmNlT2YyQXJyYXlzKG5vZGVzLCBvbGROb2Rlcyk7XHJcbiAgICB0aGlzLm9uUm93U2VsZWN0aW9uQ2hhbmdlZC5lbWl0KHsgY29tcG9uZW50OiB0aGlzLCBzZWxlY3RlZDogYWN0aW9uLCBkYXRhOiBub2RlLCBodG1sRWxlbWVudDogdGhpcy5yZWYubmF0aXZlRWxlbWVudCB9KTtcclxuICAgIHRoaXMub2xkU2VsZWN0aW9uTm9kZXMgPSBub2RlcztcclxuICB9XHJcblxyXG4gIHByaXZhdGUgbWFwQ2VsbEV2ZW50KGU6IENlbGxFdmVudCk6IEFYR3JpZENlbGxFdmVudCB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICByb3dMZXZlbDogMCxcclxuICAgICAgY29sdW1uOiBlLmNvbHVtbixcclxuICAgICAgZGF0YTogZS5kYXRhLFxyXG4gICAgICByb3dJbmRleDogZS5yb3dJbmRleCxcclxuICAgICAgdmFsdWU6IGUudmFsdWVcclxuICAgIH07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