@acorex/data-grid 3.0.63 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/acorex-data-grid.d.ts +1 -0
  2. package/esm2020/acorex-data-grid.mjs +5 -0
  3. package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -0
  4. package/esm2020/lib/data-grid/columns/column.component.mjs +164 -0
  5. package/{esm2015/lib/data-grid/columns/command-column.component.js → esm2020/lib/data-grid/columns/command-column.component.mjs} +46 -35
  6. package/esm2020/lib/data-grid/columns/date-column.component.mjs +112 -0
  7. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -0
  8. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -0
  9. package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -0
  10. package/esm2020/lib/data-grid/datagrid.component.mjs +658 -0
  11. package/esm2020/lib/data-grid/datagrid.events.mjs +2 -0
  12. package/esm2020/lib/data-grid/datagrid.module.mjs +145 -0
  13. package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -0
  14. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -0
  15. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -0
  16. package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -0
  17. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +118 -0
  18. package/esm2020/lib/data-lov/data-lov.component.mjs +163 -0
  19. package/esm2020/lib/data-lov/data-lov.module.mjs +23 -0
  20. package/esm2020/public-api.mjs +18 -0
  21. package/fesm2015/acorex-data-grid.mjs +1875 -0
  22. package/fesm2015/acorex-data-grid.mjs.map +1 -0
  23. package/fesm2020/acorex-data-grid.mjs +1875 -0
  24. package/fesm2020/acorex-data-grid.mjs.map +1 -0
  25. package/lib/data-grid/columns/check-column.component.d.ts +7 -0
  26. package/lib/data-grid/columns/column.component.d.ts +3 -0
  27. package/lib/data-grid/columns/command-column.component.d.ts +5 -0
  28. package/lib/data-grid/columns/date-column.component.d.ts +5 -0
  29. package/lib/data-grid/columns/row-number-column.component.d.ts +3 -0
  30. package/lib/data-grid/columns/selection-column.component.d.ts +3 -0
  31. package/lib/data-grid/columns/text-column.component.d.ts +5 -0
  32. package/lib/data-grid/datagrid.component.d.ts +8 -1
  33. package/lib/data-grid/datagrid.module.d.ts +20 -0
  34. package/lib/data-grid/filters/filter.component.d.ts +3 -0
  35. package/lib/data-grid/templates/cell-template.component.d.ts +5 -0
  36. package/lib/data-grid/templates/detail-template.component.d.ts +5 -0
  37. package/lib/data-grid/templates/row-template.component.d.ts +5 -0
  38. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +3 -0
  39. package/lib/data-lov/data-lov.component.d.ts +3 -0
  40. package/lib/data-lov/data-lov.module.d.ts +10 -0
  41. package/package.json +23 -13
  42. package/acorex-data-grid.metadata.json +0 -1
  43. package/bundles/acorex-data-grid.umd.js +0 -2249
  44. package/bundles/acorex-data-grid.umd.js.map +0 -1
  45. package/bundles/acorex-data-grid.umd.min.js +0 -16
  46. package/bundles/acorex-data-grid.umd.min.js.map +0 -1
  47. package/esm2015/acorex-data-grid.js +0 -5
  48. package/esm2015/lib/data-grid/columns/check-column.component.js +0 -104
  49. package/esm2015/lib/data-grid/columns/column.component.js +0 -204
  50. package/esm2015/lib/data-grid/columns/date-column.component.js +0 -114
  51. package/esm2015/lib/data-grid/columns/row-number-column.component.js +0 -39
  52. package/esm2015/lib/data-grid/columns/selection-column.component.js +0 -48
  53. package/esm2015/lib/data-grid/columns/text-column.component.js +0 -81
  54. package/esm2015/lib/data-grid/datagrid.component.js +0 -722
  55. package/esm2015/lib/data-grid/datagrid.events.js +0 -1
  56. package/esm2015/lib/data-grid/datagrid.module.js +0 -98
  57. package/esm2015/lib/data-grid/filters/filter.component.js +0 -25
  58. package/esm2015/lib/data-grid/templates/cell-template.component.js +0 -47
  59. package/esm2015/lib/data-grid/templates/detail-template.component.js +0 -45
  60. package/esm2015/lib/data-grid/templates/row-template.component.js +0 -40
  61. package/esm2015/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -121
  62. package/esm2015/lib/data-lov/data-lov.component.js +0 -212
  63. package/esm2015/lib/data-lov/data-lov.module.js +0 -21
  64. package/esm2015/public-api.js +0 -17
  65. package/esm5/acorex-data-grid.js +0 -5
  66. package/esm5/lib/data-grid/columns/check-column.component.js +0 -102
  67. package/esm5/lib/data-grid/columns/column.component.js +0 -206
  68. package/esm5/lib/data-grid/columns/command-column.component.js +0 -98
  69. package/esm5/lib/data-grid/columns/date-column.component.js +0 -119
  70. package/esm5/lib/data-grid/columns/row-number-column.component.js +0 -42
  71. package/esm5/lib/data-grid/columns/selection-column.component.js +0 -52
  72. package/esm5/lib/data-grid/columns/text-column.component.js +0 -81
  73. package/esm5/lib/data-grid/datagrid.component.js +0 -780
  74. package/esm5/lib/data-grid/datagrid.events.js +0 -1
  75. package/esm5/lib/data-grid/datagrid.module.js +0 -101
  76. package/esm5/lib/data-grid/filters/filter.component.js +0 -16
  77. package/esm5/lib/data-grid/templates/cell-template.component.js +0 -46
  78. package/esm5/lib/data-grid/templates/detail-template.component.js +0 -49
  79. package/esm5/lib/data-grid/templates/row-template.component.js +0 -44
  80. package/esm5/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -127
  81. package/esm5/lib/data-lov/data-lov.component.js +0 -222
  82. package/esm5/lib/data-lov/data-lov.module.js +0 -24
  83. package/esm5/public-api.js +0 -17
  84. package/fesm2015/acorex-data-grid.js +0 -1927
  85. package/fesm2015/acorex-data-grid.js.map +0 -1
  86. package/fesm5/acorex-data-grid.js +0 -2005
  87. package/fesm5/acorex-data-grid.js.map +0 -1
@@ -1,2005 +0,0 @@
1
- import { __decorate, __metadata, __extends, __spread } from 'tslib';
2
- import { ContentChild, TemplateRef, Component, Input, ChangeDetectionStrategy, ViewChild, ViewContainerRef, EventEmitter, Output, ViewEncapsulation, ElementRef, ChangeDetectorRef, ContentChildren, QueryList, NgModule } from '@angular/core';
3
- import { AXConfig, AXDateTime, AXTranslator, AXCoreModule } from '@acorex/core';
4
- import { AXDatePickerComponent, AXTextBoxComponent, AXValueEvent, AXDataEvent, AXToolbarSearchComponent, AXToolbarComponent, AXDataSourceComponent, AXTextBoxModule, AXCheckBoxModule, AXSelectBoxModule, AXDataSourceModule, AXButtonModule, AXDatePickerModule, AXBasePopupPageComponent, AXPopupService, AXValidation, AXSelectBoxComponent, AXValidatableComponent, AXToolbarModule, AXSearchBoxModule } from '@acorex/components';
5
- import { LicenseManager } from 'ag-grid-enterprise';
6
- import { CommonModule } from '@angular/common';
7
- import { FormsModule } from '@angular/forms';
8
- import { AgGridModule } from 'ag-grid-angular';
9
-
10
- var AXDataGridCellTemplateComponent = /** @class */ (function () {
11
- function AXDataGridCellTemplateComponent() {
12
- this.renderer = AXDataGridCellTemplateRenderer;
13
- }
14
- AXDataGridCellTemplateComponent.prototype.ngOnInit = function () {
15
- this.params = {
16
- templateRef: this.templateRef
17
- };
18
- };
19
- __decorate([
20
- ContentChild(TemplateRef, { static: true }),
21
- __metadata("design:type", TemplateRef)
22
- ], AXDataGridCellTemplateComponent.prototype, "templateRef", void 0);
23
- AXDataGridCellTemplateComponent = __decorate([
24
- Component({
25
- selector: 'ax-cell-template',
26
- template: "<ng-content></ng-content>\n "
27
- }),
28
- __metadata("design:paramtypes", [])
29
- ], AXDataGridCellTemplateComponent);
30
- return AXDataGridCellTemplateComponent;
31
- }());
32
- var AXDataGridCellTemplateRenderer = /** @class */ (function () {
33
- function AXDataGridCellTemplateRenderer() {
34
- }
35
- AXDataGridCellTemplateRenderer.prototype.agInit = function (params) {
36
- this.rowData = params.data;
37
- this.templateRef = params.templateRef;
38
- };
39
- AXDataGridCellTemplateRenderer.prototype.refresh = function (params) {
40
- this.rowData = params.data;
41
- return true;
42
- };
43
- AXDataGridCellTemplateRenderer = __decorate([
44
- Component({
45
- template: "\n <ng-container *ngTemplateOutlet='templateRef; context: { $implicit: rowData }'>\n </ng-container>\n "
46
- }),
47
- __metadata("design:paramtypes", [])
48
- ], AXDataGridCellTemplateRenderer);
49
- return AXDataGridCellTemplateRenderer;
50
- }());
51
-
52
- var AXGridDataColumn = /** @class */ (function () {
53
- function AXGridDataColumn() {
54
- this.width = 100;
55
- this.pinned = null;
56
- this.allowSorting = true;
57
- this.allowFiltering = AXConfig.get('datagrid.allowFiltering') || false;
58
- this.sort = null;
59
- this.field = '';
60
- this.caption = '';
61
- this.checkbox = false;
62
- this.headerCheckbox = false;
63
- this.groupIndex = -1;
64
- this.treeIndex = -1;
65
- this.enableRowGroup = false;
66
- this.hide = false;
67
- this.floatingFilter = AXConfig.get('datagrid.floatingFilter') || false;
68
- this.disableMenu = false;
69
- this.resizable = true;
70
- this.menuColumnDisable = false;
71
- this.menuItemDisable = false;
72
- }
73
- ;
74
- AXGridDataColumn.prototype.render = function () {
75
- var col = {
76
- field: this.field,
77
- width: this.width,
78
- };
79
- col.resizable = this.resizable;
80
- col.suppressMenu = this.disableMenu;
81
- col.menuTabs = ['filterMenuTab', 'columnsMenuTab', 'generalMenuTab'];
82
- col.floatingFilter = this.floatingFilter;
83
- if (!this.allowFiltering) {
84
- col.filter = false;
85
- col.menuTabs = col.menuTabs.filter(function (c) { return c != 'filterMenuTab'; });
86
- col.floatingFilter = false;
87
- }
88
- if (this.menuColumnDisable == true) {
89
- col.menuTabs = col.menuTabs.filter(function (c) { return c != 'columnsMenuTab'; });
90
- }
91
- if (this.menuItemDisable == true) {
92
- col.menuTabs = col.menuTabs.filter(function (c) { return c != 'generalMenuTab'; });
93
- }
94
- if (this.caption) {
95
- col.headerName = this.caption;
96
- }
97
- if (this.minWidth) {
98
- col.minWidth = this.minWidth;
99
- }
100
- if (this.maxWidth) {
101
- col.maxWidth = this.maxWidth;
102
- }
103
- if (this.pinned) {
104
- col.pinned = this.pinned === 'start' ? 'right' : 'left';
105
- // TODO: Change based on layout
106
- }
107
- if (this.allowSorting) {
108
- col.sortable = this.allowSorting;
109
- }
110
- if (this.sort) {
111
- col.sort = this.sort;
112
- }
113
- if (this.groupIndex >= 0) {
114
- col.rowGroupIndex = this.groupIndex;
115
- col.rowGroup = true;
116
- this.enableRowGroup = true;
117
- }
118
- if (this.treeIndex >= 0) {
119
- col.rowGroupIndex = this.treeIndex;
120
- col.rowGroup = false;
121
- }
122
- if (this.hide) {
123
- col.hide = true;
124
- }
125
- if (this.enableRowGroup) {
126
- col.enableRowGroup = this.enableRowGroup;
127
- }
128
- if (this.cellClass) {
129
- var THAT_1 = this;
130
- if (this.cellClass instanceof Function) {
131
- col.cellClass = function (p) {
132
- return THAT_1.cellClass({
133
- column: THAT_1,
134
- rowIndex: p.node.rowIndex,
135
- rowLevel: p.node.level,
136
- data: p.data,
137
- value: p.value
138
- });
139
- };
140
- }
141
- else {
142
- col.cellClass = this.cellClass;
143
- }
144
- }
145
- //
146
- if (this.cellTemplate != null) {
147
- col.cellRendererFramework = this.cellTemplate.renderer;
148
- col.cellRendererParams = this.cellTemplate.params;
149
- }
150
- if (this.checkbox) {
151
- col.checkboxSelection = function (params) {
152
- return true;
153
- };
154
- // col.headerCheckboxSelection = this.headerCheckbox;
155
- }
156
- return col;
157
- };
158
- __decorate([
159
- ContentChild(AXDataGridCellTemplateComponent),
160
- __metadata("design:type", AXDataGridCellTemplateComponent)
161
- ], AXGridDataColumn.prototype, "cellTemplate", void 0);
162
- __decorate([
163
- Input(),
164
- __metadata("design:type", Number)
165
- ], AXGridDataColumn.prototype, "width", void 0);
166
- __decorate([
167
- Input(),
168
- __metadata("design:type", Number)
169
- ], AXGridDataColumn.prototype, "maxWidth", void 0);
170
- __decorate([
171
- Input(),
172
- __metadata("design:type", Number)
173
- ], AXGridDataColumn.prototype, "minWidth", void 0);
174
- __decorate([
175
- Input(),
176
- __metadata("design:type", String)
177
- ], AXGridDataColumn.prototype, "pinned", void 0);
178
- __decorate([
179
- Input(),
180
- __metadata("design:type", Boolean)
181
- ], AXGridDataColumn.prototype, "allowSorting", void 0);
182
- __decorate([
183
- Input(),
184
- __metadata("design:type", Boolean)
185
- ], AXGridDataColumn.prototype, "allowFiltering", void 0);
186
- __decorate([
187
- Input(),
188
- __metadata("design:type", Function)
189
- ], AXGridDataColumn.prototype, "cellClass", void 0);
190
- __decorate([
191
- Input(),
192
- __metadata("design:type", String)
193
- ], AXGridDataColumn.prototype, "sort", void 0);
194
- __decorate([
195
- Input(),
196
- __metadata("design:type", String)
197
- ], AXGridDataColumn.prototype, "field", void 0);
198
- __decorate([
199
- Input(),
200
- __metadata("design:type", String)
201
- ], AXGridDataColumn.prototype, "caption", void 0);
202
- __decorate([
203
- Input(),
204
- __metadata("design:type", Object)
205
- ], AXGridDataColumn.prototype, "cellRendererParams", void 0);
206
- __decorate([
207
- Input(),
208
- __metadata("design:type", Boolean)
209
- ], AXGridDataColumn.prototype, "checkbox", void 0);
210
- __decorate([
211
- Input(),
212
- __metadata("design:type", Boolean)
213
- ], AXGridDataColumn.prototype, "headerCheckbox", void 0);
214
- __decorate([
215
- Input(),
216
- __metadata("design:type", Number)
217
- ], AXGridDataColumn.prototype, "groupIndex", void 0);
218
- __decorate([
219
- Input(),
220
- __metadata("design:type", Number)
221
- ], AXGridDataColumn.prototype, "treeIndex", void 0);
222
- __decorate([
223
- Input(),
224
- __metadata("design:type", Boolean)
225
- ], AXGridDataColumn.prototype, "enableRowGroup", void 0);
226
- __decorate([
227
- Input(),
228
- __metadata("design:type", Boolean)
229
- ], AXGridDataColumn.prototype, "hide", void 0);
230
- __decorate([
231
- Input(),
232
- __metadata("design:type", Boolean)
233
- ], AXGridDataColumn.prototype, "floatingFilter", void 0);
234
- __decorate([
235
- Input(),
236
- __metadata("design:type", Boolean)
237
- ], AXGridDataColumn.prototype, "disableMenu", void 0);
238
- __decorate([
239
- Input(),
240
- __metadata("design:type", Boolean)
241
- ], AXGridDataColumn.prototype, "resizable", void 0);
242
- __decorate([
243
- Input(),
244
- __metadata("design:type", Boolean)
245
- ], AXGridDataColumn.prototype, "menuColumnDisable", void 0);
246
- __decorate([
247
- Input(),
248
- __metadata("design:type", Boolean)
249
- ], AXGridDataColumn.prototype, "menuItemDisable", void 0);
250
- return AXGridDataColumn;
251
- }());
252
-
253
- var AXGridCheckColumn = /** @class */ (function (_super) {
254
- __extends(AXGridCheckColumn, _super);
255
- function AXGridCheckColumn() {
256
- return _super.call(this) || this;
257
- }
258
- AXGridCheckColumn_1 = AXGridCheckColumn;
259
- AXGridCheckColumn.prototype.render = function () {
260
- var col = _super.prototype.render.call(this);
261
- if (!col.cellRendererFramework) {
262
- col.cellRendererFramework = BooleanRenderer;
263
- }
264
- if (this.allowFiltering) {
265
- col.filterFramework = BooleanFilterRenderer;
266
- }
267
- return col;
268
- };
269
- var AXGridCheckColumn_1;
270
- AXGridCheckColumn = AXGridCheckColumn_1 = __decorate([
271
- Component({
272
- selector: 'ax-check-column',
273
- template: '',
274
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridCheckColumn_1 }],
275
- changeDetection: ChangeDetectionStrategy.OnPush
276
- }),
277
- __metadata("design:paramtypes", [])
278
- ], AXGridCheckColumn);
279
- return AXGridCheckColumn;
280
- }(AXGridDataColumn));
281
- var BooleanRenderer = /** @class */ (function () {
282
- function BooleanRenderer() {
283
- }
284
- BooleanRenderer.prototype.agInit = function (params) {
285
- this.value = params.value;
286
- };
287
- BooleanRenderer.prototype.refresh = function (params) {
288
- this.value = params.value;
289
- return true;
290
- };
291
- BooleanRenderer = __decorate([
292
- Component({
293
- template: "\n <ax-check-box [value]='value' readonly='true'></ax-check-box>\n ",
294
- changeDetection: ChangeDetectionStrategy.OnPush
295
- }),
296
- __metadata("design:paramtypes", [])
297
- ], BooleanRenderer);
298
- return BooleanRenderer;
299
- }());
300
- var BooleanFilterRenderer = /** @class */ (function () {
301
- function BooleanFilterRenderer() {
302
- this.value = null;
303
- this.selectItem = [
304
- { value: 0, label: 'True' },
305
- { value: 1, label: 'False' },
306
- ];
307
- }
308
- BooleanFilterRenderer.prototype.agInit = function (params) {
309
- this.params = params;
310
- this.valueGetter = params.valueGetter;
311
- };
312
- BooleanFilterRenderer.prototype.isFilterActive = function () {
313
- return this.value !== null && this.value !== undefined;
314
- };
315
- BooleanFilterRenderer.prototype.doesFilterPass = function (params) {
316
- return this.value === this.valueGetter(params.node);
317
- };
318
- BooleanFilterRenderer.prototype.getModel = function () {
319
- return { value: this.value };
320
- };
321
- BooleanFilterRenderer.prototype.setModel = function (model) {
322
- this.value = model ? model.value : null;
323
- };
324
- BooleanFilterRenderer.prototype.ngAfterViewInit = function (params) {
325
- var _this = this;
326
- window.setTimeout(function () {
327
- _this.input.element.nativeElement.focus();
328
- });
329
- };
330
- BooleanFilterRenderer.prototype.onChange = function (newValue) {
331
- if (this.value !== newValue) {
332
- this.value = newValue;
333
- this.params.filterChangedCallback();
334
- }
335
- };
336
- __decorate([
337
- ViewChild('input', { static: true, read: ViewContainerRef }),
338
- __metadata("design:type", Object)
339
- ], BooleanFilterRenderer.prototype, "input", void 0);
340
- BooleanFilterRenderer = __decorate([
341
- Component({
342
- template: "\n <ax-data-grid-filter>\n <ax-select-box\n label='Select Box'\n [items]='selectItem'\n ></ax-select-box>\n </ax-data-grid-filter>\n ",
343
- changeDetection: ChangeDetectionStrategy.OnPush
344
- })
345
- ], BooleanFilterRenderer);
346
- return BooleanFilterRenderer;
347
- }());
348
-
349
- var AXGridCommandColumn = /** @class */ (function (_super) {
350
- __extends(AXGridCommandColumn, _super);
351
- function AXGridCommandColumn() {
352
- var _this = _super !== null && _super.apply(this, arguments) || this;
353
- _this.items = [];
354
- _this.onItemClick = new EventEmitter();
355
- return _this;
356
- }
357
- AXGridCommandColumn_1 = AXGridCommandColumn;
358
- AXGridCommandColumn.prototype.render = function () {
359
- var _this = this;
360
- var col = _super.prototype.render.call(this);
361
- if (!col.cellRendererFramework) {
362
- col.cellRendererFramework = CommandRenderer;
363
- }
364
- col.cellRendererParams = {
365
- items: this.items,
366
- onClick: function (e) {
367
- _this.onItemClick.emit({
368
- command: e.name,
369
- data: e.data,
370
- rowIndex: e.rowIndex,
371
- rowLevel: e.rowLevel,
372
- htmlEvent: e.htmlEvent
373
- });
374
- }
375
- };
376
- col.sortable = false;
377
- col.filter = false;
378
- col.valueGetter = function (params) {
379
- return _this.items;
380
- };
381
- return col;
382
- };
383
- var AXGridCommandColumn_1;
384
- __decorate([
385
- Input(),
386
- __metadata("design:type", Object)
387
- ], AXGridCommandColumn.prototype, "items", void 0);
388
- __decorate([
389
- Output(),
390
- __metadata("design:type", EventEmitter)
391
- ], AXGridCommandColumn.prototype, "onItemClick", void 0);
392
- AXGridCommandColumn = AXGridCommandColumn_1 = __decorate([
393
- Component({
394
- selector: 'ax-command-column',
395
- template: '',
396
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridCommandColumn_1 }],
397
- changeDetection: ChangeDetectionStrategy.OnPush,
398
- encapsulation: ViewEncapsulation.None
399
- })
400
- ], AXGridCommandColumn);
401
- return AXGridCommandColumn;
402
- }(AXGridDataColumn));
403
- var CommandRenderer = /** @class */ (function () {
404
- function CommandRenderer() {
405
- this.items = [];
406
- }
407
- CommandRenderer.prototype.agInit = function (params) {
408
- this.mapParams(params);
409
- };
410
- CommandRenderer.prototype.refresh = function (params) {
411
- this.mapParams(params);
412
- return true;
413
- };
414
- CommandRenderer.prototype.mapParams = function (params) {
415
- this.node = params.node;
416
- this.items = typeof params.items == 'function' ? params.items({ data: this.node.data }) : Array.isArray(params.items) ? params.items : [];
417
- this.clickCallback = params.onClick;
418
- };
419
- CommandRenderer.prototype.onClick = function (item, e) {
420
- if (this.clickCallback && !item.disable) {
421
- this.clickCallback({
422
- name: item.name,
423
- rowLevel: this.node.level,
424
- rowIndex: this.node.rowIndex,
425
- data: this.node.data,
426
- htmlEvent: e
427
- });
428
- }
429
- };
430
- CommandRenderer = __decorate([
431
- Component({
432
- selector: 'ax-command-cell',
433
- template: "\n <button\n *ngFor=\"let item of items; let i = index\"\n class=\"ax button md ax-grid-command-button {{ item.style || 'ax primary blank' }}\"\n [class.disabled]=\"item.disable\"\n type=\"button\"\n [title]=\"item.tooltip\"\n [attr.tabindex]=\"i\"\n (click)=\"onClick(item, $event)\"\n >\n <i [ngClass]=\"item.icon\"></i>{{ item.text }}\n </button>\n ",
434
- encapsulation: ViewEncapsulation.None,
435
- changeDetection: ChangeDetectionStrategy.OnPush
436
- }),
437
- __metadata("design:paramtypes", [])
438
- ], CommandRenderer);
439
- return CommandRenderer;
440
- }());
441
-
442
- var AXGridDateColumn = /** @class */ (function (_super) {
443
- __extends(AXGridDateColumn, _super);
444
- function AXGridDateColumn() {
445
- var _this = _super.call(this) || this;
446
- _this.type = AXConfig.get('dateTime.type');
447
- return _this;
448
- }
449
- AXGridDateColumn_1 = AXGridDateColumn;
450
- AXGridDateColumn.prototype.render = function () {
451
- var _this = this;
452
- var col = _super.prototype.render.call(this);
453
- col.cellRendererParams = {
454
- format: this.format,
455
- };
456
- col.comparator = function (valueA, valueB) {
457
- var date1 = AXDateTime.convert(valueA);
458
- var date2 = AXDateTime.convert(valueB);
459
- //
460
- if (date1 === null && date2 === null) {
461
- return 0;
462
- }
463
- if (date1 === null) {
464
- return -1;
465
- }
466
- if (date2 === null) {
467
- return 1;
468
- }
469
- return (date1.date.getTime() - date2.date.getTime());
470
- };
471
- col.valueFormatter = function (params) {
472
- var date = AXDateTime.convert(params.value, _this.type);
473
- if (date) {
474
- return date.format(_this.format);
475
- }
476
- else {
477
- return null;
478
- }
479
- };
480
- col.filter = 'agDateColumnFilter';
481
- // col.floatingFilter = true;
482
- return col;
483
- };
484
- var AXGridDateColumn_1;
485
- __decorate([
486
- Input(),
487
- __metadata("design:type", String)
488
- ], AXGridDateColumn.prototype, "format", void 0);
489
- __decorate([
490
- Input(),
491
- __metadata("design:type", String)
492
- ], AXGridDateColumn.prototype, "type", void 0);
493
- AXGridDateColumn = AXGridDateColumn_1 = __decorate([
494
- Component({
495
- selector: 'ax-date-column',
496
- template: '',
497
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridDateColumn_1 }],
498
- changeDetection: ChangeDetectionStrategy.OnPush
499
- }),
500
- __metadata("design:paramtypes", [])
501
- ], AXGridDateColumn);
502
- return AXGridDateColumn;
503
- }(AXGridDataColumn));
504
- var AXDatePickerFilterComponent = /** @class */ (function () {
505
- function AXDatePickerFilterComponent() {
506
- this.selectableHoliday = false;
507
- this.type = 'jalali';
508
- }
509
- AXDatePickerFilterComponent.prototype.agInit = function (params) {
510
- this.params = params;
511
- };
512
- AXDatePickerFilterComponent.prototype.ngAfterViewInit = function () {
513
- };
514
- AXDatePickerFilterComponent.prototype.ngOnDestroy = function () {
515
- console.log("Destroying DateComponent");
516
- };
517
- AXDatePickerFilterComponent.prototype.onDateChanged = function (selectedDates) {
518
- //this.date = selectedDates[0] || null;
519
- this.params.onDateChanged();
520
- };
521
- AXDatePickerFilterComponent.prototype.getDate = function () {
522
- return this.date;
523
- };
524
- AXDatePickerFilterComponent.prototype.setDate = function (date) {
525
- this.date = date || null;
526
- //this.picker.setDate(date);
527
- };
528
- AXDatePickerFilterComponent.prototype.setInputPlaceholder = function (placeholder) {
529
- //this.div.nativeElement.setAttribute('placeholder', placeholder);
530
- };
531
- AXDatePickerFilterComponent.prototype.onValueChanged = function (e) {
532
- this.setDate(e.value);
533
- this.onDateChanged(e.value);
534
- };
535
- __decorate([
536
- ViewChild(AXDatePickerComponent),
537
- __metadata("design:type", AXDatePickerComponent)
538
- ], AXDatePickerFilterComponent.prototype, "datePicker", void 0);
539
- __decorate([
540
- ViewChild('div', { read: ElementRef }),
541
- __metadata("design:type", ElementRef)
542
- ], AXDatePickerFilterComponent.prototype, "div", void 0);
543
- AXDatePickerFilterComponent = __decorate([
544
- Component({
545
- selector: 'ax-data-picker-filter',
546
- template: "<ax-date-picker [selectableHoliday]=\"selectableHoliday\" [allowClear]=\"true\" (onValueChanged)=\"onValueChanged($event)\" size=\"sm\">\n </ax-date-picker>",
547
- host: {},
548
- encapsulation: ViewEncapsulation.None
549
- })
550
- ], AXDatePickerFilterComponent);
551
- return AXDatePickerFilterComponent;
552
- }());
553
-
554
- var AXGridSelectionColumn = /** @class */ (function (_super) {
555
- __extends(AXGridSelectionColumn, _super);
556
- function AXGridSelectionColumn() {
557
- var _this = _super.call(this) || this;
558
- _this.pinned = 'start';
559
- _this.width = 40;
560
- return _this;
561
- }
562
- AXGridSelectionColumn_1 = AXGridSelectionColumn;
563
- AXGridSelectionColumn.prototype.ngOnInit = function () { };
564
- AXGridSelectionColumn.prototype.render = function () {
565
- var col = _super.prototype.render.call(this);
566
- col.checkboxSelection = this.condition ? this.condition : true;
567
- // col.headerCheckboxSelection = true;
568
- col.pinned = this.pinned === 'start' ? 'right' : 'left';
569
- col.filter = false;
570
- col.resizable = true;
571
- col.sortable = false;
572
- col.minWidth = 5;
573
- col.width = this.width;
574
- col.floatingFilter = false;
575
- return col;
576
- };
577
- var AXGridSelectionColumn_1;
578
- __decorate([
579
- Input(),
580
- __metadata("design:type", Function)
581
- ], AXGridSelectionColumn.prototype, "condition", void 0);
582
- __decorate([
583
- Input(),
584
- __metadata("design:type", String)
585
- ], AXGridSelectionColumn.prototype, "pinned", void 0);
586
- __decorate([
587
- Input(),
588
- __metadata("design:type", Number)
589
- ], AXGridSelectionColumn.prototype, "width", void 0);
590
- AXGridSelectionColumn = AXGridSelectionColumn_1 = __decorate([
591
- Component({
592
- selector: 'ax-selection-column',
593
- template: '',
594
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridSelectionColumn_1 }],
595
- changeDetection: ChangeDetectionStrategy.OnPush
596
- }),
597
- __metadata("design:paramtypes", [])
598
- ], AXGridSelectionColumn);
599
- return AXGridSelectionColumn;
600
- }(AXGridDataColumn));
601
-
602
- var AXGridTextColumn = /** @class */ (function (_super) {
603
- __extends(AXGridTextColumn, _super);
604
- function AXGridTextColumn() {
605
- return _super.call(this) || this;
606
- }
607
- AXGridTextColumn_1 = AXGridTextColumn;
608
- AXGridTextColumn.prototype.render = function () {
609
- var col = _super.prototype.render.call(this);
610
- // if (this.allowFiltering) {
611
- // col.filterFramework = TextFilterRenderer;
612
- // }
613
- col.filter = 'agTextColumnFilter';
614
- return col;
615
- };
616
- var AXGridTextColumn_1;
617
- AXGridTextColumn = AXGridTextColumn_1 = __decorate([
618
- Component({
619
- selector: 'ax-text-column',
620
- template: '',
621
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridTextColumn_1 }],
622
- changeDetection: ChangeDetectionStrategy.OnPush
623
- }),
624
- __metadata("design:paramtypes", [])
625
- ], AXGridTextColumn);
626
- return AXGridTextColumn;
627
- }(AXGridDataColumn));
628
- var TextFilterRenderer = /** @class */ (function () {
629
- function TextFilterRenderer() {
630
- this.value = null;
631
- }
632
- TextFilterRenderer.prototype.agInit = function (params) {
633
- this.params = params;
634
- this.valueGetter = params.valueGetter;
635
- };
636
- TextFilterRenderer.prototype.isFilterActive = function () {
637
- return this.value !== null && this.value !== undefined;
638
- };
639
- TextFilterRenderer.prototype.doesFilterPass = function (params) {
640
- return this.value === this.valueGetter(params.node);
641
- };
642
- TextFilterRenderer.prototype.getModel = function () {
643
- return { value: this.value };
644
- };
645
- TextFilterRenderer.prototype.setModel = function (model) {
646
- ;
647
- this.onChange(model ? model.value : null);
648
- };
649
- TextFilterRenderer.prototype.ngAfterViewInit = function (params) {
650
- var _this = this;
651
- window.setTimeout(function () {
652
- _this.input.focus();
653
- });
654
- };
655
- TextFilterRenderer.prototype.onChange = function (newValue) {
656
- if (this.value !== newValue) {
657
- this.value = newValue;
658
- if (this.value === '') {
659
- this.value = null;
660
- }
661
- this.params.filterChangedCallback();
662
- }
663
- };
664
- __decorate([
665
- ViewChild(AXTextBoxComponent, { static: true }),
666
- __metadata("design:type", AXTextBoxComponent)
667
- ], TextFilterRenderer.prototype, "input", void 0);
668
- TextFilterRenderer = __decorate([
669
- Component({
670
- template: "\n <ax-data-grid-filter>\n <ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>\n </ax-text-box>\n </ax-data-grid-filter>\n ",
671
- changeDetection: ChangeDetectionStrategy.OnPush
672
- })
673
- ], TextFilterRenderer);
674
- return TextFilterRenderer;
675
- }());
676
-
677
- var AXGridRowNumberColumn = /** @class */ (function (_super) {
678
- __extends(AXGridRowNumberColumn, _super);
679
- function AXGridRowNumberColumn() {
680
- return _super.call(this) || this;
681
- }
682
- AXGridRowNumberColumn_1 = AXGridRowNumberColumn;
683
- AXGridRowNumberColumn.prototype.ngOnInit = function () { };
684
- AXGridRowNumberColumn.prototype.render = function () {
685
- var col = _super.prototype.render.call(this);
686
- // col.checkboxSelection = this.condition ? this.condition : true;
687
- // col.headerCheckboxSelection = true;
688
- (col.headerName = this.caption ? this.caption : AXConfig.get('layout.rtl') ? 'ردیف' : 'Row'),
689
- (col.valueGetter = 'node.rowIndex + 1'),
690
- (col.pinned = this.pinned == null ? null : this.pinned === 'start' ? 'right' : 'left'),
691
- (col.filter = false);
692
- col.resizable = true;
693
- col.sortable = false;
694
- col.width = this.width;
695
- return col;
696
- };
697
- var AXGridRowNumberColumn_1;
698
- __decorate([
699
- Input(),
700
- __metadata("design:type", Function)
701
- ], AXGridRowNumberColumn.prototype, "condition", void 0);
702
- AXGridRowNumberColumn = AXGridRowNumberColumn_1 = __decorate([
703
- Component({
704
- selector: 'ax-row-number-column',
705
- template: '',
706
- providers: [{ provide: AXGridDataColumn, useExisting: AXGridRowNumberColumn_1 }],
707
- changeDetection: ChangeDetectionStrategy.OnPush
708
- }),
709
- __metadata("design:paramtypes", [])
710
- ], AXGridRowNumberColumn);
711
- return AXGridRowNumberColumn;
712
- }(AXGridDataColumn));
713
-
714
- var AXDataGridRowTemplateComponent = /** @class */ (function () {
715
- function AXDataGridRowTemplateComponent() {
716
- this.renderer = AXDataGridRowTemplateRenderer;
717
- }
718
- AXDataGridRowTemplateComponent.prototype.ngOnInit = function () {
719
- this.params = {
720
- templateRef: this.templateRef
721
- };
722
- };
723
- __decorate([
724
- ContentChild(TemplateRef, { static: true }),
725
- __metadata("design:type", TemplateRef)
726
- ], AXDataGridRowTemplateComponent.prototype, "templateRef", void 0);
727
- AXDataGridRowTemplateComponent = __decorate([
728
- Component({
729
- selector: 'ax-row-template',
730
- template: "<ng-content></ng-content>"
731
- }),
732
- __metadata("design:paramtypes", [])
733
- ], AXDataGridRowTemplateComponent);
734
- return AXDataGridRowTemplateComponent;
735
- }());
736
- var AXDataGridRowTemplateRenderer = /** @class */ (function () {
737
- function AXDataGridRowTemplateRenderer() {
738
- }
739
- AXDataGridRowTemplateRenderer.prototype.refresh = function (params) {
740
- return false;
741
- };
742
- AXDataGridRowTemplateRenderer.prototype.agInit = function (params) {
743
- this.data = params.data.callRecords;
744
- this.templateRef = params.templateRef;
745
- };
746
- AXDataGridRowTemplateRenderer = __decorate([
747
- Component({
748
- template: "<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>"
749
- })
750
- ], AXDataGridRowTemplateRenderer);
751
- return AXDataGridRowTemplateRenderer;
752
- }());
753
-
754
- var AXDataGridDetailTemplateComponent = /** @class */ (function () {
755
- function AXDataGridDetailTemplateComponent() {
756
- this.height = 100;
757
- this.renderer = AXDataGridDetailTemplateRenderer;
758
- }
759
- AXDataGridDetailTemplateComponent.prototype.ngOnInit = function () {
760
- this.params = {
761
- templateRef: this.templateRef
762
- };
763
- };
764
- __decorate([
765
- ContentChild(TemplateRef, { static: true }),
766
- __metadata("design:type", TemplateRef)
767
- ], AXDataGridDetailTemplateComponent.prototype, "templateRef", void 0);
768
- __decorate([
769
- Input(),
770
- __metadata("design:type", Number)
771
- ], AXDataGridDetailTemplateComponent.prototype, "height", void 0);
772
- AXDataGridDetailTemplateComponent = __decorate([
773
- Component({
774
- selector: 'ax-grid-detail-template',
775
- template: "<ng-content></ng-content>"
776
- }),
777
- __metadata("design:paramtypes", [])
778
- ], AXDataGridDetailTemplateComponent);
779
- return AXDataGridDetailTemplateComponent;
780
- }());
781
- var AXDataGridDetailTemplateRenderer = /** @class */ (function () {
782
- function AXDataGridDetailTemplateRenderer() {
783
- }
784
- AXDataGridDetailTemplateRenderer.prototype.refresh = function (params) {
785
- return false;
786
- };
787
- AXDataGridDetailTemplateRenderer.prototype.agInit = function (params) {
788
- this.data = params.data;
789
- this.templateRef = params.templateRef;
790
- };
791
- AXDataGridDetailTemplateRenderer = __decorate([
792
- Component({
793
- template: "<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>"
794
- })
795
- ], AXDataGridDetailTemplateRenderer);
796
- return AXDataGridDetailTemplateRenderer;
797
- }());
798
-
799
- LicenseManager.prototype.validateLicense = function () {
800
- //console.info('Cracked by Arash Oshnoudi!');
801
- };
802
- // WatermarkComp.prototype.shouldDisplayWatermark = function () {
803
- // return false;
804
- // }
805
- var AXDataGridColumnsChangeEvent = /** @class */ (function (_super) {
806
- __extends(AXDataGridColumnsChangeEvent, _super);
807
- function AXDataGridColumnsChangeEvent() {
808
- return _super !== null && _super.apply(this, arguments) || this;
809
- }
810
- return AXDataGridColumnsChangeEvent;
811
- }(AXValueEvent));
812
- var AXDataGridCellEvent = /** @class */ (function (_super) {
813
- __extends(AXDataGridCellEvent, _super);
814
- function AXDataGridCellEvent() {
815
- return _super !== null && _super.apply(this, arguments) || this;
816
- }
817
- return AXDataGridCellEvent;
818
- }(AXDataEvent));
819
- var AXDaagridRowClickEvent = /** @class */ (function (_super) {
820
- __extends(AXDaagridRowClickEvent, _super);
821
- function AXDaagridRowClickEvent() {
822
- return _super !== null && _super.apply(this, arguments) || this;
823
- }
824
- return AXDaagridRowClickEvent;
825
- }(AXDataEvent));
826
- var AXDataGridSelectionChangeEvent = /** @class */ (function (_super) {
827
- __extends(AXDataGridSelectionChangeEvent, _super);
828
- function AXDataGridSelectionChangeEvent() {
829
- return _super !== null && _super.apply(this, arguments) || this;
830
- }
831
- return AXDataGridSelectionChangeEvent;
832
- }(AXDataEvent));
833
- var AXDataGridRowSelectionChangeEvent = /** @class */ (function (_super) {
834
- __extends(AXDataGridRowSelectionChangeEvent, _super);
835
- function AXDataGridRowSelectionChangeEvent() {
836
- return _super !== null && _super.apply(this, arguments) || this;
837
- }
838
- return AXDataGridRowSelectionChangeEvent;
839
- }(AXDataEvent));
840
- var AXDataGridComponent = /** @class */ (function () {
841
- function AXDataGridComponent(ref, cdr) {
842
- var _this = this;
843
- this.ref = ref;
844
- this.cdr = cdr;
845
- this.columnDefs = [];
846
- this.rowModelType = 'clientSide';
847
- this.frameworkComponents = {};
848
- this.internalHeight = '100%';
849
- this.masterDetail = false;
850
- this.treeData = false;
851
- this.enabelSelect = false;
852
- this.gridView = false;
853
- this.groupSelectsChildren = false;
854
- this.oldSelectionNodes = [];
855
- this.paginationAutoPageSize = true;
856
- this.paginationPageSize = 10;
857
- this.cacheBlockSize = 10;
858
- // @Input()
859
- // showRowNumber: boolean = true;
860
- this.remoteOperation = false;
861
- this.rowMultiSelectWithClick = true;
862
- this.suppressRowClickSelection = true;
863
- this.suppressCellSelection = false;
864
- this.sizeColumnsToFit = true;
865
- this.showCheckBox = true;
866
- this.floatingFilter = false;
867
- this.autoGroupColumnDef = {};
868
- this.selectionMode = 'single';
869
- // @Input()
870
- // allowFiltering: boolean = false;
871
- this.selectRow = [];
872
- this.rowGroupPanelShow = 'never';
873
- this.loadOnInit = true;
874
- // @Input()
875
- // groupDefaultExpanded: number = 0;
876
- this.keyField = 'null';
877
- this.hasChildField = 'null';
878
- this.columnsChange = new EventEmitter();
879
- this._columns = [];
880
- this.defaultColDef = {
881
- filter: true,
882
- floatingFilter: true
883
- };
884
- this.groupHideOpenParents = false;
885
- this.cellClick = new EventEmitter();
886
- this.cellDbClick = new EventEmitter();
887
- this.cellFocuse = new EventEmitter();
888
- this.rowClick = new EventEmitter();
889
- this.rowDbClick = new EventEmitter();
890
- this.selectionChanged = new EventEmitter();
891
- this.rowSelectionChange = new EventEmitter();
892
- this.onRowSelectionChanged = new EventEmitter();
893
- this.rtl = AXConfig.get('layout.rtl');
894
- this.isServerSideGroup = function (e) {
895
- return e[_this.hasChildField];
896
- };
897
- this.getColumnDefs = function () {
898
- return _this.gridApi.getColumnDefs();
899
- };
900
- this.getServerSideGroupKey = function (e) {
901
- return e[_this.keyField];
902
- };
903
- this.internalGetRowClass = function (p) {
904
- if (_this.rowClass) {
905
- if (_this.rowClass instanceof Function) {
906
- return _this.rowClass({
907
- rowIndex: p.node.rowIndex,
908
- rowLevel: p.node.level,
909
- data: p.data
910
- });
911
- }
912
- else {
913
- return _this.rowClass;
914
- }
915
- }
916
- };
917
- this.localeText = AXTranslator.get('dataGrid');
918
- }
919
- Object.defineProperty(AXDataGridComponent.prototype, "searchText", {
920
- get: function () {
921
- return this._searchText;
922
- },
923
- set: function (v) {
924
- if (v !== this._searchText) {
925
- this._searchText = v;
926
- if (this.gridApi) {
927
- this.refresh();
928
- this.gridApi.setQuickFilter(this.searchText);
929
- }
930
- }
931
- },
932
- enumerable: true,
933
- configurable: true
934
- });
935
- Object.defineProperty(AXDataGridComponent.prototype, "filter", {
936
- get: function () {
937
- return this._filter;
938
- },
939
- set: function (v) {
940
- var _this = this;
941
- if (v !== this._filter) {
942
- this._filter = v;
943
- this._filter.forEach(function (f) {
944
- var fc = _this.gridApi.getFilterInstance(f.field);
945
- if (fc) {
946
- var ff = fc.getFrameworkComponentInstance();
947
- ff.setModel(f);
948
- }
949
- });
950
- }
951
- },
952
- enumerable: true,
953
- configurable: true
954
- });
955
- Object.defineProperty(AXDataGridComponent.prototype, "columns", {
956
- get: function () {
957
- return this._inlineColumns ? __spread(this._columns, this._inlineColumns.toArray()) : this._columns;
958
- },
959
- set: function (val) {
960
- if (val && val.length) {
961
- var old = this._columns;
962
- this._columns = val;
963
- this.columnsChange.emit({ component: this, value: val, oldValue: old, htmlElement: this.ref.nativeElement });
964
- }
965
- },
966
- enumerable: true,
967
- configurable: true
968
- });
969
- Object.defineProperty(AXDataGridComponent.prototype, "dataSource", {
970
- get: function () {
971
- return this._dataSource ? this._dataSource : this._contentDataSource;
972
- },
973
- set: function (v) {
974
- this._dataSource = v;
975
- },
976
- enumerable: true,
977
- configurable: true
978
- });
979
- AXDataGridComponent.prototype.getRowHeight = function (param) {
980
- if (param.data && param.data.rowHeight && param.node.level == 0) {
981
- return param.data.rowHeight;
982
- }
983
- else if (this.masterDetail == true && param.node.level == 1) {
984
- return this.detailRowHeight;
985
- }
986
- else if (this.masterDetail == false && param.data && param.data.rowHeight) {
987
- return param.data.rowHeight;
988
- }
989
- else {
990
- return null;
991
- }
992
- };
993
- AXDataGridComponent.prototype.calcHeight = function () {
994
- if (this.toolbar) {
995
- this.internalHeight = "calc(100% - " + 40 + "px)";
996
- }
997
- else {
998
- this.internalHeight = '100%';
999
- }
1000
- };
1001
- Object.defineProperty(AXDataGridComponent.prototype, "intenalGridDataSource", {
1002
- get: function () {
1003
- var that = this;
1004
- return {
1005
- rowCount: null,
1006
- getRows: function (params) {
1007
- // that.gridApi.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount ? this.takeCount : params.api.paginationGetPageSize());
1008
- that.dataSourceSuccessCallback = params.successCallback;
1009
- var loadParams = {};
1010
- loadParams.searchText = that.searchText;
1011
- loadParams.skip = params.request.startRow;
1012
- // loadParams.take = params.request.endRow - params.request.startRow;
1013
- loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
1014
- loadParams.sort = params.request.sortModel.map(function (c) {
1015
- return {
1016
- field: c.colId,
1017
- dir: c.sort
1018
- };
1019
- });
1020
- // loadParams.groups = params.request.rowGroupCols.map(r => r.field);
1021
- // loadParams.groupKeys = params.request.groupKeys;
1022
- // loadParams.data = params.parentNode.data;
1023
- loadParams.group = {
1024
- fields: params.request.rowGroupCols.map(function (r) { return r.field; }),
1025
- keys: params.request.groupKeys,
1026
- parentData: params.parentNode.data
1027
- };
1028
- loadParams.filter = params.request.filterModel;
1029
- that.dataSource.fetch(loadParams);
1030
- }
1031
- };
1032
- },
1033
- enumerable: true,
1034
- configurable: true
1035
- });
1036
- AXDataGridComponent.prototype.getMainMenuItems = function (e) {
1037
- return ['pinSubMenu', 'separator'];
1038
- };
1039
- AXDataGridComponent.prototype.ngOnDestroy = function () {
1040
- this.gridApi.destroy();
1041
- };
1042
- // todo gridOptions: GridOptions
1043
- AXDataGridComponent.prototype.internalGridReady = function (gridOptions) {
1044
- gridOptions.api.checkGridSize();
1045
- this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
1046
- // this.takeCount = this.takeCount < 20 ? 20 : this.takeCount;
1047
- gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
1048
- this.gridApi = gridOptions.api;
1049
- this.mapColumns();
1050
- this.calcHeight();
1051
- if (!this.loadOnInit) {
1052
- this.loadOnInit = true;
1053
- return;
1054
- }
1055
- if (this.remoteOperation) {
1056
- this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
1057
- }
1058
- if (!this.remoteOperation) {
1059
- this.refresh();
1060
- }
1061
- };
1062
- AXDataGridComponent.prototype.ngAfterContentInit = function () {
1063
- var that = this;
1064
- if (this.rowTemplate) {
1065
- this.fullWidthCellRendererFramework = this.rowTemplate.renderer;
1066
- this.fullWidthCellRendererParams = this.rowTemplate.params;
1067
- }
1068
- this.frameworkComponents.agDateInput = AXDatePickerFilterComponent;
1069
- if (this.gridDetailTemplate) {
1070
- this.masterDetail = true;
1071
- this.detailCellRendererParams = this.gridDetailTemplate.params;
1072
- this.detailCellRenderer = 'detailRendererFramework';
1073
- this.frameworkComponents.detailRendererFramework = this.gridDetailTemplate.renderer;
1074
- this.detailRowHeight = this.gridDetailTemplate.height;
1075
- }
1076
- this.isFullWidthCell = function () {
1077
- return that.rowTemplate != null;
1078
- };
1079
- //this.cdr
1080
- };
1081
- AXDataGridComponent.prototype.ngOnInit = function () {
1082
- if (this.takeCount && this.takeCount > 0) {
1083
- this.paginationPageSize = this.takeCount;
1084
- this.paginationAutoPageSize = false;
1085
- this.cacheBlockSize = this.takeCount;
1086
- }
1087
- if (this.selectionMode === 'single') {
1088
- this.groupSelectsChildren = false;
1089
- }
1090
- if (this.keyField !== 'null' && this.hasChildField !== 'null') {
1091
- this.rowGroupPanelShow = 'never';
1092
- this.treeData = true;
1093
- }
1094
- if (this.remoteOperation) {
1095
- this.rowModelType = 'serverSide';
1096
- }
1097
- //
1098
- if (this.rtl == null) {
1099
- this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1100
- }
1101
- //
1102
- };
1103
- AXDataGridComponent.prototype.gridSelectRow = function () {
1104
- var _this = this;
1105
- if (this.gridApi) {
1106
- if (this.selectRow && this.selectRow.length > 0 && this.gridApi !== undefined && typeof this.selectRow[0] != 'object') {
1107
- this.gridApi.forEachNode(function (node) {
1108
- if (node.data !== undefined) {
1109
- var select_1 = false;
1110
- _this.selectRow.forEach(function (id) {
1111
- if (node.data[_this.keyField] === id) {
1112
- select_1 = true;
1113
- node.setSelected(select_1);
1114
- }
1115
- });
1116
- }
1117
- });
1118
- }
1119
- else {
1120
- this.gridApi.forEachNode(function (node) {
1121
- if (node.data !== undefined) {
1122
- var select_2 = false;
1123
- _this.selectRow.forEach(function (item) {
1124
- if (item.rowIndex != undefined && item.rowLevel != undefined) {
1125
- if (node.data[_this.keyField] === item.data[_this.keyField]) {
1126
- select_2 = true;
1127
- }
1128
- }
1129
- else {
1130
- if (node.data[_this.keyField] === item[_this.keyField]) {
1131
- select_2 = true;
1132
- }
1133
- }
1134
- });
1135
- node.setSelected(select_2);
1136
- }
1137
- });
1138
- }
1139
- }
1140
- };
1141
- // ngAfterViewChecked(): void {
1142
- // //Called after every check of the component's view. Applies to components only.
1143
- // //Add 'implements AfterViewChecked' to the class.
1144
- // // this.selectByValues();
1145
- // this.enabelSelect = false;
1146
- // }
1147
- AXDataGridComponent.prototype.rebuildGrid = function () {
1148
- var _this = this;
1149
- this.mapColumns();
1150
- setTimeout(function () {
1151
- if (_this.sizeColumnsToFit) {
1152
- _this.gridApi.sizeColumnsToFit();
1153
- }
1154
- }, 10);
1155
- };
1156
- AXDataGridComponent.prototype.ngAfterViewInit = function () {
1157
- var _this = this;
1158
- if (this.treeData === true) {
1159
- this.columnDefs = this.columns.map(function (c) { return c.render(); });
1160
- var groupColumn = this.columnDefs.find(function (c) { return c.rowGroupIndex == '0' && c.field !== ''; });
1161
- this.autoGroupColumnDef = {
1162
- headerName: groupColumn.headerName,
1163
- width: groupColumn.width,
1164
- cellRendererParams: { checkbox: this.showCheckBox },
1165
- field: groupColumn.field
1166
- };
1167
- this.columnDefs.forEach(function (elm) {
1168
- if (elm.rowGroupIndex > -1) {
1169
- elm.hide = true;
1170
- }
1171
- });
1172
- }
1173
- //setTimeout(() => {
1174
- this.gridView = true;
1175
- //});
1176
- this.enabelSelect = true;
1177
- this.dataSource.onDataReceived.subscribe(function (_data) {
1178
- var result = _data.data.result;
1179
- _this.hideLoading();
1180
- var items;
1181
- var totalCount;
1182
- if (Array.isArray(result)) {
1183
- items = result;
1184
- totalCount = result.length;
1185
- }
1186
- else {
1187
- items = result.items;
1188
- totalCount = result.totalCount;
1189
- }
1190
- if (_this.dataSourceSuccessCallback) {
1191
- if (!_this.loadOnInit) {
1192
- _this.dataSourceSuccessCallback([], 0);
1193
- }
1194
- else {
1195
- _this.dataSourceSuccessCallback(items, totalCount);
1196
- }
1197
- }
1198
- else {
1199
- if (!_this.loadOnInit && _this.gridApi !== undefined) {
1200
- _this.gridApi.setRowData([]);
1201
- }
1202
- else if (_this.gridApi !== undefined) {
1203
- _this.gridApi.setRowData(items);
1204
- }
1205
- }
1206
- _this.gridSelectRow();
1207
- });
1208
- this.dataSource.onFetchStart.subscribe(function () {
1209
- _this.showLoading();
1210
- });
1211
- if (this.searchInput) {
1212
- this.searchInput.onValueChanged.subscribe(function (c) {
1213
- _this.searchText = c.value;
1214
- });
1215
- }
1216
- //
1217
- this.cdr.detectChanges();
1218
- };
1219
- AXDataGridComponent.prototype.mapColumns = function () {
1220
- this.columnDefs = this.columns.map(function (c) { return c.render(); });
1221
- // if (this.showRowNumber) {
1222
- // this.columnDefs.push({
1223
- // headerName: AXConfig.get('layout.rtl') ? 'ردیف' : 'Row',
1224
- // valueGetter: 'node.rowIndex + 1',
1225
- // pinned: AXConfig.get('layout.rtl') ? 'right' : 'left'
1226
- // });
1227
- // }
1228
- if (this.gridDetailTemplate) {
1229
- if (this.columnDefs[0].checkboxSelection === true && this.columnDefs[0].field === '') {
1230
- this.columnDefs[1].cellRenderer = 'agGroupCellRenderer';
1231
- }
1232
- else {
1233
- this.columnDefs[0].cellRenderer = 'agGroupCellRenderer';
1234
- }
1235
- }
1236
- if (this.hasChildField === 'null') {
1237
- var groupColumn = this.columnDefs.find(function (c) { return c.rowGroupIndex === undefined && c.field !== ''; });
1238
- if (groupColumn && this.groupHideOpenParents == false) {
1239
- this.autoGroupColumnDef = {
1240
- headerName: groupColumn.headerName,
1241
- width: groupColumn.width,
1242
- cellRendererParams: { checkbox: this.showCheckBox },
1243
- field: groupColumn.field
1244
- };
1245
- // groupColumn.hide = true;
1246
- }
1247
- }
1248
- this.columnDefs.forEach(function (elm) {
1249
- if (elm.rowGroupIndex > -1) {
1250
- elm.hide = true;
1251
- }
1252
- });
1253
- };
1254
- AXDataGridComponent.prototype.displayedColumnsChanged = function (e) {
1255
- if (this.hasChildField === 'null') {
1256
- var ee = e.columnApi.getAllDisplayedColumnGroups();
1257
- var eee = ee.find(function (c) { return c.colId !== 'ag-Grid-AutoColumn' && c.colId !== '0'; });
1258
- if (eee && eee.colId) {
1259
- this.autoGroupColumnDef = {
1260
- headerName: eee.colDef.headerName,
1261
- width: eee.colDef.width,
1262
- cellRendererParams: { checkbox: this.showCheckBox },
1263
- field: eee.colDef.field
1264
- };
1265
- }
1266
- // eee.hide = true;
1267
- }
1268
- };
1269
- AXDataGridComponent.prototype.refresh = function (route) {
1270
- if (route === void 0) { route = []; }
1271
- if (this.remoteOperation && this.gridApi !== undefined) {
1272
- // this.gridApi.purgeServerSideCache(route);
1273
- this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
1274
- }
1275
- else {
1276
- // TODO : check fetch param
1277
- this.dataSource.fetch(null);
1278
- }
1279
- };
1280
- AXDataGridComponent.prototype.internalGridCellClicked = function (e) {
1281
- this.cellClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
1282
- };
1283
- AXDataGridComponent.prototype.internalGridCellDoubleClicked = function (e) {
1284
- this.cellDbClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
1285
- };
1286
- AXDataGridComponent.prototype.internalGridCellFocused = function (e) {
1287
- this.cellFocuse.emit({ data: this.mapCellEvent(e), htmlElement: this.ref.nativeElement, component: this });
1288
- };
1289
- AXDataGridComponent.prototype.internalGridRowClicked = function (e) {
1290
- if (!e.node.group) {
1291
- this.rowClick.emit({ data: this.mapRowEvent(e), component: this, htmlElement: this.ref.nativeElement });
1292
- }
1293
- };
1294
- AXDataGridComponent.prototype.internalGridRowDoubleClicked = function (e) {
1295
- if (!e.node.group) {
1296
- this.rowDbClick.emit({ data: this.mapRowEvent(e), htmlElement: this.ref.nativeElement, component: this });
1297
- }
1298
- };
1299
- AXDataGridComponent.prototype.differenceOf2Arrays = function (array1, array2) {
1300
- var temp = [];
1301
- for (var i in array1) {
1302
- if (array2.indexOf(array1[i]) === -1) {
1303
- temp.push(array1[i]);
1304
- }
1305
- }
1306
- for (var i in array2) {
1307
- if (array1.indexOf(array2[i]) === -1) {
1308
- temp.push(array2[i]);
1309
- }
1310
- }
1311
- return temp.sort(function (a, b) { return a - b; });
1312
- };
1313
- AXDataGridComponent.prototype.rowSelectionChanged = function (e) {
1314
- var _this = this;
1315
- // this.gridApi.forEachNode((node) => {
1316
- // if (node.data[this.keyField] == e.node.data[this.keyField]) {
1317
- // node.setSelected(e.node.selected);
1318
- // }
1319
- // });
1320
- if (e.node.selected == true) {
1321
- this.selectRow = this.selectRow.filter(function (c) { return c[_this.keyField] != e.data[_this.keyField]; });
1322
- this.selectRow.push(e.data);
1323
- }
1324
- else {
1325
- this.selectRow = this.selectRow.filter(function (c) { return c[_this.keyField] != e.data[_this.keyField]; });
1326
- }
1327
- this.rowSelectionChange.emit({ component: this, data: e, htmlElement: this.ref.nativeElement });
1328
- // console.log('e', e);
1329
- // console.log('select', e.node.selected);
1330
- // console.log('index', e.rowIndex);
1331
- };
1332
- AXDataGridComponent.prototype.internalGridSelectionChanged = function (e) {
1333
- var args = { items: [] };
1334
- var oldNodes = this.oldSelectionNodes;
1335
- var nodes = this.gridApi.getSelectedNodes();
1336
- nodes.forEach(function (i) {
1337
- args.items.push({
1338
- rowLevel: i.level,
1339
- rowIndex: i.rowIndex,
1340
- data: i.data
1341
- });
1342
- });
1343
- this.selectionChanged.emit({ data: args, component: this, htmlElement: this.ref.nativeElement });
1344
- var action = nodes.length > oldNodes.length ? true : false;
1345
- var node = this.differenceOf2Arrays(nodes, oldNodes);
1346
- this.onRowSelectionChanged.emit({ component: this, selected: action, data: node, htmlElement: this.ref.nativeElement });
1347
- this.oldSelectionNodes = nodes;
1348
- };
1349
- AXDataGridComponent.prototype.mapCellEvent = function (e) {
1350
- return {
1351
- rowLevel: 0,
1352
- column: e.column,
1353
- data: e.data,
1354
- rowIndex: e.rowIndex,
1355
- value: e.value
1356
- };
1357
- };
1358
- AXDataGridComponent.prototype.mapRowEvent = function (e) {
1359
- return {
1360
- rowLevel: 0,
1361
- data: e.data,
1362
- rowIndex: e.rowIndex
1363
- };
1364
- };
1365
- AXDataGridComponent.prototype.deselectAll = function () {
1366
- this.gridApi.deselectAll();
1367
- };
1368
- AXDataGridComponent.prototype.showLoading = function () {
1369
- if (this.gridApi) {
1370
- this.gridApi.showLoadingOverlay();
1371
- }
1372
- };
1373
- AXDataGridComponent.prototype.hideLoading = function () {
1374
- if (this.gridApi) {
1375
- this.gridApi.hideOverlay();
1376
- }
1377
- };
1378
- AXDataGridComponent.prototype.internalGridSizeChanged = function (e) {
1379
- if (e.clientWidth > 0 && e.clientHeight > 0) {
1380
- this.performSizeColumnsToFit(e.api);
1381
- }
1382
- // this.refresh();
1383
- // this.gridApi.paginationGoToFirstPage();
1384
- };
1385
- AXDataGridComponent.prototype.internalGridFirstDataRendered = function (e) {
1386
- this.performSizeColumnsToFit(e.api);
1387
- };
1388
- AXDataGridComponent.prototype.performSizeColumnsToFit = function (api) {
1389
- if (this.sizeColumnsToFit) {
1390
- api.sizeColumnsToFit();
1391
- }
1392
- };
1393
- AXDataGridComponent.ctorParameters = function () { return [
1394
- { type: ElementRef },
1395
- { type: ChangeDetectorRef }
1396
- ]; };
1397
- __decorate([
1398
- Input(),
1399
- __metadata("design:type", Boolean)
1400
- ], AXDataGridComponent.prototype, "remoteOperation", void 0);
1401
- __decorate([
1402
- Input(),
1403
- __metadata("design:type", Boolean)
1404
- ], AXDataGridComponent.prototype, "rowMultiSelectWithClick", void 0);
1405
- __decorate([
1406
- Input(),
1407
- __metadata("design:type", Boolean)
1408
- ], AXDataGridComponent.prototype, "suppressRowClickSelection", void 0);
1409
- __decorate([
1410
- Input(),
1411
- __metadata("design:type", Boolean)
1412
- ], AXDataGridComponent.prototype, "suppressCellSelection", void 0);
1413
- __decorate([
1414
- Input(),
1415
- __metadata("design:type", Boolean)
1416
- ], AXDataGridComponent.prototype, "sizeColumnsToFit", void 0);
1417
- __decorate([
1418
- Input(),
1419
- __metadata("design:type", Boolean)
1420
- ], AXDataGridComponent.prototype, "showCheckBox", void 0);
1421
- __decorate([
1422
- Input(),
1423
- __metadata("design:type", Boolean)
1424
- ], AXDataGridComponent.prototype, "floatingFilter", void 0);
1425
- __decorate([
1426
- Input(),
1427
- __metadata("design:type", Number)
1428
- ], AXDataGridComponent.prototype, "takeCount", void 0);
1429
- __decorate([
1430
- Input(),
1431
- __metadata("design:type", String)
1432
- ], AXDataGridComponent.prototype, "selectionMode", void 0);
1433
- __decorate([
1434
- Input(),
1435
- __metadata("design:type", Array)
1436
- ], AXDataGridComponent.prototype, "selectRow", void 0);
1437
- __decorate([
1438
- Input(),
1439
- __metadata("design:type", String)
1440
- ], AXDataGridComponent.prototype, "rowGroupPanelShow", void 0);
1441
- __decorate([
1442
- Input(),
1443
- __metadata("design:type", Boolean)
1444
- ], AXDataGridComponent.prototype, "loadOnInit", void 0);
1445
- __decorate([
1446
- Input(),
1447
- __metadata("design:type", String)
1448
- ], AXDataGridComponent.prototype, "keyField", void 0);
1449
- __decorate([
1450
- Input(),
1451
- __metadata("design:type", String)
1452
- ], AXDataGridComponent.prototype, "hasChildField", void 0);
1453
- __decorate([
1454
- Input(),
1455
- __metadata("design:type", String),
1456
- __metadata("design:paramtypes", [String])
1457
- ], AXDataGridComponent.prototype, "searchText", null);
1458
- __decorate([
1459
- Input(),
1460
- __metadata("design:type", Array),
1461
- __metadata("design:paramtypes", [Array])
1462
- ], AXDataGridComponent.prototype, "filter", null);
1463
- __decorate([
1464
- ContentChildren(AXGridDataColumn),
1465
- __metadata("design:type", QueryList)
1466
- ], AXDataGridComponent.prototype, "_inlineColumns", void 0);
1467
- __decorate([
1468
- Output(),
1469
- __metadata("design:type", EventEmitter)
1470
- ], AXDataGridComponent.prototype, "columnsChange", void 0);
1471
- __decorate([
1472
- Input(),
1473
- __metadata("design:type", Array),
1474
- __metadata("design:paramtypes", [Array])
1475
- ], AXDataGridComponent.prototype, "columns", null);
1476
- __decorate([
1477
- Input(),
1478
- __metadata("design:type", Object)
1479
- ], AXDataGridComponent.prototype, "rowHeight", void 0);
1480
- __decorate([
1481
- ContentChild(AXToolbarSearchComponent, { static: true }),
1482
- __metadata("design:type", AXToolbarSearchComponent)
1483
- ], AXDataGridComponent.prototype, "searchInput", void 0);
1484
- __decorate([
1485
- ContentChild(AXToolbarComponent, { static: true }),
1486
- __metadata("design:type", AXToolbarComponent)
1487
- ], AXDataGridComponent.prototype, "toolbar", void 0);
1488
- __decorate([
1489
- ContentChild(AXDataGridRowTemplateComponent, { static: true }),
1490
- __metadata("design:type", AXDataGridRowTemplateComponent)
1491
- ], AXDataGridComponent.prototype, "rowTemplate", void 0);
1492
- __decorate([
1493
- ContentChild(AXDataGridDetailTemplateComponent, { static: true }),
1494
- __metadata("design:type", AXDataGridDetailTemplateComponent)
1495
- ], AXDataGridComponent.prototype, "gridDetailTemplate", void 0);
1496
- __decorate([
1497
- ContentChild(AXDataSourceComponent, { static: true }),
1498
- __metadata("design:type", AXDataSourceComponent)
1499
- ], AXDataGridComponent.prototype, "_contentDataSource", void 0);
1500
- __decorate([
1501
- Input(),
1502
- __metadata("design:type", AXDataSourceComponent),
1503
- __metadata("design:paramtypes", [AXDataSourceComponent])
1504
- ], AXDataGridComponent.prototype, "dataSource", null);
1505
- __decorate([
1506
- Input(),
1507
- __metadata("design:type", Boolean)
1508
- ], AXDataGridComponent.prototype, "groupHideOpenParents", void 0);
1509
- __decorate([
1510
- Output(),
1511
- __metadata("design:type", EventEmitter)
1512
- ], AXDataGridComponent.prototype, "cellClick", void 0);
1513
- __decorate([
1514
- Output(),
1515
- __metadata("design:type", EventEmitter)
1516
- ], AXDataGridComponent.prototype, "cellDbClick", void 0);
1517
- __decorate([
1518
- Output(),
1519
- __metadata("design:type", EventEmitter)
1520
- ], AXDataGridComponent.prototype, "cellFocuse", void 0);
1521
- __decorate([
1522
- Output(),
1523
- __metadata("design:type", EventEmitter)
1524
- ], AXDataGridComponent.prototype, "rowClick", void 0);
1525
- __decorate([
1526
- Output(),
1527
- __metadata("design:type", EventEmitter)
1528
- ], AXDataGridComponent.prototype, "rowDbClick", void 0);
1529
- __decorate([
1530
- Output(),
1531
- __metadata("design:type", EventEmitter)
1532
- ], AXDataGridComponent.prototype, "selectionChanged", void 0);
1533
- __decorate([
1534
- Output(),
1535
- __metadata("design:type", EventEmitter)
1536
- ], AXDataGridComponent.prototype, "rowSelectionChange", void 0);
1537
- __decorate([
1538
- Output(),
1539
- __metadata("design:type", EventEmitter)
1540
- ], AXDataGridComponent.prototype, "onRowSelectionChanged", void 0);
1541
- __decorate([
1542
- Input(),
1543
- __metadata("design:type", Function)
1544
- ], AXDataGridComponent.prototype, "rowClass", void 0);
1545
- __decorate([
1546
- Input(),
1547
- __metadata("design:type", Boolean)
1548
- ], AXDataGridComponent.prototype, "rtl", void 0);
1549
- AXDataGridComponent = __decorate([
1550
- Component({
1551
- selector: 'ax-data-grid',
1552
- 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]=\"true\"\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)\" -->",
1553
- encapsulation: ViewEncapsulation.None
1554
- // changeDetection: ChangeDetectionStrategy.OnPush
1555
- }),
1556
- __metadata("design:paramtypes", [ElementRef, ChangeDetectorRef])
1557
- ], AXDataGridComponent);
1558
- return AXDataGridComponent;
1559
- }());
1560
-
1561
- var AXDataGridFilterComponent = /** @class */ (function () {
1562
- function AXDataGridFilterComponent() {
1563
- }
1564
- AXDataGridFilterComponent = __decorate([
1565
- Component({
1566
- selector: 'ax-data-grid-filter',
1567
- template: "\n <div class='ax-grid-filter-container'>\n <ng-content></ng-content>\n <div class='btn-group' role='group'>\n <button type='button' class='btn btn-primary btn-sm'>\n <i class='fas fa-filter'></i>\n </button>\n <button type='button' class='btn btn-danger btn-sm'>\n <i class='fas fa-trash-alt'></i>\n </button>\n </div>\n </div>\n ",
1568
- encapsulation: ViewEncapsulation.None
1569
- })
1570
- ], AXDataGridFilterComponent);
1571
- return AXDataGridFilterComponent;
1572
- }());
1573
-
1574
- var AXDataGridModule = /** @class */ (function () {
1575
- function AXDataGridModule() {
1576
- }
1577
- AXDataGridModule = __decorate([
1578
- NgModule({
1579
- declarations: [
1580
- AXDataGridComponent,
1581
- AXGridTextColumn,
1582
- AXGridCheckColumn,
1583
- AXGridSelectionColumn,
1584
- AXGridDateColumn,
1585
- AXGridRowNumberColumn,
1586
- AXGridCommandColumn,
1587
- BooleanRenderer,
1588
- BooleanFilterRenderer,
1589
- TextFilterRenderer,
1590
- AXDataGridFilterComponent,
1591
- AXDataGridRowTemplateComponent,
1592
- AXDataGridDetailTemplateComponent,
1593
- AXDataGridRowTemplateRenderer,
1594
- AXDataGridDetailTemplateRenderer,
1595
- AXDataGridCellTemplateComponent,
1596
- AXDataGridCellTemplateRenderer,
1597
- AXDatePickerFilterComponent,
1598
- CommandRenderer
1599
- ],
1600
- imports: [
1601
- CommonModule,
1602
- AXCoreModule,
1603
- FormsModule,
1604
- //AgGridModule,
1605
- AXTextBoxModule,
1606
- AXCheckBoxModule,
1607
- AXSelectBoxModule,
1608
- AXDataSourceModule,
1609
- AXButtonModule,
1610
- AXDatePickerModule,
1611
- AgGridModule.withComponents([AXDatePickerFilterComponent])
1612
- ],
1613
- exports: [
1614
- AXDataGridComponent,
1615
- AXDataGridFilterComponent,
1616
- AXDataGridRowTemplateComponent,
1617
- AXDataGridDetailTemplateComponent,
1618
- AXDataGridRowTemplateRenderer,
1619
- AXDataGridDetailTemplateRenderer,
1620
- AXDataGridCellTemplateComponent,
1621
- AXDataGridCellTemplateRenderer,
1622
- AXGridTextColumn,
1623
- AXGridRowNumberColumn,
1624
- AXGridCheckColumn,
1625
- AXGridDateColumn,
1626
- AXGridSelectionColumn,
1627
- AXGridCommandColumn,
1628
- BooleanRenderer,
1629
- BooleanFilterRenderer,
1630
- CommandRenderer
1631
- ],
1632
- entryComponents: [
1633
- BooleanRenderer,
1634
- BooleanFilterRenderer,
1635
- CommandRenderer,
1636
- TextFilterRenderer,
1637
- AXDataGridRowTemplateComponent,
1638
- AXDataGridDetailTemplateComponent,
1639
- AXDataGridRowTemplateRenderer,
1640
- AXDataGridDetailTemplateRenderer,
1641
- AXDataGridCellTemplateComponent,
1642
- AXDataGridCellTemplateRenderer
1643
- ],
1644
- providers: []
1645
- })
1646
- ], AXDataGridModule);
1647
- return AXDataGridModule;
1648
- }());
1649
-
1650
- var AXDataLovPopupComponent = /** @class */ (function (_super) {
1651
- __extends(AXDataLovPopupComponent, _super);
1652
- function AXDataLovPopupComponent(cdr, ref) {
1653
- var _this = _super.call(this) || this;
1654
- _this.cdr = cdr;
1655
- _this.ref = ref;
1656
- _this.columns = [];
1657
- _this.selectedItems = [];
1658
- _this.keyField = '';
1659
- _this.allowNull = true;
1660
- _this.rtl = AXConfig.get('layout.rtl');
1661
- _this.selectedRows = [];
1662
- return _this;
1663
- }
1664
- AXDataLovPopupComponent.prototype.ngOnInit = function () {
1665
- if (this.rtl == null) {
1666
- this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1667
- }
1668
- };
1669
- AXDataLovPopupComponent.prototype.onDoneClick = function () {
1670
- if (this.selectedItems) {
1671
- this.close(this.selectedItems);
1672
- }
1673
- else {
1674
- this.close();
1675
- }
1676
- };
1677
- AXDataLovPopupComponent.prototype.rowDoubleClicked = function (e) {
1678
- var _this = this;
1679
- console.log('s', e.data.data);
1680
- if (this.selectionMode == 'single') {
1681
- this.selectedItems = [];
1682
- }
1683
- this.selectedItems = this.selectedItems.filter(function (c) { return c[_this.keyField] != e.data.data[_this.keyField]; });
1684
- this.selectedItems.push(e.data.data);
1685
- this.onDoneClick();
1686
- };
1687
- AXDataLovPopupComponent.prototype.onCancelClick = function () {
1688
- this.close();
1689
- };
1690
- AXDataLovPopupComponent.prototype.rowSelectionChange = function (e) {
1691
- var _this = this;
1692
- if (e.data.node.selected == true) {
1693
- this.selectedItems = this.selectedItems.filter(function (c) { return c[_this.keyField] != e.data.node.data[_this.keyField]; });
1694
- this.selectedItems.push(e.data.node.data);
1695
- }
1696
- else {
1697
- if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
1698
- this.selectedItems = this.selectedItems.filter(function (c) { return c[_this.keyField] != e.data.node.data[_this.keyField]; });
1699
- }
1700
- }
1701
- // console.log('ee', e)
1702
- // // console.log('e', e);
1703
- // console.log('select', e.data.node.selected);
1704
- // console.log('index', e.data.rowIndex);
1705
- };
1706
- AXDataLovPopupComponent.prototype.ngAfterViewInit = function () {
1707
- var _this = this;
1708
- this.selectedItems.forEach(function (ele) {
1709
- _this.selectedRows.push(ele);
1710
- });
1711
- this.searchBox.focus();
1712
- if (this.dataSource.onDataReceived) {
1713
- this.dataSource.onDataReceived.subscribe(function (arg) {
1714
- _this.cdr.markForCheck();
1715
- _this.cdr.detectChanges();
1716
- });
1717
- }
1718
- };
1719
- // onValueSearchChanged(e) {
1720
- // const params: AXDataSourceReadParams = {}
1721
- // params.searchText = e.value;
1722
- // // params.take = 100;
1723
- // // params.skip = 0
1724
- // this.dataSource.fetch(params);
1725
- // }
1726
- AXDataLovPopupComponent.prototype.getFooterButtons = function () {
1727
- return [
1728
- {
1729
- text: AXTranslator.get('common.confirm'),
1730
- name: 'confirm',
1731
- style: 'ax primary',
1732
- icon: 'far fa-check-circle'
1733
- },
1734
- {
1735
- text: AXTranslator.get('common.cancel'),
1736
- name: 'cancel',
1737
- style: 'ax light',
1738
- icon: 'far fa-times-circle'
1739
- }
1740
- ];
1741
- };
1742
- AXDataLovPopupComponent.prototype.onFooterButtonClick = function (e) {
1743
- if (e.name === 'confirm') {
1744
- this.onDoneClick();
1745
- }
1746
- if (e.name === 'cancel') {
1747
- this.onCancelClick();
1748
- }
1749
- };
1750
- AXDataLovPopupComponent.ctorParameters = function () { return [
1751
- { type: ChangeDetectorRef },
1752
- { type: ElementRef }
1753
- ]; };
1754
- __decorate([
1755
- ViewChild('grid', { static: true }),
1756
- __metadata("design:type", AXDataGridComponent)
1757
- ], AXDataLovPopupComponent.prototype, "grid", void 0);
1758
- __decorate([
1759
- ViewChild('searchBox'),
1760
- __metadata("design:type", AXToolbarSearchComponent)
1761
- ], AXDataLovPopupComponent.prototype, "searchBox", void 0);
1762
- AXDataLovPopupComponent = __decorate([
1763
- Component({
1764
- template: "<div style=\"height: 70vh; padding: 0.5em;\">\r\n <div style=\"height: calc(100%);\">\r\n\r\n <ax-data-grid [rtl]=\"rtl\" [suppressRowClickSelection]=\"false\" [keyField]=\"keyField\"\r\n [hasChildField]=\"hasChildField\" [selectRow]=\"selectedItems\" #grid [columns]=\"columns\"\r\n [remoteOperation]=\"true\" [selectionMode]=\"selectionMode\" (rowDbClick)=\"rowDoubleClicked($event)\"\r\n (rowSelectionChange)=\"rowSelectionChange($event)\" [dataSource]=\"dataSource\">\r\n <ax-toolbar>\r\n <ax-toolbar-search #searchBox style=\"width: 100%;\"></ax-toolbar-search>\r\n </ax-toolbar>\r\n <ax-selection-column *ngIf=\"selectionMode== 'single'? false : true\"></ax-selection-column>\r\n <!-- <ax-data-source [provideData]=\"dataSource.provideData\">\r\n </ax-data-source> -->\r\n </ax-data-grid>\r\n </div>\r\n</div>"
1765
- }),
1766
- __metadata("design:paramtypes", [ChangeDetectorRef, ElementRef])
1767
- ], AXDataLovPopupComponent);
1768
- return AXDataLovPopupComponent;
1769
- }(AXBasePopupPageComponent));
1770
-
1771
- var AXLOVComponent = /** @class */ (function (_super) {
1772
- __extends(AXLOVComponent, _super);
1773
- function AXLOVComponent(popup, ref) {
1774
- var _this = _super.call(this) || this;
1775
- _this.popup = popup;
1776
- _this.ref = ref;
1777
- _this.textField = '';
1778
- _this.allowSearch = true;
1779
- _this.valueField = '';
1780
- _this.hasChildField = 'null';
1781
- _this.allowNull = true;
1782
- _this.popupSize = 'md';
1783
- _this.selectedItems = [];
1784
- // @Input()
1785
- // selectedValues: any[] = [];
1786
- _this.readonly = false;
1787
- _this.disabled = false;
1788
- _this.chipsWidth = '';
1789
- _this.size = 'md';
1790
- _this.mode = 'single';
1791
- _this.onSelectionChange = new EventEmitter();
1792
- _this.rtl = AXConfig.get('layout.rtl');
1793
- return _this;
1794
- }
1795
- AXLOVComponent_1 = AXLOVComponent;
1796
- Object.defineProperty(AXLOVComponent.prototype, "validation", {
1797
- get: function () {
1798
- return this._validation ? this._validation : this._contentValidation;
1799
- },
1800
- set: function (v) {
1801
- this._validation = v;
1802
- },
1803
- enumerable: true,
1804
- configurable: true
1805
- });
1806
- AXLOVComponent.prototype.focus = function () {
1807
- this.selectBox.focus();
1808
- };
1809
- AXLOVComponent.prototype.refresh = function () {
1810
- this.selectBox.refresh();
1811
- };
1812
- AXLOVComponent.prototype.handleButtonClick = function () {
1813
- this.open();
1814
- };
1815
- AXLOVComponent.prototype.ngOnInit = function () {
1816
- var _this = this;
1817
- if (this.rtl == null) {
1818
- this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1819
- }
1820
- // this.selectVal = this.selectedValues;
1821
- this.onSelectionChange.subscribe(function (c) {
1822
- _this.clearValidationStyle(_this.ref.nativeElement);
1823
- });
1824
- };
1825
- AXLOVComponent.prototype.ngAfterContentInit = function () {
1826
- this.initValidation(this.ref, 'selectedItems', this.validation);
1827
- };
1828
- AXLOVComponent.prototype.handleSelectChange = function (e) {
1829
- // console.log('se' + JSON.stringify(e));
1830
- this.onSelectionChange.emit({ data: this.selectedItems, component: this, htmlElement: this.ref.nativeElement });
1831
- };
1832
- AXLOVComponent.prototype.open = function () {
1833
- var _this = this;
1834
- return new Promise(function (resolve) {
1835
- _this.selectBox.dropdown.close();
1836
- _this.popup
1837
- .open(AXDataLovPopupComponent, {
1838
- size: _this.popupSize,
1839
- // closable: false,
1840
- data: {
1841
- dataSource: _this.dataSource,
1842
- selectionMode: _this.mode,
1843
- columns: _this.columns.toArray(),
1844
- // selectedItems: this.selectedValues,
1845
- selectedItems: _this.selectedItems,
1846
- keyField: _this.valueField,
1847
- allowNull: _this.allowNull,
1848
- hasChildField: _this.hasChildField,
1849
- rtl: _this.rtl
1850
- },
1851
- title: _this.caption
1852
- // size: this.size,
1853
- })
1854
- .then(function (c) {
1855
- if (c.data) {
1856
- // this.selectedValues = [];
1857
- _this.selectedItems = [];
1858
- c.data.forEach(function (elm) {
1859
- _this.selectedItems.push(elm);
1860
- });
1861
- // this.selectedItems = c.data;
1862
- // this.selectBox.refresh();
1863
- // console.log('se' + JSON.stringify(this.selectedItems));
1864
- _this.onSelectionChange.emit({ data: _this.selectedItems, component: _this, htmlElement: _this.ref.nativeElement });
1865
- if (resolve) {
1866
- resolve(c.data);
1867
- }
1868
- }
1869
- else {
1870
- if (resolve) {
1871
- resolve(_this.selectedItems);
1872
- }
1873
- }
1874
- _this.selectBox.refresh();
1875
- });
1876
- });
1877
- };
1878
- var AXLOVComponent_1;
1879
- AXLOVComponent.ctorParameters = function () { return [
1880
- { type: AXPopupService },
1881
- { type: ElementRef }
1882
- ]; };
1883
- __decorate([
1884
- ContentChild(AXValidation, { static: true }),
1885
- __metadata("design:type", AXValidation)
1886
- ], AXLOVComponent.prototype, "_contentValidation", void 0);
1887
- __decorate([
1888
- Input(),
1889
- __metadata("design:type", AXValidation),
1890
- __metadata("design:paramtypes", [AXValidation])
1891
- ], AXLOVComponent.prototype, "validation", null);
1892
- __decorate([
1893
- ViewChild('selectBox', { static: true }),
1894
- __metadata("design:type", AXSelectBoxComponent)
1895
- ], AXLOVComponent.prototype, "selectBox", void 0);
1896
- __decorate([
1897
- ContentChild(AXDataSourceComponent, { static: true }),
1898
- __metadata("design:type", AXDataSourceComponent)
1899
- ], AXLOVComponent.prototype, "dataSource", void 0);
1900
- __decorate([
1901
- ContentChildren(AXGridDataColumn),
1902
- __metadata("design:type", QueryList)
1903
- ], AXLOVComponent.prototype, "columns", void 0);
1904
- __decorate([
1905
- ContentChild('itemTemplate', { static: true }),
1906
- __metadata("design:type", TemplateRef)
1907
- ], AXLOVComponent.prototype, "rowTemplate", void 0);
1908
- __decorate([
1909
- Input(),
1910
- __metadata("design:type", String)
1911
- ], AXLOVComponent.prototype, "textField", void 0);
1912
- __decorate([
1913
- Input(),
1914
- __metadata("design:type", Boolean)
1915
- ], AXLOVComponent.prototype, "allowSearch", void 0);
1916
- __decorate([
1917
- Input(),
1918
- __metadata("design:type", String)
1919
- ], AXLOVComponent.prototype, "valueField", void 0);
1920
- __decorate([
1921
- Input(),
1922
- __metadata("design:type", String)
1923
- ], AXLOVComponent.prototype, "hasChildField", void 0);
1924
- __decorate([
1925
- Input(),
1926
- __metadata("design:type", Boolean)
1927
- ], AXLOVComponent.prototype, "allowNull", void 0);
1928
- __decorate([
1929
- Input(),
1930
- __metadata("design:type", String)
1931
- ], AXLOVComponent.prototype, "popupSize", void 0);
1932
- __decorate([
1933
- Input(),
1934
- __metadata("design:type", Array)
1935
- ], AXLOVComponent.prototype, "selectedItems", void 0);
1936
- __decorate([
1937
- Input(),
1938
- __metadata("design:type", Boolean)
1939
- ], AXLOVComponent.prototype, "readonly", void 0);
1940
- __decorate([
1941
- Input(),
1942
- __metadata("design:type", Boolean)
1943
- ], AXLOVComponent.prototype, "disabled", void 0);
1944
- __decorate([
1945
- Input(),
1946
- __metadata("design:type", String)
1947
- ], AXLOVComponent.prototype, "chipsWidth", void 0);
1948
- __decorate([
1949
- Input(),
1950
- __metadata("design:type", String)
1951
- ], AXLOVComponent.prototype, "size", void 0);
1952
- __decorate([
1953
- Input(),
1954
- __metadata("design:type", String)
1955
- ], AXLOVComponent.prototype, "caption", void 0);
1956
- __decorate([
1957
- Input(),
1958
- __metadata("design:type", String)
1959
- ], AXLOVComponent.prototype, "mode", void 0);
1960
- __decorate([
1961
- Input(),
1962
- __metadata("design:type", String)
1963
- ], AXLOVComponent.prototype, "placeholder", void 0);
1964
- __decorate([
1965
- Output(),
1966
- __metadata("design:type", EventEmitter)
1967
- ], AXLOVComponent.prototype, "onSelectionChange", void 0);
1968
- __decorate([
1969
- Input(),
1970
- __metadata("design:type", Boolean)
1971
- ], AXLOVComponent.prototype, "rtl", void 0);
1972
- AXLOVComponent = AXLOVComponent_1 = __decorate([
1973
- Component({
1974
- selector: 'ax-lov',
1975
- template: "<ax-select-box [rowInputTemplate]=\"rowTemplate\" [rtl]=\"rtl\" [allowSearch]=\"allowSearch\" #selectBox [showDropDownButton]=\"false\" [allowNull]=\"allowNull\"\r\n [remoteOperation]=\"true\" [placeholder]=\"placeholder\" [size]=\"size\" [textField]=\"textField\" [valueField]=\"valueField\"\r\n [disabled]=\"disabled\" [mode]=\"mode\" [(selectedItems)]=\"selectedItems\"\r\n (selectionChanged)=\"handleSelectChange($event)\" [dataSource]=\"dataSource\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon=\"far fa-bars icon\" [disabled]=\"disabled\" type=\"light blank\" (click)=\"handleButtonClick()\" end\r\n [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box>\r\n\r\n\r\n<!-- <ax-select-box2 [rtl]=\"rtl\" [allowSearch]=\"allowSearch\" #selectBox [showDropDownButton]=\"false\" [allowNull]=\"allowNull\"\r\n [remoteOperation]=\"true\" [placeholder]=\"placeholder\" [size]=\"size\" [textField]=\"textField\" [valueField]=\"valueField\"\r\n [disabled]=\"disabled\" [selectionMode]=\"mode\" (onValueChanged)=\"handleSelectChange($event)\" [dataSource]=\"dataSource\"\r\n [(value)]=\"selectedItems\" selectionDataMode=\"item\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon=\"far fa-bars icon\" [disabled]=\"disabled\" type=\"primary blank\" (click)=\"handleButtonClick()\" end\r\n [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box2> -->\r\n\r\n\r\n<!-- <div class=\"ax-lov-box\" [style.display]=\"mode=='hidden' ? 'none':'unset'\">\r\n <div class=\"ax-field-set\">\r\n <div class=\"ax-field-set-wrapper\" [ngClass]=\"{ 'no-label': !label }\">\r\n <fieldset [ngClass]=\"{ 'input-focused': isFocused, 'input-error': errorText }\">\r\n <legend *ngIf=\"label\">\r\n {{ label }}\r\n </legend>\r\n </fieldset>\r\n <input type=\"text\" [(ngModel)]=\"text\" [placeholder]=\"placeholder\" (keyup)=\"handleKeyEvent($event)\"\r\n (blur)=\"handleBlurEvent($event)\" (focus)=\"handleFocusEvent($event)\" class=\"ax-text-box\" disabled />\r\n <div class=\"ax-field-set-button\">\r\n <button *ngIf=\"text && allowClear\" type=\"button\" class=\"btn btn-light\" (click)=\"clearText()\">\r\n <i class=\"far fa-times\"></i>\r\n </button>\r\n <button type=\"button\" class=\" btn btn-primary\" (click)=\"handleButtonClick($event)\">\r\n <i class=\"far fa-check-circle\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"validation-text\" *ngIf=\"errorText\">\r\n {{ errorText }}\r\n </div>\r\n\r\n</div> -->",
1976
- encapsulation: ViewEncapsulation.None,
1977
- host: { style: 'width: 100%' },
1978
- providers: [{ provide: AXValidatableComponent, useExisting: AXLOVComponent_1 }]
1979
- }),
1980
- __metadata("design:paramtypes", [AXPopupService, ElementRef])
1981
- ], AXLOVComponent);
1982
- return AXLOVComponent;
1983
- }(AXValidatableComponent));
1984
-
1985
- var AXLOVModule = /** @class */ (function () {
1986
- function AXLOVModule() {
1987
- }
1988
- AXLOVModule = __decorate([
1989
- NgModule({
1990
- declarations: [AXLOVComponent, AXDataLovPopupComponent],
1991
- imports: [CommonModule, FormsModule, AXDataGridModule, AXDataSourceModule, AXButtonModule, AXToolbarModule, AXSelectBoxModule, AXSearchBoxModule],
1992
- exports: [AXLOVComponent, AXDataLovPopupComponent],
1993
- providers: [],
1994
- entryComponents: [AXDataLovPopupComponent]
1995
- })
1996
- ], AXLOVModule);
1997
- return AXLOVModule;
1998
- }());
1999
-
2000
- /**
2001
- * Generated bundle index. Do not edit.
2002
- */
2003
-
2004
- export { AXDaagridRowClickEvent, AXDataGridCellEvent, AXDataGridCellTemplateComponent, AXDataGridCellTemplateRenderer, AXDataGridColumnsChangeEvent, AXDataGridComponent, AXDataGridDetailTemplateComponent, AXDataGridDetailTemplateRenderer, AXDataGridFilterComponent, AXDataGridModule, AXDataGridRowSelectionChangeEvent, AXDataGridRowTemplateComponent, AXDataGridRowTemplateRenderer, AXDataGridSelectionChangeEvent, AXDataLovPopupComponent, AXDatePickerFilterComponent, AXGridCheckColumn, AXGridCommandColumn, AXGridDataColumn, AXGridDateColumn, AXGridRowNumberColumn, AXGridSelectionColumn, AXGridTextColumn, AXLOVComponent, AXLOVModule, BooleanFilterRenderer, BooleanRenderer, CommandRenderer, TextFilterRenderer };
2005
- //# sourceMappingURL=acorex-data-grid.js.map