@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 { Property, merge, ChildProperty, Collection, isNullOrUndefined, Browser, removeClass, addClass, getValue, createElement, setValue, extend as extend$1, Internationalization, getEnumValue, compile, L10n, EventHandler, KeyboardEvents, SanitizeHtmlHelper, Complex, Event, NotifyPropertyChanges, Component, closest, classList, setStyleAttribute, select, debounce, remove } from '@syncfusion/ej2-base';
|
|
2
|
+
import { Grid, Logger as Logger$1, 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, Scroll, RowDD as RowDD$1, VirtualRowModelGenerator, Filter as Filter$1, ExcelExport as ExcelExport$1, PdfExport as PdfExport$1, Page as Page$1, Toolbar as Toolbar$1, calculateAggregate, Aggregate as Aggregate$1, Sort as Sort$1, ColumnMenu as ColumnMenu$1, ContextMenu as ContextMenu$1, resetRowIndex, Edit as Edit$1, CommandColumn as CommandColumn$1, DetailRow as DetailRow$1, Cell, VirtualContentRenderer, InterSectionObserver, getTransformValues, RenderType, VirtualHeaderRenderer, VirtualScroll as VirtualScroll$1, ColumnChooser as ColumnChooser$1, RowRenderer, InfiniteScroll as InfiniteScroll$1 } 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 __extends
|
|
7
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
8
8
|
var extendStatics = function (d, b) {
|
|
9
9
|
extendStatics = Object.setPrototypeOf ||
|
|
10
10
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -17,7 +17,7 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
|
17
17
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
18
|
};
|
|
19
19
|
})();
|
|
20
|
-
var __decorate
|
|
20
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
21
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
22
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
23
|
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;
|
|
@@ -120,11 +120,11 @@ var Column = /** @__PURE__ @class */ (function () {
|
|
|
120
120
|
* Defines TreeGrid column
|
|
121
121
|
*/
|
|
122
122
|
var TreeGridColumn = /** @__PURE__ @class */ (function (_super) {
|
|
123
|
-
__extends
|
|
123
|
+
__extends(TreeGridColumn, _super);
|
|
124
124
|
function TreeGridColumn() {
|
|
125
125
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
126
126
|
}
|
|
127
|
-
__decorate
|
|
127
|
+
__decorate([
|
|
128
128
|
Property(null)
|
|
129
129
|
], TreeGridColumn.prototype, "columns", void 0);
|
|
130
130
|
return TreeGridColumn;
|
|
@@ -133,14 +133,14 @@ var TreeGridColumn = /** @__PURE__ @class */ (function (_super) {
|
|
|
133
133
|
* Defines stacked tree grid column
|
|
134
134
|
*/
|
|
135
135
|
var StackedColumn = /** @__PURE__ @class */ (function (_super) {
|
|
136
|
-
__extends
|
|
136
|
+
__extends(StackedColumn, _super);
|
|
137
137
|
function StackedColumn() {
|
|
138
138
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
139
139
|
}
|
|
140
140
|
return StackedColumn;
|
|
141
141
|
}(TreeGridColumn));
|
|
142
142
|
|
|
143
|
-
var __extends$
|
|
143
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
144
144
|
var extendStatics = function (d, b) {
|
|
145
145
|
extendStatics = Object.setPrototypeOf ||
|
|
146
146
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -153,7 +153,7 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
|
153
153
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
154
154
|
};
|
|
155
155
|
})();
|
|
156
|
-
var __decorate$
|
|
156
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
157
157
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
158
158
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
159
159
|
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;
|
|
@@ -163,17 +163,17 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
163
163
|
* Configures the Loading Indicator of the Tree Grid.
|
|
164
164
|
*/
|
|
165
165
|
var LoadingIndicator = /** @__PURE__ @class */ (function (_super) {
|
|
166
|
-
__extends$
|
|
166
|
+
__extends$1(LoadingIndicator, _super);
|
|
167
167
|
function LoadingIndicator() {
|
|
168
168
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
169
169
|
}
|
|
170
|
-
__decorate$
|
|
170
|
+
__decorate$1([
|
|
171
171
|
Property('Spinner')
|
|
172
172
|
], LoadingIndicator.prototype, "indicatorType", void 0);
|
|
173
173
|
return LoadingIndicator;
|
|
174
174
|
}(ChildProperty));
|
|
175
175
|
|
|
176
|
-
var __extends$
|
|
176
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
177
177
|
var extendStatics = function (d, b) {
|
|
178
178
|
extendStatics = Object.setPrototypeOf ||
|
|
179
179
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -186,7 +186,7 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
|
186
186
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
187
187
|
};
|
|
188
188
|
})();
|
|
189
|
-
var __decorate$
|
|
189
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
190
190
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
191
191
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
192
192
|
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;
|
|
@@ -195,85 +195,85 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
195
195
|
/**
|
|
196
196
|
* Represents the Tree Grid predicate for the filter column.
|
|
197
197
|
*/
|
|
198
|
-
var Predicate
|
|
199
|
-
__extends$
|
|
200
|
-
function Predicate
|
|
198
|
+
var Predicate = /** @__PURE__ @class */ (function (_super) {
|
|
199
|
+
__extends$2(Predicate, _super);
|
|
200
|
+
function Predicate() {
|
|
201
201
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
202
202
|
}
|
|
203
|
-
__decorate$
|
|
203
|
+
__decorate$2([
|
|
204
204
|
Property()
|
|
205
|
-
], Predicate
|
|
206
|
-
__decorate$
|
|
205
|
+
], Predicate.prototype, "field", void 0);
|
|
206
|
+
__decorate$2([
|
|
207
207
|
Property()
|
|
208
|
-
], Predicate
|
|
209
|
-
__decorate$
|
|
208
|
+
], Predicate.prototype, "operator", void 0);
|
|
209
|
+
__decorate$2([
|
|
210
210
|
Property()
|
|
211
|
-
], Predicate
|
|
212
|
-
__decorate$
|
|
211
|
+
], Predicate.prototype, "value", void 0);
|
|
212
|
+
__decorate$2([
|
|
213
213
|
Property()
|
|
214
|
-
], Predicate
|
|
215
|
-
__decorate$
|
|
214
|
+
], Predicate.prototype, "matchCase", void 0);
|
|
215
|
+
__decorate$2([
|
|
216
216
|
Property()
|
|
217
|
-
], Predicate
|
|
218
|
-
__decorate$
|
|
217
|
+
], Predicate.prototype, "ignoreAccent", void 0);
|
|
218
|
+
__decorate$2([
|
|
219
219
|
Property()
|
|
220
|
-
], Predicate
|
|
221
|
-
__decorate$
|
|
220
|
+
], Predicate.prototype, "predicate", void 0);
|
|
221
|
+
__decorate$2([
|
|
222
222
|
Property({})
|
|
223
|
-
], Predicate
|
|
224
|
-
__decorate$
|
|
223
|
+
], Predicate.prototype, "actualFilterValue", void 0);
|
|
224
|
+
__decorate$2([
|
|
225
225
|
Property({})
|
|
226
|
-
], Predicate
|
|
227
|
-
__decorate$
|
|
226
|
+
], Predicate.prototype, "actualOperator", void 0);
|
|
227
|
+
__decorate$2([
|
|
228
228
|
Property()
|
|
229
|
-
], Predicate
|
|
230
|
-
__decorate$
|
|
229
|
+
], Predicate.prototype, "type", void 0);
|
|
230
|
+
__decorate$2([
|
|
231
231
|
Property()
|
|
232
|
-
], Predicate
|
|
233
|
-
__decorate$
|
|
232
|
+
], Predicate.prototype, "ejpredicate", void 0);
|
|
233
|
+
__decorate$2([
|
|
234
234
|
Property()
|
|
235
|
-
], Predicate
|
|
236
|
-
__decorate$
|
|
235
|
+
], Predicate.prototype, "uid", void 0);
|
|
236
|
+
__decorate$2([
|
|
237
237
|
Property()
|
|
238
|
-
], Predicate
|
|
239
|
-
return Predicate
|
|
238
|
+
], Predicate.prototype, "isForeignKey", void 0);
|
|
239
|
+
return Predicate;
|
|
240
240
|
}(ChildProperty));
|
|
241
241
|
/**
|
|
242
242
|
* Configures the filtering behavior of the TreeGrid.
|
|
243
243
|
*/
|
|
244
244
|
var FilterSettings = /** @__PURE__ @class */ (function (_super) {
|
|
245
|
-
__extends$
|
|
245
|
+
__extends$2(FilterSettings, _super);
|
|
246
246
|
function FilterSettings() {
|
|
247
247
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
248
248
|
}
|
|
249
|
-
__decorate$
|
|
250
|
-
Collection([], Predicate
|
|
249
|
+
__decorate$2([
|
|
250
|
+
Collection([], Predicate)
|
|
251
251
|
], FilterSettings.prototype, "columns", void 0);
|
|
252
|
-
__decorate$
|
|
252
|
+
__decorate$2([
|
|
253
253
|
Property('FilterBar')
|
|
254
254
|
], FilterSettings.prototype, "type", void 0);
|
|
255
|
-
__decorate$
|
|
255
|
+
__decorate$2([
|
|
256
256
|
Property()
|
|
257
257
|
], FilterSettings.prototype, "mode", void 0);
|
|
258
|
-
__decorate$
|
|
258
|
+
__decorate$2([
|
|
259
259
|
Property(true)
|
|
260
260
|
], FilterSettings.prototype, "showFilterBarStatus", void 0);
|
|
261
|
-
__decorate$
|
|
261
|
+
__decorate$2([
|
|
262
262
|
Property(1500)
|
|
263
263
|
], FilterSettings.prototype, "immediateModeDelay", void 0);
|
|
264
|
-
__decorate$
|
|
264
|
+
__decorate$2([
|
|
265
265
|
Property()
|
|
266
266
|
], FilterSettings.prototype, "operators", void 0);
|
|
267
|
-
__decorate$
|
|
267
|
+
__decorate$2([
|
|
268
268
|
Property(false)
|
|
269
269
|
], FilterSettings.prototype, "ignoreAccent", void 0);
|
|
270
|
-
__decorate$
|
|
270
|
+
__decorate$2([
|
|
271
271
|
Property('Parent')
|
|
272
272
|
], FilterSettings.prototype, "hierarchyMode", void 0);
|
|
273
273
|
return FilterSettings;
|
|
274
274
|
}(ChildProperty));
|
|
275
275
|
|
|
276
|
-
var __extends$
|
|
276
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
277
277
|
var extendStatics = function (d, b) {
|
|
278
278
|
extendStatics = Object.setPrototypeOf ||
|
|
279
279
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -286,7 +286,7 @@ var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
|
286
286
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
287
287
|
};
|
|
288
288
|
})();
|
|
289
|
-
var __decorate$
|
|
289
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
290
290
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
291
291
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
292
292
|
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;
|
|
@@ -296,17 +296,17 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
296
296
|
* Configures the textwrap behavior of the TreeGrid.
|
|
297
297
|
*/
|
|
298
298
|
var TextWrapSettings = /** @__PURE__ @class */ (function (_super) {
|
|
299
|
-
__extends$
|
|
299
|
+
__extends$3(TextWrapSettings, _super);
|
|
300
300
|
function TextWrapSettings() {
|
|
301
301
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
302
302
|
}
|
|
303
|
-
__decorate$
|
|
303
|
+
__decorate$3([
|
|
304
304
|
Property('Both')
|
|
305
305
|
], TextWrapSettings.prototype, "wrapMode", void 0);
|
|
306
306
|
return TextWrapSettings;
|
|
307
307
|
}(ChildProperty));
|
|
308
308
|
|
|
309
|
-
var __extends$
|
|
309
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
310
310
|
var extendStatics = function (d, b) {
|
|
311
311
|
extendStatics = Object.setPrototypeOf ||
|
|
312
312
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -328,11 +328,11 @@ var DOC_URL = 'https://ej2.syncfusion.com/documentation/treegrid';
|
|
|
328
328
|
var BASE_DOC_URL = 'https://ej2.syncfusion.com/documentation';
|
|
329
329
|
var ERROR = '[EJ2TreeGrid.Error]';
|
|
330
330
|
var IsRowDDEnabled = false;
|
|
331
|
-
var Logger
|
|
332
|
-
__extends$
|
|
333
|
-
function Logger
|
|
331
|
+
var Logger = /** @__PURE__ @class */ (function (_super) {
|
|
332
|
+
__extends$4(Logger, _super);
|
|
333
|
+
function Logger(parent) {
|
|
334
334
|
var _this = this;
|
|
335
|
-
Grid.Inject(Logger);
|
|
335
|
+
Grid.Inject(Logger$1);
|
|
336
336
|
_this = _super.call(this, parent) || this;
|
|
337
337
|
return _this;
|
|
338
338
|
}
|
|
@@ -342,10 +342,10 @@ var Logger$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
342
342
|
* @private
|
|
343
343
|
* @returns {string} - Returns Logger module name
|
|
344
344
|
*/
|
|
345
|
-
Logger
|
|
345
|
+
Logger.prototype.getModuleName = function () {
|
|
346
346
|
return 'logger';
|
|
347
347
|
};
|
|
348
|
-
Logger
|
|
348
|
+
Logger.prototype.log = function (types, args) {
|
|
349
349
|
if (!(types instanceof Array)) {
|
|
350
350
|
types = [types];
|
|
351
351
|
}
|
|
@@ -393,7 +393,7 @@ var Logger$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
|
-
Logger
|
|
396
|
+
Logger.prototype.treeLog = function (types, args, treeGrid) {
|
|
397
397
|
this.treeGridObj = treeGrid;
|
|
398
398
|
if (!(types instanceof Array)) {
|
|
399
399
|
types = [types];
|
|
@@ -413,8 +413,8 @@ var Logger$1 = /** @__PURE__ @class */ (function (_super) {
|
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
|
-
return Logger
|
|
417
|
-
}(Logger));
|
|
416
|
+
return Logger;
|
|
417
|
+
}(Logger$1));
|
|
418
418
|
var treeGridDetails = {
|
|
419
419
|
// eslint-disable-next-line camelcase
|
|
420
420
|
mapping_fields_missing: {
|
|
@@ -602,8 +602,10 @@ var ariaColIndex = 'aria-colindex';
|
|
|
602
602
|
var dataRowIndex = 'data-rowindex';
|
|
603
603
|
/** @hidden */
|
|
604
604
|
var ariaRowIndex = 'aria-rowindex';
|
|
605
|
+
/** @hidden */
|
|
606
|
+
var actionFailure = 'actionFailure';
|
|
605
607
|
|
|
606
|
-
var __extends$
|
|
608
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
607
609
|
var extendStatics = function (d, b) {
|
|
608
610
|
extendStatics = Object.setPrototypeOf ||
|
|
609
611
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -622,7 +624,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
|
622
624
|
* @hidden
|
|
623
625
|
*/
|
|
624
626
|
var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
625
|
-
__extends$
|
|
627
|
+
__extends$5(TreeClipboard, _super);
|
|
626
628
|
function TreeClipboard(parent, serviceLocator) {
|
|
627
629
|
var _this = _super.call(this, parent.grid, serviceLocator) || this;
|
|
628
630
|
_this.treeCopyContent = '';
|
|
@@ -880,7 +882,7 @@ function getExpandStatus(parent, record, parents) {
|
|
|
880
882
|
return false;
|
|
881
883
|
}
|
|
882
884
|
else if (childParent) {
|
|
883
|
-
return getExpandStatus(parent, childParent
|
|
885
|
+
return getExpandStatus(parent, childParent);
|
|
884
886
|
}
|
|
885
887
|
return true;
|
|
886
888
|
}
|
|
@@ -1148,6 +1150,10 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1148
1150
|
}
|
|
1149
1151
|
};
|
|
1150
1152
|
Selection.prototype.selectCheckboxes = function (rowIndexes) {
|
|
1153
|
+
if (isNullOrUndefined(rowIndexes)) {
|
|
1154
|
+
var error = 'The provided value for the rowIndexes is undefined. Please ensure the rowIndexes contains number.';
|
|
1155
|
+
this.parent.trigger(actionFailure, { error: error });
|
|
1156
|
+
}
|
|
1151
1157
|
for (var i = 0; i < rowIndexes.length; i++) {
|
|
1152
1158
|
var record = this.parent.getCurrentViewRecords()[rowIndexes[parseInt(i.toString(), 10)]];
|
|
1153
1159
|
var flatRecord = getParentData(this.parent, record.uniqueID);
|
|
@@ -1493,15 +1499,15 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1493
1499
|
*
|
|
1494
1500
|
* @hidden
|
|
1495
1501
|
*/
|
|
1496
|
-
var Print
|
|
1502
|
+
var Print = /** @__PURE__ @class */ (function () {
|
|
1497
1503
|
/**
|
|
1498
1504
|
* Constructor for Print module
|
|
1499
1505
|
*
|
|
1500
1506
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
1501
1507
|
*/
|
|
1502
|
-
function Print
|
|
1508
|
+
function Print(parent) {
|
|
1503
1509
|
this.parent = parent;
|
|
1504
|
-
Grid.Inject(Print);
|
|
1510
|
+
Grid.Inject(Print$1);
|
|
1505
1511
|
this.addEventListener();
|
|
1506
1512
|
}
|
|
1507
1513
|
/**
|
|
@@ -1510,20 +1516,20 @@ var Print$1 = /** @__PURE__ @class */ (function () {
|
|
|
1510
1516
|
* @private
|
|
1511
1517
|
* @returns {string} Returns Print module name
|
|
1512
1518
|
*/
|
|
1513
|
-
Print
|
|
1519
|
+
Print.prototype.getModuleName = function () {
|
|
1514
1520
|
return 'print';
|
|
1515
1521
|
};
|
|
1516
1522
|
/**
|
|
1517
1523
|
* @hidden
|
|
1518
1524
|
* @returns {void}
|
|
1519
1525
|
*/
|
|
1520
|
-
Print
|
|
1526
|
+
Print.prototype.addEventListener = function () {
|
|
1521
1527
|
this.parent.grid.on(printGridInit, this.printTreeGrid, this);
|
|
1522
1528
|
};
|
|
1523
|
-
Print
|
|
1529
|
+
Print.prototype.removeEventListener = function () {
|
|
1524
1530
|
this.parent.grid.off(printGridInit, this.printTreeGrid);
|
|
1525
1531
|
};
|
|
1526
|
-
Print
|
|
1532
|
+
Print.prototype.printTreeGrid = function (printGrid) {
|
|
1527
1533
|
var grid = getObject('printgrid', printGrid);
|
|
1528
1534
|
var gridElement = getObject('element', printGrid);
|
|
1529
1535
|
grid.addEventListener(queryCellInfo, this.parent.grid.queryCellInfo);
|
|
@@ -1531,7 +1537,7 @@ var Print$1 = /** @__PURE__ @class */ (function () {
|
|
|
1531
1537
|
grid.addEventListener(beforeDataBound, this.parent.grid.beforeDataBound);
|
|
1532
1538
|
addClass([gridElement], 'e-treegrid');
|
|
1533
1539
|
};
|
|
1534
|
-
Print
|
|
1540
|
+
Print.prototype.print = function () {
|
|
1535
1541
|
this.parent.grid.print();
|
|
1536
1542
|
};
|
|
1537
1543
|
/**
|
|
@@ -1540,13 +1546,13 @@ var Print$1 = /** @__PURE__ @class */ (function () {
|
|
|
1540
1546
|
* @returns {void}
|
|
1541
1547
|
* @hidden
|
|
1542
1548
|
*/
|
|
1543
|
-
Print
|
|
1549
|
+
Print.prototype.destroy = function () {
|
|
1544
1550
|
this.removeEventListener();
|
|
1545
1551
|
};
|
|
1546
|
-
return Print
|
|
1552
|
+
return Print;
|
|
1547
1553
|
}());
|
|
1548
1554
|
|
|
1549
|
-
var __extends$
|
|
1555
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
1550
1556
|
var extendStatics = function (d, b) {
|
|
1551
1557
|
extendStatics = Object.setPrototypeOf ||
|
|
1552
1558
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -1559,7 +1565,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
|
1559
1565
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1560
1566
|
};
|
|
1561
1567
|
})();
|
|
1562
|
-
var __decorate$
|
|
1568
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1563
1569
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1564
1570
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1565
1571
|
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;
|
|
@@ -1569,29 +1575,29 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1569
1575
|
* Configures the filtering behavior of the TreeGrid.
|
|
1570
1576
|
*/
|
|
1571
1577
|
var SearchSettings = /** @__PURE__ @class */ (function (_super) {
|
|
1572
|
-
__extends$
|
|
1578
|
+
__extends$6(SearchSettings, _super);
|
|
1573
1579
|
function SearchSettings() {
|
|
1574
1580
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1575
1581
|
}
|
|
1576
|
-
__decorate$
|
|
1582
|
+
__decorate$4([
|
|
1577
1583
|
Property()
|
|
1578
1584
|
], SearchSettings.prototype, "fields", void 0);
|
|
1579
|
-
__decorate$
|
|
1585
|
+
__decorate$4([
|
|
1580
1586
|
Property(false)
|
|
1581
1587
|
], SearchSettings.prototype, "ignoreCase", void 0);
|
|
1582
|
-
__decorate$
|
|
1588
|
+
__decorate$4([
|
|
1583
1589
|
Property('contains')
|
|
1584
1590
|
], SearchSettings.prototype, "operator", void 0);
|
|
1585
|
-
__decorate$
|
|
1591
|
+
__decorate$4([
|
|
1586
1592
|
Property()
|
|
1587
1593
|
], SearchSettings.prototype, "key", void 0);
|
|
1588
|
-
__decorate$
|
|
1594
|
+
__decorate$4([
|
|
1589
1595
|
Property()
|
|
1590
1596
|
], SearchSettings.prototype, "hierarchyMode", void 0);
|
|
1591
1597
|
return SearchSettings;
|
|
1592
1598
|
}(ChildProperty));
|
|
1593
1599
|
|
|
1594
|
-
var __extends$
|
|
1600
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
1595
1601
|
var extendStatics = function (d, b) {
|
|
1596
1602
|
extendStatics = Object.setPrototypeOf ||
|
|
1597
1603
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -1604,7 +1610,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
|
1604
1610
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1605
1611
|
};
|
|
1606
1612
|
})();
|
|
1607
|
-
var __decorate$
|
|
1613
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1608
1614
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1609
1615
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1610
1616
|
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;
|
|
@@ -1614,29 +1620,29 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
1614
1620
|
* Configures the selection behavior of the TreeGrid.
|
|
1615
1621
|
*/
|
|
1616
1622
|
var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
1617
|
-
__extends$
|
|
1623
|
+
__extends$7(SelectionSettings, _super);
|
|
1618
1624
|
function SelectionSettings() {
|
|
1619
1625
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1620
1626
|
}
|
|
1621
|
-
__decorate$
|
|
1627
|
+
__decorate$5([
|
|
1622
1628
|
Property('Row')
|
|
1623
1629
|
], SelectionSettings.prototype, "mode", void 0);
|
|
1624
|
-
__decorate$
|
|
1630
|
+
__decorate$5([
|
|
1625
1631
|
Property('Flow')
|
|
1626
1632
|
], SelectionSettings.prototype, "cellSelectionMode", void 0);
|
|
1627
|
-
__decorate$
|
|
1633
|
+
__decorate$5([
|
|
1628
1634
|
Property('Single')
|
|
1629
1635
|
], SelectionSettings.prototype, "type", void 0);
|
|
1630
|
-
__decorate$
|
|
1636
|
+
__decorate$5([
|
|
1631
1637
|
Property(false)
|
|
1632
1638
|
], SelectionSettings.prototype, "persistSelection", void 0);
|
|
1633
|
-
__decorate$
|
|
1639
|
+
__decorate$5([
|
|
1634
1640
|
Property('Default')
|
|
1635
1641
|
], SelectionSettings.prototype, "checkboxMode", void 0);
|
|
1636
|
-
__decorate$
|
|
1642
|
+
__decorate$5([
|
|
1637
1643
|
Property(false)
|
|
1638
1644
|
], SelectionSettings.prototype, "checkboxOnly", void 0);
|
|
1639
|
-
__decorate$
|
|
1645
|
+
__decorate$5([
|
|
1640
1646
|
Property(true)
|
|
1641
1647
|
], SelectionSettings.prototype, "enableToggle", void 0);
|
|
1642
1648
|
return SelectionSettings;
|
|
@@ -1674,10 +1680,10 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
1674
1680
|
if (!isNullOrUndefined(data.parentItem) && !isFilterChildHierarchy(this.parent) &&
|
|
1675
1681
|
(!(this.parent.allowPaging && !(this.parent.pageSettings.pageSizeMode === 'Root')) ||
|
|
1676
1682
|
(isRemoteData(this.parent) && !isOffline(this.parent)))) {
|
|
1677
|
-
var collapsed
|
|
1683
|
+
var collapsed = (this.parent.initialRender && (!(isNullOrUndefined(parentData[this.parent.expandStateMapping]) ||
|
|
1678
1684
|
parentData[this.parent.expandStateMapping]) || this.parent.enableCollapseAll)) ||
|
|
1679
1685
|
!getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
|
|
1680
|
-
if (collapsed
|
|
1686
|
+
if (collapsed && !isNullOrUndefined(args.row)) {
|
|
1681
1687
|
args.row.style.display = 'none';
|
|
1682
1688
|
var rowsObj = this.parent.grid.getRowsObject();
|
|
1683
1689
|
if (!this.parent.grid.isFrozenGrid() && !isNullOrUndefined(args.row.getAttribute('data-uid'))) {
|
|
@@ -1956,7 +1962,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
1956
1962
|
}
|
|
1957
1963
|
else {
|
|
1958
1964
|
var str = 'isStringTemplate';
|
|
1959
|
-
var result = args.column["" + templateFn](extend
|
|
1965
|
+
var result = args.column["" + templateFn](extend({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent["" + str]);
|
|
1960
1966
|
appendChildren(cellElement, result);
|
|
1961
1967
|
}
|
|
1962
1968
|
delete args.column.template;
|
|
@@ -2101,7 +2107,8 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2101
2107
|
*/
|
|
2102
2108
|
DataManipulation.prototype.convertToFlatData = function (data) {
|
|
2103
2109
|
var _this = this;
|
|
2104
|
-
this.parent.flatData = (Object.keys(data).length === 0
|
|
2110
|
+
this.parent.flatData = (!isNullOrUndefined(data) && Object.keys(data).length === 0
|
|
2111
|
+
&& !(this.parent.dataSource instanceof DataManager) ?
|
|
2105
2112
|
this.parent.dataSource : []);
|
|
2106
2113
|
this.parent.parentData = [];
|
|
2107
2114
|
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
|
|
@@ -2157,7 +2164,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2157
2164
|
var keys = Object.keys(data);
|
|
2158
2165
|
for (var i = 0; i < keys.length; i++) {
|
|
2159
2166
|
var tempData = data[parseInt(i.toString(), 10)];
|
|
2160
|
-
this.hierarchyData.push(extend({}, tempData));
|
|
2167
|
+
this.hierarchyData.push(extend$1({}, tempData));
|
|
2161
2168
|
if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
|
|
2162
2169
|
this.taskIds.push(tempData[this.parent.idMapping]);
|
|
2163
2170
|
}
|
|
@@ -2259,7 +2266,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2259
2266
|
}
|
|
2260
2267
|
}
|
|
2261
2268
|
if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
|
|
2262
|
-
records[parseInt(rec.toString(), 10)].taskData = extend({}, records[parseInt(rec.toString(), 10)]);
|
|
2269
|
+
records[parseInt(rec.toString(), 10)].taskData = extend$1({}, records[parseInt(rec.toString(), 10)]);
|
|
2263
2270
|
records[parseInt(rec.toString(), 10)].uniqueID = getUid(this_1.parent.element.id + '_data_');
|
|
2264
2271
|
setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this_1.parent);
|
|
2265
2272
|
records[parseInt(rec.toString(), 10)].level = 0;
|
|
@@ -2458,7 +2465,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2458
2465
|
}
|
|
2459
2466
|
}
|
|
2460
2467
|
}
|
|
2461
|
-
result[parseInt(r.toString(), 10)].taskData = extend({}, result[parseInt(r.toString(), 10)]);
|
|
2468
|
+
result[parseInt(r.toString(), 10)].taskData = extend$1({}, result[parseInt(r.toString(), 10)]);
|
|
2462
2469
|
if (result[parseInt(r.toString(), 10)]["" + _this.parent.parentIdMapping] && _this.parent.enableVirtualization && _this.parent["" + remoteExpandedData].length) {
|
|
2463
2470
|
for (var i = 0; i < _this.parent["" + remoteExpandedData].length; i++) {
|
|
2464
2471
|
if (result[parseInt(r.toString(), 10)]["" + _this.parent.parentIdMapping] === _this.parent["" + remoteExpandedData][parseInt(i.toString(), 10)]["" + _this.parent.idMapping]) {
|
|
@@ -2486,7 +2493,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2486
2493
|
}
|
|
2487
2494
|
}
|
|
2488
2495
|
else {
|
|
2489
|
-
var parentData = extend({}, rowDetails.record);
|
|
2496
|
+
var parentData = extend$1({}, rowDetails.record);
|
|
2490
2497
|
delete parentData.childRecords;
|
|
2491
2498
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2492
2499
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2494,7 +2501,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2494
2501
|
}
|
|
2495
2502
|
else {
|
|
2496
2503
|
result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
|
|
2497
|
-
var parentData = extend({}, rowDetails.record);
|
|
2504
|
+
var parentData = extend$1({}, rowDetails.record);
|
|
2498
2505
|
delete parentData.childRecords;
|
|
2499
2506
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2500
2507
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2614,7 +2621,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2614
2621
|
var treeGridData = [];
|
|
2615
2622
|
var keys = Object.keys(data);
|
|
2616
2623
|
for (var i = 0, len = keys.length; i < len; i++) {
|
|
2617
|
-
var currentData = extend({}, data[parseInt(i.toString(), 10)]);
|
|
2624
|
+
var currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
|
|
2618
2625
|
currentData.taskData = data[parseInt(i.toString(), 10)];
|
|
2619
2626
|
var level = 0;
|
|
2620
2627
|
this.storedIndex++;
|
|
@@ -2642,7 +2649,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2642
2649
|
currentData.uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2643
2650
|
setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
|
|
2644
2651
|
if (!isNullOrUndefined(parentRecords)) {
|
|
2645
|
-
var parentData = extend({}, parentRecords);
|
|
2652
|
+
var parentData = extend$1({}, parentRecords);
|
|
2646
2653
|
delete parentData.childRecords;
|
|
2647
2654
|
delete parentData[this.parent.childMapping];
|
|
2648
2655
|
if (this.isSelfReference) {
|
|
@@ -2924,7 +2931,7 @@ var ContextMenuItems;
|
|
|
2924
2931
|
ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
|
|
2925
2932
|
})(ContextMenuItems || (ContextMenuItems = {}));
|
|
2926
2933
|
|
|
2927
|
-
var __extends$
|
|
2934
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
2928
2935
|
var extendStatics = function (d, b) {
|
|
2929
2936
|
extendStatics = Object.setPrototypeOf ||
|
|
2930
2937
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2937,7 +2944,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
|
2937
2944
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2938
2945
|
};
|
|
2939
2946
|
})();
|
|
2940
|
-
var __decorate$
|
|
2947
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2941
2948
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2942
2949
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2943
2950
|
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;
|
|
@@ -2947,38 +2954,38 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2947
2954
|
* Configures the paging behavior of the TreeGrid.
|
|
2948
2955
|
*/
|
|
2949
2956
|
var PageSettings = /** @__PURE__ @class */ (function (_super) {
|
|
2950
|
-
__extends$
|
|
2957
|
+
__extends$8(PageSettings, _super);
|
|
2951
2958
|
function PageSettings() {
|
|
2952
2959
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2953
2960
|
}
|
|
2954
|
-
__decorate$
|
|
2961
|
+
__decorate$6([
|
|
2955
2962
|
Property(12)
|
|
2956
2963
|
], PageSettings.prototype, "pageSize", void 0);
|
|
2957
|
-
__decorate$
|
|
2964
|
+
__decorate$6([
|
|
2958
2965
|
Property(8)
|
|
2959
2966
|
], PageSettings.prototype, "pageCount", void 0);
|
|
2960
|
-
__decorate$
|
|
2967
|
+
__decorate$6([
|
|
2961
2968
|
Property(1)
|
|
2962
2969
|
], PageSettings.prototype, "currentPage", void 0);
|
|
2963
|
-
__decorate$
|
|
2970
|
+
__decorate$6([
|
|
2964
2971
|
Property()
|
|
2965
2972
|
], PageSettings.prototype, "totalRecordsCount", void 0);
|
|
2966
|
-
__decorate$
|
|
2973
|
+
__decorate$6([
|
|
2967
2974
|
Property(false)
|
|
2968
2975
|
], PageSettings.prototype, "enableQueryString", void 0);
|
|
2969
|
-
__decorate$
|
|
2976
|
+
__decorate$6([
|
|
2970
2977
|
Property(false)
|
|
2971
2978
|
], PageSettings.prototype, "pageSizes", void 0);
|
|
2972
|
-
__decorate$
|
|
2979
|
+
__decorate$6([
|
|
2973
2980
|
Property(null)
|
|
2974
2981
|
], PageSettings.prototype, "template", void 0);
|
|
2975
|
-
__decorate$
|
|
2982
|
+
__decorate$6([
|
|
2976
2983
|
Property('All')
|
|
2977
2984
|
], PageSettings.prototype, "pageSizeMode", void 0);
|
|
2978
2985
|
return PageSettings;
|
|
2979
2986
|
}(ChildProperty));
|
|
2980
2987
|
|
|
2981
|
-
var __extends$
|
|
2988
|
+
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
|
2982
2989
|
var extendStatics = function (d, b) {
|
|
2983
2990
|
extendStatics = Object.setPrototypeOf ||
|
|
2984
2991
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -2991,7 +2998,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
|
|
|
2991
2998
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2992
2999
|
};
|
|
2993
3000
|
})();
|
|
2994
|
-
var __decorate$
|
|
3001
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2995
3002
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2996
3003
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2997
3004
|
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;
|
|
@@ -3001,7 +3008,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3001
3008
|
* Configures the TreeGrid's aggregate column.
|
|
3002
3009
|
*/
|
|
3003
3010
|
var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
|
|
3004
|
-
__extends$
|
|
3011
|
+
__extends$9(AggregateColumn, _super);
|
|
3005
3012
|
function AggregateColumn() {
|
|
3006
3013
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3007
3014
|
_this.intl = new Internationalization();
|
|
@@ -3069,41 +3076,41 @@ var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
|
|
|
3069
3076
|
AggregateColumn.prototype.setPropertiesSilent = function (prop) {
|
|
3070
3077
|
this.setProperties(prop, true);
|
|
3071
3078
|
};
|
|
3072
|
-
__decorate$
|
|
3079
|
+
__decorate$7([
|
|
3073
3080
|
Property()
|
|
3074
3081
|
], AggregateColumn.prototype, "type", void 0);
|
|
3075
|
-
__decorate$
|
|
3082
|
+
__decorate$7([
|
|
3076
3083
|
Property()
|
|
3077
3084
|
], AggregateColumn.prototype, "footerTemplate", void 0);
|
|
3078
|
-
__decorate$
|
|
3085
|
+
__decorate$7([
|
|
3079
3086
|
Property()
|
|
3080
3087
|
], AggregateColumn.prototype, "field", void 0);
|
|
3081
|
-
__decorate$
|
|
3088
|
+
__decorate$7([
|
|
3082
3089
|
Property()
|
|
3083
3090
|
], AggregateColumn.prototype, "format", void 0);
|
|
3084
|
-
__decorate$
|
|
3091
|
+
__decorate$7([
|
|
3085
3092
|
Property()
|
|
3086
3093
|
], AggregateColumn.prototype, "columnName", void 0);
|
|
3087
|
-
__decorate$
|
|
3094
|
+
__decorate$7([
|
|
3088
3095
|
Property()
|
|
3089
3096
|
], AggregateColumn.prototype, "customAggregate", void 0);
|
|
3090
3097
|
return AggregateColumn;
|
|
3091
3098
|
}(ChildProperty));
|
|
3092
3099
|
var AggregateRow = /** @__PURE__ @class */ (function (_super) {
|
|
3093
|
-
__extends$
|
|
3100
|
+
__extends$9(AggregateRow, _super);
|
|
3094
3101
|
function AggregateRow() {
|
|
3095
3102
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3096
3103
|
}
|
|
3097
|
-
__decorate$
|
|
3104
|
+
__decorate$7([
|
|
3098
3105
|
Collection([], AggregateColumn)
|
|
3099
3106
|
], AggregateRow.prototype, "columns", void 0);
|
|
3100
|
-
__decorate$
|
|
3107
|
+
__decorate$7([
|
|
3101
3108
|
Property(true)
|
|
3102
3109
|
], AggregateRow.prototype, "showChildSummary", void 0);
|
|
3103
3110
|
return AggregateRow;
|
|
3104
3111
|
}(ChildProperty));
|
|
3105
3112
|
|
|
3106
|
-
var __extends$
|
|
3113
|
+
var __extends$a = (undefined && undefined.__extends) || (function () {
|
|
3107
3114
|
var extendStatics = function (d, b) {
|
|
3108
3115
|
extendStatics = Object.setPrototypeOf ||
|
|
3109
3116
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -3116,7 +3123,7 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
|
|
|
3116
3123
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3117
3124
|
};
|
|
3118
3125
|
})();
|
|
3119
|
-
var __decorate$
|
|
3126
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3120
3127
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3121
3128
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3122
3129
|
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;
|
|
@@ -3126,47 +3133,47 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3126
3133
|
* Configures the edit behavior of the TreeGrid.
|
|
3127
3134
|
*/
|
|
3128
3135
|
var EditSettings = /** @__PURE__ @class */ (function (_super) {
|
|
3129
|
-
__extends$
|
|
3136
|
+
__extends$a(EditSettings, _super);
|
|
3130
3137
|
function EditSettings() {
|
|
3131
3138
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3132
3139
|
}
|
|
3133
|
-
__decorate$
|
|
3140
|
+
__decorate$8([
|
|
3134
3141
|
Property(false)
|
|
3135
3142
|
], EditSettings.prototype, "allowAdding", void 0);
|
|
3136
|
-
__decorate$
|
|
3143
|
+
__decorate$8([
|
|
3137
3144
|
Property(false)
|
|
3138
3145
|
], EditSettings.prototype, "allowEditing", void 0);
|
|
3139
|
-
__decorate$
|
|
3146
|
+
__decorate$8([
|
|
3140
3147
|
Property(false)
|
|
3141
3148
|
], EditSettings.prototype, "allowDeleting", void 0);
|
|
3142
|
-
__decorate$
|
|
3149
|
+
__decorate$8([
|
|
3143
3150
|
Property('Cell')
|
|
3144
3151
|
], EditSettings.prototype, "mode", void 0);
|
|
3145
|
-
__decorate$
|
|
3152
|
+
__decorate$8([
|
|
3146
3153
|
Property('Top')
|
|
3147
3154
|
], EditSettings.prototype, "newRowPosition", void 0);
|
|
3148
|
-
__decorate$
|
|
3155
|
+
__decorate$8([
|
|
3149
3156
|
Property(true)
|
|
3150
3157
|
], EditSettings.prototype, "allowEditOnDblClick", void 0);
|
|
3151
|
-
__decorate$
|
|
3158
|
+
__decorate$8([
|
|
3152
3159
|
Property(true)
|
|
3153
3160
|
], EditSettings.prototype, "showConfirmDialog", void 0);
|
|
3154
|
-
__decorate$
|
|
3161
|
+
__decorate$8([
|
|
3155
3162
|
Property(false)
|
|
3156
3163
|
], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
|
|
3157
|
-
__decorate$
|
|
3164
|
+
__decorate$8([
|
|
3158
3165
|
Property('')
|
|
3159
3166
|
], EditSettings.prototype, "template", void 0);
|
|
3160
|
-
__decorate$
|
|
3167
|
+
__decorate$8([
|
|
3161
3168
|
Property({})
|
|
3162
3169
|
], EditSettings.prototype, "dialog", void 0);
|
|
3163
|
-
__decorate$
|
|
3170
|
+
__decorate$8([
|
|
3164
3171
|
Property(false)
|
|
3165
3172
|
], EditSettings.prototype, "allowNextRowEdit", void 0);
|
|
3166
3173
|
return EditSettings;
|
|
3167
3174
|
}(ChildProperty));
|
|
3168
3175
|
|
|
3169
|
-
var __extends$
|
|
3176
|
+
var __extends$b = (undefined && undefined.__extends) || (function () {
|
|
3170
3177
|
var extendStatics = function (d, b) {
|
|
3171
3178
|
extendStatics = Object.setPrototypeOf ||
|
|
3172
3179
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -3179,7 +3186,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
|
|
|
3179
3186
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3180
3187
|
};
|
|
3181
3188
|
})();
|
|
3182
|
-
var __decorate$
|
|
3189
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3183
3190
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3184
3191
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3185
3192
|
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;
|
|
@@ -3189,14 +3196,14 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3189
3196
|
* Represents the field name and direction of sort column.
|
|
3190
3197
|
*/
|
|
3191
3198
|
var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
|
|
3192
|
-
__extends$
|
|
3199
|
+
__extends$b(SortDescriptor, _super);
|
|
3193
3200
|
function SortDescriptor() {
|
|
3194
3201
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3195
3202
|
}
|
|
3196
|
-
__decorate$
|
|
3203
|
+
__decorate$9([
|
|
3197
3204
|
Property()
|
|
3198
3205
|
], SortDescriptor.prototype, "field", void 0);
|
|
3199
|
-
__decorate$
|
|
3206
|
+
__decorate$9([
|
|
3200
3207
|
Property()
|
|
3201
3208
|
], SortDescriptor.prototype, "direction", void 0);
|
|
3202
3209
|
return SortDescriptor;
|
|
@@ -3205,14 +3212,14 @@ var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3205
3212
|
* Configures the sorting behavior of TreeGrid.
|
|
3206
3213
|
*/
|
|
3207
3214
|
var SortSettings = /** @__PURE__ @class */ (function (_super) {
|
|
3208
|
-
__extends$
|
|
3215
|
+
__extends$b(SortSettings, _super);
|
|
3209
3216
|
function SortSettings() {
|
|
3210
3217
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3211
3218
|
}
|
|
3212
|
-
__decorate$
|
|
3219
|
+
__decorate$9([
|
|
3213
3220
|
Collection([], SortDescriptor)
|
|
3214
3221
|
], SortSettings.prototype, "columns", void 0);
|
|
3215
|
-
__decorate$
|
|
3222
|
+
__decorate$9([
|
|
3216
3223
|
Property(true)
|
|
3217
3224
|
], SortSettings.prototype, "allowUnsort", void 0);
|
|
3218
3225
|
return SortSettings;
|
|
@@ -3259,7 +3266,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
|
|
|
3259
3266
|
modifiedData = extendArray(value);
|
|
3260
3267
|
}
|
|
3261
3268
|
else {
|
|
3262
|
-
modifiedData.push(extend({}, value));
|
|
3269
|
+
modifiedData.push(extend$1({}, value));
|
|
3263
3270
|
}
|
|
3264
3271
|
if (!isSkip && (action !== 'add' ||
|
|
3265
3272
|
(control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
|
|
@@ -3382,7 +3389,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3382
3389
|
var value;
|
|
3383
3390
|
var isSkip = false;
|
|
3384
3391
|
var currentViewRecords = control.grid.getCurrentViewRecords();
|
|
3385
|
-
value = extend({}, details.value);
|
|
3392
|
+
value = extend$1({}, details.value);
|
|
3386
3393
|
value = getPlainData(value);
|
|
3387
3394
|
switch (control.editSettings.newRowPosition) {
|
|
3388
3395
|
case 'Top':
|
|
@@ -3395,28 +3402,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3395
3402
|
break;
|
|
3396
3403
|
case 'Above':
|
|
3397
3404
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3398
|
-
value = extend({}, addRowRecord);
|
|
3405
|
+
value = extend$1({}, addRowRecord);
|
|
3399
3406
|
value = getPlainData(value);
|
|
3400
3407
|
}
|
|
3401
3408
|
else {
|
|
3402
|
-
value = extend({}, currentViewRecords[addRowIndex + 1]);
|
|
3409
|
+
value = extend$1({}, currentViewRecords[addRowIndex + 1]);
|
|
3403
3410
|
value = getPlainData(value);
|
|
3404
3411
|
}
|
|
3405
3412
|
break;
|
|
3406
3413
|
case 'Below':
|
|
3407
3414
|
case 'Child':
|
|
3408
3415
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3409
|
-
value = extend({}, addRowRecord);
|
|
3416
|
+
value = extend$1({}, addRowRecord);
|
|
3410
3417
|
value = getPlainData(value);
|
|
3411
3418
|
}
|
|
3412
3419
|
else {
|
|
3413
3420
|
var primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
|
|
3414
3421
|
var currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
|
|
3415
3422
|
if (!isNullOrUndefined(currentdata) && currentdata["" + primaryKeys] === details.value["" + primaryKeys] || selectedIndex !== -1) {
|
|
3416
|
-
value = extend({}, currentdata);
|
|
3423
|
+
value = extend$1({}, currentdata);
|
|
3417
3424
|
}
|
|
3418
3425
|
else {
|
|
3419
|
-
value = extend({}, details.value);
|
|
3426
|
+
value = extend$1({}, details.value);
|
|
3420
3427
|
}
|
|
3421
3428
|
value = getPlainData(value);
|
|
3422
3429
|
var internalProperty = 'internalProperties';
|
|
@@ -3625,7 +3632,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
|
|
|
3625
3632
|
}
|
|
3626
3633
|
}
|
|
3627
3634
|
|
|
3628
|
-
var __extends$
|
|
3635
|
+
var __extends$c = (undefined && undefined.__extends) || (function () {
|
|
3629
3636
|
var extendStatics = function (d, b) {
|
|
3630
3637
|
extendStatics = Object.setPrototypeOf ||
|
|
3631
3638
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -3638,7 +3645,7 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
|
|
|
3638
3645
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3639
3646
|
};
|
|
3640
3647
|
})();
|
|
3641
|
-
var __decorate$
|
|
3648
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3642
3649
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3643
3650
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3644
3651
|
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;
|
|
@@ -3648,23 +3655,23 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
3648
3655
|
* Configures the infinite scroll behavior of Tree Grid.
|
|
3649
3656
|
*/
|
|
3650
3657
|
var InfiniteScrollSettings = /** @__PURE__ @class */ (function (_super) {
|
|
3651
|
-
__extends$
|
|
3658
|
+
__extends$c(InfiniteScrollSettings, _super);
|
|
3652
3659
|
function InfiniteScrollSettings() {
|
|
3653
3660
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3654
3661
|
}
|
|
3655
|
-
__decorate$
|
|
3662
|
+
__decorate$a([
|
|
3656
3663
|
Property(false)
|
|
3657
3664
|
], InfiniteScrollSettings.prototype, "enableCache", void 0);
|
|
3658
|
-
__decorate$
|
|
3665
|
+
__decorate$a([
|
|
3659
3666
|
Property(3)
|
|
3660
3667
|
], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
|
|
3661
|
-
__decorate$
|
|
3668
|
+
__decorate$a([
|
|
3662
3669
|
Property(3)
|
|
3663
3670
|
], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
|
|
3664
3671
|
return InfiniteScrollSettings;
|
|
3665
3672
|
}(ChildProperty));
|
|
3666
3673
|
|
|
3667
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
3674
|
+
var __extends$d = (undefined && undefined.__extends) || (function () {
|
|
3668
3675
|
var extendStatics = function (d, b) {
|
|
3669
3676
|
extendStatics = Object.setPrototypeOf ||
|
|
3670
3677
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -3677,7 +3684,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
3677
3684
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3678
3685
|
};
|
|
3679
3686
|
})();
|
|
3680
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3687
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3681
3688
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3682
3689
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3683
3690
|
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;
|
|
@@ -3694,7 +3701,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
3694
3701
|
* ```
|
|
3695
3702
|
*/
|
|
3696
3703
|
var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
3697
|
-
__extends(TreeGrid, _super);
|
|
3704
|
+
__extends$d(TreeGrid, _super);
|
|
3698
3705
|
function TreeGrid(options, element) {
|
|
3699
3706
|
var _this = _super.call(this, options, element) || this;
|
|
3700
3707
|
_this.dataResults = {};
|
|
@@ -3729,15 +3736,15 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3729
3736
|
return false;
|
|
3730
3737
|
}
|
|
3731
3738
|
};
|
|
3732
|
-
TreeGrid_1.Inject(Selection, Logger
|
|
3739
|
+
TreeGrid_1.Inject(Selection, Logger);
|
|
3733
3740
|
setValue('mergePersistData', _this.mergePersistTreeGridData, _this);
|
|
3734
3741
|
var logger = 'Logger';
|
|
3735
3742
|
if (!isNullOrUndefined(_this.injectedModules["" + logger])) {
|
|
3736
|
-
Grid.Inject(Logger);
|
|
3743
|
+
Grid.Inject(Logger$1);
|
|
3737
3744
|
}
|
|
3738
3745
|
var freezeModulePresent = _this.injectedModules.filter(function (e) {
|
|
3739
3746
|
if (e.prototype.getModuleName() === 'freeze') {
|
|
3740
|
-
Grid.Inject(Freeze);
|
|
3747
|
+
Grid.Inject(Freeze$1);
|
|
3741
3748
|
}
|
|
3742
3749
|
});
|
|
3743
3750
|
_this.grid = new Grid();
|
|
@@ -3816,6 +3823,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3816
3823
|
};
|
|
3817
3824
|
/**
|
|
3818
3825
|
* Exports the TreeGrid data to the specified URL using a POST request.
|
|
3826
|
+
*
|
|
3819
3827
|
* @param {string} url - Defines exporting url
|
|
3820
3828
|
* @returns {void}
|
|
3821
3829
|
*/
|
|
@@ -3846,6 +3854,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3846
3854
|
};
|
|
3847
3855
|
/**
|
|
3848
3856
|
* Sets the header text and other properties for an array of columns based on specified criteria.
|
|
3857
|
+
*
|
|
3849
3858
|
* @param {Column[]} columns - Defines array of columns
|
|
3850
3859
|
* @param {string[]} include - Defines array of sting
|
|
3851
3860
|
* @returns {Column[]} returns array of columns
|
|
@@ -3932,6 +3941,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3932
3941
|
* @returns {void}
|
|
3933
3942
|
*/
|
|
3934
3943
|
TreeGrid.prototype.sortByColumn = function (columnName, direction, isMultiSort) {
|
|
3944
|
+
if (isNullOrUndefined(columnName) && isNullOrUndefined(direction)) {
|
|
3945
|
+
var error = 'The provided value for the columnName and direction is undefined. Please ensure the columnName and direction contains string.';
|
|
3946
|
+
this.trigger(actionFailure, { error: error });
|
|
3947
|
+
}
|
|
3935
3948
|
if (this.sortModule) {
|
|
3936
3949
|
this.sortModule.sortColumn(columnName, direction, isMultiSort);
|
|
3937
3950
|
}
|
|
@@ -3992,21 +4005,27 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3992
4005
|
* @returns {void}
|
|
3993
4006
|
*/
|
|
3994
4007
|
TreeGrid.prototype.reorderColumns = function (fromFName, toFName) {
|
|
4008
|
+
if (isNullOrUndefined(fromFName) && isNullOrUndefined(toFName)) {
|
|
4009
|
+
var error = 'The provided value for the fromFName and toFName is undefined. Please ensure the fromFName and toFName contains string.';
|
|
4010
|
+
this.trigger(actionFailure, { error: error });
|
|
4011
|
+
}
|
|
3995
4012
|
this.grid.reorderColumns(fromFName, toFName);
|
|
3996
4013
|
};
|
|
3997
4014
|
TreeGrid.prototype.TreeGridLocale = function () {
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4015
|
+
if (!isNullOrUndefined(this.locale)) {
|
|
4016
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
4017
|
+
var locale = L10n.locale;
|
|
4018
|
+
var localeObject = {};
|
|
4019
|
+
setValue(this.locale, {}, localeObject);
|
|
4020
|
+
var gridLocale = void 0;
|
|
4021
|
+
gridLocale = {};
|
|
4022
|
+
gridLocale = getObject(this.locale, locale);
|
|
4023
|
+
var treeGridLocale = void 0;
|
|
4024
|
+
treeGridLocale = {};
|
|
4025
|
+
treeGridLocale = getObject(this.getModuleName(), gridLocale);
|
|
4026
|
+
setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
|
|
4027
|
+
L10n.load(localeObject);
|
|
4028
|
+
}
|
|
4010
4029
|
};
|
|
4011
4030
|
/**
|
|
4012
4031
|
* By default, prints all the pages of the TreeGrid and hides the pager.
|
|
@@ -4053,45 +4072,57 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4053
4072
|
}
|
|
4054
4073
|
break;
|
|
4055
4074
|
case 'downArrow':
|
|
4056
|
-
if (!this.enableVirtualization) {
|
|
4075
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
4057
4076
|
target = e.target;
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4077
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
4078
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
4079
|
+
}
|
|
4080
|
+
if (!isNullOrUndefined(target)) {
|
|
4081
|
+
parentTarget = target.parentElement;
|
|
4082
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
4083
|
+
var cellIndex = parentTarget.cellIndex;
|
|
4084
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
4085
|
+
parentTarget = target;
|
|
4086
|
+
}
|
|
4087
|
+
summaryElement = this.findnextRowElement(parentTarget);
|
|
4088
|
+
if (summaryElement !== null) {
|
|
4089
|
+
var cellIndex_1 = target.cellIndex;
|
|
4090
|
+
var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
|
|
4091
|
+
addClass([row_1], 'e-focused');
|
|
4092
|
+
addClass([row_1], 'e-focus');
|
|
4093
|
+
}
|
|
4094
|
+
else {
|
|
4095
|
+
this.clearSelection();
|
|
4096
|
+
}
|
|
4073
4097
|
}
|
|
4074
4098
|
}
|
|
4075
4099
|
}
|
|
4076
4100
|
break;
|
|
4077
4101
|
case 'upArrow':
|
|
4078
|
-
if (!this.enableVirtualization) {
|
|
4102
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
4079
4103
|
target = e.target;
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4104
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
4105
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
4106
|
+
}
|
|
4107
|
+
if (!isNullOrUndefined(target)) {
|
|
4108
|
+
parentTarget = target.parentElement;
|
|
4109
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
4110
|
+
var cellIndex = parentTarget.cellIndex;
|
|
4111
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
4112
|
+
parentTarget = target;
|
|
4113
|
+
}
|
|
4114
|
+
summaryElement = this.findPreviousRowElement(parentTarget);
|
|
4115
|
+
if (summaryElement !== null) {
|
|
4116
|
+
var cellIndex_2 = target.cellIndex;
|
|
4117
|
+
if (!isNullOrUndefined(cellIndex_2)) {
|
|
4118
|
+
var row_2 = summaryElement.children[parseInt(cellIndex_2.toString(), 10)];
|
|
4119
|
+
addClass([row_2], 'e-focused');
|
|
4120
|
+
addClass([row_2], 'e-focus');
|
|
4121
|
+
}
|
|
4122
|
+
}
|
|
4123
|
+
else {
|
|
4124
|
+
this.clearSelection();
|
|
4125
|
+
}
|
|
4095
4126
|
}
|
|
4096
4127
|
}
|
|
4097
4128
|
}
|
|
@@ -4285,7 +4316,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4285
4316
|
name: 'Edit'
|
|
4286
4317
|
});
|
|
4287
4318
|
}
|
|
4288
|
-
if (this.isCommandColumn(this.columns)) {
|
|
4319
|
+
if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
|
|
4289
4320
|
modules.push({
|
|
4290
4321
|
member: 'commandColumn',
|
|
4291
4322
|
args: [this],
|
|
@@ -4383,7 +4414,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4383
4414
|
this.log(['mapping_fields_missing']);
|
|
4384
4415
|
this.renderModule = new Render(this);
|
|
4385
4416
|
this.dataModule = new DataManipulation(this);
|
|
4386
|
-
this.printModule = new Print
|
|
4417
|
+
this.printModule = new Print(this);
|
|
4387
4418
|
this.trigger(load);
|
|
4388
4419
|
this.autoGenerateColumns();
|
|
4389
4420
|
this.initialRender = true;
|
|
@@ -4418,6 +4449,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4418
4449
|
var root = 'root';
|
|
4419
4450
|
this.grid["" + root] = this["" + root] ? this["" + root] : this;
|
|
4420
4451
|
this.grid.appendTo(gridContainer);
|
|
4452
|
+
this.actionFailureHandler();
|
|
4421
4453
|
var gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
|
|
4422
4454
|
gridContent.setAttribute('tabindex', '0');
|
|
4423
4455
|
var contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
|
|
@@ -4440,6 +4472,85 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4440
4472
|
}
|
|
4441
4473
|
};
|
|
4442
4474
|
};
|
|
4475
|
+
TreeGrid.prototype.actionFailureHandler = function () {
|
|
4476
|
+
var _this = this;
|
|
4477
|
+
var failureCases = [];
|
|
4478
|
+
var primaryKeyFieldNames = this.getPrimaryKeyFieldNames();
|
|
4479
|
+
var RecordsCount = this.flatData.length;
|
|
4480
|
+
if ((this.editSettings.allowAdding || this.editSettings.allowDeleting || this.editSettings.allowEditing)
|
|
4481
|
+
&& primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4482
|
+
failureCases.push('For the CRUD actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4483
|
+
}
|
|
4484
|
+
if (this.allowRowDragAndDrop && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4485
|
+
failureCases.push('For the Row Drag and Drop actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4486
|
+
}
|
|
4487
|
+
if (this.allowPaging && this.enableVirtualization) {
|
|
4488
|
+
failureCases.push('Paging is not allowed in virtualization case.');
|
|
4489
|
+
}
|
|
4490
|
+
if (RecordsCount === 0 && this.columns.length === 0) {
|
|
4491
|
+
failureCases.push('Either of the Data source or columns should be given.');
|
|
4492
|
+
}
|
|
4493
|
+
if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; })) {
|
|
4494
|
+
failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
|
|
4495
|
+
}
|
|
4496
|
+
if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
|
|
4497
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4498
|
+
}
|
|
4499
|
+
if (this.stackedHeader && !isNullOrUndefined(this.detailTemplate)) {
|
|
4500
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4501
|
+
}
|
|
4502
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }) || this.frozenRows > 0)
|
|
4503
|
+
&& (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
|
|
4504
|
+
failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
|
|
4505
|
+
}
|
|
4506
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
|
|
4507
|
+
failureCases.push('Frozen rows and columns are not supported with cell editing.');
|
|
4508
|
+
}
|
|
4509
|
+
if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
|
|
4510
|
+
failureCases.push('Selection is not supported in RowTemplate');
|
|
4511
|
+
}
|
|
4512
|
+
if (this.treeColumnIndex < 0) {
|
|
4513
|
+
failureCases.push('For showing tree structure it is must to set the TreeColumnIndex value.');
|
|
4514
|
+
}
|
|
4515
|
+
if (this.treeColumnIndex >= this.columns.length) {
|
|
4516
|
+
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
4517
|
+
}
|
|
4518
|
+
if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString())
|
|
4519
|
+
&& !/[px]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString()))
|
|
4520
|
+
|| (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
|
|
4521
|
+
failureCases.push('column width and height should be in pixels');
|
|
4522
|
+
}
|
|
4523
|
+
if (!isNullOrUndefined(this.childMapping) && !isNullOrUndefined(this.idMapping)) {
|
|
4524
|
+
failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
|
|
4525
|
+
}
|
|
4526
|
+
if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
|
|
4527
|
+
((isNullOrUndefined(this.idMapping) && (!isNullOrUndefined(this.parentIdMapping))))) {
|
|
4528
|
+
failureCases.push('IdMapping and ParentIdMapping properties should be defined and vice versa.');
|
|
4529
|
+
}
|
|
4530
|
+
var checkboxColumn = this.columnModel.filter(function (col) { return col.showCheckbox; });
|
|
4531
|
+
var treeColumn = this.columns[this.treeColumnIndex];
|
|
4532
|
+
if (checkboxColumn.length !== 0) {
|
|
4533
|
+
if (checkboxColumn !== treeColumn) {
|
|
4534
|
+
failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
|
|
4535
|
+
}
|
|
4536
|
+
if (checkboxColumn.length > 1) {
|
|
4537
|
+
failureCases.push('Only one column can have the ShowCheckbox option enabled.');
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
var alignColumn = this.columnModel.filter(function (col) { return col.textAlign === 'Right' && col.field === _this.columnModel[_this.treeColumnIndex].field; });
|
|
4541
|
+
if (alignColumn.length !== 0) {
|
|
4542
|
+
failureCases.push('TextAlign right for the tree column is not applicable.');
|
|
4543
|
+
}
|
|
4544
|
+
if (failureCases.length > 0) {
|
|
4545
|
+
var failureEventArgs_1 = {
|
|
4546
|
+
error: {}
|
|
4547
|
+
};
|
|
4548
|
+
failureCases.forEach(function (failureCase, index) {
|
|
4549
|
+
failureEventArgs_1.error[parseInt(index.toString(), 10)] = failureCase;
|
|
4550
|
+
});
|
|
4551
|
+
this.trigger(actionFailure, failureEventArgs_1);
|
|
4552
|
+
}
|
|
4553
|
+
};
|
|
4443
4554
|
TreeGrid.prototype.refreshToolbarItems = function () {
|
|
4444
4555
|
var toolbarElement = this.toolbarModule.getToolbar();
|
|
4445
4556
|
var indentID = this.element.id + '_gridcontrol_indent';
|
|
@@ -4647,11 +4758,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4647
4758
|
_this.grid.on('initial-end', _this.afterGridRender, _this);
|
|
4648
4759
|
if (!isNullOrUndefined(_this.loggerModule)) {
|
|
4649
4760
|
var loggerModule = 'loggerModule';
|
|
4650
|
-
_this.loggerModule = _this.grid["" + loggerModule] = new Logger
|
|
4761
|
+
_this.loggerModule = _this.grid["" + loggerModule] = new Logger(_this.grid);
|
|
4651
4762
|
}
|
|
4652
4763
|
};
|
|
4653
4764
|
this.grid.printComplete = this.triggerEvents.bind(this);
|
|
4654
|
-
this.grid.actionFailure =
|
|
4765
|
+
this.grid.actionFailure = function (args) {
|
|
4766
|
+
_this.trigger(actionFailure, args);
|
|
4767
|
+
};
|
|
4655
4768
|
this.extendedGridDataBoundEvent();
|
|
4656
4769
|
this.extendedGridEvents();
|
|
4657
4770
|
this.extendedGridActionEvents();
|
|
@@ -4740,7 +4853,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4740
4853
|
treeGrid.notify('dataProcessor', args);
|
|
4741
4854
|
//args = treeGrid.dataModule.dataProcessor(args);
|
|
4742
4855
|
}
|
|
4743
|
-
extend(args, treeGrid.dataResults);
|
|
4856
|
+
extend$1(args, treeGrid.dataResults);
|
|
4744
4857
|
if (treeGrid.enableImmutableMode) {
|
|
4745
4858
|
args.result = args.result.slice();
|
|
4746
4859
|
}
|
|
@@ -5024,9 +5137,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5024
5137
|
}
|
|
5025
5138
|
else {
|
|
5026
5139
|
if (_this.grid.isFrozenGrid() && _this.enableVirtualization && args['tableName'] === 'movable') {
|
|
5027
|
-
var movableContent
|
|
5028
|
-
var frozenContent
|
|
5029
|
-
movableContent
|
|
5140
|
+
var movableContent$1 = _this.grid.element.querySelector('.' + movableContent);
|
|
5141
|
+
var frozenContent$1 = _this.grid.element.querySelector('.' + frozenContent);
|
|
5142
|
+
movableContent$1.style.height = frozenContent$1.style.height = 'auto';
|
|
5030
5143
|
}
|
|
5031
5144
|
_this.trigger(actionComplete, args);
|
|
5032
5145
|
}
|
|
@@ -5747,7 +5860,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5747
5860
|
if (this.grid.editModule) {
|
|
5748
5861
|
if (!isNullOrUndefined(index)) {
|
|
5749
5862
|
var griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
|
|
5750
|
-
extend(griddata, data);
|
|
5863
|
+
extend$1(griddata, data);
|
|
5751
5864
|
this.grid.editModule.updateRow(index, griddata);
|
|
5752
5865
|
}
|
|
5753
5866
|
else {
|
|
@@ -5764,6 +5877,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5764
5877
|
* @returns {void}
|
|
5765
5878
|
*/
|
|
5766
5879
|
TreeGrid.prototype.deleteRecord = function (fieldName, data) {
|
|
5880
|
+
if ((isNullOrUndefined(fieldName) && (isNullOrUndefined(data)) || (this.getSelectedRecords().length <= 0))) {
|
|
5881
|
+
var error = 'The provided value for the fieldName and data is undefined. Please ensure the fieldName and data contains number.';
|
|
5882
|
+
this.trigger(actionFailure, { error: error });
|
|
5883
|
+
}
|
|
5767
5884
|
if (this.grid.editModule) {
|
|
5768
5885
|
this.grid.editModule.deleteRecord(fieldName, data);
|
|
5769
5886
|
}
|
|
@@ -5832,6 +5949,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5832
5949
|
* @returns {void}
|
|
5833
5950
|
*/
|
|
5834
5951
|
TreeGrid.prototype.deleteRow = function (tr) {
|
|
5952
|
+
if (isNullOrUndefined(tr)) {
|
|
5953
|
+
var error = 'The provided value for the tr is undefined. Please ensure the tr contains HTMLTableRowElement.';
|
|
5954
|
+
this.trigger(actionFailure, { error: error });
|
|
5955
|
+
}
|
|
5835
5956
|
if (this.grid.editModule) {
|
|
5836
5957
|
this.grid.editModule.deleteRow(tr);
|
|
5837
5958
|
}
|
|
@@ -5857,9 +5978,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5857
5978
|
this.grid.setCellValue(key, field, value);
|
|
5858
5979
|
var rowIndex = this.grid.getRowIndexByPrimaryKey(key);
|
|
5859
5980
|
var record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
|
|
5860
|
-
if (
|
|
5861
|
-
|
|
5981
|
+
if (isNullOrUndefined(record)) {
|
|
5982
|
+
var error = 'The provided value for the record is undefined. Please ensure the record contains ITreeData.';
|
|
5983
|
+
this.trigger(actionFailure, { error: error });
|
|
5862
5984
|
}
|
|
5985
|
+
editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
|
|
5863
5986
|
};
|
|
5864
5987
|
/**
|
|
5865
5988
|
* Updates and refresh the particular row values based on the given primary key value.
|
|
@@ -5897,8 +6020,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5897
6020
|
this.grid.setRowData(key, rowData);
|
|
5898
6021
|
var visibleRecords = this.getVisibleRecords();
|
|
5899
6022
|
if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])["" + primaryKey]) {
|
|
5900
|
-
var table
|
|
5901
|
-
var sHeight = table
|
|
6023
|
+
var table = this.getContentTable();
|
|
6024
|
+
var sHeight = table.scrollHeight;
|
|
5902
6025
|
var clientHeight = this.getContent().clientHeight;
|
|
5903
6026
|
this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
|
|
5904
6027
|
}
|
|
@@ -5910,6 +6033,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5910
6033
|
* @returns {void}
|
|
5911
6034
|
*/
|
|
5912
6035
|
TreeGrid.prototype.goToPage = function (pageNo) {
|
|
6036
|
+
if (isNullOrUndefined(pageNo)) {
|
|
6037
|
+
var error = 'The provided value for the pageNo is undefined. Please ensure the pageNo contains number.';
|
|
6038
|
+
this.trigger(actionFailure, { error: error });
|
|
6039
|
+
}
|
|
5913
6040
|
if (this.grid.pagerModule) {
|
|
5914
6041
|
this.grid.pagerModule.goToPage(pageNo);
|
|
5915
6042
|
}
|
|
@@ -6011,6 +6138,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6011
6138
|
* @returns {void}
|
|
6012
6139
|
*/
|
|
6013
6140
|
TreeGrid.prototype.hideColumns = function (keys, hideBy) {
|
|
6141
|
+
if (isNullOrUndefined(keys)) {
|
|
6142
|
+
var error = 'The provided value for the keys is undefined. Please ensure the keys contains string.';
|
|
6143
|
+
this.trigger(actionFailure, { error: error });
|
|
6144
|
+
}
|
|
6014
6145
|
this.grid.hideColumns(keys, hideBy);
|
|
6015
6146
|
this.updateColumnModel();
|
|
6016
6147
|
};
|
|
@@ -6108,10 +6239,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6108
6239
|
if (this.grid.columns.length !== this.columnModel.length) {
|
|
6109
6240
|
this.stackedHeader = true;
|
|
6110
6241
|
}
|
|
6111
|
-
if (this.stackedHeader && this.allowResizing) {
|
|
6242
|
+
if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
|
|
6112
6243
|
this.updateColumnsWidth(this.columns);
|
|
6113
6244
|
}
|
|
6114
|
-
if (!this.stackedHeader) {
|
|
6245
|
+
if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
|
|
6115
6246
|
merge(this.columns, this.columnModel);
|
|
6116
6247
|
}
|
|
6117
6248
|
this["" + deepMerge] = undefined; // Workaround for blazor updateModel
|
|
@@ -6120,10 +6251,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6120
6251
|
TreeGrid.prototype.updateColumnsWidth = function (columns) {
|
|
6121
6252
|
var _this = this;
|
|
6122
6253
|
columns.forEach(function (column) {
|
|
6123
|
-
if (column.columns) {
|
|
6254
|
+
if (!isNullOrUndefined(column) && column.columns) {
|
|
6124
6255
|
_this.updateColumnsWidth(column.columns);
|
|
6125
6256
|
}
|
|
6126
|
-
else if (column.field) {
|
|
6257
|
+
else if (!isNullOrUndefined(column) && column.field) {
|
|
6127
6258
|
var currentColumn = _this.grid.getColumnByField(column.field);
|
|
6128
6259
|
if (!isNullOrUndefined(currentColumn)) {
|
|
6129
6260
|
column.width = currentColumn.width;
|
|
@@ -6428,6 +6559,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6428
6559
|
*/
|
|
6429
6560
|
TreeGrid.prototype.expandRow = function (row, record, key, level) {
|
|
6430
6561
|
var _this = this;
|
|
6562
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
6563
|
+
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6564
|
+
this.trigger(actionFailure, { error: error });
|
|
6565
|
+
}
|
|
6431
6566
|
var parentRec = this.parentData;
|
|
6432
6567
|
if (!this.enableVirtualization) {
|
|
6433
6568
|
parentRec = this.flatData.filter(function (e) {
|
|
@@ -6451,13 +6586,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6451
6586
|
if (expandingArgs.expandAll) {
|
|
6452
6587
|
_this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6453
6588
|
}
|
|
6454
|
-
_this.expandRows(row, record, parentRec
|
|
6589
|
+
_this.expandRows(row, record, parentRec);
|
|
6455
6590
|
}
|
|
6456
6591
|
});
|
|
6457
6592
|
}
|
|
6458
6593
|
else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
|
|
6459
6594
|
!this.expandAllPrevent && this.isExpandingEventTriggered) {
|
|
6460
|
-
this.expandRows(row, record, parentRec
|
|
6595
|
+
this.expandRows(row, record, parentRec);
|
|
6461
6596
|
}
|
|
6462
6597
|
this.isExpandingEventTriggered = true;
|
|
6463
6598
|
}
|
|
@@ -6468,13 +6603,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6468
6603
|
if (expandingArgs.expandAll) {
|
|
6469
6604
|
_this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6470
6605
|
}
|
|
6471
|
-
_this.expandRows(row, record, parentRec
|
|
6606
|
+
_this.expandRows(row, record, parentRec);
|
|
6472
6607
|
}
|
|
6473
6608
|
});
|
|
6474
6609
|
}
|
|
6475
6610
|
};
|
|
6476
6611
|
// Internal method to handle the rows expand
|
|
6477
|
-
TreeGrid.prototype.expandRows = function (row, record, parentRec
|
|
6612
|
+
TreeGrid.prototype.expandRows = function (row, record, parentRec) {
|
|
6478
6613
|
this.expandCollapse('expand', row, record);
|
|
6479
6614
|
var children = 'Children';
|
|
6480
6615
|
if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record["" + children]))) {
|
|
@@ -6545,6 +6680,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6545
6680
|
*/
|
|
6546
6681
|
TreeGrid.prototype.collapseRow = function (row, record, key) {
|
|
6547
6682
|
var _this = this;
|
|
6683
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
6684
|
+
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6685
|
+
this.trigger(actionFailure, { error: error });
|
|
6686
|
+
}
|
|
6548
6687
|
var parentRec = this.parentData;
|
|
6549
6688
|
if (!this.enableVirtualization) {
|
|
6550
6689
|
parentRec = this.flatData.filter(function (e) {
|
|
@@ -6561,12 +6700,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6561
6700
|
if (collapsingArgs.collapseAll) {
|
|
6562
6701
|
_this.expandCollapseAllChildren(record, 'collapse', key);
|
|
6563
6702
|
}
|
|
6564
|
-
_this.collapseRows(row, record, parentRec
|
|
6703
|
+
_this.collapseRows(row, record, parentRec);
|
|
6565
6704
|
}
|
|
6566
6705
|
});
|
|
6567
6706
|
}
|
|
6568
6707
|
else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
|
|
6569
|
-
this.collapseRows(row, record, parentRec
|
|
6708
|
+
this.collapseRows(row, record, parentRec);
|
|
6570
6709
|
}
|
|
6571
6710
|
this.isCollapsingEventTriggered = true;
|
|
6572
6711
|
}
|
|
@@ -6574,13 +6713,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6574
6713
|
var args = { data: record, row: row, cancel: false };
|
|
6575
6714
|
this.trigger(collapsing, args, function (collapsingArgs) {
|
|
6576
6715
|
if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
|
|
6577
|
-
_this.collapseRows(row, record, parentRec
|
|
6716
|
+
_this.collapseRows(row, record, parentRec);
|
|
6578
6717
|
}
|
|
6579
6718
|
});
|
|
6580
6719
|
}
|
|
6581
6720
|
};
|
|
6582
6721
|
// Internal method for handling the rows collapse
|
|
6583
|
-
TreeGrid.prototype.collapseRows = function (row, record, parentRec
|
|
6722
|
+
TreeGrid.prototype.collapseRows = function (row, record, parentRec) {
|
|
6584
6723
|
this.expandCollapse('collapse', row, record);
|
|
6585
6724
|
var collapseArgs = { data: record, row: row };
|
|
6586
6725
|
if (!isRemoteData(this)) {
|
|
@@ -6624,6 +6763,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6624
6763
|
* @returns {void}
|
|
6625
6764
|
*/
|
|
6626
6765
|
TreeGrid.prototype.expandAtLevel = function (level) {
|
|
6766
|
+
if (isNullOrUndefined(level)) {
|
|
6767
|
+
var error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6768
|
+
this.trigger(actionFailure, { error: error });
|
|
6769
|
+
}
|
|
6627
6770
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6628
6771
|
var rec = this.grid.dataSource.filter(function (e) {
|
|
6629
6772
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6646,6 +6789,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6646
6789
|
* @returns {void}
|
|
6647
6790
|
*/
|
|
6648
6791
|
TreeGrid.prototype.expandByKey = function (key) {
|
|
6792
|
+
if (isNullOrUndefined(key)) {
|
|
6793
|
+
var error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6794
|
+
this.trigger(actionFailure, { error: error });
|
|
6795
|
+
}
|
|
6649
6796
|
this.expandCollapseActionByKey(key, 'Expand');
|
|
6650
6797
|
};
|
|
6651
6798
|
TreeGrid.prototype.expandAction = function (record, key, level, isPaging) {
|
|
@@ -6703,6 +6850,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6703
6850
|
* @returns {void}
|
|
6704
6851
|
*/
|
|
6705
6852
|
TreeGrid.prototype.collapseAtLevel = function (level) {
|
|
6853
|
+
if (isNullOrUndefined(level)) {
|
|
6854
|
+
var error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6855
|
+
this.trigger(actionFailure, { error: error });
|
|
6856
|
+
}
|
|
6706
6857
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6707
6858
|
var record = this.grid.dataSource.filter(function (e) {
|
|
6708
6859
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6725,6 +6876,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6725
6876
|
* @returns {void}
|
|
6726
6877
|
*/
|
|
6727
6878
|
TreeGrid.prototype.collapseByKey = function (key) {
|
|
6879
|
+
if (isNullOrUndefined(key)) {
|
|
6880
|
+
var error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6881
|
+
this.trigger(actionFailure, { error: error });
|
|
6882
|
+
}
|
|
6728
6883
|
this.expandCollapseActionByKey(key, 'Collapse');
|
|
6729
6884
|
};
|
|
6730
6885
|
TreeGrid.prototype.expandCollapseActionByKey = function (key, action) {
|
|
@@ -6765,6 +6920,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6765
6920
|
* @returns {void}
|
|
6766
6921
|
*/
|
|
6767
6922
|
TreeGrid.prototype.expandAll = function () {
|
|
6923
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6924
|
+
var error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6925
|
+
this.trigger(actionFailure, { error: error });
|
|
6926
|
+
}
|
|
6768
6927
|
this.isExpandedEventTriggered = false;
|
|
6769
6928
|
this.isExpandingEventTriggered = false;
|
|
6770
6929
|
this.expandCollapseAll('expand');
|
|
@@ -6775,6 +6934,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6775
6934
|
* @returns {void}
|
|
6776
6935
|
*/
|
|
6777
6936
|
TreeGrid.prototype.collapseAll = function () {
|
|
6937
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6938
|
+
var error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6939
|
+
this.trigger(actionFailure, { error: error });
|
|
6940
|
+
}
|
|
6778
6941
|
this.isCollapsedEventTriggered = false;
|
|
6779
6942
|
this.isCollapsingEventTriggered = false;
|
|
6780
6943
|
this.expandCollapseAll('collapse');
|
|
@@ -6944,8 +7107,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6944
7107
|
totalRows = [].slice.call(rows);
|
|
6945
7108
|
for (var i = totalRows.length - 1; i >= 0; i--) {
|
|
6946
7109
|
if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
|
|
6947
|
-
var table
|
|
6948
|
-
var sHeight = table
|
|
7110
|
+
var table = this.getContentTable();
|
|
7111
|
+
var sHeight = table.scrollHeight;
|
|
6949
7112
|
var clientHeight = this.getContent().clientHeight;
|
|
6950
7113
|
this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
|
|
6951
7114
|
break;
|
|
@@ -7005,8 +7168,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7005
7168
|
if (childData[parseInt(i.toString(), 10)]) {
|
|
7006
7169
|
childData[parseInt(i.toString(), 10)].level = record.level + 1;
|
|
7007
7170
|
childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
|
|
7008
|
-
childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
|
|
7009
|
-
childData[parseInt(i.toString(), 10)].taskData = extend({}, childData[parseInt(i.toString(), 10)]);
|
|
7171
|
+
childData[parseInt(i.toString(), 10)].parentItem = extend$1({}, record);
|
|
7172
|
+
childData[parseInt(i.toString(), 10)].taskData = extend$1({}, childData[parseInt(i.toString(), 10)]);
|
|
7010
7173
|
delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
|
|
7011
7174
|
delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
|
|
7012
7175
|
childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
|
|
@@ -7334,6 +7497,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7334
7497
|
* @returns {void}
|
|
7335
7498
|
*/
|
|
7336
7499
|
TreeGrid.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
|
|
7500
|
+
if (isNullOrUndefined(fieldName) && isNullOrUndefined(filterOperator) && isNullOrUndefined(filterValue)) {
|
|
7501
|
+
var error = 'The provided value for the fieldName, filterOperator and filterValue are undefined. Please ensure the fieldName, filterOperator and filterValue.';
|
|
7502
|
+
this.trigger(actionFailure, { error: error });
|
|
7503
|
+
}
|
|
7337
7504
|
this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
|
|
7338
7505
|
};
|
|
7339
7506
|
/**
|
|
@@ -7400,6 +7567,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7400
7567
|
* @returns {void}
|
|
7401
7568
|
*/
|
|
7402
7569
|
TreeGrid.prototype.paste = function (data, rowIndex, colIndex) {
|
|
7570
|
+
if (isNullOrUndefined(data) && isNullOrUndefined(rowIndex) && isNullOrUndefined(colIndex)) {
|
|
7571
|
+
var error = 'The provided value for the index is undefined. Please ensure the index contains number.';
|
|
7572
|
+
this.trigger(actionFailure, { error: error });
|
|
7573
|
+
}
|
|
7403
7574
|
this.clipboardModule.paste(data, rowIndex, colIndex);
|
|
7404
7575
|
};
|
|
7405
7576
|
/**
|
|
@@ -7611,7 +7782,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7611
7782
|
* @returns {number} - Returns frozen column count
|
|
7612
7783
|
*/
|
|
7613
7784
|
TreeGrid.prototype.getFrozenColumns = function () {
|
|
7614
|
-
return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
|
|
7785
|
+
return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
|
|
7615
7786
|
};
|
|
7616
7787
|
TreeGrid.prototype.getFrozenCount = function (cols, cnt) {
|
|
7617
7788
|
for (var j = 0, len = cols.length; j < len; j++) {
|
|
@@ -7668,6 +7839,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7668
7839
|
* @returns {void}
|
|
7669
7840
|
*/
|
|
7670
7841
|
TreeGrid.prototype.reorderRows = function (fromIndexes, toIndex, position) {
|
|
7842
|
+
if (isNullOrUndefined(fromIndexes) && isNullOrUndefined(toIndex) && isNullOrUndefined(position)) {
|
|
7843
|
+
var error = 'The provided value for the fromIndexes, toIndex and position is undefined. Please ensure the fromIndexes and toIndex contains number and position contains string.';
|
|
7844
|
+
this.trigger(actionFailure, { error: error });
|
|
7845
|
+
}
|
|
7671
7846
|
this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
|
|
7672
7847
|
};
|
|
7673
7848
|
/**
|
|
@@ -7695,400 +7870,400 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7695
7870
|
}
|
|
7696
7871
|
};
|
|
7697
7872
|
var TreeGrid_1;
|
|
7698
|
-
__decorate([
|
|
7873
|
+
__decorate$b([
|
|
7699
7874
|
Property(0)
|
|
7700
7875
|
], TreeGrid.prototype, "frozenRows", void 0);
|
|
7701
|
-
__decorate([
|
|
7876
|
+
__decorate$b([
|
|
7702
7877
|
Property(0)
|
|
7703
7878
|
], TreeGrid.prototype, "frozenColumns", void 0);
|
|
7704
|
-
__decorate([
|
|
7879
|
+
__decorate$b([
|
|
7705
7880
|
Property('Ellipsis')
|
|
7706
7881
|
], TreeGrid.prototype, "clipMode", void 0);
|
|
7707
|
-
__decorate([
|
|
7882
|
+
__decorate$b([
|
|
7708
7883
|
Property([])
|
|
7709
7884
|
], TreeGrid.prototype, "columns", void 0);
|
|
7710
|
-
__decorate([
|
|
7885
|
+
__decorate$b([
|
|
7711
7886
|
Property(null)
|
|
7712
7887
|
], TreeGrid.prototype, "childMapping", void 0);
|
|
7713
|
-
__decorate([
|
|
7888
|
+
__decorate$b([
|
|
7714
7889
|
Property(null)
|
|
7715
7890
|
], TreeGrid.prototype, "hasChildMapping", void 0);
|
|
7716
|
-
__decorate([
|
|
7891
|
+
__decorate$b([
|
|
7717
7892
|
Property(0)
|
|
7718
7893
|
], TreeGrid.prototype, "treeColumnIndex", void 0);
|
|
7719
|
-
__decorate([
|
|
7894
|
+
__decorate$b([
|
|
7720
7895
|
Property(null)
|
|
7721
7896
|
], TreeGrid.prototype, "idMapping", void 0);
|
|
7722
|
-
__decorate([
|
|
7897
|
+
__decorate$b([
|
|
7723
7898
|
Property(null)
|
|
7724
7899
|
], TreeGrid.prototype, "parentIdMapping", void 0);
|
|
7725
|
-
__decorate([
|
|
7900
|
+
__decorate$b([
|
|
7726
7901
|
Property(false)
|
|
7727
7902
|
], TreeGrid.prototype, "enableCollapseAll", void 0);
|
|
7728
|
-
__decorate([
|
|
7903
|
+
__decorate$b([
|
|
7729
7904
|
Property(null)
|
|
7730
7905
|
], TreeGrid.prototype, "expandStateMapping", void 0);
|
|
7731
|
-
__decorate([
|
|
7906
|
+
__decorate$b([
|
|
7732
7907
|
Property(false)
|
|
7733
7908
|
], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
|
|
7734
|
-
__decorate([
|
|
7909
|
+
__decorate$b([
|
|
7735
7910
|
Property([])
|
|
7736
7911
|
], TreeGrid.prototype, "dataSource", void 0);
|
|
7737
|
-
__decorate([
|
|
7912
|
+
__decorate$b([
|
|
7738
7913
|
Property()
|
|
7739
7914
|
], TreeGrid.prototype, "query", void 0);
|
|
7740
|
-
__decorate([
|
|
7915
|
+
__decorate$b([
|
|
7741
7916
|
Property()
|
|
7742
7917
|
], TreeGrid.prototype, "cloneQuery", void 0);
|
|
7743
|
-
__decorate([
|
|
7918
|
+
__decorate$b([
|
|
7744
7919
|
Property('AllPages')
|
|
7745
7920
|
], TreeGrid.prototype, "printMode", void 0);
|
|
7746
|
-
__decorate([
|
|
7921
|
+
__decorate$b([
|
|
7747
7922
|
Property(false)
|
|
7748
7923
|
], TreeGrid.prototype, "allowPaging", void 0);
|
|
7749
|
-
__decorate([
|
|
7924
|
+
__decorate$b([
|
|
7750
7925
|
Property(false)
|
|
7751
7926
|
], TreeGrid.prototype, "loadChildOnDemand", void 0);
|
|
7752
|
-
__decorate([
|
|
7927
|
+
__decorate$b([
|
|
7753
7928
|
Property(false)
|
|
7754
7929
|
], TreeGrid.prototype, "allowTextWrap", void 0);
|
|
7755
|
-
__decorate([
|
|
7930
|
+
__decorate$b([
|
|
7756
7931
|
Complex({}, TextWrapSettings)
|
|
7757
7932
|
], TreeGrid.prototype, "textWrapSettings", void 0);
|
|
7758
|
-
__decorate([
|
|
7933
|
+
__decorate$b([
|
|
7759
7934
|
Property(false)
|
|
7760
7935
|
], TreeGrid.prototype, "allowReordering", void 0);
|
|
7761
|
-
__decorate([
|
|
7936
|
+
__decorate$b([
|
|
7762
7937
|
Property(false)
|
|
7763
7938
|
], TreeGrid.prototype, "allowResizing", void 0);
|
|
7764
|
-
__decorate([
|
|
7939
|
+
__decorate$b([
|
|
7765
7940
|
Property(false)
|
|
7766
7941
|
], TreeGrid.prototype, "autoCheckHierarchy", void 0);
|
|
7767
|
-
__decorate([
|
|
7942
|
+
__decorate$b([
|
|
7768
7943
|
Complex({}, PageSettings)
|
|
7769
7944
|
], TreeGrid.prototype, "pageSettings", void 0);
|
|
7770
|
-
__decorate([
|
|
7771
|
-
Complex({}, RowDropSettings)
|
|
7945
|
+
__decorate$b([
|
|
7946
|
+
Complex({}, RowDropSettings$1)
|
|
7772
7947
|
], TreeGrid.prototype, "rowDropSettings", void 0);
|
|
7773
|
-
__decorate([
|
|
7948
|
+
__decorate$b([
|
|
7774
7949
|
Property('USD')
|
|
7775
7950
|
], TreeGrid.prototype, "currencyCode", void 0);
|
|
7776
|
-
__decorate([
|
|
7951
|
+
__decorate$b([
|
|
7777
7952
|
Property()
|
|
7778
7953
|
], TreeGrid.prototype, "pagerTemplate", void 0);
|
|
7779
|
-
__decorate([
|
|
7954
|
+
__decorate$b([
|
|
7780
7955
|
Property(false)
|
|
7781
7956
|
], TreeGrid.prototype, "showColumnMenu", void 0);
|
|
7782
|
-
__decorate([
|
|
7957
|
+
__decorate$b([
|
|
7783
7958
|
Property(false)
|
|
7784
7959
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
7785
|
-
__decorate([
|
|
7960
|
+
__decorate$b([
|
|
7786
7961
|
Property(false)
|
|
7787
7962
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
7788
|
-
__decorate([
|
|
7963
|
+
__decorate$b([
|
|
7789
7964
|
Property(true)
|
|
7790
7965
|
], TreeGrid.prototype, "allowMultiSorting", void 0);
|
|
7791
|
-
__decorate([
|
|
7966
|
+
__decorate$b([
|
|
7792
7967
|
Complex({}, SortSettings)
|
|
7793
7968
|
], TreeGrid.prototype, "sortSettings", void 0);
|
|
7794
|
-
__decorate([
|
|
7969
|
+
__decorate$b([
|
|
7795
7970
|
Collection([], AggregateRow)
|
|
7796
7971
|
], TreeGrid.prototype, "aggregates", void 0);
|
|
7797
|
-
__decorate([
|
|
7972
|
+
__decorate$b([
|
|
7798
7973
|
Complex({}, EditSettings)
|
|
7799
7974
|
], TreeGrid.prototype, "editSettings", void 0);
|
|
7800
|
-
__decorate([
|
|
7975
|
+
__decorate$b([
|
|
7801
7976
|
Property(false)
|
|
7802
7977
|
], TreeGrid.prototype, "allowFiltering", void 0);
|
|
7803
|
-
__decorate([
|
|
7978
|
+
__decorate$b([
|
|
7804
7979
|
Property()
|
|
7805
7980
|
], TreeGrid.prototype, "detailTemplate", void 0);
|
|
7806
|
-
__decorate([
|
|
7981
|
+
__decorate$b([
|
|
7807
7982
|
Complex({}, FilterSettings)
|
|
7808
7983
|
], TreeGrid.prototype, "filterSettings", void 0);
|
|
7809
|
-
__decorate([
|
|
7984
|
+
__decorate$b([
|
|
7810
7985
|
Complex({}, SearchSettings)
|
|
7811
7986
|
], TreeGrid.prototype, "searchSettings", void 0);
|
|
7812
|
-
__decorate([
|
|
7987
|
+
__decorate$b([
|
|
7813
7988
|
Property()
|
|
7814
7989
|
], TreeGrid.prototype, "toolbar", void 0);
|
|
7815
|
-
__decorate([
|
|
7990
|
+
__decorate$b([
|
|
7816
7991
|
Property()
|
|
7817
7992
|
], TreeGrid.prototype, "toolbarTemplate", void 0);
|
|
7818
|
-
__decorate([
|
|
7993
|
+
__decorate$b([
|
|
7819
7994
|
Property('Default')
|
|
7820
7995
|
], TreeGrid.prototype, "gridLines", void 0);
|
|
7821
|
-
__decorate([
|
|
7996
|
+
__decorate$b([
|
|
7822
7997
|
Property()
|
|
7823
7998
|
], TreeGrid.prototype, "contextMenuItems", void 0);
|
|
7824
|
-
__decorate([
|
|
7999
|
+
__decorate$b([
|
|
7825
8000
|
Property()
|
|
7826
8001
|
], TreeGrid.prototype, "columnMenuItems", void 0);
|
|
7827
|
-
__decorate([
|
|
8002
|
+
__decorate$b([
|
|
7828
8003
|
Property()
|
|
7829
8004
|
], TreeGrid.prototype, "rowTemplate", void 0);
|
|
7830
|
-
__decorate([
|
|
8005
|
+
__decorate$b([
|
|
7831
8006
|
Property('Parent')
|
|
7832
8007
|
], TreeGrid.prototype, "copyHierarchyMode", void 0);
|
|
7833
|
-
__decorate([
|
|
8008
|
+
__decorate$b([
|
|
7834
8009
|
Property(null)
|
|
7835
8010
|
], TreeGrid.prototype, "rowHeight", void 0);
|
|
7836
|
-
__decorate([
|
|
8011
|
+
__decorate$b([
|
|
7837
8012
|
Property(true)
|
|
7838
8013
|
], TreeGrid.prototype, "enableAltRow", void 0);
|
|
7839
|
-
__decorate([
|
|
8014
|
+
__decorate$b([
|
|
7840
8015
|
Property(true)
|
|
7841
8016
|
], TreeGrid.prototype, "allowKeyboard", void 0);
|
|
7842
|
-
__decorate([
|
|
8017
|
+
__decorate$b([
|
|
7843
8018
|
Property(false)
|
|
7844
8019
|
], TreeGrid.prototype, "enableHover", void 0);
|
|
7845
|
-
__decorate([
|
|
8020
|
+
__decorate$b([
|
|
7846
8021
|
Property(false)
|
|
7847
8022
|
], TreeGrid.prototype, "enableAutoFill", void 0);
|
|
7848
|
-
__decorate([
|
|
8023
|
+
__decorate$b([
|
|
7849
8024
|
Property(false)
|
|
7850
8025
|
], TreeGrid.prototype, "enableAdaptiveUI", void 0);
|
|
7851
|
-
__decorate([
|
|
8026
|
+
__decorate$b([
|
|
7852
8027
|
Property(false)
|
|
7853
8028
|
], TreeGrid.prototype, "enableImmutableMode", void 0);
|
|
7854
|
-
__decorate([
|
|
8029
|
+
__decorate$b([
|
|
7855
8030
|
Property('auto')
|
|
7856
8031
|
], TreeGrid.prototype, "height", void 0);
|
|
7857
|
-
__decorate([
|
|
8032
|
+
__decorate$b([
|
|
7858
8033
|
Property('auto')
|
|
7859
8034
|
], TreeGrid.prototype, "width", void 0);
|
|
7860
|
-
__decorate([
|
|
8035
|
+
__decorate$b([
|
|
7861
8036
|
Complex({}, LoadingIndicator)
|
|
7862
8037
|
], TreeGrid.prototype, "loadingIndicator", void 0);
|
|
7863
|
-
__decorate([
|
|
8038
|
+
__decorate$b([
|
|
7864
8039
|
Property(true)
|
|
7865
8040
|
], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
|
|
7866
|
-
__decorate([
|
|
8041
|
+
__decorate$b([
|
|
7867
8042
|
Property(false)
|
|
7868
8043
|
], TreeGrid.prototype, "enableVirtualization", void 0);
|
|
7869
|
-
__decorate([
|
|
8044
|
+
__decorate$b([
|
|
7870
8045
|
Property(false)
|
|
7871
8046
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
7872
|
-
__decorate([
|
|
8047
|
+
__decorate$b([
|
|
7873
8048
|
Property(false)
|
|
7874
8049
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
7875
|
-
__decorate([
|
|
8050
|
+
__decorate$b([
|
|
7876
8051
|
Property(false)
|
|
7877
8052
|
], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
|
|
7878
|
-
__decorate([
|
|
8053
|
+
__decorate$b([
|
|
7879
8054
|
Complex({}, InfiniteScrollSettings)
|
|
7880
8055
|
], TreeGrid.prototype, "infiniteScrollSettings", void 0);
|
|
7881
|
-
__decorate([
|
|
8056
|
+
__decorate$b([
|
|
7882
8057
|
Property('All')
|
|
7883
8058
|
], TreeGrid.prototype, "columnQueryMode", void 0);
|
|
7884
|
-
__decorate([
|
|
8059
|
+
__decorate$b([
|
|
7885
8060
|
Event()
|
|
7886
8061
|
], TreeGrid.prototype, "created", void 0);
|
|
7887
|
-
__decorate([
|
|
8062
|
+
__decorate$b([
|
|
7888
8063
|
Event()
|
|
7889
8064
|
], TreeGrid.prototype, "load", void 0);
|
|
7890
|
-
__decorate([
|
|
8065
|
+
__decorate$b([
|
|
7891
8066
|
Event()
|
|
7892
8067
|
], TreeGrid.prototype, "expanding", void 0);
|
|
7893
|
-
__decorate([
|
|
8068
|
+
__decorate$b([
|
|
7894
8069
|
Event()
|
|
7895
8070
|
], TreeGrid.prototype, "expanded", void 0);
|
|
7896
|
-
__decorate([
|
|
8071
|
+
__decorate$b([
|
|
7897
8072
|
Event()
|
|
7898
8073
|
], TreeGrid.prototype, "collapsing", void 0);
|
|
7899
|
-
__decorate([
|
|
8074
|
+
__decorate$b([
|
|
7900
8075
|
Event()
|
|
7901
8076
|
], TreeGrid.prototype, "collapsed", void 0);
|
|
7902
|
-
__decorate([
|
|
8077
|
+
__decorate$b([
|
|
7903
8078
|
Event()
|
|
7904
8079
|
], TreeGrid.prototype, "cellSave", void 0);
|
|
7905
|
-
__decorate([
|
|
8080
|
+
__decorate$b([
|
|
7906
8081
|
Event()
|
|
7907
8082
|
], TreeGrid.prototype, "cellSaved", void 0);
|
|
7908
|
-
__decorate([
|
|
8083
|
+
__decorate$b([
|
|
7909
8084
|
Event()
|
|
7910
8085
|
], TreeGrid.prototype, "actionBegin", void 0);
|
|
7911
|
-
__decorate([
|
|
8086
|
+
__decorate$b([
|
|
7912
8087
|
Event()
|
|
7913
8088
|
], TreeGrid.prototype, "actionComplete", void 0);
|
|
7914
|
-
__decorate([
|
|
8089
|
+
__decorate$b([
|
|
7915
8090
|
Event()
|
|
7916
8091
|
], TreeGrid.prototype, "beginEdit", void 0);
|
|
7917
|
-
__decorate([
|
|
8092
|
+
__decorate$b([
|
|
7918
8093
|
Event()
|
|
7919
8094
|
], TreeGrid.prototype, "batchAdd", void 0);
|
|
7920
|
-
__decorate([
|
|
8095
|
+
__decorate$b([
|
|
7921
8096
|
Event()
|
|
7922
8097
|
], TreeGrid.prototype, "batchDelete", void 0);
|
|
7923
|
-
__decorate([
|
|
8098
|
+
__decorate$b([
|
|
7924
8099
|
Event()
|
|
7925
8100
|
], TreeGrid.prototype, "batchCancel", void 0);
|
|
7926
|
-
__decorate([
|
|
8101
|
+
__decorate$b([
|
|
7927
8102
|
Event()
|
|
7928
8103
|
], TreeGrid.prototype, "beforeBatchAdd", void 0);
|
|
7929
|
-
__decorate([
|
|
8104
|
+
__decorate$b([
|
|
7930
8105
|
Event()
|
|
7931
8106
|
], TreeGrid.prototype, "beforeBatchDelete", void 0);
|
|
7932
|
-
__decorate([
|
|
8107
|
+
__decorate$b([
|
|
7933
8108
|
Event()
|
|
7934
8109
|
], TreeGrid.prototype, "beforeBatchSave", void 0);
|
|
7935
|
-
__decorate([
|
|
8110
|
+
__decorate$b([
|
|
7936
8111
|
Event()
|
|
7937
8112
|
], TreeGrid.prototype, "cellEdit", void 0);
|
|
7938
|
-
__decorate([
|
|
8113
|
+
__decorate$b([
|
|
7939
8114
|
Event()
|
|
7940
8115
|
], TreeGrid.prototype, "actionFailure", void 0);
|
|
7941
|
-
__decorate([
|
|
8116
|
+
__decorate$b([
|
|
7942
8117
|
Event()
|
|
7943
8118
|
], TreeGrid.prototype, "dataBound", void 0);
|
|
7944
|
-
__decorate([
|
|
8119
|
+
__decorate$b([
|
|
7945
8120
|
Event()
|
|
7946
8121
|
], TreeGrid.prototype, "dataSourceChanged", void 0);
|
|
7947
|
-
__decorate([
|
|
8122
|
+
__decorate$b([
|
|
7948
8123
|
Event()
|
|
7949
8124
|
], TreeGrid.prototype, "dataStateChange", void 0);
|
|
7950
|
-
__decorate([
|
|
8125
|
+
__decorate$b([
|
|
7951
8126
|
Event()
|
|
7952
8127
|
], TreeGrid.prototype, "recordDoubleClick", void 0);
|
|
7953
|
-
__decorate([
|
|
8128
|
+
__decorate$b([
|
|
7954
8129
|
Event()
|
|
7955
8130
|
], TreeGrid.prototype, "rowDataBound", void 0);
|
|
7956
|
-
__decorate([
|
|
8131
|
+
__decorate$b([
|
|
7957
8132
|
Event()
|
|
7958
8133
|
], TreeGrid.prototype, "detailDataBound", void 0);
|
|
7959
|
-
__decorate([
|
|
8134
|
+
__decorate$b([
|
|
7960
8135
|
Event()
|
|
7961
8136
|
], TreeGrid.prototype, "queryCellInfo", void 0);
|
|
7962
|
-
__decorate([
|
|
8137
|
+
__decorate$b([
|
|
7963
8138
|
Property(true)
|
|
7964
8139
|
], TreeGrid.prototype, "allowSelection", void 0);
|
|
7965
|
-
__decorate([
|
|
8140
|
+
__decorate$b([
|
|
7966
8141
|
Event()
|
|
7967
8142
|
], TreeGrid.prototype, "rowSelecting", void 0);
|
|
7968
|
-
__decorate([
|
|
8143
|
+
__decorate$b([
|
|
7969
8144
|
Event()
|
|
7970
8145
|
], TreeGrid.prototype, "rowSelected", void 0);
|
|
7971
|
-
__decorate([
|
|
8146
|
+
__decorate$b([
|
|
7972
8147
|
Event()
|
|
7973
8148
|
], TreeGrid.prototype, "rowDeselecting", void 0);
|
|
7974
|
-
__decorate([
|
|
8149
|
+
__decorate$b([
|
|
7975
8150
|
Event()
|
|
7976
8151
|
], TreeGrid.prototype, "rowDeselected", void 0);
|
|
7977
|
-
__decorate([
|
|
8152
|
+
__decorate$b([
|
|
7978
8153
|
Event()
|
|
7979
8154
|
], TreeGrid.prototype, "headerCellInfo", void 0);
|
|
7980
|
-
__decorate([
|
|
8155
|
+
__decorate$b([
|
|
7981
8156
|
Event()
|
|
7982
8157
|
], TreeGrid.prototype, "cellSelecting", void 0);
|
|
7983
|
-
__decorate([
|
|
8158
|
+
__decorate$b([
|
|
7984
8159
|
Event()
|
|
7985
8160
|
], TreeGrid.prototype, "columnMenuOpen", void 0);
|
|
7986
|
-
__decorate([
|
|
8161
|
+
__decorate$b([
|
|
7987
8162
|
Event()
|
|
7988
8163
|
], TreeGrid.prototype, "columnMenuClick", void 0);
|
|
7989
|
-
__decorate([
|
|
8164
|
+
__decorate$b([
|
|
7990
8165
|
Event()
|
|
7991
8166
|
], TreeGrid.prototype, "cellSelected", void 0);
|
|
7992
|
-
__decorate([
|
|
8167
|
+
__decorate$b([
|
|
7993
8168
|
Event()
|
|
7994
8169
|
], TreeGrid.prototype, "cellDeselecting", void 0);
|
|
7995
|
-
__decorate([
|
|
8170
|
+
__decorate$b([
|
|
7996
8171
|
Event()
|
|
7997
8172
|
], TreeGrid.prototype, "cellDeselected", void 0);
|
|
7998
|
-
__decorate([
|
|
8173
|
+
__decorate$b([
|
|
7999
8174
|
Event()
|
|
8000
8175
|
], TreeGrid.prototype, "resizeStart", void 0);
|
|
8001
|
-
__decorate([
|
|
8176
|
+
__decorate$b([
|
|
8002
8177
|
Event()
|
|
8003
8178
|
], TreeGrid.prototype, "resizing", void 0);
|
|
8004
|
-
__decorate([
|
|
8179
|
+
__decorate$b([
|
|
8005
8180
|
Event()
|
|
8006
8181
|
], TreeGrid.prototype, "resizeStop", void 0);
|
|
8007
|
-
__decorate([
|
|
8182
|
+
__decorate$b([
|
|
8008
8183
|
Event()
|
|
8009
8184
|
], TreeGrid.prototype, "columnDragStart", void 0);
|
|
8010
|
-
__decorate([
|
|
8185
|
+
__decorate$b([
|
|
8011
8186
|
Event()
|
|
8012
8187
|
], TreeGrid.prototype, "columnDrag", void 0);
|
|
8013
|
-
__decorate([
|
|
8188
|
+
__decorate$b([
|
|
8014
8189
|
Event()
|
|
8015
8190
|
], TreeGrid.prototype, "columnDrop", void 0);
|
|
8016
|
-
__decorate([
|
|
8191
|
+
__decorate$b([
|
|
8017
8192
|
Event()
|
|
8018
8193
|
], TreeGrid.prototype, "checkboxChange", void 0);
|
|
8019
|
-
__decorate([
|
|
8194
|
+
__decorate$b([
|
|
8020
8195
|
Event()
|
|
8021
8196
|
], TreeGrid.prototype, "printComplete", void 0);
|
|
8022
|
-
__decorate([
|
|
8197
|
+
__decorate$b([
|
|
8023
8198
|
Event()
|
|
8024
8199
|
], TreeGrid.prototype, "beforePrint", void 0);
|
|
8025
|
-
__decorate([
|
|
8200
|
+
__decorate$b([
|
|
8026
8201
|
Event()
|
|
8027
8202
|
], TreeGrid.prototype, "toolbarClick", void 0);
|
|
8028
|
-
__decorate([
|
|
8203
|
+
__decorate$b([
|
|
8029
8204
|
Event()
|
|
8030
8205
|
], TreeGrid.prototype, "beforeDataBound", void 0);
|
|
8031
|
-
__decorate([
|
|
8206
|
+
__decorate$b([
|
|
8032
8207
|
Event()
|
|
8033
8208
|
], TreeGrid.prototype, "contextMenuOpen", void 0);
|
|
8034
|
-
__decorate([
|
|
8209
|
+
__decorate$b([
|
|
8035
8210
|
Event()
|
|
8036
8211
|
], TreeGrid.prototype, "contextMenuClick", void 0);
|
|
8037
|
-
__decorate([
|
|
8212
|
+
__decorate$b([
|
|
8038
8213
|
Event()
|
|
8039
8214
|
], TreeGrid.prototype, "beforeCopy", void 0);
|
|
8040
|
-
__decorate([
|
|
8215
|
+
__decorate$b([
|
|
8041
8216
|
Event()
|
|
8042
8217
|
], TreeGrid.prototype, "beforePaste", void 0);
|
|
8043
|
-
__decorate([
|
|
8218
|
+
__decorate$b([
|
|
8044
8219
|
Event()
|
|
8045
8220
|
], TreeGrid.prototype, "rowDrag", void 0);
|
|
8046
|
-
__decorate([
|
|
8221
|
+
__decorate$b([
|
|
8047
8222
|
Event()
|
|
8048
8223
|
], TreeGrid.prototype, "rowDragStart", void 0);
|
|
8049
|
-
__decorate([
|
|
8224
|
+
__decorate$b([
|
|
8050
8225
|
Event()
|
|
8051
8226
|
], TreeGrid.prototype, "rowDragStartHelper", void 0);
|
|
8052
|
-
__decorate([
|
|
8227
|
+
__decorate$b([
|
|
8053
8228
|
Event()
|
|
8054
8229
|
], TreeGrid.prototype, "rowDrop", void 0);
|
|
8055
|
-
__decorate([
|
|
8230
|
+
__decorate$b([
|
|
8056
8231
|
Property(-1)
|
|
8057
8232
|
], TreeGrid.prototype, "selectedRowIndex", void 0);
|
|
8058
|
-
__decorate([
|
|
8233
|
+
__decorate$b([
|
|
8059
8234
|
Complex({}, SelectionSettings)
|
|
8060
8235
|
], TreeGrid.prototype, "selectionSettings", void 0);
|
|
8061
|
-
__decorate([
|
|
8236
|
+
__decorate$b([
|
|
8062
8237
|
Property(false)
|
|
8063
8238
|
], TreeGrid.prototype, "allowExcelExport", void 0);
|
|
8064
|
-
__decorate([
|
|
8239
|
+
__decorate$b([
|
|
8065
8240
|
Property(false)
|
|
8066
8241
|
], TreeGrid.prototype, "allowPdfExport", void 0);
|
|
8067
|
-
__decorate([
|
|
8242
|
+
__decorate$b([
|
|
8068
8243
|
Event()
|
|
8069
8244
|
], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
|
|
8070
|
-
__decorate([
|
|
8245
|
+
__decorate$b([
|
|
8071
8246
|
Event()
|
|
8072
8247
|
], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
|
|
8073
|
-
__decorate([
|
|
8248
|
+
__decorate$b([
|
|
8074
8249
|
Event()
|
|
8075
8250
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
8076
|
-
__decorate([
|
|
8251
|
+
__decorate$b([
|
|
8077
8252
|
Event()
|
|
8078
8253
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
8079
|
-
__decorate([
|
|
8254
|
+
__decorate$b([
|
|
8080
8255
|
Event()
|
|
8081
8256
|
], TreeGrid.prototype, "beforeExcelExport", void 0);
|
|
8082
|
-
__decorate([
|
|
8257
|
+
__decorate$b([
|
|
8083
8258
|
Event()
|
|
8084
8259
|
], TreeGrid.prototype, "excelExportComplete", void 0);
|
|
8085
|
-
__decorate([
|
|
8260
|
+
__decorate$b([
|
|
8086
8261
|
Event()
|
|
8087
8262
|
], TreeGrid.prototype, "beforePdfExport", void 0);
|
|
8088
|
-
__decorate([
|
|
8263
|
+
__decorate$b([
|
|
8089
8264
|
Event()
|
|
8090
8265
|
], TreeGrid.prototype, "pdfExportComplete", void 0);
|
|
8091
|
-
TreeGrid = TreeGrid_1 = __decorate([
|
|
8266
|
+
TreeGrid = TreeGrid_1 = __decorate$b([
|
|
8092
8267
|
NotifyPropertyChanges
|
|
8093
8268
|
], TreeGrid);
|
|
8094
8269
|
return TreeGrid;
|
|
@@ -8099,14 +8274,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8099
8274
|
*
|
|
8100
8275
|
* @hidden
|
|
8101
8276
|
*/
|
|
8102
|
-
var Reorder
|
|
8277
|
+
var Reorder = /** @__PURE__ @class */ (function () {
|
|
8103
8278
|
/**
|
|
8104
8279
|
* Constructor for Reorder module
|
|
8105
8280
|
*
|
|
8106
8281
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
8107
8282
|
*/
|
|
8108
|
-
function Reorder
|
|
8109
|
-
Grid.Inject(Reorder);
|
|
8283
|
+
function Reorder(parent) {
|
|
8284
|
+
Grid.Inject(Reorder$1);
|
|
8110
8285
|
this.parent = parent;
|
|
8111
8286
|
this.addEventListener();
|
|
8112
8287
|
}
|
|
@@ -8116,17 +8291,17 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
|
|
|
8116
8291
|
* @private
|
|
8117
8292
|
* @returns {string} Returns Reorder module name
|
|
8118
8293
|
*/
|
|
8119
|
-
Reorder
|
|
8294
|
+
Reorder.prototype.getModuleName = function () {
|
|
8120
8295
|
return 'reorder';
|
|
8121
8296
|
};
|
|
8122
8297
|
/**
|
|
8123
8298
|
* @hidden
|
|
8124
8299
|
* @returns {void}
|
|
8125
8300
|
*/
|
|
8126
|
-
Reorder
|
|
8301
|
+
Reorder.prototype.addEventListener = function () {
|
|
8127
8302
|
this.parent.on('getColumnIndex', this.getTreeColumn, this);
|
|
8128
8303
|
};
|
|
8129
|
-
Reorder
|
|
8304
|
+
Reorder.prototype.removeEventListener = function () {
|
|
8130
8305
|
if (this.parent.isDestroyed) {
|
|
8131
8306
|
return;
|
|
8132
8307
|
}
|
|
@@ -8138,10 +8313,10 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
|
|
|
8138
8313
|
* @returns {void}
|
|
8139
8314
|
* @hidden
|
|
8140
8315
|
*/
|
|
8141
|
-
Reorder
|
|
8316
|
+
Reorder.prototype.destroy = function () {
|
|
8142
8317
|
this.removeEventListener();
|
|
8143
8318
|
};
|
|
8144
|
-
Reorder
|
|
8319
|
+
Reorder.prototype.getTreeColumn = function () {
|
|
8145
8320
|
var columnModel = 'columnModel';
|
|
8146
8321
|
var treeColumn = this.parent["" + columnModel][this.parent.treeColumnIndex];
|
|
8147
8322
|
var treeIndex;
|
|
@@ -8156,7 +8331,7 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
|
|
|
8156
8331
|
}
|
|
8157
8332
|
this.parent.setProperties({ treeColumnIndex: treeIndex }, true);
|
|
8158
8333
|
};
|
|
8159
|
-
return Reorder
|
|
8334
|
+
return Reorder;
|
|
8160
8335
|
}());
|
|
8161
8336
|
|
|
8162
8337
|
/**
|
|
@@ -8164,14 +8339,14 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
|
|
|
8164
8339
|
*
|
|
8165
8340
|
* @hidden
|
|
8166
8341
|
*/
|
|
8167
|
-
var Resize
|
|
8342
|
+
var Resize = /** @__PURE__ @class */ (function () {
|
|
8168
8343
|
/**
|
|
8169
8344
|
* Constructor for Resize module
|
|
8170
8345
|
*
|
|
8171
8346
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
8172
8347
|
*/
|
|
8173
|
-
function Resize
|
|
8174
|
-
Grid.Inject(Resize);
|
|
8348
|
+
function Resize(parent) {
|
|
8349
|
+
Grid.Inject(Resize$1);
|
|
8175
8350
|
this.parent = parent;
|
|
8176
8351
|
}
|
|
8177
8352
|
/**
|
|
@@ -8180,7 +8355,7 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
|
|
|
8180
8355
|
* @param {string|string[]} fName - Defines the field name.
|
|
8181
8356
|
* @returns {void}
|
|
8182
8357
|
*/
|
|
8183
|
-
Resize
|
|
8358
|
+
Resize.prototype.autoFitColumns = function (fName) {
|
|
8184
8359
|
this.parent.grid.autoFitColumns(fName);
|
|
8185
8360
|
};
|
|
8186
8361
|
/**
|
|
@@ -8189,7 +8364,7 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
|
|
|
8189
8364
|
* @private
|
|
8190
8365
|
* @returns {string} Returns Resize module name
|
|
8191
8366
|
*/
|
|
8192
|
-
Resize
|
|
8367
|
+
Resize.prototype.getModuleName = function () {
|
|
8193
8368
|
return 'resize';
|
|
8194
8369
|
};
|
|
8195
8370
|
/**
|
|
@@ -8198,13 +8373,13 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
|
|
|
8198
8373
|
* @function destroy
|
|
8199
8374
|
* @returns {void}
|
|
8200
8375
|
*/
|
|
8201
|
-
Resize
|
|
8376
|
+
Resize.prototype.destroy = function () {
|
|
8202
8377
|
if (this.parent.isDestroyed) {
|
|
8203
8378
|
return;
|
|
8204
8379
|
}
|
|
8205
8380
|
this.parent.grid.resizeModule.destroy();
|
|
8206
8381
|
};
|
|
8207
|
-
return Resize
|
|
8382
|
+
return Resize;
|
|
8208
8383
|
}());
|
|
8209
8384
|
|
|
8210
8385
|
/**
|
|
@@ -8212,13 +8387,13 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
|
|
|
8212
8387
|
*
|
|
8213
8388
|
* @hidden
|
|
8214
8389
|
*/
|
|
8215
|
-
var RowDD
|
|
8390
|
+
var RowDD = /** @__PURE__ @class */ (function () {
|
|
8216
8391
|
/**
|
|
8217
8392
|
* Constructor for render module
|
|
8218
8393
|
*
|
|
8219
8394
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
8220
8395
|
*/
|
|
8221
|
-
function RowDD
|
|
8396
|
+
function RowDD(parent) {
|
|
8222
8397
|
/** @hidden */
|
|
8223
8398
|
this.canDrop = true;
|
|
8224
8399
|
/** @hidden */
|
|
@@ -8233,11 +8408,11 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8233
8408
|
this.hasDropItem = true;
|
|
8234
8409
|
/** @hidden */
|
|
8235
8410
|
this.isaddtoBottom = false;
|
|
8236
|
-
Grid.Inject(RowDD);
|
|
8411
|
+
Grid.Inject(RowDD$1);
|
|
8237
8412
|
this.parent = parent;
|
|
8238
8413
|
this.addEventListener();
|
|
8239
8414
|
}
|
|
8240
|
-
RowDD
|
|
8415
|
+
RowDD.prototype.getChildrecordsByParentID = function (id) {
|
|
8241
8416
|
var treeGridDataSource;
|
|
8242
8417
|
if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
|
|
8243
8418
|
treeGridDataSource = this.parent.grid.dataSource.dataSource.json;
|
|
@@ -8254,7 +8429,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8254
8429
|
* @hidden
|
|
8255
8430
|
* @returns {void}
|
|
8256
8431
|
*/
|
|
8257
|
-
RowDD
|
|
8432
|
+
RowDD.prototype.addEventListener = function () {
|
|
8258
8433
|
this.parent.on(rowdraging, this.Rowdraging, this);
|
|
8259
8434
|
this.parent.on(rowDropped, this.rowDropped, this);
|
|
8260
8435
|
this.parent.on(rowsAdd, this.rowsAdded, this);
|
|
@@ -8268,7 +8443,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8268
8443
|
* @param {number} toIndex - Destination row index
|
|
8269
8444
|
* @param {string} position - Drop position as above or below or child
|
|
8270
8445
|
*/
|
|
8271
|
-
RowDD
|
|
8446
|
+
RowDD.prototype.reorderRows = function (fromIndexes, toIndex, position) {
|
|
8272
8447
|
var tObj = this.parent;
|
|
8273
8448
|
var action = 'action';
|
|
8274
8449
|
var dropPosition = 'dropPosition';
|
|
@@ -8349,7 +8524,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8349
8524
|
return;
|
|
8350
8525
|
}
|
|
8351
8526
|
};
|
|
8352
|
-
RowDD
|
|
8527
|
+
RowDD.prototype.indentOutdentAction = function (record, request) {
|
|
8353
8528
|
var tObj = this.parent;
|
|
8354
8529
|
var action = 'action';
|
|
8355
8530
|
var droppedIndex = 'dropIndex';
|
|
@@ -8423,7 +8598,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8423
8598
|
}
|
|
8424
8599
|
}
|
|
8425
8600
|
};
|
|
8426
|
-
RowDD
|
|
8601
|
+
RowDD.prototype.eventTrigger = function (action, dropIndex) {
|
|
8427
8602
|
var _this = this;
|
|
8428
8603
|
var actionArgs = {
|
|
8429
8604
|
action: action,
|
|
@@ -8452,7 +8627,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8452
8627
|
}
|
|
8453
8628
|
});
|
|
8454
8629
|
};
|
|
8455
|
-
RowDD
|
|
8630
|
+
RowDD.prototype.orderToIndex = function (currentData) {
|
|
8456
8631
|
for (var i = 0; i < currentData.length; i++) {
|
|
8457
8632
|
currentData[parseInt(i.toString(), 10)].index = i;
|
|
8458
8633
|
if (!isNullOrUndefined(currentData[parseInt(i.toString(), 10)].parentItem)) {
|
|
@@ -8462,7 +8637,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8462
8637
|
}
|
|
8463
8638
|
return currentData;
|
|
8464
8639
|
};
|
|
8465
|
-
RowDD
|
|
8640
|
+
RowDD.prototype.rowsAdded = function (e) {
|
|
8466
8641
|
var draggedRecord;
|
|
8467
8642
|
var dragRecords = e.records;
|
|
8468
8643
|
for (var i = e.records.length - 1; i > -1; i--) {
|
|
@@ -8505,15 +8680,17 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8505
8680
|
!Object.prototype.hasOwnProperty.call(draggedRecord_1.taskData, tObj.childMapping)) {
|
|
8506
8681
|
draggedRecord_1.taskData[tObj.childMapping] = [];
|
|
8507
8682
|
}
|
|
8508
|
-
if (
|
|
8509
|
-
(draggedRecord_1
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
dragRecords_1.
|
|
8515
|
-
|
|
8516
|
-
|
|
8683
|
+
if (!isNullOrUndefined(draggedRecord_1[tObj.childMapping])) {
|
|
8684
|
+
if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
|
|
8685
|
+
(draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
|
|
8686
|
+
!isNullOrUndefined(tObj.parentIdMapping)) {
|
|
8687
|
+
var childData = (draggedRecord_1[tObj.childMapping]);
|
|
8688
|
+
for (var j = 0; j < childData.length; j++) {
|
|
8689
|
+
if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
|
|
8690
|
+
dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
|
|
8691
|
+
childData[parseInt(j.toString(), 10)].taskData = extend$1({}, childData[parseInt(j.toString(), 10)]);
|
|
8692
|
+
i += 1;
|
|
8693
|
+
}
|
|
8517
8694
|
}
|
|
8518
8695
|
}
|
|
8519
8696
|
}
|
|
@@ -8564,7 +8741,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8564
8741
|
this.dropRows(args);
|
|
8565
8742
|
}
|
|
8566
8743
|
};
|
|
8567
|
-
RowDD
|
|
8744
|
+
RowDD.prototype.rowsRemoved = function (e) {
|
|
8568
8745
|
for (var i = 0; i < e.records.length; i++) {
|
|
8569
8746
|
this.draggedRecord = e.records[parseInt(i.toString(), 10)];
|
|
8570
8747
|
if (this.draggedRecord.hasChildRecords || this.draggedRecord.parentItem &&
|
|
@@ -8575,7 +8752,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8575
8752
|
}
|
|
8576
8753
|
}
|
|
8577
8754
|
};
|
|
8578
|
-
RowDD
|
|
8755
|
+
RowDD.prototype.refreshGridDataSource = function () {
|
|
8579
8756
|
var draggedRecord = this.draggedRecord;
|
|
8580
8757
|
var droppedRecord = this.droppedRecord;
|
|
8581
8758
|
var proxy = this.parent;
|
|
@@ -8587,8 +8764,8 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8587
8764
|
else {
|
|
8588
8765
|
tempDataSource = proxy.dataSource;
|
|
8589
8766
|
}
|
|
8590
|
-
|
|
8591
|
-
|
|
8767
|
+
if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
|
|
8768
|
+
&& !isNullOrUndefined(droppedRecord.taskData)) {
|
|
8592
8769
|
var keys = Object.keys(tempDataSource);
|
|
8593
8770
|
for (var i = 0; i < keys.length; i++) {
|
|
8594
8771
|
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
|
|
@@ -8634,14 +8811,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8634
8811
|
}
|
|
8635
8812
|
}
|
|
8636
8813
|
};
|
|
8637
|
-
RowDD
|
|
8814
|
+
RowDD.prototype.removeFirstrowBorder = function (element) {
|
|
8638
8815
|
var canremove = this.dropPosition === 'bottomSegment';
|
|
8639
8816
|
if (this.parent.element.getElementsByClassName('e-firstrow-border').length > 0 && element &&
|
|
8640
8817
|
(element.rowIndex !== 0 || canremove)) {
|
|
8641
8818
|
this.parent.element.getElementsByClassName('e-firstrow-border')[0].remove();
|
|
8642
8819
|
}
|
|
8643
8820
|
};
|
|
8644
|
-
RowDD
|
|
8821
|
+
RowDD.prototype.removeLastrowBorder = function (element) {
|
|
8645
8822
|
var isEmptyRow = element && (element.classList.contains('e-emptyrow') || element.classList.contains('e-columnheader')
|
|
8646
8823
|
|| element.classList.contains('e-detailrow'));
|
|
8647
8824
|
var islastRowIndex;
|
|
@@ -8660,7 +8837,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8660
8837
|
this.parent.element.getElementsByClassName('e-lastrow-border')[0].remove();
|
|
8661
8838
|
}
|
|
8662
8839
|
};
|
|
8663
|
-
RowDD
|
|
8840
|
+
RowDD.prototype.updateIcon = function (row, index, args) {
|
|
8664
8841
|
var rowEle = args.target ? closest(args.target, 'tr') : null;
|
|
8665
8842
|
this.dropPosition = undefined;
|
|
8666
8843
|
var rowPositionHeight = 0;
|
|
@@ -8745,14 +8922,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8745
8922
|
}
|
|
8746
8923
|
return this.dropPosition;
|
|
8747
8924
|
};
|
|
8748
|
-
RowDD
|
|
8925
|
+
RowDD.prototype.removeChildBorder = function () {
|
|
8749
8926
|
var borderElem = [];
|
|
8750
8927
|
borderElem = [].slice.call(this.parent.element.querySelectorAll('.e-childborder'));
|
|
8751
8928
|
if (borderElem.length > 0) {
|
|
8752
8929
|
this.addRemoveClasses(borderElem, false, 'e-childborder');
|
|
8753
8930
|
}
|
|
8754
8931
|
};
|
|
8755
|
-
RowDD
|
|
8932
|
+
RowDD.prototype.addFirstrowBorder = function (targetRow) {
|
|
8756
8933
|
var node = this.parent.element;
|
|
8757
8934
|
var tObj = this.parent;
|
|
8758
8935
|
if (targetRow && targetRow.rowIndex === 0 && !targetRow.classList.contains('e-emptyrow')) {
|
|
@@ -8774,7 +8951,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8774
8951
|
}
|
|
8775
8952
|
}
|
|
8776
8953
|
};
|
|
8777
|
-
RowDD
|
|
8954
|
+
RowDD.prototype.addLastRowborder = function (trElement) {
|
|
8778
8955
|
var isEmptyRow = trElement && (trElement.classList.contains('e-emptyrow') ||
|
|
8779
8956
|
trElement.classList.contains('e-columnheader') || trElement.classList.contains('e-detailrow'));
|
|
8780
8957
|
if (trElement && !isEmptyRow && this.parent.getRows()[this.parent.getCurrentViewRecords().length - 1].getAttribute('data-uid') ===
|
|
@@ -8789,11 +8966,11 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8789
8966
|
}
|
|
8790
8967
|
}
|
|
8791
8968
|
};
|
|
8792
|
-
RowDD
|
|
8969
|
+
RowDD.prototype.getScrollWidth = function () {
|
|
8793
8970
|
var scrollElem = this.parent.getContent().firstElementChild;
|
|
8794
8971
|
return scrollElem.scrollWidth > scrollElem.offsetWidth ? Scroll.getScrollBarWidth() : 0;
|
|
8795
8972
|
};
|
|
8796
|
-
RowDD
|
|
8973
|
+
RowDD.prototype.addErrorElem = function () {
|
|
8797
8974
|
var dragelem = document.getElementsByClassName('e-cloneproperties')[0];
|
|
8798
8975
|
var errorelem = dragelem.querySelectorAll('.e-errorelem').length;
|
|
8799
8976
|
var sanitize = 'sanitize';
|
|
@@ -8802,16 +8979,16 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8802
8979
|
classList(ele, ['e-errorcontainer'], []);
|
|
8803
8980
|
classList(ele, ['e-icons', 'e-errorelem'], []);
|
|
8804
8981
|
var errorVal = dragelem.querySelector('.errorValue');
|
|
8805
|
-
var content
|
|
8982
|
+
var content = dragelem.querySelector('.e-rowcell').innerHTML;
|
|
8806
8983
|
if (errorVal) {
|
|
8807
|
-
content
|
|
8984
|
+
content = this.parent["" + sanitize](errorVal.innerHTML);
|
|
8808
8985
|
errorVal.parentNode.removeChild(errorVal);
|
|
8809
8986
|
}
|
|
8810
8987
|
dragelem.querySelector('.e-rowcell').innerHTML = '';
|
|
8811
8988
|
var spanContent = document.createElement('span');
|
|
8812
8989
|
spanContent.className = 'errorValue';
|
|
8813
8990
|
spanContent.style.paddingLeft = '16px';
|
|
8814
|
-
spanContent.innerHTML = this.parent["" + sanitize](content
|
|
8991
|
+
spanContent.innerHTML = this.parent["" + sanitize](content);
|
|
8815
8992
|
dragelem.querySelector('.e-rowcell').appendChild(ele);
|
|
8816
8993
|
dragelem.querySelector('.e-rowcell').appendChild(spanContent);
|
|
8817
8994
|
var dropItemSpan = document.querySelector('.e-dropitemscount');
|
|
@@ -8823,7 +9000,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8823
9000
|
}
|
|
8824
9001
|
}
|
|
8825
9002
|
};
|
|
8826
|
-
RowDD
|
|
9003
|
+
RowDD.prototype.removeErrorElem = function () {
|
|
8827
9004
|
var errorelem = document.querySelector('.e-errorelem');
|
|
8828
9005
|
var errorValue = document.querySelector('.errorValue');
|
|
8829
9006
|
var dropItemSpan = document.querySelector('.e-dropitemscount');
|
|
@@ -8843,7 +9020,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8843
9020
|
}
|
|
8844
9021
|
this.hasDropItem = true;
|
|
8845
9022
|
};
|
|
8846
|
-
RowDD
|
|
9023
|
+
RowDD.prototype.topOrBottomBorder = function (target) {
|
|
8847
9024
|
var rowElement = [];
|
|
8848
9025
|
var element = closest(target, 'tr');
|
|
8849
9026
|
rowElement = element ? [].slice.call(element.querySelectorAll('.e-rowcell,.e-rowdragdrop,.e-detailrowcollapse')) : [];
|
|
@@ -8859,7 +9036,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8859
9036
|
}
|
|
8860
9037
|
}
|
|
8861
9038
|
};
|
|
8862
|
-
RowDD
|
|
9039
|
+
RowDD.prototype.removetopOrBottomBorder = function () {
|
|
8863
9040
|
var border = [];
|
|
8864
9041
|
border = [].slice.call(this.parent.element.querySelectorAll('.e-dropbottom, .e-droptop'));
|
|
8865
9042
|
if (border.length) {
|
|
@@ -8867,7 +9044,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8867
9044
|
this.addRemoveClasses(border, false, 'e-droptop');
|
|
8868
9045
|
}
|
|
8869
9046
|
};
|
|
8870
|
-
RowDD
|
|
9047
|
+
RowDD.prototype.addRemoveClasses = function (cells, add, className) {
|
|
8871
9048
|
for (var i = 0, len = cells.length; i < len; i++) {
|
|
8872
9049
|
if (add) {
|
|
8873
9050
|
cells[parseInt(i.toString(), 10)].classList.add(className);
|
|
@@ -8877,7 +9054,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8877
9054
|
}
|
|
8878
9055
|
}
|
|
8879
9056
|
};
|
|
8880
|
-
RowDD
|
|
9057
|
+
RowDD.prototype.getOffset = function (element) {
|
|
8881
9058
|
var box = element.getBoundingClientRect();
|
|
8882
9059
|
var body = document.body;
|
|
8883
9060
|
var docElem = document.documentElement;
|
|
@@ -8889,7 +9066,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8889
9066
|
var left = box.left + scrollLeft - clientLeft;
|
|
8890
9067
|
return { top: Math.round(top), left: Math.round(left) };
|
|
8891
9068
|
};
|
|
8892
|
-
RowDD
|
|
9069
|
+
RowDD.prototype.Rowdraging = function (args) {
|
|
8893
9070
|
var tObj = this.parent;
|
|
8894
9071
|
var cloneElement = this.parent.element.querySelector('.e-cloneproperties');
|
|
8895
9072
|
cloneElement.style.cursor = '';
|
|
@@ -8932,7 +9109,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8932
9109
|
}
|
|
8933
9110
|
}
|
|
8934
9111
|
};
|
|
8935
|
-
RowDD
|
|
9112
|
+
RowDD.prototype.rowDropped = function (args) {
|
|
8936
9113
|
var tObj = this.parent;
|
|
8937
9114
|
var parentItem = 'parentItem';
|
|
8938
9115
|
if (!tObj.rowDropSettings.targetID) {
|
|
@@ -9018,7 +9195,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9018
9195
|
}
|
|
9019
9196
|
}
|
|
9020
9197
|
};
|
|
9021
|
-
RowDD
|
|
9198
|
+
RowDD.prototype.dragDropGrid = function (args) {
|
|
9022
9199
|
var tObj = this.parent;
|
|
9023
9200
|
var targetRow = closest(args.target, 'tr');
|
|
9024
9201
|
var targetIndex = isNaN(this.getTargetIdx(targetRow)) ? 0 : this.getTargetIdx(targetRow);
|
|
@@ -9078,10 +9255,10 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9078
9255
|
srcControl.grid.refresh();
|
|
9079
9256
|
}
|
|
9080
9257
|
};
|
|
9081
|
-
RowDD
|
|
9258
|
+
RowDD.prototype.getTargetIdx = function (targetRow) {
|
|
9082
9259
|
return targetRow ? parseInt(targetRow.getAttribute('data-rowindex'), 10) : 0;
|
|
9083
9260
|
};
|
|
9084
|
-
RowDD
|
|
9261
|
+
RowDD.prototype.getParentData = function (record, data) {
|
|
9085
9262
|
var parentItem = record.parentItem;
|
|
9086
9263
|
var selectedItemIndex = -1;
|
|
9087
9264
|
if (this.parent.enableVirtualization && this.parent.selectedRowIndex !== -1) {
|
|
@@ -9108,7 +9285,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9108
9285
|
}
|
|
9109
9286
|
}
|
|
9110
9287
|
};
|
|
9111
|
-
RowDD
|
|
9288
|
+
RowDD.prototype.dropRows = function (args, isByMethod) {
|
|
9112
9289
|
if (this.dropPosition !== 'Invalid' && !isRemoteData(this.parent)) {
|
|
9113
9290
|
var tObj = this.parent;
|
|
9114
9291
|
var draggedRecord_2;
|
|
@@ -9245,7 +9422,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9245
9422
|
}
|
|
9246
9423
|
}
|
|
9247
9424
|
};
|
|
9248
|
-
RowDD
|
|
9425
|
+
RowDD.prototype.dropMiddle = function (recordIndex) {
|
|
9249
9426
|
var tObj = this.parent;
|
|
9250
9427
|
var childRecords = findChildrenRecords(this.droppedRecord);
|
|
9251
9428
|
var childRecordsLength = (isNullOrUndefined(childRecords) ||
|
|
@@ -9265,7 +9442,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9265
9442
|
}
|
|
9266
9443
|
}
|
|
9267
9444
|
};
|
|
9268
|
-
RowDD
|
|
9445
|
+
RowDD.prototype.dropAtTop = function (recordIndex1) {
|
|
9269
9446
|
var tObj = this.parent;
|
|
9270
9447
|
if (this.dropPosition === 'topSegment') {
|
|
9271
9448
|
if (tObj.parentIdMapping) {
|
|
@@ -9288,7 +9465,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9288
9465
|
}
|
|
9289
9466
|
}
|
|
9290
9467
|
};
|
|
9291
|
-
RowDD
|
|
9468
|
+
RowDD.prototype.recordLevel = function () {
|
|
9292
9469
|
var tObj = this.parent;
|
|
9293
9470
|
var draggedRecord = this.draggedRecord;
|
|
9294
9471
|
var droppedRecord = this.droppedRecord;
|
|
@@ -9304,7 +9481,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9304
9481
|
}
|
|
9305
9482
|
}
|
|
9306
9483
|
if (this.dropPosition === 'middleSegment') {
|
|
9307
|
-
var parentItem = extend({}, droppedRecord);
|
|
9484
|
+
var parentItem = extend$1({}, droppedRecord);
|
|
9308
9485
|
delete parentItem.childRecords;
|
|
9309
9486
|
draggedRecord.parentItem = parentItem;
|
|
9310
9487
|
draggedRecord.parentUniqueID = droppedRecord.uniqueID;
|
|
@@ -9328,7 +9505,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9328
9505
|
droppedRecord.expanded = true;
|
|
9329
9506
|
}
|
|
9330
9507
|
};
|
|
9331
|
-
RowDD
|
|
9508
|
+
RowDD.prototype.deleteDragRow = function () {
|
|
9332
9509
|
if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
|
|
9333
9510
|
this.treeGridData = this.parent.grid.dataSource.dataSource.json;
|
|
9334
9511
|
this.treeData = this.parent.dataSource.dataSource.json;
|
|
@@ -9343,7 +9520,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9343
9520
|
}
|
|
9344
9521
|
this.removeRecords(deletedRow);
|
|
9345
9522
|
};
|
|
9346
|
-
RowDD
|
|
9523
|
+
RowDD.prototype.updateChildRecord = function (record, count) {
|
|
9347
9524
|
var currentRecord;
|
|
9348
9525
|
var tObj = this.parent;
|
|
9349
9526
|
var length = 0;
|
|
@@ -9370,7 +9547,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9370
9547
|
}
|
|
9371
9548
|
return count;
|
|
9372
9549
|
};
|
|
9373
|
-
RowDD
|
|
9550
|
+
RowDD.prototype.updateChildRecordLevel = function (record, level) {
|
|
9374
9551
|
var length = 0;
|
|
9375
9552
|
var currentRecord;
|
|
9376
9553
|
level++;
|
|
@@ -9400,7 +9577,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9400
9577
|
}
|
|
9401
9578
|
return level;
|
|
9402
9579
|
};
|
|
9403
|
-
RowDD
|
|
9580
|
+
RowDD.prototype.removeRecords = function (record) {
|
|
9404
9581
|
var tObj = this.parent;
|
|
9405
9582
|
var dataSource;
|
|
9406
9583
|
if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
|
|
@@ -9482,14 +9659,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9482
9659
|
}
|
|
9483
9660
|
}
|
|
9484
9661
|
};
|
|
9485
|
-
RowDD
|
|
9662
|
+
RowDD.prototype.updateModifiedRecords = function (record) {
|
|
9486
9663
|
var parentData = getParentData(this.parent, record.parentUniqueID);
|
|
9487
9664
|
if (!isNullOrUndefined(parentData)) {
|
|
9488
9665
|
this.parent[this.modifiedRecords].push(parentData);
|
|
9489
9666
|
this.updateModifiedRecords(parentData);
|
|
9490
9667
|
}
|
|
9491
9668
|
};
|
|
9492
|
-
RowDD
|
|
9669
|
+
RowDD.prototype.removeChildItem = function (record) {
|
|
9493
9670
|
var currentRecord;
|
|
9494
9671
|
var idx;
|
|
9495
9672
|
var idz;
|
|
@@ -9535,7 +9712,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9535
9712
|
}
|
|
9536
9713
|
}
|
|
9537
9714
|
};
|
|
9538
|
-
RowDD
|
|
9715
|
+
RowDD.prototype.getChildCount = function (record, count) {
|
|
9539
9716
|
var currentRecord;
|
|
9540
9717
|
if (!record.hasChildRecords) {
|
|
9541
9718
|
return 0;
|
|
@@ -9549,7 +9726,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9549
9726
|
}
|
|
9550
9727
|
return count;
|
|
9551
9728
|
};
|
|
9552
|
-
RowDD
|
|
9729
|
+
RowDD.prototype.ensuredropPosition = function (draggedRecords, currentRecord) {
|
|
9553
9730
|
var _this = this;
|
|
9554
9731
|
draggedRecords.filter(function (e) {
|
|
9555
9732
|
if (e.hasChildRecords && !isNullOrUndefined(e.childRecords)) {
|
|
@@ -9566,14 +9743,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9566
9743
|
}
|
|
9567
9744
|
});
|
|
9568
9745
|
};
|
|
9569
|
-
RowDD
|
|
9746
|
+
RowDD.prototype.destroy = function () {
|
|
9570
9747
|
this.removeEventListener();
|
|
9571
9748
|
};
|
|
9572
9749
|
/**
|
|
9573
9750
|
* @hidden
|
|
9574
9751
|
* @returns {void}
|
|
9575
9752
|
*/
|
|
9576
|
-
RowDD
|
|
9753
|
+
RowDD.prototype.removeEventListener = function () {
|
|
9577
9754
|
if (this.parent.isDestroyed) {
|
|
9578
9755
|
return;
|
|
9579
9756
|
}
|
|
@@ -9591,17 +9768,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
9591
9768
|
* @private
|
|
9592
9769
|
* @returns {string} Returns RowDragAndDrop module name
|
|
9593
9770
|
*/
|
|
9594
|
-
RowDD
|
|
9771
|
+
RowDD.prototype.getModuleName = function () {
|
|
9595
9772
|
return 'rowDragAndDrop';
|
|
9596
9773
|
};
|
|
9597
|
-
return RowDD
|
|
9774
|
+
return RowDD;
|
|
9598
9775
|
}());
|
|
9599
9776
|
|
|
9600
|
-
|
|
9601
|
-
* Base export
|
|
9602
|
-
*/
|
|
9603
|
-
|
|
9604
|
-
var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
9777
|
+
var __extends$e = (undefined && undefined.__extends) || (function () {
|
|
9605
9778
|
var extendStatics = function (d, b) {
|
|
9606
9779
|
extendStatics = Object.setPrototypeOf ||
|
|
9607
9780
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -9614,7 +9787,7 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
|
9614
9787
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9615
9788
|
};
|
|
9616
9789
|
})();
|
|
9617
|
-
var __decorate$
|
|
9790
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9618
9791
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9619
9792
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9620
9793
|
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;
|
|
@@ -9623,22 +9796,18 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
9623
9796
|
/**
|
|
9624
9797
|
* Configures the row drop settings of the TreeGrid.
|
|
9625
9798
|
*/
|
|
9626
|
-
var RowDropSettings
|
|
9627
|
-
__extends$
|
|
9628
|
-
function RowDropSettings
|
|
9799
|
+
var RowDropSettings = /** @__PURE__ @class */ (function (_super) {
|
|
9800
|
+
__extends$e(RowDropSettings, _super);
|
|
9801
|
+
function RowDropSettings() {
|
|
9629
9802
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9630
9803
|
}
|
|
9631
|
-
__decorate$
|
|
9804
|
+
__decorate$c([
|
|
9632
9805
|
Property()
|
|
9633
|
-
], RowDropSettings
|
|
9634
|
-
return RowDropSettings
|
|
9806
|
+
], RowDropSettings.prototype, "targetID", void 0);
|
|
9807
|
+
return RowDropSettings;
|
|
9635
9808
|
}(ChildProperty));
|
|
9636
9809
|
|
|
9637
|
-
|
|
9638
|
-
* Models export
|
|
9639
|
-
*/
|
|
9640
|
-
|
|
9641
|
-
var __extends$15 = (undefined && undefined.__extends) || (function () {
|
|
9810
|
+
var __extends$f = (undefined && undefined.__extends) || (function () {
|
|
9642
9811
|
var extendStatics = function (d, b) {
|
|
9643
9812
|
extendStatics = Object.setPrototypeOf ||
|
|
9644
9813
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -9657,7 +9826,7 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
|
|
|
9657
9826
|
* @hidden
|
|
9658
9827
|
*/
|
|
9659
9828
|
var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
|
|
9660
|
-
__extends$
|
|
9829
|
+
__extends$f(TreeVirtualRowModelGenerator, _super);
|
|
9661
9830
|
function TreeVirtualRowModelGenerator(parent) {
|
|
9662
9831
|
var _this = _super.call(this, parent) || this;
|
|
9663
9832
|
_this.addEventListener();
|
|
@@ -9705,8 +9874,8 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
|
|
|
9705
9874
|
var rows = _super.prototype.generateRows.call(this, data, notifyArgs);
|
|
9706
9875
|
if (!isNullOrUndefined((this.visualData))) {
|
|
9707
9876
|
for (var r = 0; r < rows.length; r++) {
|
|
9708
|
-
rows[parseInt(r.toString(), 10)].index
|
|
9709
|
-
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9877
|
+
rows[parseInt(r.toString(), 10)].index
|
|
9878
|
+
= (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9710
9879
|
}
|
|
9711
9880
|
}
|
|
9712
9881
|
return rows;
|
|
@@ -9746,23 +9915,19 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
|
|
|
9746
9915
|
return TreeVirtualRowModelGenerator;
|
|
9747
9916
|
}(VirtualRowModelGenerator));
|
|
9748
9917
|
|
|
9749
|
-
/**
|
|
9750
|
-
* Renderer export
|
|
9751
|
-
*/
|
|
9752
|
-
|
|
9753
9918
|
/**
|
|
9754
9919
|
* TreeGrid Filter module will handle filtering action
|
|
9755
9920
|
*
|
|
9756
9921
|
* @hidden
|
|
9757
9922
|
*/
|
|
9758
|
-
var Filter
|
|
9923
|
+
var Filter = /** @__PURE__ @class */ (function () {
|
|
9759
9924
|
/**
|
|
9760
9925
|
* Constructor for Filter module
|
|
9761
9926
|
*
|
|
9762
9927
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9763
9928
|
*/
|
|
9764
|
-
function Filter
|
|
9765
|
-
Grid.Inject(Filter);
|
|
9929
|
+
function Filter(parent) {
|
|
9930
|
+
Grid.Inject(Filter$1);
|
|
9766
9931
|
this.parent = parent;
|
|
9767
9932
|
this.isHierarchyFilter = false;
|
|
9768
9933
|
this.filteredResult = [];
|
|
@@ -9776,7 +9941,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9776
9941
|
* @private
|
|
9777
9942
|
* @returns {string} Returns Filter module name
|
|
9778
9943
|
*/
|
|
9779
|
-
Filter
|
|
9944
|
+
Filter.prototype.getModuleName = function () {
|
|
9780
9945
|
return 'filter';
|
|
9781
9946
|
};
|
|
9782
9947
|
/**
|
|
@@ -9785,14 +9950,14 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9785
9950
|
* @returns {void}
|
|
9786
9951
|
* @hidden
|
|
9787
9952
|
*/
|
|
9788
|
-
Filter
|
|
9953
|
+
Filter.prototype.destroy = function () {
|
|
9789
9954
|
this.removeEventListener();
|
|
9790
9955
|
};
|
|
9791
9956
|
/**
|
|
9792
9957
|
* @hidden
|
|
9793
9958
|
* @returns {void}
|
|
9794
9959
|
*/
|
|
9795
|
-
Filter
|
|
9960
|
+
Filter.prototype.addEventListener = function () {
|
|
9796
9961
|
this.parent.on('updateFilterRecs', this.updatedFilteredRecord, this);
|
|
9797
9962
|
this.parent.on('clearFilters', this.clearFilterLevel, this);
|
|
9798
9963
|
};
|
|
@@ -9800,7 +9965,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9800
9965
|
* @hidden
|
|
9801
9966
|
* @returns {void}
|
|
9802
9967
|
*/
|
|
9803
|
-
Filter
|
|
9968
|
+
Filter.prototype.removeEventListener = function () {
|
|
9804
9969
|
if (this.parent.isDestroyed) {
|
|
9805
9970
|
return;
|
|
9806
9971
|
}
|
|
@@ -9815,7 +9980,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9815
9980
|
* @hidden
|
|
9816
9981
|
* @returns {void}
|
|
9817
9982
|
*/
|
|
9818
|
-
Filter
|
|
9983
|
+
Filter.prototype.updatedFilteredRecord = function (dataDetails) {
|
|
9819
9984
|
setValue('uniqueIDFilterCollection', {}, this.parent);
|
|
9820
9985
|
this.flatFilteredData = dataDetails.data;
|
|
9821
9986
|
this.filteredParentRecs = [];
|
|
@@ -9850,7 +10015,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9850
10015
|
}
|
|
9851
10016
|
this.parent.notify('updateAction', { result: this.filteredResult });
|
|
9852
10017
|
};
|
|
9853
|
-
Filter
|
|
10018
|
+
Filter.prototype.updateParentFilteredRecord = function (record) {
|
|
9854
10019
|
var parRecord = getParentData(this.parent, record.parentItem.uniqueID, true);
|
|
9855
10020
|
var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
|
|
9856
10021
|
if (parRecord && Object.prototype.hasOwnProperty.call(uniqueIDValue, parRecord.uniqueID)) {
|
|
@@ -9860,7 +10025,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9860
10025
|
this.updateParentFilteredRecord(parRecord);
|
|
9861
10026
|
}
|
|
9862
10027
|
};
|
|
9863
|
-
Filter
|
|
10028
|
+
Filter.prototype.addParentRecord = function (record) {
|
|
9864
10029
|
var parent = getParentData(this.parent, record.parentUniqueID);
|
|
9865
10030
|
//let parent: Object = this.parent.flatData.filter((e: ITreeData) => {return e.uniqueID === record.parentUniqueID; })[0];
|
|
9866
10031
|
var hierarchyMode = this.parent.grid.searchSettings.key === '' ? this.parent.filterSettings.hierarchyMode
|
|
@@ -9913,7 +10078,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9913
10078
|
}
|
|
9914
10079
|
}
|
|
9915
10080
|
};
|
|
9916
|
-
Filter
|
|
10081
|
+
Filter.prototype.checkChildExsist = function (records) {
|
|
9917
10082
|
var childRec = getObject('childRecords', records);
|
|
9918
10083
|
var isExist = false;
|
|
9919
10084
|
for (var count = 0; count < childRec.length; count++) {
|
|
@@ -9945,7 +10110,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9945
10110
|
}
|
|
9946
10111
|
return isExist;
|
|
9947
10112
|
};
|
|
9948
|
-
Filter
|
|
10113
|
+
Filter.prototype.updateFilterLevel = function () {
|
|
9949
10114
|
var record = this.filteredResult;
|
|
9950
10115
|
var len = this.filteredResult.length;
|
|
9951
10116
|
for (var c = 0; c < len; c++) {
|
|
@@ -9961,7 +10126,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9961
10126
|
}
|
|
9962
10127
|
}
|
|
9963
10128
|
};
|
|
9964
|
-
Filter
|
|
10129
|
+
Filter.prototype.clearFilterLevel = function (data) {
|
|
9965
10130
|
var count = 0;
|
|
9966
10131
|
var flatData = data.flatData;
|
|
9967
10132
|
var len = flatData.length;
|
|
@@ -9977,7 +10142,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9977
10142
|
this.filteredResult = [];
|
|
9978
10143
|
this.parent.notify('updateResults', { result: flatData, count: flatData.length });
|
|
9979
10144
|
};
|
|
9980
|
-
return Filter
|
|
10145
|
+
return Filter;
|
|
9981
10146
|
}());
|
|
9982
10147
|
|
|
9983
10148
|
/**
|
|
@@ -9985,15 +10150,15 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
|
|
|
9985
10150
|
*
|
|
9986
10151
|
* @hidden
|
|
9987
10152
|
*/
|
|
9988
|
-
var ExcelExport
|
|
10153
|
+
var ExcelExport = /** @__PURE__ @class */ (function () {
|
|
9989
10154
|
/**
|
|
9990
10155
|
* Constructor for Excel Export module
|
|
9991
10156
|
*
|
|
9992
10157
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9993
10158
|
*/
|
|
9994
|
-
function ExcelExport
|
|
10159
|
+
function ExcelExport(parent) {
|
|
9995
10160
|
this.isCollapsedStatePersist = false;
|
|
9996
|
-
Grid.Inject(ExcelExport);
|
|
10161
|
+
Grid.Inject(ExcelExport$1);
|
|
9997
10162
|
this.parent = parent;
|
|
9998
10163
|
this.dataResults = {};
|
|
9999
10164
|
this.addEventListener();
|
|
@@ -10004,14 +10169,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10004
10169
|
* @private
|
|
10005
10170
|
* @returns {string} Returns ExcelExport module name
|
|
10006
10171
|
*/
|
|
10007
|
-
ExcelExport
|
|
10172
|
+
ExcelExport.prototype.getModuleName = function () {
|
|
10008
10173
|
return 'ExcelExport';
|
|
10009
10174
|
};
|
|
10010
10175
|
/**
|
|
10011
10176
|
* @hidden
|
|
10012
10177
|
* @returns {void}
|
|
10013
10178
|
*/
|
|
10014
|
-
ExcelExport
|
|
10179
|
+
ExcelExport.prototype.addEventListener = function () {
|
|
10015
10180
|
this.parent.on('updateResults', this.updateExcelResultModel, this);
|
|
10016
10181
|
this.parent.on('excelCellInfo', this.excelQueryCellInfo, this);
|
|
10017
10182
|
this.parent.grid.on('export-RowDataBound', this.exportRowDataBound, this);
|
|
@@ -10023,14 +10188,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10023
10188
|
* @returns {void}
|
|
10024
10189
|
* @hidden
|
|
10025
10190
|
*/
|
|
10026
|
-
ExcelExport
|
|
10191
|
+
ExcelExport.prototype.destroy = function () {
|
|
10027
10192
|
this.removeEventListener();
|
|
10028
10193
|
};
|
|
10029
10194
|
/**
|
|
10030
10195
|
* @hidden
|
|
10031
10196
|
* @returns {void}
|
|
10032
10197
|
*/
|
|
10033
|
-
ExcelExport
|
|
10198
|
+
ExcelExport.prototype.removeEventListener = function () {
|
|
10034
10199
|
if (this.parent.isDestroyed) {
|
|
10035
10200
|
return;
|
|
10036
10201
|
}
|
|
@@ -10039,10 +10204,10 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10039
10204
|
this.parent.grid.off('export-RowDataBound', this.exportRowDataBound);
|
|
10040
10205
|
this.parent.grid.off('finalPageSetup', this.finalPageSetup);
|
|
10041
10206
|
};
|
|
10042
|
-
ExcelExport
|
|
10207
|
+
ExcelExport.prototype.updateExcelResultModel = function (returnResult) {
|
|
10043
10208
|
this.dataResults = returnResult;
|
|
10044
10209
|
};
|
|
10045
|
-
ExcelExport
|
|
10210
|
+
ExcelExport.prototype.Map = function (excelExportProperties,
|
|
10046
10211
|
/* eslint-disable-next-line */
|
|
10047
10212
|
isMultipleExport, workbook, isBlob, isCsv) {
|
|
10048
10213
|
var _this = this;
|
|
@@ -10053,9 +10218,10 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10053
10218
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
10054
10219
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
10055
10220
|
}
|
|
10056
|
-
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
|
|
10057
|
-
|
|
10058
|
-
|
|
10221
|
+
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)) {
|
|
10222
|
+
if (!excelExportProperties.dataSource['dataSource']) {
|
|
10223
|
+
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
10224
|
+
}
|
|
10059
10225
|
}
|
|
10060
10226
|
return new Promise(function (resolve) {
|
|
10061
10227
|
var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
|
|
@@ -10066,7 +10232,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10066
10232
|
query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
|
|
10067
10233
|
setValue('query', query, property);
|
|
10068
10234
|
}
|
|
10069
|
-
_this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
|
|
10235
|
+
_this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
|
|
10070
10236
|
if (getObject('cancel', property)) {
|
|
10071
10237
|
return null;
|
|
10072
10238
|
}
|
|
@@ -10088,7 +10254,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10088
10254
|
});
|
|
10089
10255
|
});
|
|
10090
10256
|
};
|
|
10091
|
-
ExcelExport
|
|
10257
|
+
ExcelExport.prototype.generateQuery = function (query, property) {
|
|
10092
10258
|
if (!isNullOrUndefined(property) && property.exportType === 'CurrentPage'
|
|
10093
10259
|
&& this.parent.allowPaging) {
|
|
10094
10260
|
property.exportType = 'AllPages';
|
|
@@ -10098,7 +10264,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10098
10264
|
}
|
|
10099
10265
|
return query;
|
|
10100
10266
|
};
|
|
10101
|
-
ExcelExport
|
|
10267
|
+
ExcelExport.prototype.manipulateExportProperties = function (property, dtSrc, queryResult) {
|
|
10102
10268
|
//count not required for this query
|
|
10103
10269
|
var args = Object();
|
|
10104
10270
|
setValue('query', this.parent.grid.getDataModule().generateQuery(true), args);
|
|
@@ -10139,7 +10305,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10139
10305
|
* @hidden
|
|
10140
10306
|
* @returns {void}
|
|
10141
10307
|
*/
|
|
10142
|
-
ExcelExport
|
|
10308
|
+
ExcelExport.prototype.excelQueryCellInfo = function (args) {
|
|
10143
10309
|
if (this.parent.grid.getColumnIndexByUid(args.column.uid) === this.parent.treeColumnIndex) {
|
|
10144
10310
|
var style = {};
|
|
10145
10311
|
var data = args.data;
|
|
@@ -10151,7 +10317,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10151
10317
|
this.parent.notify('updateResults', args);
|
|
10152
10318
|
this.parent.trigger('excelQueryCellInfo', args);
|
|
10153
10319
|
};
|
|
10154
|
-
ExcelExport
|
|
10320
|
+
ExcelExport.prototype.exportRowDataBound = function (excelRow) {
|
|
10155
10321
|
if (excelRow.type === 'excel') {
|
|
10156
10322
|
var excelrowobj = excelRow.rowObj.data;
|
|
10157
10323
|
var filtercolumnlength = this.parent.grid.filterSettings.columns.length;
|
|
@@ -10174,17 +10340,17 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10174
10340
|
}
|
|
10175
10341
|
};
|
|
10176
10342
|
/* eslint-disable-next-line */
|
|
10177
|
-
ExcelExport
|
|
10343
|
+
ExcelExport.prototype.finalPageSetup = function (workbook) {
|
|
10178
10344
|
for (var i = 0; i < workbook.worksheets.length; i++) {
|
|
10179
10345
|
if (workbook.worksheets[parseInt(i.toString(), 10)].rows) {
|
|
10180
10346
|
workbook.worksheets[parseInt(i.toString(), 10)].pageSetup = { isSummaryRowBelow: false };
|
|
10181
10347
|
}
|
|
10182
10348
|
}
|
|
10183
10349
|
};
|
|
10184
|
-
ExcelExport
|
|
10350
|
+
ExcelExport.prototype.isLocal = function () {
|
|
10185
10351
|
return !isRemoteData(this.parent) && isOffline(this.parent);
|
|
10186
10352
|
};
|
|
10187
|
-
return ExcelExport
|
|
10353
|
+
return ExcelExport;
|
|
10188
10354
|
}());
|
|
10189
10355
|
|
|
10190
10356
|
/**
|
|
@@ -10192,14 +10358,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10192
10358
|
*
|
|
10193
10359
|
* @hidden
|
|
10194
10360
|
*/
|
|
10195
|
-
var PdfExport
|
|
10361
|
+
var PdfExport = /** @__PURE__ @class */ (function () {
|
|
10196
10362
|
/**
|
|
10197
10363
|
* Constructor for PDF export module
|
|
10198
10364
|
*
|
|
10199
10365
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10200
10366
|
*/
|
|
10201
|
-
function PdfExport
|
|
10202
|
-
Grid.Inject(PdfExport);
|
|
10367
|
+
function PdfExport(parent) {
|
|
10368
|
+
Grid.Inject(PdfExport$1);
|
|
10203
10369
|
this.parent = parent;
|
|
10204
10370
|
this.dataResults = {};
|
|
10205
10371
|
this.addEventListener();
|
|
@@ -10210,14 +10376,14 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10210
10376
|
* @private
|
|
10211
10377
|
* @returns {string} PdfExport module name
|
|
10212
10378
|
*/
|
|
10213
|
-
PdfExport
|
|
10379
|
+
PdfExport.prototype.getModuleName = function () {
|
|
10214
10380
|
return 'PdfExport';
|
|
10215
10381
|
};
|
|
10216
10382
|
/**
|
|
10217
10383
|
* @hidden
|
|
10218
10384
|
* @returns {void}
|
|
10219
10385
|
*/
|
|
10220
|
-
PdfExport
|
|
10386
|
+
PdfExport.prototype.addEventListener = function () {
|
|
10221
10387
|
this.parent.on('pdfCellInfo', this.pdfQueryCellInfo, this);
|
|
10222
10388
|
this.parent.on('updateResults', this.updatePdfResultModel, this);
|
|
10223
10389
|
};
|
|
@@ -10225,7 +10391,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10225
10391
|
* @hidden
|
|
10226
10392
|
* @returns {void}
|
|
10227
10393
|
*/
|
|
10228
|
-
PdfExport
|
|
10394
|
+
PdfExport.prototype.removeEventListener = function () {
|
|
10229
10395
|
if (this.parent.isDestroyed) {
|
|
10230
10396
|
return;
|
|
10231
10397
|
}
|
|
@@ -10238,13 +10404,13 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10238
10404
|
* @returns {void}
|
|
10239
10405
|
* @hidden
|
|
10240
10406
|
*/
|
|
10241
|
-
PdfExport
|
|
10407
|
+
PdfExport.prototype.destroy = function () {
|
|
10242
10408
|
this.removeEventListener();
|
|
10243
10409
|
};
|
|
10244
|
-
PdfExport
|
|
10410
|
+
PdfExport.prototype.updatePdfResultModel = function (returnResult) {
|
|
10245
10411
|
this.dataResults = returnResult;
|
|
10246
10412
|
};
|
|
10247
|
-
PdfExport
|
|
10413
|
+
PdfExport.prototype.Map = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
|
|
10248
10414
|
var _this = this;
|
|
10249
10415
|
var dtSrc = this.parent.dataSource;
|
|
10250
10416
|
var prop = Object();
|
|
@@ -10258,7 +10424,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10258
10424
|
query = _this.generateQuery(query);
|
|
10259
10425
|
setValue('query', query, prop);
|
|
10260
10426
|
}
|
|
10261
|
-
_this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
|
|
10427
|
+
_this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
|
|
10262
10428
|
if (getObject('cancel', prop)) {
|
|
10263
10429
|
return null;
|
|
10264
10430
|
}
|
|
@@ -10280,7 +10446,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10280
10446
|
});
|
|
10281
10447
|
});
|
|
10282
10448
|
};
|
|
10283
|
-
PdfExport
|
|
10449
|
+
PdfExport.prototype.generateQuery = function (query, prop) {
|
|
10284
10450
|
if (!isNullOrUndefined(prop) && prop.exportType === 'CurrentPage'
|
|
10285
10451
|
&& this.parent.allowPaging) {
|
|
10286
10452
|
prop.exportType = 'AllPages';
|
|
@@ -10290,7 +10456,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10290
10456
|
}
|
|
10291
10457
|
return query;
|
|
10292
10458
|
};
|
|
10293
|
-
PdfExport
|
|
10459
|
+
PdfExport.prototype.manipulatePdfProperties = function (prop, dtSrc, queryResult) {
|
|
10294
10460
|
var args = {};
|
|
10295
10461
|
//count not required for this query
|
|
10296
10462
|
var isLocal = !isRemoteData(this.parent) && isOffline(this.parent);
|
|
@@ -10334,7 +10500,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10334
10500
|
* @hidden
|
|
10335
10501
|
* @returns {void}
|
|
10336
10502
|
*/
|
|
10337
|
-
PdfExport
|
|
10503
|
+
PdfExport.prototype.pdfQueryCellInfo = function (args) {
|
|
10338
10504
|
if (this.parent.grid.getColumnIndexByUid(args.column.uid) === this.parent.treeColumnIndex) {
|
|
10339
10505
|
var style = {};
|
|
10340
10506
|
var data = getObject('data', args);
|
|
@@ -10346,7 +10512,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10346
10512
|
this.parent.notify('updateResults', args);
|
|
10347
10513
|
this.parent.trigger('pdfQueryCellInfo', args);
|
|
10348
10514
|
};
|
|
10349
|
-
return PdfExport
|
|
10515
|
+
return PdfExport;
|
|
10350
10516
|
}());
|
|
10351
10517
|
|
|
10352
10518
|
/**
|
|
@@ -10354,9 +10520,9 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10354
10520
|
*
|
|
10355
10521
|
* @hidden
|
|
10356
10522
|
*/
|
|
10357
|
-
var Page
|
|
10358
|
-
function Page
|
|
10359
|
-
Grid.Inject(Page);
|
|
10523
|
+
var Page = /** @__PURE__ @class */ (function () {
|
|
10524
|
+
function Page(parent) {
|
|
10525
|
+
Grid.Inject(Page$1);
|
|
10360
10526
|
this.parent = parent;
|
|
10361
10527
|
this.addEventListener();
|
|
10362
10528
|
}
|
|
@@ -10364,7 +10530,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10364
10530
|
* @hidden
|
|
10365
10531
|
* @returns {void}
|
|
10366
10532
|
*/
|
|
10367
|
-
Page
|
|
10533
|
+
Page.prototype.addEventListener = function () {
|
|
10368
10534
|
this.parent.on(localPagedExpandCollapse, this.collapseExpandPagedchilds, this);
|
|
10369
10535
|
this.parent.on(pagingActions, this.pageAction, this);
|
|
10370
10536
|
};
|
|
@@ -10372,7 +10538,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10372
10538
|
* @hidden
|
|
10373
10539
|
* @returns {void}
|
|
10374
10540
|
*/
|
|
10375
|
-
Page
|
|
10541
|
+
Page.prototype.removeEventListener = function () {
|
|
10376
10542
|
if (this.parent.isDestroyed) {
|
|
10377
10543
|
return;
|
|
10378
10544
|
}
|
|
@@ -10385,7 +10551,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10385
10551
|
* @private
|
|
10386
10552
|
* @returns {string} Returns Pager module name
|
|
10387
10553
|
*/
|
|
10388
|
-
Page
|
|
10554
|
+
Page.prototype.getModuleName = function () {
|
|
10389
10555
|
return 'pager';
|
|
10390
10556
|
};
|
|
10391
10557
|
/**
|
|
@@ -10393,7 +10559,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10393
10559
|
*
|
|
10394
10560
|
* @returns {void}
|
|
10395
10561
|
*/
|
|
10396
|
-
Page
|
|
10562
|
+
Page.prototype.refresh = function () {
|
|
10397
10563
|
this.parent.grid.pagerModule.refresh();
|
|
10398
10564
|
};
|
|
10399
10565
|
/**
|
|
@@ -10402,7 +10568,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10402
10568
|
* @returns {void}
|
|
10403
10569
|
* @hidden
|
|
10404
10570
|
*/
|
|
10405
|
-
Page
|
|
10571
|
+
Page.prototype.destroy = function () {
|
|
10406
10572
|
this.removeEventListener();
|
|
10407
10573
|
};
|
|
10408
10574
|
/**
|
|
@@ -10411,7 +10577,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10411
10577
|
* @param {number} pageNo - Defines the page number to navigate.
|
|
10412
10578
|
* @returns {void}
|
|
10413
10579
|
*/
|
|
10414
|
-
Page
|
|
10580
|
+
Page.prototype.goToPage = function (pageNo) {
|
|
10415
10581
|
this.parent.grid.pagerModule.goToPage(pageNo);
|
|
10416
10582
|
};
|
|
10417
10583
|
/**
|
|
@@ -10420,7 +10586,11 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10420
10586
|
* @param {string} message - Defines the message to update.
|
|
10421
10587
|
* @returns {void}
|
|
10422
10588
|
*/
|
|
10423
|
-
Page
|
|
10589
|
+
Page.prototype.updateExternalMessage = function (message) {
|
|
10590
|
+
if (isNullOrUndefined(message)) {
|
|
10591
|
+
var error = 'The provided value for the message is undefined. Please ensure the message contains string.';
|
|
10592
|
+
this.parent.trigger(actionFailure, { error: error });
|
|
10593
|
+
}
|
|
10424
10594
|
this.parent.grid.pagerModule.updateExternalMessage(message);
|
|
10425
10595
|
};
|
|
10426
10596
|
/**
|
|
@@ -10432,7 +10602,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10432
10602
|
* @hidden
|
|
10433
10603
|
* @returns {void}
|
|
10434
10604
|
*/
|
|
10435
|
-
Page
|
|
10605
|
+
Page.prototype.collapseExpandPagedchilds = function (rowDetails) {
|
|
10436
10606
|
rowDetails.record.expanded = rowDetails.action === 'collapse' ? false : true;
|
|
10437
10607
|
this.parent.flatData.map(function (e) { return e.expanded = e.uniqueID === rowDetails.record.uniqueID &&
|
|
10438
10608
|
e.expanded !== rowDetails.record.expanded ? rowDetails.record.expanded : e.expanded; });
|
|
@@ -10473,7 +10643,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10473
10643
|
}
|
|
10474
10644
|
}
|
|
10475
10645
|
};
|
|
10476
|
-
Page
|
|
10646
|
+
Page.prototype.pageRoot = function (pagedResults, temp, result) {
|
|
10477
10647
|
var newResults = isNullOrUndefined(result) ? [] : result;
|
|
10478
10648
|
var _loop_1 = function (t) {
|
|
10479
10649
|
newResults.push(temp[parseInt(t.toString(), 10)]);
|
|
@@ -10491,7 +10661,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10491
10661
|
}
|
|
10492
10662
|
return newResults;
|
|
10493
10663
|
};
|
|
10494
|
-
Page
|
|
10664
|
+
Page.prototype.updatePageSize = function (pageingDetails) {
|
|
10495
10665
|
var updateSize = pageingDetails.result.length;
|
|
10496
10666
|
var gridPagerModule = this.parent.grid.pagerModule;
|
|
10497
10667
|
if (this.parent.pageSettings.pageSizes === true) {
|
|
@@ -10501,7 +10671,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10501
10671
|
}
|
|
10502
10672
|
}
|
|
10503
10673
|
};
|
|
10504
|
-
Page
|
|
10674
|
+
Page.prototype.pageAction = function (pageingDetails) {
|
|
10505
10675
|
var _this = this;
|
|
10506
10676
|
var dm = new DataManager(pageingDetails.result);
|
|
10507
10677
|
if (this.parent.pageSettings.pageSizeMode === 'Root') {
|
|
@@ -10522,8 +10692,8 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10522
10692
|
}
|
|
10523
10693
|
else {
|
|
10524
10694
|
var dm_1 = new DataManager(pageingDetails.result);
|
|
10525
|
-
var expanded
|
|
10526
|
-
var parents_1 = dm_1.executeLocal(new Query().where(expanded
|
|
10695
|
+
var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
10696
|
+
var parents_1 = dm_1.executeLocal(new Query().where(expanded));
|
|
10527
10697
|
var visualData = void 0;
|
|
10528
10698
|
if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
|
|
10529
10699
|
pageingDetails.actionArgs.action !== 'expand')) {
|
|
@@ -10531,7 +10701,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10531
10701
|
}
|
|
10532
10702
|
else {
|
|
10533
10703
|
visualData = parents_1.filter(function (e) {
|
|
10534
|
-
return getExpandStatus(_this.parent, e
|
|
10704
|
+
return getExpandStatus(_this.parent, e);
|
|
10535
10705
|
});
|
|
10536
10706
|
}
|
|
10537
10707
|
pageingDetails.count = visualData.length;
|
|
@@ -10551,7 +10721,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10551
10721
|
}
|
|
10552
10722
|
this.parent.notify('updateAction', pageingDetails);
|
|
10553
10723
|
};
|
|
10554
|
-
return Page
|
|
10724
|
+
return Page;
|
|
10555
10725
|
}());
|
|
10556
10726
|
|
|
10557
10727
|
/**
|
|
@@ -10559,9 +10729,9 @@ var Page$1 = /** @__PURE__ @class */ (function () {
|
|
|
10559
10729
|
*
|
|
10560
10730
|
* @hidden
|
|
10561
10731
|
*/
|
|
10562
|
-
var Toolbar
|
|
10563
|
-
function Toolbar
|
|
10564
|
-
Grid.Inject(Toolbar);
|
|
10732
|
+
var Toolbar = /** @__PURE__ @class */ (function () {
|
|
10733
|
+
function Toolbar(parent) {
|
|
10734
|
+
Grid.Inject(Toolbar$1);
|
|
10565
10735
|
this.parent = parent;
|
|
10566
10736
|
this.addEventListener();
|
|
10567
10737
|
}
|
|
@@ -10571,14 +10741,14 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10571
10741
|
* @private
|
|
10572
10742
|
* @returns {string} - Returns Toolbar module name
|
|
10573
10743
|
*/
|
|
10574
|
-
Toolbar
|
|
10744
|
+
Toolbar.prototype.getModuleName = function () {
|
|
10575
10745
|
return 'toolbar';
|
|
10576
10746
|
};
|
|
10577
10747
|
/**
|
|
10578
10748
|
* @hidden
|
|
10579
10749
|
* @returns {void}
|
|
10580
10750
|
*/
|
|
10581
|
-
Toolbar
|
|
10751
|
+
Toolbar.prototype.addEventListener = function () {
|
|
10582
10752
|
this.parent.on(rowSelected, this.refreshToolbar, this);
|
|
10583
10753
|
this.parent.on(rowDeselected, this.refreshToolbar, this);
|
|
10584
10754
|
this.parent.on(toolbarClick, this.toolbarClickHandler, this);
|
|
@@ -10587,7 +10757,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10587
10757
|
* @hidden
|
|
10588
10758
|
* @returns {void}
|
|
10589
10759
|
*/
|
|
10590
|
-
Toolbar
|
|
10760
|
+
Toolbar.prototype.removeEventListener = function () {
|
|
10591
10761
|
if (this.parent.isDestroyed) {
|
|
10592
10762
|
return;
|
|
10593
10763
|
}
|
|
@@ -10595,7 +10765,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10595
10765
|
this.parent.off(rowDeselected, this.refreshToolbar);
|
|
10596
10766
|
this.parent.off(toolbarClick, this.toolbarClickHandler);
|
|
10597
10767
|
};
|
|
10598
|
-
Toolbar
|
|
10768
|
+
Toolbar.prototype.refreshToolbar = function (args) {
|
|
10599
10769
|
var toolbarElement = this.parent.grid.toolbarModule.getToolbar();
|
|
10600
10770
|
if (!isNullOrUndefined(toolbarElement)) {
|
|
10601
10771
|
var tObj = this.parent;
|
|
@@ -10649,7 +10819,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10649
10819
|
}
|
|
10650
10820
|
}
|
|
10651
10821
|
};
|
|
10652
|
-
Toolbar
|
|
10822
|
+
Toolbar.prototype.toolbarClickHandler = function (args) {
|
|
10653
10823
|
var tObj = this.parent;
|
|
10654
10824
|
var indentOutdentAction = 'indentOutdentAction';
|
|
10655
10825
|
if (this.parent.editSettings.mode === 'Cell' && this.parent.grid.editSettings.mode === 'Batch' &&
|
|
@@ -10678,7 +10848,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10678
10848
|
* @returns {Element} - Returns Toolbar element
|
|
10679
10849
|
* @hidden
|
|
10680
10850
|
*/
|
|
10681
|
-
Toolbar
|
|
10851
|
+
Toolbar.prototype.getToolbar = function () {
|
|
10682
10852
|
return this.parent.grid.toolbarModule.getToolbar();
|
|
10683
10853
|
};
|
|
10684
10854
|
/**
|
|
@@ -10689,7 +10859,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10689
10859
|
* @returns {void}
|
|
10690
10860
|
* @hidden
|
|
10691
10861
|
*/
|
|
10692
|
-
Toolbar
|
|
10862
|
+
Toolbar.prototype.enableItems = function (items, isEnable) {
|
|
10693
10863
|
this.parent.grid.toolbarModule.enableItems(items, isEnable);
|
|
10694
10864
|
};
|
|
10695
10865
|
/**
|
|
@@ -10698,10 +10868,10 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10698
10868
|
* @method destroy
|
|
10699
10869
|
* @returns {void}
|
|
10700
10870
|
*/
|
|
10701
|
-
Toolbar
|
|
10871
|
+
Toolbar.prototype.destroy = function () {
|
|
10702
10872
|
this.removeEventListener();
|
|
10703
10873
|
};
|
|
10704
|
-
return Toolbar
|
|
10874
|
+
return Toolbar;
|
|
10705
10875
|
}());
|
|
10706
10876
|
|
|
10707
10877
|
/**
|
|
@@ -10709,14 +10879,14 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
|
10709
10879
|
*
|
|
10710
10880
|
* @hidden
|
|
10711
10881
|
*/
|
|
10712
|
-
var Aggregate
|
|
10882
|
+
var Aggregate = /** @__PURE__ @class */ (function () {
|
|
10713
10883
|
/**
|
|
10714
10884
|
* Constructor for Aggregate module
|
|
10715
10885
|
*
|
|
10716
10886
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10717
10887
|
*/
|
|
10718
|
-
function Aggregate
|
|
10719
|
-
Grid.Inject(Aggregate);
|
|
10888
|
+
function Aggregate(parent) {
|
|
10889
|
+
Grid.Inject(Aggregate$1);
|
|
10720
10890
|
this.parent = parent;
|
|
10721
10891
|
this.flatChildRecords = [];
|
|
10722
10892
|
this.summaryQuery = [];
|
|
@@ -10727,10 +10897,10 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10727
10897
|
* @private
|
|
10728
10898
|
* @returns {string} Returns Summary module name
|
|
10729
10899
|
*/
|
|
10730
|
-
Aggregate
|
|
10900
|
+
Aggregate.prototype.getModuleName = function () {
|
|
10731
10901
|
return 'summary';
|
|
10732
10902
|
};
|
|
10733
|
-
Aggregate
|
|
10903
|
+
Aggregate.prototype.removeEventListener = function () {
|
|
10734
10904
|
if (this.parent.isDestroyed) {
|
|
10735
10905
|
return;
|
|
10736
10906
|
}
|
|
@@ -10744,7 +10914,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10744
10914
|
* @hidden
|
|
10745
10915
|
* @returns {Object[]} - return flat records with summary values
|
|
10746
10916
|
*/
|
|
10747
|
-
Aggregate
|
|
10917
|
+
Aggregate.prototype.calculateSummaryValue = function (summaryQuery, filteredData, isSort) {
|
|
10748
10918
|
this.summaryQuery = summaryQuery;
|
|
10749
10919
|
var parentRecord;
|
|
10750
10920
|
var parentDataLength = Object.keys(filteredData).length;
|
|
@@ -10784,7 +10954,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10784
10954
|
}
|
|
10785
10955
|
});
|
|
10786
10956
|
var currentIndex = idx_1 + childRecordsLength + summaryRowIndex;
|
|
10787
|
-
var summaryParent = extend({}, parentRecord);
|
|
10957
|
+
var summaryParent = extend$1({}, parentRecord);
|
|
10788
10958
|
delete summaryParent.childRecords;
|
|
10789
10959
|
delete summaryParent[this_1.parent.childMapping];
|
|
10790
10960
|
setValue('parentItem', summaryParent, item);
|
|
@@ -10825,7 +10995,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10825
10995
|
}
|
|
10826
10996
|
return flatRecords;
|
|
10827
10997
|
};
|
|
10828
|
-
Aggregate
|
|
10998
|
+
Aggregate.prototype.getChildRecordsLength = function (parentData, flatData) {
|
|
10829
10999
|
var recordLength = Object.keys(flatData).length;
|
|
10830
11000
|
var record;
|
|
10831
11001
|
for (var i = 0, len = recordLength; i < len; i++) {
|
|
@@ -10845,7 +11015,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10845
11015
|
}
|
|
10846
11016
|
return this.flatChildRecords.length;
|
|
10847
11017
|
};
|
|
10848
|
-
Aggregate
|
|
11018
|
+
Aggregate.prototype.createSummaryItem = function (itemData, summary) {
|
|
10849
11019
|
var summaryColumnLength = Object.keys(summary.columns).length;
|
|
10850
11020
|
for (var i = 0, len = summaryColumnLength; i < len; i++) {
|
|
10851
11021
|
var displayColumn = isNullOrUndefined(summary.columns[parseInt(i.toString(), 10)].columnName) ?
|
|
@@ -10870,7 +11040,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10870
11040
|
}
|
|
10871
11041
|
return itemData;
|
|
10872
11042
|
};
|
|
10873
|
-
Aggregate
|
|
11043
|
+
Aggregate.prototype.getSummaryValues = function (summaryColumn, summaryData) {
|
|
10874
11044
|
var qry = new Query();
|
|
10875
11045
|
var single = {};
|
|
10876
11046
|
var helper = {};
|
|
@@ -10921,7 +11091,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10921
11091
|
return cellElement.innerHTML;
|
|
10922
11092
|
}
|
|
10923
11093
|
};
|
|
10924
|
-
Aggregate
|
|
11094
|
+
Aggregate.prototype.getFormatFromType = function (summaryformat, type) {
|
|
10925
11095
|
if (isNullOrUndefined(type) || typeof summaryformat !== 'string') {
|
|
10926
11096
|
return summaryformat;
|
|
10927
11097
|
}
|
|
@@ -10945,10 +11115,10 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10945
11115
|
* @returns {void}
|
|
10946
11116
|
* @hidden
|
|
10947
11117
|
*/
|
|
10948
|
-
Aggregate
|
|
11118
|
+
Aggregate.prototype.destroy = function () {
|
|
10949
11119
|
this.removeEventListener();
|
|
10950
11120
|
};
|
|
10951
|
-
return Aggregate
|
|
11121
|
+
return Aggregate;
|
|
10952
11122
|
}());
|
|
10953
11123
|
|
|
10954
11124
|
/**
|
|
@@ -10956,9 +11126,9 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
|
|
|
10956
11126
|
*
|
|
10957
11127
|
* @hidden
|
|
10958
11128
|
*/
|
|
10959
|
-
var Sort
|
|
10960
|
-
function Sort
|
|
10961
|
-
Grid.Inject(Sort);
|
|
11129
|
+
var Sort = /** @__PURE__ @class */ (function () {
|
|
11130
|
+
function Sort(grid) {
|
|
11131
|
+
Grid.Inject(Sort$1);
|
|
10962
11132
|
this.parent = grid;
|
|
10963
11133
|
this.taskIds = [];
|
|
10964
11134
|
this.flatSortedData = [];
|
|
@@ -10972,13 +11142,13 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
10972
11142
|
* @private
|
|
10973
11143
|
* @returns {string} Returns Sort module name
|
|
10974
11144
|
*/
|
|
10975
|
-
Sort
|
|
11145
|
+
Sort.prototype.getModuleName = function () {
|
|
10976
11146
|
return 'sort';
|
|
10977
11147
|
};
|
|
10978
11148
|
/**
|
|
10979
11149
|
* @hidden
|
|
10980
11150
|
*/
|
|
10981
|
-
Sort
|
|
11151
|
+
Sort.prototype.addEventListener = function () {
|
|
10982
11152
|
this.parent.on('updateModel', this.updateModel, this);
|
|
10983
11153
|
this.parent.on('createSort', this.createdSortedRecords, this);
|
|
10984
11154
|
};
|
|
@@ -10986,14 +11156,14 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
10986
11156
|
* @hidden
|
|
10987
11157
|
* @returns {void}
|
|
10988
11158
|
*/
|
|
10989
|
-
Sort
|
|
11159
|
+
Sort.prototype.removeEventListener = function () {
|
|
10990
11160
|
if (this.parent.isDestroyed) {
|
|
10991
11161
|
return;
|
|
10992
11162
|
}
|
|
10993
11163
|
this.parent.off('updateModel', this.updateModel);
|
|
10994
11164
|
this.parent.off('createSort', this.createdSortedRecords);
|
|
10995
11165
|
};
|
|
10996
|
-
Sort
|
|
11166
|
+
Sort.prototype.createdSortedRecords = function (sortParams) {
|
|
10997
11167
|
var data = sortParams.modifiedData;
|
|
10998
11168
|
var srtQry = sortParams.srtQry;
|
|
10999
11169
|
this.iterateSort(data, srtQry);
|
|
@@ -11001,7 +11171,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
11001
11171
|
sortParams.modifiedData = this.flatSortedData;
|
|
11002
11172
|
this.flatSortedData = [];
|
|
11003
11173
|
};
|
|
11004
|
-
Sort
|
|
11174
|
+
Sort.prototype.iterateSort = function (data, srtQry) {
|
|
11005
11175
|
for (var d = 0; d < data.length; d++) {
|
|
11006
11176
|
if (this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
|
|
11007
11177
|
if (!isNullOrUndefined(getParentData(this.parent, data[parseInt(d.toString(), 10)].uniqueID, true))) {
|
|
@@ -11039,10 +11209,10 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
11039
11209
|
* @param {boolean} isMultiSort - Specifies whether the previous sorted columns are to be maintained.
|
|
11040
11210
|
* @returns {void}
|
|
11041
11211
|
*/
|
|
11042
|
-
Sort
|
|
11212
|
+
Sort.prototype.sortColumn = function (columnName, direction, isMultiSort) {
|
|
11043
11213
|
this.parent.grid.sortColumn(columnName, direction, isMultiSort);
|
|
11044
11214
|
};
|
|
11045
|
-
Sort
|
|
11215
|
+
Sort.prototype.removeSortColumn = function (field) {
|
|
11046
11216
|
this.parent.grid.removeSortColumn(field);
|
|
11047
11217
|
};
|
|
11048
11218
|
/**
|
|
@@ -11051,7 +11221,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
11051
11221
|
* @returns {void}
|
|
11052
11222
|
* @hidden
|
|
11053
11223
|
*/
|
|
11054
|
-
Sort
|
|
11224
|
+
Sort.prototype.updateModel = function () {
|
|
11055
11225
|
this.parent.setProperties({ sortSettings: getActualProperties(this.parent.grid.sortSettings) }, true);
|
|
11056
11226
|
};
|
|
11057
11227
|
/**
|
|
@@ -11059,7 +11229,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
11059
11229
|
*
|
|
11060
11230
|
* @returns {void}
|
|
11061
11231
|
*/
|
|
11062
|
-
Sort
|
|
11232
|
+
Sort.prototype.clearSorting = function () {
|
|
11063
11233
|
this.parent.grid.clearSorting();
|
|
11064
11234
|
this.updateModel();
|
|
11065
11235
|
};
|
|
@@ -11069,10 +11239,10 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
11069
11239
|
* @function destroy
|
|
11070
11240
|
* @returns {void}
|
|
11071
11241
|
*/
|
|
11072
|
-
Sort
|
|
11242
|
+
Sort.prototype.destroy = function () {
|
|
11073
11243
|
this.removeEventListener();
|
|
11074
11244
|
};
|
|
11075
|
-
return Sort
|
|
11245
|
+
return Sort;
|
|
11076
11246
|
}());
|
|
11077
11247
|
|
|
11078
11248
|
/**
|
|
@@ -11080,20 +11250,20 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
11080
11250
|
*
|
|
11081
11251
|
* @hidden
|
|
11082
11252
|
*/
|
|
11083
|
-
var ColumnMenu
|
|
11253
|
+
var ColumnMenu = /** @__PURE__ @class */ (function () {
|
|
11084
11254
|
/**
|
|
11085
11255
|
* Constructor for render module
|
|
11086
11256
|
*
|
|
11087
11257
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
11088
11258
|
*/
|
|
11089
|
-
function ColumnMenu
|
|
11090
|
-
Grid.Inject(ColumnMenu);
|
|
11259
|
+
function ColumnMenu(parent) {
|
|
11260
|
+
Grid.Inject(ColumnMenu$1);
|
|
11091
11261
|
this.parent = parent;
|
|
11092
11262
|
}
|
|
11093
|
-
ColumnMenu
|
|
11263
|
+
ColumnMenu.prototype.getColumnMenu = function () {
|
|
11094
11264
|
return this.parent.grid.columnMenuModule.getColumnMenu();
|
|
11095
11265
|
};
|
|
11096
|
-
ColumnMenu
|
|
11266
|
+
ColumnMenu.prototype.destroy = function () {
|
|
11097
11267
|
//this.parent.grid.columnMenuModule.destroy();
|
|
11098
11268
|
};
|
|
11099
11269
|
/**
|
|
@@ -11102,10 +11272,10 @@ var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11102
11272
|
* @private
|
|
11103
11273
|
* @returns {string} Returns ColumnMenu module name
|
|
11104
11274
|
*/
|
|
11105
|
-
ColumnMenu
|
|
11275
|
+
ColumnMenu.prototype.getModuleName = function () {
|
|
11106
11276
|
return 'columnMenu';
|
|
11107
11277
|
};
|
|
11108
|
-
return ColumnMenu
|
|
11278
|
+
return ColumnMenu;
|
|
11109
11279
|
}());
|
|
11110
11280
|
|
|
11111
11281
|
/**
|
|
@@ -11113,9 +11283,9 @@ var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11113
11283
|
*
|
|
11114
11284
|
* @hidden
|
|
11115
11285
|
*/
|
|
11116
|
-
var ContextMenu
|
|
11117
|
-
function ContextMenu
|
|
11118
|
-
Grid.Inject(ContextMenu);
|
|
11286
|
+
var ContextMenu = /** @__PURE__ @class */ (function () {
|
|
11287
|
+
function ContextMenu(parent) {
|
|
11288
|
+
Grid.Inject(ContextMenu$1);
|
|
11119
11289
|
this.parent = parent;
|
|
11120
11290
|
this.addEventListener();
|
|
11121
11291
|
}
|
|
@@ -11123,7 +11293,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11123
11293
|
* @hidden
|
|
11124
11294
|
* @returns {void}
|
|
11125
11295
|
*/
|
|
11126
|
-
ContextMenu
|
|
11296
|
+
ContextMenu.prototype.addEventListener = function () {
|
|
11127
11297
|
this.parent.on('contextMenuOpen', this.contextMenuOpen, this);
|
|
11128
11298
|
this.parent.on('contextMenuClick', this.contextMenuClick, this);
|
|
11129
11299
|
};
|
|
@@ -11131,14 +11301,14 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11131
11301
|
* @hidden
|
|
11132
11302
|
* @returns {void}
|
|
11133
11303
|
*/
|
|
11134
|
-
ContextMenu
|
|
11304
|
+
ContextMenu.prototype.removeEventListener = function () {
|
|
11135
11305
|
if (this.parent.isDestroyed) {
|
|
11136
11306
|
return;
|
|
11137
11307
|
}
|
|
11138
11308
|
this.parent.off('contextMenuOpen', this.contextMenuOpen);
|
|
11139
11309
|
this.parent.off('contextMenuClick', this.contextMenuClick);
|
|
11140
11310
|
};
|
|
11141
|
-
ContextMenu
|
|
11311
|
+
ContextMenu.prototype.contextMenuOpen = function (args) {
|
|
11142
11312
|
var addRow = select('#' + this.parent.element.id + '_gridcontrol_cmenu_AddRow', args.element);
|
|
11143
11313
|
var editRecord = select('#' + this.parent.element.id + '_gridcontrol_cmenu_Edit', args.element);
|
|
11144
11314
|
var indent = select('#' + this.parent.element.id + '_gridcontrol_cmenu_Indent', args.element);
|
|
@@ -11209,7 +11379,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11209
11379
|
}
|
|
11210
11380
|
}
|
|
11211
11381
|
};
|
|
11212
|
-
ContextMenu
|
|
11382
|
+
ContextMenu.prototype.contextMenuClick = function (args) {
|
|
11213
11383
|
if (args.item.id === 'Above' || args.item.id === 'Below' || args.item.id === 'Child') {
|
|
11214
11384
|
this.parent.notify('savePreviousRowPosition', args);
|
|
11215
11385
|
this.parent.setProperties({ editSettings: { newRowPosition: args.item.id } }, true);
|
|
@@ -11230,7 +11400,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11230
11400
|
* @private
|
|
11231
11401
|
* @returns {string} Returns ContextMenu module name
|
|
11232
11402
|
*/
|
|
11233
|
-
ContextMenu
|
|
11403
|
+
ContextMenu.prototype.getModuleName = function () {
|
|
11234
11404
|
return 'contextMenu';
|
|
11235
11405
|
};
|
|
11236
11406
|
/**
|
|
@@ -11239,7 +11409,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11239
11409
|
* @function destroy
|
|
11240
11410
|
* @returns {void}
|
|
11241
11411
|
*/
|
|
11242
|
-
ContextMenu
|
|
11412
|
+
ContextMenu.prototype.destroy = function () {
|
|
11243
11413
|
this.removeEventListener();
|
|
11244
11414
|
};
|
|
11245
11415
|
/**
|
|
@@ -11247,10 +11417,10 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
|
|
|
11247
11417
|
*
|
|
11248
11418
|
* @returns {Element} Return Context Menu root element.
|
|
11249
11419
|
*/
|
|
11250
|
-
ContextMenu
|
|
11420
|
+
ContextMenu.prototype.getContextMenu = function () {
|
|
11251
11421
|
return this.parent.grid.contextMenuModule.getContextMenu();
|
|
11252
11422
|
};
|
|
11253
|
-
return ContextMenu
|
|
11423
|
+
return ContextMenu;
|
|
11254
11424
|
}());
|
|
11255
11425
|
|
|
11256
11426
|
/**
|
|
@@ -11398,7 +11568,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
11398
11568
|
if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
11399
11569
|
added.primaryParent = parentRecord;
|
|
11400
11570
|
if (this.selectedIndex > -1) {
|
|
11401
|
-
added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
|
|
11571
|
+
added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
|
|
11402
11572
|
added.parentUniqueID = added.parentItem.uniqueID;
|
|
11403
11573
|
delete added.parentItem.childRecords;
|
|
11404
11574
|
delete added.parentItem[this.parent.childMapping];
|
|
@@ -11507,13 +11677,13 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
11507
11677
|
this.updateRowIndex();
|
|
11508
11678
|
// update focus module, need to refix this once grid source modified.
|
|
11509
11679
|
var focusModule = getValue('focusModule', this.parent.grid);
|
|
11510
|
-
var table
|
|
11680
|
+
var table = this.parent.getContentTable();
|
|
11511
11681
|
if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
|
|
11512
11682
|
actualIndex = e.row.rowIndex;
|
|
11513
11683
|
focusModule.getContent().matrix.matrix = this.matrix;
|
|
11514
11684
|
}
|
|
11515
11685
|
else {
|
|
11516
|
-
actualIndex = table
|
|
11686
|
+
actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
|
|
11517
11687
|
// if (this.parent.frozenRows || this.parent.frozenColumns) {
|
|
11518
11688
|
// actualIndex = this.batchIndex;
|
|
11519
11689
|
// }
|
|
@@ -11741,7 +11911,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
11741
11911
|
addRecords.reverse();
|
|
11742
11912
|
}
|
|
11743
11913
|
for (i = 0; i < addRecords.length; i++) {
|
|
11744
|
-
var taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11914
|
+
var taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11745
11915
|
delete taskData.parentItem;
|
|
11746
11916
|
delete taskData.uniqueID;
|
|
11747
11917
|
delete taskData.index;
|
|
@@ -11866,19 +12036,19 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
11866
12036
|
* TreeGrid Edit Module
|
|
11867
12037
|
* The `Edit` module is used to handle editing actions.
|
|
11868
12038
|
*/
|
|
11869
|
-
var Edit
|
|
12039
|
+
var Edit = /** @__PURE__ @class */ (function () {
|
|
11870
12040
|
/**
|
|
11871
12041
|
* Constructor for Edit module
|
|
11872
12042
|
*
|
|
11873
12043
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
11874
12044
|
*/
|
|
11875
|
-
function Edit
|
|
12045
|
+
function Edit(parent) {
|
|
11876
12046
|
this.addedRecords = 'addedRecords';
|
|
11877
12047
|
this.deletedRecords = 'deletedRecords';
|
|
11878
12048
|
this.prevAriaRowIndex = '-1';
|
|
11879
12049
|
this.isAddedRowByMethod = false;
|
|
11880
12050
|
this.isAddedRowByContextMenu = false;
|
|
11881
|
-
Grid.Inject(Edit);
|
|
12051
|
+
Grid.Inject(Edit$1);
|
|
11882
12052
|
this.parent = parent;
|
|
11883
12053
|
this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
|
|
11884
12054
|
this.previousNewRowPosition = null;
|
|
@@ -11892,14 +12062,14 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11892
12062
|
* @private
|
|
11893
12063
|
* @returns {string} Returns Edit module name
|
|
11894
12064
|
*/
|
|
11895
|
-
Edit
|
|
12065
|
+
Edit.prototype.getModuleName = function () {
|
|
11896
12066
|
return 'edit';
|
|
11897
12067
|
};
|
|
11898
12068
|
/**
|
|
11899
12069
|
* @hidden
|
|
11900
12070
|
* @returns {void}
|
|
11901
12071
|
*/
|
|
11902
|
-
Edit
|
|
12072
|
+
Edit.prototype.addEventListener = function () {
|
|
11903
12073
|
this.parent.on(crudAction, this.crudAction, this);
|
|
11904
12074
|
this.parent.on(beginEdit, this.beginEdit, this);
|
|
11905
12075
|
this.parent.on(beginAdd, this.beginAdd, this);
|
|
@@ -11922,7 +12092,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11922
12092
|
this.parent.grid.on('reset-edit-props', this.resetIsOnBatch, this);
|
|
11923
12093
|
this.parent.grid.on('get-row-position', this.getRowPosition, this);
|
|
11924
12094
|
};
|
|
11925
|
-
Edit
|
|
12095
|
+
Edit.prototype.gridDblClick = function (e) {
|
|
11926
12096
|
this.doubleClickTarget = e.target;
|
|
11927
12097
|
if (e.target.classList.contains('e-frame') && this.parent.getCurrentViewRecords().length === 0) {
|
|
11928
12098
|
this.doubleClickTarget = null;
|
|
@@ -11936,17 +12106,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11936
12106
|
}
|
|
11937
12107
|
}
|
|
11938
12108
|
};
|
|
11939
|
-
Edit
|
|
12109
|
+
Edit.prototype.getRowPosition = function (addArgs) {
|
|
11940
12110
|
addArgs.newRowPosition = this.parent.editSettings.newRowPosition;
|
|
11941
12111
|
addArgs.addRowIndex = this.addRowIndex;
|
|
11942
12112
|
addArgs.dataRowIndex = +this.prevAriaRowIndex;
|
|
11943
12113
|
};
|
|
11944
|
-
Edit
|
|
12114
|
+
Edit.prototype.beforeStartEdit = function (args) {
|
|
11945
12115
|
if (this.parent.editSettings.mode === 'Cell') {
|
|
11946
12116
|
this.parent.trigger(actionBegin, args);
|
|
11947
12117
|
}
|
|
11948
12118
|
};
|
|
11949
|
-
Edit
|
|
12119
|
+
Edit.prototype.beforeBatchCancel = function (args) {
|
|
11950
12120
|
if (this.parent.editSettings.mode === 'Cell') {
|
|
11951
12121
|
args['requestType'] = 'cancel';
|
|
11952
12122
|
this.parent.trigger(actionComplete, args);
|
|
@@ -11956,7 +12126,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11956
12126
|
* @hidden
|
|
11957
12127
|
* @returns {void}
|
|
11958
12128
|
*/
|
|
11959
|
-
Edit
|
|
12129
|
+
Edit.prototype.removeEventListener = function () {
|
|
11960
12130
|
if (this.parent.isDestroyed) {
|
|
11961
12131
|
return;
|
|
11962
12132
|
}
|
|
@@ -11987,7 +12157,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11987
12157
|
* @returns {void}
|
|
11988
12158
|
* @hidden
|
|
11989
12159
|
*/
|
|
11990
|
-
Edit
|
|
12160
|
+
Edit.prototype.destroy = function () {
|
|
11991
12161
|
this.removeEventListener();
|
|
11992
12162
|
};
|
|
11993
12163
|
/**
|
|
@@ -11995,15 +12165,16 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11995
12165
|
* @hidden
|
|
11996
12166
|
* @returns {void}
|
|
11997
12167
|
*/
|
|
11998
|
-
Edit
|
|
12168
|
+
Edit.prototype.applyFormValidation = function (cols) {
|
|
11999
12169
|
this.parent.grid.editModule.applyFormValidation(cols);
|
|
12000
12170
|
};
|
|
12001
|
-
Edit
|
|
12171
|
+
Edit.prototype.editActionEvents = function (args) {
|
|
12002
12172
|
var eventArgs = getObject('editAction', args);
|
|
12003
12173
|
var eventName = getObject('name', eventArgs);
|
|
12004
12174
|
var treeObj = this.parent;
|
|
12005
|
-
var adaptor = treeObj.dataSource
|
|
12006
|
-
|
|
12175
|
+
var adaptor = !isNullOrUndefined(treeObj.dataSource)
|
|
12176
|
+
&& treeObj.dataSource.adaptor;
|
|
12177
|
+
if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
|
|
12007
12178
|
(eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
|
|
12008
12179
|
(treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
|
|
12009
12180
|
|| treeObj.editSettings.newRowPosition === 'Above')) {
|
|
@@ -12030,7 +12201,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12030
12201
|
this.parent.notify('batchPageAction', {});
|
|
12031
12202
|
}
|
|
12032
12203
|
};
|
|
12033
|
-
Edit
|
|
12204
|
+
Edit.prototype.infiniteAddAction = function (args) {
|
|
12034
12205
|
if ((args.requestType === 'save' && args.action === 'add') || args.requestType === 'delete') {
|
|
12035
12206
|
if (this.parent.editSettings.newRowPosition !== 'Top' && this.selectedIndex !== -1
|
|
12036
12207
|
&& (args.requestType === 'save' && args.action === 'add')) {
|
|
@@ -12060,7 +12231,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12060
12231
|
}
|
|
12061
12232
|
}
|
|
12062
12233
|
};
|
|
12063
|
-
Edit
|
|
12234
|
+
Edit.prototype.updateInfiniteCurrentViewData = function (newRecord, newRowIndex) {
|
|
12064
12235
|
var _this = this;
|
|
12065
12236
|
var infiniteData = 'infiniteCurrentViewData';
|
|
12066
12237
|
var updateCurrentViewData = 'updateCurrentViewData';
|
|
@@ -12090,7 +12261,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12090
12261
|
data.splice(dataIndex, 0, newRecord);
|
|
12091
12262
|
this.parent.grid.infiniteScrollModule["" + updateCurrentViewData]();
|
|
12092
12263
|
};
|
|
12093
|
-
Edit
|
|
12264
|
+
Edit.prototype.recordDoubleClick = function (args) {
|
|
12094
12265
|
var target = args.target;
|
|
12095
12266
|
if (isNullOrUndefined(target.closest('td.e-rowcell'))) {
|
|
12096
12267
|
return;
|
|
@@ -12116,19 +12287,19 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12116
12287
|
this.updateGridEditMode('Batch');
|
|
12117
12288
|
}
|
|
12118
12289
|
};
|
|
12119
|
-
Edit
|
|
12290
|
+
Edit.prototype.updateGridEditMode = function (mode) {
|
|
12120
12291
|
this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
|
|
12121
12292
|
var updateMethod = getObject('updateEditObj', this.parent.grid.editModule);
|
|
12122
12293
|
updateMethod.apply(this.parent.grid.editModule);
|
|
12123
12294
|
this.parent.grid.isEdit = false;
|
|
12124
12295
|
};
|
|
12125
|
-
Edit
|
|
12296
|
+
Edit.prototype.resetIsOnBatch = function () {
|
|
12126
12297
|
if (this.parent.enableVirtualization && this.parent.editSettings.mode === 'Cell') {
|
|
12127
12298
|
this.isOnBatch = false;
|
|
12128
12299
|
this.updateGridEditMode('Normal');
|
|
12129
12300
|
}
|
|
12130
12301
|
};
|
|
12131
|
-
Edit
|
|
12302
|
+
Edit.prototype.keyPressed = function (args) {
|
|
12132
12303
|
if (this.isOnBatch) {
|
|
12133
12304
|
this.keyPress = args.action;
|
|
12134
12305
|
}
|
|
@@ -12139,13 +12310,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12139
12310
|
this.parent.closeEdit();
|
|
12140
12311
|
}
|
|
12141
12312
|
};
|
|
12142
|
-
Edit
|
|
12313
|
+
Edit.prototype.deleteUniqueID = function (value) {
|
|
12143
12314
|
var idFilter = 'uniqueIDFilterCollection';
|
|
12144
12315
|
delete this.parent["" + idFilter]["" + value];
|
|
12145
12316
|
var id = 'uniqueIDCollection';
|
|
12146
12317
|
delete this.parent["" + id]["" + value];
|
|
12147
12318
|
};
|
|
12148
|
-
Edit
|
|
12319
|
+
Edit.prototype.cellEdit = function (args) {
|
|
12149
12320
|
var _this = this;
|
|
12150
12321
|
var promise = 'promise';
|
|
12151
12322
|
var prom = args["" + promise];
|
|
@@ -12194,14 +12365,14 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12194
12365
|
// this.isAdd = false;
|
|
12195
12366
|
// }
|
|
12196
12367
|
};
|
|
12197
|
-
Edit
|
|
12368
|
+
Edit.prototype.enableToolbarItems = function (request) {
|
|
12198
12369
|
if (!isNullOrUndefined(this.parent.grid.toolbarModule)) {
|
|
12199
12370
|
var toolbarID = this.parent.element.id + '_gridcontrol_';
|
|
12200
12371
|
this.parent.grid.toolbarModule.enableItems([toolbarID + 'add', toolbarID + 'edit', toolbarID + 'delete'], request === 'save');
|
|
12201
12372
|
this.parent.grid.toolbarModule.enableItems([toolbarID + 'update', toolbarID + 'cancel'], request === 'edit');
|
|
12202
12373
|
}
|
|
12203
12374
|
};
|
|
12204
|
-
Edit
|
|
12375
|
+
Edit.prototype.batchCancel = function () {
|
|
12205
12376
|
if (this.parent.editSettings.mode === 'Cell') {
|
|
12206
12377
|
var cellDetails = getValue('editModule.cellDetails', this.parent.grid.editModule);
|
|
12207
12378
|
var treeCell = this.parent.getCellFromIndex(cellDetails.rowIndex, this.parent.treeColumnIndex);
|
|
@@ -12217,13 +12388,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12217
12388
|
this.parent.notify('batchCancelAction', {});
|
|
12218
12389
|
}
|
|
12219
12390
|
};
|
|
12220
|
-
Edit
|
|
12391
|
+
Edit.prototype.customCellSave = function (args) {
|
|
12221
12392
|
if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
|
|
12222
12393
|
this.updateCell(args, args.rowIndex);
|
|
12223
|
-
this.afterCellSave(args, args.row
|
|
12394
|
+
this.afterCellSave(args, args.row);
|
|
12224
12395
|
}
|
|
12225
12396
|
};
|
|
12226
|
-
Edit
|
|
12397
|
+
Edit.prototype.cellSave = function (args) {
|
|
12227
12398
|
var _this = this;
|
|
12228
12399
|
if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
|
|
12229
12400
|
args.cancel = true;
|
|
@@ -12264,7 +12435,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12264
12435
|
}
|
|
12265
12436
|
}
|
|
12266
12437
|
var arg = {};
|
|
12267
|
-
extend(arg, args);
|
|
12438
|
+
extend$1(arg, args);
|
|
12268
12439
|
arg.cancel = false;
|
|
12269
12440
|
arg.type = 'save';
|
|
12270
12441
|
row_1 = this.parent.grid.getRows()[row_1.rowIndex];
|
|
@@ -12285,7 +12456,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12285
12456
|
else {
|
|
12286
12457
|
this.updateCell(args, rowIndex_1);
|
|
12287
12458
|
setValue('isEdit', false, this.parent.grid);
|
|
12288
|
-
this.afterCellSave(args, row_1
|
|
12459
|
+
this.afterCellSave(args, row_1);
|
|
12289
12460
|
}
|
|
12290
12461
|
}
|
|
12291
12462
|
else if (isRemoteData(this.parent) ||
|
|
@@ -12294,7 +12465,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12294
12465
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
12295
12466
|
this.updateCell(args, rowIndex_1);
|
|
12296
12467
|
setValue('isEdit', false, this.parent.grid);
|
|
12297
|
-
this.afterCellSave(args, row_1
|
|
12468
|
+
this.afterCellSave(args, row_1);
|
|
12298
12469
|
}
|
|
12299
12470
|
else {
|
|
12300
12471
|
var crud = null;
|
|
@@ -12305,7 +12476,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12305
12476
|
}
|
|
12306
12477
|
_this.updateCell(args, rowIndex_1);
|
|
12307
12478
|
setValue('isEdit', false, _this.parent.grid);
|
|
12308
|
-
_this.afterCellSave(args, row_1
|
|
12479
|
+
_this.afterCellSave(args, row_1);
|
|
12309
12480
|
});
|
|
12310
12481
|
}
|
|
12311
12482
|
}
|
|
@@ -12318,7 +12489,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12318
12489
|
this.parent.grid.contentModule['virtualData'] = {};
|
|
12319
12490
|
}
|
|
12320
12491
|
};
|
|
12321
|
-
Edit
|
|
12492
|
+
Edit.prototype.afterCellSave = function (args, row) {
|
|
12322
12493
|
if (this.parent.grid.aggregateModule) {
|
|
12323
12494
|
this.parent.grid.aggregateModule.refresh(args.rowData);
|
|
12324
12495
|
}
|
|
@@ -12347,7 +12518,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12347
12518
|
}
|
|
12348
12519
|
this.parent.trigger(actionComplete, saveArgs);
|
|
12349
12520
|
};
|
|
12350
|
-
Edit
|
|
12521
|
+
Edit.prototype.lastCellTab = function () {
|
|
12351
12522
|
if (!this.parent.grid.isEdit && this.isOnBatch && this.keyPress === 'tab' && this.parent.editSettings.mode === 'Cell') {
|
|
12352
12523
|
if (!this.parent.editSettings.allowNextRowEdit) {
|
|
12353
12524
|
this.updateGridEditMode('Normal');
|
|
@@ -12359,11 +12530,11 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12359
12530
|
}
|
|
12360
12531
|
}
|
|
12361
12532
|
};
|
|
12362
|
-
Edit
|
|
12533
|
+
Edit.prototype.updateCell = function (args, rowIndex) {
|
|
12363
12534
|
this.parent.grid.editModule.updateCell(rowIndex, args.columnName, args.rowData[args.columnName]);
|
|
12364
12535
|
this.parent.grid.getRowsObject()[parseInt(rowIndex.toString(), 10)].data = args.rowData;
|
|
12365
12536
|
};
|
|
12366
|
-
Edit
|
|
12537
|
+
Edit.prototype.crudAction = function (details, columnName) {
|
|
12367
12538
|
editAction(details, this.parent, this.isSelfReference, this.addRowIndex, this.selectedIndex, columnName, this.addRowRecord);
|
|
12368
12539
|
this.parent.parentData = [];
|
|
12369
12540
|
var data = this.parent.grid.dataSource instanceof DataManager ?
|
|
@@ -12399,7 +12570,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12399
12570
|
}
|
|
12400
12571
|
}
|
|
12401
12572
|
};
|
|
12402
|
-
Edit
|
|
12573
|
+
Edit.prototype.updateIndex = function (data, rows, records) {
|
|
12403
12574
|
for (var j = 0; j < this.parent.getDataRows().length; j++) {
|
|
12404
12575
|
var data1 = records[parseInt(j.toString(), 10)];
|
|
12405
12576
|
if (!isNullOrUndefined(data1)) {
|
|
@@ -12438,9 +12609,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12438
12609
|
if (!isNullOrUndefined(treecell)) {
|
|
12439
12610
|
for (var l = 0; l < treecell.classList.length; l++) {
|
|
12440
12611
|
var value = treecell.classList[parseInt(l.toString(), 10)];
|
|
12441
|
-
var remove
|
|
12612
|
+
var remove = /e-gridrowindex/i;
|
|
12442
12613
|
var removed = /e-griddetailrowindex/i;
|
|
12443
|
-
var result = value.match(remove
|
|
12614
|
+
var result = value.match(remove);
|
|
12444
12615
|
var results = value.match(removed);
|
|
12445
12616
|
if (result != null) {
|
|
12446
12617
|
removeClass([treecell], value);
|
|
@@ -12459,7 +12630,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12459
12630
|
}
|
|
12460
12631
|
}
|
|
12461
12632
|
};
|
|
12462
|
-
Edit
|
|
12633
|
+
Edit.prototype.beginAdd = function () {
|
|
12463
12634
|
var position;
|
|
12464
12635
|
var index = this.addRowIndex;
|
|
12465
12636
|
var records = this.parent.grid.getCurrentViewRecords();
|
|
@@ -12573,7 +12744,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12573
12744
|
// }
|
|
12574
12745
|
// }
|
|
12575
12746
|
// }
|
|
12576
|
-
Edit
|
|
12747
|
+
Edit.prototype.beginEdit = function (args) {
|
|
12577
12748
|
if (args.requestType === 'refresh' && this.isOnBatch) {
|
|
12578
12749
|
args.cancel = true;
|
|
12579
12750
|
return;
|
|
@@ -12685,17 +12856,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12685
12856
|
// }
|
|
12686
12857
|
// }
|
|
12687
12858
|
};
|
|
12688
|
-
Edit
|
|
12859
|
+
Edit.prototype.savePreviousRowPosition = function () {
|
|
12689
12860
|
if (this.previousNewRowPosition === null) {
|
|
12690
12861
|
this.previousNewRowPosition = this.parent.editSettings.newRowPosition;
|
|
12691
12862
|
}
|
|
12692
12863
|
};
|
|
12693
|
-
Edit
|
|
12864
|
+
Edit.prototype.beginAddEdit = function (args) {
|
|
12694
12865
|
var value = args.data;
|
|
12695
12866
|
if (args.action === 'add') {
|
|
12696
12867
|
var key = this.parent.grid.getPrimaryKeyFieldNames()[0];
|
|
12697
12868
|
var position = null;
|
|
12698
|
-
value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
|
|
12869
|
+
value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
|
|
12699
12870
|
var currentData = void 0;
|
|
12700
12871
|
if (this.parent.enableVirtualization && args.index !== 0) {
|
|
12701
12872
|
currentData = this.parent.flatData;
|
|
@@ -12747,7 +12918,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12747
12918
|
else if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
12748
12919
|
position = 'after';
|
|
12749
12920
|
if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
|
|
12750
|
-
value.parentItem = extend({}, currentData[this.addRowIndex]);
|
|
12921
|
+
value.parentItem = extend$1({}, currentData[this.addRowIndex]);
|
|
12751
12922
|
value.parentUniqueID = value.parentItem.uniqueID;
|
|
12752
12923
|
delete value.parentItem.childRecords;
|
|
12753
12924
|
delete value.parentItem[this.parent.childMapping];
|
|
@@ -12773,7 +12944,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12773
12944
|
if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
|
|
12774
12945
|
if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
|
|
12775
12946
|
value.parentUniqueID = parentUniqueID;
|
|
12776
|
-
value.parentItem = extend({}, parentItem);
|
|
12947
|
+
value.parentItem = extend$1({}, parentItem);
|
|
12777
12948
|
delete value.parentItem.childRecords;
|
|
12778
12949
|
delete value.parentItem[this.parent.childMapping];
|
|
12779
12950
|
}
|
|
@@ -12826,7 +12997,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12826
12997
|
*
|
|
12827
12998
|
* @returns {void}
|
|
12828
12999
|
*/
|
|
12829
|
-
Edit
|
|
13000
|
+
Edit.prototype.addRecord = function (data, index, position) {
|
|
12830
13001
|
if (this.parent.editSettings.newRowPosition === this.previousNewRowPosition || this.previousNewRowPosition === null) {
|
|
12831
13002
|
this.previousNewRowPosition = this.parent.editSettings.newRowPosition;
|
|
12832
13003
|
}
|
|
@@ -12871,17 +13042,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12871
13042
|
*
|
|
12872
13043
|
* @returns {boolean} Returns form validation results
|
|
12873
13044
|
*/
|
|
12874
|
-
Edit
|
|
13045
|
+
Edit.prototype.editFormValidate = function () {
|
|
12875
13046
|
return this.parent.grid.editModule.editFormValidate();
|
|
12876
13047
|
};
|
|
12877
13048
|
/**
|
|
12878
13049
|
* @hidden
|
|
12879
13050
|
* @returns {void}
|
|
12880
13051
|
*/
|
|
12881
|
-
Edit
|
|
13052
|
+
Edit.prototype.destroyForm = function () {
|
|
12882
13053
|
this.parent.grid.editModule.destroyForm();
|
|
12883
13054
|
};
|
|
12884
|
-
Edit
|
|
13055
|
+
Edit.prototype.contentready = function (e) {
|
|
12885
13056
|
if (!isNullOrUndefined(e.args.requestType)
|
|
12886
13057
|
&& (e.args.requestType.toString() === 'delete' || e.args.requestType.toString() === 'save'
|
|
12887
13058
|
|| (this.parent.editSettings.mode === 'Batch' && e.args.requestType.toString() === 'batchsave'))) {
|
|
@@ -12898,7 +13069,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12898
13069
|
*
|
|
12899
13070
|
* @returns {void}
|
|
12900
13071
|
*/
|
|
12901
|
-
Edit
|
|
13072
|
+
Edit.prototype.editCell = function (rowIndex, field) {
|
|
12902
13073
|
if (this.parent.editSettings.mode === 'Cell' || this.parent.editSettings.mode === 'Batch') {
|
|
12903
13074
|
if (this.parent.editSettings.mode !== 'Batch') {
|
|
12904
13075
|
this.isOnBatch = true;
|
|
@@ -12907,7 +13078,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12907
13078
|
this.parent.grid.editModule.editCell(rowIndex, field);
|
|
12908
13079
|
}
|
|
12909
13080
|
};
|
|
12910
|
-
return Edit
|
|
13081
|
+
return Edit;
|
|
12911
13082
|
}());
|
|
12912
13083
|
|
|
12913
13084
|
/**
|
|
@@ -12915,9 +13086,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12915
13086
|
*
|
|
12916
13087
|
* @hidden
|
|
12917
13088
|
*/
|
|
12918
|
-
var CommandColumn
|
|
12919
|
-
function CommandColumn
|
|
12920
|
-
Grid.Inject(CommandColumn);
|
|
13089
|
+
var CommandColumn = /** @__PURE__ @class */ (function () {
|
|
13090
|
+
function CommandColumn(parent) {
|
|
13091
|
+
Grid.Inject(CommandColumn$1);
|
|
12921
13092
|
this.parent = parent;
|
|
12922
13093
|
}
|
|
12923
13094
|
/**
|
|
@@ -12926,7 +13097,7 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
|
|
|
12926
13097
|
* @private
|
|
12927
13098
|
* @returns {string} Returns CommandColumn module name
|
|
12928
13099
|
*/
|
|
12929
|
-
CommandColumn
|
|
13100
|
+
CommandColumn.prototype.getModuleName = function () {
|
|
12930
13101
|
return 'commandColumn';
|
|
12931
13102
|
};
|
|
12932
13103
|
/**
|
|
@@ -12935,10 +13106,10 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
|
|
|
12935
13106
|
* @function destroy
|
|
12936
13107
|
* @returns {void}
|
|
12937
13108
|
*/
|
|
12938
|
-
CommandColumn
|
|
13109
|
+
CommandColumn.prototype.destroy = function () {
|
|
12939
13110
|
//this.removeEventListener();
|
|
12940
13111
|
};
|
|
12941
|
-
return CommandColumn
|
|
13112
|
+
return CommandColumn;
|
|
12942
13113
|
}());
|
|
12943
13114
|
|
|
12944
13115
|
/**
|
|
@@ -12946,9 +13117,9 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
|
|
|
12946
13117
|
*
|
|
12947
13118
|
* @hidden
|
|
12948
13119
|
*/
|
|
12949
|
-
var DetailRow
|
|
12950
|
-
function DetailRow
|
|
12951
|
-
Grid.Inject(DetailRow);
|
|
13120
|
+
var DetailRow = /** @__PURE__ @class */ (function () {
|
|
13121
|
+
function DetailRow(parent) {
|
|
13122
|
+
Grid.Inject(DetailRow$1);
|
|
12952
13123
|
this.parent = parent;
|
|
12953
13124
|
this.addEventListener();
|
|
12954
13125
|
}
|
|
@@ -12961,10 +13132,10 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
12961
13132
|
* @private
|
|
12962
13133
|
* @returns {string} Returns DetailRow module name
|
|
12963
13134
|
*/
|
|
12964
|
-
DetailRow
|
|
13135
|
+
DetailRow.prototype.getModuleName = function () {
|
|
12965
13136
|
return 'detailRow';
|
|
12966
13137
|
};
|
|
12967
|
-
DetailRow
|
|
13138
|
+
DetailRow.prototype.addEventListener = function () {
|
|
12968
13139
|
this.parent.on('dataBoundArg', this.dataBoundArg, this);
|
|
12969
13140
|
this.parent.on('detaildataBound', this.detaildataBound, this);
|
|
12970
13141
|
this.parent.grid.on('detail-indentcell-info', this.setIndentVisibility, this);
|
|
@@ -12976,7 +13147,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
12976
13147
|
* @hidden
|
|
12977
13148
|
* @returns {void}
|
|
12978
13149
|
*/
|
|
12979
|
-
DetailRow
|
|
13150
|
+
DetailRow.prototype.removeEventListener = function () {
|
|
12980
13151
|
if (this.parent.isDestroyed) {
|
|
12981
13152
|
return;
|
|
12982
13153
|
}
|
|
@@ -12987,11 +13158,11 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
12987
13158
|
this.parent.off('actioncomplete', this.actioncomplete);
|
|
12988
13159
|
this.parent.grid.off('detail-indentcell-info', this.setIndentVisibility);
|
|
12989
13160
|
};
|
|
12990
|
-
DetailRow
|
|
13161
|
+
DetailRow.prototype.setIndentVisibility = function (args) {
|
|
12991
13162
|
var visible = 'visible';
|
|
12992
13163
|
args["" + visible] = false;
|
|
12993
13164
|
};
|
|
12994
|
-
DetailRow
|
|
13165
|
+
DetailRow.prototype.dataBoundArg = function () {
|
|
12995
13166
|
var detailele = this.parent.getRows().filter(function (e) {
|
|
12996
13167
|
return !e.classList.contains('e-detailrow');
|
|
12997
13168
|
});
|
|
@@ -13005,13 +13176,13 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
13005
13176
|
}
|
|
13006
13177
|
}
|
|
13007
13178
|
};
|
|
13008
|
-
DetailRow
|
|
13179
|
+
DetailRow.prototype.childRowExpand = function (args) {
|
|
13009
13180
|
var detailRowElement = args.row.getElementsByClassName('e-detailrowcollapse');
|
|
13010
13181
|
if (!isNullOrUndefined(detailRowElement[0])) {
|
|
13011
13182
|
this.parent.grid.detailRowModule.expand(detailRowElement[0]);
|
|
13012
13183
|
}
|
|
13013
13184
|
};
|
|
13014
|
-
DetailRow
|
|
13185
|
+
DetailRow.prototype.rowExpandCollapse = function (args) {
|
|
13015
13186
|
if (isRemoteData(this.parent)) {
|
|
13016
13187
|
return;
|
|
13017
13188
|
}
|
|
@@ -13019,7 +13190,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
13019
13190
|
args.detailrows[parseInt(i.toString(), 10)].style.display = args.action;
|
|
13020
13191
|
}
|
|
13021
13192
|
};
|
|
13022
|
-
DetailRow
|
|
13193
|
+
DetailRow.prototype.detaildataBound = function (args) {
|
|
13023
13194
|
var data = args.data;
|
|
13024
13195
|
var row = args.detailElement.parentElement.previousSibling;
|
|
13025
13196
|
var index = !isNullOrUndefined(data.parentItem) ? data.parentItem.index : data.index;
|
|
@@ -13031,7 +13202,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
13031
13202
|
var detailClass = 'e-griddetail' + slicedclas;
|
|
13032
13203
|
addClass([args.detailElement.parentElement], detailClass);
|
|
13033
13204
|
};
|
|
13034
|
-
DetailRow
|
|
13205
|
+
DetailRow.prototype.actioncomplete = function (args) {
|
|
13035
13206
|
if (args.requestType === 'beginEdit' || args.requestType === 'add') {
|
|
13036
13207
|
var spann = (args.row.querySelectorAll('.e-editcell')[0].getAttribute('colSpan'));
|
|
13037
13208
|
var colum = parseInt(spann, 10) - 1;
|
|
@@ -13052,13 +13223,13 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
|
|
|
13052
13223
|
* @function destroy
|
|
13053
13224
|
* @returns {void}
|
|
13054
13225
|
*/
|
|
13055
|
-
DetailRow
|
|
13226
|
+
DetailRow.prototype.destroy = function () {
|
|
13056
13227
|
this.removeEventListener();
|
|
13057
13228
|
};
|
|
13058
|
-
return DetailRow
|
|
13229
|
+
return DetailRow;
|
|
13059
13230
|
}());
|
|
13060
13231
|
|
|
13061
|
-
var __extends$
|
|
13232
|
+
var __extends$g = (undefined && undefined.__extends) || (function () {
|
|
13062
13233
|
var extendStatics = function (d, b) {
|
|
13063
13234
|
extendStatics = Object.setPrototypeOf ||
|
|
13064
13235
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13072,7 +13243,7 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
|
|
|
13072
13243
|
};
|
|
13073
13244
|
})();
|
|
13074
13245
|
var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
13075
|
-
__extends$
|
|
13246
|
+
__extends$g(VirtualTreeContentRenderer, _super);
|
|
13076
13247
|
function VirtualTreeContentRenderer(parent, locator) {
|
|
13077
13248
|
var _this = _super.call(this, parent, locator) || this;
|
|
13078
13249
|
_this.isExpandCollapse = false;
|
|
@@ -13103,6 +13274,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13103
13274
|
VirtualTreeContentRenderer.prototype.getFrozenRightVirtualRowByIndex = function (index) {
|
|
13104
13275
|
return this.getRowCollection(index, false, false, true);
|
|
13105
13276
|
};
|
|
13277
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13106
13278
|
VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
|
|
13107
13279
|
var startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
|
|
13108
13280
|
var rowCollection = this.parent.getDataRows();
|
|
@@ -13135,10 +13307,10 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13135
13307
|
}
|
|
13136
13308
|
};
|
|
13137
13309
|
VirtualTreeContentRenderer.prototype.indexModifier = function (args) {
|
|
13138
|
-
var content
|
|
13310
|
+
var content = this.parent.getContent().querySelector('.e-content');
|
|
13139
13311
|
if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
|
|
13140
13312
|
if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
|
|
13141
|
-
var nextSetResIndex = ~~(content
|
|
13313
|
+
var nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
|
|
13142
13314
|
var lastIndex = nextSetResIndex + this.parent.getRows().length;
|
|
13143
13315
|
if (lastIndex > args.count) {
|
|
13144
13316
|
lastIndex = nextSetResIndex +
|
|
@@ -13267,8 +13439,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13267
13439
|
_super.prototype["" + dataBoundEve].call(this);
|
|
13268
13440
|
};
|
|
13269
13441
|
VirtualTreeContentRenderer.prototype.rowSelectedEvent = function (args) {
|
|
13270
|
-
var rowSelected
|
|
13271
|
-
_super.prototype["" + rowSelected
|
|
13442
|
+
var rowSelected = 'rowSelected';
|
|
13443
|
+
_super.prototype["" + rowSelected].call(this, args);
|
|
13272
13444
|
};
|
|
13273
13445
|
VirtualTreeContentRenderer.prototype.toSelectVirtualRow = function (args) {
|
|
13274
13446
|
if (this.parent.isEdit) {
|
|
@@ -13353,8 +13525,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13353
13525
|
};
|
|
13354
13526
|
VirtualTreeContentRenderer.prototype.virtualEditSuccess = function () {
|
|
13355
13527
|
var isAdd = 'isAdd';
|
|
13356
|
-
var content
|
|
13357
|
-
if (this["" + isAdd] && content
|
|
13528
|
+
var content = this.parent.getContent().querySelector('.e-content');
|
|
13529
|
+
if (this["" + isAdd] && content.querySelector('.e-addedrow')) {
|
|
13358
13530
|
this.recordAdded = true;
|
|
13359
13531
|
}
|
|
13360
13532
|
};
|
|
@@ -13368,8 +13540,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13368
13540
|
};
|
|
13369
13541
|
VirtualTreeContentRenderer.prototype.restoreNewRow = function () {
|
|
13370
13542
|
var isAdd = 'isAdd';
|
|
13371
|
-
var content
|
|
13372
|
-
if (this["" + isAdd] && !content
|
|
13543
|
+
var content = this.parent.getContent().querySelector('.e-content');
|
|
13544
|
+
if (this["" + isAdd] && !content.querySelector('.e-addedrow')) {
|
|
13373
13545
|
this.parent.isEdit = false;
|
|
13374
13546
|
this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
|
|
13375
13547
|
}
|
|
@@ -13386,8 +13558,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13386
13558
|
this.addRowIndex = addArgs.addRowIndex;
|
|
13387
13559
|
this.dataRowIndex = this.parent.root.editModule.selectedIndex;
|
|
13388
13560
|
}
|
|
13389
|
-
var actionComplete
|
|
13390
|
-
_super.prototype["" + actionComplete
|
|
13561
|
+
var actionComplete = 'actionComplete';
|
|
13562
|
+
_super.prototype["" + actionComplete].call(this, args);
|
|
13391
13563
|
};
|
|
13392
13564
|
VirtualTreeContentRenderer.prototype.onEnteredAction = function () {
|
|
13393
13565
|
var _this = this;
|
|
@@ -13436,7 +13608,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13436
13608
|
var info = scrollArgs.sentinel;
|
|
13437
13609
|
var rowHeight = this.parent.getRowHeight();
|
|
13438
13610
|
var outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
|
|
13439
|
-
var content
|
|
13611
|
+
var content = this.parent.getContent().querySelector('.e-content');
|
|
13440
13612
|
var scrollHeight = outBuffer * rowHeight;
|
|
13441
13613
|
var upScroll = (scrollArgs.offset.top - this.translateY) < 0;
|
|
13442
13614
|
var downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
|
|
@@ -13446,7 +13618,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13446
13618
|
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13447
13619
|
var vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
|
|
13448
13620
|
this.parent.element.getBoundingClientRect().height);
|
|
13449
|
-
var index = (~~(content
|
|
13621
|
+
var index = (~~(content.scrollTop / rowHeight)
|
|
13450
13622
|
+ Math.ceil(vHeight / rowHeight))
|
|
13451
13623
|
- this.parent.pageSettings.pageSize;
|
|
13452
13624
|
index = (index > 0) ? index : 0;
|
|
@@ -13491,7 +13663,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13491
13663
|
}
|
|
13492
13664
|
}
|
|
13493
13665
|
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13494
|
-
var nextSetResIndex = ~~(content
|
|
13666
|
+
var nextSetResIndex = ~~(content.scrollTop / rowHeight);
|
|
13495
13667
|
var isLastBlock = (this["" + selectedRowIndex] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
|
|
13496
13668
|
if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 &&
|
|
13497
13669
|
nextSetResIndex !== this["" + selectedRowIndex] && !isLastBlock) {
|
|
@@ -13513,7 +13685,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13513
13685
|
this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
|
|
13514
13686
|
}
|
|
13515
13687
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
13516
|
-
this.translateY = this.getTranslateY(scrollArgs.offset.top, content
|
|
13688
|
+
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
13517
13689
|
}
|
|
13518
13690
|
else {
|
|
13519
13691
|
if (this.totalRecords === this.endIndex) {
|
|
@@ -13540,10 +13712,10 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13540
13712
|
this.previousInfo = viewInfo;
|
|
13541
13713
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13542
13714
|
var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13715
|
+
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13543
13716
|
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13544
13717
|
viewInfo.loadNext = false;
|
|
13545
13718
|
}
|
|
13546
|
-
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13547
13719
|
this.requestType = 'virtualscroll';
|
|
13548
13720
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
13549
13721
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -13648,7 +13820,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13648
13820
|
return VirtualTreeContentRenderer;
|
|
13649
13821
|
}(VirtualContentRenderer));
|
|
13650
13822
|
var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
|
|
13651
|
-
__extends$
|
|
13823
|
+
__extends$g(TreeInterSectionObserver, _super);
|
|
13652
13824
|
function TreeInterSectionObserver() {
|
|
13653
13825
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13654
13826
|
_this.isWheeling = false;
|
|
@@ -13742,7 +13914,7 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
|
|
|
13742
13914
|
return TreeInterSectionObserver;
|
|
13743
13915
|
}(InterSectionObserver));
|
|
13744
13916
|
|
|
13745
|
-
var __extends$
|
|
13917
|
+
var __extends$h = (undefined && undefined.__extends) || (function () {
|
|
13746
13918
|
var extendStatics = function (d, b) {
|
|
13747
13919
|
extendStatics = Object.setPrototypeOf ||
|
|
13748
13920
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13760,20 +13932,20 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
|
|
|
13760
13932
|
*
|
|
13761
13933
|
* @hidden
|
|
13762
13934
|
*/
|
|
13763
|
-
var VirtualScroll
|
|
13935
|
+
var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
13764
13936
|
/**
|
|
13765
13937
|
* Constructor for VirtualScroll module
|
|
13766
13938
|
*
|
|
13767
13939
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
13768
13940
|
*/
|
|
13769
|
-
function VirtualScroll
|
|
13941
|
+
function VirtualScroll(parent) {
|
|
13770
13942
|
this.prevstartIndex = -1;
|
|
13771
13943
|
this.prevendIndex = -1;
|
|
13772
13944
|
this.parent = parent;
|
|
13773
13945
|
Grid.Inject(TreeVirtual);
|
|
13774
13946
|
this.addEventListener();
|
|
13775
13947
|
}
|
|
13776
|
-
VirtualScroll
|
|
13948
|
+
VirtualScroll.prototype.returnVisualData = function (args) {
|
|
13777
13949
|
args.data = this.visualData;
|
|
13778
13950
|
};
|
|
13779
13951
|
/**
|
|
@@ -13782,14 +13954,14 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13782
13954
|
* @private
|
|
13783
13955
|
* @returns {string} - Returns VirtualScroll module name
|
|
13784
13956
|
*/
|
|
13785
|
-
VirtualScroll
|
|
13957
|
+
VirtualScroll.prototype.getModuleName = function () {
|
|
13786
13958
|
return 'virtualScroll';
|
|
13787
13959
|
};
|
|
13788
13960
|
/**
|
|
13789
13961
|
* @hidden
|
|
13790
13962
|
* @returns {void}
|
|
13791
13963
|
*/
|
|
13792
|
-
VirtualScroll
|
|
13964
|
+
VirtualScroll.prototype.addEventListener = function () {
|
|
13793
13965
|
if (this.parent.isDestroyed) {
|
|
13794
13966
|
return;
|
|
13795
13967
|
}
|
|
@@ -13801,7 +13973,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13801
13973
|
* @hidden
|
|
13802
13974
|
* @returns {void}
|
|
13803
13975
|
*/
|
|
13804
|
-
VirtualScroll
|
|
13976
|
+
VirtualScroll.prototype.removeEventListener = function () {
|
|
13805
13977
|
if (this.parent.isDestroyed) {
|
|
13806
13978
|
return;
|
|
13807
13979
|
}
|
|
@@ -13809,7 +13981,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13809
13981
|
this.parent.off(pagingActions, this.virtualPageAction);
|
|
13810
13982
|
this.parent.off(destroy, this.destroy);
|
|
13811
13983
|
};
|
|
13812
|
-
VirtualScroll
|
|
13984
|
+
VirtualScroll.prototype.collapseExpandVirtualchilds = function (row) {
|
|
13813
13985
|
this.parent.grid.notify(virtualActionArgs, { isExpandCollapse: true });
|
|
13814
13986
|
this.expandCollapseRec = row.record;
|
|
13815
13987
|
row.record.expanded = row.action === 'collapse' ? false : true;
|
|
@@ -13827,13 +13999,13 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13827
13999
|
var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
|
|
13828
14000
|
getValue('grid.renderModule', this.parent).dataManagerSuccess(ret, { requestType: requestType });
|
|
13829
14001
|
};
|
|
13830
|
-
VirtualScroll
|
|
14002
|
+
VirtualScroll.prototype.virtualPageAction = function (pageingDetails) {
|
|
13831
14003
|
var _this = this;
|
|
13832
14004
|
var dm = new DataManager(pageingDetails.result);
|
|
13833
|
-
var expanded
|
|
13834
|
-
var parents = dm.executeLocal(new Query().where(expanded
|
|
14005
|
+
var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
14006
|
+
var parents = dm.executeLocal(new Query().where(expanded));
|
|
13835
14007
|
var visualData = parents.filter(function (e) {
|
|
13836
|
-
return getExpandStatus(_this.parent, e
|
|
14008
|
+
return getExpandStatus(_this.parent, e);
|
|
13837
14009
|
});
|
|
13838
14010
|
this.visualData = visualData;
|
|
13839
14011
|
pageingDetails.count = visualData.length;
|
|
@@ -13922,13 +14094,13 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13922
14094
|
* @returns {void}
|
|
13923
14095
|
* @hidden
|
|
13924
14096
|
*/
|
|
13925
|
-
VirtualScroll
|
|
14097
|
+
VirtualScroll.prototype.destroy = function () {
|
|
13926
14098
|
this.removeEventListener();
|
|
13927
14099
|
};
|
|
13928
|
-
return VirtualScroll
|
|
14100
|
+
return VirtualScroll;
|
|
13929
14101
|
}());
|
|
13930
14102
|
var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
|
|
13931
|
-
__extends$
|
|
14103
|
+
__extends$h(TreeVirtual, _super);
|
|
13932
14104
|
function TreeVirtual(parent, locator) {
|
|
13933
14105
|
var _this = _super.call(this, parent, locator) || this;
|
|
13934
14106
|
getValue('parent', _this).off('initial-load', getValue('instantiateRenderer', _this), _this);
|
|
@@ -13964,30 +14136,30 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
|
|
|
13964
14136
|
parentGrid.setProperties({ pageSettings: { pageSize: size < height ? height : size } }, true);
|
|
13965
14137
|
};
|
|
13966
14138
|
return TreeVirtual;
|
|
13967
|
-
}(VirtualScroll));
|
|
14139
|
+
}(VirtualScroll$1));
|
|
13968
14140
|
|
|
13969
14141
|
/**
|
|
13970
14142
|
* TreeGrid Freeze module
|
|
13971
14143
|
*
|
|
13972
14144
|
* @hidden
|
|
13973
14145
|
*/
|
|
13974
|
-
var Freeze
|
|
14146
|
+
var Freeze = /** @__PURE__ @class */ (function () {
|
|
13975
14147
|
/**
|
|
13976
14148
|
* Constructor for render module
|
|
13977
14149
|
*
|
|
13978
14150
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
13979
14151
|
*/
|
|
13980
|
-
function Freeze
|
|
13981
|
-
Grid.Inject(Freeze);
|
|
14152
|
+
function Freeze(parent) {
|
|
14153
|
+
Grid.Inject(Freeze$1);
|
|
13982
14154
|
this.parent = parent;
|
|
13983
14155
|
this.addEventListener();
|
|
13984
14156
|
}
|
|
13985
|
-
Freeze
|
|
14157
|
+
Freeze.prototype.addEventListener = function () {
|
|
13986
14158
|
this.parent.on('rowExpandCollapse', this.rowExpandCollapse, this);
|
|
13987
14159
|
this.parent.on('dataBoundArg', this.dataBoundArg, this);
|
|
13988
14160
|
this.parent.grid.on('dblclick', this.dblClickHandler, this);
|
|
13989
14161
|
};
|
|
13990
|
-
Freeze
|
|
14162
|
+
Freeze.prototype.removeEventListener = function () {
|
|
13991
14163
|
if (this.parent.isDestroyed) {
|
|
13992
14164
|
return;
|
|
13993
14165
|
}
|
|
@@ -13995,7 +14167,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
13995
14167
|
this.parent.off('dataBoundArg', this.dataBoundArg);
|
|
13996
14168
|
this.parent.grid.off('dblclick', this.dblClickHandler);
|
|
13997
14169
|
};
|
|
13998
|
-
Freeze
|
|
14170
|
+
Freeze.prototype.rowExpandCollapse = function (args) {
|
|
13999
14171
|
var movableRows = this.parent.getDataRows();
|
|
14000
14172
|
var frozenrows = this.parent.getRows();
|
|
14001
14173
|
var rows;
|
|
@@ -14041,13 +14213,13 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
14041
14213
|
}
|
|
14042
14214
|
}
|
|
14043
14215
|
};
|
|
14044
|
-
Freeze
|
|
14216
|
+
Freeze.prototype.dblClickHandler = function (e) {
|
|
14045
14217
|
if (parentsUntil(e.target, 'e-rowcell') &&
|
|
14046
14218
|
this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
|
|
14047
14219
|
this.parent.startEdit(parentsUntil(e.target, 'e-row'));
|
|
14048
14220
|
}
|
|
14049
14221
|
};
|
|
14050
|
-
Freeze
|
|
14222
|
+
Freeze.prototype.dataBoundArg = function () {
|
|
14051
14223
|
var checkboxColumn = this.parent.getColumns().filter(function (e) {
|
|
14052
14224
|
return e.showCheckbox;
|
|
14053
14225
|
});
|
|
@@ -14055,7 +14227,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
14055
14227
|
addClass([this.parent.element.getElementsByClassName('e-grid')[0]], 'e-checkselection');
|
|
14056
14228
|
}
|
|
14057
14229
|
};
|
|
14058
|
-
Freeze
|
|
14230
|
+
Freeze.prototype.destroy = function () {
|
|
14059
14231
|
this.removeEventListener();
|
|
14060
14232
|
};
|
|
14061
14233
|
/**
|
|
@@ -14064,10 +14236,10 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
14064
14236
|
* @private
|
|
14065
14237
|
* @returns {string} Returns Freeze module name
|
|
14066
14238
|
*/
|
|
14067
|
-
Freeze
|
|
14239
|
+
Freeze.prototype.getModuleName = function () {
|
|
14068
14240
|
return 'freeze';
|
|
14069
14241
|
};
|
|
14070
|
-
return Freeze
|
|
14242
|
+
return Freeze;
|
|
14071
14243
|
}());
|
|
14072
14244
|
|
|
14073
14245
|
/**
|
|
@@ -14075,14 +14247,14 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
14075
14247
|
*
|
|
14076
14248
|
* @hidden
|
|
14077
14249
|
*/
|
|
14078
|
-
var ColumnChooser
|
|
14250
|
+
var ColumnChooser = /** @__PURE__ @class */ (function () {
|
|
14079
14251
|
/**
|
|
14080
14252
|
* Constructor for render module
|
|
14081
14253
|
*
|
|
14082
14254
|
* @param {TreeGrid} parent - Tree Grid instance.
|
|
14083
14255
|
*/
|
|
14084
|
-
function ColumnChooser
|
|
14085
|
-
Grid.Inject(ColumnChooser);
|
|
14256
|
+
function ColumnChooser(parent) {
|
|
14257
|
+
Grid.Inject(ColumnChooser$1);
|
|
14086
14258
|
this.parent = parent;
|
|
14087
14259
|
}
|
|
14088
14260
|
/**
|
|
@@ -14092,7 +14264,7 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
|
|
|
14092
14264
|
* @param {number} Y - Defines the Y axis.
|
|
14093
14265
|
* @returns {void}
|
|
14094
14266
|
*/
|
|
14095
|
-
ColumnChooser
|
|
14267
|
+
ColumnChooser.prototype.openColumnChooser = function (X, Y) {
|
|
14096
14268
|
return this.parent.grid.columnChooserModule.openColumnChooser(X, Y);
|
|
14097
14269
|
};
|
|
14098
14270
|
/**
|
|
@@ -14101,7 +14273,7 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
|
|
|
14101
14273
|
* @function destroy
|
|
14102
14274
|
* @returns {void}
|
|
14103
14275
|
*/
|
|
14104
|
-
ColumnChooser
|
|
14276
|
+
ColumnChooser.prototype.destroy = function () {
|
|
14105
14277
|
//this.parent.grid.ColumnChooserModule.destroy();
|
|
14106
14278
|
};
|
|
14107
14279
|
/**
|
|
@@ -14110,10 +14282,10 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
|
|
|
14110
14282
|
* @private
|
|
14111
14283
|
* @returns {string} Returns ColumnChooser module name
|
|
14112
14284
|
*/
|
|
14113
|
-
ColumnChooser
|
|
14285
|
+
ColumnChooser.prototype.getModuleName = function () {
|
|
14114
14286
|
return 'ColumnChooser';
|
|
14115
14287
|
};
|
|
14116
|
-
return ColumnChooser
|
|
14288
|
+
return ColumnChooser;
|
|
14117
14289
|
}());
|
|
14118
14290
|
|
|
14119
14291
|
/**
|
|
@@ -14121,15 +14293,15 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
|
|
|
14121
14293
|
*
|
|
14122
14294
|
* @hidden
|
|
14123
14295
|
*/
|
|
14124
|
-
var InfiniteScroll
|
|
14296
|
+
var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
14125
14297
|
/**
|
|
14126
14298
|
* Constructor for VirtualScroll module
|
|
14127
14299
|
*
|
|
14128
14300
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
14129
14301
|
*/
|
|
14130
|
-
function InfiniteScroll
|
|
14302
|
+
function InfiniteScroll(parent) {
|
|
14131
14303
|
this.parent = parent;
|
|
14132
|
-
Grid.Inject(InfiniteScroll);
|
|
14304
|
+
Grid.Inject(InfiniteScroll$1);
|
|
14133
14305
|
this.addEventListener();
|
|
14134
14306
|
}
|
|
14135
14307
|
/**
|
|
@@ -14138,14 +14310,14 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14138
14310
|
* @private
|
|
14139
14311
|
* @returns {string} - Returns Logger module name
|
|
14140
14312
|
*/
|
|
14141
|
-
InfiniteScroll
|
|
14313
|
+
InfiniteScroll.prototype.getModuleName = function () {
|
|
14142
14314
|
return 'infiniteScroll';
|
|
14143
14315
|
};
|
|
14144
14316
|
/**
|
|
14145
14317
|
* @hidden
|
|
14146
14318
|
* @returns {void}
|
|
14147
14319
|
*/
|
|
14148
|
-
InfiniteScroll
|
|
14320
|
+
InfiniteScroll.prototype.addEventListener = function () {
|
|
14149
14321
|
this.parent.on(pagingActions, this.infinitePageAction, this);
|
|
14150
14322
|
this.parent.on('infinite-remote-expand', this.infiniteRemoteExpand, this);
|
|
14151
14323
|
this.parent.grid.on('delete-complete', this.infiniteDeleteHandler, this);
|
|
@@ -14157,7 +14329,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14157
14329
|
* @hidden
|
|
14158
14330
|
* @returns {void}
|
|
14159
14331
|
*/
|
|
14160
|
-
InfiniteScroll
|
|
14332
|
+
InfiniteScroll.prototype.removeEventListener = function () {
|
|
14161
14333
|
if (this.parent.isDestroyed) {
|
|
14162
14334
|
return;
|
|
14163
14335
|
}
|
|
@@ -14176,7 +14348,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14176
14348
|
* @param { ITreeData[] } args.childData - child data of expanded row
|
|
14177
14349
|
* @returns {void}
|
|
14178
14350
|
*/
|
|
14179
|
-
InfiniteScroll
|
|
14351
|
+
InfiniteScroll.prototype.infiniteRemoteExpand = function (args) {
|
|
14180
14352
|
var rowObjects = this.parent.grid.getRowsObject();
|
|
14181
14353
|
var locator = 'serviceLocator';
|
|
14182
14354
|
var generateRows = 'generateRows';
|
|
@@ -14207,7 +14379,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14207
14379
|
*
|
|
14208
14380
|
* @returns {void}
|
|
14209
14381
|
*/
|
|
14210
|
-
InfiniteScroll
|
|
14382
|
+
InfiniteScroll.prototype.contentready = function () {
|
|
14211
14383
|
if (this.parent.infiniteScrollSettings.enableCache && !isNullOrUndefined(this.parent.editModule)) {
|
|
14212
14384
|
var updateIndex = 'updateIndex';
|
|
14213
14385
|
this.parent.editModule["" + updateIndex](this.parent.grid.dataSource, this.parent.getRows(), this.parent.getCurrentViewRecords());
|
|
@@ -14225,10 +14397,10 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14225
14397
|
* @param {Object} pageingDetails.actionArgs - scroll action details
|
|
14226
14398
|
* @returns {void}
|
|
14227
14399
|
*/
|
|
14228
|
-
InfiniteScroll
|
|
14400
|
+
InfiniteScroll.prototype.infinitePageAction = function (pageingDetails) {
|
|
14229
14401
|
var dm = new DataManager(pageingDetails.result);
|
|
14230
|
-
var expanded
|
|
14231
|
-
var visualData = dm.executeLocal(new Query().where(expanded
|
|
14402
|
+
var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
14403
|
+
var visualData = dm.executeLocal(new Query().where(expanded));
|
|
14232
14404
|
var actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
|
|
14233
14405
|
var actions = getValue('actions', this.parent.grid.infiniteScrollModule);
|
|
14234
14406
|
if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
|
|
@@ -14289,7 +14461,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14289
14461
|
* @param {Object[]} args.result - data details while CRUD
|
|
14290
14462
|
* @returns {void}
|
|
14291
14463
|
*/
|
|
14292
|
-
InfiniteScroll
|
|
14464
|
+
InfiniteScroll.prototype.infiniteEditHandler = function (args) {
|
|
14293
14465
|
var infiniteData = 'infiniteCurrentViewData';
|
|
14294
14466
|
var infiniteCurrentViewData = this.parent.grid.infiniteScrollModule["" + infiniteData];
|
|
14295
14467
|
var keys = Object.keys(infiniteCurrentViewData);
|
|
@@ -14305,7 +14477,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14305
14477
|
* @param {ActionEventArgs} args - crud action details
|
|
14306
14478
|
* @returns {void}
|
|
14307
14479
|
*/
|
|
14308
|
-
InfiniteScroll
|
|
14480
|
+
InfiniteScroll.prototype.infiniteDeleteHandler = function (args) {
|
|
14309
14481
|
if (args.requestType === 'delete') {
|
|
14310
14482
|
var rows = this.parent.grid.getRowsObject();
|
|
14311
14483
|
var rowElms = this.parent.getRows();
|
|
@@ -14329,7 +14501,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14329
14501
|
* @param { boolean} isFrozen - Specifies whether frozen column enabled
|
|
14330
14502
|
* @returns {void}
|
|
14331
14503
|
*/
|
|
14332
|
-
InfiniteScroll
|
|
14504
|
+
InfiniteScroll.prototype.removeRows = function (rowElms, rows, data, keyField, isFrozen) {
|
|
14333
14505
|
var _this = this;
|
|
14334
14506
|
var resetInfiniteCurrentViewData = 'resetInfiniteCurrentViewData';
|
|
14335
14507
|
var _loop_1 = function (i) {
|
|
@@ -14352,7 +14524,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14352
14524
|
/**
|
|
14353
14525
|
* Handles the row objects for Add operation.
|
|
14354
14526
|
*/
|
|
14355
|
-
InfiniteScroll
|
|
14527
|
+
InfiniteScroll.prototype.createRows = function (eventArgs) {
|
|
14356
14528
|
var locator = 'serviceLocator';
|
|
14357
14529
|
var actionArgs = eventArgs.args.e;
|
|
14358
14530
|
var row = eventArgs.row;
|
|
@@ -14417,23 +14589,11 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
14417
14589
|
* @returns {void}
|
|
14418
14590
|
* @hidden
|
|
14419
14591
|
*/
|
|
14420
|
-
InfiniteScroll
|
|
14592
|
+
InfiniteScroll.prototype.destroy = function () {
|
|
14421
14593
|
this.removeEventListener();
|
|
14422
14594
|
};
|
|
14423
|
-
return InfiniteScroll
|
|
14595
|
+
return InfiniteScroll;
|
|
14424
14596
|
}());
|
|
14425
14597
|
|
|
14426
|
-
|
|
14427
|
-
* actions export
|
|
14428
|
-
*/
|
|
14429
|
-
|
|
14430
|
-
/**
|
|
14431
|
-
* TreeGrid component exported items
|
|
14432
|
-
*/
|
|
14433
|
-
|
|
14434
|
-
/**
|
|
14435
|
-
* Export TreeGrid component
|
|
14436
|
-
*/
|
|
14437
|
-
|
|
14438
|
-
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 };
|
|
14598
|
+
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 };
|
|
14439
14599
|
//# sourceMappingURL=ej2-treegrid.es5.js.map
|