@acorex/data-grid 3.0.63 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/acorex-data-grid.d.ts +1 -0
  2. package/esm2020/acorex-data-grid.mjs +5 -0
  3. package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -0
  4. package/esm2020/lib/data-grid/columns/column.component.mjs +164 -0
  5. package/{esm2015/lib/data-grid/columns/command-column.component.js → esm2020/lib/data-grid/columns/command-column.component.mjs} +46 -35
  6. package/esm2020/lib/data-grid/columns/date-column.component.mjs +112 -0
  7. package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -0
  8. package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -0
  9. package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -0
  10. package/esm2020/lib/data-grid/datagrid.component.mjs +658 -0
  11. package/esm2020/lib/data-grid/datagrid.events.mjs +2 -0
  12. package/esm2020/lib/data-grid/datagrid.module.mjs +145 -0
  13. package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -0
  14. package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -0
  15. package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -0
  16. package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -0
  17. package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +118 -0
  18. package/esm2020/lib/data-lov/data-lov.component.mjs +163 -0
  19. package/esm2020/lib/data-lov/data-lov.module.mjs +23 -0
  20. package/esm2020/public-api.mjs +18 -0
  21. package/fesm2015/acorex-data-grid.mjs +1875 -0
  22. package/fesm2015/acorex-data-grid.mjs.map +1 -0
  23. package/fesm2020/acorex-data-grid.mjs +1875 -0
  24. package/fesm2020/acorex-data-grid.mjs.map +1 -0
  25. package/lib/data-grid/columns/check-column.component.d.ts +7 -0
  26. package/lib/data-grid/columns/column.component.d.ts +3 -0
  27. package/lib/data-grid/columns/command-column.component.d.ts +5 -0
  28. package/lib/data-grid/columns/date-column.component.d.ts +5 -0
  29. package/lib/data-grid/columns/row-number-column.component.d.ts +3 -0
  30. package/lib/data-grid/columns/selection-column.component.d.ts +3 -0
  31. package/lib/data-grid/columns/text-column.component.d.ts +5 -0
  32. package/lib/data-grid/datagrid.component.d.ts +8 -1
  33. package/lib/data-grid/datagrid.module.d.ts +20 -0
  34. package/lib/data-grid/filters/filter.component.d.ts +3 -0
  35. package/lib/data-grid/templates/cell-template.component.d.ts +5 -0
  36. package/lib/data-grid/templates/detail-template.component.d.ts +5 -0
  37. package/lib/data-grid/templates/row-template.component.d.ts +5 -0
  38. package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +3 -0
  39. package/lib/data-lov/data-lov.component.d.ts +3 -0
  40. package/lib/data-lov/data-lov.module.d.ts +10 -0
  41. package/package.json +23 -13
  42. package/acorex-data-grid.metadata.json +0 -1
  43. package/bundles/acorex-data-grid.umd.js +0 -2249
  44. package/bundles/acorex-data-grid.umd.js.map +0 -1
  45. package/bundles/acorex-data-grid.umd.min.js +0 -16
  46. package/bundles/acorex-data-grid.umd.min.js.map +0 -1
  47. package/esm2015/acorex-data-grid.js +0 -5
  48. package/esm2015/lib/data-grid/columns/check-column.component.js +0 -104
  49. package/esm2015/lib/data-grid/columns/column.component.js +0 -204
  50. package/esm2015/lib/data-grid/columns/date-column.component.js +0 -114
  51. package/esm2015/lib/data-grid/columns/row-number-column.component.js +0 -39
  52. package/esm2015/lib/data-grid/columns/selection-column.component.js +0 -48
  53. package/esm2015/lib/data-grid/columns/text-column.component.js +0 -81
  54. package/esm2015/lib/data-grid/datagrid.component.js +0 -722
  55. package/esm2015/lib/data-grid/datagrid.events.js +0 -1
  56. package/esm2015/lib/data-grid/datagrid.module.js +0 -98
  57. package/esm2015/lib/data-grid/filters/filter.component.js +0 -25
  58. package/esm2015/lib/data-grid/templates/cell-template.component.js +0 -47
  59. package/esm2015/lib/data-grid/templates/detail-template.component.js +0 -45
  60. package/esm2015/lib/data-grid/templates/row-template.component.js +0 -40
  61. package/esm2015/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -121
  62. package/esm2015/lib/data-lov/data-lov.component.js +0 -212
  63. package/esm2015/lib/data-lov/data-lov.module.js +0 -21
  64. package/esm2015/public-api.js +0 -17
  65. package/esm5/acorex-data-grid.js +0 -5
  66. package/esm5/lib/data-grid/columns/check-column.component.js +0 -102
  67. package/esm5/lib/data-grid/columns/column.component.js +0 -206
  68. package/esm5/lib/data-grid/columns/command-column.component.js +0 -98
  69. package/esm5/lib/data-grid/columns/date-column.component.js +0 -119
  70. package/esm5/lib/data-grid/columns/row-number-column.component.js +0 -42
  71. package/esm5/lib/data-grid/columns/selection-column.component.js +0 -52
  72. package/esm5/lib/data-grid/columns/text-column.component.js +0 -81
  73. package/esm5/lib/data-grid/datagrid.component.js +0 -780
  74. package/esm5/lib/data-grid/datagrid.events.js +0 -1
  75. package/esm5/lib/data-grid/datagrid.module.js +0 -101
  76. package/esm5/lib/data-grid/filters/filter.component.js +0 -16
  77. package/esm5/lib/data-grid/templates/cell-template.component.js +0 -46
  78. package/esm5/lib/data-grid/templates/detail-template.component.js +0 -49
  79. package/esm5/lib/data-grid/templates/row-template.component.js +0 -44
  80. package/esm5/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -127
  81. package/esm5/lib/data-lov/data-lov.component.js +0 -222
  82. package/esm5/lib/data-lov/data-lov.module.js +0 -24
  83. package/esm5/public-api.js +0 -17
  84. package/fesm2015/acorex-data-grid.js +0 -1927
  85. package/fesm2015/acorex-data-grid.js.map +0 -1
  86. package/fesm5/acorex-data-grid.js +0 -2005
  87. package/fesm5/acorex-data-grid.js.map +0 -1
@@ -0,0 +1,1875 @@
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.8", ngImport: i0, type: AXDataGridCellTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ AXDataGridCellTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDataGridCellTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
49
+ AXDataGridCellTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridDataColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
171
+ AXGridDataColumn.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDataGridFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
226
+ AXDataGridFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridCheckColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
276
+ AXGridCheckColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: BooleanRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
297
+ BooleanRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: BooleanFilterRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
346
+ BooleanFilterRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridCommandColumn, deps: null, target: i0.ɵɵFactoryTarget.Component });
404
+ AXGridCommandColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: CommandRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
448
+ CommandRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridDateColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
523
+ AXGridDateColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDatePickerFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
570
+ AXDatePickerFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridSelectionColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
611
+ AXGridSelectionColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridTextColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
642
+ AXGridTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: TextFilterRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
689
+ TextFilterRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXGridRowNumberColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
731
+ AXGridRowNumberColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDataGridRowTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
755
+ AXDataGridRowTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDataGridRowTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
776
+ AXDataGridRowTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDataGridDetailTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
796
+ AXDataGridDetailTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.8", ngImport: i0, type: AXDataGridDetailTemplateRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
819
+ AXDataGridDetailTemplateRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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.8", 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.selectRow = [];
876
+ this.rowGroupPanelShow = 'never';
877
+ this.loadOnInit = true;
878
+ // @Input()
879
+ // groupDefaultExpanded: number = 0;
880
+ this.keyField = 'null';
881
+ this.hasChildField = 'null';
882
+ this.columnsChange = new EventEmitter();
883
+ this._columns = [];
884
+ this.defaultColDef = {
885
+ filter: true,
886
+ floatingFilter: true
887
+ };
888
+ this.groupHideOpenParents = false;
889
+ this.cellClick = new EventEmitter();
890
+ this.cellDbClick = new EventEmitter();
891
+ this.cellFocuse = new EventEmitter();
892
+ this.rowClick = new EventEmitter();
893
+ this.rowDbClick = new EventEmitter();
894
+ this.selectionChanged = new EventEmitter();
895
+ this.rowSelectionChange = new EventEmitter();
896
+ this.onRowSelectionChanged = new EventEmitter();
897
+ this.rtl = AXConfig.get('layout.rtl');
898
+ this.isServerSideGroup = (e) => {
899
+ return e[this.hasChildField];
900
+ };
901
+ this.getColumnDefs = () => {
902
+ return this.gridApi.getColumnDefs();
903
+ };
904
+ this.getCurrentPageNumber = () => {
905
+ return {
906
+ current: this.gridApi.paginationGetCurrentPage() + 1,
907
+ total: this.gridApi.paginationGetTotalPages()
908
+ };
909
+ };
910
+ this.getServerSideGroupKey = (e) => {
911
+ return e[this.keyField];
912
+ };
913
+ this.internalGetRowClass = (p) => {
914
+ if (this.rowClass) {
915
+ if (this.rowClass instanceof Function) {
916
+ return this.rowClass({
917
+ rowIndex: p.node.rowIndex,
918
+ rowLevel: p.node.level,
919
+ data: p.data
920
+ });
921
+ }
922
+ else {
923
+ return this.rowClass;
924
+ }
925
+ }
926
+ };
927
+ this.localeText = AXTranslator.get('dataGrid');
928
+ }
929
+ get searchText() {
930
+ return this._searchText;
931
+ }
932
+ set searchText(v) {
933
+ if (v !== this._searchText) {
934
+ this._searchText = v;
935
+ if (this.gridApi) {
936
+ this.refresh();
937
+ this.gridApi.setQuickFilter(this.searchText);
938
+ }
939
+ }
940
+ }
941
+ get filter() {
942
+ return this._filter;
943
+ }
944
+ set filter(v) {
945
+ if (v !== this._filter) {
946
+ this._filter = v;
947
+ this._filter.forEach((f) => {
948
+ const fc = this.gridApi.getFilterInstance(f.field);
949
+ if (fc) {
950
+ const ff = fc.getFrameworkComponentInstance();
951
+ ff.setModel(f);
952
+ }
953
+ });
954
+ }
955
+ }
956
+ get columns() {
957
+ return this._inlineColumns ? [...this._columns, ...this._inlineColumns.toArray()] : this._columns;
958
+ }
959
+ set columns(val) {
960
+ if (val && val.length) {
961
+ let old = this._columns;
962
+ this._columns = val;
963
+ this.columnsChange.emit({ component: this, value: val, oldValue: old, htmlElement: this.ref.nativeElement });
964
+ }
965
+ }
966
+ get dataSource() {
967
+ return this._dataSource ? this._dataSource : this._contentDataSource;
968
+ }
969
+ set dataSource(v) {
970
+ this._dataSource = v;
971
+ }
972
+ getRowHeight(param) {
973
+ if (param.data && param.data.rowHeight && param.node.level == 0) {
974
+ return param.data.rowHeight;
975
+ }
976
+ else if (this.masterDetail == true && param.node.level == 1) {
977
+ return this.detailRowHeight;
978
+ }
979
+ else if (this.masterDetail == false && param.data && param.data.rowHeight) {
980
+ return param.data.rowHeight;
981
+ }
982
+ else {
983
+ return null;
984
+ }
985
+ }
986
+ calcHeight() {
987
+ if (this.toolbar) {
988
+ this.internalHeight = `calc(100% - ${40}px)`;
989
+ }
990
+ else {
991
+ this.internalHeight = '100%';
992
+ }
993
+ }
994
+ get intenalGridDataSource() {
995
+ const that = this;
996
+ return {
997
+ rowCount: null,
998
+ getRows: (params) => {
999
+ // that.gridApi.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount ? this.takeCount : params.api.paginationGetPageSize());
1000
+ that.dataSourceSuccessCallback = params.successCallback;
1001
+ const loadParams = {};
1002
+ loadParams.searchText = that.searchText;
1003
+ loadParams.skip = params.request.startRow;
1004
+ // loadParams.take = params.request.endRow - params.request.startRow;
1005
+ //// loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
1006
+ loadParams.take = params.request.endRow - params.request.startRow;
1007
+ loadParams.sort = params.request.sortModel.map((c) => {
1008
+ return {
1009
+ field: c.colId,
1010
+ dir: c.sort
1011
+ };
1012
+ });
1013
+ // loadParams.groups = params.request.rowGroupCols.map(r => r.field);
1014
+ // loadParams.groupKeys = params.request.groupKeys;
1015
+ // loadParams.data = params.parentNode.data;
1016
+ loadParams.group = {
1017
+ fields: params.request.rowGroupCols.map((r) => r.field),
1018
+ keys: params.request.groupKeys,
1019
+ parentData: params.parentNode.data
1020
+ };
1021
+ loadParams.filter = params.request.filterModel;
1022
+ debugger;
1023
+ /// setTimeout(() => {
1024
+ that.dataSource.fetch(loadParams);
1025
+ // }, 5000);
1026
+ }
1027
+ };
1028
+ }
1029
+ getMainMenuItems(e) {
1030
+ return ['pinSubMenu', 'separator'];
1031
+ }
1032
+ ngOnDestroy() {
1033
+ this.gridApi.destroy();
1034
+ }
1035
+ paginationGoToPage(number) {
1036
+ this.gridApi.paginationGoToPage(number - 1);
1037
+ }
1038
+ // todo gridOptions: GridOptions
1039
+ internalGridReady(gridOptions) {
1040
+ //// gridOptions.api.checkGridSize();
1041
+ //// this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
1042
+ // this.takeCount = this.takeCount < 20 ? 20 : this.takeCount;
1043
+ //// gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
1044
+ this.gridApi = gridOptions.api;
1045
+ this.mapColumns();
1046
+ this.calcHeight();
1047
+ if (!this.loadOnInit) {
1048
+ this.loadOnInit = true;
1049
+ return;
1050
+ }
1051
+ if (this.remoteOperation) {
1052
+ this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
1053
+ }
1054
+ if (!this.remoteOperation) {
1055
+ this.refresh();
1056
+ }
1057
+ }
1058
+ ngAfterContentInit() {
1059
+ const that = this;
1060
+ if (this.rowTemplate) {
1061
+ this.fullWidthCellRendererFramework = this.rowTemplate.renderer;
1062
+ this.fullWidthCellRendererParams = this.rowTemplate.params;
1063
+ }
1064
+ this.frameworkComponents.agDateInput = AXDatePickerFilterComponent;
1065
+ if (this.gridDetailTemplate) {
1066
+ this.masterDetail = true;
1067
+ this.detailCellRendererParams = this.gridDetailTemplate.params;
1068
+ this.detailCellRenderer = 'detailRendererFramework';
1069
+ this.frameworkComponents.detailRendererFramework = this.gridDetailTemplate.renderer;
1070
+ this.detailRowHeight = this.gridDetailTemplate.height;
1071
+ }
1072
+ this.isFullWidthCell = () => {
1073
+ return that.rowTemplate != null;
1074
+ };
1075
+ //this.cdr
1076
+ }
1077
+ ngOnInit() {
1078
+ // if (this.takeCount && this.takeCount > 0) {
1079
+ // this.paginationPageSize = this.takeCount;
1080
+ // this.paginationAutoPageSize = false;
1081
+ // this.cacheBlockSize = this.takeCount;
1082
+ // }
1083
+ if (this.selectionMode === 'single') {
1084
+ this.groupSelectsChildren = false;
1085
+ }
1086
+ if (this.keyField !== 'null' && this.hasChildField !== 'null') {
1087
+ this.rowGroupPanelShow = 'never';
1088
+ this.treeData = true;
1089
+ }
1090
+ if (this.remoteOperation) {
1091
+ this.rowModelType = 'serverSide';
1092
+ }
1093
+ //
1094
+ if (this.rtl == null) {
1095
+ this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1096
+ }
1097
+ //
1098
+ }
1099
+ gridSelectRow() {
1100
+ if (this.gridApi) {
1101
+ if (this.selectRow && this.selectRow.length > 0 && this.gridApi !== undefined && typeof this.selectRow[0] != 'object') {
1102
+ this.gridApi.forEachNode((node) => {
1103
+ if (node.data !== undefined) {
1104
+ let select = false;
1105
+ this.selectRow.forEach((id) => {
1106
+ if (node.data[this.keyField] === id) {
1107
+ select = true;
1108
+ node.setSelected(select);
1109
+ }
1110
+ });
1111
+ }
1112
+ });
1113
+ }
1114
+ else {
1115
+ this.gridApi.forEachNode((node) => {
1116
+ if (node.data !== undefined) {
1117
+ let select = false;
1118
+ this.selectRow.forEach((item) => {
1119
+ if (item.rowIndex != undefined && item.rowLevel != undefined) {
1120
+ if (node.data[this.keyField] === item.data[this.keyField]) {
1121
+ select = true;
1122
+ }
1123
+ }
1124
+ else {
1125
+ if (node.data[this.keyField] === item[this.keyField]) {
1126
+ select = true;
1127
+ }
1128
+ }
1129
+ });
1130
+ node.setSelected(select);
1131
+ }
1132
+ });
1133
+ }
1134
+ }
1135
+ }
1136
+ // ngAfterViewChecked(): void {
1137
+ // //Called after every check of the component's view. Applies to components only.
1138
+ // //Add 'implements AfterViewChecked' to the class.
1139
+ // // this.selectByValues();
1140
+ // this.enabelSelect = false;
1141
+ // }
1142
+ rebuildGrid() {
1143
+ this.mapColumns();
1144
+ setTimeout(() => {
1145
+ if (this.sizeColumnsToFit) {
1146
+ this.gridApi.sizeColumnsToFit();
1147
+ }
1148
+ }, 10);
1149
+ }
1150
+ ngAfterViewInit() {
1151
+ if (this.treeData === true) {
1152
+ this.columnDefs = this.columns.map((c) => c.render());
1153
+ const groupColumn = this.columnDefs.find((c) => c.rowGroupIndex == '0' && c.field !== '');
1154
+ this.autoGroupColumnDef = {
1155
+ headerName: groupColumn.headerName,
1156
+ width: groupColumn.width,
1157
+ cellRendererParams: { checkbox: this.showCheckBox },
1158
+ field: groupColumn.field
1159
+ };
1160
+ this.columnDefs.forEach((elm) => {
1161
+ if (elm.rowGroupIndex > -1) {
1162
+ elm.hide = true;
1163
+ }
1164
+ });
1165
+ }
1166
+ //setTimeout(() => {
1167
+ this.gridView = true;
1168
+ //});
1169
+ this.enabelSelect = true;
1170
+ this.dataSource.onDataReceived.subscribe((_data) => {
1171
+ debugger;
1172
+ const result = _data.data.result;
1173
+ this.hideLoading();
1174
+ let items;
1175
+ let totalCount;
1176
+ if (Array.isArray(result)) {
1177
+ items = result;
1178
+ totalCount = result.length;
1179
+ }
1180
+ else {
1181
+ items = result.items;
1182
+ totalCount = result.totalCount;
1183
+ }
1184
+ if (this.dataSourceSuccessCallback) {
1185
+ if (!this.loadOnInit) {
1186
+ this.dataSourceSuccessCallback([], 0);
1187
+ }
1188
+ else {
1189
+ this.dataSourceSuccessCallback(items, totalCount);
1190
+ }
1191
+ }
1192
+ else {
1193
+ if (!this.loadOnInit && this.gridApi !== undefined) {
1194
+ this.gridApi.setRowData([]);
1195
+ }
1196
+ else if (this.gridApi !== undefined) {
1197
+ this.gridApi.setRowData(items);
1198
+ }
1199
+ }
1200
+ this.gridSelectRow();
1201
+ });
1202
+ this.dataSource.onFetchStart.subscribe(() => {
1203
+ this.showLoading();
1204
+ });
1205
+ if (this.searchInput) {
1206
+ this.searchInput.onValueChanged.subscribe((c) => {
1207
+ this.searchText = c.value;
1208
+ });
1209
+ }
1210
+ //
1211
+ this.cdr.detectChanges();
1212
+ }
1213
+ mapColumns() {
1214
+ this.columnDefs = this.columns.map((c) => c.render());
1215
+ // if (this.showRowNumber) {
1216
+ // this.columnDefs.push({
1217
+ // headerName: AXConfig.get('layout.rtl') ? 'ردیف' : 'Row',
1218
+ // valueGetter: 'node.rowIndex + 1',
1219
+ // pinned: AXConfig.get('layout.rtl') ? 'right' : 'left'
1220
+ // });
1221
+ // }
1222
+ if (this.gridDetailTemplate) {
1223
+ if (this.columnDefs[0].checkboxSelection === true && this.columnDefs[0].field === '') {
1224
+ this.columnDefs[1].cellRenderer = 'agGroupCellRenderer';
1225
+ }
1226
+ else {
1227
+ this.columnDefs[0].cellRenderer = 'agGroupCellRenderer';
1228
+ }
1229
+ }
1230
+ if (this.hasChildField === 'null') {
1231
+ const groupColumn = this.columnDefs.find((c) => c.rowGroupIndex === undefined && c.field !== '');
1232
+ if (groupColumn && this.groupHideOpenParents == false) {
1233
+ this.autoGroupColumnDef = {
1234
+ headerName: groupColumn.headerName,
1235
+ width: groupColumn.width,
1236
+ cellRendererParams: { checkbox: this.showCheckBox },
1237
+ field: groupColumn.field
1238
+ };
1239
+ // groupColumn.hide = true;
1240
+ }
1241
+ }
1242
+ this.columnDefs.forEach((elm) => {
1243
+ if (elm.rowGroupIndex > -1) {
1244
+ elm.hide = true;
1245
+ }
1246
+ });
1247
+ }
1248
+ displayedColumnsChanged(e) {
1249
+ if (this.hasChildField === 'null') {
1250
+ const ee = e.columnApi.getAllDisplayedColumnGroups();
1251
+ const eee = ee.find((c) => c.colId !== 'ag-Grid-AutoColumn' && c.colId !== '0');
1252
+ if (eee && eee.colId) {
1253
+ this.autoGroupColumnDef = {
1254
+ headerName: eee.colDef.headerName,
1255
+ width: eee.colDef.width,
1256
+ cellRendererParams: { checkbox: this.showCheckBox },
1257
+ field: eee.colDef.field
1258
+ };
1259
+ }
1260
+ // eee.hide = true;
1261
+ }
1262
+ }
1263
+ refresh(route = []) {
1264
+ if (this.remoteOperation && this.gridApi !== undefined) {
1265
+ // this.gridApi.purgeServerSideCache(route);
1266
+ this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
1267
+ }
1268
+ else {
1269
+ // TODO : check fetch param
1270
+ this.dataSource.fetch(null);
1271
+ }
1272
+ }
1273
+ internalGridCellClicked(e) {
1274
+ this.cellClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
1275
+ }
1276
+ internalGridCellDoubleClicked(e) {
1277
+ this.cellDbClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
1278
+ }
1279
+ internalGridCellFocused(e) {
1280
+ this.cellFocuse.emit({ data: this.mapCellEvent(e), htmlElement: this.ref.nativeElement, component: this });
1281
+ }
1282
+ internalGridRowClicked(e) {
1283
+ if (!e.node.group) {
1284
+ this.rowClick.emit({ data: this.mapRowEvent(e), component: this, htmlElement: this.ref.nativeElement });
1285
+ }
1286
+ }
1287
+ internalGridRowDoubleClicked(e) {
1288
+ if (!e.node.group) {
1289
+ this.rowDbClick.emit({ data: this.mapRowEvent(e), htmlElement: this.ref.nativeElement, component: this });
1290
+ }
1291
+ }
1292
+ differenceOf2Arrays(array1, array2) {
1293
+ const temp = [];
1294
+ for (const i in array1) {
1295
+ if (array2.indexOf(array1[i]) === -1) {
1296
+ temp.push(array1[i]);
1297
+ }
1298
+ }
1299
+ for (const i in array2) {
1300
+ if (array1.indexOf(array2[i]) === -1) {
1301
+ temp.push(array2[i]);
1302
+ }
1303
+ }
1304
+ return temp.sort((a, b) => a - b);
1305
+ }
1306
+ rowSelectionChanged(e) {
1307
+ // this.gridApi.forEachNode((node) => {
1308
+ // if (node.data[this.keyField] == e.node.data[this.keyField]) {
1309
+ // node.setSelected(e.node.selected);
1310
+ // }
1311
+ // });
1312
+ if (e.node.selected == true) {
1313
+ this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
1314
+ this.selectRow.push(e.data);
1315
+ }
1316
+ else {
1317
+ this.selectRow = this.selectRow.filter((c) => c[this.keyField] != e.data[this.keyField]);
1318
+ }
1319
+ this.rowSelectionChange.emit({ component: this, data: e, htmlElement: this.ref.nativeElement });
1320
+ // console.log('e', e);
1321
+ // console.log('select', e.node.selected);
1322
+ // console.log('index', e.rowIndex);
1323
+ }
1324
+ internalGridSelectionChanged(e) {
1325
+ const args = { items: [] };
1326
+ const oldNodes = this.oldSelectionNodes;
1327
+ const nodes = this.gridApi.getSelectedNodes();
1328
+ nodes.forEach((i) => {
1329
+ args.items.push({
1330
+ rowLevel: i.level,
1331
+ rowIndex: i.rowIndex,
1332
+ data: i.data
1333
+ });
1334
+ });
1335
+ this.selectionChanged.emit({ data: args, component: this, htmlElement: this.ref.nativeElement });
1336
+ let action = nodes.length > oldNodes.length ? true : false;
1337
+ const node = this.differenceOf2Arrays(nodes, oldNodes);
1338
+ this.onRowSelectionChanged.emit({ component: this, selected: action, data: node, htmlElement: this.ref.nativeElement });
1339
+ this.oldSelectionNodes = nodes;
1340
+ }
1341
+ mapCellEvent(e) {
1342
+ return {
1343
+ rowLevel: 0,
1344
+ column: e.column,
1345
+ data: e.data,
1346
+ rowIndex: e.rowIndex,
1347
+ value: e.value
1348
+ };
1349
+ }
1350
+ mapRowEvent(e) {
1351
+ return {
1352
+ rowLevel: 0,
1353
+ data: e.data,
1354
+ rowIndex: e.rowIndex
1355
+ };
1356
+ }
1357
+ deselectAll() {
1358
+ this.gridApi.deselectAll();
1359
+ }
1360
+ showLoading() {
1361
+ if (this.gridApi) {
1362
+ this.gridApi.showLoadingOverlay();
1363
+ }
1364
+ }
1365
+ hideLoading() {
1366
+ if (this.gridApi) {
1367
+ this.gridApi.hideOverlay();
1368
+ }
1369
+ }
1370
+ internalGridSizeChanged(e) {
1371
+ if (e.clientWidth > 0 && e.clientHeight > 0) {
1372
+ this.performSizeColumnsToFit(e.api);
1373
+ }
1374
+ // this.refresh();
1375
+ // this.gridApi.paginationGoToFirstPage();
1376
+ }
1377
+ internalGridFirstDataRendered(e) {
1378
+ this.performSizeColumnsToFit(e.api);
1379
+ }
1380
+ performSizeColumnsToFit(api) {
1381
+ if (this.sizeColumnsToFit) {
1382
+ api.sizeColumnsToFit();
1383
+ }
1384
+ }
1385
+ }
1386
+ AXDataGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1387
+ AXDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", type: AXDataGridComponent, selector: "ax-data-grid", inputs: { remoteOperation: "remoteOperation", rowMultiSelectWithClick: "rowMultiSelectWithClick", suppressRowClickSelection: "suppressRowClickSelection", suppressCellSelection: "suppressCellSelection", sizeColumnsToFit: "sizeColumnsToFit", showCheckBox: "showCheckBox", floatingFilter: "floatingFilter", selectionMode: "selectionMode", 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]=\"true\"\r\n [rowGroupPanelShow]=\"rowGroupPanelShow\" [rowModelType]=\"rowModelType\" [detailRowHeight]=\"detailRowHeight\"\r\n [getRowHeight]=\"getRowHeight\" [paginationAutoPageSize]=\"paginationAutoPageSize\"\r\n [paginationPageSize]=\"paginationPageSize\" [suppressMenuHide]=\"true\" [frameworkComponents]=\"frameworkComponents\"\r\n [isFullWidthCell]=\"isFullWidthCell\" [rowSelection]=\"selectionMode\" [rowMultiSelectWithClick]=\"rowMultiSelectWithClick\"\r\n [fullWidthCellRendererFramework]=\"fullWidthCellRendererFramework\"\r\n [fullWidthCellRendererParams]=\"fullWidthCellRendererParams\" (cellClicked)=\"internalGridCellClicked($event)\"\r\n (cellDoubleClicked)=\"internalGridCellDoubleClicked($event)\" (cellFocused)=\"internalGridCellFocused($event)\"\r\n (rowClicked)=\"internalGridRowClicked($event)\" (selectionChanged)=\"internalGridSelectionChanged($event)\"\r\n (rowSelected)=\"rowSelectionChanged($event)\" (rowDoubleClicked)=\"internalGridRowDoubleClicked($event)\"\r\n (gridReady)=\"internalGridReady($event)\" [groupSelectsChildren]=\"groupSelectsChildren\"\r\n [suppressRowClickSelection]=\"suppressRowClickSelection\" [groupSelectsFiltered]=\"true\"\r\n [suppressCellSelection]=\"suppressCellSelection\" [autoGroupColumnDef]=\"autoGroupColumnDef\"\r\n [suppressAggFuncInHeader]=\"true\" [treeData]=\"treeData\" [animateRows]=\"true\" [isServerSideGroup]=\"isServerSideGroup\"\r\n [getServerSideGroupKey]=\"getServerSideGroupKey\" [masterDetail]=\"masterDetail\"\r\n [detailCellRendererParams]=\"detailCellRendererParams\" [detailCellRenderer]=\"detailCellRenderer\"\r\n (gridSizeChanged)=\"internalGridSizeChanged($event)\" (firstDataRendered)=\"internalGridFirstDataRendered($event)\"\r\n [localeText]=\"localeText\" [groupHideOpenParents]=\"groupHideOpenParents\" [enableRangeSelection]=\"true\"\r\n [enableRangeSelection]=\"false\" [allowContextMenuWithControlKey]=\"false\" [getMainMenuItems]=\"getMainMenuItems\">\r\n</ag-grid-angular>\r\n\r\n<!-- (displayedColumnsChanged)=\"displayedColumnsChanged($event)\" -->", 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 });
1388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataGridComponent, decorators: [{
1389
+ type: Component,
1390
+ 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]=\"true\"\r\n [rowGroupPanelShow]=\"rowGroupPanelShow\" [rowModelType]=\"rowModelType\" [detailRowHeight]=\"detailRowHeight\"\r\n [getRowHeight]=\"getRowHeight\" [paginationAutoPageSize]=\"paginationAutoPageSize\"\r\n [paginationPageSize]=\"paginationPageSize\" [suppressMenuHide]=\"true\" [frameworkComponents]=\"frameworkComponents\"\r\n [isFullWidthCell]=\"isFullWidthCell\" [rowSelection]=\"selectionMode\" [rowMultiSelectWithClick]=\"rowMultiSelectWithClick\"\r\n [fullWidthCellRendererFramework]=\"fullWidthCellRendererFramework\"\r\n [fullWidthCellRendererParams]=\"fullWidthCellRendererParams\" (cellClicked)=\"internalGridCellClicked($event)\"\r\n (cellDoubleClicked)=\"internalGridCellDoubleClicked($event)\" (cellFocused)=\"internalGridCellFocused($event)\"\r\n (rowClicked)=\"internalGridRowClicked($event)\" (selectionChanged)=\"internalGridSelectionChanged($event)\"\r\n (rowSelected)=\"rowSelectionChanged($event)\" (rowDoubleClicked)=\"internalGridRowDoubleClicked($event)\"\r\n (gridReady)=\"internalGridReady($event)\" [groupSelectsChildren]=\"groupSelectsChildren\"\r\n [suppressRowClickSelection]=\"suppressRowClickSelection\" [groupSelectsFiltered]=\"true\"\r\n [suppressCellSelection]=\"suppressCellSelection\" [autoGroupColumnDef]=\"autoGroupColumnDef\"\r\n [suppressAggFuncInHeader]=\"true\" [treeData]=\"treeData\" [animateRows]=\"true\" [isServerSideGroup]=\"isServerSideGroup\"\r\n [getServerSideGroupKey]=\"getServerSideGroupKey\" [masterDetail]=\"masterDetail\"\r\n [detailCellRendererParams]=\"detailCellRendererParams\" [detailCellRenderer]=\"detailCellRenderer\"\r\n (gridSizeChanged)=\"internalGridSizeChanged($event)\" (firstDataRendered)=\"internalGridFirstDataRendered($event)\"\r\n [localeText]=\"localeText\" [groupHideOpenParents]=\"groupHideOpenParents\" [enableRangeSelection]=\"true\"\r\n [enableRangeSelection]=\"false\" [allowContextMenuWithControlKey]=\"false\" [getMainMenuItems]=\"getMainMenuItems\">\r\n</ag-grid-angular>\r\n\r\n<!-- (displayedColumnsChanged)=\"displayedColumnsChanged($event)\" -->" }]
1391
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { remoteOperation: [{
1392
+ type: Input
1393
+ }], rowMultiSelectWithClick: [{
1394
+ type: Input
1395
+ }], suppressRowClickSelection: [{
1396
+ type: Input
1397
+ }], suppressCellSelection: [{
1398
+ type: Input
1399
+ }], sizeColumnsToFit: [{
1400
+ type: Input
1401
+ }], showCheckBox: [{
1402
+ type: Input
1403
+ }], floatingFilter: [{
1404
+ type: Input
1405
+ }], selectionMode: [{
1406
+ type: Input
1407
+ }], selectRow: [{
1408
+ type: Input
1409
+ }], rowGroupPanelShow: [{
1410
+ type: Input
1411
+ }], loadOnInit: [{
1412
+ type: Input
1413
+ }], keyField: [{
1414
+ type: Input
1415
+ }], hasChildField: [{
1416
+ type: Input
1417
+ }], searchText: [{
1418
+ type: Input
1419
+ }], filter: [{
1420
+ type: Input
1421
+ }], _inlineColumns: [{
1422
+ type: ContentChildren,
1423
+ args: [AXGridDataColumn]
1424
+ }], columnsChange: [{
1425
+ type: Output
1426
+ }], columns: [{
1427
+ type: Input
1428
+ }], rowHeight: [{
1429
+ type: Input
1430
+ }], searchInput: [{
1431
+ type: ContentChild,
1432
+ args: [AXToolbarSearchComponent, { static: true }]
1433
+ }], toolbar: [{
1434
+ type: ContentChild,
1435
+ args: [AXToolbarComponent, { static: true }]
1436
+ }], rowTemplate: [{
1437
+ type: ContentChild,
1438
+ args: [AXDataGridRowTemplateComponent, { static: true }]
1439
+ }], gridDetailTemplate: [{
1440
+ type: ContentChild,
1441
+ args: [AXDataGridDetailTemplateComponent, { static: true }]
1442
+ }], _contentDataSource: [{
1443
+ type: ContentChild,
1444
+ args: [AXDataSourceComponent, { static: true }]
1445
+ }], dataSource: [{
1446
+ type: Input
1447
+ }], groupHideOpenParents: [{
1448
+ type: Input
1449
+ }], cellClick: [{
1450
+ type: Output
1451
+ }], cellDbClick: [{
1452
+ type: Output
1453
+ }], cellFocuse: [{
1454
+ type: Output
1455
+ }], rowClick: [{
1456
+ type: Output
1457
+ }], rowDbClick: [{
1458
+ type: Output
1459
+ }], selectionChanged: [{
1460
+ type: Output
1461
+ }], rowSelectionChange: [{
1462
+ type: Output
1463
+ }], onRowSelectionChanged: [{
1464
+ type: Output
1465
+ }], rowClass: [{
1466
+ type: Input
1467
+ }], rtl: [{
1468
+ type: Input
1469
+ }] } });
1470
+
1471
+ class AXDataGridModule {
1472
+ }
1473
+ AXDataGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1474
+ AXDataGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataGridModule, declarations: [AXDataGridComponent,
1475
+ AXGridTextColumn,
1476
+ AXGridCheckColumn,
1477
+ AXGridSelectionColumn,
1478
+ AXGridDateColumn,
1479
+ AXGridRowNumberColumn,
1480
+ AXGridCommandColumn,
1481
+ BooleanRenderer,
1482
+ BooleanFilterRenderer,
1483
+ TextFilterRenderer,
1484
+ AXDataGridFilterComponent,
1485
+ AXDataGridRowTemplateComponent,
1486
+ AXDataGridDetailTemplateComponent,
1487
+ AXDataGridRowTemplateRenderer,
1488
+ AXDataGridDetailTemplateRenderer,
1489
+ AXDataGridCellTemplateComponent,
1490
+ AXDataGridCellTemplateRenderer,
1491
+ AXDatePickerFilterComponent,
1492
+ CommandRenderer], imports: [CommonModule,
1493
+ AXCoreModule,
1494
+ FormsModule,
1495
+ //AgGridModule,
1496
+ AXTextBoxModule,
1497
+ AXCheckBoxModule,
1498
+ AXSelectBoxModule,
1499
+ AXDataSourceModule,
1500
+ AXButtonModule,
1501
+ AXDatePickerModule, i1$2.AgGridModule], exports: [AXDataGridComponent,
1502
+ AXDataGridFilterComponent,
1503
+ AXDataGridRowTemplateComponent,
1504
+ AXDataGridDetailTemplateComponent,
1505
+ AXDataGridRowTemplateRenderer,
1506
+ AXDataGridDetailTemplateRenderer,
1507
+ AXDataGridCellTemplateComponent,
1508
+ AXDataGridCellTemplateRenderer,
1509
+ AXGridTextColumn,
1510
+ AXGridRowNumberColumn,
1511
+ AXGridCheckColumn,
1512
+ AXGridDateColumn,
1513
+ AXGridSelectionColumn,
1514
+ AXGridCommandColumn,
1515
+ BooleanRenderer,
1516
+ BooleanFilterRenderer,
1517
+ CommandRenderer] });
1518
+ AXDataGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataGridModule, providers: [], imports: [[
1519
+ CommonModule,
1520
+ AXCoreModule,
1521
+ FormsModule,
1522
+ //AgGridModule,
1523
+ AXTextBoxModule,
1524
+ AXCheckBoxModule,
1525
+ AXSelectBoxModule,
1526
+ AXDataSourceModule,
1527
+ AXButtonModule,
1528
+ AXDatePickerModule,
1529
+ AgGridModule.withComponents([AXDatePickerFilterComponent])
1530
+ ]] });
1531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataGridModule, decorators: [{
1532
+ type: NgModule,
1533
+ args: [{
1534
+ declarations: [
1535
+ AXDataGridComponent,
1536
+ AXGridTextColumn,
1537
+ AXGridCheckColumn,
1538
+ AXGridSelectionColumn,
1539
+ AXGridDateColumn,
1540
+ AXGridRowNumberColumn,
1541
+ AXGridCommandColumn,
1542
+ BooleanRenderer,
1543
+ BooleanFilterRenderer,
1544
+ TextFilterRenderer,
1545
+ AXDataGridFilterComponent,
1546
+ AXDataGridRowTemplateComponent,
1547
+ AXDataGridDetailTemplateComponent,
1548
+ AXDataGridRowTemplateRenderer,
1549
+ AXDataGridDetailTemplateRenderer,
1550
+ AXDataGridCellTemplateComponent,
1551
+ AXDataGridCellTemplateRenderer,
1552
+ AXDatePickerFilterComponent,
1553
+ CommandRenderer
1554
+ ],
1555
+ imports: [
1556
+ CommonModule,
1557
+ AXCoreModule,
1558
+ FormsModule,
1559
+ //AgGridModule,
1560
+ AXTextBoxModule,
1561
+ AXCheckBoxModule,
1562
+ AXSelectBoxModule,
1563
+ AXDataSourceModule,
1564
+ AXButtonModule,
1565
+ AXDatePickerModule,
1566
+ AgGridModule.withComponents([AXDatePickerFilterComponent])
1567
+ ],
1568
+ exports: [
1569
+ AXDataGridComponent,
1570
+ AXDataGridFilterComponent,
1571
+ AXDataGridRowTemplateComponent,
1572
+ AXDataGridDetailTemplateComponent,
1573
+ AXDataGridRowTemplateRenderer,
1574
+ AXDataGridDetailTemplateRenderer,
1575
+ AXDataGridCellTemplateComponent,
1576
+ AXDataGridCellTemplateRenderer,
1577
+ AXGridTextColumn,
1578
+ AXGridRowNumberColumn,
1579
+ AXGridCheckColumn,
1580
+ AXGridDateColumn,
1581
+ AXGridSelectionColumn,
1582
+ AXGridCommandColumn,
1583
+ BooleanRenderer,
1584
+ BooleanFilterRenderer,
1585
+ CommandRenderer
1586
+ ],
1587
+ providers: []
1588
+ }]
1589
+ }] });
1590
+
1591
+ class AXDataLovPopupComponent extends AXBasePopupPageComponent {
1592
+ constructor(cdr, ref) {
1593
+ super();
1594
+ this.cdr = cdr;
1595
+ this.ref = ref;
1596
+ this.columns = [];
1597
+ this.selectedItems = [];
1598
+ this.keyField = '';
1599
+ this.allowNull = true;
1600
+ this.rtl = AXConfig.get('layout.rtl');
1601
+ this.selectedRows = [];
1602
+ }
1603
+ ngOnInit() {
1604
+ if (this.rtl == null) {
1605
+ this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1606
+ }
1607
+ }
1608
+ onDoneClick() {
1609
+ if (this.selectedItems) {
1610
+ this.close(this.selectedItems);
1611
+ }
1612
+ else {
1613
+ this.close();
1614
+ }
1615
+ }
1616
+ rowDoubleClicked(e) {
1617
+ console.log('s', e.data.data);
1618
+ if (this.selectionMode == 'single') {
1619
+ this.selectedItems = [];
1620
+ }
1621
+ this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.data[this.keyField]);
1622
+ this.selectedItems.push(e.data.data);
1623
+ this.onDoneClick();
1624
+ }
1625
+ onCancelClick() {
1626
+ this.close();
1627
+ }
1628
+ rowSelectionChange(e) {
1629
+ if (e.data.node.selected == true) {
1630
+ this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.node.data[this.keyField]);
1631
+ this.selectedItems.push(e.data.node.data);
1632
+ }
1633
+ else {
1634
+ if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
1635
+ this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] != e.data.node.data[this.keyField]);
1636
+ }
1637
+ }
1638
+ // console.log('ee', e)
1639
+ // // console.log('e', e);
1640
+ // console.log('select', e.data.node.selected);
1641
+ // console.log('index', e.data.rowIndex);
1642
+ }
1643
+ ngAfterViewInit() {
1644
+ this.selectedItems.forEach((ele) => {
1645
+ this.selectedRows.push(ele);
1646
+ });
1647
+ this.searchBox.focus();
1648
+ if (this.dataSource.onDataReceived) {
1649
+ this.dataSource.onDataReceived.subscribe((arg) => {
1650
+ this.cdr.markForCheck();
1651
+ this.cdr.detectChanges();
1652
+ });
1653
+ }
1654
+ }
1655
+ // onValueSearchChanged(e) {
1656
+ // const params: AXDataSourceReadParams = {}
1657
+ // params.searchText = e.value;
1658
+ // // params.take = 100;
1659
+ // // params.skip = 0
1660
+ // this.dataSource.fetch(params);
1661
+ // }
1662
+ getFooterButtons() {
1663
+ return [
1664
+ {
1665
+ text: AXTranslator.get('common.confirm'),
1666
+ name: 'confirm',
1667
+ style: 'ax primary',
1668
+ icon: 'far fa-check-circle'
1669
+ },
1670
+ {
1671
+ text: AXTranslator.get('common.cancel'),
1672
+ name: 'cancel',
1673
+ style: 'ax light',
1674
+ icon: 'far fa-times-circle'
1675
+ }
1676
+ ];
1677
+ }
1678
+ onFooterButtonClick(e) {
1679
+ if (e.name === 'confirm') {
1680
+ this.onDoneClick();
1681
+ }
1682
+ if (e.name === 'cancel') {
1683
+ this.onCancelClick();
1684
+ }
1685
+ }
1686
+ }
1687
+ AXDataLovPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataLovPopupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1688
+ AXDataLovPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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", "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"] }] });
1689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXDataLovPopupComponent, decorators: [{
1690
+ type: Component,
1691
+ 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>" }]
1692
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { grid: [{
1693
+ type: ViewChild,
1694
+ args: ['grid', { static: true }]
1695
+ }], searchBox: [{
1696
+ type: ViewChild,
1697
+ args: ['searchBox']
1698
+ }] } });
1699
+
1700
+ class AXLOVComponent extends AXValidatableComponent {
1701
+ constructor(popup, ref) {
1702
+ super();
1703
+ this.popup = popup;
1704
+ this.ref = ref;
1705
+ this.textField = '';
1706
+ this.allowSearch = true;
1707
+ this.valueField = '';
1708
+ this.hasChildField = 'null';
1709
+ this.allowNull = true;
1710
+ this.popupSize = 'md';
1711
+ this.selectedItems = [];
1712
+ // @Input()
1713
+ // selectedValues: any[] = [];
1714
+ this.readonly = false;
1715
+ this.disabled = false;
1716
+ this.chipsWidth = '';
1717
+ this.size = 'md';
1718
+ this.mode = 'single';
1719
+ this.onSelectionChange = new EventEmitter();
1720
+ this.rtl = AXConfig.get('layout.rtl');
1721
+ }
1722
+ get validation() {
1723
+ return this._validation ? this._validation : this._contentValidation;
1724
+ }
1725
+ set validation(v) {
1726
+ this._validation = v;
1727
+ }
1728
+ focus() {
1729
+ this.selectBox.focus();
1730
+ }
1731
+ refresh() {
1732
+ this.selectBox.refresh();
1733
+ }
1734
+ handleButtonClick() {
1735
+ this.open();
1736
+ }
1737
+ ngOnInit() {
1738
+ if (this.rtl == null) {
1739
+ this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
1740
+ }
1741
+ // this.selectVal = this.selectedValues;
1742
+ this.onSelectionChange.subscribe((c) => {
1743
+ this.clearValidationStyle(this.ref.nativeElement);
1744
+ });
1745
+ }
1746
+ ngAfterContentInit() {
1747
+ this.initValidation(this.ref, 'selectedItems', this.validation);
1748
+ }
1749
+ handleSelectChange(e) {
1750
+ // console.log('se' + JSON.stringify(e));
1751
+ this.onSelectionChange.emit({ data: this.selectedItems, component: this, htmlElement: this.ref.nativeElement });
1752
+ }
1753
+ open() {
1754
+ return new Promise((resolve) => {
1755
+ this.selectBox.dropdown.close();
1756
+ this.popup
1757
+ .open(AXDataLovPopupComponent, {
1758
+ size: this.popupSize,
1759
+ // closable: false,
1760
+ data: {
1761
+ dataSource: this.dataSource,
1762
+ selectionMode: this.mode,
1763
+ columns: this.columns.toArray(),
1764
+ // selectedItems: this.selectedValues,
1765
+ selectedItems: this.selectedItems,
1766
+ keyField: this.valueField,
1767
+ allowNull: this.allowNull,
1768
+ hasChildField: this.hasChildField,
1769
+ rtl: this.rtl
1770
+ },
1771
+ title: this.caption
1772
+ // size: this.size,
1773
+ })
1774
+ .then((c) => {
1775
+ if (c.data) {
1776
+ // this.selectedValues = [];
1777
+ this.selectedItems = [];
1778
+ c.data.forEach((elm) => {
1779
+ this.selectedItems.push(elm);
1780
+ });
1781
+ // this.selectedItems = c.data;
1782
+ // this.selectBox.refresh();
1783
+ // console.log('se' + JSON.stringify(this.selectedItems));
1784
+ this.onSelectionChange.emit({ data: this.selectedItems, component: this, htmlElement: this.ref.nativeElement });
1785
+ if (resolve) {
1786
+ resolve(c.data);
1787
+ }
1788
+ }
1789
+ else {
1790
+ if (resolve) {
1791
+ resolve(this.selectedItems);
1792
+ }
1793
+ }
1794
+ this.selectBox.refresh();
1795
+ });
1796
+ });
1797
+ }
1798
+ }
1799
+ AXLOVComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXLOVComponent, deps: [{ token: i1$1.AXPopupService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1800
+ AXLOVComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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 });
1801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXLOVComponent, decorators: [{
1802
+ type: Component,
1803
+ 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> -->" }]
1804
+ }], ctorParameters: function () { return [{ type: i1$1.AXPopupService }, { type: i0.ElementRef }]; }, propDecorators: { _contentValidation: [{
1805
+ type: ContentChild,
1806
+ args: [AXValidation, { static: true }]
1807
+ }], validation: [{
1808
+ type: Input
1809
+ }], selectBox: [{
1810
+ type: ViewChild,
1811
+ args: ['selectBox', { static: true }]
1812
+ }], dataSource: [{
1813
+ type: ContentChild,
1814
+ args: [AXDataSourceComponent, { static: true }]
1815
+ }], columns: [{
1816
+ type: ContentChildren,
1817
+ args: [AXGridDataColumn]
1818
+ }], rowTemplate: [{
1819
+ type: ContentChild,
1820
+ args: ['itemTemplate', { static: true }]
1821
+ }], textField: [{
1822
+ type: Input
1823
+ }], allowSearch: [{
1824
+ type: Input
1825
+ }], valueField: [{
1826
+ type: Input
1827
+ }], hasChildField: [{
1828
+ type: Input
1829
+ }], allowNull: [{
1830
+ type: Input
1831
+ }], popupSize: [{
1832
+ type: Input
1833
+ }], selectedItems: [{
1834
+ type: Input
1835
+ }], readonly: [{
1836
+ type: Input
1837
+ }], disabled: [{
1838
+ type: Input
1839
+ }], chipsWidth: [{
1840
+ type: Input
1841
+ }], size: [{
1842
+ type: Input
1843
+ }], caption: [{
1844
+ type: Input
1845
+ }], mode: [{
1846
+ type: Input
1847
+ }], placeholder: [{
1848
+ type: Input
1849
+ }], onSelectionChange: [{
1850
+ type: Output
1851
+ }], rtl: [{
1852
+ type: Input
1853
+ }] } });
1854
+
1855
+ class AXLOVModule {
1856
+ }
1857
+ AXLOVModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXLOVModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1858
+ AXLOVModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXLOVModule, declarations: [AXLOVComponent, AXDataLovPopupComponent], imports: [CommonModule, FormsModule, AXDataGridModule, AXDataSourceModule, AXButtonModule, AXToolbarModule, AXSelectBoxModule, AXSearchBoxModule], exports: [AXLOVComponent, AXDataLovPopupComponent] });
1859
+ AXLOVModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXLOVModule, providers: [], imports: [[CommonModule, FormsModule, AXDataGridModule, AXDataSourceModule, AXButtonModule, AXToolbarModule, AXSelectBoxModule, AXSearchBoxModule]] });
1860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: AXLOVModule, decorators: [{
1861
+ type: NgModule,
1862
+ args: [{
1863
+ declarations: [AXLOVComponent, AXDataLovPopupComponent],
1864
+ imports: [CommonModule, FormsModule, AXDataGridModule, AXDataSourceModule, AXButtonModule, AXToolbarModule, AXSelectBoxModule, AXSearchBoxModule],
1865
+ exports: [AXLOVComponent, AXDataLovPopupComponent],
1866
+ providers: []
1867
+ }]
1868
+ }] });
1869
+
1870
+ /**
1871
+ * Generated bundle index. Do not edit.
1872
+ */
1873
+
1874
+ 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 };
1875
+ //# sourceMappingURL=acorex-data-grid.mjs.map