@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.
- package/acorex-data-grid.d.ts +1 -0
- package/esm2020/acorex-data-grid.mjs +5 -0
- package/esm2020/lib/data-grid/columns/check-column.component.mjs +117 -0
- package/esm2020/lib/data-grid/columns/column.component.mjs +164 -0
- package/{esm2015/lib/data-grid/columns/command-column.component.js → esm2020/lib/data-grid/columns/command-column.component.mjs} +46 -35
- package/esm2020/lib/data-grid/columns/date-column.component.mjs +112 -0
- package/esm2020/lib/data-grid/columns/row-number-column.component.mjs +37 -0
- package/esm2020/lib/data-grid/columns/selection-column.component.mjs +42 -0
- package/esm2020/lib/data-grid/columns/text-column.component.mjs +89 -0
- package/esm2020/lib/data-grid/datagrid.component.mjs +658 -0
- package/esm2020/lib/data-grid/datagrid.events.mjs +2 -0
- package/esm2020/lib/data-grid/datagrid.module.mjs +145 -0
- package/esm2020/lib/data-grid/filters/filter.component.mjs +39 -0
- package/esm2020/lib/data-grid/templates/cell-template.component.mjs +53 -0
- package/esm2020/lib/data-grid/templates/detail-template.component.mjs +46 -0
- package/esm2020/lib/data-grid/templates/row-template.component.mjs +43 -0
- package/esm2020/lib/data-lov/data-lov-popup/data-lov-popup.component.mjs +118 -0
- package/esm2020/lib/data-lov/data-lov.component.mjs +163 -0
- package/esm2020/lib/data-lov/data-lov.module.mjs +23 -0
- package/esm2020/public-api.mjs +18 -0
- package/fesm2015/acorex-data-grid.mjs +1875 -0
- package/fesm2015/acorex-data-grid.mjs.map +1 -0
- package/fesm2020/acorex-data-grid.mjs +1875 -0
- package/fesm2020/acorex-data-grid.mjs.map +1 -0
- package/lib/data-grid/columns/check-column.component.d.ts +7 -0
- package/lib/data-grid/columns/column.component.d.ts +3 -0
- package/lib/data-grid/columns/command-column.component.d.ts +5 -0
- package/lib/data-grid/columns/date-column.component.d.ts +5 -0
- package/lib/data-grid/columns/row-number-column.component.d.ts +3 -0
- package/lib/data-grid/columns/selection-column.component.d.ts +3 -0
- package/lib/data-grid/columns/text-column.component.d.ts +5 -0
- package/lib/data-grid/datagrid.component.d.ts +8 -1
- package/lib/data-grid/datagrid.module.d.ts +20 -0
- package/lib/data-grid/filters/filter.component.d.ts +3 -0
- package/lib/data-grid/templates/cell-template.component.d.ts +5 -0
- package/lib/data-grid/templates/detail-template.component.d.ts +5 -0
- package/lib/data-grid/templates/row-template.component.d.ts +5 -0
- package/lib/data-lov/data-lov-popup/data-lov-popup.component.d.ts +3 -0
- package/lib/data-lov/data-lov.component.d.ts +3 -0
- package/lib/data-lov/data-lov.module.d.ts +10 -0
- package/package.json +23 -13
- package/acorex-data-grid.metadata.json +0 -1
- package/bundles/acorex-data-grid.umd.js +0 -2249
- package/bundles/acorex-data-grid.umd.js.map +0 -1
- package/bundles/acorex-data-grid.umd.min.js +0 -16
- package/bundles/acorex-data-grid.umd.min.js.map +0 -1
- package/esm2015/acorex-data-grid.js +0 -5
- package/esm2015/lib/data-grid/columns/check-column.component.js +0 -104
- package/esm2015/lib/data-grid/columns/column.component.js +0 -204
- package/esm2015/lib/data-grid/columns/date-column.component.js +0 -114
- package/esm2015/lib/data-grid/columns/row-number-column.component.js +0 -39
- package/esm2015/lib/data-grid/columns/selection-column.component.js +0 -48
- package/esm2015/lib/data-grid/columns/text-column.component.js +0 -81
- package/esm2015/lib/data-grid/datagrid.component.js +0 -722
- package/esm2015/lib/data-grid/datagrid.events.js +0 -1
- package/esm2015/lib/data-grid/datagrid.module.js +0 -98
- package/esm2015/lib/data-grid/filters/filter.component.js +0 -25
- package/esm2015/lib/data-grid/templates/cell-template.component.js +0 -47
- package/esm2015/lib/data-grid/templates/detail-template.component.js +0 -45
- package/esm2015/lib/data-grid/templates/row-template.component.js +0 -40
- package/esm2015/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -121
- package/esm2015/lib/data-lov/data-lov.component.js +0 -212
- package/esm2015/lib/data-lov/data-lov.module.js +0 -21
- package/esm2015/public-api.js +0 -17
- package/esm5/acorex-data-grid.js +0 -5
- package/esm5/lib/data-grid/columns/check-column.component.js +0 -102
- package/esm5/lib/data-grid/columns/column.component.js +0 -206
- package/esm5/lib/data-grid/columns/command-column.component.js +0 -98
- package/esm5/lib/data-grid/columns/date-column.component.js +0 -119
- package/esm5/lib/data-grid/columns/row-number-column.component.js +0 -42
- package/esm5/lib/data-grid/columns/selection-column.component.js +0 -52
- package/esm5/lib/data-grid/columns/text-column.component.js +0 -81
- package/esm5/lib/data-grid/datagrid.component.js +0 -780
- package/esm5/lib/data-grid/datagrid.events.js +0 -1
- package/esm5/lib/data-grid/datagrid.module.js +0 -101
- package/esm5/lib/data-grid/filters/filter.component.js +0 -16
- package/esm5/lib/data-grid/templates/cell-template.component.js +0 -46
- package/esm5/lib/data-grid/templates/detail-template.component.js +0 -49
- package/esm5/lib/data-grid/templates/row-template.component.js +0 -44
- package/esm5/lib/data-lov/data-lov-popup/data-lov-popup.component.js +0 -127
- package/esm5/lib/data-lov/data-lov.component.js +0 -222
- package/esm5/lib/data-lov/data-lov.module.js +0 -24
- package/esm5/public-api.js +0 -17
- package/fesm2015/acorex-data-grid.js +0 -1927
- package/fesm2015/acorex-data-grid.js.map +0 -1
- package/fesm5/acorex-data-grid.js +0 -2005
- package/fesm5/acorex-data-grid.js.map +0 -1
@@ -1,780 +0,0 @@
|
|
1
|
-
import { __decorate, __extends, __metadata, __read, __spread } from "tslib";
|
2
|
-
import { Component, ContentChild, Input, ContentChildren, QueryList, EventEmitter, Output, ElementRef, ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core';
|
3
|
-
import { AXDataSourceComponent } from '@acorex/components';
|
4
|
-
import { AXGridDataColumn } from './columns/column.component';
|
5
|
-
import { LicenseManager } from 'ag-grid-enterprise';
|
6
|
-
import { ViewEncapsulation } from '@angular/core';
|
7
|
-
import { AXDataGridRowTemplateComponent } from './templates/row-template.component';
|
8
|
-
import { AXToolbarSearchComponent, AXToolbarComponent, AXDataEvent, AXValueEvent } from '@acorex/components';
|
9
|
-
import { AXDataGridDetailTemplateComponent } from './templates/detail-template.component';
|
10
|
-
import { AXTranslator } from '@acorex/core';
|
11
|
-
import { AXDatePickerFilterComponent } from './columns/date-column.component';
|
12
|
-
import { AXConfig } from '@acorex/core';
|
13
|
-
LicenseManager.prototype.validateLicense = function () {
|
14
|
-
//console.info('Cracked by Arash Oshnoudi!');
|
15
|
-
};
|
16
|
-
// WatermarkComp.prototype.shouldDisplayWatermark = function () {
|
17
|
-
// return false;
|
18
|
-
// }
|
19
|
-
var AXDataGridColumnsChangeEvent = /** @class */ (function (_super) {
|
20
|
-
__extends(AXDataGridColumnsChangeEvent, _super);
|
21
|
-
function AXDataGridColumnsChangeEvent() {
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
23
|
-
}
|
24
|
-
return AXDataGridColumnsChangeEvent;
|
25
|
-
}(AXValueEvent));
|
26
|
-
export { AXDataGridColumnsChangeEvent };
|
27
|
-
var AXDataGridCellEvent = /** @class */ (function (_super) {
|
28
|
-
__extends(AXDataGridCellEvent, _super);
|
29
|
-
function AXDataGridCellEvent() {
|
30
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
31
|
-
}
|
32
|
-
return AXDataGridCellEvent;
|
33
|
-
}(AXDataEvent));
|
34
|
-
export { AXDataGridCellEvent };
|
35
|
-
var AXDaagridRowClickEvent = /** @class */ (function (_super) {
|
36
|
-
__extends(AXDaagridRowClickEvent, _super);
|
37
|
-
function AXDaagridRowClickEvent() {
|
38
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
39
|
-
}
|
40
|
-
return AXDaagridRowClickEvent;
|
41
|
-
}(AXDataEvent));
|
42
|
-
export { AXDaagridRowClickEvent };
|
43
|
-
var AXDataGridSelectionChangeEvent = /** @class */ (function (_super) {
|
44
|
-
__extends(AXDataGridSelectionChangeEvent, _super);
|
45
|
-
function AXDataGridSelectionChangeEvent() {
|
46
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
47
|
-
}
|
48
|
-
return AXDataGridSelectionChangeEvent;
|
49
|
-
}(AXDataEvent));
|
50
|
-
export { AXDataGridSelectionChangeEvent };
|
51
|
-
var AXDataGridRowSelectionChangeEvent = /** @class */ (function (_super) {
|
52
|
-
__extends(AXDataGridRowSelectionChangeEvent, _super);
|
53
|
-
function AXDataGridRowSelectionChangeEvent() {
|
54
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
55
|
-
}
|
56
|
-
return AXDataGridRowSelectionChangeEvent;
|
57
|
-
}(AXDataEvent));
|
58
|
-
export { AXDataGridRowSelectionChangeEvent };
|
59
|
-
var AXDataGridComponent = /** @class */ (function () {
|
60
|
-
function AXDataGridComponent(ref, cdr) {
|
61
|
-
var _this = this;
|
62
|
-
this.ref = ref;
|
63
|
-
this.cdr = cdr;
|
64
|
-
this.columnDefs = [];
|
65
|
-
this.rowModelType = 'clientSide';
|
66
|
-
this.frameworkComponents = {};
|
67
|
-
this.internalHeight = '100%';
|
68
|
-
this.masterDetail = false;
|
69
|
-
this.treeData = false;
|
70
|
-
this.enabelSelect = false;
|
71
|
-
this.gridView = false;
|
72
|
-
this.groupSelectsChildren = false;
|
73
|
-
this.oldSelectionNodes = [];
|
74
|
-
this.paginationAutoPageSize = true;
|
75
|
-
this.paginationPageSize = 10;
|
76
|
-
this.cacheBlockSize = 10;
|
77
|
-
// @Input()
|
78
|
-
// showRowNumber: boolean = true;
|
79
|
-
this.remoteOperation = false;
|
80
|
-
this.rowMultiSelectWithClick = true;
|
81
|
-
this.suppressRowClickSelection = true;
|
82
|
-
this.suppressCellSelection = false;
|
83
|
-
this.sizeColumnsToFit = true;
|
84
|
-
this.showCheckBox = true;
|
85
|
-
this.floatingFilter = false;
|
86
|
-
this.autoGroupColumnDef = {};
|
87
|
-
this.selectionMode = 'single';
|
88
|
-
// @Input()
|
89
|
-
// allowFiltering: boolean = false;
|
90
|
-
this.selectRow = [];
|
91
|
-
this.rowGroupPanelShow = 'never';
|
92
|
-
this.loadOnInit = true;
|
93
|
-
// @Input()
|
94
|
-
// groupDefaultExpanded: number = 0;
|
95
|
-
this.keyField = 'null';
|
96
|
-
this.hasChildField = 'null';
|
97
|
-
this.columnsChange = new EventEmitter();
|
98
|
-
this._columns = [];
|
99
|
-
this.defaultColDef = {
|
100
|
-
filter: true,
|
101
|
-
floatingFilter: true
|
102
|
-
};
|
103
|
-
this.groupHideOpenParents = false;
|
104
|
-
this.cellClick = new EventEmitter();
|
105
|
-
this.cellDbClick = new EventEmitter();
|
106
|
-
this.cellFocuse = new EventEmitter();
|
107
|
-
this.rowClick = new EventEmitter();
|
108
|
-
this.rowDbClick = new EventEmitter();
|
109
|
-
this.selectionChanged = new EventEmitter();
|
110
|
-
this.rowSelectionChange = new EventEmitter();
|
111
|
-
this.onRowSelectionChanged = new EventEmitter();
|
112
|
-
this.rtl = AXConfig.get('layout.rtl');
|
113
|
-
this.isServerSideGroup = function (e) {
|
114
|
-
return e[_this.hasChildField];
|
115
|
-
};
|
116
|
-
this.getColumnDefs = function () {
|
117
|
-
return _this.gridApi.getColumnDefs();
|
118
|
-
};
|
119
|
-
this.getServerSideGroupKey = function (e) {
|
120
|
-
return e[_this.keyField];
|
121
|
-
};
|
122
|
-
this.internalGetRowClass = function (p) {
|
123
|
-
if (_this.rowClass) {
|
124
|
-
if (_this.rowClass instanceof Function) {
|
125
|
-
return _this.rowClass({
|
126
|
-
rowIndex: p.node.rowIndex,
|
127
|
-
rowLevel: p.node.level,
|
128
|
-
data: p.data
|
129
|
-
});
|
130
|
-
}
|
131
|
-
else {
|
132
|
-
return _this.rowClass;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
};
|
136
|
-
this.localeText = AXTranslator.get('dataGrid');
|
137
|
-
}
|
138
|
-
Object.defineProperty(AXDataGridComponent.prototype, "searchText", {
|
139
|
-
get: function () {
|
140
|
-
return this._searchText;
|
141
|
-
},
|
142
|
-
set: function (v) {
|
143
|
-
if (v !== this._searchText) {
|
144
|
-
this._searchText = v;
|
145
|
-
if (this.gridApi) {
|
146
|
-
this.refresh();
|
147
|
-
this.gridApi.setQuickFilter(this.searchText);
|
148
|
-
}
|
149
|
-
}
|
150
|
-
},
|
151
|
-
enumerable: true,
|
152
|
-
configurable: true
|
153
|
-
});
|
154
|
-
Object.defineProperty(AXDataGridComponent.prototype, "filter", {
|
155
|
-
get: function () {
|
156
|
-
return this._filter;
|
157
|
-
},
|
158
|
-
set: function (v) {
|
159
|
-
var _this = this;
|
160
|
-
if (v !== this._filter) {
|
161
|
-
this._filter = v;
|
162
|
-
this._filter.forEach(function (f) {
|
163
|
-
var fc = _this.gridApi.getFilterInstance(f.field);
|
164
|
-
if (fc) {
|
165
|
-
var ff = fc.getFrameworkComponentInstance();
|
166
|
-
ff.setModel(f);
|
167
|
-
}
|
168
|
-
});
|
169
|
-
}
|
170
|
-
},
|
171
|
-
enumerable: true,
|
172
|
-
configurable: true
|
173
|
-
});
|
174
|
-
Object.defineProperty(AXDataGridComponent.prototype, "columns", {
|
175
|
-
get: function () {
|
176
|
-
return this._inlineColumns ? __spread(this._columns, this._inlineColumns.toArray()) : this._columns;
|
177
|
-
},
|
178
|
-
set: function (val) {
|
179
|
-
if (val && val.length) {
|
180
|
-
var old = this._columns;
|
181
|
-
this._columns = val;
|
182
|
-
this.columnsChange.emit({ component: this, value: val, oldValue: old, htmlElement: this.ref.nativeElement });
|
183
|
-
}
|
184
|
-
},
|
185
|
-
enumerable: true,
|
186
|
-
configurable: true
|
187
|
-
});
|
188
|
-
Object.defineProperty(AXDataGridComponent.prototype, "dataSource", {
|
189
|
-
get: function () {
|
190
|
-
return this._dataSource ? this._dataSource : this._contentDataSource;
|
191
|
-
},
|
192
|
-
set: function (v) {
|
193
|
-
this._dataSource = v;
|
194
|
-
},
|
195
|
-
enumerable: true,
|
196
|
-
configurable: true
|
197
|
-
});
|
198
|
-
AXDataGridComponent.prototype.getRowHeight = function (param) {
|
199
|
-
if (param.data && param.data.rowHeight && param.node.level == 0) {
|
200
|
-
return param.data.rowHeight;
|
201
|
-
}
|
202
|
-
else if (this.masterDetail == true && param.node.level == 1) {
|
203
|
-
return this.detailRowHeight;
|
204
|
-
}
|
205
|
-
else if (this.masterDetail == false && param.data && param.data.rowHeight) {
|
206
|
-
return param.data.rowHeight;
|
207
|
-
}
|
208
|
-
else {
|
209
|
-
return null;
|
210
|
-
}
|
211
|
-
};
|
212
|
-
AXDataGridComponent.prototype.calcHeight = function () {
|
213
|
-
if (this.toolbar) {
|
214
|
-
this.internalHeight = "calc(100% - " + 40 + "px)";
|
215
|
-
}
|
216
|
-
else {
|
217
|
-
this.internalHeight = '100%';
|
218
|
-
}
|
219
|
-
};
|
220
|
-
Object.defineProperty(AXDataGridComponent.prototype, "intenalGridDataSource", {
|
221
|
-
get: function () {
|
222
|
-
var that = this;
|
223
|
-
return {
|
224
|
-
rowCount: null,
|
225
|
-
getRows: function (params) {
|
226
|
-
// that.gridApi.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount ? this.takeCount : params.api.paginationGetPageSize());
|
227
|
-
that.dataSourceSuccessCallback = params.successCallback;
|
228
|
-
var loadParams = {};
|
229
|
-
loadParams.searchText = that.searchText;
|
230
|
-
loadParams.skip = params.request.startRow;
|
231
|
-
// loadParams.take = params.request.endRow - params.request.startRow;
|
232
|
-
loadParams.take = that.takeCount ? that.takeCount : params.api.paginationGetPageSize() * 2;
|
233
|
-
loadParams.sort = params.request.sortModel.map(function (c) {
|
234
|
-
return {
|
235
|
-
field: c.colId,
|
236
|
-
dir: c.sort
|
237
|
-
};
|
238
|
-
});
|
239
|
-
// loadParams.groups = params.request.rowGroupCols.map(r => r.field);
|
240
|
-
// loadParams.groupKeys = params.request.groupKeys;
|
241
|
-
// loadParams.data = params.parentNode.data;
|
242
|
-
loadParams.group = {
|
243
|
-
fields: params.request.rowGroupCols.map(function (r) { return r.field; }),
|
244
|
-
keys: params.request.groupKeys,
|
245
|
-
parentData: params.parentNode.data
|
246
|
-
};
|
247
|
-
loadParams.filter = params.request.filterModel;
|
248
|
-
that.dataSource.fetch(loadParams);
|
249
|
-
}
|
250
|
-
};
|
251
|
-
},
|
252
|
-
enumerable: true,
|
253
|
-
configurable: true
|
254
|
-
});
|
255
|
-
AXDataGridComponent.prototype.getMainMenuItems = function (e) {
|
256
|
-
return ['pinSubMenu', 'separator'];
|
257
|
-
};
|
258
|
-
AXDataGridComponent.prototype.ngOnDestroy = function () {
|
259
|
-
this.gridApi.destroy();
|
260
|
-
};
|
261
|
-
// todo gridOptions: GridOptions
|
262
|
-
AXDataGridComponent.prototype.internalGridReady = function (gridOptions) {
|
263
|
-
gridOptions.api.checkGridSize();
|
264
|
-
this.takeCount = this.takeCount ? this.takeCount : gridOptions.api.paginationGetPageSize() * 2;
|
265
|
-
// this.takeCount = this.takeCount < 20 ? 20 : this.takeCount;
|
266
|
-
gridOptions.api.gridOptionsWrapper.setProperty('cacheBlockSize', this.takeCount);
|
267
|
-
this.gridApi = gridOptions.api;
|
268
|
-
this.mapColumns();
|
269
|
-
this.calcHeight();
|
270
|
-
if (!this.loadOnInit) {
|
271
|
-
this.loadOnInit = true;
|
272
|
-
return;
|
273
|
-
}
|
274
|
-
if (this.remoteOperation) {
|
275
|
-
this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
|
276
|
-
}
|
277
|
-
if (!this.remoteOperation) {
|
278
|
-
this.refresh();
|
279
|
-
}
|
280
|
-
};
|
281
|
-
AXDataGridComponent.prototype.ngAfterContentInit = function () {
|
282
|
-
var that = this;
|
283
|
-
if (this.rowTemplate) {
|
284
|
-
this.fullWidthCellRendererFramework = this.rowTemplate.renderer;
|
285
|
-
this.fullWidthCellRendererParams = this.rowTemplate.params;
|
286
|
-
}
|
287
|
-
this.frameworkComponents.agDateInput = AXDatePickerFilterComponent;
|
288
|
-
if (this.gridDetailTemplate) {
|
289
|
-
this.masterDetail = true;
|
290
|
-
this.detailCellRendererParams = this.gridDetailTemplate.params;
|
291
|
-
this.detailCellRenderer = 'detailRendererFramework';
|
292
|
-
this.frameworkComponents.detailRendererFramework = this.gridDetailTemplate.renderer;
|
293
|
-
this.detailRowHeight = this.gridDetailTemplate.height;
|
294
|
-
}
|
295
|
-
this.isFullWidthCell = function () {
|
296
|
-
return that.rowTemplate != null;
|
297
|
-
};
|
298
|
-
//this.cdr
|
299
|
-
};
|
300
|
-
AXDataGridComponent.prototype.ngOnInit = function () {
|
301
|
-
if (this.takeCount && this.takeCount > 0) {
|
302
|
-
this.paginationPageSize = this.takeCount;
|
303
|
-
this.paginationAutoPageSize = false;
|
304
|
-
this.cacheBlockSize = this.takeCount;
|
305
|
-
}
|
306
|
-
if (this.selectionMode === 'single') {
|
307
|
-
this.groupSelectsChildren = false;
|
308
|
-
}
|
309
|
-
if (this.keyField !== 'null' && this.hasChildField !== 'null') {
|
310
|
-
this.rowGroupPanelShow = 'never';
|
311
|
-
this.treeData = true;
|
312
|
-
}
|
313
|
-
if (this.remoteOperation) {
|
314
|
-
this.rowModelType = 'serverSide';
|
315
|
-
}
|
316
|
-
//
|
317
|
-
if (this.rtl == null) {
|
318
|
-
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
319
|
-
}
|
320
|
-
//
|
321
|
-
};
|
322
|
-
AXDataGridComponent.prototype.gridSelectRow = function () {
|
323
|
-
var _this = this;
|
324
|
-
if (this.gridApi) {
|
325
|
-
if (this.selectRow && this.selectRow.length > 0 && this.gridApi !== undefined && typeof this.selectRow[0] != 'object') {
|
326
|
-
this.gridApi.forEachNode(function (node) {
|
327
|
-
if (node.data !== undefined) {
|
328
|
-
var select_1 = false;
|
329
|
-
_this.selectRow.forEach(function (id) {
|
330
|
-
if (node.data[_this.keyField] === id) {
|
331
|
-
select_1 = true;
|
332
|
-
node.setSelected(select_1);
|
333
|
-
}
|
334
|
-
});
|
335
|
-
}
|
336
|
-
});
|
337
|
-
}
|
338
|
-
else {
|
339
|
-
this.gridApi.forEachNode(function (node) {
|
340
|
-
if (node.data !== undefined) {
|
341
|
-
var select_2 = false;
|
342
|
-
_this.selectRow.forEach(function (item) {
|
343
|
-
if (item.rowIndex != undefined && item.rowLevel != undefined) {
|
344
|
-
if (node.data[_this.keyField] === item.data[_this.keyField]) {
|
345
|
-
select_2 = true;
|
346
|
-
}
|
347
|
-
}
|
348
|
-
else {
|
349
|
-
if (node.data[_this.keyField] === item[_this.keyField]) {
|
350
|
-
select_2 = true;
|
351
|
-
}
|
352
|
-
}
|
353
|
-
});
|
354
|
-
node.setSelected(select_2);
|
355
|
-
}
|
356
|
-
});
|
357
|
-
}
|
358
|
-
}
|
359
|
-
};
|
360
|
-
// ngAfterViewChecked(): void {
|
361
|
-
// //Called after every check of the component's view. Applies to components only.
|
362
|
-
// //Add 'implements AfterViewChecked' to the class.
|
363
|
-
// // this.selectByValues();
|
364
|
-
// this.enabelSelect = false;
|
365
|
-
// }
|
366
|
-
AXDataGridComponent.prototype.rebuildGrid = function () {
|
367
|
-
var _this = this;
|
368
|
-
this.mapColumns();
|
369
|
-
setTimeout(function () {
|
370
|
-
if (_this.sizeColumnsToFit) {
|
371
|
-
_this.gridApi.sizeColumnsToFit();
|
372
|
-
}
|
373
|
-
}, 10);
|
374
|
-
};
|
375
|
-
AXDataGridComponent.prototype.ngAfterViewInit = function () {
|
376
|
-
var _this = this;
|
377
|
-
if (this.treeData === true) {
|
378
|
-
this.columnDefs = this.columns.map(function (c) { return c.render(); });
|
379
|
-
var groupColumn = this.columnDefs.find(function (c) { return c.rowGroupIndex == '0' && c.field !== ''; });
|
380
|
-
this.autoGroupColumnDef = {
|
381
|
-
headerName: groupColumn.headerName,
|
382
|
-
width: groupColumn.width,
|
383
|
-
cellRendererParams: { checkbox: this.showCheckBox },
|
384
|
-
field: groupColumn.field
|
385
|
-
};
|
386
|
-
this.columnDefs.forEach(function (elm) {
|
387
|
-
if (elm.rowGroupIndex > -1) {
|
388
|
-
elm.hide = true;
|
389
|
-
}
|
390
|
-
});
|
391
|
-
}
|
392
|
-
//setTimeout(() => {
|
393
|
-
this.gridView = true;
|
394
|
-
//});
|
395
|
-
this.enabelSelect = true;
|
396
|
-
this.dataSource.onDataReceived.subscribe(function (_data) {
|
397
|
-
var result = _data.data.result;
|
398
|
-
_this.hideLoading();
|
399
|
-
var items;
|
400
|
-
var totalCount;
|
401
|
-
if (Array.isArray(result)) {
|
402
|
-
items = result;
|
403
|
-
totalCount = result.length;
|
404
|
-
}
|
405
|
-
else {
|
406
|
-
items = result.items;
|
407
|
-
totalCount = result.totalCount;
|
408
|
-
}
|
409
|
-
if (_this.dataSourceSuccessCallback) {
|
410
|
-
if (!_this.loadOnInit) {
|
411
|
-
_this.dataSourceSuccessCallback([], 0);
|
412
|
-
}
|
413
|
-
else {
|
414
|
-
_this.dataSourceSuccessCallback(items, totalCount);
|
415
|
-
}
|
416
|
-
}
|
417
|
-
else {
|
418
|
-
if (!_this.loadOnInit && _this.gridApi !== undefined) {
|
419
|
-
_this.gridApi.setRowData([]);
|
420
|
-
}
|
421
|
-
else if (_this.gridApi !== undefined) {
|
422
|
-
_this.gridApi.setRowData(items);
|
423
|
-
}
|
424
|
-
}
|
425
|
-
_this.gridSelectRow();
|
426
|
-
});
|
427
|
-
this.dataSource.onFetchStart.subscribe(function () {
|
428
|
-
_this.showLoading();
|
429
|
-
});
|
430
|
-
if (this.searchInput) {
|
431
|
-
this.searchInput.onValueChanged.subscribe(function (c) {
|
432
|
-
_this.searchText = c.value;
|
433
|
-
});
|
434
|
-
}
|
435
|
-
//
|
436
|
-
this.cdr.detectChanges();
|
437
|
-
};
|
438
|
-
AXDataGridComponent.prototype.mapColumns = function () {
|
439
|
-
this.columnDefs = this.columns.map(function (c) { return c.render(); });
|
440
|
-
// if (this.showRowNumber) {
|
441
|
-
// this.columnDefs.push({
|
442
|
-
// headerName: AXConfig.get('layout.rtl') ? 'ردیف' : 'Row',
|
443
|
-
// valueGetter: 'node.rowIndex + 1',
|
444
|
-
// pinned: AXConfig.get('layout.rtl') ? 'right' : 'left'
|
445
|
-
// });
|
446
|
-
// }
|
447
|
-
if (this.gridDetailTemplate) {
|
448
|
-
if (this.columnDefs[0].checkboxSelection === true && this.columnDefs[0].field === '') {
|
449
|
-
this.columnDefs[1].cellRenderer = 'agGroupCellRenderer';
|
450
|
-
}
|
451
|
-
else {
|
452
|
-
this.columnDefs[0].cellRenderer = 'agGroupCellRenderer';
|
453
|
-
}
|
454
|
-
}
|
455
|
-
if (this.hasChildField === 'null') {
|
456
|
-
var groupColumn = this.columnDefs.find(function (c) { return c.rowGroupIndex === undefined && c.field !== ''; });
|
457
|
-
if (groupColumn && this.groupHideOpenParents == false) {
|
458
|
-
this.autoGroupColumnDef = {
|
459
|
-
headerName: groupColumn.headerName,
|
460
|
-
width: groupColumn.width,
|
461
|
-
cellRendererParams: { checkbox: this.showCheckBox },
|
462
|
-
field: groupColumn.field
|
463
|
-
};
|
464
|
-
// groupColumn.hide = true;
|
465
|
-
}
|
466
|
-
}
|
467
|
-
this.columnDefs.forEach(function (elm) {
|
468
|
-
if (elm.rowGroupIndex > -1) {
|
469
|
-
elm.hide = true;
|
470
|
-
}
|
471
|
-
});
|
472
|
-
};
|
473
|
-
AXDataGridComponent.prototype.displayedColumnsChanged = function (e) {
|
474
|
-
if (this.hasChildField === 'null') {
|
475
|
-
var ee = e.columnApi.getAllDisplayedColumnGroups();
|
476
|
-
var eee = ee.find(function (c) { return c.colId !== 'ag-Grid-AutoColumn' && c.colId !== '0'; });
|
477
|
-
if (eee && eee.colId) {
|
478
|
-
this.autoGroupColumnDef = {
|
479
|
-
headerName: eee.colDef.headerName,
|
480
|
-
width: eee.colDef.width,
|
481
|
-
cellRendererParams: { checkbox: this.showCheckBox },
|
482
|
-
field: eee.colDef.field
|
483
|
-
};
|
484
|
-
}
|
485
|
-
// eee.hide = true;
|
486
|
-
}
|
487
|
-
};
|
488
|
-
AXDataGridComponent.prototype.refresh = function (route) {
|
489
|
-
if (route === void 0) { route = []; }
|
490
|
-
if (this.remoteOperation && this.gridApi !== undefined) {
|
491
|
-
// this.gridApi.purgeServerSideCache(route);
|
492
|
-
this.gridApi.setServerSideDatasource(this.intenalGridDataSource);
|
493
|
-
}
|
494
|
-
else {
|
495
|
-
// TODO : check fetch param
|
496
|
-
this.dataSource.fetch(null);
|
497
|
-
}
|
498
|
-
};
|
499
|
-
AXDataGridComponent.prototype.internalGridCellClicked = function (e) {
|
500
|
-
this.cellClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
|
501
|
-
};
|
502
|
-
AXDataGridComponent.prototype.internalGridCellDoubleClicked = function (e) {
|
503
|
-
this.cellDbClick.emit({ data: this.mapCellEvent(e), component: this, htmlElement: this.ref.nativeElement });
|
504
|
-
};
|
505
|
-
AXDataGridComponent.prototype.internalGridCellFocused = function (e) {
|
506
|
-
this.cellFocuse.emit({ data: this.mapCellEvent(e), htmlElement: this.ref.nativeElement, component: this });
|
507
|
-
};
|
508
|
-
AXDataGridComponent.prototype.internalGridRowClicked = function (e) {
|
509
|
-
if (!e.node.group) {
|
510
|
-
this.rowClick.emit({ data: this.mapRowEvent(e), component: this, htmlElement: this.ref.nativeElement });
|
511
|
-
}
|
512
|
-
};
|
513
|
-
AXDataGridComponent.prototype.internalGridRowDoubleClicked = function (e) {
|
514
|
-
if (!e.node.group) {
|
515
|
-
this.rowDbClick.emit({ data: this.mapRowEvent(e), htmlElement: this.ref.nativeElement, component: this });
|
516
|
-
}
|
517
|
-
};
|
518
|
-
AXDataGridComponent.prototype.differenceOf2Arrays = function (array1, array2) {
|
519
|
-
var temp = [];
|
520
|
-
for (var i in array1) {
|
521
|
-
if (array2.indexOf(array1[i]) === -1) {
|
522
|
-
temp.push(array1[i]);
|
523
|
-
}
|
524
|
-
}
|
525
|
-
for (var i in array2) {
|
526
|
-
if (array1.indexOf(array2[i]) === -1) {
|
527
|
-
temp.push(array2[i]);
|
528
|
-
}
|
529
|
-
}
|
530
|
-
return temp.sort(function (a, b) { return a - b; });
|
531
|
-
};
|
532
|
-
AXDataGridComponent.prototype.rowSelectionChanged = function (e) {
|
533
|
-
var _this = this;
|
534
|
-
// this.gridApi.forEachNode((node) => {
|
535
|
-
// if (node.data[this.keyField] == e.node.data[this.keyField]) {
|
536
|
-
// node.setSelected(e.node.selected);
|
537
|
-
// }
|
538
|
-
// });
|
539
|
-
if (e.node.selected == true) {
|
540
|
-
this.selectRow = this.selectRow.filter(function (c) { return c[_this.keyField] != e.data[_this.keyField]; });
|
541
|
-
this.selectRow.push(e.data);
|
542
|
-
}
|
543
|
-
else {
|
544
|
-
this.selectRow = this.selectRow.filter(function (c) { return c[_this.keyField] != e.data[_this.keyField]; });
|
545
|
-
}
|
546
|
-
this.rowSelectionChange.emit({ component: this, data: e, htmlElement: this.ref.nativeElement });
|
547
|
-
// console.log('e', e);
|
548
|
-
// console.log('select', e.node.selected);
|
549
|
-
// console.log('index', e.rowIndex);
|
550
|
-
};
|
551
|
-
AXDataGridComponent.prototype.internalGridSelectionChanged = function (e) {
|
552
|
-
var args = { items: [] };
|
553
|
-
var oldNodes = this.oldSelectionNodes;
|
554
|
-
var nodes = this.gridApi.getSelectedNodes();
|
555
|
-
nodes.forEach(function (i) {
|
556
|
-
args.items.push({
|
557
|
-
rowLevel: i.level,
|
558
|
-
rowIndex: i.rowIndex,
|
559
|
-
data: i.data
|
560
|
-
});
|
561
|
-
});
|
562
|
-
this.selectionChanged.emit({ data: args, component: this, htmlElement: this.ref.nativeElement });
|
563
|
-
var action = nodes.length > oldNodes.length ? true : false;
|
564
|
-
var node = this.differenceOf2Arrays(nodes, oldNodes);
|
565
|
-
this.onRowSelectionChanged.emit({ component: this, selected: action, data: node, htmlElement: this.ref.nativeElement });
|
566
|
-
this.oldSelectionNodes = nodes;
|
567
|
-
};
|
568
|
-
AXDataGridComponent.prototype.mapCellEvent = function (e) {
|
569
|
-
return {
|
570
|
-
rowLevel: 0,
|
571
|
-
column: e.column,
|
572
|
-
data: e.data,
|
573
|
-
rowIndex: e.rowIndex,
|
574
|
-
value: e.value
|
575
|
-
};
|
576
|
-
};
|
577
|
-
AXDataGridComponent.prototype.mapRowEvent = function (e) {
|
578
|
-
return {
|
579
|
-
rowLevel: 0,
|
580
|
-
data: e.data,
|
581
|
-
rowIndex: e.rowIndex
|
582
|
-
};
|
583
|
-
};
|
584
|
-
AXDataGridComponent.prototype.deselectAll = function () {
|
585
|
-
this.gridApi.deselectAll();
|
586
|
-
};
|
587
|
-
AXDataGridComponent.prototype.showLoading = function () {
|
588
|
-
if (this.gridApi) {
|
589
|
-
this.gridApi.showLoadingOverlay();
|
590
|
-
}
|
591
|
-
};
|
592
|
-
AXDataGridComponent.prototype.hideLoading = function () {
|
593
|
-
if (this.gridApi) {
|
594
|
-
this.gridApi.hideOverlay();
|
595
|
-
}
|
596
|
-
};
|
597
|
-
AXDataGridComponent.prototype.internalGridSizeChanged = function (e) {
|
598
|
-
if (e.clientWidth > 0 && e.clientHeight > 0) {
|
599
|
-
this.performSizeColumnsToFit(e.api);
|
600
|
-
}
|
601
|
-
// this.refresh();
|
602
|
-
// this.gridApi.paginationGoToFirstPage();
|
603
|
-
};
|
604
|
-
AXDataGridComponent.prototype.internalGridFirstDataRendered = function (e) {
|
605
|
-
this.performSizeColumnsToFit(e.api);
|
606
|
-
};
|
607
|
-
AXDataGridComponent.prototype.performSizeColumnsToFit = function (api) {
|
608
|
-
if (this.sizeColumnsToFit) {
|
609
|
-
api.sizeColumnsToFit();
|
610
|
-
}
|
611
|
-
};
|
612
|
-
AXDataGridComponent.ctorParameters = function () { return [
|
613
|
-
{ type: ElementRef },
|
614
|
-
{ type: ChangeDetectorRef }
|
615
|
-
]; };
|
616
|
-
__decorate([
|
617
|
-
Input(),
|
618
|
-
__metadata("design:type", Boolean)
|
619
|
-
], AXDataGridComponent.prototype, "remoteOperation", void 0);
|
620
|
-
__decorate([
|
621
|
-
Input(),
|
622
|
-
__metadata("design:type", Boolean)
|
623
|
-
], AXDataGridComponent.prototype, "rowMultiSelectWithClick", void 0);
|
624
|
-
__decorate([
|
625
|
-
Input(),
|
626
|
-
__metadata("design:type", Boolean)
|
627
|
-
], AXDataGridComponent.prototype, "suppressRowClickSelection", void 0);
|
628
|
-
__decorate([
|
629
|
-
Input(),
|
630
|
-
__metadata("design:type", Boolean)
|
631
|
-
], AXDataGridComponent.prototype, "suppressCellSelection", void 0);
|
632
|
-
__decorate([
|
633
|
-
Input(),
|
634
|
-
__metadata("design:type", Boolean)
|
635
|
-
], AXDataGridComponent.prototype, "sizeColumnsToFit", void 0);
|
636
|
-
__decorate([
|
637
|
-
Input(),
|
638
|
-
__metadata("design:type", Boolean)
|
639
|
-
], AXDataGridComponent.prototype, "showCheckBox", void 0);
|
640
|
-
__decorate([
|
641
|
-
Input(),
|
642
|
-
__metadata("design:type", Boolean)
|
643
|
-
], AXDataGridComponent.prototype, "floatingFilter", void 0);
|
644
|
-
__decorate([
|
645
|
-
Input(),
|
646
|
-
__metadata("design:type", Number)
|
647
|
-
], AXDataGridComponent.prototype, "takeCount", void 0);
|
648
|
-
__decorate([
|
649
|
-
Input(),
|
650
|
-
__metadata("design:type", String)
|
651
|
-
], AXDataGridComponent.prototype, "selectionMode", void 0);
|
652
|
-
__decorate([
|
653
|
-
Input(),
|
654
|
-
__metadata("design:type", Array)
|
655
|
-
], AXDataGridComponent.prototype, "selectRow", void 0);
|
656
|
-
__decorate([
|
657
|
-
Input(),
|
658
|
-
__metadata("design:type", String)
|
659
|
-
], AXDataGridComponent.prototype, "rowGroupPanelShow", void 0);
|
660
|
-
__decorate([
|
661
|
-
Input(),
|
662
|
-
__metadata("design:type", Boolean)
|
663
|
-
], AXDataGridComponent.prototype, "loadOnInit", void 0);
|
664
|
-
__decorate([
|
665
|
-
Input(),
|
666
|
-
__metadata("design:type", String)
|
667
|
-
], AXDataGridComponent.prototype, "keyField", void 0);
|
668
|
-
__decorate([
|
669
|
-
Input(),
|
670
|
-
__metadata("design:type", String)
|
671
|
-
], AXDataGridComponent.prototype, "hasChildField", void 0);
|
672
|
-
__decorate([
|
673
|
-
Input(),
|
674
|
-
__metadata("design:type", String),
|
675
|
-
__metadata("design:paramtypes", [String])
|
676
|
-
], AXDataGridComponent.prototype, "searchText", null);
|
677
|
-
__decorate([
|
678
|
-
Input(),
|
679
|
-
__metadata("design:type", Array),
|
680
|
-
__metadata("design:paramtypes", [Array])
|
681
|
-
], AXDataGridComponent.prototype, "filter", null);
|
682
|
-
__decorate([
|
683
|
-
ContentChildren(AXGridDataColumn),
|
684
|
-
__metadata("design:type", QueryList)
|
685
|
-
], AXDataGridComponent.prototype, "_inlineColumns", void 0);
|
686
|
-
__decorate([
|
687
|
-
Output(),
|
688
|
-
__metadata("design:type", EventEmitter)
|
689
|
-
], AXDataGridComponent.prototype, "columnsChange", void 0);
|
690
|
-
__decorate([
|
691
|
-
Input(),
|
692
|
-
__metadata("design:type", Array),
|
693
|
-
__metadata("design:paramtypes", [Array])
|
694
|
-
], AXDataGridComponent.prototype, "columns", null);
|
695
|
-
__decorate([
|
696
|
-
Input(),
|
697
|
-
__metadata("design:type", Object)
|
698
|
-
], AXDataGridComponent.prototype, "rowHeight", void 0);
|
699
|
-
__decorate([
|
700
|
-
ContentChild(AXToolbarSearchComponent, { static: true }),
|
701
|
-
__metadata("design:type", AXToolbarSearchComponent)
|
702
|
-
], AXDataGridComponent.prototype, "searchInput", void 0);
|
703
|
-
__decorate([
|
704
|
-
ContentChild(AXToolbarComponent, { static: true }),
|
705
|
-
__metadata("design:type", AXToolbarComponent)
|
706
|
-
], AXDataGridComponent.prototype, "toolbar", void 0);
|
707
|
-
__decorate([
|
708
|
-
ContentChild(AXDataGridRowTemplateComponent, { static: true }),
|
709
|
-
__metadata("design:type", AXDataGridRowTemplateComponent)
|
710
|
-
], AXDataGridComponent.prototype, "rowTemplate", void 0);
|
711
|
-
__decorate([
|
712
|
-
ContentChild(AXDataGridDetailTemplateComponent, { static: true }),
|
713
|
-
__metadata("design:type", AXDataGridDetailTemplateComponent)
|
714
|
-
], AXDataGridComponent.prototype, "gridDetailTemplate", void 0);
|
715
|
-
__decorate([
|
716
|
-
ContentChild(AXDataSourceComponent, { static: true }),
|
717
|
-
__metadata("design:type", AXDataSourceComponent)
|
718
|
-
], AXDataGridComponent.prototype, "_contentDataSource", void 0);
|
719
|
-
__decorate([
|
720
|
-
Input(),
|
721
|
-
__metadata("design:type", AXDataSourceComponent),
|
722
|
-
__metadata("design:paramtypes", [AXDataSourceComponent])
|
723
|
-
], AXDataGridComponent.prototype, "dataSource", null);
|
724
|
-
__decorate([
|
725
|
-
Input(),
|
726
|
-
__metadata("design:type", Boolean)
|
727
|
-
], AXDataGridComponent.prototype, "groupHideOpenParents", void 0);
|
728
|
-
__decorate([
|
729
|
-
Output(),
|
730
|
-
__metadata("design:type", EventEmitter)
|
731
|
-
], AXDataGridComponent.prototype, "cellClick", void 0);
|
732
|
-
__decorate([
|
733
|
-
Output(),
|
734
|
-
__metadata("design:type", EventEmitter)
|
735
|
-
], AXDataGridComponent.prototype, "cellDbClick", void 0);
|
736
|
-
__decorate([
|
737
|
-
Output(),
|
738
|
-
__metadata("design:type", EventEmitter)
|
739
|
-
], AXDataGridComponent.prototype, "cellFocuse", void 0);
|
740
|
-
__decorate([
|
741
|
-
Output(),
|
742
|
-
__metadata("design:type", EventEmitter)
|
743
|
-
], AXDataGridComponent.prototype, "rowClick", void 0);
|
744
|
-
__decorate([
|
745
|
-
Output(),
|
746
|
-
__metadata("design:type", EventEmitter)
|
747
|
-
], AXDataGridComponent.prototype, "rowDbClick", void 0);
|
748
|
-
__decorate([
|
749
|
-
Output(),
|
750
|
-
__metadata("design:type", EventEmitter)
|
751
|
-
], AXDataGridComponent.prototype, "selectionChanged", void 0);
|
752
|
-
__decorate([
|
753
|
-
Output(),
|
754
|
-
__metadata("design:type", EventEmitter)
|
755
|
-
], AXDataGridComponent.prototype, "rowSelectionChange", void 0);
|
756
|
-
__decorate([
|
757
|
-
Output(),
|
758
|
-
__metadata("design:type", EventEmitter)
|
759
|
-
], AXDataGridComponent.prototype, "onRowSelectionChanged", void 0);
|
760
|
-
__decorate([
|
761
|
-
Input(),
|
762
|
-
__metadata("design:type", Function)
|
763
|
-
], AXDataGridComponent.prototype, "rowClass", void 0);
|
764
|
-
__decorate([
|
765
|
-
Input(),
|
766
|
-
__metadata("design:type", Boolean)
|
767
|
-
], AXDataGridComponent.prototype, "rtl", void 0);
|
768
|
-
AXDataGridComponent = __decorate([
|
769
|
-
Component({
|
770
|
-
selector: 'ax-data-grid',
|
771
|
-
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)\" -->",
|
772
|
-
encapsulation: ViewEncapsulation.None
|
773
|
-
// changeDetection: ChangeDetectionStrategy.OnPush
|
774
|
-
}),
|
775
|
-
__metadata("design:paramtypes", [ElementRef, ChangeDetectorRef])
|
776
|
-
], AXDataGridComponent);
|
777
|
-
return AXDataGridComponent;
|
778
|
-
}());
|
779
|
-
export { AXDataGridComponent };
|
780
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWdyaWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFjb3JleC9kYXRhLWdyaWQvIiwic291cmNlcyI6WyJsaWIvZGF0YS1ncmlkL2RhdGFncmlkLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUNMLGVBQWUsRUFDZixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDT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4gICAgICAgICAgICAgICAgbm9kZS5zZXRTZWxlY3RlZChzZWxlY3QpO1xyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgdGhpcy5ncmlkQXBpLmZvckVhY2hOb2RlKChub2RlKSA9PiB7XHJcbiAgICAgICAgICBpZiAobm9kZS5kYXRhICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgbGV0IHNlbGVjdDogYm9vbGVhbiA9IGZhbHNlO1xyXG4gICAgICAgICAgICB0aGlzLnNlbGVjdFJvdy5mb3JFYWNoKChpdGVtKSA9PiB7XHJcbiAgICAgICAgICAgICAgaWYgKGl0ZW0ucm93SW5kZXggIT0gdW5kZWZpbmVkICYmIGl0ZW0ucm93TGV2ZWwgIT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICBpZiAobm9kZS5kYXRhW3RoaXMua2V5RmllbGRdID09PSBpdGVtLmRhdGFbdGhpcy5rZXlGaWVsZF0pIHtcclxuICAgICAgICAgICAgICAgICAgc2VsZWN0ID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgaWYgKG5vZGUuZGF0YVt0aGlzLmtleUZpZWxkXSA9PT0gaXRlbVt0aGlzLmtleUZpZWxkXSkge1xyXG4gICAgICAgICAgICAgICAgICBzZWxlY3QgPSB0cnVlO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIG5vZGUuc2V0U2VsZWN0ZWQoc2VsZWN0KTtcclxuICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8gbmdBZnRlclZpZXdDaGVja2VkKC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