@syncfusion/ej2-treegrid 25.2.6 → 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 +621 -462
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +922 -762
- 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 +13 -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/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 -264
|
@@ -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;
|
|
@@ -1941,7 +1947,8 @@ class DataManipulation {
|
|
|
1941
1947
|
* @returns {void}
|
|
1942
1948
|
*/
|
|
1943
1949
|
convertToFlatData(data) {
|
|
1944
|
-
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) ?
|
|
1945
1952
|
this.parent.dataSource : []);
|
|
1946
1953
|
this.parent.parentData = [];
|
|
1947
1954
|
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
|
|
@@ -1997,7 +2004,7 @@ class DataManipulation {
|
|
|
1997
2004
|
const keys = Object.keys(data);
|
|
1998
2005
|
for (let i = 0; i < keys.length; i++) {
|
|
1999
2006
|
const tempData = data[parseInt(i.toString(), 10)];
|
|
2000
|
-
this.hierarchyData.push(extend({}, tempData));
|
|
2007
|
+
this.hierarchyData.push(extend$1({}, tempData));
|
|
2001
2008
|
if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
|
|
2002
2009
|
this.taskIds.push(tempData[this.parent.idMapping]);
|
|
2003
2010
|
}
|
|
@@ -2099,7 +2106,7 @@ class DataManipulation {
|
|
|
2099
2106
|
}
|
|
2100
2107
|
}
|
|
2101
2108
|
if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
|
|
2102
|
-
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)]);
|
|
2103
2110
|
records[parseInt(rec.toString(), 10)].uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2104
2111
|
setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this.parent);
|
|
2105
2112
|
records[parseInt(rec.toString(), 10)].level = 0;
|
|
@@ -2291,7 +2298,7 @@ class DataManipulation {
|
|
|
2291
2298
|
}
|
|
2292
2299
|
}
|
|
2293
2300
|
}
|
|
2294
|
-
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)]);
|
|
2295
2302
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] && this.parent.enableVirtualization && this.parent[`${remoteExpandedData}`].length) {
|
|
2296
2303
|
for (let i = 0; i < this.parent[`${remoteExpandedData}`].length; i++) {
|
|
2297
2304
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] === this.parent[`${remoteExpandedData}`][parseInt(i.toString(), 10)][`${this.parent.idMapping}`]) {
|
|
@@ -2319,7 +2326,7 @@ class DataManipulation {
|
|
|
2319
2326
|
}
|
|
2320
2327
|
}
|
|
2321
2328
|
else {
|
|
2322
|
-
const parentData = extend({}, rowDetails.record);
|
|
2329
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2323
2330
|
delete parentData.childRecords;
|
|
2324
2331
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2325
2332
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2327,7 +2334,7 @@ class DataManipulation {
|
|
|
2327
2334
|
}
|
|
2328
2335
|
else {
|
|
2329
2336
|
result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
|
|
2330
|
-
const parentData = extend({}, rowDetails.record);
|
|
2337
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2331
2338
|
delete parentData.childRecords;
|
|
2332
2339
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2333
2340
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2447,7 +2454,7 @@ class DataManipulation {
|
|
|
2447
2454
|
const treeGridData = [];
|
|
2448
2455
|
const keys = Object.keys(data);
|
|
2449
2456
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
2450
|
-
const currentData = extend({}, data[parseInt(i.toString(), 10)]);
|
|
2457
|
+
const currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
|
|
2451
2458
|
currentData.taskData = data[parseInt(i.toString(), 10)];
|
|
2452
2459
|
let level = 0;
|
|
2453
2460
|
this.storedIndex++;
|
|
@@ -2475,7 +2482,7 @@ class DataManipulation {
|
|
|
2475
2482
|
currentData.uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2476
2483
|
setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
|
|
2477
2484
|
if (!isNullOrUndefined(parentRecords)) {
|
|
2478
|
-
const parentData = extend({}, parentRecords);
|
|
2485
|
+
const parentData = extend$1({}, parentRecords);
|
|
2479
2486
|
delete parentData.childRecords;
|
|
2480
2487
|
delete parentData[this.parent.childMapping];
|
|
2481
2488
|
if (this.isSelfReference) {
|
|
@@ -2756,7 +2763,7 @@ var ContextMenuItems;
|
|
|
2756
2763
|
ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
|
|
2757
2764
|
})(ContextMenuItems || (ContextMenuItems = {}));
|
|
2758
2765
|
|
|
2759
|
-
var __decorate$
|
|
2766
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2760
2767
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2761
2768
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2762
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;
|
|
@@ -2767,32 +2774,32 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2767
2774
|
*/
|
|
2768
2775
|
class PageSettings extends ChildProperty {
|
|
2769
2776
|
}
|
|
2770
|
-
__decorate$
|
|
2777
|
+
__decorate$6([
|
|
2771
2778
|
Property(12)
|
|
2772
2779
|
], PageSettings.prototype, "pageSize", void 0);
|
|
2773
|
-
__decorate$
|
|
2780
|
+
__decorate$6([
|
|
2774
2781
|
Property(8)
|
|
2775
2782
|
], PageSettings.prototype, "pageCount", void 0);
|
|
2776
|
-
__decorate$
|
|
2783
|
+
__decorate$6([
|
|
2777
2784
|
Property(1)
|
|
2778
2785
|
], PageSettings.prototype, "currentPage", void 0);
|
|
2779
|
-
__decorate$
|
|
2786
|
+
__decorate$6([
|
|
2780
2787
|
Property()
|
|
2781
2788
|
], PageSettings.prototype, "totalRecordsCount", void 0);
|
|
2782
|
-
__decorate$
|
|
2789
|
+
__decorate$6([
|
|
2783
2790
|
Property(false)
|
|
2784
2791
|
], PageSettings.prototype, "enableQueryString", void 0);
|
|
2785
|
-
__decorate$
|
|
2792
|
+
__decorate$6([
|
|
2786
2793
|
Property(false)
|
|
2787
2794
|
], PageSettings.prototype, "pageSizes", void 0);
|
|
2788
|
-
__decorate$
|
|
2795
|
+
__decorate$6([
|
|
2789
2796
|
Property(null)
|
|
2790
2797
|
], PageSettings.prototype, "template", void 0);
|
|
2791
|
-
__decorate$
|
|
2798
|
+
__decorate$6([
|
|
2792
2799
|
Property('All')
|
|
2793
2800
|
], PageSettings.prototype, "pageSizeMode", void 0);
|
|
2794
2801
|
|
|
2795
|
-
var __decorate$
|
|
2802
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2796
2803
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2797
2804
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2798
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;
|
|
@@ -2868,34 +2875,34 @@ class AggregateColumn extends ChildProperty {
|
|
|
2868
2875
|
this.setProperties(prop, true);
|
|
2869
2876
|
}
|
|
2870
2877
|
}
|
|
2871
|
-
__decorate$
|
|
2878
|
+
__decorate$7([
|
|
2872
2879
|
Property()
|
|
2873
2880
|
], AggregateColumn.prototype, "type", void 0);
|
|
2874
|
-
__decorate$
|
|
2881
|
+
__decorate$7([
|
|
2875
2882
|
Property()
|
|
2876
2883
|
], AggregateColumn.prototype, "footerTemplate", void 0);
|
|
2877
|
-
__decorate$
|
|
2884
|
+
__decorate$7([
|
|
2878
2885
|
Property()
|
|
2879
2886
|
], AggregateColumn.prototype, "field", void 0);
|
|
2880
|
-
__decorate$
|
|
2887
|
+
__decorate$7([
|
|
2881
2888
|
Property()
|
|
2882
2889
|
], AggregateColumn.prototype, "format", void 0);
|
|
2883
|
-
__decorate$
|
|
2890
|
+
__decorate$7([
|
|
2884
2891
|
Property()
|
|
2885
2892
|
], AggregateColumn.prototype, "columnName", void 0);
|
|
2886
|
-
__decorate$
|
|
2893
|
+
__decorate$7([
|
|
2887
2894
|
Property()
|
|
2888
2895
|
], AggregateColumn.prototype, "customAggregate", void 0);
|
|
2889
2896
|
class AggregateRow extends ChildProperty {
|
|
2890
2897
|
}
|
|
2891
|
-
__decorate$
|
|
2898
|
+
__decorate$7([
|
|
2892
2899
|
Collection([], AggregateColumn)
|
|
2893
2900
|
], AggregateRow.prototype, "columns", void 0);
|
|
2894
|
-
__decorate$
|
|
2901
|
+
__decorate$7([
|
|
2895
2902
|
Property(true)
|
|
2896
2903
|
], AggregateRow.prototype, "showChildSummary", void 0);
|
|
2897
2904
|
|
|
2898
|
-
var __decorate$
|
|
2905
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2899
2906
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2900
2907
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2901
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;
|
|
@@ -2906,41 +2913,41 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2906
2913
|
*/
|
|
2907
2914
|
class EditSettings extends ChildProperty {
|
|
2908
2915
|
}
|
|
2909
|
-
__decorate$
|
|
2916
|
+
__decorate$8([
|
|
2910
2917
|
Property(false)
|
|
2911
2918
|
], EditSettings.prototype, "allowAdding", void 0);
|
|
2912
|
-
__decorate$
|
|
2919
|
+
__decorate$8([
|
|
2913
2920
|
Property(false)
|
|
2914
2921
|
], EditSettings.prototype, "allowEditing", void 0);
|
|
2915
|
-
__decorate$
|
|
2922
|
+
__decorate$8([
|
|
2916
2923
|
Property(false)
|
|
2917
2924
|
], EditSettings.prototype, "allowDeleting", void 0);
|
|
2918
|
-
__decorate$
|
|
2925
|
+
__decorate$8([
|
|
2919
2926
|
Property('Cell')
|
|
2920
2927
|
], EditSettings.prototype, "mode", void 0);
|
|
2921
|
-
__decorate$
|
|
2928
|
+
__decorate$8([
|
|
2922
2929
|
Property('Top')
|
|
2923
2930
|
], EditSettings.prototype, "newRowPosition", void 0);
|
|
2924
|
-
__decorate$
|
|
2931
|
+
__decorate$8([
|
|
2925
2932
|
Property(true)
|
|
2926
2933
|
], EditSettings.prototype, "allowEditOnDblClick", void 0);
|
|
2927
|
-
__decorate$
|
|
2934
|
+
__decorate$8([
|
|
2928
2935
|
Property(true)
|
|
2929
2936
|
], EditSettings.prototype, "showConfirmDialog", void 0);
|
|
2930
|
-
__decorate$
|
|
2937
|
+
__decorate$8([
|
|
2931
2938
|
Property(false)
|
|
2932
2939
|
], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
|
|
2933
|
-
__decorate$
|
|
2940
|
+
__decorate$8([
|
|
2934
2941
|
Property('')
|
|
2935
2942
|
], EditSettings.prototype, "template", void 0);
|
|
2936
|
-
__decorate$
|
|
2943
|
+
__decorate$8([
|
|
2937
2944
|
Property({})
|
|
2938
2945
|
], EditSettings.prototype, "dialog", void 0);
|
|
2939
|
-
__decorate$
|
|
2946
|
+
__decorate$8([
|
|
2940
2947
|
Property(false)
|
|
2941
2948
|
], EditSettings.prototype, "allowNextRowEdit", void 0);
|
|
2942
2949
|
|
|
2943
|
-
var __decorate$
|
|
2950
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2944
2951
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2945
2952
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2946
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;
|
|
@@ -2951,10 +2958,10 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2951
2958
|
*/
|
|
2952
2959
|
class SortDescriptor extends ChildProperty {
|
|
2953
2960
|
}
|
|
2954
|
-
__decorate$
|
|
2961
|
+
__decorate$9([
|
|
2955
2962
|
Property()
|
|
2956
2963
|
], SortDescriptor.prototype, "field", void 0);
|
|
2957
|
-
__decorate$
|
|
2964
|
+
__decorate$9([
|
|
2958
2965
|
Property()
|
|
2959
2966
|
], SortDescriptor.prototype, "direction", void 0);
|
|
2960
2967
|
/**
|
|
@@ -2962,10 +2969,10 @@ __decorate$10([
|
|
|
2962
2969
|
*/
|
|
2963
2970
|
class SortSettings extends ChildProperty {
|
|
2964
2971
|
}
|
|
2965
|
-
__decorate$
|
|
2972
|
+
__decorate$9([
|
|
2966
2973
|
Collection([], SortDescriptor)
|
|
2967
2974
|
], SortSettings.prototype, "columns", void 0);
|
|
2968
|
-
__decorate$
|
|
2975
|
+
__decorate$9([
|
|
2969
2976
|
Property(true)
|
|
2970
2977
|
], SortSettings.prototype, "allowUnsort", void 0);
|
|
2971
2978
|
|
|
@@ -3010,7 +3017,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
|
|
|
3010
3017
|
modifiedData = extendArray(value);
|
|
3011
3018
|
}
|
|
3012
3019
|
else {
|
|
3013
|
-
modifiedData.push(extend({}, value));
|
|
3020
|
+
modifiedData.push(extend$1({}, value));
|
|
3014
3021
|
}
|
|
3015
3022
|
if (!isSkip && (action !== 'add' ||
|
|
3016
3023
|
(control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
|
|
@@ -3126,7 +3133,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3126
3133
|
let value;
|
|
3127
3134
|
let isSkip = false;
|
|
3128
3135
|
const currentViewRecords = control.grid.getCurrentViewRecords();
|
|
3129
|
-
value = extend({}, details.value);
|
|
3136
|
+
value = extend$1({}, details.value);
|
|
3130
3137
|
value = getPlainData(value);
|
|
3131
3138
|
switch (control.editSettings.newRowPosition) {
|
|
3132
3139
|
case 'Top':
|
|
@@ -3139,28 +3146,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3139
3146
|
break;
|
|
3140
3147
|
case 'Above':
|
|
3141
3148
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3142
|
-
value = extend({}, addRowRecord);
|
|
3149
|
+
value = extend$1({}, addRowRecord);
|
|
3143
3150
|
value = getPlainData(value);
|
|
3144
3151
|
}
|
|
3145
3152
|
else {
|
|
3146
|
-
value = extend({}, currentViewRecords[addRowIndex + 1]);
|
|
3153
|
+
value = extend$1({}, currentViewRecords[addRowIndex + 1]);
|
|
3147
3154
|
value = getPlainData(value);
|
|
3148
3155
|
}
|
|
3149
3156
|
break;
|
|
3150
3157
|
case 'Below':
|
|
3151
3158
|
case 'Child':
|
|
3152
3159
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3153
|
-
value = extend({}, addRowRecord);
|
|
3160
|
+
value = extend$1({}, addRowRecord);
|
|
3154
3161
|
value = getPlainData(value);
|
|
3155
3162
|
}
|
|
3156
3163
|
else {
|
|
3157
3164
|
const primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
|
|
3158
3165
|
const currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
|
|
3159
3166
|
if (!isNullOrUndefined(currentdata) && currentdata[`${primaryKeys}`] === details.value[`${primaryKeys}`] || selectedIndex !== -1) {
|
|
3160
|
-
value = extend({}, currentdata);
|
|
3167
|
+
value = extend$1({}, currentdata);
|
|
3161
3168
|
}
|
|
3162
3169
|
else {
|
|
3163
|
-
value = extend({}, details.value);
|
|
3170
|
+
value = extend$1({}, details.value);
|
|
3164
3171
|
}
|
|
3165
3172
|
value = getPlainData(value);
|
|
3166
3173
|
const internalProperty = 'internalProperties';
|
|
@@ -3369,7 +3376,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
|
|
|
3369
3376
|
}
|
|
3370
3377
|
}
|
|
3371
3378
|
|
|
3372
|
-
var __decorate$
|
|
3379
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3373
3380
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3374
3381
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3375
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;
|
|
@@ -3380,17 +3387,17 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3380
3387
|
*/
|
|
3381
3388
|
class InfiniteScrollSettings extends ChildProperty {
|
|
3382
3389
|
}
|
|
3383
|
-
__decorate$
|
|
3390
|
+
__decorate$a([
|
|
3384
3391
|
Property(false)
|
|
3385
3392
|
], InfiniteScrollSettings.prototype, "enableCache", void 0);
|
|
3386
|
-
__decorate$
|
|
3393
|
+
__decorate$a([
|
|
3387
3394
|
Property(3)
|
|
3388
3395
|
], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
|
|
3389
|
-
__decorate$
|
|
3396
|
+
__decorate$a([
|
|
3390
3397
|
Property(3)
|
|
3391
3398
|
], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
|
|
3392
3399
|
|
|
3393
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3400
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3394
3401
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3395
3402
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3396
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;
|
|
@@ -3442,15 +3449,15 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3442
3449
|
return false;
|
|
3443
3450
|
}
|
|
3444
3451
|
};
|
|
3445
|
-
TreeGrid_1.Inject(Selection, Logger
|
|
3452
|
+
TreeGrid_1.Inject(Selection, Logger);
|
|
3446
3453
|
setValue('mergePersistData', this.mergePersistTreeGridData, this);
|
|
3447
3454
|
const logger = 'Logger';
|
|
3448
3455
|
if (!isNullOrUndefined(this.injectedModules[`${logger}`])) {
|
|
3449
|
-
Grid.Inject(Logger);
|
|
3456
|
+
Grid.Inject(Logger$1);
|
|
3450
3457
|
}
|
|
3451
3458
|
const freezeModulePresent = this.injectedModules.filter((e) => {
|
|
3452
3459
|
if (e.prototype.getModuleName() === 'freeze') {
|
|
3453
|
-
Grid.Inject(Freeze);
|
|
3460
|
+
Grid.Inject(Freeze$1);
|
|
3454
3461
|
}
|
|
3455
3462
|
});
|
|
3456
3463
|
this.grid = new Grid();
|
|
@@ -3527,6 +3534,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3527
3534
|
}
|
|
3528
3535
|
/**
|
|
3529
3536
|
* Exports the TreeGrid data to the specified URL using a POST request.
|
|
3537
|
+
*
|
|
3530
3538
|
* @param {string} url - Defines exporting url
|
|
3531
3539
|
* @returns {void}
|
|
3532
3540
|
*/
|
|
@@ -3557,6 +3565,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3557
3565
|
}
|
|
3558
3566
|
/**
|
|
3559
3567
|
* Sets the header text and other properties for an array of columns based on specified criteria.
|
|
3568
|
+
*
|
|
3560
3569
|
* @param {Column[]} columns - Defines array of columns
|
|
3561
3570
|
* @param {string[]} include - Defines array of sting
|
|
3562
3571
|
* @returns {Column[]} returns array of columns
|
|
@@ -3643,6 +3652,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3643
3652
|
* @returns {void}
|
|
3644
3653
|
*/
|
|
3645
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
|
+
}
|
|
3646
3659
|
if (this.sortModule) {
|
|
3647
3660
|
this.sortModule.sortColumn(columnName, direction, isMultiSort);
|
|
3648
3661
|
}
|
|
@@ -3703,21 +3716,27 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3703
3716
|
* @returns {void}
|
|
3704
3717
|
*/
|
|
3705
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
|
+
}
|
|
3706
3723
|
this.grid.reorderColumns(fromFName, toFName);
|
|
3707
3724
|
}
|
|
3708
3725
|
TreeGridLocale() {
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
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
|
+
}
|
|
3721
3740
|
}
|
|
3722
3741
|
/**
|
|
3723
3742
|
* By default, prints all the pages of the TreeGrid and hides the pager.
|
|
@@ -3764,45 +3783,57 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3764
3783
|
}
|
|
3765
3784
|
break;
|
|
3766
3785
|
case 'downArrow':
|
|
3767
|
-
if (!this.enableVirtualization) {
|
|
3786
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3768
3787
|
target = e.target;
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
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
|
+
}
|
|
3784
3808
|
}
|
|
3785
3809
|
}
|
|
3786
3810
|
}
|
|
3787
3811
|
break;
|
|
3788
3812
|
case 'upArrow':
|
|
3789
|
-
if (!this.enableVirtualization) {
|
|
3813
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3790
3814
|
target = e.target;
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
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
|
+
}
|
|
3806
3837
|
}
|
|
3807
3838
|
}
|
|
3808
3839
|
}
|
|
@@ -3996,7 +4027,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3996
4027
|
name: 'Edit'
|
|
3997
4028
|
});
|
|
3998
4029
|
}
|
|
3999
|
-
if (this.isCommandColumn(this.columns)) {
|
|
4030
|
+
if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
|
|
4000
4031
|
modules.push({
|
|
4001
4032
|
member: 'commandColumn',
|
|
4002
4033
|
args: [this],
|
|
@@ -4092,7 +4123,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4092
4123
|
this.log(['mapping_fields_missing']);
|
|
4093
4124
|
this.renderModule = new Render(this);
|
|
4094
4125
|
this.dataModule = new DataManipulation(this);
|
|
4095
|
-
this.printModule = new Print
|
|
4126
|
+
this.printModule = new Print(this);
|
|
4096
4127
|
this.trigger(load);
|
|
4097
4128
|
this.autoGenerateColumns();
|
|
4098
4129
|
this.initialRender = true;
|
|
@@ -4127,6 +4158,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4127
4158
|
const root = 'root';
|
|
4128
4159
|
this.grid[`${root}`] = this[`${root}`] ? this[`${root}`] : this;
|
|
4129
4160
|
this.grid.appendTo(gridContainer);
|
|
4161
|
+
this.actionFailureHandler();
|
|
4130
4162
|
const gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
|
|
4131
4163
|
gridContent.setAttribute('tabindex', '0');
|
|
4132
4164
|
const contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
|
|
@@ -4149,6 +4181,84 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4149
4181
|
}
|
|
4150
4182
|
};
|
|
4151
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
|
+
}
|
|
4152
4262
|
refreshToolbarItems() {
|
|
4153
4263
|
const toolbarElement = this.toolbarModule.getToolbar();
|
|
4154
4264
|
const indentID = this.element.id + '_gridcontrol_indent';
|
|
@@ -4354,11 +4464,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4354
4464
|
this.grid.on('initial-end', this.afterGridRender, this);
|
|
4355
4465
|
if (!isNullOrUndefined(this.loggerModule)) {
|
|
4356
4466
|
const loggerModule = 'loggerModule';
|
|
4357
|
-
this.loggerModule = this.grid[`${loggerModule}`] = new Logger
|
|
4467
|
+
this.loggerModule = this.grid[`${loggerModule}`] = new Logger(this.grid);
|
|
4358
4468
|
}
|
|
4359
4469
|
};
|
|
4360
4470
|
this.grid.printComplete = this.triggerEvents.bind(this);
|
|
4361
|
-
this.grid.actionFailure =
|
|
4471
|
+
this.grid.actionFailure = (args) => {
|
|
4472
|
+
this.trigger(actionFailure, args);
|
|
4473
|
+
};
|
|
4362
4474
|
this.extendedGridDataBoundEvent();
|
|
4363
4475
|
this.extendedGridEvents();
|
|
4364
4476
|
this.extendedGridActionEvents();
|
|
@@ -4446,7 +4558,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4446
4558
|
treeGrid.notify('dataProcessor', args);
|
|
4447
4559
|
//args = treeGrid.dataModule.dataProcessor(args);
|
|
4448
4560
|
}
|
|
4449
|
-
extend(args, treeGrid.dataResults);
|
|
4561
|
+
extend$1(args, treeGrid.dataResults);
|
|
4450
4562
|
if (treeGrid.enableImmutableMode) {
|
|
4451
4563
|
args.result = args.result.slice();
|
|
4452
4564
|
}
|
|
@@ -4726,9 +4838,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4726
4838
|
}
|
|
4727
4839
|
else {
|
|
4728
4840
|
if (this.grid.isFrozenGrid() && this.enableVirtualization && args['tableName'] === 'movable') {
|
|
4729
|
-
const movableContent
|
|
4730
|
-
const frozenContent
|
|
4731
|
-
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';
|
|
4732
4844
|
}
|
|
4733
4845
|
this.trigger(actionComplete, args);
|
|
4734
4846
|
}
|
|
@@ -5443,7 +5555,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5443
5555
|
if (this.grid.editModule) {
|
|
5444
5556
|
if (!isNullOrUndefined(index)) {
|
|
5445
5557
|
const griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
|
|
5446
|
-
extend(griddata, data);
|
|
5558
|
+
extend$1(griddata, data);
|
|
5447
5559
|
this.grid.editModule.updateRow(index, griddata);
|
|
5448
5560
|
}
|
|
5449
5561
|
else {
|
|
@@ -5460,6 +5572,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5460
5572
|
* @returns {void}
|
|
5461
5573
|
*/
|
|
5462
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
|
+
}
|
|
5463
5579
|
if (this.grid.editModule) {
|
|
5464
5580
|
this.grid.editModule.deleteRecord(fieldName, data);
|
|
5465
5581
|
}
|
|
@@ -5528,6 +5644,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5528
5644
|
* @returns {void}
|
|
5529
5645
|
*/
|
|
5530
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
|
+
}
|
|
5531
5651
|
if (this.grid.editModule) {
|
|
5532
5652
|
this.grid.editModule.deleteRow(tr);
|
|
5533
5653
|
}
|
|
@@ -5553,9 +5673,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5553
5673
|
this.grid.setCellValue(key, field, value);
|
|
5554
5674
|
const rowIndex = this.grid.getRowIndexByPrimaryKey(key);
|
|
5555
5675
|
const record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
|
|
5556
|
-
if (
|
|
5557
|
-
|
|
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 });
|
|
5558
5679
|
}
|
|
5680
|
+
editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
|
|
5559
5681
|
}
|
|
5560
5682
|
/**
|
|
5561
5683
|
* Updates and refresh the particular row values based on the given primary key value.
|
|
@@ -5593,8 +5715,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5593
5715
|
this.grid.setRowData(key, rowData);
|
|
5594
5716
|
const visibleRecords = this.getVisibleRecords();
|
|
5595
5717
|
if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])[`${primaryKey}`]) {
|
|
5596
|
-
const table
|
|
5597
|
-
const sHeight = table
|
|
5718
|
+
const table = this.getContentTable();
|
|
5719
|
+
const sHeight = table.scrollHeight;
|
|
5598
5720
|
const clientHeight = this.getContent().clientHeight;
|
|
5599
5721
|
this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
|
|
5600
5722
|
}
|
|
@@ -5606,6 +5728,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5606
5728
|
* @returns {void}
|
|
5607
5729
|
*/
|
|
5608
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
|
+
}
|
|
5609
5735
|
if (this.grid.pagerModule) {
|
|
5610
5736
|
this.grid.pagerModule.goToPage(pageNo);
|
|
5611
5737
|
}
|
|
@@ -5707,6 +5833,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5707
5833
|
* @returns {void}
|
|
5708
5834
|
*/
|
|
5709
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
|
+
}
|
|
5710
5840
|
this.grid.hideColumns(keys, hideBy);
|
|
5711
5841
|
this.updateColumnModel();
|
|
5712
5842
|
}
|
|
@@ -5803,10 +5933,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5803
5933
|
if (this.grid.columns.length !== this.columnModel.length) {
|
|
5804
5934
|
this.stackedHeader = true;
|
|
5805
5935
|
}
|
|
5806
|
-
if (this.stackedHeader && this.allowResizing) {
|
|
5936
|
+
if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
|
|
5807
5937
|
this.updateColumnsWidth(this.columns);
|
|
5808
5938
|
}
|
|
5809
|
-
if (!this.stackedHeader) {
|
|
5939
|
+
if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
|
|
5810
5940
|
merge(this.columns, this.columnModel);
|
|
5811
5941
|
}
|
|
5812
5942
|
this[`${deepMerge}`] = undefined; // Workaround for blazor updateModel
|
|
@@ -5814,10 +5944,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5814
5944
|
}
|
|
5815
5945
|
updateColumnsWidth(columns) {
|
|
5816
5946
|
columns.forEach((column) => {
|
|
5817
|
-
if (column.columns) {
|
|
5947
|
+
if (!isNullOrUndefined(column) && column.columns) {
|
|
5818
5948
|
this.updateColumnsWidth(column.columns);
|
|
5819
5949
|
}
|
|
5820
|
-
else if (column.field) {
|
|
5950
|
+
else if (!isNullOrUndefined(column) && column.field) {
|
|
5821
5951
|
const currentColumn = this.grid.getColumnByField(column.field);
|
|
5822
5952
|
if (!isNullOrUndefined(currentColumn)) {
|
|
5823
5953
|
column.width = currentColumn.width;
|
|
@@ -6120,6 +6250,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6120
6250
|
* @returns {void}
|
|
6121
6251
|
*/
|
|
6122
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
|
+
}
|
|
6123
6257
|
let parentRec = this.parentData;
|
|
6124
6258
|
if (!this.enableVirtualization) {
|
|
6125
6259
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6143,13 +6277,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6143
6277
|
if (expandingArgs.expandAll) {
|
|
6144
6278
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6145
6279
|
}
|
|
6146
|
-
this.expandRows(row, record, parentRec
|
|
6280
|
+
this.expandRows(row, record, parentRec);
|
|
6147
6281
|
}
|
|
6148
6282
|
});
|
|
6149
6283
|
}
|
|
6150
6284
|
else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
|
|
6151
6285
|
!this.expandAllPrevent && this.isExpandingEventTriggered) {
|
|
6152
|
-
this.expandRows(row, record, parentRec
|
|
6286
|
+
this.expandRows(row, record, parentRec);
|
|
6153
6287
|
}
|
|
6154
6288
|
this.isExpandingEventTriggered = true;
|
|
6155
6289
|
}
|
|
@@ -6160,13 +6294,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6160
6294
|
if (expandingArgs.expandAll) {
|
|
6161
6295
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6162
6296
|
}
|
|
6163
|
-
this.expandRows(row, record, parentRec
|
|
6297
|
+
this.expandRows(row, record, parentRec);
|
|
6164
6298
|
}
|
|
6165
6299
|
});
|
|
6166
6300
|
}
|
|
6167
6301
|
}
|
|
6168
6302
|
// Internal method to handle the rows expand
|
|
6169
|
-
expandRows(row, record, parentRec
|
|
6303
|
+
expandRows(row, record, parentRec) {
|
|
6170
6304
|
this.expandCollapse('expand', row, record);
|
|
6171
6305
|
const children = 'Children';
|
|
6172
6306
|
if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record[`${children}`]))) {
|
|
@@ -6236,6 +6370,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6236
6370
|
* @returns {void}
|
|
6237
6371
|
*/
|
|
6238
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
|
+
}
|
|
6239
6377
|
let parentRec = this.parentData;
|
|
6240
6378
|
if (!this.enableVirtualization) {
|
|
6241
6379
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6252,12 +6390,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6252
6390
|
if (collapsingArgs.collapseAll) {
|
|
6253
6391
|
this.expandCollapseAllChildren(record, 'collapse', key);
|
|
6254
6392
|
}
|
|
6255
|
-
this.collapseRows(row, record, parentRec
|
|
6393
|
+
this.collapseRows(row, record, parentRec);
|
|
6256
6394
|
}
|
|
6257
6395
|
});
|
|
6258
6396
|
}
|
|
6259
6397
|
else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
|
|
6260
|
-
this.collapseRows(row, record, parentRec
|
|
6398
|
+
this.collapseRows(row, record, parentRec);
|
|
6261
6399
|
}
|
|
6262
6400
|
this.isCollapsingEventTriggered = true;
|
|
6263
6401
|
}
|
|
@@ -6265,13 +6403,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6265
6403
|
const args = { data: record, row: row, cancel: false };
|
|
6266
6404
|
this.trigger(collapsing, args, (collapsingArgs) => {
|
|
6267
6405
|
if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
|
|
6268
|
-
this.collapseRows(row, record, parentRec
|
|
6406
|
+
this.collapseRows(row, record, parentRec);
|
|
6269
6407
|
}
|
|
6270
6408
|
});
|
|
6271
6409
|
}
|
|
6272
6410
|
}
|
|
6273
6411
|
// Internal method for handling the rows collapse
|
|
6274
|
-
collapseRows(row, record, parentRec
|
|
6412
|
+
collapseRows(row, record, parentRec) {
|
|
6275
6413
|
this.expandCollapse('collapse', row, record);
|
|
6276
6414
|
let collapseArgs = { data: record, row: row };
|
|
6277
6415
|
if (!isRemoteData(this)) {
|
|
@@ -6315,6 +6453,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6315
6453
|
* @returns {void}
|
|
6316
6454
|
*/
|
|
6317
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
|
+
}
|
|
6318
6460
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6319
6461
|
const rec = this.grid.dataSource.filter((e) => {
|
|
6320
6462
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6337,6 +6479,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6337
6479
|
* @returns {void}
|
|
6338
6480
|
*/
|
|
6339
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
|
+
}
|
|
6340
6486
|
this.expandCollapseActionByKey(key, 'Expand');
|
|
6341
6487
|
}
|
|
6342
6488
|
expandAction(record, key, level, isPaging = false) {
|
|
@@ -6389,6 +6535,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6389
6535
|
* @returns {void}
|
|
6390
6536
|
*/
|
|
6391
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
|
+
}
|
|
6392
6542
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6393
6543
|
const record = this.grid.dataSource.filter((e) => {
|
|
6394
6544
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6411,6 +6561,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6411
6561
|
* @returns {void}
|
|
6412
6562
|
*/
|
|
6413
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
|
+
}
|
|
6414
6568
|
this.expandCollapseActionByKey(key, 'Collapse');
|
|
6415
6569
|
}
|
|
6416
6570
|
expandCollapseActionByKey(key, action) {
|
|
@@ -6450,6 +6604,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6450
6604
|
* @returns {void}
|
|
6451
6605
|
*/
|
|
6452
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
|
+
}
|
|
6453
6611
|
this.isExpandedEventTriggered = false;
|
|
6454
6612
|
this.isExpandingEventTriggered = false;
|
|
6455
6613
|
this.expandCollapseAll('expand');
|
|
@@ -6460,6 +6618,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6460
6618
|
* @returns {void}
|
|
6461
6619
|
*/
|
|
6462
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
|
+
}
|
|
6463
6625
|
this.isCollapsedEventTriggered = false;
|
|
6464
6626
|
this.isCollapsingEventTriggered = false;
|
|
6465
6627
|
this.expandCollapseAll('collapse');
|
|
@@ -6626,8 +6788,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6626
6788
|
totalRows = [].slice.call(rows);
|
|
6627
6789
|
for (let i = totalRows.length - 1; i >= 0; i--) {
|
|
6628
6790
|
if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
|
|
6629
|
-
const table
|
|
6630
|
-
const sHeight = table
|
|
6791
|
+
const table = this.getContentTable();
|
|
6792
|
+
const sHeight = table.scrollHeight;
|
|
6631
6793
|
const clientHeight = this.getContent().clientHeight;
|
|
6632
6794
|
this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
|
|
6633
6795
|
break;
|
|
@@ -6686,8 +6848,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6686
6848
|
if (childData[parseInt(i.toString(), 10)]) {
|
|
6687
6849
|
childData[parseInt(i.toString(), 10)].level = record.level + 1;
|
|
6688
6850
|
childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
|
|
6689
|
-
childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
|
|
6690
|
-
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)]);
|
|
6691
6853
|
delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
|
|
6692
6854
|
delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
|
|
6693
6855
|
childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
|
|
@@ -7001,6 +7163,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7001
7163
|
* @returns {void}
|
|
7002
7164
|
*/
|
|
7003
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
|
+
}
|
|
7004
7170
|
this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
|
|
7005
7171
|
}
|
|
7006
7172
|
/**
|
|
@@ -7067,6 +7233,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7067
7233
|
* @returns {void}
|
|
7068
7234
|
*/
|
|
7069
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
|
+
}
|
|
7070
7240
|
this.clipboardModule.paste(data, rowIndex, colIndex);
|
|
7071
7241
|
}
|
|
7072
7242
|
/**
|
|
@@ -7278,7 +7448,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7278
7448
|
* @returns {number} - Returns frozen column count
|
|
7279
7449
|
*/
|
|
7280
7450
|
getFrozenColumns() {
|
|
7281
|
-
return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
|
|
7451
|
+
return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
|
|
7282
7452
|
}
|
|
7283
7453
|
getFrozenCount(cols, cnt) {
|
|
7284
7454
|
for (let j = 0, len = cols.length; j < len; j++) {
|
|
@@ -7335,6 +7505,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7335
7505
|
* @returns {void}
|
|
7336
7506
|
*/
|
|
7337
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
|
+
}
|
|
7338
7512
|
this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
|
|
7339
7513
|
}
|
|
7340
7514
|
/**
|
|
@@ -7362,400 +7536,400 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7362
7536
|
}
|
|
7363
7537
|
}
|
|
7364
7538
|
};
|
|
7365
|
-
__decorate([
|
|
7539
|
+
__decorate$b([
|
|
7366
7540
|
Property(0)
|
|
7367
7541
|
], TreeGrid.prototype, "frozenRows", void 0);
|
|
7368
|
-
__decorate([
|
|
7542
|
+
__decorate$b([
|
|
7369
7543
|
Property(0)
|
|
7370
7544
|
], TreeGrid.prototype, "frozenColumns", void 0);
|
|
7371
|
-
__decorate([
|
|
7545
|
+
__decorate$b([
|
|
7372
7546
|
Property('Ellipsis')
|
|
7373
7547
|
], TreeGrid.prototype, "clipMode", void 0);
|
|
7374
|
-
__decorate([
|
|
7548
|
+
__decorate$b([
|
|
7375
7549
|
Property([])
|
|
7376
7550
|
], TreeGrid.prototype, "columns", void 0);
|
|
7377
|
-
__decorate([
|
|
7551
|
+
__decorate$b([
|
|
7378
7552
|
Property(null)
|
|
7379
7553
|
], TreeGrid.prototype, "childMapping", void 0);
|
|
7380
|
-
__decorate([
|
|
7554
|
+
__decorate$b([
|
|
7381
7555
|
Property(null)
|
|
7382
7556
|
], TreeGrid.prototype, "hasChildMapping", void 0);
|
|
7383
|
-
__decorate([
|
|
7557
|
+
__decorate$b([
|
|
7384
7558
|
Property(0)
|
|
7385
7559
|
], TreeGrid.prototype, "treeColumnIndex", void 0);
|
|
7386
|
-
__decorate([
|
|
7560
|
+
__decorate$b([
|
|
7387
7561
|
Property(null)
|
|
7388
7562
|
], TreeGrid.prototype, "idMapping", void 0);
|
|
7389
|
-
__decorate([
|
|
7563
|
+
__decorate$b([
|
|
7390
7564
|
Property(null)
|
|
7391
7565
|
], TreeGrid.prototype, "parentIdMapping", void 0);
|
|
7392
|
-
__decorate([
|
|
7566
|
+
__decorate$b([
|
|
7393
7567
|
Property(false)
|
|
7394
7568
|
], TreeGrid.prototype, "enableCollapseAll", void 0);
|
|
7395
|
-
__decorate([
|
|
7569
|
+
__decorate$b([
|
|
7396
7570
|
Property(null)
|
|
7397
7571
|
], TreeGrid.prototype, "expandStateMapping", void 0);
|
|
7398
|
-
__decorate([
|
|
7572
|
+
__decorate$b([
|
|
7399
7573
|
Property(false)
|
|
7400
7574
|
], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
|
|
7401
|
-
__decorate([
|
|
7575
|
+
__decorate$b([
|
|
7402
7576
|
Property([])
|
|
7403
7577
|
], TreeGrid.prototype, "dataSource", void 0);
|
|
7404
|
-
__decorate([
|
|
7578
|
+
__decorate$b([
|
|
7405
7579
|
Property()
|
|
7406
7580
|
], TreeGrid.prototype, "query", void 0);
|
|
7407
|
-
__decorate([
|
|
7581
|
+
__decorate$b([
|
|
7408
7582
|
Property()
|
|
7409
7583
|
], TreeGrid.prototype, "cloneQuery", void 0);
|
|
7410
|
-
__decorate([
|
|
7584
|
+
__decorate$b([
|
|
7411
7585
|
Property('AllPages')
|
|
7412
7586
|
], TreeGrid.prototype, "printMode", void 0);
|
|
7413
|
-
__decorate([
|
|
7587
|
+
__decorate$b([
|
|
7414
7588
|
Property(false)
|
|
7415
7589
|
], TreeGrid.prototype, "allowPaging", void 0);
|
|
7416
|
-
__decorate([
|
|
7590
|
+
__decorate$b([
|
|
7417
7591
|
Property(false)
|
|
7418
7592
|
], TreeGrid.prototype, "loadChildOnDemand", void 0);
|
|
7419
|
-
__decorate([
|
|
7593
|
+
__decorate$b([
|
|
7420
7594
|
Property(false)
|
|
7421
7595
|
], TreeGrid.prototype, "allowTextWrap", void 0);
|
|
7422
|
-
__decorate([
|
|
7596
|
+
__decorate$b([
|
|
7423
7597
|
Complex({}, TextWrapSettings)
|
|
7424
7598
|
], TreeGrid.prototype, "textWrapSettings", void 0);
|
|
7425
|
-
__decorate([
|
|
7599
|
+
__decorate$b([
|
|
7426
7600
|
Property(false)
|
|
7427
7601
|
], TreeGrid.prototype, "allowReordering", void 0);
|
|
7428
|
-
__decorate([
|
|
7602
|
+
__decorate$b([
|
|
7429
7603
|
Property(false)
|
|
7430
7604
|
], TreeGrid.prototype, "allowResizing", void 0);
|
|
7431
|
-
__decorate([
|
|
7605
|
+
__decorate$b([
|
|
7432
7606
|
Property(false)
|
|
7433
7607
|
], TreeGrid.prototype, "autoCheckHierarchy", void 0);
|
|
7434
|
-
__decorate([
|
|
7608
|
+
__decorate$b([
|
|
7435
7609
|
Complex({}, PageSettings)
|
|
7436
7610
|
], TreeGrid.prototype, "pageSettings", void 0);
|
|
7437
|
-
__decorate([
|
|
7438
|
-
Complex({}, RowDropSettings)
|
|
7611
|
+
__decorate$b([
|
|
7612
|
+
Complex({}, RowDropSettings$1)
|
|
7439
7613
|
], TreeGrid.prototype, "rowDropSettings", void 0);
|
|
7440
|
-
__decorate([
|
|
7614
|
+
__decorate$b([
|
|
7441
7615
|
Property('USD')
|
|
7442
7616
|
], TreeGrid.prototype, "currencyCode", void 0);
|
|
7443
|
-
__decorate([
|
|
7617
|
+
__decorate$b([
|
|
7444
7618
|
Property()
|
|
7445
7619
|
], TreeGrid.prototype, "pagerTemplate", void 0);
|
|
7446
|
-
__decorate([
|
|
7620
|
+
__decorate$b([
|
|
7447
7621
|
Property(false)
|
|
7448
7622
|
], TreeGrid.prototype, "showColumnMenu", void 0);
|
|
7449
|
-
__decorate([
|
|
7623
|
+
__decorate$b([
|
|
7450
7624
|
Property(false)
|
|
7451
7625
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
7452
|
-
__decorate([
|
|
7626
|
+
__decorate$b([
|
|
7453
7627
|
Property(false)
|
|
7454
7628
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
7455
|
-
__decorate([
|
|
7629
|
+
__decorate$b([
|
|
7456
7630
|
Property(true)
|
|
7457
7631
|
], TreeGrid.prototype, "allowMultiSorting", void 0);
|
|
7458
|
-
__decorate([
|
|
7632
|
+
__decorate$b([
|
|
7459
7633
|
Complex({}, SortSettings)
|
|
7460
7634
|
], TreeGrid.prototype, "sortSettings", void 0);
|
|
7461
|
-
__decorate([
|
|
7635
|
+
__decorate$b([
|
|
7462
7636
|
Collection([], AggregateRow)
|
|
7463
7637
|
], TreeGrid.prototype, "aggregates", void 0);
|
|
7464
|
-
__decorate([
|
|
7638
|
+
__decorate$b([
|
|
7465
7639
|
Complex({}, EditSettings)
|
|
7466
7640
|
], TreeGrid.prototype, "editSettings", void 0);
|
|
7467
|
-
__decorate([
|
|
7641
|
+
__decorate$b([
|
|
7468
7642
|
Property(false)
|
|
7469
7643
|
], TreeGrid.prototype, "allowFiltering", void 0);
|
|
7470
|
-
__decorate([
|
|
7644
|
+
__decorate$b([
|
|
7471
7645
|
Property()
|
|
7472
7646
|
], TreeGrid.prototype, "detailTemplate", void 0);
|
|
7473
|
-
__decorate([
|
|
7647
|
+
__decorate$b([
|
|
7474
7648
|
Complex({}, FilterSettings)
|
|
7475
7649
|
], TreeGrid.prototype, "filterSettings", void 0);
|
|
7476
|
-
__decorate([
|
|
7650
|
+
__decorate$b([
|
|
7477
7651
|
Complex({}, SearchSettings)
|
|
7478
7652
|
], TreeGrid.prototype, "searchSettings", void 0);
|
|
7479
|
-
__decorate([
|
|
7653
|
+
__decorate$b([
|
|
7480
7654
|
Property()
|
|
7481
7655
|
], TreeGrid.prototype, "toolbar", void 0);
|
|
7482
|
-
__decorate([
|
|
7656
|
+
__decorate$b([
|
|
7483
7657
|
Property()
|
|
7484
7658
|
], TreeGrid.prototype, "toolbarTemplate", void 0);
|
|
7485
|
-
__decorate([
|
|
7659
|
+
__decorate$b([
|
|
7486
7660
|
Property('Default')
|
|
7487
7661
|
], TreeGrid.prototype, "gridLines", void 0);
|
|
7488
|
-
__decorate([
|
|
7662
|
+
__decorate$b([
|
|
7489
7663
|
Property()
|
|
7490
7664
|
], TreeGrid.prototype, "contextMenuItems", void 0);
|
|
7491
|
-
__decorate([
|
|
7665
|
+
__decorate$b([
|
|
7492
7666
|
Property()
|
|
7493
7667
|
], TreeGrid.prototype, "columnMenuItems", void 0);
|
|
7494
|
-
__decorate([
|
|
7668
|
+
__decorate$b([
|
|
7495
7669
|
Property()
|
|
7496
7670
|
], TreeGrid.prototype, "rowTemplate", void 0);
|
|
7497
|
-
__decorate([
|
|
7671
|
+
__decorate$b([
|
|
7498
7672
|
Property('Parent')
|
|
7499
7673
|
], TreeGrid.prototype, "copyHierarchyMode", void 0);
|
|
7500
|
-
__decorate([
|
|
7674
|
+
__decorate$b([
|
|
7501
7675
|
Property(null)
|
|
7502
7676
|
], TreeGrid.prototype, "rowHeight", void 0);
|
|
7503
|
-
__decorate([
|
|
7677
|
+
__decorate$b([
|
|
7504
7678
|
Property(true)
|
|
7505
7679
|
], TreeGrid.prototype, "enableAltRow", void 0);
|
|
7506
|
-
__decorate([
|
|
7680
|
+
__decorate$b([
|
|
7507
7681
|
Property(true)
|
|
7508
7682
|
], TreeGrid.prototype, "allowKeyboard", void 0);
|
|
7509
|
-
__decorate([
|
|
7683
|
+
__decorate$b([
|
|
7510
7684
|
Property(false)
|
|
7511
7685
|
], TreeGrid.prototype, "enableHover", void 0);
|
|
7512
|
-
__decorate([
|
|
7686
|
+
__decorate$b([
|
|
7513
7687
|
Property(false)
|
|
7514
7688
|
], TreeGrid.prototype, "enableAutoFill", void 0);
|
|
7515
|
-
__decorate([
|
|
7689
|
+
__decorate$b([
|
|
7516
7690
|
Property(false)
|
|
7517
7691
|
], TreeGrid.prototype, "enableAdaptiveUI", void 0);
|
|
7518
|
-
__decorate([
|
|
7692
|
+
__decorate$b([
|
|
7519
7693
|
Property(false)
|
|
7520
7694
|
], TreeGrid.prototype, "enableImmutableMode", void 0);
|
|
7521
|
-
__decorate([
|
|
7695
|
+
__decorate$b([
|
|
7522
7696
|
Property('auto')
|
|
7523
7697
|
], TreeGrid.prototype, "height", void 0);
|
|
7524
|
-
__decorate([
|
|
7698
|
+
__decorate$b([
|
|
7525
7699
|
Property('auto')
|
|
7526
7700
|
], TreeGrid.prototype, "width", void 0);
|
|
7527
|
-
__decorate([
|
|
7701
|
+
__decorate$b([
|
|
7528
7702
|
Complex({}, LoadingIndicator)
|
|
7529
7703
|
], TreeGrid.prototype, "loadingIndicator", void 0);
|
|
7530
|
-
__decorate([
|
|
7704
|
+
__decorate$b([
|
|
7531
7705
|
Property(true)
|
|
7532
7706
|
], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
|
|
7533
|
-
__decorate([
|
|
7707
|
+
__decorate$b([
|
|
7534
7708
|
Property(false)
|
|
7535
7709
|
], TreeGrid.prototype, "enableVirtualization", void 0);
|
|
7536
|
-
__decorate([
|
|
7710
|
+
__decorate$b([
|
|
7537
7711
|
Property(false)
|
|
7538
7712
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
7539
|
-
__decorate([
|
|
7713
|
+
__decorate$b([
|
|
7540
7714
|
Property(false)
|
|
7541
7715
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
7542
|
-
__decorate([
|
|
7716
|
+
__decorate$b([
|
|
7543
7717
|
Property(false)
|
|
7544
7718
|
], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
|
|
7545
|
-
__decorate([
|
|
7719
|
+
__decorate$b([
|
|
7546
7720
|
Complex({}, InfiniteScrollSettings)
|
|
7547
7721
|
], TreeGrid.prototype, "infiniteScrollSettings", void 0);
|
|
7548
|
-
__decorate([
|
|
7722
|
+
__decorate$b([
|
|
7549
7723
|
Property('All')
|
|
7550
7724
|
], TreeGrid.prototype, "columnQueryMode", void 0);
|
|
7551
|
-
__decorate([
|
|
7725
|
+
__decorate$b([
|
|
7552
7726
|
Event()
|
|
7553
7727
|
], TreeGrid.prototype, "created", void 0);
|
|
7554
|
-
__decorate([
|
|
7728
|
+
__decorate$b([
|
|
7555
7729
|
Event()
|
|
7556
7730
|
], TreeGrid.prototype, "load", void 0);
|
|
7557
|
-
__decorate([
|
|
7731
|
+
__decorate$b([
|
|
7558
7732
|
Event()
|
|
7559
7733
|
], TreeGrid.prototype, "expanding", void 0);
|
|
7560
|
-
__decorate([
|
|
7734
|
+
__decorate$b([
|
|
7561
7735
|
Event()
|
|
7562
7736
|
], TreeGrid.prototype, "expanded", void 0);
|
|
7563
|
-
__decorate([
|
|
7737
|
+
__decorate$b([
|
|
7564
7738
|
Event()
|
|
7565
7739
|
], TreeGrid.prototype, "collapsing", void 0);
|
|
7566
|
-
__decorate([
|
|
7740
|
+
__decorate$b([
|
|
7567
7741
|
Event()
|
|
7568
7742
|
], TreeGrid.prototype, "collapsed", void 0);
|
|
7569
|
-
__decorate([
|
|
7743
|
+
__decorate$b([
|
|
7570
7744
|
Event()
|
|
7571
7745
|
], TreeGrid.prototype, "cellSave", void 0);
|
|
7572
|
-
__decorate([
|
|
7746
|
+
__decorate$b([
|
|
7573
7747
|
Event()
|
|
7574
7748
|
], TreeGrid.prototype, "cellSaved", void 0);
|
|
7575
|
-
__decorate([
|
|
7749
|
+
__decorate$b([
|
|
7576
7750
|
Event()
|
|
7577
7751
|
], TreeGrid.prototype, "actionBegin", void 0);
|
|
7578
|
-
__decorate([
|
|
7752
|
+
__decorate$b([
|
|
7579
7753
|
Event()
|
|
7580
7754
|
], TreeGrid.prototype, "actionComplete", void 0);
|
|
7581
|
-
__decorate([
|
|
7755
|
+
__decorate$b([
|
|
7582
7756
|
Event()
|
|
7583
7757
|
], TreeGrid.prototype, "beginEdit", void 0);
|
|
7584
|
-
__decorate([
|
|
7758
|
+
__decorate$b([
|
|
7585
7759
|
Event()
|
|
7586
7760
|
], TreeGrid.prototype, "batchAdd", void 0);
|
|
7587
|
-
__decorate([
|
|
7761
|
+
__decorate$b([
|
|
7588
7762
|
Event()
|
|
7589
7763
|
], TreeGrid.prototype, "batchDelete", void 0);
|
|
7590
|
-
__decorate([
|
|
7764
|
+
__decorate$b([
|
|
7591
7765
|
Event()
|
|
7592
7766
|
], TreeGrid.prototype, "batchCancel", void 0);
|
|
7593
|
-
__decorate([
|
|
7767
|
+
__decorate$b([
|
|
7594
7768
|
Event()
|
|
7595
7769
|
], TreeGrid.prototype, "beforeBatchAdd", void 0);
|
|
7596
|
-
__decorate([
|
|
7770
|
+
__decorate$b([
|
|
7597
7771
|
Event()
|
|
7598
7772
|
], TreeGrid.prototype, "beforeBatchDelete", void 0);
|
|
7599
|
-
__decorate([
|
|
7773
|
+
__decorate$b([
|
|
7600
7774
|
Event()
|
|
7601
7775
|
], TreeGrid.prototype, "beforeBatchSave", void 0);
|
|
7602
|
-
__decorate([
|
|
7776
|
+
__decorate$b([
|
|
7603
7777
|
Event()
|
|
7604
7778
|
], TreeGrid.prototype, "cellEdit", void 0);
|
|
7605
|
-
__decorate([
|
|
7779
|
+
__decorate$b([
|
|
7606
7780
|
Event()
|
|
7607
7781
|
], TreeGrid.prototype, "actionFailure", void 0);
|
|
7608
|
-
__decorate([
|
|
7782
|
+
__decorate$b([
|
|
7609
7783
|
Event()
|
|
7610
7784
|
], TreeGrid.prototype, "dataBound", void 0);
|
|
7611
|
-
__decorate([
|
|
7785
|
+
__decorate$b([
|
|
7612
7786
|
Event()
|
|
7613
7787
|
], TreeGrid.prototype, "dataSourceChanged", void 0);
|
|
7614
|
-
__decorate([
|
|
7788
|
+
__decorate$b([
|
|
7615
7789
|
Event()
|
|
7616
7790
|
], TreeGrid.prototype, "dataStateChange", void 0);
|
|
7617
|
-
__decorate([
|
|
7791
|
+
__decorate$b([
|
|
7618
7792
|
Event()
|
|
7619
7793
|
], TreeGrid.prototype, "recordDoubleClick", void 0);
|
|
7620
|
-
__decorate([
|
|
7794
|
+
__decorate$b([
|
|
7621
7795
|
Event()
|
|
7622
7796
|
], TreeGrid.prototype, "rowDataBound", void 0);
|
|
7623
|
-
__decorate([
|
|
7797
|
+
__decorate$b([
|
|
7624
7798
|
Event()
|
|
7625
7799
|
], TreeGrid.prototype, "detailDataBound", void 0);
|
|
7626
|
-
__decorate([
|
|
7800
|
+
__decorate$b([
|
|
7627
7801
|
Event()
|
|
7628
7802
|
], TreeGrid.prototype, "queryCellInfo", void 0);
|
|
7629
|
-
__decorate([
|
|
7803
|
+
__decorate$b([
|
|
7630
7804
|
Property(true)
|
|
7631
7805
|
], TreeGrid.prototype, "allowSelection", void 0);
|
|
7632
|
-
__decorate([
|
|
7806
|
+
__decorate$b([
|
|
7633
7807
|
Event()
|
|
7634
7808
|
], TreeGrid.prototype, "rowSelecting", void 0);
|
|
7635
|
-
__decorate([
|
|
7809
|
+
__decorate$b([
|
|
7636
7810
|
Event()
|
|
7637
7811
|
], TreeGrid.prototype, "rowSelected", void 0);
|
|
7638
|
-
__decorate([
|
|
7812
|
+
__decorate$b([
|
|
7639
7813
|
Event()
|
|
7640
7814
|
], TreeGrid.prototype, "rowDeselecting", void 0);
|
|
7641
|
-
__decorate([
|
|
7815
|
+
__decorate$b([
|
|
7642
7816
|
Event()
|
|
7643
7817
|
], TreeGrid.prototype, "rowDeselected", void 0);
|
|
7644
|
-
__decorate([
|
|
7818
|
+
__decorate$b([
|
|
7645
7819
|
Event()
|
|
7646
7820
|
], TreeGrid.prototype, "headerCellInfo", void 0);
|
|
7647
|
-
__decorate([
|
|
7821
|
+
__decorate$b([
|
|
7648
7822
|
Event()
|
|
7649
7823
|
], TreeGrid.prototype, "cellSelecting", void 0);
|
|
7650
|
-
__decorate([
|
|
7824
|
+
__decorate$b([
|
|
7651
7825
|
Event()
|
|
7652
7826
|
], TreeGrid.prototype, "columnMenuOpen", void 0);
|
|
7653
|
-
__decorate([
|
|
7827
|
+
__decorate$b([
|
|
7654
7828
|
Event()
|
|
7655
7829
|
], TreeGrid.prototype, "columnMenuClick", void 0);
|
|
7656
|
-
__decorate([
|
|
7830
|
+
__decorate$b([
|
|
7657
7831
|
Event()
|
|
7658
7832
|
], TreeGrid.prototype, "cellSelected", void 0);
|
|
7659
|
-
__decorate([
|
|
7833
|
+
__decorate$b([
|
|
7660
7834
|
Event()
|
|
7661
7835
|
], TreeGrid.prototype, "cellDeselecting", void 0);
|
|
7662
|
-
__decorate([
|
|
7836
|
+
__decorate$b([
|
|
7663
7837
|
Event()
|
|
7664
7838
|
], TreeGrid.prototype, "cellDeselected", void 0);
|
|
7665
|
-
__decorate([
|
|
7839
|
+
__decorate$b([
|
|
7666
7840
|
Event()
|
|
7667
7841
|
], TreeGrid.prototype, "resizeStart", void 0);
|
|
7668
|
-
__decorate([
|
|
7842
|
+
__decorate$b([
|
|
7669
7843
|
Event()
|
|
7670
7844
|
], TreeGrid.prototype, "resizing", void 0);
|
|
7671
|
-
__decorate([
|
|
7845
|
+
__decorate$b([
|
|
7672
7846
|
Event()
|
|
7673
7847
|
], TreeGrid.prototype, "resizeStop", void 0);
|
|
7674
|
-
__decorate([
|
|
7848
|
+
__decorate$b([
|
|
7675
7849
|
Event()
|
|
7676
7850
|
], TreeGrid.prototype, "columnDragStart", void 0);
|
|
7677
|
-
__decorate([
|
|
7851
|
+
__decorate$b([
|
|
7678
7852
|
Event()
|
|
7679
7853
|
], TreeGrid.prototype, "columnDrag", void 0);
|
|
7680
|
-
__decorate([
|
|
7854
|
+
__decorate$b([
|
|
7681
7855
|
Event()
|
|
7682
7856
|
], TreeGrid.prototype, "columnDrop", void 0);
|
|
7683
|
-
__decorate([
|
|
7857
|
+
__decorate$b([
|
|
7684
7858
|
Event()
|
|
7685
7859
|
], TreeGrid.prototype, "checkboxChange", void 0);
|
|
7686
|
-
__decorate([
|
|
7860
|
+
__decorate$b([
|
|
7687
7861
|
Event()
|
|
7688
7862
|
], TreeGrid.prototype, "printComplete", void 0);
|
|
7689
|
-
__decorate([
|
|
7863
|
+
__decorate$b([
|
|
7690
7864
|
Event()
|
|
7691
7865
|
], TreeGrid.prototype, "beforePrint", void 0);
|
|
7692
|
-
__decorate([
|
|
7866
|
+
__decorate$b([
|
|
7693
7867
|
Event()
|
|
7694
7868
|
], TreeGrid.prototype, "toolbarClick", void 0);
|
|
7695
|
-
__decorate([
|
|
7869
|
+
__decorate$b([
|
|
7696
7870
|
Event()
|
|
7697
7871
|
], TreeGrid.prototype, "beforeDataBound", void 0);
|
|
7698
|
-
__decorate([
|
|
7872
|
+
__decorate$b([
|
|
7699
7873
|
Event()
|
|
7700
7874
|
], TreeGrid.prototype, "contextMenuOpen", void 0);
|
|
7701
|
-
__decorate([
|
|
7875
|
+
__decorate$b([
|
|
7702
7876
|
Event()
|
|
7703
7877
|
], TreeGrid.prototype, "contextMenuClick", void 0);
|
|
7704
|
-
__decorate([
|
|
7878
|
+
__decorate$b([
|
|
7705
7879
|
Event()
|
|
7706
7880
|
], TreeGrid.prototype, "beforeCopy", void 0);
|
|
7707
|
-
__decorate([
|
|
7881
|
+
__decorate$b([
|
|
7708
7882
|
Event()
|
|
7709
7883
|
], TreeGrid.prototype, "beforePaste", void 0);
|
|
7710
|
-
__decorate([
|
|
7884
|
+
__decorate$b([
|
|
7711
7885
|
Event()
|
|
7712
7886
|
], TreeGrid.prototype, "rowDrag", void 0);
|
|
7713
|
-
__decorate([
|
|
7887
|
+
__decorate$b([
|
|
7714
7888
|
Event()
|
|
7715
7889
|
], TreeGrid.prototype, "rowDragStart", void 0);
|
|
7716
|
-
__decorate([
|
|
7890
|
+
__decorate$b([
|
|
7717
7891
|
Event()
|
|
7718
7892
|
], TreeGrid.prototype, "rowDragStartHelper", void 0);
|
|
7719
|
-
__decorate([
|
|
7893
|
+
__decorate$b([
|
|
7720
7894
|
Event()
|
|
7721
7895
|
], TreeGrid.prototype, "rowDrop", void 0);
|
|
7722
|
-
__decorate([
|
|
7896
|
+
__decorate$b([
|
|
7723
7897
|
Property(-1)
|
|
7724
7898
|
], TreeGrid.prototype, "selectedRowIndex", void 0);
|
|
7725
|
-
__decorate([
|
|
7899
|
+
__decorate$b([
|
|
7726
7900
|
Complex({}, SelectionSettings)
|
|
7727
7901
|
], TreeGrid.prototype, "selectionSettings", void 0);
|
|
7728
|
-
__decorate([
|
|
7902
|
+
__decorate$b([
|
|
7729
7903
|
Property(false)
|
|
7730
7904
|
], TreeGrid.prototype, "allowExcelExport", void 0);
|
|
7731
|
-
__decorate([
|
|
7905
|
+
__decorate$b([
|
|
7732
7906
|
Property(false)
|
|
7733
7907
|
], TreeGrid.prototype, "allowPdfExport", void 0);
|
|
7734
|
-
__decorate([
|
|
7908
|
+
__decorate$b([
|
|
7735
7909
|
Event()
|
|
7736
7910
|
], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
|
|
7737
|
-
__decorate([
|
|
7911
|
+
__decorate$b([
|
|
7738
7912
|
Event()
|
|
7739
7913
|
], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
|
|
7740
|
-
__decorate([
|
|
7914
|
+
__decorate$b([
|
|
7741
7915
|
Event()
|
|
7742
7916
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
7743
|
-
__decorate([
|
|
7917
|
+
__decorate$b([
|
|
7744
7918
|
Event()
|
|
7745
7919
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
7746
|
-
__decorate([
|
|
7920
|
+
__decorate$b([
|
|
7747
7921
|
Event()
|
|
7748
7922
|
], TreeGrid.prototype, "beforeExcelExport", void 0);
|
|
7749
|
-
__decorate([
|
|
7923
|
+
__decorate$b([
|
|
7750
7924
|
Event()
|
|
7751
7925
|
], TreeGrid.prototype, "excelExportComplete", void 0);
|
|
7752
|
-
__decorate([
|
|
7926
|
+
__decorate$b([
|
|
7753
7927
|
Event()
|
|
7754
7928
|
], TreeGrid.prototype, "beforePdfExport", void 0);
|
|
7755
|
-
__decorate([
|
|
7929
|
+
__decorate$b([
|
|
7756
7930
|
Event()
|
|
7757
7931
|
], TreeGrid.prototype, "pdfExportComplete", void 0);
|
|
7758
|
-
TreeGrid = TreeGrid_1 = __decorate([
|
|
7932
|
+
TreeGrid = TreeGrid_1 = __decorate$b([
|
|
7759
7933
|
NotifyPropertyChanges
|
|
7760
7934
|
], TreeGrid);
|
|
7761
7935
|
|
|
@@ -7764,14 +7938,14 @@ TreeGrid = TreeGrid_1 = __decorate([
|
|
|
7764
7938
|
*
|
|
7765
7939
|
* @hidden
|
|
7766
7940
|
*/
|
|
7767
|
-
class Reorder
|
|
7941
|
+
class Reorder {
|
|
7768
7942
|
/**
|
|
7769
7943
|
* Constructor for Reorder module
|
|
7770
7944
|
*
|
|
7771
7945
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7772
7946
|
*/
|
|
7773
7947
|
constructor(parent) {
|
|
7774
|
-
Grid.Inject(Reorder);
|
|
7948
|
+
Grid.Inject(Reorder$1);
|
|
7775
7949
|
this.parent = parent;
|
|
7776
7950
|
this.addEventListener();
|
|
7777
7951
|
}
|
|
@@ -7828,14 +8002,14 @@ class Reorder$1 {
|
|
|
7828
8002
|
*
|
|
7829
8003
|
* @hidden
|
|
7830
8004
|
*/
|
|
7831
|
-
class Resize
|
|
8005
|
+
class Resize {
|
|
7832
8006
|
/**
|
|
7833
8007
|
* Constructor for Resize module
|
|
7834
8008
|
*
|
|
7835
8009
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7836
8010
|
*/
|
|
7837
8011
|
constructor(parent) {
|
|
7838
|
-
Grid.Inject(Resize);
|
|
8012
|
+
Grid.Inject(Resize$1);
|
|
7839
8013
|
this.parent = parent;
|
|
7840
8014
|
}
|
|
7841
8015
|
/**
|
|
@@ -7875,7 +8049,7 @@ class Resize$1 {
|
|
|
7875
8049
|
*
|
|
7876
8050
|
* @hidden
|
|
7877
8051
|
*/
|
|
7878
|
-
class RowDD
|
|
8052
|
+
class RowDD {
|
|
7879
8053
|
/**
|
|
7880
8054
|
* Constructor for render module
|
|
7881
8055
|
*
|
|
@@ -7896,7 +8070,7 @@ class RowDD$1 {
|
|
|
7896
8070
|
this.hasDropItem = true;
|
|
7897
8071
|
/** @hidden */
|
|
7898
8072
|
this.isaddtoBottom = false;
|
|
7899
|
-
Grid.Inject(RowDD);
|
|
8073
|
+
Grid.Inject(RowDD$1);
|
|
7900
8074
|
this.parent = parent;
|
|
7901
8075
|
this.addEventListener();
|
|
7902
8076
|
}
|
|
@@ -8167,15 +8341,17 @@ class RowDD$1 {
|
|
|
8167
8341
|
!Object.prototype.hasOwnProperty.call(draggedRecord.taskData, tObj.childMapping)) {
|
|
8168
8342
|
draggedRecord.taskData[tObj.childMapping] = [];
|
|
8169
8343
|
}
|
|
8170
|
-
if (
|
|
8171
|
-
(draggedRecord
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
dragRecords.
|
|
8177
|
-
|
|
8178
|
-
|
|
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
|
+
}
|
|
8179
8355
|
}
|
|
8180
8356
|
}
|
|
8181
8357
|
}
|
|
@@ -8249,8 +8425,8 @@ class RowDD$1 {
|
|
|
8249
8425
|
else {
|
|
8250
8426
|
tempDataSource = proxy.dataSource;
|
|
8251
8427
|
}
|
|
8252
|
-
|
|
8253
|
-
|
|
8428
|
+
if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
|
|
8429
|
+
&& !isNullOrUndefined(droppedRecord.taskData)) {
|
|
8254
8430
|
const keys = Object.keys(tempDataSource);
|
|
8255
8431
|
for (let i = 0; i < keys.length; i++) {
|
|
8256
8432
|
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
|
|
@@ -8464,16 +8640,16 @@ class RowDD$1 {
|
|
|
8464
8640
|
classList(ele, ['e-errorcontainer'], []);
|
|
8465
8641
|
classList(ele, ['e-icons', 'e-errorelem'], []);
|
|
8466
8642
|
const errorVal = dragelem.querySelector('.errorValue');
|
|
8467
|
-
let content
|
|
8643
|
+
let content = dragelem.querySelector('.e-rowcell').innerHTML;
|
|
8468
8644
|
if (errorVal) {
|
|
8469
|
-
content
|
|
8645
|
+
content = this.parent[`${sanitize}`](errorVal.innerHTML);
|
|
8470
8646
|
errorVal.parentNode.removeChild(errorVal);
|
|
8471
8647
|
}
|
|
8472
8648
|
dragelem.querySelector('.e-rowcell').innerHTML = '';
|
|
8473
8649
|
const spanContent = document.createElement('span');
|
|
8474
8650
|
spanContent.className = 'errorValue';
|
|
8475
8651
|
spanContent.style.paddingLeft = '16px';
|
|
8476
|
-
spanContent.innerHTML = this.parent[`${sanitize}`](content
|
|
8652
|
+
spanContent.innerHTML = this.parent[`${sanitize}`](content);
|
|
8477
8653
|
dragelem.querySelector('.e-rowcell').appendChild(ele);
|
|
8478
8654
|
dragelem.querySelector('.e-rowcell').appendChild(spanContent);
|
|
8479
8655
|
const dropItemSpan = document.querySelector('.e-dropitemscount');
|
|
@@ -8962,7 +9138,7 @@ class RowDD$1 {
|
|
|
8962
9138
|
}
|
|
8963
9139
|
}
|
|
8964
9140
|
if (this.dropPosition === 'middleSegment') {
|
|
8965
|
-
const parentItem = extend({}, droppedRecord);
|
|
9141
|
+
const parentItem = extend$1({}, droppedRecord);
|
|
8966
9142
|
delete parentItem.childRecords;
|
|
8967
9143
|
draggedRecord.parentItem = parentItem;
|
|
8968
9144
|
draggedRecord.parentUniqueID = droppedRecord.uniqueID;
|
|
@@ -9253,11 +9429,7 @@ class RowDD$1 {
|
|
|
9253
9429
|
}
|
|
9254
9430
|
}
|
|
9255
9431
|
|
|
9256
|
-
|
|
9257
|
-
* Base export
|
|
9258
|
-
*/
|
|
9259
|
-
|
|
9260
|
-
var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9432
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9261
9433
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9262
9434
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9263
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;
|
|
@@ -9266,15 +9438,11 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
9266
9438
|
/**
|
|
9267
9439
|
* Configures the row drop settings of the TreeGrid.
|
|
9268
9440
|
*/
|
|
9269
|
-
class RowDropSettings
|
|
9441
|
+
class RowDropSettings extends ChildProperty {
|
|
9270
9442
|
}
|
|
9271
|
-
__decorate$
|
|
9443
|
+
__decorate$c([
|
|
9272
9444
|
Property()
|
|
9273
|
-
], RowDropSettings
|
|
9274
|
-
|
|
9275
|
-
/**
|
|
9276
|
-
* Models export
|
|
9277
|
-
*/
|
|
9445
|
+
], RowDropSettings.prototype, "targetID", void 0);
|
|
9278
9446
|
|
|
9279
9447
|
/**
|
|
9280
9448
|
* RowModelGenerator is used to generate grid data rows.
|
|
@@ -9328,8 +9496,8 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9328
9496
|
const rows = super.generateRows(data, notifyArgs);
|
|
9329
9497
|
if (!isNullOrUndefined((this.visualData))) {
|
|
9330
9498
|
for (let r = 0; r < rows.length; r++) {
|
|
9331
|
-
rows[parseInt(r.toString(), 10)].index
|
|
9332
|
-
(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);
|
|
9333
9501
|
}
|
|
9334
9502
|
}
|
|
9335
9503
|
return rows;
|
|
@@ -9368,23 +9536,19 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9368
9536
|
}
|
|
9369
9537
|
}
|
|
9370
9538
|
|
|
9371
|
-
/**
|
|
9372
|
-
* Renderer export
|
|
9373
|
-
*/
|
|
9374
|
-
|
|
9375
9539
|
/**
|
|
9376
9540
|
* TreeGrid Filter module will handle filtering action
|
|
9377
9541
|
*
|
|
9378
9542
|
* @hidden
|
|
9379
9543
|
*/
|
|
9380
|
-
class Filter
|
|
9544
|
+
class Filter {
|
|
9381
9545
|
/**
|
|
9382
9546
|
* Constructor for Filter module
|
|
9383
9547
|
*
|
|
9384
9548
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9385
9549
|
*/
|
|
9386
9550
|
constructor(parent) {
|
|
9387
|
-
Grid.Inject(Filter);
|
|
9551
|
+
Grid.Inject(Filter$1);
|
|
9388
9552
|
this.parent = parent;
|
|
9389
9553
|
this.isHierarchyFilter = false;
|
|
9390
9554
|
this.filteredResult = [];
|
|
@@ -9606,7 +9770,7 @@ class Filter$1 {
|
|
|
9606
9770
|
*
|
|
9607
9771
|
* @hidden
|
|
9608
9772
|
*/
|
|
9609
|
-
class ExcelExport
|
|
9773
|
+
class ExcelExport {
|
|
9610
9774
|
/**
|
|
9611
9775
|
* Constructor for Excel Export module
|
|
9612
9776
|
*
|
|
@@ -9614,7 +9778,7 @@ class ExcelExport$1 {
|
|
|
9614
9778
|
*/
|
|
9615
9779
|
constructor(parent) {
|
|
9616
9780
|
this.isCollapsedStatePersist = false;
|
|
9617
|
-
Grid.Inject(ExcelExport);
|
|
9781
|
+
Grid.Inject(ExcelExport$1);
|
|
9618
9782
|
this.parent = parent;
|
|
9619
9783
|
this.dataResults = {};
|
|
9620
9784
|
this.addEventListener();
|
|
@@ -9673,9 +9837,10 @@ class ExcelExport$1 {
|
|
|
9673
9837
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
9674
9838
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
9675
9839
|
}
|
|
9676
|
-
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
|
|
9677
|
-
|
|
9678
|
-
|
|
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
|
+
}
|
|
9679
9844
|
}
|
|
9680
9845
|
return new Promise((resolve) => {
|
|
9681
9846
|
const dm = this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
|
|
@@ -9686,7 +9851,7 @@ class ExcelExport$1 {
|
|
|
9686
9851
|
query.queries = this.parent.grid.getDataModule().generateQuery().queries;
|
|
9687
9852
|
setValue('query', query, property);
|
|
9688
9853
|
}
|
|
9689
|
-
this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
|
|
9854
|
+
this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
|
|
9690
9855
|
if (getObject('cancel', property)) {
|
|
9691
9856
|
return null;
|
|
9692
9857
|
}
|
|
@@ -9811,14 +9976,14 @@ class ExcelExport$1 {
|
|
|
9811
9976
|
*
|
|
9812
9977
|
* @hidden
|
|
9813
9978
|
*/
|
|
9814
|
-
class PdfExport
|
|
9979
|
+
class PdfExport {
|
|
9815
9980
|
/**
|
|
9816
9981
|
* Constructor for PDF export module
|
|
9817
9982
|
*
|
|
9818
9983
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9819
9984
|
*/
|
|
9820
9985
|
constructor(parent) {
|
|
9821
|
-
Grid.Inject(PdfExport);
|
|
9986
|
+
Grid.Inject(PdfExport$1);
|
|
9822
9987
|
this.parent = parent;
|
|
9823
9988
|
this.dataResults = {};
|
|
9824
9989
|
this.addEventListener();
|
|
@@ -9876,7 +10041,7 @@ class PdfExport$1 {
|
|
|
9876
10041
|
query = this.generateQuery(query);
|
|
9877
10042
|
setValue('query', query, prop);
|
|
9878
10043
|
}
|
|
9879
|
-
this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
|
|
10044
|
+
this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
|
|
9880
10045
|
if (getObject('cancel', prop)) {
|
|
9881
10046
|
return null;
|
|
9882
10047
|
}
|
|
@@ -9971,9 +10136,9 @@ class PdfExport$1 {
|
|
|
9971
10136
|
*
|
|
9972
10137
|
* @hidden
|
|
9973
10138
|
*/
|
|
9974
|
-
class Page
|
|
10139
|
+
class Page {
|
|
9975
10140
|
constructor(parent) {
|
|
9976
|
-
Grid.Inject(Page);
|
|
10141
|
+
Grid.Inject(Page$1);
|
|
9977
10142
|
this.parent = parent;
|
|
9978
10143
|
this.addEventListener();
|
|
9979
10144
|
}
|
|
@@ -10038,6 +10203,10 @@ class Page$1 {
|
|
|
10038
10203
|
* @returns {void}
|
|
10039
10204
|
*/
|
|
10040
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
|
+
}
|
|
10041
10210
|
this.parent.grid.pagerModule.updateExternalMessage(message);
|
|
10042
10211
|
}
|
|
10043
10212
|
/**
|
|
@@ -10134,8 +10303,8 @@ class Page$1 {
|
|
|
10134
10303
|
}
|
|
10135
10304
|
else {
|
|
10136
10305
|
const dm = new DataManager(pageingDetails.result);
|
|
10137
|
-
const expanded
|
|
10138
|
-
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));
|
|
10139
10308
|
let visualData;
|
|
10140
10309
|
if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
|
|
10141
10310
|
pageingDetails.actionArgs.action !== 'expand')) {
|
|
@@ -10143,7 +10312,7 @@ class Page$1 {
|
|
|
10143
10312
|
}
|
|
10144
10313
|
else {
|
|
10145
10314
|
visualData = parents.filter((e) => {
|
|
10146
|
-
return getExpandStatus(this.parent, e
|
|
10315
|
+
return getExpandStatus(this.parent, e);
|
|
10147
10316
|
});
|
|
10148
10317
|
}
|
|
10149
10318
|
pageingDetails.count = visualData.length;
|
|
@@ -10170,9 +10339,9 @@ class Page$1 {
|
|
|
10170
10339
|
*
|
|
10171
10340
|
* @hidden
|
|
10172
10341
|
*/
|
|
10173
|
-
class Toolbar
|
|
10342
|
+
class Toolbar {
|
|
10174
10343
|
constructor(parent) {
|
|
10175
|
-
Grid.Inject(Toolbar);
|
|
10344
|
+
Grid.Inject(Toolbar$1);
|
|
10176
10345
|
this.parent = parent;
|
|
10177
10346
|
this.addEventListener();
|
|
10178
10347
|
}
|
|
@@ -10319,14 +10488,14 @@ class Toolbar$1 {
|
|
|
10319
10488
|
*
|
|
10320
10489
|
* @hidden
|
|
10321
10490
|
*/
|
|
10322
|
-
class Aggregate
|
|
10491
|
+
class Aggregate {
|
|
10323
10492
|
/**
|
|
10324
10493
|
* Constructor for Aggregate module
|
|
10325
10494
|
*
|
|
10326
10495
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10327
10496
|
*/
|
|
10328
10497
|
constructor(parent) {
|
|
10329
|
-
Grid.Inject(Aggregate);
|
|
10498
|
+
Grid.Inject(Aggregate$1);
|
|
10330
10499
|
this.parent = parent;
|
|
10331
10500
|
this.flatChildRecords = [];
|
|
10332
10501
|
this.summaryQuery = [];
|
|
@@ -10394,7 +10563,7 @@ class Aggregate$1 {
|
|
|
10394
10563
|
}
|
|
10395
10564
|
});
|
|
10396
10565
|
const currentIndex = idx + childRecordsLength + summaryRowIndex;
|
|
10397
|
-
const summaryParent = extend({}, parentRecord);
|
|
10566
|
+
const summaryParent = extend$1({}, parentRecord);
|
|
10398
10567
|
delete summaryParent.childRecords;
|
|
10399
10568
|
delete summaryParent[this.parent.childMapping];
|
|
10400
10569
|
setValue('parentItem', summaryParent, item);
|
|
@@ -10560,9 +10729,9 @@ class Aggregate$1 {
|
|
|
10560
10729
|
*
|
|
10561
10730
|
* @hidden
|
|
10562
10731
|
*/
|
|
10563
|
-
class Sort
|
|
10732
|
+
class Sort {
|
|
10564
10733
|
constructor(grid) {
|
|
10565
|
-
Grid.Inject(Sort);
|
|
10734
|
+
Grid.Inject(Sort$1);
|
|
10566
10735
|
this.parent = grid;
|
|
10567
10736
|
this.taskIds = [];
|
|
10568
10737
|
this.flatSortedData = [];
|
|
@@ -10683,14 +10852,14 @@ class Sort$1 {
|
|
|
10683
10852
|
*
|
|
10684
10853
|
* @hidden
|
|
10685
10854
|
*/
|
|
10686
|
-
class ColumnMenu
|
|
10855
|
+
class ColumnMenu {
|
|
10687
10856
|
/**
|
|
10688
10857
|
* Constructor for render module
|
|
10689
10858
|
*
|
|
10690
10859
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10691
10860
|
*/
|
|
10692
10861
|
constructor(parent) {
|
|
10693
|
-
Grid.Inject(ColumnMenu);
|
|
10862
|
+
Grid.Inject(ColumnMenu$1);
|
|
10694
10863
|
this.parent = parent;
|
|
10695
10864
|
}
|
|
10696
10865
|
getColumnMenu() {
|
|
@@ -10715,9 +10884,9 @@ class ColumnMenu$1 {
|
|
|
10715
10884
|
*
|
|
10716
10885
|
* @hidden
|
|
10717
10886
|
*/
|
|
10718
|
-
class ContextMenu
|
|
10887
|
+
class ContextMenu {
|
|
10719
10888
|
constructor(parent) {
|
|
10720
|
-
Grid.Inject(ContextMenu);
|
|
10889
|
+
Grid.Inject(ContextMenu$1);
|
|
10721
10890
|
this.parent = parent;
|
|
10722
10891
|
this.addEventListener();
|
|
10723
10892
|
}
|
|
@@ -10997,7 +11166,7 @@ class BatchEdit {
|
|
|
10997
11166
|
if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
10998
11167
|
added.primaryParent = parentRecord;
|
|
10999
11168
|
if (this.selectedIndex > -1) {
|
|
11000
|
-
added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
|
|
11169
|
+
added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
|
|
11001
11170
|
added.parentUniqueID = added.parentItem.uniqueID;
|
|
11002
11171
|
delete added.parentItem.childRecords;
|
|
11003
11172
|
delete added.parentItem[this.parent.childMapping];
|
|
@@ -11106,13 +11275,13 @@ class BatchEdit {
|
|
|
11106
11275
|
this.updateRowIndex();
|
|
11107
11276
|
// update focus module, need to refix this once grid source modified.
|
|
11108
11277
|
const focusModule = getValue('focusModule', this.parent.grid);
|
|
11109
|
-
const table
|
|
11278
|
+
const table = this.parent.getContentTable();
|
|
11110
11279
|
if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
|
|
11111
11280
|
actualIndex = e.row.rowIndex;
|
|
11112
11281
|
focusModule.getContent().matrix.matrix = this.matrix;
|
|
11113
11282
|
}
|
|
11114
11283
|
else {
|
|
11115
|
-
actualIndex = table
|
|
11284
|
+
actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
|
|
11116
11285
|
// if (this.parent.frozenRows || this.parent.frozenColumns) {
|
|
11117
11286
|
// actualIndex = this.batchIndex;
|
|
11118
11287
|
// }
|
|
@@ -11340,7 +11509,7 @@ class BatchEdit {
|
|
|
11340
11509
|
addRecords.reverse();
|
|
11341
11510
|
}
|
|
11342
11511
|
for (i = 0; i < addRecords.length; i++) {
|
|
11343
|
-
const taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11512
|
+
const taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11344
11513
|
delete taskData.parentItem;
|
|
11345
11514
|
delete taskData.uniqueID;
|
|
11346
11515
|
delete taskData.index;
|
|
@@ -11464,7 +11633,7 @@ class BatchEdit {
|
|
|
11464
11633
|
* TreeGrid Edit Module
|
|
11465
11634
|
* The `Edit` module is used to handle editing actions.
|
|
11466
11635
|
*/
|
|
11467
|
-
class Edit
|
|
11636
|
+
class Edit {
|
|
11468
11637
|
/**
|
|
11469
11638
|
* Constructor for Edit module
|
|
11470
11639
|
*
|
|
@@ -11476,7 +11645,7 @@ class Edit$1 {
|
|
|
11476
11645
|
this.prevAriaRowIndex = '-1';
|
|
11477
11646
|
this.isAddedRowByMethod = false;
|
|
11478
11647
|
this.isAddedRowByContextMenu = false;
|
|
11479
|
-
Grid.Inject(Edit);
|
|
11648
|
+
Grid.Inject(Edit$1);
|
|
11480
11649
|
this.parent = parent;
|
|
11481
11650
|
this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
|
|
11482
11651
|
this.previousNewRowPosition = null;
|
|
@@ -11600,8 +11769,9 @@ class Edit$1 {
|
|
|
11600
11769
|
const eventArgs = getObject('editAction', args);
|
|
11601
11770
|
const eventName = getObject('name', eventArgs);
|
|
11602
11771
|
const treeObj = this.parent;
|
|
11603
|
-
const adaptor = treeObj.dataSource
|
|
11604
|
-
|
|
11772
|
+
const adaptor = !isNullOrUndefined(treeObj.dataSource)
|
|
11773
|
+
&& treeObj.dataSource.adaptor;
|
|
11774
|
+
if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
|
|
11605
11775
|
(eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
|
|
11606
11776
|
(treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
|
|
11607
11777
|
|| treeObj.editSettings.newRowPosition === 'Above')) {
|
|
@@ -11816,7 +11986,7 @@ class Edit$1 {
|
|
|
11816
11986
|
customCellSave(args) {
|
|
11817
11987
|
if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
|
|
11818
11988
|
this.updateCell(args, args.rowIndex);
|
|
11819
|
-
this.afterCellSave(args, args.row
|
|
11989
|
+
this.afterCellSave(args, args.row);
|
|
11820
11990
|
}
|
|
11821
11991
|
}
|
|
11822
11992
|
cellSave(args) {
|
|
@@ -11859,7 +12029,7 @@ class Edit$1 {
|
|
|
11859
12029
|
}
|
|
11860
12030
|
}
|
|
11861
12031
|
const arg = {};
|
|
11862
|
-
extend(arg, args);
|
|
12032
|
+
extend$1(arg, args);
|
|
11863
12033
|
arg.cancel = false;
|
|
11864
12034
|
arg.type = 'save';
|
|
11865
12035
|
row = this.parent.grid.getRows()[row.rowIndex];
|
|
@@ -11880,7 +12050,7 @@ class Edit$1 {
|
|
|
11880
12050
|
else {
|
|
11881
12051
|
this.updateCell(args, rowIndex);
|
|
11882
12052
|
setValue('isEdit', false, this.parent.grid);
|
|
11883
|
-
this.afterCellSave(args, row
|
|
12053
|
+
this.afterCellSave(args, row);
|
|
11884
12054
|
}
|
|
11885
12055
|
}
|
|
11886
12056
|
else if (isRemoteData(this.parent) ||
|
|
@@ -11889,7 +12059,7 @@ class Edit$1 {
|
|
|
11889
12059
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
11890
12060
|
this.updateCell(args, rowIndex);
|
|
11891
12061
|
setValue('isEdit', false, this.parent.grid);
|
|
11892
|
-
this.afterCellSave(args, row
|
|
12062
|
+
this.afterCellSave(args, row);
|
|
11893
12063
|
}
|
|
11894
12064
|
else {
|
|
11895
12065
|
let crud = null;
|
|
@@ -11900,7 +12070,7 @@ class Edit$1 {
|
|
|
11900
12070
|
}
|
|
11901
12071
|
this.updateCell(args, rowIndex);
|
|
11902
12072
|
setValue('isEdit', false, this.parent.grid);
|
|
11903
|
-
this.afterCellSave(args, row
|
|
12073
|
+
this.afterCellSave(args, row);
|
|
11904
12074
|
});
|
|
11905
12075
|
}
|
|
11906
12076
|
}
|
|
@@ -11913,7 +12083,7 @@ class Edit$1 {
|
|
|
11913
12083
|
this.parent.grid.contentModule['virtualData'] = {};
|
|
11914
12084
|
}
|
|
11915
12085
|
}
|
|
11916
|
-
afterCellSave(args, row
|
|
12086
|
+
afterCellSave(args, row) {
|
|
11917
12087
|
if (this.parent.grid.aggregateModule) {
|
|
11918
12088
|
this.parent.grid.aggregateModule.refresh(args.rowData);
|
|
11919
12089
|
}
|
|
@@ -12033,9 +12203,9 @@ class Edit$1 {
|
|
|
12033
12203
|
if (!isNullOrUndefined(treecell)) {
|
|
12034
12204
|
for (let l = 0; l < treecell.classList.length; l++) {
|
|
12035
12205
|
const value = treecell.classList[parseInt(l.toString(), 10)];
|
|
12036
|
-
const remove
|
|
12206
|
+
const remove = /e-gridrowindex/i;
|
|
12037
12207
|
const removed = /e-griddetailrowindex/i;
|
|
12038
|
-
const result = value.match(remove
|
|
12208
|
+
const result = value.match(remove);
|
|
12039
12209
|
const results = value.match(removed);
|
|
12040
12210
|
if (result != null) {
|
|
12041
12211
|
removeClass([treecell], value);
|
|
@@ -12286,7 +12456,7 @@ class Edit$1 {
|
|
|
12286
12456
|
if (args.action === 'add') {
|
|
12287
12457
|
const key = this.parent.grid.getPrimaryKeyFieldNames()[0];
|
|
12288
12458
|
let position = null;
|
|
12289
|
-
value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
|
|
12459
|
+
value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
|
|
12290
12460
|
let currentData;
|
|
12291
12461
|
if (this.parent.enableVirtualization && args.index !== 0) {
|
|
12292
12462
|
currentData = this.parent.flatData;
|
|
@@ -12338,7 +12508,7 @@ class Edit$1 {
|
|
|
12338
12508
|
else if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
12339
12509
|
position = 'after';
|
|
12340
12510
|
if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
|
|
12341
|
-
value.parentItem = extend({}, currentData[this.addRowIndex]);
|
|
12511
|
+
value.parentItem = extend$1({}, currentData[this.addRowIndex]);
|
|
12342
12512
|
value.parentUniqueID = value.parentItem.uniqueID;
|
|
12343
12513
|
delete value.parentItem.childRecords;
|
|
12344
12514
|
delete value.parentItem[this.parent.childMapping];
|
|
@@ -12364,7 +12534,7 @@ class Edit$1 {
|
|
|
12364
12534
|
if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
|
|
12365
12535
|
if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
|
|
12366
12536
|
value.parentUniqueID = parentUniqueID;
|
|
12367
|
-
value.parentItem = extend({}, parentItem);
|
|
12537
|
+
value.parentItem = extend$1({}, parentItem);
|
|
12368
12538
|
delete value.parentItem.childRecords;
|
|
12369
12539
|
delete value.parentItem[this.parent.childMapping];
|
|
12370
12540
|
}
|
|
@@ -12505,9 +12675,9 @@ class Edit$1 {
|
|
|
12505
12675
|
*
|
|
12506
12676
|
* @hidden
|
|
12507
12677
|
*/
|
|
12508
|
-
class CommandColumn
|
|
12678
|
+
class CommandColumn {
|
|
12509
12679
|
constructor(parent) {
|
|
12510
|
-
Grid.Inject(CommandColumn);
|
|
12680
|
+
Grid.Inject(CommandColumn$1);
|
|
12511
12681
|
this.parent = parent;
|
|
12512
12682
|
}
|
|
12513
12683
|
/**
|
|
@@ -12535,9 +12705,9 @@ class CommandColumn$1 {
|
|
|
12535
12705
|
*
|
|
12536
12706
|
* @hidden
|
|
12537
12707
|
*/
|
|
12538
|
-
class DetailRow
|
|
12708
|
+
class DetailRow {
|
|
12539
12709
|
constructor(parent) {
|
|
12540
|
-
Grid.Inject(DetailRow);
|
|
12710
|
+
Grid.Inject(DetailRow$1);
|
|
12541
12711
|
this.parent = parent;
|
|
12542
12712
|
this.addEventListener();
|
|
12543
12713
|
}
|
|
@@ -12676,6 +12846,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12676
12846
|
getFrozenRightVirtualRowByIndex(index) {
|
|
12677
12847
|
return this.getRowCollection(index, false, false, true);
|
|
12678
12848
|
}
|
|
12849
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12679
12850
|
getRowCollection(index, isMovable, isRowObject, isFrozenRight) {
|
|
12680
12851
|
const startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
|
|
12681
12852
|
const rowCollection = this.parent.getDataRows();
|
|
@@ -12708,10 +12879,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12708
12879
|
}
|
|
12709
12880
|
}
|
|
12710
12881
|
indexModifier(args) {
|
|
12711
|
-
const content
|
|
12882
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
12712
12883
|
if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
|
|
12713
12884
|
if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
|
|
12714
|
-
const nextSetResIndex = ~~(content
|
|
12885
|
+
const nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
|
|
12715
12886
|
let lastIndex = nextSetResIndex + this.parent.getRows().length;
|
|
12716
12887
|
if (lastIndex > args.count) {
|
|
12717
12888
|
lastIndex = nextSetResIndex +
|
|
@@ -12839,8 +13010,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12839
13010
|
super[`${dataBoundEve}`]();
|
|
12840
13011
|
}
|
|
12841
13012
|
rowSelectedEvent(args) {
|
|
12842
|
-
const rowSelected
|
|
12843
|
-
super[`${rowSelected
|
|
13013
|
+
const rowSelected = 'rowSelected';
|
|
13014
|
+
super[`${rowSelected}`](args);
|
|
12844
13015
|
}
|
|
12845
13016
|
toSelectVirtualRow(args) {
|
|
12846
13017
|
if (this.parent.isEdit) {
|
|
@@ -12925,8 +13096,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12925
13096
|
}
|
|
12926
13097
|
virtualEditSuccess() {
|
|
12927
13098
|
const isAdd = 'isAdd';
|
|
12928
|
-
const content
|
|
12929
|
-
if (this[`${isAdd}`] && content
|
|
13099
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13100
|
+
if (this[`${isAdd}`] && content.querySelector('.e-addedrow')) {
|
|
12930
13101
|
this.recordAdded = true;
|
|
12931
13102
|
}
|
|
12932
13103
|
}
|
|
@@ -12940,8 +13111,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12940
13111
|
}
|
|
12941
13112
|
restoreNewRow() {
|
|
12942
13113
|
const isAdd = 'isAdd';
|
|
12943
|
-
const content
|
|
12944
|
-
if (this[`${isAdd}`] && !content
|
|
13114
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13115
|
+
if (this[`${isAdd}`] && !content.querySelector('.e-addedrow')) {
|
|
12945
13116
|
this.parent.isEdit = false;
|
|
12946
13117
|
this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
|
|
12947
13118
|
}
|
|
@@ -12958,8 +13129,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12958
13129
|
this.addRowIndex = addArgs.addRowIndex;
|
|
12959
13130
|
this.dataRowIndex = this.parent.root.editModule.selectedIndex;
|
|
12960
13131
|
}
|
|
12961
|
-
const actionComplete
|
|
12962
|
-
super[`${actionComplete
|
|
13132
|
+
const actionComplete = 'actionComplete';
|
|
13133
|
+
super[`${actionComplete}`](args);
|
|
12963
13134
|
}
|
|
12964
13135
|
onEnteredAction() {
|
|
12965
13136
|
return (element, current, direction, e, isWheel, check) => {
|
|
@@ -13007,7 +13178,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13007
13178
|
const info = scrollArgs.sentinel;
|
|
13008
13179
|
const rowHeight = this.parent.getRowHeight();
|
|
13009
13180
|
const outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
|
|
13010
|
-
const content
|
|
13181
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13011
13182
|
const scrollHeight = outBuffer * rowHeight;
|
|
13012
13183
|
const upScroll = (scrollArgs.offset.top - this.translateY) < 0;
|
|
13013
13184
|
const downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
|
|
@@ -13017,7 +13188,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13017
13188
|
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13018
13189
|
const vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
|
|
13019
13190
|
this.parent.element.getBoundingClientRect().height);
|
|
13020
|
-
let index = (~~(content
|
|
13191
|
+
let index = (~~(content.scrollTop / rowHeight)
|
|
13021
13192
|
+ Math.ceil(vHeight / rowHeight))
|
|
13022
13193
|
- this.parent.pageSettings.pageSize;
|
|
13023
13194
|
index = (index > 0) ? index : 0;
|
|
@@ -13062,7 +13233,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13062
13233
|
}
|
|
13063
13234
|
}
|
|
13064
13235
|
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13065
|
-
let nextSetResIndex = ~~(content
|
|
13236
|
+
let nextSetResIndex = ~~(content.scrollTop / rowHeight);
|
|
13066
13237
|
const isLastBlock = (this[`${selectedRowIndex}`] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
|
|
13067
13238
|
if (!isNullOrUndefined(this[`${selectedRowIndex}`]) && this[`${selectedRowIndex}`] !== -1 &&
|
|
13068
13239
|
nextSetResIndex !== this[`${selectedRowIndex}`] && !isLastBlock) {
|
|
@@ -13084,7 +13255,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13084
13255
|
this.startIndex = currentViewData[0][`${indexValue}`] + (this.parent.pageSettings.pageSize / 2);
|
|
13085
13256
|
}
|
|
13086
13257
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
13087
|
-
this.translateY = this.getTranslateY(scrollArgs.offset.top, content
|
|
13258
|
+
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
13088
13259
|
}
|
|
13089
13260
|
else {
|
|
13090
13261
|
if (this.totalRecords === this.endIndex) {
|
|
@@ -13111,10 +13282,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13111
13282
|
this.previousInfo = viewInfo;
|
|
13112
13283
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13113
13284
|
const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13285
|
+
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13114
13286
|
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13115
13287
|
viewInfo.loadNext = false;
|
|
13116
13288
|
}
|
|
13117
|
-
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13118
13289
|
this.requestType = 'virtualscroll';
|
|
13119
13290
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
13120
13291
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -13313,7 +13484,7 @@ class TreeInterSectionObserver extends InterSectionObserver {
|
|
|
13313
13484
|
*
|
|
13314
13485
|
* @hidden
|
|
13315
13486
|
*/
|
|
13316
|
-
class VirtualScroll
|
|
13487
|
+
class VirtualScroll {
|
|
13317
13488
|
/**
|
|
13318
13489
|
* Constructor for VirtualScroll module
|
|
13319
13490
|
*
|
|
@@ -13382,10 +13553,10 @@ class VirtualScroll$1 {
|
|
|
13382
13553
|
}
|
|
13383
13554
|
virtualPageAction(pageingDetails) {
|
|
13384
13555
|
const dm = new DataManager(pageingDetails.result);
|
|
13385
|
-
const expanded
|
|
13386
|
-
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));
|
|
13387
13558
|
const visualData = parents.filter((e) => {
|
|
13388
|
-
return getExpandStatus(this.parent, e
|
|
13559
|
+
return getExpandStatus(this.parent, e);
|
|
13389
13560
|
});
|
|
13390
13561
|
this.visualData = visualData;
|
|
13391
13562
|
pageingDetails.count = visualData.length;
|
|
@@ -13478,7 +13649,7 @@ class VirtualScroll$1 {
|
|
|
13478
13649
|
this.removeEventListener();
|
|
13479
13650
|
}
|
|
13480
13651
|
}
|
|
13481
|
-
class TreeVirtual extends VirtualScroll {
|
|
13652
|
+
class TreeVirtual extends VirtualScroll$1 {
|
|
13482
13653
|
constructor(parent, locator) {
|
|
13483
13654
|
super(parent, locator);
|
|
13484
13655
|
getValue('parent', this).off('initial-load', getValue('instantiateRenderer', this), this);
|
|
@@ -13519,14 +13690,14 @@ class TreeVirtual extends VirtualScroll {
|
|
|
13519
13690
|
*
|
|
13520
13691
|
* @hidden
|
|
13521
13692
|
*/
|
|
13522
|
-
class Freeze
|
|
13693
|
+
class Freeze {
|
|
13523
13694
|
/**
|
|
13524
13695
|
* Constructor for render module
|
|
13525
13696
|
*
|
|
13526
13697
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
13527
13698
|
*/
|
|
13528
13699
|
constructor(parent) {
|
|
13529
|
-
Grid.Inject(Freeze);
|
|
13700
|
+
Grid.Inject(Freeze$1);
|
|
13530
13701
|
this.parent = parent;
|
|
13531
13702
|
this.addEventListener();
|
|
13532
13703
|
}
|
|
@@ -13618,14 +13789,14 @@ class Freeze$1 {
|
|
|
13618
13789
|
*
|
|
13619
13790
|
* @hidden
|
|
13620
13791
|
*/
|
|
13621
|
-
class ColumnChooser
|
|
13792
|
+
class ColumnChooser {
|
|
13622
13793
|
/**
|
|
13623
13794
|
* Constructor for render module
|
|
13624
13795
|
*
|
|
13625
13796
|
* @param {TreeGrid} parent - Tree Grid instance.
|
|
13626
13797
|
*/
|
|
13627
13798
|
constructor(parent) {
|
|
13628
|
-
Grid.Inject(ColumnChooser);
|
|
13799
|
+
Grid.Inject(ColumnChooser$1);
|
|
13629
13800
|
this.parent = parent;
|
|
13630
13801
|
}
|
|
13631
13802
|
/**
|
|
@@ -13663,7 +13834,7 @@ class ColumnChooser$1 {
|
|
|
13663
13834
|
*
|
|
13664
13835
|
* @hidden
|
|
13665
13836
|
*/
|
|
13666
|
-
class InfiniteScroll
|
|
13837
|
+
class InfiniteScroll {
|
|
13667
13838
|
/**
|
|
13668
13839
|
* Constructor for VirtualScroll module
|
|
13669
13840
|
*
|
|
@@ -13671,7 +13842,7 @@ class InfiniteScroll$1 {
|
|
|
13671
13842
|
*/
|
|
13672
13843
|
constructor(parent) {
|
|
13673
13844
|
this.parent = parent;
|
|
13674
|
-
Grid.Inject(InfiniteScroll);
|
|
13845
|
+
Grid.Inject(InfiniteScroll$1);
|
|
13675
13846
|
this.addEventListener();
|
|
13676
13847
|
}
|
|
13677
13848
|
/**
|
|
@@ -13769,8 +13940,8 @@ class InfiniteScroll$1 {
|
|
|
13769
13940
|
*/
|
|
13770
13941
|
infinitePageAction(pageingDetails) {
|
|
13771
13942
|
const dm = new DataManager(pageingDetails.result);
|
|
13772
|
-
const expanded
|
|
13773
|
-
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));
|
|
13774
13945
|
const actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
|
|
13775
13946
|
const actions = getValue('actions', this.parent.grid.infiniteScrollModule);
|
|
13776
13947
|
if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
|
|
@@ -13960,17 +14131,5 @@ class InfiniteScroll$1 {
|
|
|
13960
14131
|
}
|
|
13961
14132
|
}
|
|
13962
14133
|
|
|
13963
|
-
|
|
13964
|
-
* actions export
|
|
13965
|
-
*/
|
|
13966
|
-
|
|
13967
|
-
/**
|
|
13968
|
-
* TreeGrid component exported items
|
|
13969
|
-
*/
|
|
13970
|
-
|
|
13971
|
-
/**
|
|
13972
|
-
* Export TreeGrid component
|
|
13973
|
-
*/
|
|
13974
|
-
|
|
13975
|
-
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 };
|
|
13976
14135
|
//# sourceMappingURL=ej2-treegrid.es2015.js.map
|