@acorex/data-grid 16.0.14 → 16.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/index.mjs +3 -2
- package/esm2022/lib/data-grid/columns/column-groups.component.mjs +33 -0
- package/esm2022/lib/data-grid/columns/column.component.mjs +8 -2
- package/esm2022/lib/data-grid/datagrid.component.mjs +2 -5
- package/esm2022/lib/data-grid/datagrid.module.mjs +25 -25
- package/fesm2022/acorex-data-grid.mjs +50 -13
- package/fesm2022/acorex-data-grid.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/lib/data-grid/columns/column-groups.component.d.ts +9 -0
- package/lib/data-grid/columns/column.component.d.ts +2 -1
- package/lib/data-grid/datagrid.module.d.ts +7 -6
- package/package.json +1 -1
@@ -1,26 +1,22 @@
|
|
1
|
-
import {
|
1
|
+
import { AXButtonModule, AXCheckBoxModule, AXDataSourceModule, AXDatePickerModule, AXSelectBoxModule, AXTextBoxModule, } from '@acorex/components';
|
2
|
+
import { AXCoreModule } from '@acorex/core';
|
2
3
|
import { CommonModule } from '@angular/common';
|
3
|
-
import {
|
4
|
+
import { NgModule } from '@angular/core';
|
4
5
|
import { FormsModule } from '@angular/forms';
|
5
6
|
import { AgGridModule } from 'ag-grid-angular';
|
6
|
-
import { AXDataSourceModule } from '@acorex/components';
|
7
|
-
import { AXGridTextColumn, TextFilterRenderer } from './columns/text-column.component';
|
8
|
-
import { AXGridCheckColumn, BooleanRenderer, BooleanFilterRenderer } from './columns/check-column.component';
|
9
|
-
import { AXCoreModule } from '@acorex/core';
|
10
|
-
import { AXGridSelectionColumn } from './columns/selection-column.component';
|
11
|
-
import { CommandRenderer, AXGridCommandColumn } from './columns/command-column.component';
|
12
|
-
import { AXDataGridFilterComponent } from './filters/filter.component';
|
13
|
-
import { AXGridDateColumn, AXDatePickerFilterComponent } from './columns/date-column.component';
|
14
|
-
import { AXDataGridRowTemplateComponent, AXDataGridRowTemplateRenderer } from './templates/row-template.component';
|
15
|
-
import { AXDataGridCellTemplateComponent, AXDataGridCellTemplateRenderer } from './templates/cell-template.component';
|
16
|
-
import { AXDataGridDetailTemplateComponent, AXDataGridDetailTemplateRenderer } from './templates/detail-template.component';
|
17
|
-
import { AXTextBoxModule } from '@acorex/components';
|
18
|
-
import { AXCheckBoxModule } from '@acorex/components';
|
19
|
-
import { AXSelectBoxModule } from '@acorex/components';
|
20
|
-
import { AXButtonModule } from '@acorex/components';
|
21
|
-
import { AXDatePickerModule } from '@acorex/components';
|
22
7
|
import 'ag-grid-enterprise';
|
8
|
+
import { AXGridCheckColumn, BooleanFilterRenderer, BooleanRenderer, } from './columns/check-column.component';
|
9
|
+
import { AXColumnGroupComponent } from './columns/column-groups.component';
|
10
|
+
import { AXGridCommandColumn, CommandRenderer, } from './columns/command-column.component';
|
11
|
+
import { AXDatePickerFilterComponent, AXGridDateColumn, } from './columns/date-column.component';
|
23
12
|
import { AXGridRowNumberColumn } from './columns/row-number-column.component';
|
13
|
+
import { AXGridSelectionColumn } from './columns/selection-column.component';
|
14
|
+
import { AXGridTextColumn, TextFilterRenderer, } from './columns/text-column.component';
|
15
|
+
import { AXDataGridComponent } from './datagrid.component';
|
16
|
+
import { AXDataGridFilterComponent } from './filters/filter.component';
|
17
|
+
import { AXDataGridCellTemplateComponent, AXDataGridCellTemplateRenderer, } from './templates/cell-template.component';
|
18
|
+
import { AXDataGridDetailTemplateComponent, AXDataGridDetailTemplateRenderer, } from './templates/detail-template.component';
|
19
|
+
import { AXDataGridRowTemplateComponent, AXDataGridRowTemplateRenderer, } from './templates/row-template.component';
|
24
20
|
import * as i0 from "@angular/core";
|
25
21
|
export class AXDataGridModule {
|
26
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXDataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -42,7 +38,8 @@ export class AXDataGridModule {
|
|
42
38
|
AXDataGridCellTemplateComponent,
|
43
39
|
AXDataGridCellTemplateRenderer,
|
44
40
|
AXDatePickerFilterComponent,
|
45
|
-
CommandRenderer
|
41
|
+
CommandRenderer,
|
42
|
+
AXColumnGroupComponent], imports: [CommonModule,
|
46
43
|
AXCoreModule,
|
47
44
|
FormsModule,
|
48
45
|
//AgGridModule,
|
@@ -52,7 +49,8 @@ export class AXDataGridModule {
|
|
52
49
|
AXDataSourceModule,
|
53
50
|
AXButtonModule,
|
54
51
|
AXDatePickerModule,
|
55
|
-
AgGridModule], exports: [
|
52
|
+
AgGridModule], exports: [AXColumnGroupComponent,
|
53
|
+
AXDataGridComponent,
|
56
54
|
AXDataGridFilterComponent,
|
57
55
|
AXDataGridRowTemplateComponent,
|
58
56
|
AXDataGridDetailTemplateComponent,
|
@@ -103,7 +101,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
103
101
|
AXDataGridCellTemplateComponent,
|
104
102
|
AXDataGridCellTemplateRenderer,
|
105
103
|
AXDatePickerFilterComponent,
|
106
|
-
CommandRenderer
|
104
|
+
CommandRenderer,
|
105
|
+
AXColumnGroupComponent,
|
107
106
|
],
|
108
107
|
imports: [
|
109
108
|
CommonModule,
|
@@ -116,9 +115,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
116
115
|
AXDataSourceModule,
|
117
116
|
AXButtonModule,
|
118
117
|
AXDatePickerModule,
|
119
|
-
AgGridModule
|
118
|
+
AgGridModule,
|
120
119
|
],
|
121
120
|
exports: [
|
121
|
+
AXColumnGroupComponent,
|
122
122
|
AXDataGridComponent,
|
123
123
|
AXDataGridFilterComponent,
|
124
124
|
AXDataGridRowTemplateComponent,
|
@@ -135,9 +135,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
135
135
|
AXGridCommandColumn,
|
136
136
|
BooleanRenderer,
|
137
137
|
BooleanFilterRenderer,
|
138
|
-
CommandRenderer
|
138
|
+
CommandRenderer,
|
139
139
|
],
|
140
|
-
providers: []
|
140
|
+
providers: [],
|
141
141
|
}]
|
142
142
|
}] });
|
143
|
-
//# sourceMappingURL=data:application/json;base64,
|
143
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWdyaWQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kYXRhLWdyaWQvc3JjL2xpYi9kYXRhLWdyaWQvZGF0YWdyaWQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxjQUFjLEVBQ2QsZ0JBQWdCLEVBQ2hCLGtCQUFrQixFQUNsQixrQkFBa0IsRUFDbEIsaUJBQWlCLEVBQ2pCLGVBQWUsR0FDaEIsTUFBTSxvQkFBb0IsQ0FBQztBQUM1QixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQzVDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxvQkFBb0IsQ0FBQztBQUM1QixPQUFPLEVBQ0wsaUJBQWlCLEVBQ2pCLHFCQUFxQixFQUNyQixlQUFlLEdBQ2hCLE1BQU0sa0NBQWtDLENBQUM7QUFDMUMsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDM0UsT0FBTyxFQUNMLG1CQUFtQixFQUNuQixlQUFlLEdBQ2hCLE1BQU0sb0NBQW9DLENBQUM7QUFDNUMsT0FBTyxFQUNMLDJCQUEyQixFQUM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RGF0YUdyaWRSb3dUZW1wbGF0ZVJlbmRlcmVyLFxuICAgIEFYRGF0YUdyaWREZXRhaWxUZW1wbGF0ZVJlbmRlcmVyLFxuICAgIEFYRGF0YUdyaWRDZWxsVGVtcGxhdGVDb21wb25lbnQsXG4gICAgQVhEYXRhR3JpZENlbGxUZW1wbGF0ZVJlbmRlcmVyLFxuICAgIEFYR3JpZFRleHRDb2x1bW4sXG4gICAgQVhHcmlkUm93TnVtYmVyQ29sdW1uLFxuICAgIEFYR3JpZENoZWNrQ29sdW1uLFxuICAgIEFYR3JpZERhdGVDb2x1bW4sXG4gICAgQVhHcmlkU2VsZWN0aW9uQ29sdW1uLFxuICAgIEFYR3JpZENvbW1hbmRDb2x1bW4sXG4gICAgQm9vbGVhblJlbmRlcmVyLFxuICAgIEJvb2xlYW5GaWx0ZXJSZW5kZXJlcixcbiAgICBDb21tYW5kUmVuZGVyZXIsXG4gIF0sXG4gIHByb3ZpZGVyczogW10sXG59KVxuZXhwb3J0IGNsYXNzIEFYRGF0YUdyaWRNb2R1bGUge31cbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { TemplateRef, Component, ContentChild, Directive, Input, ViewEncapsulation, ChangeDetectionStrategy, ViewContainerRef, ViewChild, EventEmitter, Output, ElementRef,
|
2
|
+
import { TemplateRef, Component, ContentChild, Directive, Input, ViewEncapsulation, ChangeDetectionStrategy, ViewContainerRef, ViewChild, ContentChildren, EventEmitter, Output, ElementRef, NgModule } from '@angular/core';
|
3
3
|
import { AXConfig, AXDateTime, AXTranslator, AXCoreModule } from '@acorex/core';
|
4
4
|
import * as i1 from '@angular/common';
|
5
5
|
import { CommonModule } from '@angular/common';
|
@@ -89,6 +89,7 @@ class AXGridDataColumn {
|
|
89
89
|
resizable = true;
|
90
90
|
menuColumnDisable = false;
|
91
91
|
menuItemDisable = false;
|
92
|
+
columnGroupShow;
|
92
93
|
wrapText = false;
|
93
94
|
constructor() { }
|
94
95
|
render() {
|
@@ -173,6 +174,9 @@ class AXGridDataColumn {
|
|
173
174
|
col.cellRendererFramework = this.cellTemplate.renderer;
|
174
175
|
col.cellRendererParams = this.cellTemplate.params;
|
175
176
|
}
|
177
|
+
if (this.columnGroupShow) {
|
178
|
+
col.columnGroupShow = this.columnGroupShow;
|
179
|
+
}
|
176
180
|
if (this.checkbox) {
|
177
181
|
col.checkboxSelection = (params) => {
|
178
182
|
return true;
|
@@ -182,7 +186,7 @@ class AXGridDataColumn {
|
|
182
186
|
return col;
|
183
187
|
}
|
184
188
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXGridDataColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
185
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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", wrapText: "wrapText" }, queries: [{ propertyName: "cellTemplate", first: true, predicate: AXDataGridCellTemplateComponent, descendants: true }], ngImport: i0 });
|
189
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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", columnGroupShow: "columnGroupShow", wrapText: "wrapText" }, queries: [{ propertyName: "cellTemplate", first: true, predicate: AXDataGridCellTemplateComponent, descendants: true }], ngImport: i0 });
|
186
190
|
}
|
187
191
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXGridDataColumn, decorators: [{
|
188
192
|
type: Directive
|
@@ -233,6 +237,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
233
237
|
type: Input
|
234
238
|
}], menuItemDisable: [{
|
235
239
|
type: Input
|
240
|
+
}], columnGroupShow: [{
|
241
|
+
type: Input
|
236
242
|
}], wrapText: [{
|
237
243
|
type: Input
|
238
244
|
}] } });
|
@@ -378,6 +384,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
378
384
|
args: ['input', { static: true, read: ViewContainerRef }]
|
379
385
|
}] } });
|
380
386
|
|
387
|
+
class AXColumnGroupComponent extends AXGridDataColumn {
|
388
|
+
columns;
|
389
|
+
render() {
|
390
|
+
const col = super.render();
|
391
|
+
col.children = [];
|
392
|
+
this.columns.forEach((elm) => {
|
393
|
+
col.children.push(elm.render());
|
394
|
+
});
|
395
|
+
return col;
|
396
|
+
}
|
397
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXColumnGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
398
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AXColumnGroupComponent, selector: "ax-column-group", providers: [
|
399
|
+
{ provide: AXGridDataColumn, useExisting: AXColumnGroupComponent },
|
400
|
+
], queries: [{ propertyName: "columns", predicate: AXGridDataColumn }], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
401
|
+
}
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXColumnGroupComponent, decorators: [{
|
403
|
+
type: Component,
|
404
|
+
args: [{
|
405
|
+
selector: 'ax-column-group',
|
406
|
+
template: '<ng-content></ng-content>',
|
407
|
+
providers: [
|
408
|
+
{ provide: AXGridDataColumn, useExisting: AXColumnGroupComponent },
|
409
|
+
],
|
410
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
411
|
+
}]
|
412
|
+
}], propDecorators: { columns: [{
|
413
|
+
type: ContentChildren,
|
414
|
+
args: [AXGridDataColumn]
|
415
|
+
}] } });
|
416
|
+
|
381
417
|
class AXGridCommandColumn extends AXGridDataColumn {
|
382
418
|
items = [];
|
383
419
|
onItemClick = new EventEmitter();
|
@@ -1232,7 +1268,7 @@ class AXDataGridComponent {
|
|
1232
1268
|
this.gridApi.setRowData(items);
|
1233
1269
|
}
|
1234
1270
|
}
|
1235
|
-
if (this.
|
1271
|
+
if (this.autoNavigatePage) {
|
1236
1272
|
this.paginationGoToPage(this.currentPage);
|
1237
1273
|
}
|
1238
1274
|
this.gridSelectRow();
|
@@ -1240,9 +1276,6 @@ class AXDataGridComponent {
|
|
1240
1276
|
this.dataSource.onFetchStart.subscribe(() => {
|
1241
1277
|
this.showLoading();
|
1242
1278
|
});
|
1243
|
-
this.dataSource.onFetchEnd.subscribe(() => {
|
1244
|
-
this.currentPage = this.autoNavigatePage === false ? 1 : this.currentPage;
|
1245
|
-
});
|
1246
1279
|
if (this.searchInput) {
|
1247
1280
|
this.searchInput.onValueChanged.subscribe((c) => {
|
1248
1281
|
this.searchText = c.value;
|
@@ -1673,7 +1706,8 @@ class AXDataGridModule {
|
|
1673
1706
|
AXDataGridCellTemplateComponent,
|
1674
1707
|
AXDataGridCellTemplateRenderer,
|
1675
1708
|
AXDatePickerFilterComponent,
|
1676
|
-
CommandRenderer
|
1709
|
+
CommandRenderer,
|
1710
|
+
AXColumnGroupComponent], imports: [CommonModule,
|
1677
1711
|
AXCoreModule,
|
1678
1712
|
FormsModule,
|
1679
1713
|
//AgGridModule,
|
@@ -1683,7 +1717,8 @@ class AXDataGridModule {
|
|
1683
1717
|
AXDataSourceModule,
|
1684
1718
|
AXButtonModule,
|
1685
1719
|
AXDatePickerModule,
|
1686
|
-
AgGridModule], exports: [
|
1720
|
+
AgGridModule], exports: [AXColumnGroupComponent,
|
1721
|
+
AXDataGridComponent,
|
1687
1722
|
AXDataGridFilterComponent,
|
1688
1723
|
AXDataGridRowTemplateComponent,
|
1689
1724
|
AXDataGridDetailTemplateComponent,
|
@@ -1734,7 +1769,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
1734
1769
|
AXDataGridCellTemplateComponent,
|
1735
1770
|
AXDataGridCellTemplateRenderer,
|
1736
1771
|
AXDatePickerFilterComponent,
|
1737
|
-
CommandRenderer
|
1772
|
+
CommandRenderer,
|
1773
|
+
AXColumnGroupComponent,
|
1738
1774
|
],
|
1739
1775
|
imports: [
|
1740
1776
|
CommonModule,
|
@@ -1747,9 +1783,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
1747
1783
|
AXDataSourceModule,
|
1748
1784
|
AXButtonModule,
|
1749
1785
|
AXDatePickerModule,
|
1750
|
-
AgGridModule
|
1786
|
+
AgGridModule,
|
1751
1787
|
],
|
1752
1788
|
exports: [
|
1789
|
+
AXColumnGroupComponent,
|
1753
1790
|
AXDataGridComponent,
|
1754
1791
|
AXDataGridFilterComponent,
|
1755
1792
|
AXDataGridRowTemplateComponent,
|
@@ -1766,9 +1803,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
1766
1803
|
AXGridCommandColumn,
|
1767
1804
|
BooleanRenderer,
|
1768
1805
|
BooleanFilterRenderer,
|
1769
|
-
CommandRenderer
|
1806
|
+
CommandRenderer,
|
1770
1807
|
],
|
1771
|
-
providers: []
|
1808
|
+
providers: [],
|
1772
1809
|
}]
|
1773
1810
|
}] });
|
1774
1811
|
|
@@ -2108,5 +2145,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
2108
2145
|
* Generated bundle index. Do not edit.
|
2109
2146
|
*/
|
2110
2147
|
|
2111
|
-
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 };
|
2148
|
+
export { AXColumnGroupComponent, 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 };
|
2112
2149
|
//# sourceMappingURL=acorex-data-grid.mjs.map
|