@acorex/data-grid 4.1.4 → 4.2.0

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