@acorex/data-grid 6.5.29 → 6.5.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/acorex-data-grid.d.ts +5 -5
  3. package/esm2020/acorex-data-grid.mjs +4 -4
  4. package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -117
  5. package/esm2020/lib/data-grid/columns/column.component.mjs +164 -164
  6. package/esm2020/lib/data-grid/columns/command-column.component.mjs +115 -115
  7. package/esm2020/lib/data-grid/columns/date-column.component.mjs +111 -111
  8. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -37
  9. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -42
  10. package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -89
  11. package/esm2020/lib/data-grid/datagrid.component.mjs +667 -667
  12. package/esm2020/lib/data-grid/datagrid.events.mjs +2 -2
  13. package/esm2020/lib/data-grid/datagrid.module.mjs +145 -145
  14. package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -39
  15. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -53
  16. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -46
  17. package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -43
  18. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +114 -114
  19. package/esm2020/lib/data-lov/data-lov.component.mjs +165 -165
  20. package/esm2020/lib/data-lov/data-lov.module.mjs +23 -23
  21. package/esm2020/public-api.mjs +18 -18
  22. package/fesm2015/acorex-data-grid.mjs +1833 -1833
  23. package/fesm2015/acorex-data-grid.mjs.map +1 -1
  24. package/fesm2020/acorex-data-grid.mjs +1833 -1833
  25. package/fesm2020/acorex-data-grid.mjs.map +1 -1
  26. package/lib/data-grid/columns/check-column.component.d.ts +37 -37
  27. package/lib/data-grid/columns/column.component.d.ts +32 -32
  28. package/lib/data-grid/columns/command-column.component.d.ts +27 -27
  29. package/lib/data-grid/columns/date-column.component.d.ts +32 -32
  30. package/lib/data-grid/columns/row-number-column.component.d.ts +10 -10
  31. package/lib/data-grid/columns/selection-column.component.d.ts +12 -12
  32. package/lib/data-grid/columns/text-column.component.d.ts +25 -25
  33. package/lib/data-grid/datagrid.component.d.ts +142 -142
  34. package/lib/data-grid/datagrid.events.d.ts +20 -20
  35. package/lib/data-grid/datagrid.module.d.ts +23 -23
  36. package/lib/data-grid/filters/filter.component.d.ts +5 -5
  37. package/lib/data-grid/templates/cell-template.component.d.ts +22 -22
  38. package/lib/data-grid/templates/detail-template.component.d.ts +21 -21
  39. package/lib/data-grid/templates/row-template.component.d.ts +20 -20
  40. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +33 -33
  41. package/lib/data-lov/data-lov.component.d.ts +43 -43
  42. package/lib/data-lov/data-lov.module.d.ts +12 -12
  43. package/package.json +1 -1
  44. package/public-api.d.ts +17 -17
@@ -1,667 +1,667 @@
1
- import { Component, ContentChild, Input, ContentChildren, QueryList, EventEmitter, Output, ElementRef, ChangeDetectorRef } from '@angular/core';
2
- import { AXDataSourceComponent } from '@acorex/components';
3
- import { AXGridDataColumn } from './columns/column.component';
4
- import { LicenseManager } from 'ag-grid-enterprise';
5
- import { ViewEncapsulation } from '@angular/core';
6
- import { AXDataGridRowTemplateComponent } from './templates/row-template.component';
7
- import { AXToolbarSearchComponent, AXToolbarComponent, AXDataEvent, AXValueEvent } from '@acorex/components';
8
- import { AXDataGridDetailTemplateComponent } from './templates/detail-template.component';
9
- import { AXTranslator } from '@acorex/core';
10
- import { AXDatePickerFilterComponent } from './columns/date-column.component';
11
- import { AXConfig } from '@acorex/core';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "ag-grid-angular";
14
- import * as i2 from "@angular/common";
15
- LicenseManager.prototype.validateLicense = function () {
16
- //console.info('Cracked by Arash Oshnoudi!');
17
- };
18
- // WatermarkComp.prototype.shouldDisplayWatermark = function () {
19
- // return false;
20
- // }
21
- export class AXDataGridColumnsChangeEvent extends AXValueEvent {
22
- }
23
- export class AXDataGridCellEvent extends AXDataEvent {
24
- }
25
- export class AXDaagridRowClickEvent extends AXDataEvent {
26
- }
27
- export class AXDataGridSelectionChangeEvent extends AXDataEvent {
28
- }
29
- export class AXDataGridRowSelectionChangeEvent extends AXDataEvent {
30
- }
31
- export class AXDataGridComponent {
32
- constructor(ref, cdr) {
33
- this.ref = ref;
34
- this.cdr = cdr;
35
- this.columnDefs = [];
36
- this.rowModelType = 'clientSide';
37
- this.frameworkComponents = {};
38
- this.internalHeight = '100%';
39
- this.masterDetail = false;
40
- this.treeData = false;
41
- this.enabelSelect = false;
42
- this.gridView = false;
43
- this.groupSelectsChildren = false;
44
- this.oldSelectionNodes = [];
45
- this.paginationAutoPageSize = true;
46
- this.paginationPageSize = 10;
47
- this.cacheBlockSize = 10;
48
- // @Input()
49
- // showRowNumber: boolean = true;
50
- this.remoteOperation = false;
51
- this.rowMultiSelectWithClick = true;
52
- this.suppressRowClickSelection = true;
53
- this.suppressCellSelection = false;
54
- this.sizeColumnsToFit = true;
55
- this.showCheckBox = true;
56
- this.floatingFilter = false;
57
- // @Input()
58
- // takeCount: number;
59
- this.autoGroupColumnDef = {};
60
- this.selectionMode = 'single';
61
- // @Input()
62
- // allowFiltering: boolean = false;
63
- this.pagination = true;
64
- this.selectRow = [];
65
- this.rowGroupPanelShow = 'never';
66
- this.loadOnInit = true;
67
- // @Input()
68
- // groupDefaultExpanded: number = 0;
69
- this.keyField = 'null';
70
- this.hasChildField = 'null';
71
- this.columnsChange = new EventEmitter();
72
- this._columns = [];
73
- this.defaultColDef = {
74
- filter: true,
75
- floatingFilter: true
76
- };
77
- this.groupHideOpenParents = false;
78
- this.cellClick = new EventEmitter();
79
- this.cellDbClick = new EventEmitter();
80
- this.cellFocuse = new EventEmitter();
81
- this.rowClick = new EventEmitter();
82
- this.rowDbClick = new EventEmitter();
83
- this.selectionChanged = new EventEmitter();
84
- this.rowSelectionChange = new EventEmitter();
85
- this.onRowSelectionChanged = new EventEmitter();
86
- this.rtl = AXConfig.get('layout.rtl');
87
- this.isServerSideGroup = (e) => {
88
- return e[this.hasChildField];
89
- };
90
- this.getColumnDefs = () => {
91
- return this.gridApi.getColumnDefs();
92
- };
93
- this.getCurrentPageNumber = () => {
94
- return {
95
- current: this.gridApi.paginationGetCurrentPage() + 1,
96
- total: this.gridApi.paginationGetTotalPages()
97
- };
98
- };
99
- this.getServerSideGroupKey = (e) => {
100
- return e[this.keyField];
101
- };
102
- this.internalGetRowClass = (p) => {
103
- if (this.rowClass) {
104
- if (this.rowClass instanceof Function) {
105
- return this.rowClass({
106
- rowIndex: p.node.rowIndex,
107
- rowLevel: p.node.level,
108
- data: p.data
109
- });
110
- }
111
- else {
112
- return this.rowClass;
113
- }
114
- }
115
- };
116
- this.localeText = AXTranslator.get('dataGrid');
117
- }
118
- get searchText() {
119
- return this._searchText;
120
- }
121
- set searchText(v) {
122
- if (v !== this._searchText) {
123
- this._searchText = v;
124
- if (this.gridApi) {
125
- this.refresh();
126
- this.gridApi.setQuickFilter(this.searchText);
127
- }
128
- }
129
- }
130
- get filter() {
131
- return this._filter;
132
- }
133
- set filter(v) {
134
- if (v !== this._filter) {
135
- this._filter = v;
136
- this._filter.forEach((f) => {
137
- const fc = this.gridApi.getFilterInstance(f.field);
138
- if (fc) {
139
- const ff = fc.getFrameworkComponentInstance();
140
- ff.setModel(f);
141
- }
142
- });
143
- }
144
- }
145
- get columns() {
146
- return this._inlineColumns ? [...this._columns, ...this._inlineColumns.toArray()] : this._columns;
147
- }
148
- set columns(val) {
149
- if (val && val.length) {
150
- let old = this._columns;
151
- this._columns = val;
152
- this.columnsChange.emit({ component: this, value: val, oldValue: old, htmlElement: this.ref.nativeElement });
153
- }
154
- }
155
- get dataSource() {
156
- return this._dataSource ? this._dataSource : this._contentDataSource;
157
- }
158
- set dataSource(v) {
159
- this._dataSource = v;
160
- }
161
- getRowHeight(param) {
162
- if (param.data && param.data.rowHeight && param.node.level == 0) {
163
- return param.data.rowHeight;
164
- }
165
- else if (this.masterDetail == true && param.node.level == 1) {
166
- return this.detailRowHeight;
167
- }
168
- else if (this.masterDetail == false && param.data && param.data.rowHeight) {
169
- return param.data.rowHeight;
170
- }
171
- else {
172
- return null;
173
- }
174
- }
175
- calcHeight() {
176
- if (this.toolbar) {
177
- this.internalHeight = `calc(100% - ${40}px)`;
178
- }
179
- else {
180
- this.internalHeight = '100%';
181
- }
182
- }
183
- get intenalGridDataSource() {
184
- const that = this;
185
- return {
186
- rowCount: null,
187
- getRows: (params) => {
188
- // that.gridApi.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount ? this.takeCount : params.api.paginationGetPageSize());
189
- that.dataSourceSuccessCallback = params.successCallback;
190
- const loadParams = {};
191
- loadParams.searchText = that.searchText;
192
- loadParams.skip = params.request.startRow;
193
- // loadParams.take = params.request.endRow - params.request.startRow;
194
- //// loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
195
- loadParams.take = params.request.endRow - params.request.startRow;
196
- loadParams.sort = params.request.sortModel.map((c) => {
197
- return {
198
- field: c.colId,
199
- dir: c.sort
200
- };
201
- });
202
- // loadParams.groups = params.request.rowGroupCols.map(r => r.field);
203
- // loadParams.groupKeys = params.request.groupKeys;
204
- // loadParams.data = params.parentNode.data;
205
- loadParams.group = {
206
- fields: params.request.rowGroupCols.map((r) => r.field),
207
- keys: params.request.groupKeys,
208
- parentData: params.parentNode.data
209
- };
210
- loadParams.filter = params.request.filterModel;
211
- /// setTimeout(() => {
212
- that.dataSource.fetch(loadParams);
213
- // }, 5000);
214
- }
215
- };
216
- }
217
- getMainMenuItems(e) {
218
- return ['pinSubMenu', 'separator'];
219
- }
220
- ngOnDestroy() {
221
- this.gridApi.destroy();
222
- }
223
- paginationGoToPage(number) {
224
- this.gridApi.paginationGoToPage(number - 1);
225
- }
226
- // todo gridOptions: GridOptions
227
- internalGridReady(gridOptions) {
228
- //// gridOptions.api.checkGridSize();
229
- //// this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
230
- // this.takeCount = this.takeCount < 20 ? 20 : this.takeCount;
231
- //// gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
232
- this.gridApi = gridOptions.api;
233
- this.mapColumns();
234
- this.calcHeight();
235
- if (!this.loadOnInit) {
236
- this.loadOnInit = true;
237
- return;
238
- }
239
- if (this.remoteOperation) {
240
- this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
241
- }
242
- if (!this.remoteOperation) {
243
- this.refresh();
244
- }
245
- }
246
- ngAfterContentInit() {
247
- const that = this;
248
- if (this.rowTemplate) {
249
- this.fullWidthCellRendererFramework = this.rowTemplate.renderer;
250
- this.fullWidthCellRendererParams = this.rowTemplate.params;
251
- }
252
- this.frameworkComponents.agDateInput = AXDatePickerFilterComponent;
253
- if (this.gridDetailTemplate) {
254
- this.masterDetail = true;
255
- this.detailCellRendererParams = this.gridDetailTemplate.params;
256
- this.detailCellRenderer = 'detailRendererFramework';
257
- this.frameworkComponents.detailRendererFramework = this.gridDetailTemplate.renderer;
258
- this.detailRowHeight = this.gridDetailTemplate.height;
259
- }
260
- this.isFullWidthCell = () => {
261
- return that.rowTemplate != null;
262
- };
263
- //this.cdr
264
- }
265
- ngOnInit() {
266
- // if (this.takeCount && this.takeCount > 0) {
267
- // this.paginationPageSize = this.takeCount;
268
- // this.paginationAutoPageSize = false;
269
- // this.cacheBlockSize = this.takeCount;
270
- // }
271
- if (this.selectionMode === 'single') {
272
- this.groupSelectsChildren = false;
273
- }
274
- if (this.keyField !== 'null' && this.hasChildField !== 'null') {
275
- this.rowGroupPanelShow = 'never';
276
- this.treeData = true;
277
- }
278
- if (this.remoteOperation) {
279
- this.rowModelType = 'serverSide';
280
- }
281
- //
282
- if (this.rtl == null) {
283
- this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
284
- }
285
- //
286
- }
287
- gridSelectRow() {
288
- if (this.gridApi) {
289
- if (this.selectRow && this.selectRow.length > 0 && this.gridApi !== undefined && typeof this.selectRow[0] != 'object') {
290
- this.gridApi.forEachNode((node) => {
291
- if (node.data !== undefined) {
292
- let select = false;
293
- this.selectRow.forEach((id) => {
294
- if (node.data[this.keyField] === id) {
295
- select = true;
296
- node.setSelected(select);
297
- }
298
- });
299
- }
300
- });
301
- }
302
- else {
303
- this.gridApi.forEachNode((node) => {
304
- if (node.data !== undefined) {
305
- let select = false;
306
- this.selectRow.forEach((item) => {
307
- if (item.rowIndex != undefined && item.rowLevel != undefined) {
308
- if (node.data[this.keyField] === item.data[this.keyField]) {
309
- select = true;
310
- }
311
- }
312
- else {
313
- if (node.data[this.keyField] === item[this.keyField]) {
314
- select = true;
315
- }
316
- }
317
- });
318
- node.setSelected(select);
319
- }
320
- });
321
- }
322
- }
323
- }
324
- // ngAfterViewChecked(): void {
325
- // //Called after every check of the component's view. Applies to components only.
326
- // //Add 'implements AfterViewChecked' to the class.
327
- // // this.selectByValues();
328
- // this.enabelSelect = false;
329
- // }
330
- rebuildGrid() {
331
- this.mapColumns();
332
- setTimeout(() => {
333
- if (this.sizeColumnsToFit) {
334
- this.gridApi.sizeColumnsToFit();
335
- }
336
- }, 10);
337
- }
338
- ngAfterViewInit() {
339
- if (this.treeData === true) {
340
- this.columnDefs = this.columns.map((c) => c.render());
341
- const groupColumn = this.columnDefs.find((c) => c.rowGroupIndex == '0' && c.field !== '');
342
- this.autoGroupColumnDef = {
343
- headerName: groupColumn.headerName,
344
- width: groupColumn.width,
345
- cellRendererParams: { checkbox: this.showCheckBox },
346
- field: groupColumn.field
347
- };
348
- this.columnDefs.forEach((elm) => {
349
- if (elm.rowGroupIndex > -1) {
350
- elm.hide = true;
351
- }
352
- });
353
- }
354
- //setTimeout(() => {
355
- this.gridView = true;
356
- //});
357
- this.enabelSelect = true;
358
- this.dataSource.onDataReceived.subscribe((_data) => {
359
- const result = _data.data.result;
360
- this.hideLoading();
361
- let items;
362
- let totalCount;
363
- if (Array.isArray(result)) {
364
- items = result;
365
- totalCount = result.length;
366
- }
367
- else {
368
- items = result.items;
369
- totalCount = result.totalCount;
370
- }
371
- if (this.dataSourceSuccessCallback) {
372
- if (!this.loadOnInit) {
373
- this.dataSourceSuccessCallback([], 0);
374
- }
375
- else {
376
- this.dataSourceSuccessCallback(items, totalCount);
377
- }
378
- }
379
- else {
380
- if (!this.loadOnInit && this.gridApi !== undefined) {
381
- this.gridApi.setRowData([]);
382
- }
383
- else if (this.gridApi !== undefined) {
384
- this.gridApi.setRowData(items);
385
- }
386
- }
387
- this.gridSelectRow();
388
- });
389
- this.dataSource.onFetchStart.subscribe(() => {
390
- this.showLoading();
391
- });
392
- if (this.searchInput) {
393
- this.searchInput.onValueChanged.subscribe((c) => {
394
- this.searchText = c.value;
395
- });
396
- }
397
- //
398
- this.cdr.detectChanges();
399
- }
400
- mapColumns() {
401
- this.columnDefs = this.columns.map((c) => c.render());
402
- // if (this.showRowNumber) {
403
- // this.columnDefs.push({
404
- // headerName: AXConfig.get('layout.rtl') ? 'ردیف' : 'Row',
405
- // valueGetter: 'node.rowIndex + 1',
406
- // pinned: AXConfig.get('layout.rtl') ? 'right' : 'left'
407
- // });
408
- // }
409
- if (this.gridDetailTemplate) {
410
- if (this.columnDefs[0].checkboxSelection === true && this.columnDefs[0].field === '') {
411
- this.columnDefs[1].cellRenderer = 'agGroupCellRenderer';
412
- }
413
- else {
414
- this.columnDefs[0].cellRenderer = 'agGroupCellRenderer';
415
- }
416
- }
417
- if (this.hasChildField === 'null') {
418
- const groupColumn = this.columnDefs.find((c) => c.rowGroupIndex === undefined && c.field !== '');
419
- if (groupColumn && this.groupHideOpenParents == false) {
420
- this.autoGroupColumnDef = {
421
- headerName: groupColumn.headerName,
422
- width: groupColumn.width,
423
- cellRendererParams: { checkbox: this.showCheckBox },
424
- field: groupColumn.field
425
- };
426
- // groupColumn.hide = true;
427
- }
428
- }
429
- this.columnDefs.forEach((elm) => {
430
- if (elm.rowGroupIndex > -1) {
431
- elm.hide = true;
432
- }
433
- });
434
- }
435
- displayedColumnsChanged(e) {
436
- if (this.hasChildField === 'null') {
437
- const ee = e.columnApi.getAllDisplayedColumnGroups();
438
- const eee = ee.find((c) => c.colId !== 'ag-Grid-AutoColumn' && c.colId !== '0');
439
- if (eee && eee.colId) {
440
- this.autoGroupColumnDef = {
441
- headerName: eee.colDef.headerName,
442
- width: eee.colDef.width,
443
- cellRendererParams: { checkbox: this.showCheckBox },
444
- field: eee.colDef.field
445
- };
446
- }
447
- // eee.hide = true;
448
- }
449
- }
450
- refresh(route = []) {
451
- if (this.remoteOperation && this.gridApi !== undefined) {
452
- // this.gridApi.purgeServerSideCache(route);
453
- this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
454
- }
455
- else {
456
- // TODO : check fetch param
457
- this.dataSource.fetch(null);
458
- }
459
- }
460
- internalGridCellClicked(e) {
461
- this.cellClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
462
- }
463
- internalGridCellDoubleClicked(e) {
464
- this.cellDbClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
465
- }
466
- internalGridCellFocused(e) {
467
- this.cellFocuse.emit({ data: this.mapCellEvent(e), htmlElement: this.ref.nativeElement, component: this });
468
- }
469
- internalGridRowClicked(e) {
470
- if (!e.node.group) {
471
- this.rowClick.emit({ data: this.mapRowEvent(e), component: this, htmlElement: this.ref.nativeElement });
472
- }
473
- }
474
- internalGridRowDoubleClicked(e) {
475
- if (!e.node.group) {
476
- this.rowDbClick.emit({ data: this.mapRowEvent(e), htmlElement: this.ref.nativeElement, component: this });
477
- }
478
- }
479
- differenceOf2Arrays(array1, array2) {
480
- const temp = [];
481
- for (const i in array1) {
482
- if (array2.indexOf(array1[i]) === -1) {
483
- temp.push(array1[i]);
484
- }
485
- }
486
- for (const i in array2) {
487
- if (array1.indexOf(array2[i]) === -1) {
488
- temp.push(array2[i]);
489
- }
490
- }
491
- return temp.sort((a, b) => a - b);
492
- }
493
- rowSelectionChanged(e) {
494
- // this.gridApi.forEachNode((node) => {
495
- // if (node.data[this.keyField] == e.node.data[this.keyField]) {
496
- // node.setSelected(e.node.selected);
497
- // }
498
- // });
499
- if (e.node.selected == true) {
500
- this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
501
- this.selectRow.push(e.data);
502
- }
503
- else {
504
- this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
505
- }
506
- this.rowSelectionChange.emit({ component: this, data: e, htmlElement: this.ref.nativeElement });
507
- }
508
- internalGridSelectionChanged(e) {
509
- const args = { items: [] };
510
- const oldNodes = this.oldSelectionNodes;
511
- const nodes = this.gridApi.getSelectedNodes();
512
- nodes.forEach((i) => {
513
- args.items.push({
514
- rowLevel: i.level,
515
- rowIndex: i.rowIndex,
516
- data: i.data
517
- });
518
- });
519
- this.selectionChanged.emit({ data: args, component: this, htmlElement: this.ref.nativeElement });
520
- let action = nodes.length > oldNodes.length ? true : false;
521
- const node = this.differenceOf2Arrays(nodes, oldNodes);
522
- this.onRowSelectionChanged.emit({ component: this, selected: action, data: node, htmlElement: this.ref.nativeElement });
523
- this.oldSelectionNodes = nodes;
524
- }
525
- mapCellEvent(e) {
526
- return {
527
- rowLevel: 0,
528
- column: e.column,
529
- data: e.data,
530
- rowIndex: e.rowIndex,
531
- value: e.value
532
- };
533
- }
534
- mapRowEvent(e) {
535
- return {
536
- rowLevel: 0,
537
- data: e.data,
538
- rowIndex: e.rowIndex
539
- };
540
- }
541
- deselectAll() {
542
- this.gridApi.deselectAll();
543
- }
544
- deselectByKeyField(keyField) {
545
- this.gridApi.forEachNode((node) => {
546
- if (node.data !== undefined) {
547
- let select = false;
548
- if (node.data[this.keyField] === keyField) {
549
- node.setSelected(select);
550
- this.selectRow = this.selectRow.filter((c) => c[this.keyField] != keyField);
551
- }
552
- }
553
- });
554
- }
555
- showLoading() {
556
- if (this.gridApi) {
557
- this.gridApi.showLoadingOverlay();
558
- }
559
- }
560
- hideLoading() {
561
- if (this.gridApi) {
562
- this.gridApi.hideOverlay();
563
- }
564
- }
565
- internalGridSizeChanged(e) {
566
- if (e.clientWidth > 0 && e.clientHeight > 0) {
567
- this.performSizeColumnsToFit(e.api);
568
- }
569
- // this.refresh();
570
- // this.gridApi.paginationGoToFirstPage();
571
- }
572
- internalGridFirstDataRendered(e) {
573
- this.performSizeColumnsToFit(e.api);
574
- }
575
- performSizeColumnsToFit(api) {
576
- if (this.sizeColumnsToFit) {
577
- api.sizeColumnsToFit();
578
- }
579
- }
580
- }
581
- AXDataGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
582
- AXDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridComponent, selector: "ax-data-grid", inputs: { remoteOperation: "remoteOperation", rowMultiSelectWithClick: "rowMultiSelectWithClick", suppressRowClickSelection: "suppressRowClickSelection", suppressCellSelection: "suppressCellSelection", sizeColumnsToFit: "sizeColumnsToFit", showCheckBox: "showCheckBox", floatingFilter: "floatingFilter", selectionMode: "selectionMode", pagination: "pagination", selectRow: "selectRow", rowGroupPanelShow: "rowGroupPanelShow", loadOnInit: "loadOnInit", keyField: "keyField", hasChildField: "hasChildField", searchText: "searchText", filter: "filter", columns: "columns", rowHeight: "rowHeight", dataSource: "dataSource", groupHideOpenParents: "groupHideOpenParents", rowClass: "rowClass", rtl: "rtl" }, outputs: { columnsChange: "columnsChange", cellClick: "cellClick", cellDbClick: "cellDbClick", cellFocuse: "cellFocuse", rowClick: "rowClick", rowDbClick: "rowDbClick", selectionChanged: "selectionChanged", rowSelectionChange: "rowSelectionChange", onRowSelectionChanged: "onRowSelectionChanged" }, queries: [{ propertyName: "searchInput", first: true, predicate: AXToolbarSearchComponent, descendants: true, static: true }, { propertyName: "toolbar", first: true, predicate: AXToolbarComponent, descendants: true, static: true }, { propertyName: "rowTemplate", first: true, predicate: AXDataGridRowTemplateComponent, descendants: true, static: true }, { propertyName: "gridDetailTemplate", first: true, predicate: AXDataGridDetailTemplateComponent, descendants: true, static: true }, { propertyName: "_contentDataSource", first: true, predicate: AXDataSourceComponent, descendants: true, static: true }, { propertyName: "_inlineColumns", predicate: AXGridDataColumn }], ngImport: i0, template: "<div class=\"ax-grid-toolbar\" *ngIf=\"toolbar\">\r\n <ng-content select=\"ax-toolbar\"></ng-content>\r\n</div>\r\n<!-- [enableSorting]=\"true\" [enableColResize]=\"true\" [enableFilter]=\"allowFiltering\" -->\r\n<ag-grid-angular *ngIf=\"gridView\" class=\"ag-theme-balham\" [getRowClass]=\"internalGetRowClass\"\r\n [style.height]=\"internalHeight\" [columnDefs]=\"columnDefs\" [enableRtl]=\"rtl\" [pagination]=\"pagination\"\r\n [rowGroupPanelShow]=\"rowGroupPanelShow\" [rowModelType]=\"rowModelType\" [detailRowHeight]=\"detailRowHeight\"\r\n [getRowHeight]=\"getRowHeight\" [paginationAutoPageSize]=\"paginationAutoPageSize\"\r\n [paginationPageSize]=\"paginationPageSize\" [suppressMenuHide]=\"true\" [frameworkComponents]=\"frameworkComponents\"\r\n [isFullWidthCell]=\"isFullWidthCell\" [rowSelection]=\"selectionMode\" [rowMultiSelectWithClick]=\"rowMultiSelectWithClick\"\r\n [fullWidthCellRendererFramework]=\"fullWidthCellRendererFramework\"\r\n [fullWidthCellRendererParams]=\"fullWidthCellRendererParams\" (cellClicked)=\"internalGridCellClicked($event)\"\r\n (cellDoubleClicked)=\"internalGridCellDoubleClicked($event)\" (cellFocused)=\"internalGridCellFocused($event)\"\r\n (rowClicked)=\"internalGridRowClicked($event)\" (selectionChanged)=\"internalGridSelectionChanged($event)\"\r\n (rowSelected)=\"rowSelectionChanged($event)\" (rowDoubleClicked)=\"internalGridRowDoubleClicked($event)\"\r\n (gridReady)=\"internalGridReady($event)\" [groupSelectsChildren]=\"groupSelectsChildren\"\r\n [suppressRowClickSelection]=\"suppressRowClickSelection\" [groupSelectsFiltered]=\"true\"\r\n [suppressCellSelection]=\"suppressCellSelection\" [autoGroupColumnDef]=\"autoGroupColumnDef\"\r\n [suppressAggFuncInHeader]=\"true\" [treeData]=\"treeData\" [animateRows]=\"true\" [isServerSideGroup]=\"isServerSideGroup\"\r\n [getServerSideGroupKey]=\"getServerSideGroupKey\" [masterDetail]=\"masterDetail\"\r\n [detailCellRendererParams]=\"detailCellRendererParams\" [detailCellRenderer]=\"detailCellRenderer\"\r\n (gridSizeChanged)=\"internalGridSizeChanged($event)\" (firstDataRendered)=\"internalGridFirstDataRendered($event)\"\r\n [localeText]=\"localeText\" [groupHideOpenParents]=\"groupHideOpenParents\" [enableRangeSelection]=\"true\"\r\n [enableRangeSelection]=\"false\" [allowContextMenuWithControlKey]=\"false\" [getMainMenuItems]=\"getMainMenuItems\">\r\n</ag-grid-angular>\r\n\r\n<!-- (displayedColumnsChanged)=\"displayedColumnsChanged($event)\" -->", components: [{ type: i1.AgGridAngular, selector: "ag-grid-angular", inputs: ["alignedGrids", "rowData", "columnDefs", "excelStyles", "pinnedTopRowData", "pinnedBottomRowData", "chartThemes", "components", "frameworkComponents", "rowStyle", "context", "autoGroupColumnDef", "localeText", "icons", "datasource", "serverSideDatasource", "viewportDatasource", "groupRowRendererParams", "aggFuncs", "fullWidthCellRendererParams", "defaultColGroupDef", "defaultColDef", "defaultExportParams", "columnTypes", "rowClassRules", "detailGridOptions", "detailCellRendererParams", "loadingCellRendererParams", "loadingOverlayComponentParams", "noRowsOverlayComponentParams", "popupParent", "colResizeDefault", "reduxStore", "statusBar", "sideBar", "chartThemeOverrides", "customChartThemes", "sortingOrder", "rowClass", "rowSelection", "overlayLoadingTemplate", "overlayNoRowsTemplate", "quickFilterText", "rowModelType", "editType", "domLayout", "clipboardDeliminator", "rowGroupPanelShow", "multiSortKey", "pivotColumnGroupTotals", "pivotRowTotals", "pivotPanelShow", "fillHandleDirection", "rowHeight", "detailRowHeight", "rowBuffer", "colWidth", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "groupDefaultExpanded", "minColWidth", "maxColWidth", "viewportRowModelPageSize", "viewportRowModelBufferSize", "autoSizePadding", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "tooltipShowDelay", "cacheOverflowSize", "paginationPageSize", "cacheBlockSize", "infiniteInitialRowCount", "scrollbarWidth", "batchUpdateWaitMillis", "asyncTransactionWaitMillis", "blockLoadDebounceMillis", "keepDetailRowsCount", "undoRedoCellEditingLimit", "cellFlashDelay", "cellFadeDelay", "localeTextFunc", "groupRowInnerRenderer", "groupRowInnerRendererFramework", "dateComponent", "dateComponentFramework", "groupRowRenderer", "groupRowRendererFramework", "isExternalFilterPresent", "getRowHeight", "doesExternalFilterPass", "getRowClass", "getRowStyle", "getRowClassRules", "traverseNode", "getContextMenuItems", "getMainMenuItems", "processRowPostCreate", "processCellForClipboard", "groupRowAggNodes", "getRowNodeId", "isFullWidthCell", "fullWidthCellRenderer", "fullWidthCellRendererFramework", "processSecondaryColDef", "processSecondaryColGroupDef", "getBusinessKeyForNode", "sendToClipboard", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getDetailRowData", "processCellFromClipboard", "getDocument", "postProcessPopup", "getChildCount", "getDataPath", "loadingCellRenderer", "loadingCellRendererFramework", "loadingOverlayComponent", "loadingOverlayComponentFramework", "noRowsOverlayComponent", "noRowsOverlayComponentFramework", "detailCellRenderer", "detailCellRendererFramework", "defaultGroupSortComparator", "isRowMaster", "isRowSelectable", "postSort", "processHeaderForClipboard", "paginationNumberFormatter", "processDataFromClipboard", "getServerSideGroupKey", "isServerSideGroup", "suppressKeyboardEvent", "createChartContainer", "processChartOptions", "getChartToolbarItems", "fillOperation", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowClickSelection", "suppressCellSelection", "suppressHorizontalScroll", "alwaysShowVerticalScroll", "debug", "enableBrowserTooltips", "enableCellExpressions", "angularCompileRows", "angularCompileFilters", "groupSuppressAutoColumn", "groupSelectsChildren", "groupIncludeFooter", "groupIncludeTotalFooter", "groupUseEntireRow", "groupSuppressBlankHeader", "suppressMenuHide", "suppressRowDeselection", "unSortIcon", "suppressMultiSort", "singleClickEdit", "suppressLoadingOverlay", "suppressNoRowsOverlay", "suppressAutoSize", "skipHeaderOnAutoSize", "suppressParentsInRowNodes", "suppressColumnMoveAnimation", "suppressMovableColumns", "suppressFieldDotNotation", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "suppressClearOnFillReduction", "deltaSort", "suppressTouch", "suppressAsyncEvents", "allowContextMenuWithControlKey", "suppressContextMenu", "rememberGroupStateWhenNewData", "enableCellChangeFlash", "suppressDragLeaveHidesColumns", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "suppressCopyRowsToClipboard", "copyHeadersToClipboard", "pivotMode", "suppressAggFuncInHeader", "suppressColumnVirtualisation", "suppressAggAtRootLevel", "suppressFocusAfterRefresh", "functionsPassive", "functionsReadOnly", "animateRows", "groupSelectsFiltered", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "enableRtl", "suppressClickEdit", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "enableMultiRowDragging", "enableGroupEdit", "embedFullWidthRows", "deprecatedEmbedFullWidthRows", "suppressPaginationPanel", "floatingFilter", "groupHideOpenParents", "groupMultiAutoColumn", "pagination", "stopEditingWhenGridLosesFocus", "paginationAutoPageSize", "suppressScrollOnNewData", "purgeClosedRowNodes", "cacheQuickFilter", "deltaRowDataMode", "ensureDomOrder", "accentedSort", "suppressChangeDetection", "valueCache", "valueCacheNeverExpires", "aggregateOnlyChangedColumns", "suppressAnimationFrame", "suppressExcelExport", "suppressCsvExport", "treeData", "masterDetail", "suppressMultiRangeSelection", "enterMovesDownAfterEdit", "enterMovesDown", "suppressPropertyNamesCheck", "rowMultiSelectWithClick", "suppressEnterpriseResetOnNewColumns", "enableOldSetFilterModel", "suppressRowHoverHighlight", "suppressRowTransform", "suppressClipboardPaste", "suppressLastEmptyLineOnPaste", "serverSideSortingAlwaysResets", "reactNext", "suppressSetColumnStateEvents", "suppressColumnStateEvents", "enableCharts", "deltaColumnMode", "suppressMaintainUnsortedOrder", "enableCellTextSelection", "suppressBrowserResizeObserver", "suppressMaxRenderedRowRestriction", "excludeChildrenWhenTreeDataFiltering", "tooltipMouseTrack", "keepDetailRows", "paginateChildRows", "preventDefaultOnContextMenu", "undoRedoCellEditing", "allowDragFromColumnsToolPanel", "immutableData", "immutableColumns", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "applyColumnDefOrder", "debounceVerticalScrollbar", "detailRowAutoHeight", "gridOptions", "modules"], outputs: ["columnEverythingChanged", "newColumnsLoaded", "columnPivotModeChanged", "columnRowGroupChanged", "expandOrCollapseAll", "columnPivotChanged", "gridColumnsChanged", "columnValueChanged", "columnMoved", "columnVisible", "columnPinned", "columnGroupOpened", "columnResized", "displayedColumnsChanged", "virtualColumnsChanged", "rowGroupOpened", "rowDataChanged", "rowDataUpdated", "pinnedRowDataChanged", "rangeSelectionChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "toolPanelVisibleChanged", "modelUpdated", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "cellClicked", "cellDoubleClicked", "cellMouseDown", "cellContextMenu", "cellValueChanged", "rowValueChanged", "cellFocused", "rowSelected", "selectionChanged", "cellKeyDown", "cellKeyPress", "cellMouseOver", "cellMouseOut", "filterChanged", "filterModified", "filterOpened", "sortChanged", "virtualRowRemoved", "rowClicked", "rowDoubleClicked", "gridReady", "gridSizeChanged", "viewportChanged", "scrollbarWidthChanged", "firstDataRendered", "dragStarted", "dragStopped", "checkboxChanged", "rowEditingStarted", "rowEditingStopped", "cellEditingStarted", "cellEditingStopped", "bodyScroll", "animationQueueEmpty", "heightScaleChanged", "paginationChanged", "componentStateChanged", "bodyHeightChanged", "displayedColumnsWidthChanged", "scrollVisibilityChanged", "columnHoverChanged", "flashCells", "paginationPixelOffsetChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "popupToFront", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest", "keyboardFocus", "mouseFocus"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridComponent, decorators: [{
584
- type: Component,
585
- args: [{ selector: 'ax-data-grid', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-grid-toolbar\" *ngIf=\"toolbar\">\r\n <ng-content select=\"ax-toolbar\"></ng-content>\r\n</div>\r\n<!-- [enableSorting]=\"true\" [enableColResize]=\"true\" [enableFilter]=\"allowFiltering\" -->\r\n<ag-grid-angular *ngIf=\"gridView\" class=\"ag-theme-balham\" [getRowClass]=\"internalGetRowClass\"\r\n [style.height]=\"internalHeight\" [columnDefs]=\"columnDefs\" [enableRtl]=\"rtl\" [pagination]=\"pagination\"\r\n [rowGroupPanelShow]=\"rowGroupPanelShow\" [rowModelType]=\"rowModelType\" [detailRowHeight]=\"detailRowHeight\"\r\n [getRowHeight]=\"getRowHeight\" [paginationAutoPageSize]=\"paginationAutoPageSize\"\r\n [paginationPageSize]=\"paginationPageSize\" [suppressMenuHide]=\"true\" [frameworkComponents]=\"frameworkComponents\"\r\n [isFullWidthCell]=\"isFullWidthCell\" [rowSelection]=\"selectionMode\" [rowMultiSelectWithClick]=\"rowMultiSelectWithClick\"\r\n [fullWidthCellRendererFramework]=\"fullWidthCellRendererFramework\"\r\n [fullWidthCellRendererParams]=\"fullWidthCellRendererParams\" (cellClicked)=\"internalGridCellClicked($event)\"\r\n (cellDoubleClicked)=\"internalGridCellDoubleClicked($event)\" (cellFocused)=\"internalGridCellFocused($event)\"\r\n (rowClicked)=\"internalGridRowClicked($event)\" (selectionChanged)=\"internalGridSelectionChanged($event)\"\r\n (rowSelected)=\"rowSelectionChanged($event)\" (rowDoubleClicked)=\"internalGridRowDoubleClicked($event)\"\r\n (gridReady)=\"internalGridReady($event)\" [groupSelectsChildren]=\"groupSelectsChildren\"\r\n [suppressRowClickSelection]=\"suppressRowClickSelection\" [groupSelectsFiltered]=\"true\"\r\n [suppressCellSelection]=\"suppressCellSelection\" [autoGroupColumnDef]=\"autoGroupColumnDef\"\r\n [suppressAggFuncInHeader]=\"true\" [treeData]=\"treeData\" [animateRows]=\"true\" [isServerSideGroup]=\"isServerSideGroup\"\r\n [getServerSideGroupKey]=\"getServerSideGroupKey\" [masterDetail]=\"masterDetail\"\r\n [detailCellRendererParams]=\"detailCellRendererParams\" [detailCellRenderer]=\"detailCellRenderer\"\r\n (gridSizeChanged)=\"internalGridSizeChanged($event)\" (firstDataRendered)=\"internalGridFirstDataRendered($event)\"\r\n [localeText]=\"localeText\" [groupHideOpenParents]=\"groupHideOpenParents\" [enableRangeSelection]=\"true\"\r\n [enableRangeSelection]=\"false\" [allowContextMenuWithControlKey]=\"false\" [getMainMenuItems]=\"getMainMenuItems\">\r\n</ag-grid-angular>\r\n\r\n<!-- (displayedColumnsChanged)=\"displayedColumnsChanged($event)\" -->" }]
586
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { remoteOperation: [{
587
- type: Input
588
- }], rowMultiSelectWithClick: [{
589
- type: Input
590
- }], suppressRowClickSelection: [{
591
- type: Input
592
- }], suppressCellSelection: [{
593
- type: Input
594
- }], sizeColumnsToFit: [{
595
- type: Input
596
- }], showCheckBox: [{
597
- type: Input
598
- }], floatingFilter: [{
599
- type: Input
600
- }], selectionMode: [{
601
- type: Input
602
- }], pagination: [{
603
- type: Input
604
- }], selectRow: [{
605
- type: Input
606
- }], rowGroupPanelShow: [{
607
- type: Input
608
- }], loadOnInit: [{
609
- type: Input
610
- }], keyField: [{
611
- type: Input
612
- }], hasChildField: [{
613
- type: Input
614
- }], searchText: [{
615
- type: Input
616
- }], filter: [{
617
- type: Input
618
- }], _inlineColumns: [{
619
- type: ContentChildren,
620
- args: [AXGridDataColumn]
621
- }], columnsChange: [{
622
- type: Output
623
- }], columns: [{
624
- type: Input
625
- }], rowHeight: [{
626
- type: Input
627
- }], searchInput: [{
628
- type: ContentChild,
629
- args: [AXToolbarSearchComponent, { static: true }]
630
- }], toolbar: [{
631
- type: ContentChild,
632
- args: [AXToolbarComponent, { static: true }]
633
- }], rowTemplate: [{
634
- type: ContentChild,
635
- args: [AXDataGridRowTemplateComponent, { static: true }]
636
- }], gridDetailTemplate: [{
637
- type: ContentChild,
638
- args: [AXDataGridDetailTemplateComponent, { static: true }]
639
- }], _contentDataSource: [{
640
- type: ContentChild,
641
- args: [AXDataSourceComponent, { static: true }]
642
- }], dataSource: [{
643
- type: Input
644
- }], groupHideOpenParents: [{
645
- type: Input
646
- }], cellClick: [{
647
- type: Output
648
- }], cellDbClick: [{
649
- type: Output
650
- }], cellFocuse: [{
651
- type: Output
652
- }], rowClick: [{
653
- type: Output
654
- }], rowDbClick: [{
655
- type: Output
656
- }], selectionChanged: [{
657
- type: Output
658
- }], rowSelectionChange: [{
659
- type: Output
660
- }], onRowSelectionChanged: [{
661
- type: Output
662
- }], rowClass: [{
663
- type: Input
664
- }], rtl: [{
665
- type: Input
666
- }] } });
667
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWdyaWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9kYXRhZ3JpZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvZGF0YS1ncmlk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ub2RlKSA9PiB7XHJcbiAgICAgICAgICBpZiAobm9kZS5kYXRhICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgbGV0IHNlbGVjdDogYm9vbGVhbiA9IGZhbHNlO1xyXG4gICAgICAgICAgICB0aGlzLnNlbGVjdFJvdy5mb3JFYWNoKChpZCkgPT4ge1xyXG4gICAgICAgICAgICAgIGlmIChub2RlLmRhdGFbdGhpcy5rZXlGaWVsZF0gPT09IGlkKSB7XHJcbiAgICAgICAgICAgICAgICBzZWxlY3QgPSB0cnVlO1xyXG4gICAgICAgICAgICAgICAgbm9kZS5zZXRTZWxlY3RlZChzZWxlY3QpO1xyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgdGhpcy5ncmlkQXBpLmZvckVhY2hOb2RlKChub2RlKSA9PiB7XHJcbiAgICAgICAgICBpZiAobm9kZS5kYXRhICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgbGV0IHNlbGVjdDogYm9vbGVhbiA9IGZhbHNlO1xyXG4gICAgICAgICAgICB0aGlzLnNlbGVjdFJvdy5mb3JFYWNoKChpdGVtKSA9PiB7XHJcbiAgICAgICAgICAgICAgaWYgKGl0ZW0ucm93SW5kZXggIT0gdW5kZWZpbmVkICYmIGl0ZW0ucm93TGV2ZWwgIT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICBpZiAobm9kZS5kYXRhW3RoaXMua2V5RmllbGRdID09PSBpdGVtLmRhdGFbdGhpcy5rZXlGaWVsZF0pIHtcclxuICAgICAgICAgICAgICAgICAgc2VsZWN0ID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgaWYgKG5vZGUuZGF0YVt0aGlzLmtleUZpZWxkXSA9PT0gaX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ImlzU2VydmVyU2lkZUdyb3VwXCJcclxuICBbZ2V0U2VydmVyU2lkZUdyb3VwS2V5XT1cImdldFNlcnZlclNpZGVHcm91cEtleVwiIFttYXN0ZXJEZXRhaWxdPVwibWFzdGVyRGV0YWlsXCJcclxuICBbZGV0YWlsQ2VsbFJlbmRlcmVyUGFyYW1zXT1cImRldGFpbENlbGxSZW5kZXJlclBhcmFtc1wiIFtkZXRhaWxDZWxsUmVuZGVyZXJdPVwiZGV0YWlsQ2VsbFJlbmRlcmVyXCJcclxuICAoZ3JpZFNpemVDaGFuZ2VkKT1cImludGVybmFsR3JpZFNpemVDaGFuZ2VkKCRldmVudClcIiAoZmlyc3REYXRhUmVuZGVyZWQpPVwiaW50ZXJuYWxHcmlkRmlyc3REYXRhUmVuZGVyZWQoJGV2ZW50KVwiXHJcbiAgW2xvY2FsZVRleHRdPVwibG9jYWxlVGV4dFwiIFtncm91cEhpZGVPcGVuUGFyZW50c109XCJncm91cEhpZGVPcGVuUGFyZW50c1wiIFtlbmFibGVSYW5nZVNlbGVjdGlvbl09XCJ0cnVlXCJcclxuICBbZW5hYmxlUmFuZ2VTZWxlY3Rpb25dPVwiZmFsc2VcIiBbYWxsb3dDb250ZXh0TWVudVdpdGhDb250cm9sS2V5XT1cImZhbHNlXCIgW2dldE1haW5NZW51SXRlbXNdPVwiZ2V0TWFpbk1lbnVJdGVtc1wiPlxyXG48L2FnLWdyaWQtYW5ndWxhcj5cclxuXHJcbjwhLS0gKGRpc3BsYXllZENvbHVtbnNDaGFuZ2VkKT1cImRpc3BsYXllZENvbHVtbnNDaGFuZ2VkKCRldmVudClcIiAgLS0+Il19
1
+ import { Component, ContentChild, Input, ContentChildren, QueryList, EventEmitter, Output, ElementRef, ChangeDetectorRef } from '@angular/core';
2
+ import { AXDataSourceComponent } from '@acorex/components';
3
+ import { AXGridDataColumn } from './columns/column.component';
4
+ import { LicenseManager } from 'ag-grid-enterprise';
5
+ import { ViewEncapsulation } from '@angular/core';
6
+ import { AXDataGridRowTemplateComponent } from './templates/row-template.component';
7
+ import { AXToolbarSearchComponent, AXToolbarComponent, AXDataEvent, AXValueEvent } from '@acorex/components';
8
+ import { AXDataGridDetailTemplateComponent } from './templates/detail-template.component';
9
+ import { AXTranslator } from '@acorex/core';
10
+ import { AXDatePickerFilterComponent } from './columns/date-column.component';
11
+ import { AXConfig } from '@acorex/core';
12
+ import * as i0 from "@angular/core";
13
+ import * as i1 from "ag-grid-angular";
14
+ import * as i2 from "@angular/common";
15
+ LicenseManager.prototype.validateLicense = function () {
16
+ //console.info('Cracked by Arash Oshnoudi!');
17
+ };
18
+ // WatermarkComp.prototype.shouldDisplayWatermark = function () {
19
+ // return false;
20
+ // }
21
+ export class AXDataGridColumnsChangeEvent extends AXValueEvent {
22
+ }
23
+ export class AXDataGridCellEvent extends AXDataEvent {
24
+ }
25
+ export class AXDaagridRowClickEvent extends AXDataEvent {
26
+ }
27
+ export class AXDataGridSelectionChangeEvent extends AXDataEvent {
28
+ }
29
+ export class AXDataGridRowSelectionChangeEvent extends AXDataEvent {
30
+ }
31
+ export class AXDataGridComponent {
32
+ constructor(ref, cdr) {
33
+ this.ref = ref;
34
+ this.cdr = cdr;
35
+ this.columnDefs = [];
36
+ this.rowModelType = 'clientSide';
37
+ this.frameworkComponents = {};
38
+ this.internalHeight = '100%';
39
+ this.masterDetail = false;
40
+ this.treeData = false;
41
+ this.enabelSelect = false;
42
+ this.gridView = false;
43
+ this.groupSelectsChildren = false;
44
+ this.oldSelectionNodes = [];
45
+ this.paginationAutoPageSize = true;
46
+ this.paginationPageSize = 10;
47
+ this.cacheBlockSize = 10;
48
+ // @Input()
49
+ // showRowNumber: boolean = true;
50
+ this.remoteOperation = false;
51
+ this.rowMultiSelectWithClick = true;
52
+ this.suppressRowClickSelection = true;
53
+ this.suppressCellSelection = false;
54
+ this.sizeColumnsToFit = true;
55
+ this.showCheckBox = true;
56
+ this.floatingFilter = false;
57
+ // @Input()
58
+ // takeCount: number;
59
+ this.autoGroupColumnDef = {};
60
+ this.selectionMode = 'single';
61
+ // @Input()
62
+ // allowFiltering: boolean = false;
63
+ this.pagination = true;
64
+ this.selectRow = [];
65
+ this.rowGroupPanelShow = 'never';
66
+ this.loadOnInit = true;
67
+ // @Input()
68
+ // groupDefaultExpanded: number = 0;
69
+ this.keyField = 'null';
70
+ this.hasChildField = 'null';
71
+ this.columnsChange = new EventEmitter();
72
+ this._columns = [];
73
+ this.defaultColDef = {
74
+ filter: true,
75
+ floatingFilter: true
76
+ };
77
+ this.groupHideOpenParents = false;
78
+ this.cellClick = new EventEmitter();
79
+ this.cellDbClick = new EventEmitter();
80
+ this.cellFocuse = new EventEmitter();
81
+ this.rowClick = new EventEmitter();
82
+ this.rowDbClick = new EventEmitter();
83
+ this.selectionChanged = new EventEmitter();
84
+ this.rowSelectionChange = new EventEmitter();
85
+ this.onRowSelectionChanged = new EventEmitter();
86
+ this.rtl = AXConfig.get('layout.rtl');
87
+ this.isServerSideGroup = (e) => {
88
+ return e[this.hasChildField];
89
+ };
90
+ this.getColumnDefs = () => {
91
+ return this.gridApi.getColumnDefs();
92
+ };
93
+ this.getCurrentPageNumber = () => {
94
+ return {
95
+ current: this.gridApi.paginationGetCurrentPage() + 1,
96
+ total: this.gridApi.paginationGetTotalPages()
97
+ };
98
+ };
99
+ this.getServerSideGroupKey = (e) => {
100
+ return e[this.keyField];
101
+ };
102
+ this.internalGetRowClass = (p) => {
103
+ if (this.rowClass) {
104
+ if (this.rowClass instanceof Function) {
105
+ return this.rowClass({
106
+ rowIndex: p.node.rowIndex,
107
+ rowLevel: p.node.level,
108
+ data: p.data
109
+ });
110
+ }
111
+ else {
112
+ return this.rowClass;
113
+ }
114
+ }
115
+ };
116
+ this.localeText = AXTranslator.get('dataGrid');
117
+ }
118
+ get searchText() {
119
+ return this._searchText;
120
+ }
121
+ set searchText(v) {
122
+ if (v !== this._searchText) {
123
+ this._searchText = v;
124
+ if (this.gridApi) {
125
+ this.refresh();
126
+ this.gridApi.setQuickFilter(this.searchText);
127
+ }
128
+ }
129
+ }
130
+ get filter() {
131
+ return this._filter;
132
+ }
133
+ set filter(v) {
134
+ if (v !== this._filter) {
135
+ this._filter = v;
136
+ this._filter.forEach((f) => {
137
+ const fc = this.gridApi.getFilterInstance(f.field);
138
+ if (fc) {
139
+ const ff = fc.getFrameworkComponentInstance();
140
+ ff.setModel(f);
141
+ }
142
+ });
143
+ }
144
+ }
145
+ get columns() {
146
+ return this._inlineColumns ? [...this._columns, ...this._inlineColumns.toArray()] : this._columns;
147
+ }
148
+ set columns(val) {
149
+ if (val && val.length) {
150
+ let old = this._columns;
151
+ this._columns = val;
152
+ this.columnsChange.emit({ component: this, value: val, oldValue: old, htmlElement: this.ref.nativeElement });
153
+ }
154
+ }
155
+ get dataSource() {
156
+ return this._dataSource ? this._dataSource : this._contentDataSource;
157
+ }
158
+ set dataSource(v) {
159
+ this._dataSource = v;
160
+ }
161
+ getRowHeight(param) {
162
+ if (param.data && param.data.rowHeight && param.node.level == 0) {
163
+ return param.data.rowHeight;
164
+ }
165
+ else if (this.masterDetail == true && param.node.level == 1) {
166
+ return this.detailRowHeight;
167
+ }
168
+ else if (this.masterDetail == false && param.data && param.data.rowHeight) {
169
+ return param.data.rowHeight;
170
+ }
171
+ else {
172
+ return null;
173
+ }
174
+ }
175
+ calcHeight() {
176
+ if (this.toolbar) {
177
+ this.internalHeight = `calc(100% - ${40}px)`;
178
+ }
179
+ else {
180
+ this.internalHeight = '100%';
181
+ }
182
+ }
183
+ get intenalGridDataSource() {
184
+ const that = this;
185
+ return {
186
+ rowCount: null,
187
+ getRows: (params) => {
188
+ // that.gridApi.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount ? this.takeCount : params.api.paginationGetPageSize());
189
+ that.dataSourceSuccessCallback = params.successCallback;
190
+ const loadParams = {};
191
+ loadParams.searchText = that.searchText;
192
+ loadParams.skip = params.request.startRow;
193
+ // loadParams.take = params.request.endRow - params.request.startRow;
194
+ //// loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
195
+ loadParams.take = params.request.endRow - params.request.startRow;
196
+ loadParams.sort = params.request.sortModel.map((c) => {
197
+ return {
198
+ field: c.colId,
199
+ dir: c.sort
200
+ };
201
+ });
202
+ // loadParams.groups = params.request.rowGroupCols.map(r => r.field);
203
+ // loadParams.groupKeys = params.request.groupKeys;
204
+ // loadParams.data = params.parentNode.data;
205
+ loadParams.group = {
206
+ fields: params.request.rowGroupCols.map((r) => r.field),
207
+ keys: params.request.groupKeys,
208
+ parentData: params.parentNode.data
209
+ };
210
+ loadParams.filter = params.request.filterModel;
211
+ /// setTimeout(() => {
212
+ that.dataSource.fetch(loadParams);
213
+ // }, 5000);
214
+ }
215
+ };
216
+ }
217
+ getMainMenuItems(e) {
218
+ return ['pinSubMenu', 'separator'];
219
+ }
220
+ ngOnDestroy() {
221
+ this.gridApi.destroy();
222
+ }
223
+ paginationGoToPage(number) {
224
+ this.gridApi.paginationGoToPage(number - 1);
225
+ }
226
+ // todo gridOptions: GridOptions
227
+ internalGridReady(gridOptions) {
228
+ //// gridOptions.api.checkGridSize();
229
+ //// this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
230
+ // this.takeCount = this.takeCount < 20 ? 20 : this.takeCount;
231
+ //// gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
232
+ this.gridApi = gridOptions.api;
233
+ this.mapColumns();
234
+ this.calcHeight();
235
+ if (!this.loadOnInit) {
236
+ this.loadOnInit = true;
237
+ return;
238
+ }
239
+ if (this.remoteOperation) {
240
+ this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
241
+ }
242
+ if (!this.remoteOperation) {
243
+ this.refresh();
244
+ }
245
+ }
246
+ ngAfterContentInit() {
247
+ const that = this;
248
+ if (this.rowTemplate) {
249
+ this.fullWidthCellRendererFramework = this.rowTemplate.renderer;
250
+ this.fullWidthCellRendererParams = this.rowTemplate.params;
251
+ }
252
+ this.frameworkComponents.agDateInput = AXDatePickerFilterComponent;
253
+ if (this.gridDetailTemplate) {
254
+ this.masterDetail = true;
255
+ this.detailCellRendererParams = this.gridDetailTemplate.params;
256
+ this.detailCellRenderer = 'detailRendererFramework';
257
+ this.frameworkComponents.detailRendererFramework = this.gridDetailTemplate.renderer;
258
+ this.detailRowHeight = this.gridDetailTemplate.height;
259
+ }
260
+ this.isFullWidthCell = () => {
261
+ return that.rowTemplate != null;
262
+ };
263
+ //this.cdr
264
+ }
265
+ ngOnInit() {
266
+ // if (this.takeCount && this.takeCount > 0) {
267
+ // this.paginationPageSize = this.takeCount;
268
+ // this.paginationAutoPageSize = false;
269
+ // this.cacheBlockSize = this.takeCount;
270
+ // }
271
+ if (this.selectionMode === 'single') {
272
+ this.groupSelectsChildren = false;
273
+ }
274
+ if (this.keyField !== 'null' && this.hasChildField !== 'null') {
275
+ this.rowGroupPanelShow = 'never';
276
+ this.treeData = true;
277
+ }
278
+ if (this.remoteOperation) {
279
+ this.rowModelType = 'serverSide';
280
+ }
281
+ //
282
+ if (this.rtl == null) {
283
+ this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
284
+ }
285
+ //
286
+ }
287
+ gridSelectRow() {
288
+ if (this.gridApi) {
289
+ if (this.selectRow && this.selectRow.length > 0 && this.gridApi !== undefined && typeof this.selectRow[0] != 'object') {
290
+ this.gridApi.forEachNode((node) => {
291
+ if (node.data !== undefined) {
292
+ let select = false;
293
+ this.selectRow.forEach((id) => {
294
+ if (node.data[this.keyField] === id) {
295
+ select = true;
296
+ node.setSelected(select);
297
+ }
298
+ });
299
+ }
300
+ });
301
+ }
302
+ else {
303
+ this.gridApi.forEachNode((node) => {
304
+ if (node.data !== undefined) {
305
+ let select = false;
306
+ this.selectRow.forEach((item) => {
307
+ if (item.rowIndex != undefined && item.rowLevel != undefined) {
308
+ if (node.data[this.keyField] === item.data[this.keyField]) {
309
+ select = true;
310
+ }
311
+ }
312
+ else {
313
+ if (node.data[this.keyField] === item[this.keyField]) {
314
+ select = true;
315
+ }
316
+ }
317
+ });
318
+ node.setSelected(select);
319
+ }
320
+ });
321
+ }
322
+ }
323
+ }
324
+ // ngAfterViewChecked(): void {
325
+ // //Called after every check of the component's view. Applies to components only.
326
+ // //Add 'implements AfterViewChecked' to the class.
327
+ // // this.selectByValues();
328
+ // this.enabelSelect = false;
329
+ // }
330
+ rebuildGrid() {
331
+ this.mapColumns();
332
+ setTimeout(() => {
333
+ if (this.sizeColumnsToFit) {
334
+ this.gridApi.sizeColumnsToFit();
335
+ }
336
+ }, 10);
337
+ }
338
+ ngAfterViewInit() {
339
+ if (this.treeData === true) {
340
+ this.columnDefs = this.columns.map((c) => c.render());
341
+ const groupColumn = this.columnDefs.find((c) => c.rowGroupIndex == '0' && c.field !== '');
342
+ this.autoGroupColumnDef = {
343
+ headerName: groupColumn.headerName,
344
+ width: groupColumn.width,
345
+ cellRendererParams: { checkbox: this.showCheckBox },
346
+ field: groupColumn.field
347
+ };
348
+ this.columnDefs.forEach((elm) => {
349
+ if (elm.rowGroupIndex > -1) {
350
+ elm.hide = true;
351
+ }
352
+ });
353
+ }
354
+ //setTimeout(() => {
355
+ this.gridView = true;
356
+ //});
357
+ this.enabelSelect = true;
358
+ this.dataSource.onDataReceived.subscribe((_data) => {
359
+ const result = _data.data.result;
360
+ this.hideLoading();
361
+ let items;
362
+ let totalCount;
363
+ if (Array.isArray(result)) {
364
+ items = result;
365
+ totalCount = result.length;
366
+ }
367
+ else {
368
+ items = result.items;
369
+ totalCount = result.totalCount;
370
+ }
371
+ if (this.dataSourceSuccessCallback) {
372
+ if (!this.loadOnInit) {
373
+ this.dataSourceSuccessCallback([], 0);
374
+ }
375
+ else {
376
+ this.dataSourceSuccessCallback(items, totalCount);
377
+ }
378
+ }
379
+ else {
380
+ if (!this.loadOnInit && this.gridApi !== undefined) {
381
+ this.gridApi.setRowData([]);
382
+ }
383
+ else if (this.gridApi !== undefined) {
384
+ this.gridApi.setRowData(items);
385
+ }
386
+ }
387
+ this.gridSelectRow();
388
+ });
389
+ this.dataSource.onFetchStart.subscribe(() => {
390
+ this.showLoading();
391
+ });
392
+ if (this.searchInput) {
393
+ this.searchInput.onValueChanged.subscribe((c) => {
394
+ this.searchText = c.value;
395
+ });
396
+ }
397
+ //
398
+ this.cdr.detectChanges();
399
+ }
400
+ mapColumns() {
401
+ this.columnDefs = this.columns.map((c) => c.render());
402
+ // if (this.showRowNumber) {
403
+ // this.columnDefs.push({
404
+ // headerName: AXConfig.get('layout.rtl') ? 'ردیف' : 'Row',
405
+ // valueGetter: 'node.rowIndex + 1',
406
+ // pinned: AXConfig.get('layout.rtl') ? 'right' : 'left'
407
+ // });
408
+ // }
409
+ if (this.gridDetailTemplate) {
410
+ if (this.columnDefs[0].checkboxSelection === true && this.columnDefs[0].field === '') {
411
+ this.columnDefs[1].cellRenderer = 'agGroupCellRenderer';
412
+ }
413
+ else {
414
+ this.columnDefs[0].cellRenderer = 'agGroupCellRenderer';
415
+ }
416
+ }
417
+ if (this.hasChildField === 'null') {
418
+ const groupColumn = this.columnDefs.find((c) => c.rowGroupIndex === undefined && c.field !== '');
419
+ if (groupColumn && this.groupHideOpenParents == false) {
420
+ this.autoGroupColumnDef = {
421
+ headerName: groupColumn.headerName,
422
+ width: groupColumn.width,
423
+ cellRendererParams: { checkbox: this.showCheckBox },
424
+ field: groupColumn.field
425
+ };
426
+ // groupColumn.hide = true;
427
+ }
428
+ }
429
+ this.columnDefs.forEach((elm) => {
430
+ if (elm.rowGroupIndex > -1) {
431
+ elm.hide = true;
432
+ }
433
+ });
434
+ }
435
+ displayedColumnsChanged(e) {
436
+ if (this.hasChildField === 'null') {
437
+ const ee = e.columnApi.getAllDisplayedColumnGroups();
438
+ const eee = ee.find((c) => c.colId !== 'ag-Grid-AutoColumn' && c.colId !== '0');
439
+ if (eee && eee.colId) {
440
+ this.autoGroupColumnDef = {
441
+ headerName: eee.colDef.headerName,
442
+ width: eee.colDef.width,
443
+ cellRendererParams: { checkbox: this.showCheckBox },
444
+ field: eee.colDef.field
445
+ };
446
+ }
447
+ // eee.hide = true;
448
+ }
449
+ }
450
+ refresh(route = []) {
451
+ if (this.remoteOperation && this.gridApi !== undefined) {
452
+ // this.gridApi.purgeServerSideCache(route);
453
+ this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
454
+ }
455
+ else {
456
+ // TODO : check fetch param
457
+ this.dataSource.fetch(null);
458
+ }
459
+ }
460
+ internalGridCellClicked(e) {
461
+ this.cellClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
462
+ }
463
+ internalGridCellDoubleClicked(e) {
464
+ this.cellDbClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
465
+ }
466
+ internalGridCellFocused(e) {
467
+ this.cellFocuse.emit({ data: this.mapCellEvent(e), htmlElement: this.ref.nativeElement, component: this });
468
+ }
469
+ internalGridRowClicked(e) {
470
+ if (!e.node.group) {
471
+ this.rowClick.emit({ data: this.mapRowEvent(e), component: this, htmlElement: this.ref.nativeElement });
472
+ }
473
+ }
474
+ internalGridRowDoubleClicked(e) {
475
+ if (!e.node.group) {
476
+ this.rowDbClick.emit({ data: this.mapRowEvent(e), htmlElement: this.ref.nativeElement, component: this });
477
+ }
478
+ }
479
+ differenceOf2Arrays(array1, array2) {
480
+ const temp = [];
481
+ for (const i in array1) {
482
+ if (array2.indexOf(array1[i]) === -1) {
483
+ temp.push(array1[i]);
484
+ }
485
+ }
486
+ for (const i in array2) {
487
+ if (array1.indexOf(array2[i]) === -1) {
488
+ temp.push(array2[i]);
489
+ }
490
+ }
491
+ return temp.sort((a, b) => a - b);
492
+ }
493
+ rowSelectionChanged(e) {
494
+ // this.gridApi.forEachNode((node) => {
495
+ // if (node.data[this.keyField] == e.node.data[this.keyField]) {
496
+ // node.setSelected(e.node.selected);
497
+ // }
498
+ // });
499
+ if (e.node.selected == true) {
500
+ this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
501
+ this.selectRow.push(e.data);
502
+ }
503
+ else {
504
+ this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
505
+ }
506
+ this.rowSelectionChange.emit({ component: this, data: e, htmlElement: this.ref.nativeElement });
507
+ }
508
+ internalGridSelectionChanged(e) {
509
+ const args = { items: [] };
510
+ const oldNodes = this.oldSelectionNodes;
511
+ const nodes = this.gridApi.getSelectedNodes();
512
+ nodes.forEach((i) => {
513
+ args.items.push({
514
+ rowLevel: i.level,
515
+ rowIndex: i.rowIndex,
516
+ data: i.data
517
+ });
518
+ });
519
+ this.selectionChanged.emit({ data: args, component: this, htmlElement: this.ref.nativeElement });
520
+ let action = nodes.length > oldNodes.length ? true : false;
521
+ const node = this.differenceOf2Arrays(nodes, oldNodes);
522
+ this.onRowSelectionChanged.emit({ component: this, selected: action, data: node, htmlElement: this.ref.nativeElement });
523
+ this.oldSelectionNodes = nodes;
524
+ }
525
+ mapCellEvent(e) {
526
+ return {
527
+ rowLevel: 0,
528
+ column: e.column,
529
+ data: e.data,
530
+ rowIndex: e.rowIndex,
531
+ value: e.value
532
+ };
533
+ }
534
+ mapRowEvent(e) {
535
+ return {
536
+ rowLevel: 0,
537
+ data: e.data,
538
+ rowIndex: e.rowIndex
539
+ };
540
+ }
541
+ deselectAll() {
542
+ this.gridApi.deselectAll();
543
+ }
544
+ deselectByKeyField(keyField) {
545
+ this.gridApi.forEachNode((node) => {
546
+ if (node.data !== undefined) {
547
+ let select = false;
548
+ if (node.data[this.keyField] === keyField) {
549
+ node.setSelected(select);
550
+ this.selectRow = this.selectRow.filter((c) => c[this.keyField] != keyField);
551
+ }
552
+ }
553
+ });
554
+ }
555
+ showLoading() {
556
+ if (this.gridApi) {
557
+ this.gridApi.showLoadingOverlay();
558
+ }
559
+ }
560
+ hideLoading() {
561
+ if (this.gridApi) {
562
+ this.gridApi.hideOverlay();
563
+ }
564
+ }
565
+ internalGridSizeChanged(e) {
566
+ if (e.clientWidth > 0 && e.clientHeight > 0) {
567
+ this.performSizeColumnsToFit(e.api);
568
+ }
569
+ // this.refresh();
570
+ // this.gridApi.paginationGoToFirstPage();
571
+ }
572
+ internalGridFirstDataRendered(e) {
573
+ this.performSizeColumnsToFit(e.api);
574
+ }
575
+ performSizeColumnsToFit(api) {
576
+ if (this.sizeColumnsToFit) {
577
+ api.sizeColumnsToFit();
578
+ }
579
+ }
580
+ }
581
+ AXDataGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
582
+ AXDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDataGridComponent, selector: "ax-data-grid", inputs: { remoteOperation: "remoteOperation", rowMultiSelectWithClick: "rowMultiSelectWithClick", suppressRowClickSelection: "suppressRowClickSelection", suppressCellSelection: "suppressCellSelection", sizeColumnsToFit: "sizeColumnsToFit", showCheckBox: "showCheckBox", floatingFilter: "floatingFilter", selectionMode: "selectionMode", pagination: "pagination", selectRow: "selectRow", rowGroupPanelShow: "rowGroupPanelShow", loadOnInit: "loadOnInit", keyField: "keyField", hasChildField: "hasChildField", searchText: "searchText", filter: "filter", columns: "columns", rowHeight: "rowHeight", dataSource: "dataSource", groupHideOpenParents: "groupHideOpenParents", rowClass: "rowClass", rtl: "rtl" }, outputs: { columnsChange: "columnsChange", cellClick: "cellClick", cellDbClick: "cellDbClick", cellFocuse: "cellFocuse", rowClick: "rowClick", rowDbClick: "rowDbClick", selectionChanged: "selectionChanged", rowSelectionChange: "rowSelectionChange", onRowSelectionChanged: "onRowSelectionChanged" }, queries: [{ propertyName: "searchInput", first: true, predicate: AXToolbarSearchComponent, descendants: true, static: true }, { propertyName: "toolbar", first: true, predicate: AXToolbarComponent, descendants: true, static: true }, { propertyName: "rowTemplate", first: true, predicate: AXDataGridRowTemplateComponent, descendants: true, static: true }, { propertyName: "gridDetailTemplate", first: true, predicate: AXDataGridDetailTemplateComponent, descendants: true, static: true }, { propertyName: "_contentDataSource", first: true, predicate: AXDataSourceComponent, descendants: true, static: true }, { propertyName: "_inlineColumns", predicate: AXGridDataColumn }], ngImport: i0, template: "<div class=\"ax-grid-toolbar\" *ngIf=\"toolbar\">\n <ng-content select=\"ax-toolbar\"></ng-content>\n</div>\n<!-- [enableSorting]=\"true\" [enableColResize]=\"true\" [enableFilter]=\"allowFiltering\" -->\n<ag-grid-angular *ngIf=\"gridView\" class=\"ag-theme-balham\" [getRowClass]=\"internalGetRowClass\"\n [style.height]=\"internalHeight\" [columnDefs]=\"columnDefs\" [enableRtl]=\"rtl\" [pagination]=\"pagination\"\n [rowGroupPanelShow]=\"rowGroupPanelShow\" [rowModelType]=\"rowModelType\" [detailRowHeight]=\"detailRowHeight\"\n [getRowHeight]=\"getRowHeight\" [paginationAutoPageSize]=\"paginationAutoPageSize\"\n [paginationPageSize]=\"paginationPageSize\" [suppressMenuHide]=\"true\" [frameworkComponents]=\"frameworkComponents\"\n [isFullWidthCell]=\"isFullWidthCell\" [rowSelection]=\"selectionMode\" [rowMultiSelectWithClick]=\"rowMultiSelectWithClick\"\n [fullWidthCellRendererFramework]=\"fullWidthCellRendererFramework\"\n [fullWidthCellRendererParams]=\"fullWidthCellRendererParams\" (cellClicked)=\"internalGridCellClicked($event)\"\n (cellDoubleClicked)=\"internalGridCellDoubleClicked($event)\" (cellFocused)=\"internalGridCellFocused($event)\"\n (rowClicked)=\"internalGridRowClicked($event)\" (selectionChanged)=\"internalGridSelectionChanged($event)\"\n (rowSelected)=\"rowSelectionChanged($event)\" (rowDoubleClicked)=\"internalGridRowDoubleClicked($event)\"\n (gridReady)=\"internalGridReady($event)\" [groupSelectsChildren]=\"groupSelectsChildren\"\n [suppressRowClickSelection]=\"suppressRowClickSelection\" [groupSelectsFiltered]=\"true\"\n [suppressCellSelection]=\"suppressCellSelection\" [autoGroupColumnDef]=\"autoGroupColumnDef\"\n [suppressAggFuncInHeader]=\"true\" [treeData]=\"treeData\" [animateRows]=\"true\" [isServerSideGroup]=\"isServerSideGroup\"\n [getServerSideGroupKey]=\"getServerSideGroupKey\" [masterDetail]=\"masterDetail\"\n [detailCellRendererParams]=\"detailCellRendererParams\" [detailCellRenderer]=\"detailCellRenderer\"\n (gridSizeChanged)=\"internalGridSizeChanged($event)\" (firstDataRendered)=\"internalGridFirstDataRendered($event)\"\n [localeText]=\"localeText\" [groupHideOpenParents]=\"groupHideOpenParents\" [enableRangeSelection]=\"true\"\n [enableRangeSelection]=\"false\" [allowContextMenuWithControlKey]=\"false\" [getMainMenuItems]=\"getMainMenuItems\">\n</ag-grid-angular>\n\n<!-- (displayedColumnsChanged)=\"displayedColumnsChanged($event)\" -->", components: [{ type: i1.AgGridAngular, selector: "ag-grid-angular", inputs: ["alignedGrids", "rowData", "columnDefs", "excelStyles", "pinnedTopRowData", "pinnedBottomRowData", "chartThemes", "components", "frameworkComponents", "rowStyle", "context", "autoGroupColumnDef", "localeText", "icons", "datasource", "serverSideDatasource", "viewportDatasource", "groupRowRendererParams", "aggFuncs", "fullWidthCellRendererParams", "defaultColGroupDef", "defaultColDef", "defaultExportParams", "columnTypes", "rowClassRules", "detailGridOptions", "detailCellRendererParams", "loadingCellRendererParams", "loadingOverlayComponentParams", "noRowsOverlayComponentParams", "popupParent", "colResizeDefault", "reduxStore", "statusBar", "sideBar", "chartThemeOverrides", "customChartThemes", "sortingOrder", "rowClass", "rowSelection", "overlayLoadingTemplate", "overlayNoRowsTemplate", "quickFilterText", "rowModelType", "editType", "domLayout", "clipboardDeliminator", "rowGroupPanelShow", "multiSortKey", "pivotColumnGroupTotals", "pivotRowTotals", "pivotPanelShow", "fillHandleDirection", "rowHeight", "detailRowHeight", "rowBuffer", "colWidth", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "groupDefaultExpanded", "minColWidth", "maxColWidth", "viewportRowModelPageSize", "viewportRowModelBufferSize", "autoSizePadding", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "tooltipShowDelay", "cacheOverflowSize", "paginationPageSize", "cacheBlockSize", "infiniteInitialRowCount", "scrollbarWidth", "batchUpdateWaitMillis", "asyncTransactionWaitMillis", "blockLoadDebounceMillis", "keepDetailRowsCount", "undoRedoCellEditingLimit", "cellFlashDelay", "cellFadeDelay", "localeTextFunc", "groupRowInnerRenderer", "groupRowInnerRendererFramework", "dateComponent", "dateComponentFramework", "groupRowRenderer", "groupRowRendererFramework", "isExternalFilterPresent", "getRowHeight", "doesExternalFilterPass", "getRowClass", "getRowStyle", "getRowClassRules", "traverseNode", "getContextMenuItems", "getMainMenuItems", "processRowPostCreate", "processCellForClipboard", "groupRowAggNodes", "getRowNodeId", "isFullWidthCell", "fullWidthCellRenderer", "fullWidthCellRendererFramework", "processSecondaryColDef", "processSecondaryColGroupDef", "getBusinessKeyForNode", "sendToClipboard", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getDetailRowData", "processCellFromClipboard", "getDocument", "postProcessPopup", "getChildCount", "getDataPath", "loadingCellRenderer", "loadingCellRendererFramework", "loadingOverlayComponent", "loadingOverlayComponentFramework", "noRowsOverlayComponent", "noRowsOverlayComponentFramework", "detailCellRenderer", "detailCellRendererFramework", "defaultGroupSortComparator", "isRowMaster", "isRowSelectable", "postSort", "processHeaderForClipboard", "paginationNumberFormatter", "processDataFromClipboard", "getServerSideGroupKey", "isServerSideGroup", "suppressKeyboardEvent", "createChartContainer", "processChartOptions", "getChartToolbarItems", "fillOperation", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowClickSelection", "suppressCellSelection", "suppressHorizontalScroll", "alwaysShowVerticalScroll", "debug", "enableBrowserTooltips", "enableCellExpressions", "angularCompileRows", "angularCompileFilters", "groupSuppressAutoColumn", "groupSelectsChildren", "groupIncludeFooter", "groupIncludeTotalFooter", "groupUseEntireRow", "groupSuppressBlankHeader", "suppressMenuHide", "suppressRowDeselection", "unSortIcon", "suppressMultiSort", "singleClickEdit", "suppressLoadingOverlay", "suppressNoRowsOverlay", "suppressAutoSize", "skipHeaderOnAutoSize", "suppressParentsInRowNodes", "suppressColumnMoveAnimation", "suppressMovableColumns", "suppressFieldDotNotation", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "suppressClearOnFillReduction", "deltaSort", "suppressTouch", "suppressAsyncEvents", "allowContextMenuWithControlKey", "suppressContextMenu", "rememberGroupStateWhenNewData", "enableCellChangeFlash", "suppressDragLeaveHidesColumns", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "suppressCopyRowsToClipboard", "copyHeadersToClipboard", "pivotMode", "suppressAggFuncInHeader", "suppressColumnVirtualisation", "suppressAggAtRootLevel", "suppressFocusAfterRefresh", "functionsPassive", "functionsReadOnly", "animateRows", "groupSelectsFiltered", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "enableRtl", "suppressClickEdit", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "enableMultiRowDragging", "enableGroupEdit", "embedFullWidthRows", "deprecatedEmbedFullWidthRows", "suppressPaginationPanel", "floatingFilter", "groupHideOpenParents", "groupMultiAutoColumn", "pagination", "stopEditingWhenGridLosesFocus", "paginationAutoPageSize", "suppressScrollOnNewData", "purgeClosedRowNodes", "cacheQuickFilter", "deltaRowDataMode", "ensureDomOrder", "accentedSort", "suppressChangeDetection", "valueCache", "valueCacheNeverExpires", "aggregateOnlyChangedColumns", "suppressAnimationFrame", "suppressExcelExport", "suppressCsvExport", "treeData", "masterDetail", "suppressMultiRangeSelection", "enterMovesDownAfterEdit", "enterMovesDown", "suppressPropertyNamesCheck", "rowMultiSelectWithClick", "suppressEnterpriseResetOnNewColumns", "enableOldSetFilterModel", "suppressRowHoverHighlight", "suppressRowTransform", "suppressClipboardPaste", "suppressLastEmptyLineOnPaste", "serverSideSortingAlwaysResets", "reactNext", "suppressSetColumnStateEvents", "suppressColumnStateEvents", "enableCharts", "deltaColumnMode", "suppressMaintainUnsortedOrder", "enableCellTextSelection", "suppressBrowserResizeObserver", "suppressMaxRenderedRowRestriction", "excludeChildrenWhenTreeDataFiltering", "tooltipMouseTrack", "keepDetailRows", "paginateChildRows", "preventDefaultOnContextMenu", "undoRedoCellEditing", "allowDragFromColumnsToolPanel", "immutableData", "immutableColumns", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "applyColumnDefOrder", "debounceVerticalScrollbar", "detailRowAutoHeight", "gridOptions", "modules"], outputs: ["columnEverythingChanged", "newColumnsLoaded", "columnPivotModeChanged", "columnRowGroupChanged", "expandOrCollapseAll", "columnPivotChanged", "gridColumnsChanged", "columnValueChanged", "columnMoved", "columnVisible", "columnPinned", "columnGroupOpened", "columnResized", "displayedColumnsChanged", "virtualColumnsChanged", "rowGroupOpened", "rowDataChanged", "rowDataUpdated", "pinnedRowDataChanged", "rangeSelectionChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "toolPanelVisibleChanged", "modelUpdated", "pasteStart", "pasteEnd", "fillStart", "fillEnd", "cellClicked", "cellDoubleClicked", "cellMouseDown", "cellContextMenu", "cellValueChanged", "rowValueChanged", "cellFocused", "rowSelected", "selectionChanged", "cellKeyDown", "cellKeyPress", "cellMouseOver", "cellMouseOut", "filterChanged", "filterModified", "filterOpened", "sortChanged", "virtualRowRemoved", "rowClicked", "rowDoubleClicked", "gridReady", "gridSizeChanged", "viewportChanged", "scrollbarWidthChanged", "firstDataRendered", "dragStarted", "dragStopped", "checkboxChanged", "rowEditingStarted", "rowEditingStopped", "cellEditingStarted", "cellEditingStopped", "bodyScroll", "animationQueueEmpty", "heightScaleChanged", "paginationChanged", "componentStateChanged", "bodyHeightChanged", "displayedColumnsWidthChanged", "scrollVisibilityChanged", "columnHoverChanged", "flashCells", "paginationPixelOffsetChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "popupToFront", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest", "keyboardFocus", "mouseFocus"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDataGridComponent, decorators: [{
584
+ type: Component,
585
+ args: [{ selector: 'ax-data-grid', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-grid-toolbar\" *ngIf=\"toolbar\">\n <ng-content select=\"ax-toolbar\"></ng-content>\n</div>\n<!-- [enableSorting]=\"true\" [enableColResize]=\"true\" [enableFilter]=\"allowFiltering\" -->\n<ag-grid-angular *ngIf=\"gridView\" class=\"ag-theme-balham\" [getRowClass]=\"internalGetRowClass\"\n [style.height]=\"internalHeight\" [columnDefs]=\"columnDefs\" [enableRtl]=\"rtl\" [pagination]=\"pagination\"\n [rowGroupPanelShow]=\"rowGroupPanelShow\" [rowModelType]=\"rowModelType\" [detailRowHeight]=\"detailRowHeight\"\n [getRowHeight]=\"getRowHeight\" [paginationAutoPageSize]=\"paginationAutoPageSize\"\n [paginationPageSize]=\"paginationPageSize\" [suppressMenuHide]=\"true\" [frameworkComponents]=\"frameworkComponents\"\n [isFullWidthCell]=\"isFullWidthCell\" [rowSelection]=\"selectionMode\" [rowMultiSelectWithClick]=\"rowMultiSelectWithClick\"\n [fullWidthCellRendererFramework]=\"fullWidthCellRendererFramework\"\n [fullWidthCellRendererParams]=\"fullWidthCellRendererParams\" (cellClicked)=\"internalGridCellClicked($event)\"\n (cellDoubleClicked)=\"internalGridCellDoubleClicked($event)\" (cellFocused)=\"internalGridCellFocused($event)\"\n (rowClicked)=\"internalGridRowClicked($event)\" (selectionChanged)=\"internalGridSelectionChanged($event)\"\n (rowSelected)=\"rowSelectionChanged($event)\" (rowDoubleClicked)=\"internalGridRowDoubleClicked($event)\"\n (gridReady)=\"internalGridReady($event)\" [groupSelectsChildren]=\"groupSelectsChildren\"\n [suppressRowClickSelection]=\"suppressRowClickSelection\" [groupSelectsFiltered]=\"true\"\n [suppressCellSelection]=\"suppressCellSelection\" [autoGroupColumnDef]=\"autoGroupColumnDef\"\n [suppressAggFuncInHeader]=\"true\" [treeData]=\"treeData\" [animateRows]=\"true\" [isServerSideGroup]=\"isServerSideGroup\"\n [getServerSideGroupKey]=\"getServerSideGroupKey\" [masterDetail]=\"masterDetail\"\n [detailCellRendererParams]=\"detailCellRendererParams\" [detailCellRenderer]=\"detailCellRenderer\"\n (gridSizeChanged)=\"internalGridSizeChanged($event)\" (firstDataRendered)=\"internalGridFirstDataRendered($event)\"\n [localeText]=\"localeText\" [groupHideOpenParents]=\"groupHideOpenParents\" [enableRangeSelection]=\"true\"\n [enableRangeSelection]=\"false\" [allowContextMenuWithControlKey]=\"false\" [getMainMenuItems]=\"getMainMenuItems\">\n</ag-grid-angular>\n\n<!-- (displayedColumnsChanged)=\"displayedColumnsChanged($event)\" -->" }]
586
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { remoteOperation: [{
587
+ type: Input
588
+ }], rowMultiSelectWithClick: [{
589
+ type: Input
590
+ }], suppressRowClickSelection: [{
591
+ type: Input
592
+ }], suppressCellSelection: [{
593
+ type: Input
594
+ }], sizeColumnsToFit: [{
595
+ type: Input
596
+ }], showCheckBox: [{
597
+ type: Input
598
+ }], floatingFilter: [{
599
+ type: Input
600
+ }], selectionMode: [{
601
+ type: Input
602
+ }], pagination: [{
603
+ type: Input
604
+ }], selectRow: [{
605
+ type: Input
606
+ }], rowGroupPanelShow: [{
607
+ type: Input
608
+ }], loadOnInit: [{
609
+ type: Input
610
+ }], keyField: [{
611
+ type: Input
612
+ }], hasChildField: [{
613
+ type: Input
614
+ }], searchText: [{
615
+ type: Input
616
+ }], filter: [{
617
+ type: Input
618
+ }], _inlineColumns: [{
619
+ type: ContentChildren,
620
+ args: [AXGridDataColumn]
621
+ }], columnsChange: [{
622
+ type: Output
623
+ }], columns: [{
624
+ type: Input
625
+ }], rowHeight: [{
626
+ type: Input
627
+ }], searchInput: [{
628
+ type: ContentChild,
629
+ args: [AXToolbarSearchComponent, { static: true }]
630
+ }], toolbar: [{
631
+ type: ContentChild,
632
+ args: [AXToolbarComponent, { static: true }]
633
+ }], rowTemplate: [{
634
+ type: ContentChild,
635
+ args: [AXDataGridRowTemplateComponent, { static: true }]
636
+ }], gridDetailTemplate: [{
637
+ type: ContentChild,
638
+ args: [AXDataGridDetailTemplateComponent, { static: true }]
639
+ }], _contentDataSource: [{
640
+ type: ContentChild,
641
+ args: [AXDataSourceComponent, { static: true }]
642
+ }], dataSource: [{
643
+ type: Input
644
+ }], groupHideOpenParents: [{
645
+ type: Input
646
+ }], cellClick: [{
647
+ type: Output
648
+ }], cellDbClick: [{
649
+ type: Output
650
+ }], cellFocuse: [{
651
+ type: Output
652
+ }], rowClick: [{
653
+ type: Output
654
+ }], rowDbClick: [{
655
+ type: Output
656
+ }], selectionChanged: [{
657
+ type: Output
658
+ }], rowSelectionChange: [{
659
+ type: Output
660
+ }], onRowSelectionChanged: [{
661
+ type: Output
662
+ }], rowClass: [{
663
+ type: Input
664
+ }], rtl: [{
665
+ type: Input
666
+ }] } });
667
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWdyaWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2RhdGEtZ3JpZC9zcmMvbGliL2RhdGEtZ3JpZC9kYXRhZ3JpZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvZGF0YS1ncmlkL3NyYy9saWIvZGF0YS1ncmlkL2RhdGFncmlkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXS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WZpbmVkKSB7XG4gICAgICAgICAgICBsZXQgc2VsZWN0OiBib29sZWFuID0gZmFsc2U7XG4gICAgICAgICAgICB0aGlzLnNlbGVjdFJvdy5mb3JFYWNoKChpZCkgPT4ge1xuICAgICAgICAgICAgICBpZiAobm9kZS5kYXRhW3RoaXMua2V5RmllbGRdID09PSBpZCkge1xuICAgICAgICAgICAgICAgIHNlbGVjdCA9IHRydWU7XG4gICAgICAgICAgICAgICAgbm9kZS5zZXRTZWxlY3RlZChzZWxlY3QpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5ncmlkQXBpLmZvckVhY2hOb2RlKChub2RlKSA9PiB7XG4gICAgICAgICAgaWYgKG5vZGUuZGF0YSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBsZXQgc2VsZWN0OiBib29sZWFuID0gZmFsc2U7XG4gICAgICAgICAgICB0aGlzLnNlbGVjdFJvdy5mb3JFYWNoKChpdGVtKSA9PiB7XG4gICAgICAgICAgICAgIGlmIChpdGVtLnJvd0luZGV4ICE9IHVuZGVmaW5lZCAmJiBpdGVtLnJvd0xldmVsICE9IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIGlmIChub2RlLmRhdGFbdGhpcy5rZXlGaWVsZF0gPT09IGl0ZW0uZGF0YVt0aGlzLmtleUZpZWxkXSkge1xuICAgICAgICAgICAgICAgICAgc2VsZWN0ID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKG5vZGUuZGF0YVt0aGlzLmtleUZpZWxkXSA9PT0gaXRlbVt0aGlzLmtleUZpZWxkXSkge1xuICAgICAgICAgICAgICAgICAgc2VsZWN0ID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAg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