@syncfusion/ej2-treegrid 25.2.5 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -2
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +629 -464
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +929 -763
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/treegrid/actions/edit.js +8 -7
- package/src/treegrid/actions/excel-export.js +4 -3
- package/src/treegrid/actions/page.js +4 -0
- package/src/treegrid/actions/rowdragdrop.js +17 -11
- package/src/treegrid/actions/selection.js +4 -1
- package/src/treegrid/base/constant.d.ts +2 -0
- package/src/treegrid/base/constant.js +2 -0
- package/src/treegrid/base/data.js +2 -1
- package/src/treegrid/base/interface.js +0 -1
- package/src/treegrid/base/treegrid-model.d.ts +1 -1
- package/src/treegrid/base/treegrid.d.ts +3 -0
- package/src/treegrid/base/treegrid.js +230 -62
- package/src/treegrid/renderer/render.js +3 -1
- package/src/treegrid/renderer/virtual-row-model-generator.js +2 -2
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -1
- package/styles/bootstrap-dark.css +76 -48
- package/styles/bootstrap-dark.scss +18 -1
- package/styles/bootstrap.css +76 -49
- package/styles/bootstrap.scss +18 -1
- package/styles/bootstrap4.css +77 -48
- package/styles/bootstrap4.scss +18 -1
- package/styles/bootstrap5-dark.css +77 -49
- package/styles/bootstrap5-dark.scss +18 -1
- package/styles/bootstrap5.css +77 -49
- package/styles/bootstrap5.scss +18 -1
- package/styles/fabric-dark.css +74 -47
- package/styles/fabric-dark.scss +18 -1
- package/styles/fabric.css +74 -47
- package/styles/fabric.scss +18 -1
- package/styles/fluent-dark.css +77 -49
- package/styles/fluent-dark.scss +18 -1
- package/styles/fluent.css +77 -49
- package/styles/fluent.scss +18 -1
- package/styles/fluent2.css +1721 -0
- package/styles/fluent2.scss +18 -0
- package/styles/highcontrast-light.css +74 -47
- package/styles/highcontrast-light.scss +18 -1
- package/styles/highcontrast.css +74 -47
- package/styles/highcontrast.scss +18 -1
- package/styles/material-dark.css +111 -54
- package/styles/material-dark.scss +18 -1
- package/styles/material.css +125 -57
- package/styles/material.scss +18 -1
- package/styles/material3-dark.css +111 -56
- package/styles/material3-dark.scss +18 -1
- package/styles/material3.css +111 -56
- package/styles/material3.scss +18 -1
- package/styles/tailwind-dark.css +87 -51
- package/styles/tailwind-dark.scss +18 -1
- package/styles/tailwind.css +87 -51
- package/styles/tailwind.scss +18 -1
- package/styles/treegrid/_bds-definition.scss +0 -4
- package/styles/treegrid/_bootstrap-dark-definition.scss +0 -1
- package/styles/treegrid/_bootstrap-definition.scss +0 -1
- package/styles/treegrid/_bootstrap4-definition.scss +0 -1
- package/styles/treegrid/_bootstrap5-definition.scss +0 -4
- package/styles/treegrid/_bootstrap5.3-definition.scss +24 -0
- package/styles/treegrid/_fabric-dark-definition.scss +0 -1
- package/styles/treegrid/_fabric-definition.scss +0 -1
- package/styles/treegrid/_fluent-definition.scss +0 -4
- package/styles/treegrid/_fluent2-definition.scss +24 -0
- package/styles/treegrid/_fusionnew-definition.scss +0 -4
- package/styles/treegrid/_highcontrast-definition.scss +0 -1
- package/styles/treegrid/_highcontrast-light-definition.scss +0 -1
- package/styles/treegrid/_layout.scss +81 -85
- package/styles/treegrid/_material-dark-definition.scss +0 -1
- package/styles/treegrid/_material-definition.scss +0 -1
- package/styles/treegrid/_material3-definition.scss +0 -4
- package/styles/treegrid/_tailwind-definition.scss +0 -4
- package/styles/treegrid/bootstrap-dark.css +76 -48
- package/styles/treegrid/bootstrap.css +76 -49
- package/styles/treegrid/bootstrap4.css +77 -48
- package/styles/treegrid/bootstrap5-dark.css +77 -49
- package/styles/treegrid/bootstrap5.css +77 -49
- package/styles/treegrid/fabric-dark.css +74 -47
- package/styles/treegrid/fabric.css +74 -47
- package/styles/treegrid/fluent-dark.css +77 -49
- package/styles/treegrid/fluent.css +77 -49
- package/styles/treegrid/fluent2.css +1721 -0
- package/styles/treegrid/fluent2.scss +18 -0
- package/styles/treegrid/highcontrast-light.css +74 -47
- package/styles/treegrid/highcontrast.css +74 -47
- package/styles/treegrid/icons/_bootstrap5.3.scss +37 -0
- package/styles/treegrid/icons/_fluent2.scss +37 -0
- package/styles/treegrid/material-dark.css +111 -54
- package/styles/treegrid/material.css +125 -57
- package/styles/treegrid/material3-dark.css +111 -56
- package/styles/treegrid/material3.css +111 -56
- package/styles/treegrid/tailwind-dark.css +87 -51
- package/styles/treegrid/tailwind.css +87 -51
- package/CHANGELOG.md +0 -250
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { merge, Property, ChildProperty, Collection, isNullOrUndefined, Browser, removeClass, addClass, getValue, createElement, setValue, extend as extend$1, Internationalization, getEnumValue, compile, Component, L10n, EventHandler, KeyboardEvents, SanitizeHtmlHelper, Complex, Event, NotifyPropertyChanges, closest, classList, setStyleAttribute, select, debounce, remove } from '@syncfusion/ej2-base';
|
|
2
|
+
import { Logger as Logger$1, Grid, detailLists, Clipboard, getObject, parentsUntil, Print as Print$1, templateCompiler, appendChildren, extend, CellRenderer, getUid, CellType, Freeze as Freeze$1, getNumberFormat, getActualProperties, iterateArrayOrObject, RowDropSettings as RowDropSettings$1, Reorder as Reorder$1, Resize as Resize$1, RowDD as RowDD$1, Scroll, VirtualRowModelGenerator, Filter as Filter$1, ExcelExport as ExcelExport$1, PdfExport as PdfExport$1, Page as Page$1, Toolbar as Toolbar$1, Aggregate as Aggregate$1, calculateAggregate, Sort as Sort$1, ColumnMenu as ColumnMenu$1, ContextMenu as ContextMenu$1, Edit as Edit$1, resetRowIndex, CommandColumn as CommandColumn$1, DetailRow as DetailRow$1, VirtualContentRenderer, Cell, InterSectionObserver, getTransformValues, VirtualScroll as VirtualScroll$1, RenderType, VirtualHeaderRenderer, ColumnChooser as ColumnChooser$1, InfiniteScroll as InfiniteScroll$1, RowRenderer } from '@syncfusion/ej2-grids';
|
|
3
3
|
import { createCheckBox } from '@syncfusion/ej2-buttons';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { DataManager, ODataAdaptor, WebApiAdaptor, WebMethodAdaptor, CacheAdaptor, UrlAdaptor, Query, DataUtil, RemoteSaveAdaptor, Deferred, JsonAdaptor, Predicate as Predicate$1 } from '@syncfusion/ej2-data';
|
|
5
|
+
import { showSpinner, hideSpinner, createSpinner } from '@syncfusion/ej2-popups';
|
|
6
6
|
|
|
7
|
-
var __decorate
|
|
7
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8
8
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
10
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -107,7 +107,7 @@ class Column {
|
|
|
107
107
|
*/
|
|
108
108
|
class TreeGridColumn extends Column {
|
|
109
109
|
}
|
|
110
|
-
__decorate
|
|
110
|
+
__decorate([
|
|
111
111
|
Property(null)
|
|
112
112
|
], TreeGridColumn.prototype, "columns", void 0);
|
|
113
113
|
/**
|
|
@@ -116,7 +116,7 @@ __decorate$1([
|
|
|
116
116
|
class StackedColumn extends TreeGridColumn {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
var __decorate$
|
|
119
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
120
120
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
121
121
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
122
122
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -127,11 +127,11 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
127
127
|
*/
|
|
128
128
|
class LoadingIndicator extends ChildProperty {
|
|
129
129
|
}
|
|
130
|
-
__decorate$
|
|
130
|
+
__decorate$1([
|
|
131
131
|
Property('Spinner')
|
|
132
132
|
], LoadingIndicator.prototype, "indicatorType", void 0);
|
|
133
133
|
|
|
134
|
-
var __decorate$
|
|
134
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
135
135
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
136
136
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
137
137
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -140,75 +140,75 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
140
140
|
/**
|
|
141
141
|
* Represents the Tree Grid predicate for the filter column.
|
|
142
142
|
*/
|
|
143
|
-
class Predicate
|
|
143
|
+
class Predicate extends ChildProperty {
|
|
144
144
|
}
|
|
145
|
-
__decorate$
|
|
145
|
+
__decorate$2([
|
|
146
146
|
Property()
|
|
147
|
-
], Predicate
|
|
148
|
-
__decorate$
|
|
147
|
+
], Predicate.prototype, "field", void 0);
|
|
148
|
+
__decorate$2([
|
|
149
149
|
Property()
|
|
150
|
-
], Predicate
|
|
151
|
-
__decorate$
|
|
150
|
+
], Predicate.prototype, "operator", void 0);
|
|
151
|
+
__decorate$2([
|
|
152
152
|
Property()
|
|
153
|
-
], Predicate
|
|
154
|
-
__decorate$
|
|
153
|
+
], Predicate.prototype, "value", void 0);
|
|
154
|
+
__decorate$2([
|
|
155
155
|
Property()
|
|
156
|
-
], Predicate
|
|
157
|
-
__decorate$
|
|
156
|
+
], Predicate.prototype, "matchCase", void 0);
|
|
157
|
+
__decorate$2([
|
|
158
158
|
Property()
|
|
159
|
-
], Predicate
|
|
160
|
-
__decorate$
|
|
159
|
+
], Predicate.prototype, "ignoreAccent", void 0);
|
|
160
|
+
__decorate$2([
|
|
161
161
|
Property()
|
|
162
|
-
], Predicate
|
|
163
|
-
__decorate$
|
|
162
|
+
], Predicate.prototype, "predicate", void 0);
|
|
163
|
+
__decorate$2([
|
|
164
164
|
Property({})
|
|
165
|
-
], Predicate
|
|
166
|
-
__decorate$
|
|
165
|
+
], Predicate.prototype, "actualFilterValue", void 0);
|
|
166
|
+
__decorate$2([
|
|
167
167
|
Property({})
|
|
168
|
-
], Predicate
|
|
169
|
-
__decorate$
|
|
168
|
+
], Predicate.prototype, "actualOperator", void 0);
|
|
169
|
+
__decorate$2([
|
|
170
170
|
Property()
|
|
171
|
-
], Predicate
|
|
172
|
-
__decorate$
|
|
171
|
+
], Predicate.prototype, "type", void 0);
|
|
172
|
+
__decorate$2([
|
|
173
173
|
Property()
|
|
174
|
-
], Predicate
|
|
175
|
-
__decorate$
|
|
174
|
+
], Predicate.prototype, "ejpredicate", void 0);
|
|
175
|
+
__decorate$2([
|
|
176
176
|
Property()
|
|
177
|
-
], Predicate
|
|
178
|
-
__decorate$
|
|
177
|
+
], Predicate.prototype, "uid", void 0);
|
|
178
|
+
__decorate$2([
|
|
179
179
|
Property()
|
|
180
|
-
], Predicate
|
|
180
|
+
], Predicate.prototype, "isForeignKey", void 0);
|
|
181
181
|
/**
|
|
182
182
|
* Configures the filtering behavior of the TreeGrid.
|
|
183
183
|
*/
|
|
184
184
|
class FilterSettings extends ChildProperty {
|
|
185
185
|
}
|
|
186
|
-
__decorate$
|
|
187
|
-
Collection([], Predicate
|
|
186
|
+
__decorate$2([
|
|
187
|
+
Collection([], Predicate)
|
|
188
188
|
], FilterSettings.prototype, "columns", void 0);
|
|
189
|
-
__decorate$
|
|
189
|
+
__decorate$2([
|
|
190
190
|
Property('FilterBar')
|
|
191
191
|
], FilterSettings.prototype, "type", void 0);
|
|
192
|
-
__decorate$
|
|
192
|
+
__decorate$2([
|
|
193
193
|
Property()
|
|
194
194
|
], FilterSettings.prototype, "mode", void 0);
|
|
195
|
-
__decorate$
|
|
195
|
+
__decorate$2([
|
|
196
196
|
Property(true)
|
|
197
197
|
], FilterSettings.prototype, "showFilterBarStatus", void 0);
|
|
198
|
-
__decorate$
|
|
198
|
+
__decorate$2([
|
|
199
199
|
Property(1500)
|
|
200
200
|
], FilterSettings.prototype, "immediateModeDelay", void 0);
|
|
201
|
-
__decorate$
|
|
201
|
+
__decorate$2([
|
|
202
202
|
Property()
|
|
203
203
|
], FilterSettings.prototype, "operators", void 0);
|
|
204
|
-
__decorate$
|
|
204
|
+
__decorate$2([
|
|
205
205
|
Property(false)
|
|
206
206
|
], FilterSettings.prototype, "ignoreAccent", void 0);
|
|
207
|
-
__decorate$
|
|
207
|
+
__decorate$2([
|
|
208
208
|
Property('Parent')
|
|
209
209
|
], FilterSettings.prototype, "hierarchyMode", void 0);
|
|
210
210
|
|
|
211
|
-
var __decorate$
|
|
211
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
212
212
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
213
213
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
214
214
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -219,7 +219,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
219
219
|
*/
|
|
220
220
|
class TextWrapSettings extends ChildProperty {
|
|
221
221
|
}
|
|
222
|
-
__decorate$
|
|
222
|
+
__decorate$3([
|
|
223
223
|
Property('Both')
|
|
224
224
|
], TextWrapSettings.prototype, "wrapMode", void 0);
|
|
225
225
|
|
|
@@ -232,9 +232,9 @@ const DOC_URL = 'https://ej2.syncfusion.com/documentation/treegrid';
|
|
|
232
232
|
const BASE_DOC_URL = 'https://ej2.syncfusion.com/documentation';
|
|
233
233
|
const ERROR = '[EJ2TreeGrid.Error]';
|
|
234
234
|
let IsRowDDEnabled = false;
|
|
235
|
-
class Logger
|
|
235
|
+
class Logger extends Logger$1 {
|
|
236
236
|
constructor(parent) {
|
|
237
|
-
Grid.Inject(Logger);
|
|
237
|
+
Grid.Inject(Logger$1);
|
|
238
238
|
super(parent);
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
@@ -502,6 +502,8 @@ const ariaColIndex = 'aria-colindex';
|
|
|
502
502
|
const dataRowIndex = 'data-rowindex';
|
|
503
503
|
/** @hidden */
|
|
504
504
|
const ariaRowIndex = 'aria-rowindex';
|
|
505
|
+
/** @hidden */
|
|
506
|
+
const actionFailure = 'actionFailure';
|
|
505
507
|
|
|
506
508
|
/**
|
|
507
509
|
* The `Clipboard` module is used to handle clipboard copy action.
|
|
@@ -764,7 +766,7 @@ function getExpandStatus(parent, record, parents) {
|
|
|
764
766
|
return false;
|
|
765
767
|
}
|
|
766
768
|
else if (childParent) {
|
|
767
|
-
return getExpandStatus(parent, childParent
|
|
769
|
+
return getExpandStatus(parent, childParent);
|
|
768
770
|
}
|
|
769
771
|
return true;
|
|
770
772
|
}
|
|
@@ -1032,6 +1034,10 @@ class Selection {
|
|
|
1032
1034
|
}
|
|
1033
1035
|
}
|
|
1034
1036
|
selectCheckboxes(rowIndexes) {
|
|
1037
|
+
if (isNullOrUndefined(rowIndexes)) {
|
|
1038
|
+
const error = 'The provided value for the rowIndexes is undefined. Please ensure the rowIndexes contains number.';
|
|
1039
|
+
this.parent.trigger(actionFailure, { error: error });
|
|
1040
|
+
}
|
|
1035
1041
|
for (let i = 0; i < rowIndexes.length; i++) {
|
|
1036
1042
|
let record = this.parent.getCurrentViewRecords()[rowIndexes[parseInt(i.toString(), 10)]];
|
|
1037
1043
|
const flatRecord = getParentData(this.parent, record.uniqueID);
|
|
@@ -1373,7 +1379,7 @@ class Selection {
|
|
|
1373
1379
|
*
|
|
1374
1380
|
* @hidden
|
|
1375
1381
|
*/
|
|
1376
|
-
class Print
|
|
1382
|
+
class Print {
|
|
1377
1383
|
/**
|
|
1378
1384
|
* Constructor for Print module
|
|
1379
1385
|
*
|
|
@@ -1381,7 +1387,7 @@ class Print$1 {
|
|
|
1381
1387
|
*/
|
|
1382
1388
|
constructor(parent) {
|
|
1383
1389
|
this.parent = parent;
|
|
1384
|
-
Grid.Inject(Print);
|
|
1390
|
+
Grid.Inject(Print$1);
|
|
1385
1391
|
this.addEventListener();
|
|
1386
1392
|
}
|
|
1387
1393
|
/**
|
|
@@ -1425,7 +1431,7 @@ class Print$1 {
|
|
|
1425
1431
|
}
|
|
1426
1432
|
}
|
|
1427
1433
|
|
|
1428
|
-
var __decorate$
|
|
1434
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1429
1435
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1430
1436
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1431
1437
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1436,23 +1442,23 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1436
1442
|
*/
|
|
1437
1443
|
class SearchSettings extends ChildProperty {
|
|
1438
1444
|
}
|
|
1439
|
-
__decorate$
|
|
1445
|
+
__decorate$4([
|
|
1440
1446
|
Property()
|
|
1441
1447
|
], SearchSettings.prototype, "fields", void 0);
|
|
1442
|
-
__decorate$
|
|
1448
|
+
__decorate$4([
|
|
1443
1449
|
Property(false)
|
|
1444
1450
|
], SearchSettings.prototype, "ignoreCase", void 0);
|
|
1445
|
-
__decorate$
|
|
1451
|
+
__decorate$4([
|
|
1446
1452
|
Property('contains')
|
|
1447
1453
|
], SearchSettings.prototype, "operator", void 0);
|
|
1448
|
-
__decorate$
|
|
1454
|
+
__decorate$4([
|
|
1449
1455
|
Property()
|
|
1450
1456
|
], SearchSettings.prototype, "key", void 0);
|
|
1451
|
-
__decorate$
|
|
1457
|
+
__decorate$4([
|
|
1452
1458
|
Property()
|
|
1453
1459
|
], SearchSettings.prototype, "hierarchyMode", void 0);
|
|
1454
1460
|
|
|
1455
|
-
var __decorate$
|
|
1461
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1456
1462
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1457
1463
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1458
1464
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1463,25 +1469,25 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1463
1469
|
*/
|
|
1464
1470
|
class SelectionSettings extends ChildProperty {
|
|
1465
1471
|
}
|
|
1466
|
-
__decorate$
|
|
1472
|
+
__decorate$5([
|
|
1467
1473
|
Property('Row')
|
|
1468
1474
|
], SelectionSettings.prototype, "mode", void 0);
|
|
1469
|
-
__decorate$
|
|
1475
|
+
__decorate$5([
|
|
1470
1476
|
Property('Flow')
|
|
1471
1477
|
], SelectionSettings.prototype, "cellSelectionMode", void 0);
|
|
1472
|
-
__decorate$
|
|
1478
|
+
__decorate$5([
|
|
1473
1479
|
Property('Single')
|
|
1474
1480
|
], SelectionSettings.prototype, "type", void 0);
|
|
1475
|
-
__decorate$
|
|
1481
|
+
__decorate$5([
|
|
1476
1482
|
Property(false)
|
|
1477
1483
|
], SelectionSettings.prototype, "persistSelection", void 0);
|
|
1478
|
-
__decorate$
|
|
1484
|
+
__decorate$5([
|
|
1479
1485
|
Property('Default')
|
|
1480
1486
|
], SelectionSettings.prototype, "checkboxMode", void 0);
|
|
1481
|
-
__decorate$
|
|
1487
|
+
__decorate$5([
|
|
1482
1488
|
Property(false)
|
|
1483
1489
|
], SelectionSettings.prototype, "checkboxOnly", void 0);
|
|
1484
|
-
__decorate$
|
|
1490
|
+
__decorate$5([
|
|
1485
1491
|
Property(true)
|
|
1486
1492
|
], SelectionSettings.prototype, "enableToggle", void 0);
|
|
1487
1493
|
|
|
@@ -1517,10 +1523,10 @@ class Render {
|
|
|
1517
1523
|
if (!isNullOrUndefined(data.parentItem) && !isFilterChildHierarchy(this.parent) &&
|
|
1518
1524
|
(!(this.parent.allowPaging && !(this.parent.pageSettings.pageSizeMode === 'Root')) ||
|
|
1519
1525
|
(isRemoteData(this.parent) && !isOffline(this.parent)))) {
|
|
1520
|
-
const collapsed
|
|
1526
|
+
const collapsed = (this.parent.initialRender && (!(isNullOrUndefined(parentData[this.parent.expandStateMapping]) ||
|
|
1521
1527
|
parentData[this.parent.expandStateMapping]) || this.parent.enableCollapseAll)) ||
|
|
1522
1528
|
!getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
|
|
1523
|
-
if (collapsed
|
|
1529
|
+
if (collapsed && !isNullOrUndefined(args.row)) {
|
|
1524
1530
|
args.row.style.display = 'none';
|
|
1525
1531
|
const rowsObj = this.parent.grid.getRowsObject();
|
|
1526
1532
|
if (!this.parent.grid.isFrozenGrid() && !isNullOrUndefined(args.row.getAttribute('data-uid'))) {
|
|
@@ -1799,7 +1805,7 @@ class Render {
|
|
|
1799
1805
|
}
|
|
1800
1806
|
else {
|
|
1801
1807
|
const str = 'isStringTemplate';
|
|
1802
|
-
const result = args.column[`${templateFn}`](extend
|
|
1808
|
+
const result = args.column[`${templateFn}`](extend({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent[`${str}`]);
|
|
1803
1809
|
appendChildren(cellElement, result);
|
|
1804
1810
|
}
|
|
1805
1811
|
delete args.column.template;
|
|
@@ -1838,7 +1844,9 @@ class Render {
|
|
|
1838
1844
|
&& !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
|
|
1839
1845
|
const cell = rowsObj[parseInt(j.toString(), 10)][`${cells}`][parseInt(cellIndex.toString(), 10)];
|
|
1840
1846
|
const cellRenderer = new CellRenderer(this.parent.grid, this.parent.grid.serviceLocator);
|
|
1841
|
-
const td =
|
|
1847
|
+
const td = rows.length >= rowsObj.length
|
|
1848
|
+
? this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent)
|
|
1849
|
+
: this.parent.getRows()[rowsObj[parseInt(j.toString(), 10)].index].querySelector('.e-templatecell');
|
|
1842
1850
|
cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)][`${rowIdx}`] });
|
|
1843
1851
|
const treecell = this.parent.getRows()[parseInt(j.toString(), 10)]
|
|
1844
1852
|
.cells[parseInt(cellIndex.toString(), 10)];
|
|
@@ -1939,7 +1947,8 @@ class DataManipulation {
|
|
|
1939
1947
|
* @returns {void}
|
|
1940
1948
|
*/
|
|
1941
1949
|
convertToFlatData(data) {
|
|
1942
|
-
this.parent.flatData = (Object.keys(data).length === 0
|
|
1950
|
+
this.parent.flatData = (!isNullOrUndefined(data) && Object.keys(data).length === 0
|
|
1951
|
+
&& !(this.parent.dataSource instanceof DataManager) ?
|
|
1943
1952
|
this.parent.dataSource : []);
|
|
1944
1953
|
this.parent.parentData = [];
|
|
1945
1954
|
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
|
|
@@ -1995,7 +2004,7 @@ class DataManipulation {
|
|
|
1995
2004
|
const keys = Object.keys(data);
|
|
1996
2005
|
for (let i = 0; i < keys.length; i++) {
|
|
1997
2006
|
const tempData = data[parseInt(i.toString(), 10)];
|
|
1998
|
-
this.hierarchyData.push(extend({}, tempData));
|
|
2007
|
+
this.hierarchyData.push(extend$1({}, tempData));
|
|
1999
2008
|
if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
|
|
2000
2009
|
this.taskIds.push(tempData[this.parent.idMapping]);
|
|
2001
2010
|
}
|
|
@@ -2097,7 +2106,7 @@ class DataManipulation {
|
|
|
2097
2106
|
}
|
|
2098
2107
|
}
|
|
2099
2108
|
if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
|
|
2100
|
-
records[parseInt(rec.toString(), 10)].taskData = extend({}, records[parseInt(rec.toString(), 10)]);
|
|
2109
|
+
records[parseInt(rec.toString(), 10)].taskData = extend$1({}, records[parseInt(rec.toString(), 10)]);
|
|
2101
2110
|
records[parseInt(rec.toString(), 10)].uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2102
2111
|
setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this.parent);
|
|
2103
2112
|
records[parseInt(rec.toString(), 10)].level = 0;
|
|
@@ -2289,7 +2298,7 @@ class DataManipulation {
|
|
|
2289
2298
|
}
|
|
2290
2299
|
}
|
|
2291
2300
|
}
|
|
2292
|
-
result[parseInt(r.toString(), 10)].taskData = extend({}, result[parseInt(r.toString(), 10)]);
|
|
2301
|
+
result[parseInt(r.toString(), 10)].taskData = extend$1({}, result[parseInt(r.toString(), 10)]);
|
|
2293
2302
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] && this.parent.enableVirtualization && this.parent[`${remoteExpandedData}`].length) {
|
|
2294
2303
|
for (let i = 0; i < this.parent[`${remoteExpandedData}`].length; i++) {
|
|
2295
2304
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] === this.parent[`${remoteExpandedData}`][parseInt(i.toString(), 10)][`${this.parent.idMapping}`]) {
|
|
@@ -2317,7 +2326,7 @@ class DataManipulation {
|
|
|
2317
2326
|
}
|
|
2318
2327
|
}
|
|
2319
2328
|
else {
|
|
2320
|
-
const parentData = extend({}, rowDetails.record);
|
|
2329
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2321
2330
|
delete parentData.childRecords;
|
|
2322
2331
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2323
2332
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2325,7 +2334,7 @@ class DataManipulation {
|
|
|
2325
2334
|
}
|
|
2326
2335
|
else {
|
|
2327
2336
|
result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
|
|
2328
|
-
const parentData = extend({}, rowDetails.record);
|
|
2337
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2329
2338
|
delete parentData.childRecords;
|
|
2330
2339
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2331
2340
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2445,7 +2454,7 @@ class DataManipulation {
|
|
|
2445
2454
|
const treeGridData = [];
|
|
2446
2455
|
const keys = Object.keys(data);
|
|
2447
2456
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
2448
|
-
const currentData = extend({}, data[parseInt(i.toString(), 10)]);
|
|
2457
|
+
const currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
|
|
2449
2458
|
currentData.taskData = data[parseInt(i.toString(), 10)];
|
|
2450
2459
|
let level = 0;
|
|
2451
2460
|
this.storedIndex++;
|
|
@@ -2473,7 +2482,7 @@ class DataManipulation {
|
|
|
2473
2482
|
currentData.uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2474
2483
|
setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
|
|
2475
2484
|
if (!isNullOrUndefined(parentRecords)) {
|
|
2476
|
-
const parentData = extend({}, parentRecords);
|
|
2485
|
+
const parentData = extend$1({}, parentRecords);
|
|
2477
2486
|
delete parentData.childRecords;
|
|
2478
2487
|
delete parentData[this.parent.childMapping];
|
|
2479
2488
|
if (this.isSelfReference) {
|
|
@@ -2754,7 +2763,7 @@ var ContextMenuItems;
|
|
|
2754
2763
|
ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
|
|
2755
2764
|
})(ContextMenuItems || (ContextMenuItems = {}));
|
|
2756
2765
|
|
|
2757
|
-
var __decorate$
|
|
2766
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2758
2767
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2759
2768
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2760
2769
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2765,32 +2774,32 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2765
2774
|
*/
|
|
2766
2775
|
class PageSettings extends ChildProperty {
|
|
2767
2776
|
}
|
|
2768
|
-
__decorate$
|
|
2777
|
+
__decorate$6([
|
|
2769
2778
|
Property(12)
|
|
2770
2779
|
], PageSettings.prototype, "pageSize", void 0);
|
|
2771
|
-
__decorate$
|
|
2780
|
+
__decorate$6([
|
|
2772
2781
|
Property(8)
|
|
2773
2782
|
], PageSettings.prototype, "pageCount", void 0);
|
|
2774
|
-
__decorate$
|
|
2783
|
+
__decorate$6([
|
|
2775
2784
|
Property(1)
|
|
2776
2785
|
], PageSettings.prototype, "currentPage", void 0);
|
|
2777
|
-
__decorate$
|
|
2786
|
+
__decorate$6([
|
|
2778
2787
|
Property()
|
|
2779
2788
|
], PageSettings.prototype, "totalRecordsCount", void 0);
|
|
2780
|
-
__decorate$
|
|
2789
|
+
__decorate$6([
|
|
2781
2790
|
Property(false)
|
|
2782
2791
|
], PageSettings.prototype, "enableQueryString", void 0);
|
|
2783
|
-
__decorate$
|
|
2792
|
+
__decorate$6([
|
|
2784
2793
|
Property(false)
|
|
2785
2794
|
], PageSettings.prototype, "pageSizes", void 0);
|
|
2786
|
-
__decorate$
|
|
2795
|
+
__decorate$6([
|
|
2787
2796
|
Property(null)
|
|
2788
2797
|
], PageSettings.prototype, "template", void 0);
|
|
2789
|
-
__decorate$
|
|
2798
|
+
__decorate$6([
|
|
2790
2799
|
Property('All')
|
|
2791
2800
|
], PageSettings.prototype, "pageSizeMode", void 0);
|
|
2792
2801
|
|
|
2793
|
-
var __decorate$
|
|
2802
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2794
2803
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2795
2804
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2796
2805
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2866,34 +2875,34 @@ class AggregateColumn extends ChildProperty {
|
|
|
2866
2875
|
this.setProperties(prop, true);
|
|
2867
2876
|
}
|
|
2868
2877
|
}
|
|
2869
|
-
__decorate$
|
|
2878
|
+
__decorate$7([
|
|
2870
2879
|
Property()
|
|
2871
2880
|
], AggregateColumn.prototype, "type", void 0);
|
|
2872
|
-
__decorate$
|
|
2881
|
+
__decorate$7([
|
|
2873
2882
|
Property()
|
|
2874
2883
|
], AggregateColumn.prototype, "footerTemplate", void 0);
|
|
2875
|
-
__decorate$
|
|
2884
|
+
__decorate$7([
|
|
2876
2885
|
Property()
|
|
2877
2886
|
], AggregateColumn.prototype, "field", void 0);
|
|
2878
|
-
__decorate$
|
|
2887
|
+
__decorate$7([
|
|
2879
2888
|
Property()
|
|
2880
2889
|
], AggregateColumn.prototype, "format", void 0);
|
|
2881
|
-
__decorate$
|
|
2890
|
+
__decorate$7([
|
|
2882
2891
|
Property()
|
|
2883
2892
|
], AggregateColumn.prototype, "columnName", void 0);
|
|
2884
|
-
__decorate$
|
|
2893
|
+
__decorate$7([
|
|
2885
2894
|
Property()
|
|
2886
2895
|
], AggregateColumn.prototype, "customAggregate", void 0);
|
|
2887
2896
|
class AggregateRow extends ChildProperty {
|
|
2888
2897
|
}
|
|
2889
|
-
__decorate$
|
|
2898
|
+
__decorate$7([
|
|
2890
2899
|
Collection([], AggregateColumn)
|
|
2891
2900
|
], AggregateRow.prototype, "columns", void 0);
|
|
2892
|
-
__decorate$
|
|
2901
|
+
__decorate$7([
|
|
2893
2902
|
Property(true)
|
|
2894
2903
|
], AggregateRow.prototype, "showChildSummary", void 0);
|
|
2895
2904
|
|
|
2896
|
-
var __decorate$
|
|
2905
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2897
2906
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2898
2907
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2899
2908
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2904,41 +2913,41 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2904
2913
|
*/
|
|
2905
2914
|
class EditSettings extends ChildProperty {
|
|
2906
2915
|
}
|
|
2907
|
-
__decorate$
|
|
2916
|
+
__decorate$8([
|
|
2908
2917
|
Property(false)
|
|
2909
2918
|
], EditSettings.prototype, "allowAdding", void 0);
|
|
2910
|
-
__decorate$
|
|
2919
|
+
__decorate$8([
|
|
2911
2920
|
Property(false)
|
|
2912
2921
|
], EditSettings.prototype, "allowEditing", void 0);
|
|
2913
|
-
__decorate$
|
|
2922
|
+
__decorate$8([
|
|
2914
2923
|
Property(false)
|
|
2915
2924
|
], EditSettings.prototype, "allowDeleting", void 0);
|
|
2916
|
-
__decorate$
|
|
2925
|
+
__decorate$8([
|
|
2917
2926
|
Property('Cell')
|
|
2918
2927
|
], EditSettings.prototype, "mode", void 0);
|
|
2919
|
-
__decorate$
|
|
2928
|
+
__decorate$8([
|
|
2920
2929
|
Property('Top')
|
|
2921
2930
|
], EditSettings.prototype, "newRowPosition", void 0);
|
|
2922
|
-
__decorate$
|
|
2931
|
+
__decorate$8([
|
|
2923
2932
|
Property(true)
|
|
2924
2933
|
], EditSettings.prototype, "allowEditOnDblClick", void 0);
|
|
2925
|
-
__decorate$
|
|
2934
|
+
__decorate$8([
|
|
2926
2935
|
Property(true)
|
|
2927
2936
|
], EditSettings.prototype, "showConfirmDialog", void 0);
|
|
2928
|
-
__decorate$
|
|
2937
|
+
__decorate$8([
|
|
2929
2938
|
Property(false)
|
|
2930
2939
|
], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
|
|
2931
|
-
__decorate$
|
|
2940
|
+
__decorate$8([
|
|
2932
2941
|
Property('')
|
|
2933
2942
|
], EditSettings.prototype, "template", void 0);
|
|
2934
|
-
__decorate$
|
|
2943
|
+
__decorate$8([
|
|
2935
2944
|
Property({})
|
|
2936
2945
|
], EditSettings.prototype, "dialog", void 0);
|
|
2937
|
-
__decorate$
|
|
2946
|
+
__decorate$8([
|
|
2938
2947
|
Property(false)
|
|
2939
2948
|
], EditSettings.prototype, "allowNextRowEdit", void 0);
|
|
2940
2949
|
|
|
2941
|
-
var __decorate$
|
|
2950
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2942
2951
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2943
2952
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2944
2953
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2949,10 +2958,10 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2949
2958
|
*/
|
|
2950
2959
|
class SortDescriptor extends ChildProperty {
|
|
2951
2960
|
}
|
|
2952
|
-
__decorate$
|
|
2961
|
+
__decorate$9([
|
|
2953
2962
|
Property()
|
|
2954
2963
|
], SortDescriptor.prototype, "field", void 0);
|
|
2955
|
-
__decorate$
|
|
2964
|
+
__decorate$9([
|
|
2956
2965
|
Property()
|
|
2957
2966
|
], SortDescriptor.prototype, "direction", void 0);
|
|
2958
2967
|
/**
|
|
@@ -2960,10 +2969,10 @@ __decorate$10([
|
|
|
2960
2969
|
*/
|
|
2961
2970
|
class SortSettings extends ChildProperty {
|
|
2962
2971
|
}
|
|
2963
|
-
__decorate$
|
|
2972
|
+
__decorate$9([
|
|
2964
2973
|
Collection([], SortDescriptor)
|
|
2965
2974
|
], SortSettings.prototype, "columns", void 0);
|
|
2966
|
-
__decorate$
|
|
2975
|
+
__decorate$9([
|
|
2967
2976
|
Property(true)
|
|
2968
2977
|
], SortSettings.prototype, "allowUnsort", void 0);
|
|
2969
2978
|
|
|
@@ -3008,7 +3017,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
|
|
|
3008
3017
|
modifiedData = extendArray(value);
|
|
3009
3018
|
}
|
|
3010
3019
|
else {
|
|
3011
|
-
modifiedData.push(extend({}, value));
|
|
3020
|
+
modifiedData.push(extend$1({}, value));
|
|
3012
3021
|
}
|
|
3013
3022
|
if (!isSkip && (action !== 'add' ||
|
|
3014
3023
|
(control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
|
|
@@ -3124,7 +3133,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3124
3133
|
let value;
|
|
3125
3134
|
let isSkip = false;
|
|
3126
3135
|
const currentViewRecords = control.grid.getCurrentViewRecords();
|
|
3127
|
-
value = extend({}, details.value);
|
|
3136
|
+
value = extend$1({}, details.value);
|
|
3128
3137
|
value = getPlainData(value);
|
|
3129
3138
|
switch (control.editSettings.newRowPosition) {
|
|
3130
3139
|
case 'Top':
|
|
@@ -3137,28 +3146,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3137
3146
|
break;
|
|
3138
3147
|
case 'Above':
|
|
3139
3148
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3140
|
-
value = extend({}, addRowRecord);
|
|
3149
|
+
value = extend$1({}, addRowRecord);
|
|
3141
3150
|
value = getPlainData(value);
|
|
3142
3151
|
}
|
|
3143
3152
|
else {
|
|
3144
|
-
value = extend({}, currentViewRecords[addRowIndex + 1]);
|
|
3153
|
+
value = extend$1({}, currentViewRecords[addRowIndex + 1]);
|
|
3145
3154
|
value = getPlainData(value);
|
|
3146
3155
|
}
|
|
3147
3156
|
break;
|
|
3148
3157
|
case 'Below':
|
|
3149
3158
|
case 'Child':
|
|
3150
3159
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3151
|
-
value = extend({}, addRowRecord);
|
|
3160
|
+
value = extend$1({}, addRowRecord);
|
|
3152
3161
|
value = getPlainData(value);
|
|
3153
3162
|
}
|
|
3154
3163
|
else {
|
|
3155
3164
|
const primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
|
|
3156
3165
|
const currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
|
|
3157
3166
|
if (!isNullOrUndefined(currentdata) && currentdata[`${primaryKeys}`] === details.value[`${primaryKeys}`] || selectedIndex !== -1) {
|
|
3158
|
-
value = extend({}, currentdata);
|
|
3167
|
+
value = extend$1({}, currentdata);
|
|
3159
3168
|
}
|
|
3160
3169
|
else {
|
|
3161
|
-
value = extend({}, details.value);
|
|
3170
|
+
value = extend$1({}, details.value);
|
|
3162
3171
|
}
|
|
3163
3172
|
value = getPlainData(value);
|
|
3164
3173
|
const internalProperty = 'internalProperties';
|
|
@@ -3367,7 +3376,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
|
|
|
3367
3376
|
}
|
|
3368
3377
|
}
|
|
3369
3378
|
|
|
3370
|
-
var __decorate$
|
|
3379
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3371
3380
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3372
3381
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3373
3382
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3378,17 +3387,17 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3378
3387
|
*/
|
|
3379
3388
|
class InfiniteScrollSettings extends ChildProperty {
|
|
3380
3389
|
}
|
|
3381
|
-
__decorate$
|
|
3390
|
+
__decorate$a([
|
|
3382
3391
|
Property(false)
|
|
3383
3392
|
], InfiniteScrollSettings.prototype, "enableCache", void 0);
|
|
3384
|
-
__decorate$
|
|
3393
|
+
__decorate$a([
|
|
3385
3394
|
Property(3)
|
|
3386
3395
|
], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
|
|
3387
|
-
__decorate$
|
|
3396
|
+
__decorate$a([
|
|
3388
3397
|
Property(3)
|
|
3389
3398
|
], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
|
|
3390
3399
|
|
|
3391
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3400
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3392
3401
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3393
3402
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3394
3403
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3440,15 +3449,15 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3440
3449
|
return false;
|
|
3441
3450
|
}
|
|
3442
3451
|
};
|
|
3443
|
-
TreeGrid_1.Inject(Selection, Logger
|
|
3452
|
+
TreeGrid_1.Inject(Selection, Logger);
|
|
3444
3453
|
setValue('mergePersistData', this.mergePersistTreeGridData, this);
|
|
3445
3454
|
const logger = 'Logger';
|
|
3446
3455
|
if (!isNullOrUndefined(this.injectedModules[`${logger}`])) {
|
|
3447
|
-
Grid.Inject(Logger);
|
|
3456
|
+
Grid.Inject(Logger$1);
|
|
3448
3457
|
}
|
|
3449
3458
|
const freezeModulePresent = this.injectedModules.filter((e) => {
|
|
3450
3459
|
if (e.prototype.getModuleName() === 'freeze') {
|
|
3451
|
-
Grid.Inject(Freeze);
|
|
3460
|
+
Grid.Inject(Freeze$1);
|
|
3452
3461
|
}
|
|
3453
3462
|
});
|
|
3454
3463
|
this.grid = new Grid();
|
|
@@ -3525,6 +3534,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3525
3534
|
}
|
|
3526
3535
|
/**
|
|
3527
3536
|
* Exports the TreeGrid data to the specified URL using a POST request.
|
|
3537
|
+
*
|
|
3528
3538
|
* @param {string} url - Defines exporting url
|
|
3529
3539
|
* @returns {void}
|
|
3530
3540
|
*/
|
|
@@ -3555,6 +3565,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3555
3565
|
}
|
|
3556
3566
|
/**
|
|
3557
3567
|
* Sets the header text and other properties for an array of columns based on specified criteria.
|
|
3568
|
+
*
|
|
3558
3569
|
* @param {Column[]} columns - Defines array of columns
|
|
3559
3570
|
* @param {string[]} include - Defines array of sting
|
|
3560
3571
|
* @returns {Column[]} returns array of columns
|
|
@@ -3641,6 +3652,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3641
3652
|
* @returns {void}
|
|
3642
3653
|
*/
|
|
3643
3654
|
sortByColumn(columnName, direction, isMultiSort) {
|
|
3655
|
+
if (isNullOrUndefined(columnName) && isNullOrUndefined(direction)) {
|
|
3656
|
+
const error = 'The provided value for the columnName and direction is undefined. Please ensure the columnName and direction contains string.';
|
|
3657
|
+
this.trigger(actionFailure, { error: error });
|
|
3658
|
+
}
|
|
3644
3659
|
if (this.sortModule) {
|
|
3645
3660
|
this.sortModule.sortColumn(columnName, direction, isMultiSort);
|
|
3646
3661
|
}
|
|
@@ -3701,21 +3716,27 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3701
3716
|
* @returns {void}
|
|
3702
3717
|
*/
|
|
3703
3718
|
reorderColumns(fromFName, toFName) {
|
|
3719
|
+
if (isNullOrUndefined(fromFName) && isNullOrUndefined(toFName)) {
|
|
3720
|
+
const error = 'The provided value for the fromFName and toFName is undefined. Please ensure the fromFName and toFName contains string.';
|
|
3721
|
+
this.trigger(actionFailure, { error: error });
|
|
3722
|
+
}
|
|
3704
3723
|
this.grid.reorderColumns(fromFName, toFName);
|
|
3705
3724
|
}
|
|
3706
3725
|
TreeGridLocale() {
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3726
|
+
if (!isNullOrUndefined(this.locale)) {
|
|
3727
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
3728
|
+
const locale = L10n.locale;
|
|
3729
|
+
const localeObject = {};
|
|
3730
|
+
setValue(this.locale, {}, localeObject);
|
|
3731
|
+
let gridLocale;
|
|
3732
|
+
gridLocale = {};
|
|
3733
|
+
gridLocale = getObject(this.locale, locale);
|
|
3734
|
+
let treeGridLocale;
|
|
3735
|
+
treeGridLocale = {};
|
|
3736
|
+
treeGridLocale = getObject(this.getModuleName(), gridLocale);
|
|
3737
|
+
setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
|
|
3738
|
+
L10n.load(localeObject);
|
|
3739
|
+
}
|
|
3719
3740
|
}
|
|
3720
3741
|
/**
|
|
3721
3742
|
* By default, prints all the pages of the TreeGrid and hides the pager.
|
|
@@ -3762,45 +3783,57 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3762
3783
|
}
|
|
3763
3784
|
break;
|
|
3764
3785
|
case 'downArrow':
|
|
3765
|
-
if (!this.enableVirtualization) {
|
|
3786
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3766
3787
|
target = e.target;
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3788
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
3789
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
3790
|
+
}
|
|
3791
|
+
if (!isNullOrUndefined(target)) {
|
|
3792
|
+
parentTarget = target.parentElement;
|
|
3793
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
3794
|
+
const cellIndex = parentTarget.cellIndex;
|
|
3795
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
3796
|
+
parentTarget = target;
|
|
3797
|
+
}
|
|
3798
|
+
summaryElement = this.findnextRowElement(parentTarget);
|
|
3799
|
+
if (summaryElement !== null) {
|
|
3800
|
+
const cellIndex = target.cellIndex;
|
|
3801
|
+
const row = summaryElement.children[parseInt(cellIndex.toString(), 10)];
|
|
3802
|
+
addClass([row], 'e-focused');
|
|
3803
|
+
addClass([row], 'e-focus');
|
|
3804
|
+
}
|
|
3805
|
+
else {
|
|
3806
|
+
this.clearSelection();
|
|
3807
|
+
}
|
|
3782
3808
|
}
|
|
3783
3809
|
}
|
|
3784
3810
|
}
|
|
3785
3811
|
break;
|
|
3786
3812
|
case 'upArrow':
|
|
3787
|
-
if (!this.enableVirtualization) {
|
|
3813
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3788
3814
|
target = e.target;
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3815
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
3816
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
3817
|
+
}
|
|
3818
|
+
if (!isNullOrUndefined(target)) {
|
|
3819
|
+
parentTarget = target.parentElement;
|
|
3820
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
3821
|
+
const cellIndex = parentTarget.cellIndex;
|
|
3822
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
3823
|
+
parentTarget = target;
|
|
3824
|
+
}
|
|
3825
|
+
summaryElement = this.findPreviousRowElement(parentTarget);
|
|
3826
|
+
if (summaryElement !== null) {
|
|
3827
|
+
const cellIndex = target.cellIndex;
|
|
3828
|
+
if (!isNullOrUndefined(cellIndex)) {
|
|
3829
|
+
const row = summaryElement.children[parseInt(cellIndex.toString(), 10)];
|
|
3830
|
+
addClass([row], 'e-focused');
|
|
3831
|
+
addClass([row], 'e-focus');
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
else {
|
|
3835
|
+
this.clearSelection();
|
|
3836
|
+
}
|
|
3804
3837
|
}
|
|
3805
3838
|
}
|
|
3806
3839
|
}
|
|
@@ -3994,7 +4027,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3994
4027
|
name: 'Edit'
|
|
3995
4028
|
});
|
|
3996
4029
|
}
|
|
3997
|
-
if (this.isCommandColumn(this.columns)) {
|
|
4030
|
+
if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
|
|
3998
4031
|
modules.push({
|
|
3999
4032
|
member: 'commandColumn',
|
|
4000
4033
|
args: [this],
|
|
@@ -4090,7 +4123,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4090
4123
|
this.log(['mapping_fields_missing']);
|
|
4091
4124
|
this.renderModule = new Render(this);
|
|
4092
4125
|
this.dataModule = new DataManipulation(this);
|
|
4093
|
-
this.printModule = new Print
|
|
4126
|
+
this.printModule = new Print(this);
|
|
4094
4127
|
this.trigger(load);
|
|
4095
4128
|
this.autoGenerateColumns();
|
|
4096
4129
|
this.initialRender = true;
|
|
@@ -4125,6 +4158,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4125
4158
|
const root = 'root';
|
|
4126
4159
|
this.grid[`${root}`] = this[`${root}`] ? this[`${root}`] : this;
|
|
4127
4160
|
this.grid.appendTo(gridContainer);
|
|
4161
|
+
this.actionFailureHandler();
|
|
4128
4162
|
const gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
|
|
4129
4163
|
gridContent.setAttribute('tabindex', '0');
|
|
4130
4164
|
const contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
|
|
@@ -4147,6 +4181,84 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4147
4181
|
}
|
|
4148
4182
|
};
|
|
4149
4183
|
}
|
|
4184
|
+
actionFailureHandler() {
|
|
4185
|
+
const failureCases = [];
|
|
4186
|
+
const primaryKeyFieldNames = this.getPrimaryKeyFieldNames();
|
|
4187
|
+
const RecordsCount = this.flatData.length;
|
|
4188
|
+
if ((this.editSettings.allowAdding || this.editSettings.allowDeleting || this.editSettings.allowEditing)
|
|
4189
|
+
&& primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4190
|
+
failureCases.push('For the CRUD actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4191
|
+
}
|
|
4192
|
+
if (this.allowRowDragAndDrop && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4193
|
+
failureCases.push('For the Row Drag and Drop actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4194
|
+
}
|
|
4195
|
+
if (this.allowPaging && this.enableVirtualization) {
|
|
4196
|
+
failureCases.push('Paging is not allowed in virtualization case.');
|
|
4197
|
+
}
|
|
4198
|
+
if (RecordsCount === 0 && this.columns.length === 0) {
|
|
4199
|
+
failureCases.push('Either of the Data source or columns should be given.');
|
|
4200
|
+
}
|
|
4201
|
+
if (this.frozenColumns > 0 && this.columnModel.filter((col) => col.isFrozen)) {
|
|
4202
|
+
failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
|
|
4203
|
+
}
|
|
4204
|
+
if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
|
|
4205
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4206
|
+
}
|
|
4207
|
+
if (this.stackedHeader && !isNullOrUndefined(this.detailTemplate)) {
|
|
4208
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4209
|
+
}
|
|
4210
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen) || this.frozenRows > 0)
|
|
4211
|
+
&& (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
|
|
4212
|
+
failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
|
|
4213
|
+
}
|
|
4214
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
|
|
4215
|
+
failureCases.push('Frozen rows and columns are not supported with cell editing.');
|
|
4216
|
+
}
|
|
4217
|
+
if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
|
|
4218
|
+
failureCases.push('Selection is not supported in RowTemplate');
|
|
4219
|
+
}
|
|
4220
|
+
if (this.treeColumnIndex < 0) {
|
|
4221
|
+
failureCases.push('For showing tree structure it is must to set the TreeColumnIndex value.');
|
|
4222
|
+
}
|
|
4223
|
+
if (this.treeColumnIndex >= this.columns.length) {
|
|
4224
|
+
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
4225
|
+
}
|
|
4226
|
+
if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter((col) => col.width).toString())
|
|
4227
|
+
&& !/[px]$/.test(this.columnModel.filter((col) => col.width).toString()))
|
|
4228
|
+
|| (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
|
|
4229
|
+
failureCases.push('column width and height should be in pixels');
|
|
4230
|
+
}
|
|
4231
|
+
if (!isNullOrUndefined(this.childMapping) && !isNullOrUndefined(this.idMapping)) {
|
|
4232
|
+
failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
|
|
4233
|
+
}
|
|
4234
|
+
if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
|
|
4235
|
+
((isNullOrUndefined(this.idMapping) && (!isNullOrUndefined(this.parentIdMapping))))) {
|
|
4236
|
+
failureCases.push('IdMapping and ParentIdMapping properties should be defined and vice versa.');
|
|
4237
|
+
}
|
|
4238
|
+
const checkboxColumn = this.columnModel.filter((col) => col.showCheckbox);
|
|
4239
|
+
const treeColumn = this.columns[this.treeColumnIndex];
|
|
4240
|
+
if (checkboxColumn.length !== 0) {
|
|
4241
|
+
if (checkboxColumn !== treeColumn) {
|
|
4242
|
+
failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
|
|
4243
|
+
}
|
|
4244
|
+
if (checkboxColumn.length > 1) {
|
|
4245
|
+
failureCases.push('Only one column can have the ShowCheckbox option enabled.');
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
const alignColumn = this.columnModel.filter((col) => col.textAlign === 'Right' && col.field === this.columnModel[this.treeColumnIndex].field);
|
|
4249
|
+
if (alignColumn.length !== 0) {
|
|
4250
|
+
failureCases.push('TextAlign right for the tree column is not applicable.');
|
|
4251
|
+
}
|
|
4252
|
+
if (failureCases.length > 0) {
|
|
4253
|
+
const failureEventArgs = {
|
|
4254
|
+
error: {}
|
|
4255
|
+
};
|
|
4256
|
+
failureCases.forEach((failureCase, index) => {
|
|
4257
|
+
failureEventArgs.error[parseInt(index.toString(), 10)] = failureCase;
|
|
4258
|
+
});
|
|
4259
|
+
this.trigger(actionFailure, failureEventArgs);
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4150
4262
|
refreshToolbarItems() {
|
|
4151
4263
|
const toolbarElement = this.toolbarModule.getToolbar();
|
|
4152
4264
|
const indentID = this.element.id + '_gridcontrol_indent';
|
|
@@ -4352,11 +4464,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4352
4464
|
this.grid.on('initial-end', this.afterGridRender, this);
|
|
4353
4465
|
if (!isNullOrUndefined(this.loggerModule)) {
|
|
4354
4466
|
const loggerModule = 'loggerModule';
|
|
4355
|
-
this.loggerModule = this.grid[`${loggerModule}`] = new Logger
|
|
4467
|
+
this.loggerModule = this.grid[`${loggerModule}`] = new Logger(this.grid);
|
|
4356
4468
|
}
|
|
4357
4469
|
};
|
|
4358
4470
|
this.grid.printComplete = this.triggerEvents.bind(this);
|
|
4359
|
-
this.grid.actionFailure =
|
|
4471
|
+
this.grid.actionFailure = (args) => {
|
|
4472
|
+
this.trigger(actionFailure, args);
|
|
4473
|
+
};
|
|
4360
4474
|
this.extendedGridDataBoundEvent();
|
|
4361
4475
|
this.extendedGridEvents();
|
|
4362
4476
|
this.extendedGridActionEvents();
|
|
@@ -4444,7 +4558,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4444
4558
|
treeGrid.notify('dataProcessor', args);
|
|
4445
4559
|
//args = treeGrid.dataModule.dataProcessor(args);
|
|
4446
4560
|
}
|
|
4447
|
-
extend(args, treeGrid.dataResults);
|
|
4561
|
+
extend$1(args, treeGrid.dataResults);
|
|
4448
4562
|
if (treeGrid.enableImmutableMode) {
|
|
4449
4563
|
args.result = args.result.slice();
|
|
4450
4564
|
}
|
|
@@ -4724,9 +4838,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4724
4838
|
}
|
|
4725
4839
|
else {
|
|
4726
4840
|
if (this.grid.isFrozenGrid() && this.enableVirtualization && args['tableName'] === 'movable') {
|
|
4727
|
-
const movableContent
|
|
4728
|
-
const frozenContent
|
|
4729
|
-
movableContent
|
|
4841
|
+
const movableContent$1 = this.grid.element.querySelector('.' + movableContent);
|
|
4842
|
+
const frozenContent$1 = this.grid.element.querySelector('.' + frozenContent);
|
|
4843
|
+
movableContent$1.style.height = frozenContent$1.style.height = 'auto';
|
|
4730
4844
|
}
|
|
4731
4845
|
this.trigger(actionComplete, args);
|
|
4732
4846
|
}
|
|
@@ -5441,7 +5555,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5441
5555
|
if (this.grid.editModule) {
|
|
5442
5556
|
if (!isNullOrUndefined(index)) {
|
|
5443
5557
|
const griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
|
|
5444
|
-
extend(griddata, data);
|
|
5558
|
+
extend$1(griddata, data);
|
|
5445
5559
|
this.grid.editModule.updateRow(index, griddata);
|
|
5446
5560
|
}
|
|
5447
5561
|
else {
|
|
@@ -5458,6 +5572,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5458
5572
|
* @returns {void}
|
|
5459
5573
|
*/
|
|
5460
5574
|
deleteRecord(fieldName, data) {
|
|
5575
|
+
if ((isNullOrUndefined(fieldName) && (isNullOrUndefined(data)) || (this.getSelectedRecords().length <= 0))) {
|
|
5576
|
+
const error = 'The provided value for the fieldName and data is undefined. Please ensure the fieldName and data contains number.';
|
|
5577
|
+
this.trigger(actionFailure, { error: error });
|
|
5578
|
+
}
|
|
5461
5579
|
if (this.grid.editModule) {
|
|
5462
5580
|
this.grid.editModule.deleteRecord(fieldName, data);
|
|
5463
5581
|
}
|
|
@@ -5526,6 +5644,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5526
5644
|
* @returns {void}
|
|
5527
5645
|
*/
|
|
5528
5646
|
deleteRow(tr) {
|
|
5647
|
+
if (isNullOrUndefined(tr)) {
|
|
5648
|
+
const error = 'The provided value for the tr is undefined. Please ensure the tr contains HTMLTableRowElement.';
|
|
5649
|
+
this.trigger(actionFailure, { error: error });
|
|
5650
|
+
}
|
|
5529
5651
|
if (this.grid.editModule) {
|
|
5530
5652
|
this.grid.editModule.deleteRow(tr);
|
|
5531
5653
|
}
|
|
@@ -5551,9 +5673,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5551
5673
|
this.grid.setCellValue(key, field, value);
|
|
5552
5674
|
const rowIndex = this.grid.getRowIndexByPrimaryKey(key);
|
|
5553
5675
|
const record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
|
|
5554
|
-
if (
|
|
5555
|
-
|
|
5676
|
+
if (isNullOrUndefined(record)) {
|
|
5677
|
+
const error = 'The provided value for the record is undefined. Please ensure the record contains ITreeData.';
|
|
5678
|
+
this.trigger(actionFailure, { error: error });
|
|
5556
5679
|
}
|
|
5680
|
+
editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
|
|
5557
5681
|
}
|
|
5558
5682
|
/**
|
|
5559
5683
|
* Updates and refresh the particular row values based on the given primary key value.
|
|
@@ -5591,8 +5715,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5591
5715
|
this.grid.setRowData(key, rowData);
|
|
5592
5716
|
const visibleRecords = this.getVisibleRecords();
|
|
5593
5717
|
if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])[`${primaryKey}`]) {
|
|
5594
|
-
const table
|
|
5595
|
-
const sHeight = table
|
|
5718
|
+
const table = this.getContentTable();
|
|
5719
|
+
const sHeight = table.scrollHeight;
|
|
5596
5720
|
const clientHeight = this.getContent().clientHeight;
|
|
5597
5721
|
this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
|
|
5598
5722
|
}
|
|
@@ -5604,6 +5728,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5604
5728
|
* @returns {void}
|
|
5605
5729
|
*/
|
|
5606
5730
|
goToPage(pageNo) {
|
|
5731
|
+
if (isNullOrUndefined(pageNo)) {
|
|
5732
|
+
const error = 'The provided value for the pageNo is undefined. Please ensure the pageNo contains number.';
|
|
5733
|
+
this.trigger(actionFailure, { error: error });
|
|
5734
|
+
}
|
|
5607
5735
|
if (this.grid.pagerModule) {
|
|
5608
5736
|
this.grid.pagerModule.goToPage(pageNo);
|
|
5609
5737
|
}
|
|
@@ -5705,6 +5833,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5705
5833
|
* @returns {void}
|
|
5706
5834
|
*/
|
|
5707
5835
|
hideColumns(keys, hideBy) {
|
|
5836
|
+
if (isNullOrUndefined(keys)) {
|
|
5837
|
+
const error = 'The provided value for the keys is undefined. Please ensure the keys contains string.';
|
|
5838
|
+
this.trigger(actionFailure, { error: error });
|
|
5839
|
+
}
|
|
5708
5840
|
this.grid.hideColumns(keys, hideBy);
|
|
5709
5841
|
this.updateColumnModel();
|
|
5710
5842
|
}
|
|
@@ -5801,10 +5933,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5801
5933
|
if (this.grid.columns.length !== this.columnModel.length) {
|
|
5802
5934
|
this.stackedHeader = true;
|
|
5803
5935
|
}
|
|
5804
|
-
if (this.stackedHeader && this.allowResizing) {
|
|
5936
|
+
if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
|
|
5805
5937
|
this.updateColumnsWidth(this.columns);
|
|
5806
5938
|
}
|
|
5807
|
-
if (!this.stackedHeader) {
|
|
5939
|
+
if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
|
|
5808
5940
|
merge(this.columns, this.columnModel);
|
|
5809
5941
|
}
|
|
5810
5942
|
this[`${deepMerge}`] = undefined; // Workaround for blazor updateModel
|
|
@@ -5812,10 +5944,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5812
5944
|
}
|
|
5813
5945
|
updateColumnsWidth(columns) {
|
|
5814
5946
|
columns.forEach((column) => {
|
|
5815
|
-
if (column.columns) {
|
|
5947
|
+
if (!isNullOrUndefined(column) && column.columns) {
|
|
5816
5948
|
this.updateColumnsWidth(column.columns);
|
|
5817
5949
|
}
|
|
5818
|
-
else if (column.field) {
|
|
5950
|
+
else if (!isNullOrUndefined(column) && column.field) {
|
|
5819
5951
|
const currentColumn = this.grid.getColumnByField(column.field);
|
|
5820
5952
|
if (!isNullOrUndefined(currentColumn)) {
|
|
5821
5953
|
column.width = currentColumn.width;
|
|
@@ -6118,6 +6250,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6118
6250
|
* @returns {void}
|
|
6119
6251
|
*/
|
|
6120
6252
|
expandRow(row, record, key, level) {
|
|
6253
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
6254
|
+
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6255
|
+
this.trigger(actionFailure, { error: error });
|
|
6256
|
+
}
|
|
6121
6257
|
let parentRec = this.parentData;
|
|
6122
6258
|
if (!this.enableVirtualization) {
|
|
6123
6259
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6141,13 +6277,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6141
6277
|
if (expandingArgs.expandAll) {
|
|
6142
6278
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6143
6279
|
}
|
|
6144
|
-
this.expandRows(row, record, parentRec
|
|
6280
|
+
this.expandRows(row, record, parentRec);
|
|
6145
6281
|
}
|
|
6146
6282
|
});
|
|
6147
6283
|
}
|
|
6148
6284
|
else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
|
|
6149
6285
|
!this.expandAllPrevent && this.isExpandingEventTriggered) {
|
|
6150
|
-
this.expandRows(row, record, parentRec
|
|
6286
|
+
this.expandRows(row, record, parentRec);
|
|
6151
6287
|
}
|
|
6152
6288
|
this.isExpandingEventTriggered = true;
|
|
6153
6289
|
}
|
|
@@ -6158,13 +6294,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6158
6294
|
if (expandingArgs.expandAll) {
|
|
6159
6295
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6160
6296
|
}
|
|
6161
|
-
this.expandRows(row, record, parentRec
|
|
6297
|
+
this.expandRows(row, record, parentRec);
|
|
6162
6298
|
}
|
|
6163
6299
|
});
|
|
6164
6300
|
}
|
|
6165
6301
|
}
|
|
6166
6302
|
// Internal method to handle the rows expand
|
|
6167
|
-
expandRows(row, record, parentRec
|
|
6303
|
+
expandRows(row, record, parentRec) {
|
|
6168
6304
|
this.expandCollapse('expand', row, record);
|
|
6169
6305
|
const children = 'Children';
|
|
6170
6306
|
if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record[`${children}`]))) {
|
|
@@ -6234,6 +6370,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6234
6370
|
* @returns {void}
|
|
6235
6371
|
*/
|
|
6236
6372
|
collapseRow(row, record, key) {
|
|
6373
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
6374
|
+
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6375
|
+
this.trigger(actionFailure, { error: error });
|
|
6376
|
+
}
|
|
6237
6377
|
let parentRec = this.parentData;
|
|
6238
6378
|
if (!this.enableVirtualization) {
|
|
6239
6379
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6250,12 +6390,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6250
6390
|
if (collapsingArgs.collapseAll) {
|
|
6251
6391
|
this.expandCollapseAllChildren(record, 'collapse', key);
|
|
6252
6392
|
}
|
|
6253
|
-
this.collapseRows(row, record, parentRec
|
|
6393
|
+
this.collapseRows(row, record, parentRec);
|
|
6254
6394
|
}
|
|
6255
6395
|
});
|
|
6256
6396
|
}
|
|
6257
6397
|
else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
|
|
6258
|
-
this.collapseRows(row, record, parentRec
|
|
6398
|
+
this.collapseRows(row, record, parentRec);
|
|
6259
6399
|
}
|
|
6260
6400
|
this.isCollapsingEventTriggered = true;
|
|
6261
6401
|
}
|
|
@@ -6263,13 +6403,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6263
6403
|
const args = { data: record, row: row, cancel: false };
|
|
6264
6404
|
this.trigger(collapsing, args, (collapsingArgs) => {
|
|
6265
6405
|
if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
|
|
6266
|
-
this.collapseRows(row, record, parentRec
|
|
6406
|
+
this.collapseRows(row, record, parentRec);
|
|
6267
6407
|
}
|
|
6268
6408
|
});
|
|
6269
6409
|
}
|
|
6270
6410
|
}
|
|
6271
6411
|
// Internal method for handling the rows collapse
|
|
6272
|
-
collapseRows(row, record, parentRec
|
|
6412
|
+
collapseRows(row, record, parentRec) {
|
|
6273
6413
|
this.expandCollapse('collapse', row, record);
|
|
6274
6414
|
let collapseArgs = { data: record, row: row };
|
|
6275
6415
|
if (!isRemoteData(this)) {
|
|
@@ -6313,6 +6453,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6313
6453
|
* @returns {void}
|
|
6314
6454
|
*/
|
|
6315
6455
|
expandAtLevel(level) {
|
|
6456
|
+
if (isNullOrUndefined(level)) {
|
|
6457
|
+
const error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6458
|
+
this.trigger(actionFailure, { error: error });
|
|
6459
|
+
}
|
|
6316
6460
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6317
6461
|
const rec = this.grid.dataSource.filter((e) => {
|
|
6318
6462
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6335,6 +6479,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6335
6479
|
* @returns {void}
|
|
6336
6480
|
*/
|
|
6337
6481
|
expandByKey(key) {
|
|
6482
|
+
if (isNullOrUndefined(key)) {
|
|
6483
|
+
const error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6484
|
+
this.trigger(actionFailure, { error: error });
|
|
6485
|
+
}
|
|
6338
6486
|
this.expandCollapseActionByKey(key, 'Expand');
|
|
6339
6487
|
}
|
|
6340
6488
|
expandAction(record, key, level, isPaging = false) {
|
|
@@ -6387,6 +6535,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6387
6535
|
* @returns {void}
|
|
6388
6536
|
*/
|
|
6389
6537
|
collapseAtLevel(level) {
|
|
6538
|
+
if (isNullOrUndefined(level)) {
|
|
6539
|
+
const error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6540
|
+
this.trigger(actionFailure, { error: error });
|
|
6541
|
+
}
|
|
6390
6542
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6391
6543
|
const record = this.grid.dataSource.filter((e) => {
|
|
6392
6544
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6409,6 +6561,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6409
6561
|
* @returns {void}
|
|
6410
6562
|
*/
|
|
6411
6563
|
collapseByKey(key) {
|
|
6564
|
+
if (isNullOrUndefined(key)) {
|
|
6565
|
+
const error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6566
|
+
this.trigger(actionFailure, { error: error });
|
|
6567
|
+
}
|
|
6412
6568
|
this.expandCollapseActionByKey(key, 'Collapse');
|
|
6413
6569
|
}
|
|
6414
6570
|
expandCollapseActionByKey(key, action) {
|
|
@@ -6448,6 +6604,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6448
6604
|
* @returns {void}
|
|
6449
6605
|
*/
|
|
6450
6606
|
expandAll() {
|
|
6607
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6608
|
+
const error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6609
|
+
this.trigger(actionFailure, { error: error });
|
|
6610
|
+
}
|
|
6451
6611
|
this.isExpandedEventTriggered = false;
|
|
6452
6612
|
this.isExpandingEventTriggered = false;
|
|
6453
6613
|
this.expandCollapseAll('expand');
|
|
@@ -6458,6 +6618,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6458
6618
|
* @returns {void}
|
|
6459
6619
|
*/
|
|
6460
6620
|
collapseAll() {
|
|
6621
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6622
|
+
const error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6623
|
+
this.trigger(actionFailure, { error: error });
|
|
6624
|
+
}
|
|
6461
6625
|
this.isCollapsedEventTriggered = false;
|
|
6462
6626
|
this.isCollapsingEventTriggered = false;
|
|
6463
6627
|
this.expandCollapseAll('collapse');
|
|
@@ -6624,8 +6788,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6624
6788
|
totalRows = [].slice.call(rows);
|
|
6625
6789
|
for (let i = totalRows.length - 1; i >= 0; i--) {
|
|
6626
6790
|
if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
|
|
6627
|
-
const table
|
|
6628
|
-
const sHeight = table
|
|
6791
|
+
const table = this.getContentTable();
|
|
6792
|
+
const sHeight = table.scrollHeight;
|
|
6629
6793
|
const clientHeight = this.getContent().clientHeight;
|
|
6630
6794
|
this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
|
|
6631
6795
|
break;
|
|
@@ -6684,8 +6848,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6684
6848
|
if (childData[parseInt(i.toString(), 10)]) {
|
|
6685
6849
|
childData[parseInt(i.toString(), 10)].level = record.level + 1;
|
|
6686
6850
|
childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
|
|
6687
|
-
childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
|
|
6688
|
-
childData[parseInt(i.toString(), 10)].taskData = extend({}, childData[parseInt(i.toString(), 10)]);
|
|
6851
|
+
childData[parseInt(i.toString(), 10)].parentItem = extend$1({}, record);
|
|
6852
|
+
childData[parseInt(i.toString(), 10)].taskData = extend$1({}, childData[parseInt(i.toString(), 10)]);
|
|
6689
6853
|
delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
|
|
6690
6854
|
delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
|
|
6691
6855
|
childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
|
|
@@ -6999,6 +7163,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6999
7163
|
* @returns {void}
|
|
7000
7164
|
*/
|
|
7001
7165
|
filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
|
|
7166
|
+
if (isNullOrUndefined(fieldName) && isNullOrUndefined(filterOperator) && isNullOrUndefined(filterValue)) {
|
|
7167
|
+
const error = 'The provided value for the fieldName, filterOperator and filterValue are undefined. Please ensure the fieldName, filterOperator and filterValue.';
|
|
7168
|
+
this.trigger(actionFailure, { error: error });
|
|
7169
|
+
}
|
|
7002
7170
|
this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
|
|
7003
7171
|
}
|
|
7004
7172
|
/**
|
|
@@ -7065,6 +7233,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7065
7233
|
* @returns {void}
|
|
7066
7234
|
*/
|
|
7067
7235
|
paste(data, rowIndex, colIndex) {
|
|
7236
|
+
if (isNullOrUndefined(data) && isNullOrUndefined(rowIndex) && isNullOrUndefined(colIndex)) {
|
|
7237
|
+
const error = 'The provided value for the index is undefined. Please ensure the index contains number.';
|
|
7238
|
+
this.trigger(actionFailure, { error: error });
|
|
7239
|
+
}
|
|
7068
7240
|
this.clipboardModule.paste(data, rowIndex, colIndex);
|
|
7069
7241
|
}
|
|
7070
7242
|
/**
|
|
@@ -7276,7 +7448,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7276
7448
|
* @returns {number} - Returns frozen column count
|
|
7277
7449
|
*/
|
|
7278
7450
|
getFrozenColumns() {
|
|
7279
|
-
return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
|
|
7451
|
+
return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
|
|
7280
7452
|
}
|
|
7281
7453
|
getFrozenCount(cols, cnt) {
|
|
7282
7454
|
for (let j = 0, len = cols.length; j < len; j++) {
|
|
@@ -7333,6 +7505,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7333
7505
|
* @returns {void}
|
|
7334
7506
|
*/
|
|
7335
7507
|
reorderRows(fromIndexes, toIndex, position) {
|
|
7508
|
+
if (isNullOrUndefined(fromIndexes) && isNullOrUndefined(toIndex) && isNullOrUndefined(position)) {
|
|
7509
|
+
const error = 'The provided value for the fromIndexes, toIndex and position is undefined. Please ensure the fromIndexes and toIndex contains number and position contains string.';
|
|
7510
|
+
this.trigger(actionFailure, { error: error });
|
|
7511
|
+
}
|
|
7336
7512
|
this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
|
|
7337
7513
|
}
|
|
7338
7514
|
/**
|
|
@@ -7360,400 +7536,400 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7360
7536
|
}
|
|
7361
7537
|
}
|
|
7362
7538
|
};
|
|
7363
|
-
__decorate([
|
|
7539
|
+
__decorate$b([
|
|
7364
7540
|
Property(0)
|
|
7365
7541
|
], TreeGrid.prototype, "frozenRows", void 0);
|
|
7366
|
-
__decorate([
|
|
7542
|
+
__decorate$b([
|
|
7367
7543
|
Property(0)
|
|
7368
7544
|
], TreeGrid.prototype, "frozenColumns", void 0);
|
|
7369
|
-
__decorate([
|
|
7545
|
+
__decorate$b([
|
|
7370
7546
|
Property('Ellipsis')
|
|
7371
7547
|
], TreeGrid.prototype, "clipMode", void 0);
|
|
7372
|
-
__decorate([
|
|
7548
|
+
__decorate$b([
|
|
7373
7549
|
Property([])
|
|
7374
7550
|
], TreeGrid.prototype, "columns", void 0);
|
|
7375
|
-
__decorate([
|
|
7551
|
+
__decorate$b([
|
|
7376
7552
|
Property(null)
|
|
7377
7553
|
], TreeGrid.prototype, "childMapping", void 0);
|
|
7378
|
-
__decorate([
|
|
7554
|
+
__decorate$b([
|
|
7379
7555
|
Property(null)
|
|
7380
7556
|
], TreeGrid.prototype, "hasChildMapping", void 0);
|
|
7381
|
-
__decorate([
|
|
7557
|
+
__decorate$b([
|
|
7382
7558
|
Property(0)
|
|
7383
7559
|
], TreeGrid.prototype, "treeColumnIndex", void 0);
|
|
7384
|
-
__decorate([
|
|
7560
|
+
__decorate$b([
|
|
7385
7561
|
Property(null)
|
|
7386
7562
|
], TreeGrid.prototype, "idMapping", void 0);
|
|
7387
|
-
__decorate([
|
|
7563
|
+
__decorate$b([
|
|
7388
7564
|
Property(null)
|
|
7389
7565
|
], TreeGrid.prototype, "parentIdMapping", void 0);
|
|
7390
|
-
__decorate([
|
|
7566
|
+
__decorate$b([
|
|
7391
7567
|
Property(false)
|
|
7392
7568
|
], TreeGrid.prototype, "enableCollapseAll", void 0);
|
|
7393
|
-
__decorate([
|
|
7569
|
+
__decorate$b([
|
|
7394
7570
|
Property(null)
|
|
7395
7571
|
], TreeGrid.prototype, "expandStateMapping", void 0);
|
|
7396
|
-
__decorate([
|
|
7572
|
+
__decorate$b([
|
|
7397
7573
|
Property(false)
|
|
7398
7574
|
], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
|
|
7399
|
-
__decorate([
|
|
7575
|
+
__decorate$b([
|
|
7400
7576
|
Property([])
|
|
7401
7577
|
], TreeGrid.prototype, "dataSource", void 0);
|
|
7402
|
-
__decorate([
|
|
7578
|
+
__decorate$b([
|
|
7403
7579
|
Property()
|
|
7404
7580
|
], TreeGrid.prototype, "query", void 0);
|
|
7405
|
-
__decorate([
|
|
7581
|
+
__decorate$b([
|
|
7406
7582
|
Property()
|
|
7407
7583
|
], TreeGrid.prototype, "cloneQuery", void 0);
|
|
7408
|
-
__decorate([
|
|
7584
|
+
__decorate$b([
|
|
7409
7585
|
Property('AllPages')
|
|
7410
7586
|
], TreeGrid.prototype, "printMode", void 0);
|
|
7411
|
-
__decorate([
|
|
7587
|
+
__decorate$b([
|
|
7412
7588
|
Property(false)
|
|
7413
7589
|
], TreeGrid.prototype, "allowPaging", void 0);
|
|
7414
|
-
__decorate([
|
|
7590
|
+
__decorate$b([
|
|
7415
7591
|
Property(false)
|
|
7416
7592
|
], TreeGrid.prototype, "loadChildOnDemand", void 0);
|
|
7417
|
-
__decorate([
|
|
7593
|
+
__decorate$b([
|
|
7418
7594
|
Property(false)
|
|
7419
7595
|
], TreeGrid.prototype, "allowTextWrap", void 0);
|
|
7420
|
-
__decorate([
|
|
7596
|
+
__decorate$b([
|
|
7421
7597
|
Complex({}, TextWrapSettings)
|
|
7422
7598
|
], TreeGrid.prototype, "textWrapSettings", void 0);
|
|
7423
|
-
__decorate([
|
|
7599
|
+
__decorate$b([
|
|
7424
7600
|
Property(false)
|
|
7425
7601
|
], TreeGrid.prototype, "allowReordering", void 0);
|
|
7426
|
-
__decorate([
|
|
7602
|
+
__decorate$b([
|
|
7427
7603
|
Property(false)
|
|
7428
7604
|
], TreeGrid.prototype, "allowResizing", void 0);
|
|
7429
|
-
__decorate([
|
|
7605
|
+
__decorate$b([
|
|
7430
7606
|
Property(false)
|
|
7431
7607
|
], TreeGrid.prototype, "autoCheckHierarchy", void 0);
|
|
7432
|
-
__decorate([
|
|
7608
|
+
__decorate$b([
|
|
7433
7609
|
Complex({}, PageSettings)
|
|
7434
7610
|
], TreeGrid.prototype, "pageSettings", void 0);
|
|
7435
|
-
__decorate([
|
|
7436
|
-
Complex({}, RowDropSettings)
|
|
7611
|
+
__decorate$b([
|
|
7612
|
+
Complex({}, RowDropSettings$1)
|
|
7437
7613
|
], TreeGrid.prototype, "rowDropSettings", void 0);
|
|
7438
|
-
__decorate([
|
|
7614
|
+
__decorate$b([
|
|
7439
7615
|
Property('USD')
|
|
7440
7616
|
], TreeGrid.prototype, "currencyCode", void 0);
|
|
7441
|
-
__decorate([
|
|
7617
|
+
__decorate$b([
|
|
7442
7618
|
Property()
|
|
7443
7619
|
], TreeGrid.prototype, "pagerTemplate", void 0);
|
|
7444
|
-
__decorate([
|
|
7620
|
+
__decorate$b([
|
|
7445
7621
|
Property(false)
|
|
7446
7622
|
], TreeGrid.prototype, "showColumnMenu", void 0);
|
|
7447
|
-
__decorate([
|
|
7623
|
+
__decorate$b([
|
|
7448
7624
|
Property(false)
|
|
7449
7625
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
7450
|
-
__decorate([
|
|
7626
|
+
__decorate$b([
|
|
7451
7627
|
Property(false)
|
|
7452
7628
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
7453
|
-
__decorate([
|
|
7629
|
+
__decorate$b([
|
|
7454
7630
|
Property(true)
|
|
7455
7631
|
], TreeGrid.prototype, "allowMultiSorting", void 0);
|
|
7456
|
-
__decorate([
|
|
7632
|
+
__decorate$b([
|
|
7457
7633
|
Complex({}, SortSettings)
|
|
7458
7634
|
], TreeGrid.prototype, "sortSettings", void 0);
|
|
7459
|
-
__decorate([
|
|
7635
|
+
__decorate$b([
|
|
7460
7636
|
Collection([], AggregateRow)
|
|
7461
7637
|
], TreeGrid.prototype, "aggregates", void 0);
|
|
7462
|
-
__decorate([
|
|
7638
|
+
__decorate$b([
|
|
7463
7639
|
Complex({}, EditSettings)
|
|
7464
7640
|
], TreeGrid.prototype, "editSettings", void 0);
|
|
7465
|
-
__decorate([
|
|
7641
|
+
__decorate$b([
|
|
7466
7642
|
Property(false)
|
|
7467
7643
|
], TreeGrid.prototype, "allowFiltering", void 0);
|
|
7468
|
-
__decorate([
|
|
7644
|
+
__decorate$b([
|
|
7469
7645
|
Property()
|
|
7470
7646
|
], TreeGrid.prototype, "detailTemplate", void 0);
|
|
7471
|
-
__decorate([
|
|
7647
|
+
__decorate$b([
|
|
7472
7648
|
Complex({}, FilterSettings)
|
|
7473
7649
|
], TreeGrid.prototype, "filterSettings", void 0);
|
|
7474
|
-
__decorate([
|
|
7650
|
+
__decorate$b([
|
|
7475
7651
|
Complex({}, SearchSettings)
|
|
7476
7652
|
], TreeGrid.prototype, "searchSettings", void 0);
|
|
7477
|
-
__decorate([
|
|
7653
|
+
__decorate$b([
|
|
7478
7654
|
Property()
|
|
7479
7655
|
], TreeGrid.prototype, "toolbar", void 0);
|
|
7480
|
-
__decorate([
|
|
7656
|
+
__decorate$b([
|
|
7481
7657
|
Property()
|
|
7482
7658
|
], TreeGrid.prototype, "toolbarTemplate", void 0);
|
|
7483
|
-
__decorate([
|
|
7659
|
+
__decorate$b([
|
|
7484
7660
|
Property('Default')
|
|
7485
7661
|
], TreeGrid.prototype, "gridLines", void 0);
|
|
7486
|
-
__decorate([
|
|
7662
|
+
__decorate$b([
|
|
7487
7663
|
Property()
|
|
7488
7664
|
], TreeGrid.prototype, "contextMenuItems", void 0);
|
|
7489
|
-
__decorate([
|
|
7665
|
+
__decorate$b([
|
|
7490
7666
|
Property()
|
|
7491
7667
|
], TreeGrid.prototype, "columnMenuItems", void 0);
|
|
7492
|
-
__decorate([
|
|
7668
|
+
__decorate$b([
|
|
7493
7669
|
Property()
|
|
7494
7670
|
], TreeGrid.prototype, "rowTemplate", void 0);
|
|
7495
|
-
__decorate([
|
|
7671
|
+
__decorate$b([
|
|
7496
7672
|
Property('Parent')
|
|
7497
7673
|
], TreeGrid.prototype, "copyHierarchyMode", void 0);
|
|
7498
|
-
__decorate([
|
|
7674
|
+
__decorate$b([
|
|
7499
7675
|
Property(null)
|
|
7500
7676
|
], TreeGrid.prototype, "rowHeight", void 0);
|
|
7501
|
-
__decorate([
|
|
7677
|
+
__decorate$b([
|
|
7502
7678
|
Property(true)
|
|
7503
7679
|
], TreeGrid.prototype, "enableAltRow", void 0);
|
|
7504
|
-
__decorate([
|
|
7680
|
+
__decorate$b([
|
|
7505
7681
|
Property(true)
|
|
7506
7682
|
], TreeGrid.prototype, "allowKeyboard", void 0);
|
|
7507
|
-
__decorate([
|
|
7683
|
+
__decorate$b([
|
|
7508
7684
|
Property(false)
|
|
7509
7685
|
], TreeGrid.prototype, "enableHover", void 0);
|
|
7510
|
-
__decorate([
|
|
7686
|
+
__decorate$b([
|
|
7511
7687
|
Property(false)
|
|
7512
7688
|
], TreeGrid.prototype, "enableAutoFill", void 0);
|
|
7513
|
-
__decorate([
|
|
7689
|
+
__decorate$b([
|
|
7514
7690
|
Property(false)
|
|
7515
7691
|
], TreeGrid.prototype, "enableAdaptiveUI", void 0);
|
|
7516
|
-
__decorate([
|
|
7692
|
+
__decorate$b([
|
|
7517
7693
|
Property(false)
|
|
7518
7694
|
], TreeGrid.prototype, "enableImmutableMode", void 0);
|
|
7519
|
-
__decorate([
|
|
7695
|
+
__decorate$b([
|
|
7520
7696
|
Property('auto')
|
|
7521
7697
|
], TreeGrid.prototype, "height", void 0);
|
|
7522
|
-
__decorate([
|
|
7698
|
+
__decorate$b([
|
|
7523
7699
|
Property('auto')
|
|
7524
7700
|
], TreeGrid.prototype, "width", void 0);
|
|
7525
|
-
__decorate([
|
|
7701
|
+
__decorate$b([
|
|
7526
7702
|
Complex({}, LoadingIndicator)
|
|
7527
7703
|
], TreeGrid.prototype, "loadingIndicator", void 0);
|
|
7528
|
-
__decorate([
|
|
7704
|
+
__decorate$b([
|
|
7529
7705
|
Property(true)
|
|
7530
7706
|
], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
|
|
7531
|
-
__decorate([
|
|
7707
|
+
__decorate$b([
|
|
7532
7708
|
Property(false)
|
|
7533
7709
|
], TreeGrid.prototype, "enableVirtualization", void 0);
|
|
7534
|
-
__decorate([
|
|
7710
|
+
__decorate$b([
|
|
7535
7711
|
Property(false)
|
|
7536
7712
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
7537
|
-
__decorate([
|
|
7713
|
+
__decorate$b([
|
|
7538
7714
|
Property(false)
|
|
7539
7715
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
7540
|
-
__decorate([
|
|
7716
|
+
__decorate$b([
|
|
7541
7717
|
Property(false)
|
|
7542
7718
|
], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
|
|
7543
|
-
__decorate([
|
|
7719
|
+
__decorate$b([
|
|
7544
7720
|
Complex({}, InfiniteScrollSettings)
|
|
7545
7721
|
], TreeGrid.prototype, "infiniteScrollSettings", void 0);
|
|
7546
|
-
__decorate([
|
|
7722
|
+
__decorate$b([
|
|
7547
7723
|
Property('All')
|
|
7548
7724
|
], TreeGrid.prototype, "columnQueryMode", void 0);
|
|
7549
|
-
__decorate([
|
|
7725
|
+
__decorate$b([
|
|
7550
7726
|
Event()
|
|
7551
7727
|
], TreeGrid.prototype, "created", void 0);
|
|
7552
|
-
__decorate([
|
|
7728
|
+
__decorate$b([
|
|
7553
7729
|
Event()
|
|
7554
7730
|
], TreeGrid.prototype, "load", void 0);
|
|
7555
|
-
__decorate([
|
|
7731
|
+
__decorate$b([
|
|
7556
7732
|
Event()
|
|
7557
7733
|
], TreeGrid.prototype, "expanding", void 0);
|
|
7558
|
-
__decorate([
|
|
7734
|
+
__decorate$b([
|
|
7559
7735
|
Event()
|
|
7560
7736
|
], TreeGrid.prototype, "expanded", void 0);
|
|
7561
|
-
__decorate([
|
|
7737
|
+
__decorate$b([
|
|
7562
7738
|
Event()
|
|
7563
7739
|
], TreeGrid.prototype, "collapsing", void 0);
|
|
7564
|
-
__decorate([
|
|
7740
|
+
__decorate$b([
|
|
7565
7741
|
Event()
|
|
7566
7742
|
], TreeGrid.prototype, "collapsed", void 0);
|
|
7567
|
-
__decorate([
|
|
7743
|
+
__decorate$b([
|
|
7568
7744
|
Event()
|
|
7569
7745
|
], TreeGrid.prototype, "cellSave", void 0);
|
|
7570
|
-
__decorate([
|
|
7746
|
+
__decorate$b([
|
|
7571
7747
|
Event()
|
|
7572
7748
|
], TreeGrid.prototype, "cellSaved", void 0);
|
|
7573
|
-
__decorate([
|
|
7749
|
+
__decorate$b([
|
|
7574
7750
|
Event()
|
|
7575
7751
|
], TreeGrid.prototype, "actionBegin", void 0);
|
|
7576
|
-
__decorate([
|
|
7752
|
+
__decorate$b([
|
|
7577
7753
|
Event()
|
|
7578
7754
|
], TreeGrid.prototype, "actionComplete", void 0);
|
|
7579
|
-
__decorate([
|
|
7755
|
+
__decorate$b([
|
|
7580
7756
|
Event()
|
|
7581
7757
|
], TreeGrid.prototype, "beginEdit", void 0);
|
|
7582
|
-
__decorate([
|
|
7758
|
+
__decorate$b([
|
|
7583
7759
|
Event()
|
|
7584
7760
|
], TreeGrid.prototype, "batchAdd", void 0);
|
|
7585
|
-
__decorate([
|
|
7761
|
+
__decorate$b([
|
|
7586
7762
|
Event()
|
|
7587
7763
|
], TreeGrid.prototype, "batchDelete", void 0);
|
|
7588
|
-
__decorate([
|
|
7764
|
+
__decorate$b([
|
|
7589
7765
|
Event()
|
|
7590
7766
|
], TreeGrid.prototype, "batchCancel", void 0);
|
|
7591
|
-
__decorate([
|
|
7767
|
+
__decorate$b([
|
|
7592
7768
|
Event()
|
|
7593
7769
|
], TreeGrid.prototype, "beforeBatchAdd", void 0);
|
|
7594
|
-
__decorate([
|
|
7770
|
+
__decorate$b([
|
|
7595
7771
|
Event()
|
|
7596
7772
|
], TreeGrid.prototype, "beforeBatchDelete", void 0);
|
|
7597
|
-
__decorate([
|
|
7773
|
+
__decorate$b([
|
|
7598
7774
|
Event()
|
|
7599
7775
|
], TreeGrid.prototype, "beforeBatchSave", void 0);
|
|
7600
|
-
__decorate([
|
|
7776
|
+
__decorate$b([
|
|
7601
7777
|
Event()
|
|
7602
7778
|
], TreeGrid.prototype, "cellEdit", void 0);
|
|
7603
|
-
__decorate([
|
|
7779
|
+
__decorate$b([
|
|
7604
7780
|
Event()
|
|
7605
7781
|
], TreeGrid.prototype, "actionFailure", void 0);
|
|
7606
|
-
__decorate([
|
|
7782
|
+
__decorate$b([
|
|
7607
7783
|
Event()
|
|
7608
7784
|
], TreeGrid.prototype, "dataBound", void 0);
|
|
7609
|
-
__decorate([
|
|
7785
|
+
__decorate$b([
|
|
7610
7786
|
Event()
|
|
7611
7787
|
], TreeGrid.prototype, "dataSourceChanged", void 0);
|
|
7612
|
-
__decorate([
|
|
7788
|
+
__decorate$b([
|
|
7613
7789
|
Event()
|
|
7614
7790
|
], TreeGrid.prototype, "dataStateChange", void 0);
|
|
7615
|
-
__decorate([
|
|
7791
|
+
__decorate$b([
|
|
7616
7792
|
Event()
|
|
7617
7793
|
], TreeGrid.prototype, "recordDoubleClick", void 0);
|
|
7618
|
-
__decorate([
|
|
7794
|
+
__decorate$b([
|
|
7619
7795
|
Event()
|
|
7620
7796
|
], TreeGrid.prototype, "rowDataBound", void 0);
|
|
7621
|
-
__decorate([
|
|
7797
|
+
__decorate$b([
|
|
7622
7798
|
Event()
|
|
7623
7799
|
], TreeGrid.prototype, "detailDataBound", void 0);
|
|
7624
|
-
__decorate([
|
|
7800
|
+
__decorate$b([
|
|
7625
7801
|
Event()
|
|
7626
7802
|
], TreeGrid.prototype, "queryCellInfo", void 0);
|
|
7627
|
-
__decorate([
|
|
7803
|
+
__decorate$b([
|
|
7628
7804
|
Property(true)
|
|
7629
7805
|
], TreeGrid.prototype, "allowSelection", void 0);
|
|
7630
|
-
__decorate([
|
|
7806
|
+
__decorate$b([
|
|
7631
7807
|
Event()
|
|
7632
7808
|
], TreeGrid.prototype, "rowSelecting", void 0);
|
|
7633
|
-
__decorate([
|
|
7809
|
+
__decorate$b([
|
|
7634
7810
|
Event()
|
|
7635
7811
|
], TreeGrid.prototype, "rowSelected", void 0);
|
|
7636
|
-
__decorate([
|
|
7812
|
+
__decorate$b([
|
|
7637
7813
|
Event()
|
|
7638
7814
|
], TreeGrid.prototype, "rowDeselecting", void 0);
|
|
7639
|
-
__decorate([
|
|
7815
|
+
__decorate$b([
|
|
7640
7816
|
Event()
|
|
7641
7817
|
], TreeGrid.prototype, "rowDeselected", void 0);
|
|
7642
|
-
__decorate([
|
|
7818
|
+
__decorate$b([
|
|
7643
7819
|
Event()
|
|
7644
7820
|
], TreeGrid.prototype, "headerCellInfo", void 0);
|
|
7645
|
-
__decorate([
|
|
7821
|
+
__decorate$b([
|
|
7646
7822
|
Event()
|
|
7647
7823
|
], TreeGrid.prototype, "cellSelecting", void 0);
|
|
7648
|
-
__decorate([
|
|
7824
|
+
__decorate$b([
|
|
7649
7825
|
Event()
|
|
7650
7826
|
], TreeGrid.prototype, "columnMenuOpen", void 0);
|
|
7651
|
-
__decorate([
|
|
7827
|
+
__decorate$b([
|
|
7652
7828
|
Event()
|
|
7653
7829
|
], TreeGrid.prototype, "columnMenuClick", void 0);
|
|
7654
|
-
__decorate([
|
|
7830
|
+
__decorate$b([
|
|
7655
7831
|
Event()
|
|
7656
7832
|
], TreeGrid.prototype, "cellSelected", void 0);
|
|
7657
|
-
__decorate([
|
|
7833
|
+
__decorate$b([
|
|
7658
7834
|
Event()
|
|
7659
7835
|
], TreeGrid.prototype, "cellDeselecting", void 0);
|
|
7660
|
-
__decorate([
|
|
7836
|
+
__decorate$b([
|
|
7661
7837
|
Event()
|
|
7662
7838
|
], TreeGrid.prototype, "cellDeselected", void 0);
|
|
7663
|
-
__decorate([
|
|
7839
|
+
__decorate$b([
|
|
7664
7840
|
Event()
|
|
7665
7841
|
], TreeGrid.prototype, "resizeStart", void 0);
|
|
7666
|
-
__decorate([
|
|
7842
|
+
__decorate$b([
|
|
7667
7843
|
Event()
|
|
7668
7844
|
], TreeGrid.prototype, "resizing", void 0);
|
|
7669
|
-
__decorate([
|
|
7845
|
+
__decorate$b([
|
|
7670
7846
|
Event()
|
|
7671
7847
|
], TreeGrid.prototype, "resizeStop", void 0);
|
|
7672
|
-
__decorate([
|
|
7848
|
+
__decorate$b([
|
|
7673
7849
|
Event()
|
|
7674
7850
|
], TreeGrid.prototype, "columnDragStart", void 0);
|
|
7675
|
-
__decorate([
|
|
7851
|
+
__decorate$b([
|
|
7676
7852
|
Event()
|
|
7677
7853
|
], TreeGrid.prototype, "columnDrag", void 0);
|
|
7678
|
-
__decorate([
|
|
7854
|
+
__decorate$b([
|
|
7679
7855
|
Event()
|
|
7680
7856
|
], TreeGrid.prototype, "columnDrop", void 0);
|
|
7681
|
-
__decorate([
|
|
7857
|
+
__decorate$b([
|
|
7682
7858
|
Event()
|
|
7683
7859
|
], TreeGrid.prototype, "checkboxChange", void 0);
|
|
7684
|
-
__decorate([
|
|
7860
|
+
__decorate$b([
|
|
7685
7861
|
Event()
|
|
7686
7862
|
], TreeGrid.prototype, "printComplete", void 0);
|
|
7687
|
-
__decorate([
|
|
7863
|
+
__decorate$b([
|
|
7688
7864
|
Event()
|
|
7689
7865
|
], TreeGrid.prototype, "beforePrint", void 0);
|
|
7690
|
-
__decorate([
|
|
7866
|
+
__decorate$b([
|
|
7691
7867
|
Event()
|
|
7692
7868
|
], TreeGrid.prototype, "toolbarClick", void 0);
|
|
7693
|
-
__decorate([
|
|
7869
|
+
__decorate$b([
|
|
7694
7870
|
Event()
|
|
7695
7871
|
], TreeGrid.prototype, "beforeDataBound", void 0);
|
|
7696
|
-
__decorate([
|
|
7872
|
+
__decorate$b([
|
|
7697
7873
|
Event()
|
|
7698
7874
|
], TreeGrid.prototype, "contextMenuOpen", void 0);
|
|
7699
|
-
__decorate([
|
|
7875
|
+
__decorate$b([
|
|
7700
7876
|
Event()
|
|
7701
7877
|
], TreeGrid.prototype, "contextMenuClick", void 0);
|
|
7702
|
-
__decorate([
|
|
7878
|
+
__decorate$b([
|
|
7703
7879
|
Event()
|
|
7704
7880
|
], TreeGrid.prototype, "beforeCopy", void 0);
|
|
7705
|
-
__decorate([
|
|
7881
|
+
__decorate$b([
|
|
7706
7882
|
Event()
|
|
7707
7883
|
], TreeGrid.prototype, "beforePaste", void 0);
|
|
7708
|
-
__decorate([
|
|
7884
|
+
__decorate$b([
|
|
7709
7885
|
Event()
|
|
7710
7886
|
], TreeGrid.prototype, "rowDrag", void 0);
|
|
7711
|
-
__decorate([
|
|
7887
|
+
__decorate$b([
|
|
7712
7888
|
Event()
|
|
7713
7889
|
], TreeGrid.prototype, "rowDragStart", void 0);
|
|
7714
|
-
__decorate([
|
|
7890
|
+
__decorate$b([
|
|
7715
7891
|
Event()
|
|
7716
7892
|
], TreeGrid.prototype, "rowDragStartHelper", void 0);
|
|
7717
|
-
__decorate([
|
|
7893
|
+
__decorate$b([
|
|
7718
7894
|
Event()
|
|
7719
7895
|
], TreeGrid.prototype, "rowDrop", void 0);
|
|
7720
|
-
__decorate([
|
|
7896
|
+
__decorate$b([
|
|
7721
7897
|
Property(-1)
|
|
7722
7898
|
], TreeGrid.prototype, "selectedRowIndex", void 0);
|
|
7723
|
-
__decorate([
|
|
7899
|
+
__decorate$b([
|
|
7724
7900
|
Complex({}, SelectionSettings)
|
|
7725
7901
|
], TreeGrid.prototype, "selectionSettings", void 0);
|
|
7726
|
-
__decorate([
|
|
7902
|
+
__decorate$b([
|
|
7727
7903
|
Property(false)
|
|
7728
7904
|
], TreeGrid.prototype, "allowExcelExport", void 0);
|
|
7729
|
-
__decorate([
|
|
7905
|
+
__decorate$b([
|
|
7730
7906
|
Property(false)
|
|
7731
7907
|
], TreeGrid.prototype, "allowPdfExport", void 0);
|
|
7732
|
-
__decorate([
|
|
7908
|
+
__decorate$b([
|
|
7733
7909
|
Event()
|
|
7734
7910
|
], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
|
|
7735
|
-
__decorate([
|
|
7911
|
+
__decorate$b([
|
|
7736
7912
|
Event()
|
|
7737
7913
|
], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
|
|
7738
|
-
__decorate([
|
|
7914
|
+
__decorate$b([
|
|
7739
7915
|
Event()
|
|
7740
7916
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
7741
|
-
__decorate([
|
|
7917
|
+
__decorate$b([
|
|
7742
7918
|
Event()
|
|
7743
7919
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
7744
|
-
__decorate([
|
|
7920
|
+
__decorate$b([
|
|
7745
7921
|
Event()
|
|
7746
7922
|
], TreeGrid.prototype, "beforeExcelExport", void 0);
|
|
7747
|
-
__decorate([
|
|
7923
|
+
__decorate$b([
|
|
7748
7924
|
Event()
|
|
7749
7925
|
], TreeGrid.prototype, "excelExportComplete", void 0);
|
|
7750
|
-
__decorate([
|
|
7926
|
+
__decorate$b([
|
|
7751
7927
|
Event()
|
|
7752
7928
|
], TreeGrid.prototype, "beforePdfExport", void 0);
|
|
7753
|
-
__decorate([
|
|
7929
|
+
__decorate$b([
|
|
7754
7930
|
Event()
|
|
7755
7931
|
], TreeGrid.prototype, "pdfExportComplete", void 0);
|
|
7756
|
-
TreeGrid = TreeGrid_1 = __decorate([
|
|
7932
|
+
TreeGrid = TreeGrid_1 = __decorate$b([
|
|
7757
7933
|
NotifyPropertyChanges
|
|
7758
7934
|
], TreeGrid);
|
|
7759
7935
|
|
|
@@ -7762,14 +7938,14 @@ TreeGrid = TreeGrid_1 = __decorate([
|
|
|
7762
7938
|
*
|
|
7763
7939
|
* @hidden
|
|
7764
7940
|
*/
|
|
7765
|
-
class Reorder
|
|
7941
|
+
class Reorder {
|
|
7766
7942
|
/**
|
|
7767
7943
|
* Constructor for Reorder module
|
|
7768
7944
|
*
|
|
7769
7945
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7770
7946
|
*/
|
|
7771
7947
|
constructor(parent) {
|
|
7772
|
-
Grid.Inject(Reorder);
|
|
7948
|
+
Grid.Inject(Reorder$1);
|
|
7773
7949
|
this.parent = parent;
|
|
7774
7950
|
this.addEventListener();
|
|
7775
7951
|
}
|
|
@@ -7826,14 +8002,14 @@ class Reorder$1 {
|
|
|
7826
8002
|
*
|
|
7827
8003
|
* @hidden
|
|
7828
8004
|
*/
|
|
7829
|
-
class Resize
|
|
8005
|
+
class Resize {
|
|
7830
8006
|
/**
|
|
7831
8007
|
* Constructor for Resize module
|
|
7832
8008
|
*
|
|
7833
8009
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7834
8010
|
*/
|
|
7835
8011
|
constructor(parent) {
|
|
7836
|
-
Grid.Inject(Resize);
|
|
8012
|
+
Grid.Inject(Resize$1);
|
|
7837
8013
|
this.parent = parent;
|
|
7838
8014
|
}
|
|
7839
8015
|
/**
|
|
@@ -7873,7 +8049,7 @@ class Resize$1 {
|
|
|
7873
8049
|
*
|
|
7874
8050
|
* @hidden
|
|
7875
8051
|
*/
|
|
7876
|
-
class RowDD
|
|
8052
|
+
class RowDD {
|
|
7877
8053
|
/**
|
|
7878
8054
|
* Constructor for render module
|
|
7879
8055
|
*
|
|
@@ -7894,7 +8070,7 @@ class RowDD$1 {
|
|
|
7894
8070
|
this.hasDropItem = true;
|
|
7895
8071
|
/** @hidden */
|
|
7896
8072
|
this.isaddtoBottom = false;
|
|
7897
|
-
Grid.Inject(RowDD);
|
|
8073
|
+
Grid.Inject(RowDD$1);
|
|
7898
8074
|
this.parent = parent;
|
|
7899
8075
|
this.addEventListener();
|
|
7900
8076
|
}
|
|
@@ -8165,15 +8341,17 @@ class RowDD$1 {
|
|
|
8165
8341
|
!Object.prototype.hasOwnProperty.call(draggedRecord.taskData, tObj.childMapping)) {
|
|
8166
8342
|
draggedRecord.taskData[tObj.childMapping] = [];
|
|
8167
8343
|
}
|
|
8168
|
-
if (
|
|
8169
|
-
(draggedRecord
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
dragRecords.
|
|
8175
|
-
|
|
8176
|
-
|
|
8344
|
+
if (!isNullOrUndefined(draggedRecord[tObj.childMapping])) {
|
|
8345
|
+
if (Object.prototype.hasOwnProperty.call(draggedRecord, tObj.childMapping) &&
|
|
8346
|
+
(draggedRecord[tObj.childMapping]).length && !this.isDraggedWithChild &&
|
|
8347
|
+
!isNullOrUndefined(tObj.parentIdMapping)) {
|
|
8348
|
+
const childData = (draggedRecord[tObj.childMapping]);
|
|
8349
|
+
for (let j = 0; j < childData.length; j++) {
|
|
8350
|
+
if (dragRecords.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
|
|
8351
|
+
dragRecords.splice(j, 0, childData[parseInt(j.toString(), 10)]);
|
|
8352
|
+
childData[parseInt(j.toString(), 10)].taskData = extend$1({}, childData[parseInt(j.toString(), 10)]);
|
|
8353
|
+
i += 1;
|
|
8354
|
+
}
|
|
8177
8355
|
}
|
|
8178
8356
|
}
|
|
8179
8357
|
}
|
|
@@ -8247,8 +8425,8 @@ class RowDD$1 {
|
|
|
8247
8425
|
else {
|
|
8248
8426
|
tempDataSource = proxy.dataSource;
|
|
8249
8427
|
}
|
|
8250
|
-
|
|
8251
|
-
|
|
8428
|
+
if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
|
|
8429
|
+
&& !isNullOrUndefined(droppedRecord.taskData)) {
|
|
8252
8430
|
const keys = Object.keys(tempDataSource);
|
|
8253
8431
|
for (let i = 0; i < keys.length; i++) {
|
|
8254
8432
|
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
|
|
@@ -8362,8 +8540,12 @@ class RowDD$1 {
|
|
|
8362
8540
|
const bottomRowSegment = middleRowSegment + divide;
|
|
8363
8541
|
const mouseEvent = getObject('originalEvent.event', args);
|
|
8364
8542
|
const touchEvent = getObject('originalEvent.event', args);
|
|
8365
|
-
|
|
8543
|
+
let posy = (mouseEvent.type === 'mousemove') ? mouseEvent.pageY : ((!isNullOrUndefined(touchEvent) &&
|
|
8366
8544
|
!isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].pageY : null);
|
|
8545
|
+
if (this.parent.enableVirtualization) {
|
|
8546
|
+
posy = (mouseEvent.type === 'mousemove') ? mouseEvent.clientY : ((!isNullOrUndefined(touchEvent) &&
|
|
8547
|
+
!isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].clientY : null);
|
|
8548
|
+
}
|
|
8367
8549
|
const isTopSegment = posy <= topRowSegment;
|
|
8368
8550
|
const isMiddleRowSegment = (posy > topRowSegment && posy <= middleRowSegment);
|
|
8369
8551
|
const isBottomRowSegment = (posy > middleRowSegment && posy <= bottomRowSegment);
|
|
@@ -8458,16 +8640,16 @@ class RowDD$1 {
|
|
|
8458
8640
|
classList(ele, ['e-errorcontainer'], []);
|
|
8459
8641
|
classList(ele, ['e-icons', 'e-errorelem'], []);
|
|
8460
8642
|
const errorVal = dragelem.querySelector('.errorValue');
|
|
8461
|
-
let content
|
|
8643
|
+
let content = dragelem.querySelector('.e-rowcell').innerHTML;
|
|
8462
8644
|
if (errorVal) {
|
|
8463
|
-
content
|
|
8645
|
+
content = this.parent[`${sanitize}`](errorVal.innerHTML);
|
|
8464
8646
|
errorVal.parentNode.removeChild(errorVal);
|
|
8465
8647
|
}
|
|
8466
8648
|
dragelem.querySelector('.e-rowcell').innerHTML = '';
|
|
8467
8649
|
const spanContent = document.createElement('span');
|
|
8468
8650
|
spanContent.className = 'errorValue';
|
|
8469
8651
|
spanContent.style.paddingLeft = '16px';
|
|
8470
|
-
spanContent.innerHTML = this.parent[`${sanitize}`](content
|
|
8652
|
+
spanContent.innerHTML = this.parent[`${sanitize}`](content);
|
|
8471
8653
|
dragelem.querySelector('.e-rowcell').appendChild(ele);
|
|
8472
8654
|
dragelem.querySelector('.e-rowcell').appendChild(spanContent);
|
|
8473
8655
|
const dropItemSpan = document.querySelector('.e-dropitemscount');
|
|
@@ -8956,7 +9138,7 @@ class RowDD$1 {
|
|
|
8956
9138
|
}
|
|
8957
9139
|
}
|
|
8958
9140
|
if (this.dropPosition === 'middleSegment') {
|
|
8959
|
-
const parentItem = extend({}, droppedRecord);
|
|
9141
|
+
const parentItem = extend$1({}, droppedRecord);
|
|
8960
9142
|
delete parentItem.childRecords;
|
|
8961
9143
|
draggedRecord.parentItem = parentItem;
|
|
8962
9144
|
draggedRecord.parentUniqueID = droppedRecord.uniqueID;
|
|
@@ -9247,11 +9429,7 @@ class RowDD$1 {
|
|
|
9247
9429
|
}
|
|
9248
9430
|
}
|
|
9249
9431
|
|
|
9250
|
-
|
|
9251
|
-
* Base export
|
|
9252
|
-
*/
|
|
9253
|
-
|
|
9254
|
-
var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9432
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9255
9433
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9256
9434
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9257
9435
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -9260,15 +9438,11 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
9260
9438
|
/**
|
|
9261
9439
|
* Configures the row drop settings of the TreeGrid.
|
|
9262
9440
|
*/
|
|
9263
|
-
class RowDropSettings
|
|
9441
|
+
class RowDropSettings extends ChildProperty {
|
|
9264
9442
|
}
|
|
9265
|
-
__decorate$
|
|
9443
|
+
__decorate$c([
|
|
9266
9444
|
Property()
|
|
9267
|
-
], RowDropSettings
|
|
9268
|
-
|
|
9269
|
-
/**
|
|
9270
|
-
* Models export
|
|
9271
|
-
*/
|
|
9445
|
+
], RowDropSettings.prototype, "targetID", void 0);
|
|
9272
9446
|
|
|
9273
9447
|
/**
|
|
9274
9448
|
* RowModelGenerator is used to generate grid data rows.
|
|
@@ -9322,8 +9496,8 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9322
9496
|
const rows = super.generateRows(data, notifyArgs);
|
|
9323
9497
|
if (!isNullOrUndefined((this.visualData))) {
|
|
9324
9498
|
for (let r = 0; r < rows.length; r++) {
|
|
9325
|
-
rows[parseInt(r.toString(), 10)].index
|
|
9326
|
-
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9499
|
+
rows[parseInt(r.toString(), 10)].index
|
|
9500
|
+
= (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9327
9501
|
}
|
|
9328
9502
|
}
|
|
9329
9503
|
return rows;
|
|
@@ -9362,23 +9536,19 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9362
9536
|
}
|
|
9363
9537
|
}
|
|
9364
9538
|
|
|
9365
|
-
/**
|
|
9366
|
-
* Renderer export
|
|
9367
|
-
*/
|
|
9368
|
-
|
|
9369
9539
|
/**
|
|
9370
9540
|
* TreeGrid Filter module will handle filtering action
|
|
9371
9541
|
*
|
|
9372
9542
|
* @hidden
|
|
9373
9543
|
*/
|
|
9374
|
-
class Filter
|
|
9544
|
+
class Filter {
|
|
9375
9545
|
/**
|
|
9376
9546
|
* Constructor for Filter module
|
|
9377
9547
|
*
|
|
9378
9548
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9379
9549
|
*/
|
|
9380
9550
|
constructor(parent) {
|
|
9381
|
-
Grid.Inject(Filter);
|
|
9551
|
+
Grid.Inject(Filter$1);
|
|
9382
9552
|
this.parent = parent;
|
|
9383
9553
|
this.isHierarchyFilter = false;
|
|
9384
9554
|
this.filteredResult = [];
|
|
@@ -9600,7 +9770,7 @@ class Filter$1 {
|
|
|
9600
9770
|
*
|
|
9601
9771
|
* @hidden
|
|
9602
9772
|
*/
|
|
9603
|
-
class ExcelExport
|
|
9773
|
+
class ExcelExport {
|
|
9604
9774
|
/**
|
|
9605
9775
|
* Constructor for Excel Export module
|
|
9606
9776
|
*
|
|
@@ -9608,7 +9778,7 @@ class ExcelExport$1 {
|
|
|
9608
9778
|
*/
|
|
9609
9779
|
constructor(parent) {
|
|
9610
9780
|
this.isCollapsedStatePersist = false;
|
|
9611
|
-
Grid.Inject(ExcelExport);
|
|
9781
|
+
Grid.Inject(ExcelExport$1);
|
|
9612
9782
|
this.parent = parent;
|
|
9613
9783
|
this.dataResults = {};
|
|
9614
9784
|
this.addEventListener();
|
|
@@ -9667,9 +9837,10 @@ class ExcelExport$1 {
|
|
|
9667
9837
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
9668
9838
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
9669
9839
|
}
|
|
9670
|
-
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
|
|
9671
|
-
|
|
9672
|
-
|
|
9840
|
+
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)) {
|
|
9841
|
+
if (!excelExportProperties.dataSource['dataSource']) {
|
|
9842
|
+
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
9843
|
+
}
|
|
9673
9844
|
}
|
|
9674
9845
|
return new Promise((resolve) => {
|
|
9675
9846
|
const dm = this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
|
|
@@ -9680,7 +9851,7 @@ class ExcelExport$1 {
|
|
|
9680
9851
|
query.queries = this.parent.grid.getDataModule().generateQuery().queries;
|
|
9681
9852
|
setValue('query', query, property);
|
|
9682
9853
|
}
|
|
9683
|
-
this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
|
|
9854
|
+
this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
|
|
9684
9855
|
if (getObject('cancel', property)) {
|
|
9685
9856
|
return null;
|
|
9686
9857
|
}
|
|
@@ -9805,14 +9976,14 @@ class ExcelExport$1 {
|
|
|
9805
9976
|
*
|
|
9806
9977
|
* @hidden
|
|
9807
9978
|
*/
|
|
9808
|
-
class PdfExport
|
|
9979
|
+
class PdfExport {
|
|
9809
9980
|
/**
|
|
9810
9981
|
* Constructor for PDF export module
|
|
9811
9982
|
*
|
|
9812
9983
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9813
9984
|
*/
|
|
9814
9985
|
constructor(parent) {
|
|
9815
|
-
Grid.Inject(PdfExport);
|
|
9986
|
+
Grid.Inject(PdfExport$1);
|
|
9816
9987
|
this.parent = parent;
|
|
9817
9988
|
this.dataResults = {};
|
|
9818
9989
|
this.addEventListener();
|
|
@@ -9870,7 +10041,7 @@ class PdfExport$1 {
|
|
|
9870
10041
|
query = this.generateQuery(query);
|
|
9871
10042
|
setValue('query', query, prop);
|
|
9872
10043
|
}
|
|
9873
|
-
this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
|
|
10044
|
+
this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
|
|
9874
10045
|
if (getObject('cancel', prop)) {
|
|
9875
10046
|
return null;
|
|
9876
10047
|
}
|
|
@@ -9965,9 +10136,9 @@ class PdfExport$1 {
|
|
|
9965
10136
|
*
|
|
9966
10137
|
* @hidden
|
|
9967
10138
|
*/
|
|
9968
|
-
class Page
|
|
10139
|
+
class Page {
|
|
9969
10140
|
constructor(parent) {
|
|
9970
|
-
Grid.Inject(Page);
|
|
10141
|
+
Grid.Inject(Page$1);
|
|
9971
10142
|
this.parent = parent;
|
|
9972
10143
|
this.addEventListener();
|
|
9973
10144
|
}
|
|
@@ -10032,6 +10203,10 @@ class Page$1 {
|
|
|
10032
10203
|
* @returns {void}
|
|
10033
10204
|
*/
|
|
10034
10205
|
updateExternalMessage(message) {
|
|
10206
|
+
if (isNullOrUndefined(message)) {
|
|
10207
|
+
const error = 'The provided value for the message is undefined. Please ensure the message contains string.';
|
|
10208
|
+
this.parent.trigger(actionFailure, { error: error });
|
|
10209
|
+
}
|
|
10035
10210
|
this.parent.grid.pagerModule.updateExternalMessage(message);
|
|
10036
10211
|
}
|
|
10037
10212
|
/**
|
|
@@ -10128,8 +10303,8 @@ class Page$1 {
|
|
|
10128
10303
|
}
|
|
10129
10304
|
else {
|
|
10130
10305
|
const dm = new DataManager(pageingDetails.result);
|
|
10131
|
-
const expanded
|
|
10132
|
-
const parents = dm.executeLocal(new Query().where(expanded
|
|
10306
|
+
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
10307
|
+
const parents = dm.executeLocal(new Query().where(expanded));
|
|
10133
10308
|
let visualData;
|
|
10134
10309
|
if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
|
|
10135
10310
|
pageingDetails.actionArgs.action !== 'expand')) {
|
|
@@ -10137,7 +10312,7 @@ class Page$1 {
|
|
|
10137
10312
|
}
|
|
10138
10313
|
else {
|
|
10139
10314
|
visualData = parents.filter((e) => {
|
|
10140
|
-
return getExpandStatus(this.parent, e
|
|
10315
|
+
return getExpandStatus(this.parent, e);
|
|
10141
10316
|
});
|
|
10142
10317
|
}
|
|
10143
10318
|
pageingDetails.count = visualData.length;
|
|
@@ -10164,9 +10339,9 @@ class Page$1 {
|
|
|
10164
10339
|
*
|
|
10165
10340
|
* @hidden
|
|
10166
10341
|
*/
|
|
10167
|
-
class Toolbar
|
|
10342
|
+
class Toolbar {
|
|
10168
10343
|
constructor(parent) {
|
|
10169
|
-
Grid.Inject(Toolbar);
|
|
10344
|
+
Grid.Inject(Toolbar$1);
|
|
10170
10345
|
this.parent = parent;
|
|
10171
10346
|
this.addEventListener();
|
|
10172
10347
|
}
|
|
@@ -10313,14 +10488,14 @@ class Toolbar$1 {
|
|
|
10313
10488
|
*
|
|
10314
10489
|
* @hidden
|
|
10315
10490
|
*/
|
|
10316
|
-
class Aggregate
|
|
10491
|
+
class Aggregate {
|
|
10317
10492
|
/**
|
|
10318
10493
|
* Constructor for Aggregate module
|
|
10319
10494
|
*
|
|
10320
10495
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10321
10496
|
*/
|
|
10322
10497
|
constructor(parent) {
|
|
10323
|
-
Grid.Inject(Aggregate);
|
|
10498
|
+
Grid.Inject(Aggregate$1);
|
|
10324
10499
|
this.parent = parent;
|
|
10325
10500
|
this.flatChildRecords = [];
|
|
10326
10501
|
this.summaryQuery = [];
|
|
@@ -10388,7 +10563,7 @@ class Aggregate$1 {
|
|
|
10388
10563
|
}
|
|
10389
10564
|
});
|
|
10390
10565
|
const currentIndex = idx + childRecordsLength + summaryRowIndex;
|
|
10391
|
-
const summaryParent = extend({}, parentRecord);
|
|
10566
|
+
const summaryParent = extend$1({}, parentRecord);
|
|
10392
10567
|
delete summaryParent.childRecords;
|
|
10393
10568
|
delete summaryParent[this.parent.childMapping];
|
|
10394
10569
|
setValue('parentItem', summaryParent, item);
|
|
@@ -10554,9 +10729,9 @@ class Aggregate$1 {
|
|
|
10554
10729
|
*
|
|
10555
10730
|
* @hidden
|
|
10556
10731
|
*/
|
|
10557
|
-
class Sort
|
|
10732
|
+
class Sort {
|
|
10558
10733
|
constructor(grid) {
|
|
10559
|
-
Grid.Inject(Sort);
|
|
10734
|
+
Grid.Inject(Sort$1);
|
|
10560
10735
|
this.parent = grid;
|
|
10561
10736
|
this.taskIds = [];
|
|
10562
10737
|
this.flatSortedData = [];
|
|
@@ -10677,14 +10852,14 @@ class Sort$1 {
|
|
|
10677
10852
|
*
|
|
10678
10853
|
* @hidden
|
|
10679
10854
|
*/
|
|
10680
|
-
class ColumnMenu
|
|
10855
|
+
class ColumnMenu {
|
|
10681
10856
|
/**
|
|
10682
10857
|
* Constructor for render module
|
|
10683
10858
|
*
|
|
10684
10859
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10685
10860
|
*/
|
|
10686
10861
|
constructor(parent) {
|
|
10687
|
-
Grid.Inject(ColumnMenu);
|
|
10862
|
+
Grid.Inject(ColumnMenu$1);
|
|
10688
10863
|
this.parent = parent;
|
|
10689
10864
|
}
|
|
10690
10865
|
getColumnMenu() {
|
|
@@ -10709,9 +10884,9 @@ class ColumnMenu$1 {
|
|
|
10709
10884
|
*
|
|
10710
10885
|
* @hidden
|
|
10711
10886
|
*/
|
|
10712
|
-
class ContextMenu
|
|
10887
|
+
class ContextMenu {
|
|
10713
10888
|
constructor(parent) {
|
|
10714
|
-
Grid.Inject(ContextMenu);
|
|
10889
|
+
Grid.Inject(ContextMenu$1);
|
|
10715
10890
|
this.parent = parent;
|
|
10716
10891
|
this.addEventListener();
|
|
10717
10892
|
}
|
|
@@ -10991,7 +11166,7 @@ class BatchEdit {
|
|
|
10991
11166
|
if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
10992
11167
|
added.primaryParent = parentRecord;
|
|
10993
11168
|
if (this.selectedIndex > -1) {
|
|
10994
|
-
added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
|
|
11169
|
+
added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
|
|
10995
11170
|
added.parentUniqueID = added.parentItem.uniqueID;
|
|
10996
11171
|
delete added.parentItem.childRecords;
|
|
10997
11172
|
delete added.parentItem[this.parent.childMapping];
|
|
@@ -11100,13 +11275,13 @@ class BatchEdit {
|
|
|
11100
11275
|
this.updateRowIndex();
|
|
11101
11276
|
// update focus module, need to refix this once grid source modified.
|
|
11102
11277
|
const focusModule = getValue('focusModule', this.parent.grid);
|
|
11103
|
-
const table
|
|
11278
|
+
const table = this.parent.getContentTable();
|
|
11104
11279
|
if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
|
|
11105
11280
|
actualIndex = e.row.rowIndex;
|
|
11106
11281
|
focusModule.getContent().matrix.matrix = this.matrix;
|
|
11107
11282
|
}
|
|
11108
11283
|
else {
|
|
11109
|
-
actualIndex = table
|
|
11284
|
+
actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
|
|
11110
11285
|
// if (this.parent.frozenRows || this.parent.frozenColumns) {
|
|
11111
11286
|
// actualIndex = this.batchIndex;
|
|
11112
11287
|
// }
|
|
@@ -11334,7 +11509,7 @@ class BatchEdit {
|
|
|
11334
11509
|
addRecords.reverse();
|
|
11335
11510
|
}
|
|
11336
11511
|
for (i = 0; i < addRecords.length; i++) {
|
|
11337
|
-
const taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11512
|
+
const taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11338
11513
|
delete taskData.parentItem;
|
|
11339
11514
|
delete taskData.uniqueID;
|
|
11340
11515
|
delete taskData.index;
|
|
@@ -11458,7 +11633,7 @@ class BatchEdit {
|
|
|
11458
11633
|
* TreeGrid Edit Module
|
|
11459
11634
|
* The `Edit` module is used to handle editing actions.
|
|
11460
11635
|
*/
|
|
11461
|
-
class Edit
|
|
11636
|
+
class Edit {
|
|
11462
11637
|
/**
|
|
11463
11638
|
* Constructor for Edit module
|
|
11464
11639
|
*
|
|
@@ -11470,7 +11645,7 @@ class Edit$1 {
|
|
|
11470
11645
|
this.prevAriaRowIndex = '-1';
|
|
11471
11646
|
this.isAddedRowByMethod = false;
|
|
11472
11647
|
this.isAddedRowByContextMenu = false;
|
|
11473
|
-
Grid.Inject(Edit);
|
|
11648
|
+
Grid.Inject(Edit$1);
|
|
11474
11649
|
this.parent = parent;
|
|
11475
11650
|
this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
|
|
11476
11651
|
this.previousNewRowPosition = null;
|
|
@@ -11594,8 +11769,9 @@ class Edit$1 {
|
|
|
11594
11769
|
const eventArgs = getObject('editAction', args);
|
|
11595
11770
|
const eventName = getObject('name', eventArgs);
|
|
11596
11771
|
const treeObj = this.parent;
|
|
11597
|
-
const adaptor = treeObj.dataSource
|
|
11598
|
-
|
|
11772
|
+
const adaptor = !isNullOrUndefined(treeObj.dataSource)
|
|
11773
|
+
&& treeObj.dataSource.adaptor;
|
|
11774
|
+
if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
|
|
11599
11775
|
(eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
|
|
11600
11776
|
(treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
|
|
11601
11777
|
|| treeObj.editSettings.newRowPosition === 'Above')) {
|
|
@@ -11810,7 +11986,7 @@ class Edit$1 {
|
|
|
11810
11986
|
customCellSave(args) {
|
|
11811
11987
|
if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
|
|
11812
11988
|
this.updateCell(args, args.rowIndex);
|
|
11813
|
-
this.afterCellSave(args, args.row
|
|
11989
|
+
this.afterCellSave(args, args.row);
|
|
11814
11990
|
}
|
|
11815
11991
|
}
|
|
11816
11992
|
cellSave(args) {
|
|
@@ -11853,7 +12029,7 @@ class Edit$1 {
|
|
|
11853
12029
|
}
|
|
11854
12030
|
}
|
|
11855
12031
|
const arg = {};
|
|
11856
|
-
extend(arg, args);
|
|
12032
|
+
extend$1(arg, args);
|
|
11857
12033
|
arg.cancel = false;
|
|
11858
12034
|
arg.type = 'save';
|
|
11859
12035
|
row = this.parent.grid.getRows()[row.rowIndex];
|
|
@@ -11874,7 +12050,7 @@ class Edit$1 {
|
|
|
11874
12050
|
else {
|
|
11875
12051
|
this.updateCell(args, rowIndex);
|
|
11876
12052
|
setValue('isEdit', false, this.parent.grid);
|
|
11877
|
-
this.afterCellSave(args, row
|
|
12053
|
+
this.afterCellSave(args, row);
|
|
11878
12054
|
}
|
|
11879
12055
|
}
|
|
11880
12056
|
else if (isRemoteData(this.parent) ||
|
|
@@ -11883,7 +12059,7 @@ class Edit$1 {
|
|
|
11883
12059
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
11884
12060
|
this.updateCell(args, rowIndex);
|
|
11885
12061
|
setValue('isEdit', false, this.parent.grid);
|
|
11886
|
-
this.afterCellSave(args, row
|
|
12062
|
+
this.afterCellSave(args, row);
|
|
11887
12063
|
}
|
|
11888
12064
|
else {
|
|
11889
12065
|
let crud = null;
|
|
@@ -11894,7 +12070,7 @@ class Edit$1 {
|
|
|
11894
12070
|
}
|
|
11895
12071
|
this.updateCell(args, rowIndex);
|
|
11896
12072
|
setValue('isEdit', false, this.parent.grid);
|
|
11897
|
-
this.afterCellSave(args, row
|
|
12073
|
+
this.afterCellSave(args, row);
|
|
11898
12074
|
});
|
|
11899
12075
|
}
|
|
11900
12076
|
}
|
|
@@ -11907,7 +12083,7 @@ class Edit$1 {
|
|
|
11907
12083
|
this.parent.grid.contentModule['virtualData'] = {};
|
|
11908
12084
|
}
|
|
11909
12085
|
}
|
|
11910
|
-
afterCellSave(args, row
|
|
12086
|
+
afterCellSave(args, row) {
|
|
11911
12087
|
if (this.parent.grid.aggregateModule) {
|
|
11912
12088
|
this.parent.grid.aggregateModule.refresh(args.rowData);
|
|
11913
12089
|
}
|
|
@@ -12027,9 +12203,9 @@ class Edit$1 {
|
|
|
12027
12203
|
if (!isNullOrUndefined(treecell)) {
|
|
12028
12204
|
for (let l = 0; l < treecell.classList.length; l++) {
|
|
12029
12205
|
const value = treecell.classList[parseInt(l.toString(), 10)];
|
|
12030
|
-
const remove
|
|
12206
|
+
const remove = /e-gridrowindex/i;
|
|
12031
12207
|
const removed = /e-griddetailrowindex/i;
|
|
12032
|
-
const result = value.match(remove
|
|
12208
|
+
const result = value.match(remove);
|
|
12033
12209
|
const results = value.match(removed);
|
|
12034
12210
|
if (result != null) {
|
|
12035
12211
|
removeClass([treecell], value);
|
|
@@ -12280,7 +12456,7 @@ class Edit$1 {
|
|
|
12280
12456
|
if (args.action === 'add') {
|
|
12281
12457
|
const key = this.parent.grid.getPrimaryKeyFieldNames()[0];
|
|
12282
12458
|
let position = null;
|
|
12283
|
-
value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
|
|
12459
|
+
value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
|
|
12284
12460
|
let currentData;
|
|
12285
12461
|
if (this.parent.enableVirtualization && args.index !== 0) {
|
|
12286
12462
|
currentData = this.parent.flatData;
|
|
@@ -12332,7 +12508,7 @@ class Edit$1 {
|
|
|
12332
12508
|
else if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
12333
12509
|
position = 'after';
|
|
12334
12510
|
if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
|
|
12335
|
-
value.parentItem = extend({}, currentData[this.addRowIndex]);
|
|
12511
|
+
value.parentItem = extend$1({}, currentData[this.addRowIndex]);
|
|
12336
12512
|
value.parentUniqueID = value.parentItem.uniqueID;
|
|
12337
12513
|
delete value.parentItem.childRecords;
|
|
12338
12514
|
delete value.parentItem[this.parent.childMapping];
|
|
@@ -12358,7 +12534,7 @@ class Edit$1 {
|
|
|
12358
12534
|
if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
|
|
12359
12535
|
if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
|
|
12360
12536
|
value.parentUniqueID = parentUniqueID;
|
|
12361
|
-
value.parentItem = extend({}, parentItem);
|
|
12537
|
+
value.parentItem = extend$1({}, parentItem);
|
|
12362
12538
|
delete value.parentItem.childRecords;
|
|
12363
12539
|
delete value.parentItem[this.parent.childMapping];
|
|
12364
12540
|
}
|
|
@@ -12499,9 +12675,9 @@ class Edit$1 {
|
|
|
12499
12675
|
*
|
|
12500
12676
|
* @hidden
|
|
12501
12677
|
*/
|
|
12502
|
-
class CommandColumn
|
|
12678
|
+
class CommandColumn {
|
|
12503
12679
|
constructor(parent) {
|
|
12504
|
-
Grid.Inject(CommandColumn);
|
|
12680
|
+
Grid.Inject(CommandColumn$1);
|
|
12505
12681
|
this.parent = parent;
|
|
12506
12682
|
}
|
|
12507
12683
|
/**
|
|
@@ -12529,9 +12705,9 @@ class CommandColumn$1 {
|
|
|
12529
12705
|
*
|
|
12530
12706
|
* @hidden
|
|
12531
12707
|
*/
|
|
12532
|
-
class DetailRow
|
|
12708
|
+
class DetailRow {
|
|
12533
12709
|
constructor(parent) {
|
|
12534
|
-
Grid.Inject(DetailRow);
|
|
12710
|
+
Grid.Inject(DetailRow$1);
|
|
12535
12711
|
this.parent = parent;
|
|
12536
12712
|
this.addEventListener();
|
|
12537
12713
|
}
|
|
@@ -12670,6 +12846,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12670
12846
|
getFrozenRightVirtualRowByIndex(index) {
|
|
12671
12847
|
return this.getRowCollection(index, false, false, true);
|
|
12672
12848
|
}
|
|
12849
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12673
12850
|
getRowCollection(index, isMovable, isRowObject, isFrozenRight) {
|
|
12674
12851
|
const startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
|
|
12675
12852
|
const rowCollection = this.parent.getDataRows();
|
|
@@ -12702,10 +12879,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12702
12879
|
}
|
|
12703
12880
|
}
|
|
12704
12881
|
indexModifier(args) {
|
|
12705
|
-
const content
|
|
12882
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
12706
12883
|
if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
|
|
12707
12884
|
if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
|
|
12708
|
-
const nextSetResIndex = ~~(content
|
|
12885
|
+
const nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
|
|
12709
12886
|
let lastIndex = nextSetResIndex + this.parent.getRows().length;
|
|
12710
12887
|
if (lastIndex > args.count) {
|
|
12711
12888
|
lastIndex = nextSetResIndex +
|
|
@@ -12833,8 +13010,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12833
13010
|
super[`${dataBoundEve}`]();
|
|
12834
13011
|
}
|
|
12835
13012
|
rowSelectedEvent(args) {
|
|
12836
|
-
const rowSelected
|
|
12837
|
-
super[`${rowSelected
|
|
13013
|
+
const rowSelected = 'rowSelected';
|
|
13014
|
+
super[`${rowSelected}`](args);
|
|
12838
13015
|
}
|
|
12839
13016
|
toSelectVirtualRow(args) {
|
|
12840
13017
|
if (this.parent.isEdit) {
|
|
@@ -12919,8 +13096,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12919
13096
|
}
|
|
12920
13097
|
virtualEditSuccess() {
|
|
12921
13098
|
const isAdd = 'isAdd';
|
|
12922
|
-
const content
|
|
12923
|
-
if (this[`${isAdd}`] && content
|
|
13099
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13100
|
+
if (this[`${isAdd}`] && content.querySelector('.e-addedrow')) {
|
|
12924
13101
|
this.recordAdded = true;
|
|
12925
13102
|
}
|
|
12926
13103
|
}
|
|
@@ -12934,8 +13111,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12934
13111
|
}
|
|
12935
13112
|
restoreNewRow() {
|
|
12936
13113
|
const isAdd = 'isAdd';
|
|
12937
|
-
const content
|
|
12938
|
-
if (this[`${isAdd}`] && !content
|
|
13114
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13115
|
+
if (this[`${isAdd}`] && !content.querySelector('.e-addedrow')) {
|
|
12939
13116
|
this.parent.isEdit = false;
|
|
12940
13117
|
this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
|
|
12941
13118
|
}
|
|
@@ -12952,8 +13129,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12952
13129
|
this.addRowIndex = addArgs.addRowIndex;
|
|
12953
13130
|
this.dataRowIndex = this.parent.root.editModule.selectedIndex;
|
|
12954
13131
|
}
|
|
12955
|
-
const actionComplete
|
|
12956
|
-
super[`${actionComplete
|
|
13132
|
+
const actionComplete = 'actionComplete';
|
|
13133
|
+
super[`${actionComplete}`](args);
|
|
12957
13134
|
}
|
|
12958
13135
|
onEnteredAction() {
|
|
12959
13136
|
return (element, current, direction, e, isWheel, check) => {
|
|
@@ -13001,7 +13178,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13001
13178
|
const info = scrollArgs.sentinel;
|
|
13002
13179
|
const rowHeight = this.parent.getRowHeight();
|
|
13003
13180
|
const outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
|
|
13004
|
-
const content
|
|
13181
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13005
13182
|
const scrollHeight = outBuffer * rowHeight;
|
|
13006
13183
|
const upScroll = (scrollArgs.offset.top - this.translateY) < 0;
|
|
13007
13184
|
const downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
|
|
@@ -13011,7 +13188,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13011
13188
|
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13012
13189
|
const vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
|
|
13013
13190
|
this.parent.element.getBoundingClientRect().height);
|
|
13014
|
-
let index = (~~(content
|
|
13191
|
+
let index = (~~(content.scrollTop / rowHeight)
|
|
13015
13192
|
+ Math.ceil(vHeight / rowHeight))
|
|
13016
13193
|
- this.parent.pageSettings.pageSize;
|
|
13017
13194
|
index = (index > 0) ? index : 0;
|
|
@@ -13056,7 +13233,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13056
13233
|
}
|
|
13057
13234
|
}
|
|
13058
13235
|
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13059
|
-
let nextSetResIndex = ~~(content
|
|
13236
|
+
let nextSetResIndex = ~~(content.scrollTop / rowHeight);
|
|
13060
13237
|
const isLastBlock = (this[`${selectedRowIndex}`] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
|
|
13061
13238
|
if (!isNullOrUndefined(this[`${selectedRowIndex}`]) && this[`${selectedRowIndex}`] !== -1 &&
|
|
13062
13239
|
nextSetResIndex !== this[`${selectedRowIndex}`] && !isLastBlock) {
|
|
@@ -13078,7 +13255,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13078
13255
|
this.startIndex = currentViewData[0][`${indexValue}`] + (this.parent.pageSettings.pageSize / 2);
|
|
13079
13256
|
}
|
|
13080
13257
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
13081
|
-
this.translateY = this.getTranslateY(scrollArgs.offset.top, content
|
|
13258
|
+
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
13082
13259
|
}
|
|
13083
13260
|
else {
|
|
13084
13261
|
if (this.totalRecords === this.endIndex) {
|
|
@@ -13105,10 +13282,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13105
13282
|
this.previousInfo = viewInfo;
|
|
13106
13283
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13107
13284
|
const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13285
|
+
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13108
13286
|
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13109
13287
|
viewInfo.loadNext = false;
|
|
13110
13288
|
}
|
|
13111
|
-
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13112
13289
|
this.requestType = 'virtualscroll';
|
|
13113
13290
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
13114
13291
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -13307,7 +13484,7 @@ class TreeInterSectionObserver extends InterSectionObserver {
|
|
|
13307
13484
|
*
|
|
13308
13485
|
* @hidden
|
|
13309
13486
|
*/
|
|
13310
|
-
class VirtualScroll
|
|
13487
|
+
class VirtualScroll {
|
|
13311
13488
|
/**
|
|
13312
13489
|
* Constructor for VirtualScroll module
|
|
13313
13490
|
*
|
|
@@ -13376,10 +13553,10 @@ class VirtualScroll$1 {
|
|
|
13376
13553
|
}
|
|
13377
13554
|
virtualPageAction(pageingDetails) {
|
|
13378
13555
|
const dm = new DataManager(pageingDetails.result);
|
|
13379
|
-
const expanded
|
|
13380
|
-
const parents = dm.executeLocal(new Query().where(expanded
|
|
13556
|
+
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
13557
|
+
const parents = dm.executeLocal(new Query().where(expanded));
|
|
13381
13558
|
const visualData = parents.filter((e) => {
|
|
13382
|
-
return getExpandStatus(this.parent, e
|
|
13559
|
+
return getExpandStatus(this.parent, e);
|
|
13383
13560
|
});
|
|
13384
13561
|
this.visualData = visualData;
|
|
13385
13562
|
pageingDetails.count = visualData.length;
|
|
@@ -13472,7 +13649,7 @@ class VirtualScroll$1 {
|
|
|
13472
13649
|
this.removeEventListener();
|
|
13473
13650
|
}
|
|
13474
13651
|
}
|
|
13475
|
-
class TreeVirtual extends VirtualScroll {
|
|
13652
|
+
class TreeVirtual extends VirtualScroll$1 {
|
|
13476
13653
|
constructor(parent, locator) {
|
|
13477
13654
|
super(parent, locator);
|
|
13478
13655
|
getValue('parent', this).off('initial-load', getValue('instantiateRenderer', this), this);
|
|
@@ -13513,14 +13690,14 @@ class TreeVirtual extends VirtualScroll {
|
|
|
13513
13690
|
*
|
|
13514
13691
|
* @hidden
|
|
13515
13692
|
*/
|
|
13516
|
-
class Freeze
|
|
13693
|
+
class Freeze {
|
|
13517
13694
|
/**
|
|
13518
13695
|
* Constructor for render module
|
|
13519
13696
|
*
|
|
13520
13697
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
13521
13698
|
*/
|
|
13522
13699
|
constructor(parent) {
|
|
13523
|
-
Grid.Inject(Freeze);
|
|
13700
|
+
Grid.Inject(Freeze$1);
|
|
13524
13701
|
this.parent = parent;
|
|
13525
13702
|
this.addEventListener();
|
|
13526
13703
|
}
|
|
@@ -13612,14 +13789,14 @@ class Freeze$1 {
|
|
|
13612
13789
|
*
|
|
13613
13790
|
* @hidden
|
|
13614
13791
|
*/
|
|
13615
|
-
class ColumnChooser
|
|
13792
|
+
class ColumnChooser {
|
|
13616
13793
|
/**
|
|
13617
13794
|
* Constructor for render module
|
|
13618
13795
|
*
|
|
13619
13796
|
* @param {TreeGrid} parent - Tree Grid instance.
|
|
13620
13797
|
*/
|
|
13621
13798
|
constructor(parent) {
|
|
13622
|
-
Grid.Inject(ColumnChooser);
|
|
13799
|
+
Grid.Inject(ColumnChooser$1);
|
|
13623
13800
|
this.parent = parent;
|
|
13624
13801
|
}
|
|
13625
13802
|
/**
|
|
@@ -13657,7 +13834,7 @@ class ColumnChooser$1 {
|
|
|
13657
13834
|
*
|
|
13658
13835
|
* @hidden
|
|
13659
13836
|
*/
|
|
13660
|
-
class InfiniteScroll
|
|
13837
|
+
class InfiniteScroll {
|
|
13661
13838
|
/**
|
|
13662
13839
|
* Constructor for VirtualScroll module
|
|
13663
13840
|
*
|
|
@@ -13665,7 +13842,7 @@ class InfiniteScroll$1 {
|
|
|
13665
13842
|
*/
|
|
13666
13843
|
constructor(parent) {
|
|
13667
13844
|
this.parent = parent;
|
|
13668
|
-
Grid.Inject(InfiniteScroll);
|
|
13845
|
+
Grid.Inject(InfiniteScroll$1);
|
|
13669
13846
|
this.addEventListener();
|
|
13670
13847
|
}
|
|
13671
13848
|
/**
|
|
@@ -13763,8 +13940,8 @@ class InfiniteScroll$1 {
|
|
|
13763
13940
|
*/
|
|
13764
13941
|
infinitePageAction(pageingDetails) {
|
|
13765
13942
|
const dm = new DataManager(pageingDetails.result);
|
|
13766
|
-
const expanded
|
|
13767
|
-
const visualData = dm.executeLocal(new Query().where(expanded
|
|
13943
|
+
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
13944
|
+
const visualData = dm.executeLocal(new Query().where(expanded));
|
|
13768
13945
|
const actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
|
|
13769
13946
|
const actions = getValue('actions', this.parent.grid.infiniteScrollModule);
|
|
13770
13947
|
if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
|
|
@@ -13954,17 +14131,5 @@ class InfiniteScroll$1 {
|
|
|
13954
14131
|
}
|
|
13955
14132
|
}
|
|
13956
14133
|
|
|
13957
|
-
|
|
13958
|
-
* actions export
|
|
13959
|
-
*/
|
|
13960
|
-
|
|
13961
|
-
/**
|
|
13962
|
-
* TreeGrid component exported items
|
|
13963
|
-
*/
|
|
13964
|
-
|
|
13965
|
-
/**
|
|
13966
|
-
* Export TreeGrid component
|
|
13967
|
-
*/
|
|
13968
|
-
|
|
13969
|
-
export { TreeGrid, load, rowDataBound, dataBound, queryCellInfo, beforeDataBound, actionBegin, dataStateChange, actionComplete, rowSelecting, rowSelected, checkboxChange, rowDeselected, toolbarClick, beforeExcelExport, beforePdfExport, resizeStop, expanded, expanding, collapsed, collapsing, remoteExpand, localPagedExpandCollapse, pagingActions, printGridInit, contextMenuOpen, contextMenuClick, beforeCopy, beforePaste, savePreviousRowPosition, crudAction, beginEdit, beginAdd, recordDoubleClick, cellSave, cellSaved, cellEdit, batchDelete, batchCancel, batchAdd, beforeBatchDelete, beforeBatchAdd, beforeBatchSave, batchSave, keyPressed, updateData, doubleTap, virtualColumnIndex, virtualActionArgs, destroy, dataListener, indexModifier, beforeStartEdit, beforeBatchCancel, batchEditFormRendered, detailDataBound, rowDrag, rowDragStartHelper, rowDrop, rowDragStart, rowsAdd, rowsRemove, rowdraging, rowDropped, autoCol, rowDeselecting, headerContent, movableContent, movableHeader, frozenContent, frozenHeader, content, table, leftRight, frozenRight, frozenLeft, dataColIndex, ariaColIndex, dataRowIndex, ariaRowIndex, DataManipulation, Reorder$1 as Reorder, Resize$1 as Resize, RowDD$1 as RowDD, Column, TreeGridColumn, StackedColumn, EditSettings, Predicate$1 as Predicate, FilterSettings, PageSettings, SearchSettings, SelectionSettings, AggregateColumn, AggregateRow, SortDescriptor, SortSettings, RowDropSettings$1 as RowDropSettings, InfiniteScrollSettings, LoadingIndicator, Render, TreeVirtualRowModelGenerator, isRemoteData, isCountRequired, isCheckboxcolumn, isFilterChildHierarchy, findParentRecords, getExpandStatus, findChildrenRecords, isOffline, extendArray, getPlainData, getParentData, isHidden, ToolbarItem, ContextMenuItems, Filter$1 as Filter, ExcelExport$1 as ExcelExport, PdfExport$1 as PdfExport, Page$1 as Page, Toolbar$1 as Toolbar, Aggregate$1 as Aggregate, Sort$1 as Sort, TreeClipboard, ColumnMenu$1 as ColumnMenu, ContextMenu$1 as ContextMenu, Edit$1 as Edit, CommandColumn$1 as CommandColumn, Selection, DetailRow$1 as DetailRow, VirtualScroll$1 as VirtualScroll, TreeVirtual, Freeze$1 as Freeze, ColumnChooser$1 as ColumnChooser, Logger$1 as Logger, treeGridDetails, InfiniteScroll$1 as InfiniteScroll };
|
|
14134
|
+
export { Aggregate, AggregateColumn, AggregateRow, Column, ColumnChooser, ColumnMenu, CommandColumn, ContextMenu, ContextMenuItems, DataManipulation, DetailRow, Edit, EditSettings, ExcelExport, Filter, FilterSettings, Freeze, InfiniteScroll, InfiniteScrollSettings, LoadingIndicator, Logger, Page, PageSettings, PdfExport, Predicate, Render, Reorder, Resize, RowDD, RowDropSettings, SearchSettings, Selection, SelectionSettings, Sort, SortDescriptor, SortSettings, StackedColumn, Toolbar, ToolbarItem, TreeClipboard, TreeGrid, TreeGridColumn, TreeVirtual, TreeVirtualRowModelGenerator, VirtualScroll, actionBegin, actionComplete, actionFailure, ariaColIndex, ariaRowIndex, autoCol, batchAdd, batchCancel, batchDelete, batchEditFormRendered, batchSave, beforeBatchAdd, beforeBatchCancel, beforeBatchDelete, beforeBatchSave, beforeCopy, beforeDataBound, beforeExcelExport, beforePaste, beforePdfExport, beforeStartEdit, beginAdd, beginEdit, cellEdit, cellSave, cellSaved, checkboxChange, collapsed, collapsing, content, contextMenuClick, contextMenuOpen, crudAction, dataBound, dataColIndex, dataListener, dataRowIndex, dataStateChange, destroy, detailDataBound, doubleTap, expanded, expanding, extendArray, findChildrenRecords, findParentRecords, frozenContent, frozenHeader, frozenLeft, frozenRight, getExpandStatus, getParentData, getPlainData, headerContent, indexModifier, isCheckboxcolumn, isCountRequired, isFilterChildHierarchy, isHidden, isOffline, isRemoteData, keyPressed, leftRight, load, localPagedExpandCollapse, movableContent, movableHeader, pagingActions, printGridInit, queryCellInfo, recordDoubleClick, remoteExpand, resizeStop, rowDataBound, rowDeselected, rowDeselecting, rowDrag, rowDragStart, rowDragStartHelper, rowDrop, rowDropped, rowSelected, rowSelecting, rowdraging, rowsAdd, rowsRemove, savePreviousRowPosition, table, toolbarClick, treeGridDetails, updateData, virtualActionArgs, virtualColumnIndex };
|
|
13970
14135
|
//# sourceMappingURL=ej2-treegrid.es2015.js.map
|