@syncfusion/ej2-treegrid 25.2.6 → 26.1.35-469198
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 +243 -259
- package/README.md +83 -83
- package/dist/ej2-treegrid.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +698 -530
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +1215 -1046
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +1 -10
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/undefined +602 -0
- package/license +9 -9
- package/package.json +70 -70
- package/src/treegrid/actions/clipboard.js +13 -13
- package/src/treegrid/actions/edit.js +8 -7
- package/src/treegrid/actions/excel-export.js +4 -3
- package/src/treegrid/actions/logger.js +13 -13
- package/src/treegrid/actions/page.js +4 -0
- package/src/treegrid/actions/rowdragdrop.js +25 -14
- package/src/treegrid/actions/selection.js +4 -1
- package/src/treegrid/actions/virtual-scroll.js +13 -13
- 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 +875 -875
- package/src/treegrid/base/treegrid.js +260 -92
- package/src/treegrid/models/column-model.d.ts +6 -6
- package/src/treegrid/models/column.js +19 -19
- package/src/treegrid/models/edit-settings-model.d.ts +72 -72
- package/src/treegrid/models/edit-settings.js +19 -19
- package/src/treegrid/models/filter-settings-model.d.ts +206 -206
- package/src/treegrid/models/filter-settings.js +19 -19
- package/src/treegrid/models/infinite-scroll-settings-model.d.ts +16 -16
- package/src/treegrid/models/infinite-scroll-settings.js +19 -19
- package/src/treegrid/models/loading-indicator.js +19 -19
- package/src/treegrid/models/page-settings-model.d.ts +46 -46
- package/src/treegrid/models/page-settings.js +19 -19
- package/src/treegrid/models/rowdrop-settings-model.d.ts +6 -6
- package/src/treegrid/models/rowdrop-settings.js +19 -19
- package/src/treegrid/models/search-settings-model.d.ts +60 -60
- package/src/treegrid/models/search-settings.js +19 -19
- package/src/treegrid/models/selection-settings-model.d.ts +66 -66
- package/src/treegrid/models/selection-settings.js +19 -19
- package/src/treegrid/models/sort-settings-model.d.ts +24 -24
- package/src/treegrid/models/sort-settings.js +19 -19
- package/src/treegrid/models/summary-model.d.ts +64 -64
- package/src/treegrid/models/summary.js +19 -19
- package/src/treegrid/models/textwrap-settings-model.d.ts +9 -9
- package/src/treegrid/models/textwrap-settings.js +19 -19
- package/src/treegrid/renderer/virtual-row-model-generator.js +15 -15
- package/src/treegrid/renderer/virtual-tree-content-render.js +15 -14
- package/styles/bds-lite.css +745 -0
- package/styles/bds-lite.scss +18 -0
- package/styles/bds.css +765 -0
- package/styles/bds.scss +19 -0
- package/styles/bootstrap-dark-lite.css +506 -0
- package/styles/bootstrap-dark-lite.scss +18 -0
- package/styles/bootstrap-dark.css +187 -117
- package/styles/bootstrap-dark.scss +19 -1
- package/styles/bootstrap-lite.css +509 -0
- package/styles/bootstrap-lite.scss +18 -0
- package/styles/bootstrap.css +190 -121
- package/styles/bootstrap.scss +19 -1
- package/styles/bootstrap4-lite.css +550 -0
- package/styles/bootstrap4-lite.scss +18 -0
- package/styles/bootstrap4.css +194 -133
- package/styles/bootstrap4.scss +19 -1
- package/styles/bootstrap5-dark-lite.css +545 -0
- package/styles/bootstrap5-dark-lite.scss +18 -0
- package/styles/bootstrap5-dark.css +189 -123
- package/styles/bootstrap5-dark.scss +19 -1
- package/styles/bootstrap5-lite.css +545 -0
- package/styles/bootstrap5-lite.scss +18 -0
- package/styles/bootstrap5.3-lite.css +1637 -0
- package/styles/bootstrap5.3-lite.scss +18 -0
- package/styles/bootstrap5.3.css +1657 -0
- package/styles/bootstrap5.3.scss +19 -0
- package/styles/bootstrap5.css +188 -122
- package/styles/bootstrap5.scss +19 -1
- package/styles/fabric-dark-lite.css +485 -0
- package/styles/fabric-dark-lite.scss +18 -0
- package/styles/fabric-dark.css +188 -118
- package/styles/fabric-dark.scss +19 -1
- package/styles/fabric-lite.css +485 -0
- package/styles/fabric-lite.scss +18 -0
- package/styles/fabric.css +188 -111
- package/styles/fabric.scss +19 -1
- package/styles/fluent-dark-lite.css +548 -0
- package/styles/fluent-dark-lite.scss +18 -0
- package/styles/fluent-dark.css +195 -116
- package/styles/fluent-dark.scss +19 -1
- package/styles/fluent-lite.css +548 -0
- package/styles/fluent-lite.scss +18 -0
- package/styles/fluent.css +195 -116
- package/styles/fluent.scss +19 -1
- package/styles/fluent2-lite.css +1856 -0
- package/styles/fluent2-lite.scss +18 -0
- package/styles/fluent2.css +1879 -0
- package/styles/fluent2.scss +19 -0
- package/styles/highcontrast-light-lite.css +491 -0
- package/styles/highcontrast-light-lite.scss +18 -0
- package/styles/highcontrast-light.css +185 -103
- package/styles/highcontrast-light.scss +19 -1
- package/styles/highcontrast-lite.css +498 -0
- package/styles/highcontrast-lite.scss +18 -0
- package/styles/highcontrast.css +196 -107
- package/styles/highcontrast.scss +19 -1
- package/styles/material-dark-lite.css +567 -0
- package/styles/material-dark-lite.scss +18 -0
- package/styles/material-dark.css +220 -105
- package/styles/material-dark.scss +19 -1
- package/styles/material-lite.css +591 -0
- package/styles/material-lite.scss +18 -0
- package/styles/material.css +234 -129
- package/styles/material.scss +19 -1
- package/styles/material3-dark-lite.css +1666 -0
- package/styles/material3-dark-lite.scss +18 -0
- package/styles/material3-dark.css +1310 -187
- package/styles/material3-dark.scss +19 -1
- package/styles/material3-lite.css +1668 -0
- package/styles/material3-lite.scss +18 -0
- package/styles/material3.css +1311 -242
- package/styles/material3.scss +19 -1
- package/styles/tailwind-dark-lite.css +518 -0
- package/styles/tailwind-dark-lite.scss +18 -0
- package/styles/tailwind-dark.css +196 -103
- package/styles/tailwind-dark.scss +19 -1
- package/styles/tailwind-lite.css +518 -0
- package/styles/tailwind-lite.scss +18 -0
- package/styles/tailwind.css +196 -103
- package/styles/tailwind.scss +19 -1
- package/styles/tailwind3-lite.css +1697 -0
- package/styles/tailwind3-lite.scss +18 -0
- package/styles/tailwind3.css +1717 -0
- package/styles/tailwind3.scss +19 -0
- package/styles/treegrid/_all.scss +2 -2
- package/styles/treegrid/_bds-definition.scss +49 -28
- package/styles/treegrid/_bigger.scss +66 -0
- package/styles/treegrid/_bootstrap-dark-definition.scss +54 -30
- package/styles/treegrid/_bootstrap-definition.scss +54 -30
- package/styles/treegrid/_bootstrap4-definition.scss +54 -30
- package/styles/treegrid/_bootstrap5-definition.scss +49 -28
- package/styles/treegrid/_bootstrap5.3-definition.scss +49 -0
- package/styles/treegrid/_fabric-dark-definition.scss +54 -30
- package/styles/treegrid/_fabric-definition.scss +54 -30
- package/styles/treegrid/_fluent-definition.scss +50 -29
- package/styles/treegrid/_fluent2-definition.scss +49 -0
- package/styles/treegrid/_fusionnew-definition.scss +49 -28
- package/styles/treegrid/_highcontrast-definition.scss +54 -30
- package/styles/treegrid/_highcontrast-light-definition.scss +54 -30
- package/styles/treegrid/_icons.scss +47 -37
- package/styles/treegrid/_layout.scss +530 -455
- package/styles/treegrid/_material-dark-definition.scss +54 -30
- package/styles/treegrid/_material-definition.scss +54 -30
- package/styles/treegrid/_material3-definition.scss +49 -28
- package/styles/treegrid/_tailwind-definition.scss +49 -28
- package/styles/treegrid/_tailwind3-definition.scss +49 -0
- package/styles/treegrid/_theme.scss +1 -1
- package/styles/treegrid/bds.css +765 -0
- package/styles/treegrid/bds.scss +19 -0
- package/styles/treegrid/bootstrap-dark.css +187 -117
- package/styles/treegrid/bootstrap-dark.scss +1 -0
- package/styles/treegrid/bootstrap.css +190 -121
- package/styles/treegrid/bootstrap.scss +1 -0
- package/styles/treegrid/bootstrap4.css +194 -133
- package/styles/treegrid/bootstrap4.scss +1 -0
- package/styles/treegrid/bootstrap5-dark.css +189 -123
- package/styles/treegrid/bootstrap5-dark.scss +1 -0
- package/styles/treegrid/bootstrap5.3.css +1657 -0
- package/styles/treegrid/bootstrap5.3.scss +19 -0
- package/styles/treegrid/bootstrap5.css +188 -122
- package/styles/treegrid/bootstrap5.scss +1 -0
- package/styles/treegrid/fabric-dark.css +188 -118
- package/styles/treegrid/fabric-dark.scss +1 -0
- package/styles/treegrid/fabric.css +188 -111
- package/styles/treegrid/fabric.scss +1 -0
- package/styles/treegrid/fluent-dark.css +195 -116
- package/styles/treegrid/fluent-dark.scss +1 -0
- package/styles/treegrid/fluent.css +195 -116
- package/styles/treegrid/fluent.scss +1 -0
- package/styles/treegrid/fluent2.css +1879 -0
- package/styles/treegrid/fluent2.scss +19 -0
- package/styles/treegrid/highcontrast-light.css +185 -103
- package/styles/treegrid/highcontrast-light.scss +1 -0
- package/styles/treegrid/highcontrast.css +196 -107
- package/styles/treegrid/highcontrast.scss +1 -0
- package/styles/treegrid/icons/_bds.scss +37 -37
- package/styles/treegrid/icons/_bootstrap-dark.scss +47 -37
- package/styles/treegrid/icons/_bootstrap.scss +47 -37
- package/styles/treegrid/icons/_bootstrap4.scss +47 -37
- package/styles/treegrid/icons/_bootstrap5.3.scss +47 -0
- package/styles/treegrid/icons/_bootstrap5.scss +47 -37
- package/styles/treegrid/icons/_fabric-dark.scss +47 -37
- package/styles/treegrid/icons/_fabric.scss +47 -37
- package/styles/treegrid/icons/_fluent.scss +47 -37
- package/styles/treegrid/icons/_fluent2.scss +47 -0
- package/styles/treegrid/icons/_fusionnew.scss +30 -26
- package/styles/treegrid/icons/_highcontrast-light.scss +47 -37
- package/styles/treegrid/icons/_highcontrast.scss +47 -37
- package/styles/treegrid/icons/_material-dark.scss +47 -37
- package/styles/treegrid/icons/_material.scss +47 -37
- package/styles/treegrid/icons/_material3.scss +47 -37
- package/styles/treegrid/icons/_tailwind-dark.scss +47 -37
- package/styles/treegrid/icons/_tailwind.scss +47 -37
- package/styles/treegrid/icons/_tailwind3.scss +47 -0
- package/styles/treegrid/material-dark.css +220 -105
- package/styles/treegrid/material-dark.scss +1 -0
- package/styles/treegrid/material.css +234 -129
- package/styles/treegrid/material.scss +1 -0
- package/styles/treegrid/material3-dark.css +1310 -187
- package/styles/treegrid/material3-dark.scss +2 -1
- package/styles/treegrid/material3.css +1311 -242
- package/styles/treegrid/material3.scss +2 -1
- package/styles/treegrid/tailwind-dark.css +196 -103
- package/styles/treegrid/tailwind-dark.scss +1 -0
- package/styles/treegrid/tailwind.css +196 -103
- package/styles/treegrid/tailwind.scss +1 -0
- package/styles/treegrid/tailwind3.css +1717 -0
- package/styles/treegrid/tailwind3.scss +19 -0
- package/CHANGELOG.md +0 -264
- package/helpers/e2e/index.d.ts +0 -1
- package/helpers/e2e/index.js +0 -8
- package/helpers/e2e/treegridhelper.d.ts +0 -21
- package/helpers/e2e/treegridhelper.js +0 -83
- package/index.d.ts +0 -4
- package/index.js +0 -4
- package/src/index.d.ts +0 -4
- package/src/treegrid/actions/batch-edit.d.ts +0 -73
- package/src/treegrid/actions/clipboard.d.ts +0 -36
- package/src/treegrid/actions/column-chooser.d.ts +0 -37
- package/src/treegrid/actions/column-menu.d.ts +0 -24
- package/src/treegrid/actions/command-column.d.ts +0 -24
- package/src/treegrid/actions/context-menu.d.ts +0 -42
- package/src/treegrid/actions/crud-actions.d.ts +0 -66
- package/src/treegrid/actions/detail-row.d.ts +0 -39
- package/src/treegrid/actions/edit.d.ts +0 -112
- package/src/treegrid/actions/excel-export.d.ts +0 -59
- package/src/treegrid/actions/filter.d.ts +0 -57
- package/src/treegrid/actions/freeze-column.d.ts +0 -28
- package/src/treegrid/actions/index.d.ts +0 -24
- package/src/treegrid/actions/infinite-scroll.d.ts +0 -96
- package/src/treegrid/actions/logger.d.ts +0 -25
- package/src/treegrid/actions/page.d.ts +0 -67
- package/src/treegrid/actions/pdf-export.d.ts +0 -55
- package/src/treegrid/actions/print.d.ts +0 -37
- package/src/treegrid/actions/reorder.d.ts +0 -36
- package/src/treegrid/actions/resize.d.ts +0 -36
- package/src/treegrid/actions/rowdragdrop.d.ts +0 -113
- package/src/treegrid/actions/selection.d.ts +0 -51
- package/src/treegrid/actions/sort.d.ts +0 -63
- package/src/treegrid/actions/summary.d.ts +0 -47
- package/src/treegrid/actions/toolbar.d.ts +0 -52
- package/src/treegrid/actions/virtual-scroll.d.ts +0 -53
- package/src/treegrid/base/constant.d.ts +0 -160
- package/src/treegrid/base/data.d.ts +0 -90
- package/src/treegrid/base/index.d.ts +0 -11
- package/src/treegrid/base/interface.d.ts +0 -182
- package/src/treegrid/base/treegrid.d.ts +0 -2186
- package/src/treegrid/enum.d.ts +0 -155
- package/src/treegrid/index.d.ts +0 -9
- package/src/treegrid/models/column.d.ts +0 -752
- package/src/treegrid/models/edit-settings.d.ts +0 -90
- package/src/treegrid/models/filter-settings.d.ts +0 -203
- package/src/treegrid/models/index.d.ts +0 -24
- package/src/treegrid/models/infinite-scroll-settings.d.ts +0 -25
- package/src/treegrid/models/loading-indicator.d.ts +0 -19
- package/src/treegrid/models/page-settings.d.ts +0 -60
- package/src/treegrid/models/rowdrop-settings.d.ts +0 -27
- package/src/treegrid/models/search-settings.d.ts +0 -71
- package/src/treegrid/models/selection-settings.d.ts +0 -79
- package/src/treegrid/models/sort-settings.d.ts +0 -40
- package/src/treegrid/models/summary.d.ts +0 -124
- package/src/treegrid/models/textwrap-settings.d.ts +0 -16
- package/src/treegrid/renderer/index.d.ts +0 -5
- package/src/treegrid/renderer/render.d.ts +0 -41
- package/src/treegrid/renderer/virtual-row-model-generator.d.ts +0 -16
- package/src/treegrid/renderer/virtual-tree-content-render.d.ts +0 -75
- package/src/treegrid/utils.d.ts +0 -70
- package/treegrid.d.ts +0 -4
- package/treegrid.js +0 -4
- package/tslint.json +0 -111
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { merge, Property, ChildProperty, Collection, isNullOrUndefined, Browser, removeClass, addClass, getValue, createElement, setValue, extend as extend$1, Internationalization, getEnumValue, compile, Component, L10n, EventHandler, KeyboardEvents, SanitizeHtmlHelper, Complex, Event, NotifyPropertyChanges, closest, classList, setStyleAttribute, select, debounce, remove } from '@syncfusion/ej2-base';
|
|
2
|
+
import { Logger as Logger$1, Grid, detailLists, Clipboard, getObject, parentsUntil, Print as Print$1, templateCompiler, appendChildren, extend, CellRenderer, getUid, CellType, Freeze as Freeze$1, getNumberFormat, getActualProperties, iterateArrayOrObject, RowDropSettings as RowDropSettings$1, Reorder as Reorder$1, Resize as Resize$1, RowDD as RowDD$1, Scroll, VirtualRowModelGenerator, Filter as Filter$1, ExcelExport as ExcelExport$1, PdfExport as PdfExport$1, Page as Page$1, Toolbar as Toolbar$1, Aggregate as Aggregate$1, calculateAggregate, Sort as Sort$1, ColumnMenu as ColumnMenu$1, ContextMenu as ContextMenu$1, Edit as Edit$1, resetRowIndex, CommandColumn as CommandColumn$1, DetailRow as DetailRow$1, VirtualContentRenderer, Cell, InterSectionObserver, getTransformValues, VirtualScroll as VirtualScroll$1, RenderType, VirtualHeaderRenderer, ColumnChooser as ColumnChooser$1, InfiniteScroll as InfiniteScroll$1, RowRenderer } from '@syncfusion/ej2-grids';
|
|
3
3
|
import { createCheckBox } from '@syncfusion/ej2-buttons';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { DataManager, ODataAdaptor, WebApiAdaptor, WebMethodAdaptor, CacheAdaptor, UrlAdaptor, Query, DataUtil, RemoteSaveAdaptor, Deferred, JsonAdaptor, Predicate as Predicate$1 } from '@syncfusion/ej2-data';
|
|
5
|
+
import { showSpinner, hideSpinner, createSpinner } from '@syncfusion/ej2-popups';
|
|
6
6
|
|
|
7
|
-
var __decorate
|
|
8
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
-
};
|
|
7
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
+
};
|
|
13
13
|
/**
|
|
14
14
|
* Represents TreeGrid `Column` model class.
|
|
15
15
|
*/
|
|
@@ -107,7 +107,7 @@ class Column {
|
|
|
107
107
|
*/
|
|
108
108
|
class TreeGridColumn extends Column {
|
|
109
109
|
}
|
|
110
|
-
__decorate
|
|
110
|
+
__decorate([
|
|
111
111
|
Property(null)
|
|
112
112
|
], TreeGridColumn.prototype, "columns", void 0);
|
|
113
113
|
/**
|
|
@@ -116,110 +116,110 @@ __decorate$1([
|
|
|
116
116
|
class StackedColumn extends TreeGridColumn {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
var __decorate$
|
|
120
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
121
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
122
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
123
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
124
|
-
};
|
|
119
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
120
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
121
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
122
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
123
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
124
|
+
};
|
|
125
125
|
/**
|
|
126
126
|
* Configures the Loading Indicator of the Tree Grid.
|
|
127
127
|
*/
|
|
128
128
|
class LoadingIndicator extends ChildProperty {
|
|
129
129
|
}
|
|
130
|
-
__decorate$
|
|
130
|
+
__decorate$1([
|
|
131
131
|
Property('Spinner')
|
|
132
132
|
], LoadingIndicator.prototype, "indicatorType", void 0);
|
|
133
133
|
|
|
134
|
-
var __decorate$
|
|
135
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
136
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
137
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
138
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
139
|
-
};
|
|
134
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
135
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
136
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
137
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
138
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
139
|
+
};
|
|
140
140
|
/**
|
|
141
141
|
* Represents the Tree Grid predicate for the filter column.
|
|
142
142
|
*/
|
|
143
|
-
class Predicate
|
|
143
|
+
class Predicate extends ChildProperty {
|
|
144
144
|
}
|
|
145
|
-
__decorate$
|
|
145
|
+
__decorate$2([
|
|
146
146
|
Property()
|
|
147
|
-
], Predicate
|
|
148
|
-
__decorate$
|
|
147
|
+
], Predicate.prototype, "field", void 0);
|
|
148
|
+
__decorate$2([
|
|
149
149
|
Property()
|
|
150
|
-
], Predicate
|
|
151
|
-
__decorate$
|
|
150
|
+
], Predicate.prototype, "operator", void 0);
|
|
151
|
+
__decorate$2([
|
|
152
152
|
Property()
|
|
153
|
-
], Predicate
|
|
154
|
-
__decorate$
|
|
153
|
+
], Predicate.prototype, "value", void 0);
|
|
154
|
+
__decorate$2([
|
|
155
155
|
Property()
|
|
156
|
-
], Predicate
|
|
157
|
-
__decorate$
|
|
156
|
+
], Predicate.prototype, "matchCase", void 0);
|
|
157
|
+
__decorate$2([
|
|
158
158
|
Property()
|
|
159
|
-
], Predicate
|
|
160
|
-
__decorate$
|
|
159
|
+
], Predicate.prototype, "ignoreAccent", void 0);
|
|
160
|
+
__decorate$2([
|
|
161
161
|
Property()
|
|
162
|
-
], Predicate
|
|
163
|
-
__decorate$
|
|
162
|
+
], Predicate.prototype, "predicate", void 0);
|
|
163
|
+
__decorate$2([
|
|
164
164
|
Property({})
|
|
165
|
-
], Predicate
|
|
166
|
-
__decorate$
|
|
165
|
+
], Predicate.prototype, "actualFilterValue", void 0);
|
|
166
|
+
__decorate$2([
|
|
167
167
|
Property({})
|
|
168
|
-
], Predicate
|
|
169
|
-
__decorate$
|
|
168
|
+
], Predicate.prototype, "actualOperator", void 0);
|
|
169
|
+
__decorate$2([
|
|
170
170
|
Property()
|
|
171
|
-
], Predicate
|
|
172
|
-
__decorate$
|
|
171
|
+
], Predicate.prototype, "type", void 0);
|
|
172
|
+
__decorate$2([
|
|
173
173
|
Property()
|
|
174
|
-
], Predicate
|
|
175
|
-
__decorate$
|
|
174
|
+
], Predicate.prototype, "ejpredicate", void 0);
|
|
175
|
+
__decorate$2([
|
|
176
176
|
Property()
|
|
177
|
-
], Predicate
|
|
178
|
-
__decorate$
|
|
177
|
+
], Predicate.prototype, "uid", void 0);
|
|
178
|
+
__decorate$2([
|
|
179
179
|
Property()
|
|
180
|
-
], Predicate
|
|
180
|
+
], Predicate.prototype, "isForeignKey", void 0);
|
|
181
181
|
/**
|
|
182
182
|
* Configures the filtering behavior of the TreeGrid.
|
|
183
183
|
*/
|
|
184
184
|
class FilterSettings extends ChildProperty {
|
|
185
185
|
}
|
|
186
|
-
__decorate$
|
|
187
|
-
Collection([], Predicate
|
|
186
|
+
__decorate$2([
|
|
187
|
+
Collection([], Predicate)
|
|
188
188
|
], FilterSettings.prototype, "columns", void 0);
|
|
189
|
-
__decorate$
|
|
189
|
+
__decorate$2([
|
|
190
190
|
Property('FilterBar')
|
|
191
191
|
], FilterSettings.prototype, "type", void 0);
|
|
192
|
-
__decorate$
|
|
192
|
+
__decorate$2([
|
|
193
193
|
Property()
|
|
194
194
|
], FilterSettings.prototype, "mode", void 0);
|
|
195
|
-
__decorate$
|
|
195
|
+
__decorate$2([
|
|
196
196
|
Property(true)
|
|
197
197
|
], FilterSettings.prototype, "showFilterBarStatus", void 0);
|
|
198
|
-
__decorate$
|
|
198
|
+
__decorate$2([
|
|
199
199
|
Property(1500)
|
|
200
200
|
], FilterSettings.prototype, "immediateModeDelay", void 0);
|
|
201
|
-
__decorate$
|
|
201
|
+
__decorate$2([
|
|
202
202
|
Property()
|
|
203
203
|
], FilterSettings.prototype, "operators", void 0);
|
|
204
|
-
__decorate$
|
|
204
|
+
__decorate$2([
|
|
205
205
|
Property(false)
|
|
206
206
|
], FilterSettings.prototype, "ignoreAccent", void 0);
|
|
207
|
-
__decorate$
|
|
207
|
+
__decorate$2([
|
|
208
208
|
Property('Parent')
|
|
209
209
|
], FilterSettings.prototype, "hierarchyMode", void 0);
|
|
210
210
|
|
|
211
|
-
var __decorate$
|
|
212
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
213
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
214
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
215
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
216
|
-
};
|
|
211
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
212
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
213
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
214
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
215
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
216
|
+
};
|
|
217
217
|
/**
|
|
218
218
|
* Configures the textwrap behavior of the TreeGrid.
|
|
219
219
|
*/
|
|
220
220
|
class TextWrapSettings extends ChildProperty {
|
|
221
221
|
}
|
|
222
|
-
__decorate$
|
|
222
|
+
__decorate$3([
|
|
223
223
|
Property('Both')
|
|
224
224
|
], TextWrapSettings.prototype, "wrapMode", void 0);
|
|
225
225
|
|
|
@@ -232,9 +232,9 @@ const DOC_URL = 'https://ej2.syncfusion.com/documentation/treegrid';
|
|
|
232
232
|
const BASE_DOC_URL = 'https://ej2.syncfusion.com/documentation';
|
|
233
233
|
const ERROR = '[EJ2TreeGrid.Error]';
|
|
234
234
|
let IsRowDDEnabled = false;
|
|
235
|
-
class Logger
|
|
235
|
+
class Logger extends Logger$1 {
|
|
236
236
|
constructor(parent) {
|
|
237
|
-
Grid.Inject(Logger);
|
|
237
|
+
Grid.Inject(Logger$1);
|
|
238
238
|
super(parent);
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
@@ -502,6 +502,8 @@ const ariaColIndex = 'aria-colindex';
|
|
|
502
502
|
const dataRowIndex = 'data-rowindex';
|
|
503
503
|
/** @hidden */
|
|
504
504
|
const ariaRowIndex = 'aria-rowindex';
|
|
505
|
+
/** @hidden */
|
|
506
|
+
const actionFailure = 'actionFailure';
|
|
505
507
|
|
|
506
508
|
/**
|
|
507
509
|
* The `Clipboard` module is used to handle clipboard copy action.
|
|
@@ -764,7 +766,7 @@ function getExpandStatus(parent, record, parents) {
|
|
|
764
766
|
return false;
|
|
765
767
|
}
|
|
766
768
|
else if (childParent) {
|
|
767
|
-
return getExpandStatus(parent, childParent
|
|
769
|
+
return getExpandStatus(parent, childParent);
|
|
768
770
|
}
|
|
769
771
|
return true;
|
|
770
772
|
}
|
|
@@ -1032,6 +1034,10 @@ class Selection {
|
|
|
1032
1034
|
}
|
|
1033
1035
|
}
|
|
1034
1036
|
selectCheckboxes(rowIndexes) {
|
|
1037
|
+
if (isNullOrUndefined(rowIndexes)) {
|
|
1038
|
+
const error = 'The provided value for the rowIndexes is undefined. Please ensure the rowIndexes contains number.';
|
|
1039
|
+
this.parent.trigger(actionFailure, { error: error });
|
|
1040
|
+
}
|
|
1035
1041
|
for (let i = 0; i < rowIndexes.length; i++) {
|
|
1036
1042
|
let record = this.parent.getCurrentViewRecords()[rowIndexes[parseInt(i.toString(), 10)]];
|
|
1037
1043
|
const flatRecord = getParentData(this.parent, record.uniqueID);
|
|
@@ -1373,7 +1379,7 @@ class Selection {
|
|
|
1373
1379
|
*
|
|
1374
1380
|
* @hidden
|
|
1375
1381
|
*/
|
|
1376
|
-
class Print
|
|
1382
|
+
class Print {
|
|
1377
1383
|
/**
|
|
1378
1384
|
* Constructor for Print module
|
|
1379
1385
|
*
|
|
@@ -1381,7 +1387,7 @@ class Print$1 {
|
|
|
1381
1387
|
*/
|
|
1382
1388
|
constructor(parent) {
|
|
1383
1389
|
this.parent = parent;
|
|
1384
|
-
Grid.Inject(Print);
|
|
1390
|
+
Grid.Inject(Print$1);
|
|
1385
1391
|
this.addEventListener();
|
|
1386
1392
|
}
|
|
1387
1393
|
/**
|
|
@@ -1425,63 +1431,63 @@ class Print$1 {
|
|
|
1425
1431
|
}
|
|
1426
1432
|
}
|
|
1427
1433
|
|
|
1428
|
-
var __decorate$
|
|
1429
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1430
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1431
|
-
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;
|
|
1432
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1433
|
-
};
|
|
1434
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1435
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1436
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1437
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1438
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1439
|
+
};
|
|
1434
1440
|
/**
|
|
1435
1441
|
* Configures the filtering behavior of the TreeGrid.
|
|
1436
1442
|
*/
|
|
1437
1443
|
class SearchSettings extends ChildProperty {
|
|
1438
1444
|
}
|
|
1439
|
-
__decorate$
|
|
1445
|
+
__decorate$4([
|
|
1440
1446
|
Property()
|
|
1441
1447
|
], SearchSettings.prototype, "fields", void 0);
|
|
1442
|
-
__decorate$
|
|
1448
|
+
__decorate$4([
|
|
1443
1449
|
Property(false)
|
|
1444
1450
|
], SearchSettings.prototype, "ignoreCase", void 0);
|
|
1445
|
-
__decorate$
|
|
1451
|
+
__decorate$4([
|
|
1446
1452
|
Property('contains')
|
|
1447
1453
|
], SearchSettings.prototype, "operator", void 0);
|
|
1448
|
-
__decorate$
|
|
1454
|
+
__decorate$4([
|
|
1449
1455
|
Property()
|
|
1450
1456
|
], SearchSettings.prototype, "key", void 0);
|
|
1451
|
-
__decorate$
|
|
1457
|
+
__decorate$4([
|
|
1452
1458
|
Property()
|
|
1453
1459
|
], SearchSettings.prototype, "hierarchyMode", void 0);
|
|
1454
1460
|
|
|
1455
|
-
var __decorate$
|
|
1456
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1457
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1458
|
-
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;
|
|
1459
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1460
|
-
};
|
|
1461
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1462
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1463
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1464
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1465
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1466
|
+
};
|
|
1461
1467
|
/**
|
|
1462
1468
|
* Configures the selection behavior of the TreeGrid.
|
|
1463
1469
|
*/
|
|
1464
1470
|
class SelectionSettings extends ChildProperty {
|
|
1465
1471
|
}
|
|
1466
|
-
__decorate$
|
|
1472
|
+
__decorate$5([
|
|
1467
1473
|
Property('Row')
|
|
1468
1474
|
], SelectionSettings.prototype, "mode", void 0);
|
|
1469
|
-
__decorate$
|
|
1475
|
+
__decorate$5([
|
|
1470
1476
|
Property('Flow')
|
|
1471
1477
|
], SelectionSettings.prototype, "cellSelectionMode", void 0);
|
|
1472
|
-
__decorate$
|
|
1478
|
+
__decorate$5([
|
|
1473
1479
|
Property('Single')
|
|
1474
1480
|
], SelectionSettings.prototype, "type", void 0);
|
|
1475
|
-
__decorate$
|
|
1481
|
+
__decorate$5([
|
|
1476
1482
|
Property(false)
|
|
1477
1483
|
], SelectionSettings.prototype, "persistSelection", void 0);
|
|
1478
|
-
__decorate$
|
|
1484
|
+
__decorate$5([
|
|
1479
1485
|
Property('Default')
|
|
1480
1486
|
], SelectionSettings.prototype, "checkboxMode", void 0);
|
|
1481
|
-
__decorate$
|
|
1487
|
+
__decorate$5([
|
|
1482
1488
|
Property(false)
|
|
1483
1489
|
], SelectionSettings.prototype, "checkboxOnly", void 0);
|
|
1484
|
-
__decorate$
|
|
1490
|
+
__decorate$5([
|
|
1485
1491
|
Property(true)
|
|
1486
1492
|
], SelectionSettings.prototype, "enableToggle", void 0);
|
|
1487
1493
|
|
|
@@ -1517,10 +1523,10 @@ class Render {
|
|
|
1517
1523
|
if (!isNullOrUndefined(data.parentItem) && !isFilterChildHierarchy(this.parent) &&
|
|
1518
1524
|
(!(this.parent.allowPaging && !(this.parent.pageSettings.pageSizeMode === 'Root')) ||
|
|
1519
1525
|
(isRemoteData(this.parent) && !isOffline(this.parent)))) {
|
|
1520
|
-
const collapsed
|
|
1526
|
+
const collapsed = (this.parent.initialRender && (!(isNullOrUndefined(parentData[this.parent.expandStateMapping]) ||
|
|
1521
1527
|
parentData[this.parent.expandStateMapping]) || this.parent.enableCollapseAll)) ||
|
|
1522
1528
|
!getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
|
|
1523
|
-
if (collapsed
|
|
1529
|
+
if (collapsed && !isNullOrUndefined(args.row)) {
|
|
1524
1530
|
args.row.style.display = 'none';
|
|
1525
1531
|
const rowsObj = this.parent.grid.getRowsObject();
|
|
1526
1532
|
if (!this.parent.grid.isFrozenGrid() && !isNullOrUndefined(args.row.getAttribute('data-uid'))) {
|
|
@@ -1799,7 +1805,7 @@ class Render {
|
|
|
1799
1805
|
}
|
|
1800
1806
|
else {
|
|
1801
1807
|
const str = 'isStringTemplate';
|
|
1802
|
-
const result = args.column[`${templateFn}`](extend
|
|
1808
|
+
const result = args.column[`${templateFn}`](extend({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent[`${str}`]);
|
|
1803
1809
|
appendChildren(cellElement, result);
|
|
1804
1810
|
}
|
|
1805
1811
|
delete args.column.template;
|
|
@@ -1941,7 +1947,8 @@ class DataManipulation {
|
|
|
1941
1947
|
* @returns {void}
|
|
1942
1948
|
*/
|
|
1943
1949
|
convertToFlatData(data) {
|
|
1944
|
-
this.parent.flatData = (Object.keys(data).length === 0
|
|
1950
|
+
this.parent.flatData = (!isNullOrUndefined(data) && Object.keys(data).length === 0
|
|
1951
|
+
&& !(this.parent.dataSource instanceof DataManager) ?
|
|
1945
1952
|
this.parent.dataSource : []);
|
|
1946
1953
|
this.parent.parentData = [];
|
|
1947
1954
|
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
|
|
@@ -1997,7 +2004,7 @@ class DataManipulation {
|
|
|
1997
2004
|
const keys = Object.keys(data);
|
|
1998
2005
|
for (let i = 0; i < keys.length; i++) {
|
|
1999
2006
|
const tempData = data[parseInt(i.toString(), 10)];
|
|
2000
|
-
this.hierarchyData.push(extend({}, tempData));
|
|
2007
|
+
this.hierarchyData.push(extend$1({}, tempData));
|
|
2001
2008
|
if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
|
|
2002
2009
|
this.taskIds.push(tempData[this.parent.idMapping]);
|
|
2003
2010
|
}
|
|
@@ -2099,7 +2106,7 @@ class DataManipulation {
|
|
|
2099
2106
|
}
|
|
2100
2107
|
}
|
|
2101
2108
|
if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
|
|
2102
|
-
records[parseInt(rec.toString(), 10)].taskData = extend({}, records[parseInt(rec.toString(), 10)]);
|
|
2109
|
+
records[parseInt(rec.toString(), 10)].taskData = extend$1({}, records[parseInt(rec.toString(), 10)]);
|
|
2103
2110
|
records[parseInt(rec.toString(), 10)].uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2104
2111
|
setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this.parent);
|
|
2105
2112
|
records[parseInt(rec.toString(), 10)].level = 0;
|
|
@@ -2291,7 +2298,7 @@ class DataManipulation {
|
|
|
2291
2298
|
}
|
|
2292
2299
|
}
|
|
2293
2300
|
}
|
|
2294
|
-
result[parseInt(r.toString(), 10)].taskData = extend({}, result[parseInt(r.toString(), 10)]);
|
|
2301
|
+
result[parseInt(r.toString(), 10)].taskData = extend$1({}, result[parseInt(r.toString(), 10)]);
|
|
2295
2302
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] && this.parent.enableVirtualization && this.parent[`${remoteExpandedData}`].length) {
|
|
2296
2303
|
for (let i = 0; i < this.parent[`${remoteExpandedData}`].length; i++) {
|
|
2297
2304
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] === this.parent[`${remoteExpandedData}`][parseInt(i.toString(), 10)][`${this.parent.idMapping}`]) {
|
|
@@ -2319,7 +2326,7 @@ class DataManipulation {
|
|
|
2319
2326
|
}
|
|
2320
2327
|
}
|
|
2321
2328
|
else {
|
|
2322
|
-
const parentData = extend({}, rowDetails.record);
|
|
2329
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2323
2330
|
delete parentData.childRecords;
|
|
2324
2331
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2325
2332
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2327,7 +2334,7 @@ class DataManipulation {
|
|
|
2327
2334
|
}
|
|
2328
2335
|
else {
|
|
2329
2336
|
result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
|
|
2330
|
-
const parentData = extend({}, rowDetails.record);
|
|
2337
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2331
2338
|
delete parentData.childRecords;
|
|
2332
2339
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2333
2340
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2447,7 +2454,7 @@ class DataManipulation {
|
|
|
2447
2454
|
const treeGridData = [];
|
|
2448
2455
|
const keys = Object.keys(data);
|
|
2449
2456
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
2450
|
-
const currentData = extend({}, data[parseInt(i.toString(), 10)]);
|
|
2457
|
+
const currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
|
|
2451
2458
|
currentData.taskData = data[parseInt(i.toString(), 10)];
|
|
2452
2459
|
let level = 0;
|
|
2453
2460
|
this.storedIndex++;
|
|
@@ -2475,7 +2482,7 @@ class DataManipulation {
|
|
|
2475
2482
|
currentData.uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2476
2483
|
setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
|
|
2477
2484
|
if (!isNullOrUndefined(parentRecords)) {
|
|
2478
|
-
const parentData = extend({}, parentRecords);
|
|
2485
|
+
const parentData = extend$1({}, parentRecords);
|
|
2479
2486
|
delete parentData.childRecords;
|
|
2480
2487
|
delete parentData[this.parent.childMapping];
|
|
2481
2488
|
if (this.isSelfReference) {
|
|
@@ -2756,48 +2763,48 @@ var ContextMenuItems;
|
|
|
2756
2763
|
ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
|
|
2757
2764
|
})(ContextMenuItems || (ContextMenuItems = {}));
|
|
2758
2765
|
|
|
2759
|
-
var __decorate$
|
|
2760
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2761
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2762
|
-
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;
|
|
2763
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2764
|
-
};
|
|
2766
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2767
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2768
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2769
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2770
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2771
|
+
};
|
|
2765
2772
|
/**
|
|
2766
2773
|
* Configures the paging behavior of the TreeGrid.
|
|
2767
2774
|
*/
|
|
2768
2775
|
class PageSettings extends ChildProperty {
|
|
2769
2776
|
}
|
|
2770
|
-
__decorate$
|
|
2777
|
+
__decorate$6([
|
|
2771
2778
|
Property(12)
|
|
2772
2779
|
], PageSettings.prototype, "pageSize", void 0);
|
|
2773
|
-
__decorate$
|
|
2780
|
+
__decorate$6([
|
|
2774
2781
|
Property(8)
|
|
2775
2782
|
], PageSettings.prototype, "pageCount", void 0);
|
|
2776
|
-
__decorate$
|
|
2783
|
+
__decorate$6([
|
|
2777
2784
|
Property(1)
|
|
2778
2785
|
], PageSettings.prototype, "currentPage", void 0);
|
|
2779
|
-
__decorate$
|
|
2786
|
+
__decorate$6([
|
|
2780
2787
|
Property()
|
|
2781
2788
|
], PageSettings.prototype, "totalRecordsCount", void 0);
|
|
2782
|
-
__decorate$
|
|
2789
|
+
__decorate$6([
|
|
2783
2790
|
Property(false)
|
|
2784
2791
|
], PageSettings.prototype, "enableQueryString", void 0);
|
|
2785
|
-
__decorate$
|
|
2792
|
+
__decorate$6([
|
|
2786
2793
|
Property(false)
|
|
2787
2794
|
], PageSettings.prototype, "pageSizes", void 0);
|
|
2788
|
-
__decorate$
|
|
2795
|
+
__decorate$6([
|
|
2789
2796
|
Property(null)
|
|
2790
2797
|
], PageSettings.prototype, "template", void 0);
|
|
2791
|
-
__decorate$
|
|
2798
|
+
__decorate$6([
|
|
2792
2799
|
Property('All')
|
|
2793
2800
|
], PageSettings.prototype, "pageSizeMode", void 0);
|
|
2794
2801
|
|
|
2795
|
-
var __decorate$
|
|
2796
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2797
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2798
|
-
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;
|
|
2799
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2800
|
-
};
|
|
2802
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2803
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2804
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2805
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2806
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2807
|
+
};
|
|
2801
2808
|
/**
|
|
2802
2809
|
* Configures the TreeGrid's aggregate column.
|
|
2803
2810
|
*/
|
|
@@ -2868,93 +2875,93 @@ class AggregateColumn extends ChildProperty {
|
|
|
2868
2875
|
this.setProperties(prop, true);
|
|
2869
2876
|
}
|
|
2870
2877
|
}
|
|
2871
|
-
__decorate$
|
|
2878
|
+
__decorate$7([
|
|
2872
2879
|
Property()
|
|
2873
2880
|
], AggregateColumn.prototype, "type", void 0);
|
|
2874
|
-
__decorate$
|
|
2881
|
+
__decorate$7([
|
|
2875
2882
|
Property()
|
|
2876
2883
|
], AggregateColumn.prototype, "footerTemplate", void 0);
|
|
2877
|
-
__decorate$
|
|
2884
|
+
__decorate$7([
|
|
2878
2885
|
Property()
|
|
2879
2886
|
], AggregateColumn.prototype, "field", void 0);
|
|
2880
|
-
__decorate$
|
|
2887
|
+
__decorate$7([
|
|
2881
2888
|
Property()
|
|
2882
2889
|
], AggregateColumn.prototype, "format", void 0);
|
|
2883
|
-
__decorate$
|
|
2890
|
+
__decorate$7([
|
|
2884
2891
|
Property()
|
|
2885
2892
|
], AggregateColumn.prototype, "columnName", void 0);
|
|
2886
|
-
__decorate$
|
|
2893
|
+
__decorate$7([
|
|
2887
2894
|
Property()
|
|
2888
2895
|
], AggregateColumn.prototype, "customAggregate", void 0);
|
|
2889
2896
|
class AggregateRow extends ChildProperty {
|
|
2890
2897
|
}
|
|
2891
|
-
__decorate$
|
|
2898
|
+
__decorate$7([
|
|
2892
2899
|
Collection([], AggregateColumn)
|
|
2893
2900
|
], AggregateRow.prototype, "columns", void 0);
|
|
2894
|
-
__decorate$
|
|
2901
|
+
__decorate$7([
|
|
2895
2902
|
Property(true)
|
|
2896
2903
|
], AggregateRow.prototype, "showChildSummary", void 0);
|
|
2897
2904
|
|
|
2898
|
-
var __decorate$
|
|
2899
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2900
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2901
|
-
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;
|
|
2902
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2903
|
-
};
|
|
2905
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2906
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2907
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2908
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2909
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2910
|
+
};
|
|
2904
2911
|
/**
|
|
2905
2912
|
* Configures the edit behavior of the TreeGrid.
|
|
2906
2913
|
*/
|
|
2907
2914
|
class EditSettings extends ChildProperty {
|
|
2908
2915
|
}
|
|
2909
|
-
__decorate$
|
|
2916
|
+
__decorate$8([
|
|
2910
2917
|
Property(false)
|
|
2911
2918
|
], EditSettings.prototype, "allowAdding", void 0);
|
|
2912
|
-
__decorate$
|
|
2919
|
+
__decorate$8([
|
|
2913
2920
|
Property(false)
|
|
2914
2921
|
], EditSettings.prototype, "allowEditing", void 0);
|
|
2915
|
-
__decorate$
|
|
2922
|
+
__decorate$8([
|
|
2916
2923
|
Property(false)
|
|
2917
2924
|
], EditSettings.prototype, "allowDeleting", void 0);
|
|
2918
|
-
__decorate$
|
|
2925
|
+
__decorate$8([
|
|
2919
2926
|
Property('Cell')
|
|
2920
2927
|
], EditSettings.prototype, "mode", void 0);
|
|
2921
|
-
__decorate$
|
|
2928
|
+
__decorate$8([
|
|
2922
2929
|
Property('Top')
|
|
2923
2930
|
], EditSettings.prototype, "newRowPosition", void 0);
|
|
2924
|
-
__decorate$
|
|
2931
|
+
__decorate$8([
|
|
2925
2932
|
Property(true)
|
|
2926
2933
|
], EditSettings.prototype, "allowEditOnDblClick", void 0);
|
|
2927
|
-
__decorate$
|
|
2934
|
+
__decorate$8([
|
|
2928
2935
|
Property(true)
|
|
2929
2936
|
], EditSettings.prototype, "showConfirmDialog", void 0);
|
|
2930
|
-
__decorate$
|
|
2937
|
+
__decorate$8([
|
|
2931
2938
|
Property(false)
|
|
2932
2939
|
], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
|
|
2933
|
-
__decorate$
|
|
2940
|
+
__decorate$8([
|
|
2934
2941
|
Property('')
|
|
2935
2942
|
], EditSettings.prototype, "template", void 0);
|
|
2936
|
-
__decorate$
|
|
2943
|
+
__decorate$8([
|
|
2937
2944
|
Property({})
|
|
2938
2945
|
], EditSettings.prototype, "dialog", void 0);
|
|
2939
|
-
__decorate$
|
|
2946
|
+
__decorate$8([
|
|
2940
2947
|
Property(false)
|
|
2941
2948
|
], EditSettings.prototype, "allowNextRowEdit", void 0);
|
|
2942
2949
|
|
|
2943
|
-
var __decorate$
|
|
2944
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2945
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2946
|
-
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2948
|
-
};
|
|
2950
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2951
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2952
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2953
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2954
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2955
|
+
};
|
|
2949
2956
|
/**
|
|
2950
2957
|
* Represents the field name and direction of sort column.
|
|
2951
2958
|
*/
|
|
2952
2959
|
class SortDescriptor extends ChildProperty {
|
|
2953
2960
|
}
|
|
2954
|
-
__decorate$
|
|
2961
|
+
__decorate$9([
|
|
2955
2962
|
Property()
|
|
2956
2963
|
], SortDescriptor.prototype, "field", void 0);
|
|
2957
|
-
__decorate$
|
|
2964
|
+
__decorate$9([
|
|
2958
2965
|
Property()
|
|
2959
2966
|
], SortDescriptor.prototype, "direction", void 0);
|
|
2960
2967
|
/**
|
|
@@ -2962,10 +2969,10 @@ __decorate$10([
|
|
|
2962
2969
|
*/
|
|
2963
2970
|
class SortSettings extends ChildProperty {
|
|
2964
2971
|
}
|
|
2965
|
-
__decorate$
|
|
2972
|
+
__decorate$9([
|
|
2966
2973
|
Collection([], SortDescriptor)
|
|
2967
2974
|
], SortSettings.prototype, "columns", void 0);
|
|
2968
|
-
__decorate$
|
|
2975
|
+
__decorate$9([
|
|
2969
2976
|
Property(true)
|
|
2970
2977
|
], SortSettings.prototype, "allowUnsort", void 0);
|
|
2971
2978
|
|
|
@@ -3010,7 +3017,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
|
|
|
3010
3017
|
modifiedData = extendArray(value);
|
|
3011
3018
|
}
|
|
3012
3019
|
else {
|
|
3013
|
-
modifiedData.push(extend({}, value));
|
|
3020
|
+
modifiedData.push(extend$1({}, value));
|
|
3014
3021
|
}
|
|
3015
3022
|
if (!isSkip && (action !== 'add' ||
|
|
3016
3023
|
(control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
|
|
@@ -3126,7 +3133,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3126
3133
|
let value;
|
|
3127
3134
|
let isSkip = false;
|
|
3128
3135
|
const currentViewRecords = control.grid.getCurrentViewRecords();
|
|
3129
|
-
value = extend({}, details.value);
|
|
3136
|
+
value = extend$1({}, details.value);
|
|
3130
3137
|
value = getPlainData(value);
|
|
3131
3138
|
switch (control.editSettings.newRowPosition) {
|
|
3132
3139
|
case 'Top':
|
|
@@ -3139,28 +3146,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3139
3146
|
break;
|
|
3140
3147
|
case 'Above':
|
|
3141
3148
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3142
|
-
value = extend({}, addRowRecord);
|
|
3149
|
+
value = extend$1({}, addRowRecord);
|
|
3143
3150
|
value = getPlainData(value);
|
|
3144
3151
|
}
|
|
3145
3152
|
else {
|
|
3146
|
-
value = extend({}, currentViewRecords[addRowIndex + 1]);
|
|
3153
|
+
value = extend$1({}, currentViewRecords[addRowIndex + 1]);
|
|
3147
3154
|
value = getPlainData(value);
|
|
3148
3155
|
}
|
|
3149
3156
|
break;
|
|
3150
3157
|
case 'Below':
|
|
3151
3158
|
case 'Child':
|
|
3152
3159
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3153
|
-
value = extend({}, addRowRecord);
|
|
3160
|
+
value = extend$1({}, addRowRecord);
|
|
3154
3161
|
value = getPlainData(value);
|
|
3155
3162
|
}
|
|
3156
3163
|
else {
|
|
3157
3164
|
const primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
|
|
3158
3165
|
const currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
|
|
3159
3166
|
if (!isNullOrUndefined(currentdata) && currentdata[`${primaryKeys}`] === details.value[`${primaryKeys}`] || selectedIndex !== -1) {
|
|
3160
|
-
value = extend({}, currentdata);
|
|
3167
|
+
value = extend$1({}, currentdata);
|
|
3161
3168
|
}
|
|
3162
3169
|
else {
|
|
3163
|
-
value = extend({}, details.value);
|
|
3170
|
+
value = extend$1({}, details.value);
|
|
3164
3171
|
}
|
|
3165
3172
|
value = getPlainData(value);
|
|
3166
3173
|
const internalProperty = 'internalProperties';
|
|
@@ -3369,33 +3376,33 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
|
|
|
3369
3376
|
}
|
|
3370
3377
|
}
|
|
3371
3378
|
|
|
3372
|
-
var __decorate$
|
|
3373
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3374
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3375
|
-
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;
|
|
3376
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3377
|
-
};
|
|
3379
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3380
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3381
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3382
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3383
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3384
|
+
};
|
|
3378
3385
|
/**
|
|
3379
3386
|
* Configures the infinite scroll behavior of Tree Grid.
|
|
3380
3387
|
*/
|
|
3381
3388
|
class InfiniteScrollSettings extends ChildProperty {
|
|
3382
3389
|
}
|
|
3383
|
-
__decorate$
|
|
3390
|
+
__decorate$a([
|
|
3384
3391
|
Property(false)
|
|
3385
3392
|
], InfiniteScrollSettings.prototype, "enableCache", void 0);
|
|
3386
|
-
__decorate$
|
|
3393
|
+
__decorate$a([
|
|
3387
3394
|
Property(3)
|
|
3388
3395
|
], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
|
|
3389
|
-
__decorate$
|
|
3396
|
+
__decorate$a([
|
|
3390
3397
|
Property(3)
|
|
3391
3398
|
], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
|
|
3392
3399
|
|
|
3393
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3394
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3395
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3396
|
-
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;
|
|
3397
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3398
|
-
};
|
|
3400
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3401
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3402
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3403
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3404
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3405
|
+
};
|
|
3399
3406
|
var TreeGrid_1;
|
|
3400
3407
|
/**
|
|
3401
3408
|
* Represents the TreeGrid component.
|
|
@@ -3442,15 +3449,15 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3442
3449
|
return false;
|
|
3443
3450
|
}
|
|
3444
3451
|
};
|
|
3445
|
-
TreeGrid_1.Inject(Selection, Logger
|
|
3452
|
+
TreeGrid_1.Inject(Selection, Logger);
|
|
3446
3453
|
setValue('mergePersistData', this.mergePersistTreeGridData, this);
|
|
3447
3454
|
const logger = 'Logger';
|
|
3448
3455
|
if (!isNullOrUndefined(this.injectedModules[`${logger}`])) {
|
|
3449
|
-
Grid.Inject(Logger);
|
|
3456
|
+
Grid.Inject(Logger$1);
|
|
3450
3457
|
}
|
|
3451
3458
|
const freezeModulePresent = this.injectedModules.filter((e) => {
|
|
3452
3459
|
if (e.prototype.getModuleName() === 'freeze') {
|
|
3453
|
-
Grid.Inject(Freeze);
|
|
3460
|
+
Grid.Inject(Freeze$1);
|
|
3454
3461
|
}
|
|
3455
3462
|
});
|
|
3456
3463
|
this.grid = new Grid();
|
|
@@ -3527,6 +3534,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3527
3534
|
}
|
|
3528
3535
|
/**
|
|
3529
3536
|
* Exports the TreeGrid data to the specified URL using a POST request.
|
|
3537
|
+
*
|
|
3530
3538
|
* @param {string} url - Defines exporting url
|
|
3531
3539
|
* @returns {void}
|
|
3532
3540
|
*/
|
|
@@ -3557,6 +3565,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3557
3565
|
}
|
|
3558
3566
|
/**
|
|
3559
3567
|
* Sets the header text and other properties for an array of columns based on specified criteria.
|
|
3568
|
+
*
|
|
3560
3569
|
* @param {Column[]} columns - Defines array of columns
|
|
3561
3570
|
* @param {string[]} include - Defines array of sting
|
|
3562
3571
|
* @returns {Column[]} returns array of columns
|
|
@@ -3643,6 +3652,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3643
3652
|
* @returns {void}
|
|
3644
3653
|
*/
|
|
3645
3654
|
sortByColumn(columnName, direction, isMultiSort) {
|
|
3655
|
+
if (isNullOrUndefined(columnName) && isNullOrUndefined(direction)) {
|
|
3656
|
+
const error = 'The provided value for the columnName and direction is undefined. Please ensure the columnName and direction contains string.';
|
|
3657
|
+
this.trigger(actionFailure, { error: error });
|
|
3658
|
+
}
|
|
3646
3659
|
if (this.sortModule) {
|
|
3647
3660
|
this.sortModule.sortColumn(columnName, direction, isMultiSort);
|
|
3648
3661
|
}
|
|
@@ -3703,21 +3716,27 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3703
3716
|
* @returns {void}
|
|
3704
3717
|
*/
|
|
3705
3718
|
reorderColumns(fromFName, toFName) {
|
|
3719
|
+
if (isNullOrUndefined(fromFName) && isNullOrUndefined(toFName)) {
|
|
3720
|
+
const error = 'The provided value for the fromFName and toFName is undefined. Please ensure the fromFName and toFName contains string.';
|
|
3721
|
+
this.trigger(actionFailure, { error: error });
|
|
3722
|
+
}
|
|
3706
3723
|
this.grid.reorderColumns(fromFName, toFName);
|
|
3707
3724
|
}
|
|
3708
3725
|
TreeGridLocale() {
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3726
|
+
if (!isNullOrUndefined(this.locale)) {
|
|
3727
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
3728
|
+
const locale = L10n.locale;
|
|
3729
|
+
const localeObject = {};
|
|
3730
|
+
setValue(this.locale, {}, localeObject);
|
|
3731
|
+
let gridLocale;
|
|
3732
|
+
gridLocale = {};
|
|
3733
|
+
gridLocale = getObject(this.locale, locale);
|
|
3734
|
+
let treeGridLocale;
|
|
3735
|
+
treeGridLocale = {};
|
|
3736
|
+
treeGridLocale = getObject(this.getModuleName(), gridLocale);
|
|
3737
|
+
setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
|
|
3738
|
+
L10n.load(localeObject);
|
|
3739
|
+
}
|
|
3721
3740
|
}
|
|
3722
3741
|
/**
|
|
3723
3742
|
* By default, prints all the pages of the TreeGrid and hides the pager.
|
|
@@ -3764,45 +3783,57 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3764
3783
|
}
|
|
3765
3784
|
break;
|
|
3766
3785
|
case 'downArrow':
|
|
3767
|
-
if (!this.enableVirtualization) {
|
|
3786
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3768
3787
|
target = e.target;
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3788
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
3789
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
3790
|
+
}
|
|
3791
|
+
if (!isNullOrUndefined(target)) {
|
|
3792
|
+
parentTarget = target.parentElement;
|
|
3793
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
3794
|
+
const cellIndex = parentTarget.cellIndex;
|
|
3795
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
3796
|
+
parentTarget = target;
|
|
3797
|
+
}
|
|
3798
|
+
summaryElement = this.findnextRowElement(parentTarget);
|
|
3799
|
+
if (summaryElement !== null) {
|
|
3800
|
+
const cellIndex = target.cellIndex;
|
|
3801
|
+
const row = summaryElement.children[parseInt(cellIndex.toString(), 10)];
|
|
3802
|
+
addClass([row], 'e-focused');
|
|
3803
|
+
addClass([row], 'e-focus');
|
|
3804
|
+
}
|
|
3805
|
+
else {
|
|
3806
|
+
this.clearSelection();
|
|
3807
|
+
}
|
|
3784
3808
|
}
|
|
3785
3809
|
}
|
|
3786
3810
|
}
|
|
3787
3811
|
break;
|
|
3788
3812
|
case 'upArrow':
|
|
3789
|
-
if (!this.enableVirtualization) {
|
|
3813
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3790
3814
|
target = e.target;
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3815
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
3816
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
3817
|
+
}
|
|
3818
|
+
if (!isNullOrUndefined(target)) {
|
|
3819
|
+
parentTarget = target.parentElement;
|
|
3820
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
3821
|
+
const cellIndex = parentTarget.cellIndex;
|
|
3822
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
3823
|
+
parentTarget = target;
|
|
3824
|
+
}
|
|
3825
|
+
summaryElement = this.findPreviousRowElement(parentTarget);
|
|
3826
|
+
if (summaryElement !== null) {
|
|
3827
|
+
const cellIndex = target.cellIndex;
|
|
3828
|
+
if (!isNullOrUndefined(cellIndex)) {
|
|
3829
|
+
const row = summaryElement.children[parseInt(cellIndex.toString(), 10)];
|
|
3830
|
+
addClass([row], 'e-focused');
|
|
3831
|
+
addClass([row], 'e-focus');
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
else {
|
|
3835
|
+
this.clearSelection();
|
|
3836
|
+
}
|
|
3806
3837
|
}
|
|
3807
3838
|
}
|
|
3808
3839
|
}
|
|
@@ -3996,7 +4027,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3996
4027
|
name: 'Edit'
|
|
3997
4028
|
});
|
|
3998
4029
|
}
|
|
3999
|
-
if (this.isCommandColumn(this.columns)) {
|
|
4030
|
+
if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
|
|
4000
4031
|
modules.push({
|
|
4001
4032
|
member: 'commandColumn',
|
|
4002
4033
|
args: [this],
|
|
@@ -4092,7 +4123,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4092
4123
|
this.log(['mapping_fields_missing']);
|
|
4093
4124
|
this.renderModule = new Render(this);
|
|
4094
4125
|
this.dataModule = new DataManipulation(this);
|
|
4095
|
-
this.printModule = new Print
|
|
4126
|
+
this.printModule = new Print(this);
|
|
4096
4127
|
this.trigger(load);
|
|
4097
4128
|
this.autoGenerateColumns();
|
|
4098
4129
|
this.initialRender = true;
|
|
@@ -4127,6 +4158,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4127
4158
|
const root = 'root';
|
|
4128
4159
|
this.grid[`${root}`] = this[`${root}`] ? this[`${root}`] : this;
|
|
4129
4160
|
this.grid.appendTo(gridContainer);
|
|
4161
|
+
this.actionFailureHandler();
|
|
4130
4162
|
const gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
|
|
4131
4163
|
gridContent.setAttribute('tabindex', '0');
|
|
4132
4164
|
const contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
|
|
@@ -4149,6 +4181,84 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4149
4181
|
}
|
|
4150
4182
|
};
|
|
4151
4183
|
}
|
|
4184
|
+
actionFailureHandler() {
|
|
4185
|
+
const failureCases = [];
|
|
4186
|
+
const primaryKeyFieldNames = this.getPrimaryKeyFieldNames();
|
|
4187
|
+
const RecordsCount = this.flatData.length;
|
|
4188
|
+
if ((this.editSettings.allowAdding || this.editSettings.allowDeleting || this.editSettings.allowEditing)
|
|
4189
|
+
&& primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4190
|
+
failureCases.push('For the CRUD actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4191
|
+
}
|
|
4192
|
+
if (this.allowRowDragAndDrop && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4193
|
+
failureCases.push('For the Row Drag and Drop actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4194
|
+
}
|
|
4195
|
+
if (this.allowPaging && this.enableVirtualization) {
|
|
4196
|
+
failureCases.push('Paging is not allowed in virtualization case.');
|
|
4197
|
+
}
|
|
4198
|
+
if (RecordsCount === 0 && this.columns.length === 0) {
|
|
4199
|
+
failureCases.push('Either of the Data source or columns should be given.');
|
|
4200
|
+
}
|
|
4201
|
+
if (this.frozenColumns > 0 && this.columnModel.filter((col) => col.isFrozen)) {
|
|
4202
|
+
failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
|
|
4203
|
+
}
|
|
4204
|
+
if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
|
|
4205
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4206
|
+
}
|
|
4207
|
+
if (this.stackedHeader && !isNullOrUndefined(this.detailTemplate)) {
|
|
4208
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4209
|
+
}
|
|
4210
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen) || this.frozenRows > 0)
|
|
4211
|
+
&& (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
|
|
4212
|
+
failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
|
|
4213
|
+
}
|
|
4214
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
|
|
4215
|
+
failureCases.push('Frozen rows and columns are not supported with cell editing.');
|
|
4216
|
+
}
|
|
4217
|
+
if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
|
|
4218
|
+
failureCases.push('Selection is not supported in RowTemplate');
|
|
4219
|
+
}
|
|
4220
|
+
if (this.treeColumnIndex < 0) {
|
|
4221
|
+
failureCases.push('For showing tree structure it is must to set the TreeColumnIndex value.');
|
|
4222
|
+
}
|
|
4223
|
+
if (this.treeColumnIndex >= this.columns.length) {
|
|
4224
|
+
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
4225
|
+
}
|
|
4226
|
+
if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter((col) => col.width).toString())
|
|
4227
|
+
&& !/[px]$/.test(this.columnModel.filter((col) => col.width).toString()))
|
|
4228
|
+
|| (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
|
|
4229
|
+
failureCases.push('column width and height should be in pixels');
|
|
4230
|
+
}
|
|
4231
|
+
if (!isNullOrUndefined(this.childMapping) && !isNullOrUndefined(this.idMapping)) {
|
|
4232
|
+
failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
|
|
4233
|
+
}
|
|
4234
|
+
if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
|
|
4235
|
+
((isNullOrUndefined(this.idMapping) && (!isNullOrUndefined(this.parentIdMapping))))) {
|
|
4236
|
+
failureCases.push('IdMapping and ParentIdMapping properties should be defined and vice versa.');
|
|
4237
|
+
}
|
|
4238
|
+
const checkboxColumn = this.columnModel.filter((col) => col.showCheckbox);
|
|
4239
|
+
const treeColumn = this.columns[this.treeColumnIndex];
|
|
4240
|
+
if (checkboxColumn.length !== 0) {
|
|
4241
|
+
if (checkboxColumn !== treeColumn) {
|
|
4242
|
+
failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
|
|
4243
|
+
}
|
|
4244
|
+
if (checkboxColumn.length > 1) {
|
|
4245
|
+
failureCases.push('Only one column can have the ShowCheckbox option enabled.');
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
const alignColumn = this.columnModel.filter((col) => col.textAlign === 'Right' && col.field === this.columnModel[this.treeColumnIndex].field);
|
|
4249
|
+
if (alignColumn.length !== 0) {
|
|
4250
|
+
failureCases.push('TextAlign right for the tree column is not applicable.');
|
|
4251
|
+
}
|
|
4252
|
+
if (failureCases.length > 0) {
|
|
4253
|
+
const failureEventArgs = {
|
|
4254
|
+
error: {}
|
|
4255
|
+
};
|
|
4256
|
+
failureCases.forEach((failureCase, index) => {
|
|
4257
|
+
failureEventArgs.error[parseInt(index.toString(), 10)] = failureCase;
|
|
4258
|
+
});
|
|
4259
|
+
this.trigger(actionFailure, failureEventArgs);
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4152
4262
|
refreshToolbarItems() {
|
|
4153
4263
|
const toolbarElement = this.toolbarModule.getToolbar();
|
|
4154
4264
|
const indentID = this.element.id + '_gridcontrol_indent';
|
|
@@ -4354,11 +4464,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4354
4464
|
this.grid.on('initial-end', this.afterGridRender, this);
|
|
4355
4465
|
if (!isNullOrUndefined(this.loggerModule)) {
|
|
4356
4466
|
const loggerModule = 'loggerModule';
|
|
4357
|
-
this.loggerModule = this.grid[`${loggerModule}`] = new Logger
|
|
4467
|
+
this.loggerModule = this.grid[`${loggerModule}`] = new Logger(this.grid);
|
|
4358
4468
|
}
|
|
4359
4469
|
};
|
|
4360
4470
|
this.grid.printComplete = this.triggerEvents.bind(this);
|
|
4361
|
-
this.grid.actionFailure =
|
|
4471
|
+
this.grid.actionFailure = (args) => {
|
|
4472
|
+
this.trigger(actionFailure, args);
|
|
4473
|
+
};
|
|
4362
4474
|
this.extendedGridDataBoundEvent();
|
|
4363
4475
|
this.extendedGridEvents();
|
|
4364
4476
|
this.extendedGridActionEvents();
|
|
@@ -4446,7 +4558,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4446
4558
|
treeGrid.notify('dataProcessor', args);
|
|
4447
4559
|
//args = treeGrid.dataModule.dataProcessor(args);
|
|
4448
4560
|
}
|
|
4449
|
-
extend(args, treeGrid.dataResults);
|
|
4561
|
+
extend$1(args, treeGrid.dataResults);
|
|
4450
4562
|
if (treeGrid.enableImmutableMode) {
|
|
4451
4563
|
args.result = args.result.slice();
|
|
4452
4564
|
}
|
|
@@ -4726,9 +4838,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4726
4838
|
}
|
|
4727
4839
|
else {
|
|
4728
4840
|
if (this.grid.isFrozenGrid() && this.enableVirtualization && args['tableName'] === 'movable') {
|
|
4729
|
-
const movableContent
|
|
4730
|
-
const frozenContent
|
|
4731
|
-
movableContent
|
|
4841
|
+
const movableContent$1 = this.grid.element.querySelector('.' + movableContent);
|
|
4842
|
+
const frozenContent$1 = this.grid.element.querySelector('.' + frozenContent);
|
|
4843
|
+
movableContent$1.style.height = frozenContent$1.style.height = 'auto';
|
|
4732
4844
|
}
|
|
4733
4845
|
this.trigger(actionComplete, args);
|
|
4734
4846
|
}
|
|
@@ -5443,7 +5555,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5443
5555
|
if (this.grid.editModule) {
|
|
5444
5556
|
if (!isNullOrUndefined(index)) {
|
|
5445
5557
|
const griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
|
|
5446
|
-
extend(griddata, data);
|
|
5558
|
+
extend$1(griddata, data);
|
|
5447
5559
|
this.grid.editModule.updateRow(index, griddata);
|
|
5448
5560
|
}
|
|
5449
5561
|
else {
|
|
@@ -5460,6 +5572,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5460
5572
|
* @returns {void}
|
|
5461
5573
|
*/
|
|
5462
5574
|
deleteRecord(fieldName, data) {
|
|
5575
|
+
if ((isNullOrUndefined(fieldName) && (isNullOrUndefined(data)) || (this.getSelectedRecords().length <= 0))) {
|
|
5576
|
+
const error = 'The provided value for the fieldName and data is undefined. Please ensure the fieldName and data contains number.';
|
|
5577
|
+
this.trigger(actionFailure, { error: error });
|
|
5578
|
+
}
|
|
5463
5579
|
if (this.grid.editModule) {
|
|
5464
5580
|
this.grid.editModule.deleteRecord(fieldName, data);
|
|
5465
5581
|
}
|
|
@@ -5528,6 +5644,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5528
5644
|
* @returns {void}
|
|
5529
5645
|
*/
|
|
5530
5646
|
deleteRow(tr) {
|
|
5647
|
+
if (isNullOrUndefined(tr)) {
|
|
5648
|
+
const error = 'The provided value for the tr is undefined. Please ensure the tr contains HTMLTableRowElement.';
|
|
5649
|
+
this.trigger(actionFailure, { error: error });
|
|
5650
|
+
}
|
|
5531
5651
|
if (this.grid.editModule) {
|
|
5532
5652
|
this.grid.editModule.deleteRow(tr);
|
|
5533
5653
|
}
|
|
@@ -5553,9 +5673,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5553
5673
|
this.grid.setCellValue(key, field, value);
|
|
5554
5674
|
const rowIndex = this.grid.getRowIndexByPrimaryKey(key);
|
|
5555
5675
|
const record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
|
|
5556
|
-
if (
|
|
5557
|
-
|
|
5676
|
+
if (isNullOrUndefined(record)) {
|
|
5677
|
+
const error = 'The provided value for the record is undefined. Please ensure the record contains ITreeData.';
|
|
5678
|
+
this.trigger(actionFailure, { error: error });
|
|
5558
5679
|
}
|
|
5680
|
+
editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
|
|
5559
5681
|
}
|
|
5560
5682
|
/**
|
|
5561
5683
|
* Updates and refresh the particular row values based on the given primary key value.
|
|
@@ -5593,8 +5715,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5593
5715
|
this.grid.setRowData(key, rowData);
|
|
5594
5716
|
const visibleRecords = this.getVisibleRecords();
|
|
5595
5717
|
if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])[`${primaryKey}`]) {
|
|
5596
|
-
const table
|
|
5597
|
-
const sHeight = table
|
|
5718
|
+
const table = this.getContentTable();
|
|
5719
|
+
const sHeight = table.scrollHeight;
|
|
5598
5720
|
const clientHeight = this.getContent().clientHeight;
|
|
5599
5721
|
this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
|
|
5600
5722
|
}
|
|
@@ -5606,6 +5728,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5606
5728
|
* @returns {void}
|
|
5607
5729
|
*/
|
|
5608
5730
|
goToPage(pageNo) {
|
|
5731
|
+
if (isNullOrUndefined(pageNo)) {
|
|
5732
|
+
const error = 'The provided value for the pageNo is undefined. Please ensure the pageNo contains number.';
|
|
5733
|
+
this.trigger(actionFailure, { error: error });
|
|
5734
|
+
}
|
|
5609
5735
|
if (this.grid.pagerModule) {
|
|
5610
5736
|
this.grid.pagerModule.goToPage(pageNo);
|
|
5611
5737
|
}
|
|
@@ -5707,6 +5833,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5707
5833
|
* @returns {void}
|
|
5708
5834
|
*/
|
|
5709
5835
|
hideColumns(keys, hideBy) {
|
|
5836
|
+
if (isNullOrUndefined(keys)) {
|
|
5837
|
+
const error = 'The provided value for the keys is undefined. Please ensure the keys contains string.';
|
|
5838
|
+
this.trigger(actionFailure, { error: error });
|
|
5839
|
+
}
|
|
5710
5840
|
this.grid.hideColumns(keys, hideBy);
|
|
5711
5841
|
this.updateColumnModel();
|
|
5712
5842
|
}
|
|
@@ -5803,10 +5933,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5803
5933
|
if (this.grid.columns.length !== this.columnModel.length) {
|
|
5804
5934
|
this.stackedHeader = true;
|
|
5805
5935
|
}
|
|
5806
|
-
if (this.stackedHeader && this.allowResizing) {
|
|
5936
|
+
if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
|
|
5807
5937
|
this.updateColumnsWidth(this.columns);
|
|
5808
5938
|
}
|
|
5809
|
-
if (!this.stackedHeader) {
|
|
5939
|
+
if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
|
|
5810
5940
|
merge(this.columns, this.columnModel);
|
|
5811
5941
|
}
|
|
5812
5942
|
this[`${deepMerge}`] = undefined; // Workaround for blazor updateModel
|
|
@@ -5814,10 +5944,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5814
5944
|
}
|
|
5815
5945
|
updateColumnsWidth(columns) {
|
|
5816
5946
|
columns.forEach((column) => {
|
|
5817
|
-
if (column.columns) {
|
|
5947
|
+
if (!isNullOrUndefined(column) && column.columns) {
|
|
5818
5948
|
this.updateColumnsWidth(column.columns);
|
|
5819
5949
|
}
|
|
5820
|
-
else if (column.field) {
|
|
5950
|
+
else if (!isNullOrUndefined(column) && column.field) {
|
|
5821
5951
|
const currentColumn = this.grid.getColumnByField(column.field);
|
|
5822
5952
|
if (!isNullOrUndefined(currentColumn)) {
|
|
5823
5953
|
column.width = currentColumn.width;
|
|
@@ -6120,6 +6250,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6120
6250
|
* @returns {void}
|
|
6121
6251
|
*/
|
|
6122
6252
|
expandRow(row, record, key, level) {
|
|
6253
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
6254
|
+
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6255
|
+
this.trigger(actionFailure, { error: error });
|
|
6256
|
+
}
|
|
6123
6257
|
let parentRec = this.parentData;
|
|
6124
6258
|
if (!this.enableVirtualization) {
|
|
6125
6259
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6143,13 +6277,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6143
6277
|
if (expandingArgs.expandAll) {
|
|
6144
6278
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6145
6279
|
}
|
|
6146
|
-
this.expandRows(row, record, parentRec
|
|
6280
|
+
this.expandRows(row, record, parentRec);
|
|
6147
6281
|
}
|
|
6148
6282
|
});
|
|
6149
6283
|
}
|
|
6150
6284
|
else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
|
|
6151
6285
|
!this.expandAllPrevent && this.isExpandingEventTriggered) {
|
|
6152
|
-
this.expandRows(row, record, parentRec
|
|
6286
|
+
this.expandRows(row, record, parentRec);
|
|
6153
6287
|
}
|
|
6154
6288
|
this.isExpandingEventTriggered = true;
|
|
6155
6289
|
}
|
|
@@ -6160,13 +6294,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6160
6294
|
if (expandingArgs.expandAll) {
|
|
6161
6295
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6162
6296
|
}
|
|
6163
|
-
this.expandRows(row, record, parentRec
|
|
6297
|
+
this.expandRows(row, record, parentRec);
|
|
6164
6298
|
}
|
|
6165
6299
|
});
|
|
6166
6300
|
}
|
|
6167
6301
|
}
|
|
6168
6302
|
// Internal method to handle the rows expand
|
|
6169
|
-
expandRows(row, record, parentRec
|
|
6303
|
+
expandRows(row, record, parentRec) {
|
|
6170
6304
|
this.expandCollapse('expand', row, record);
|
|
6171
6305
|
const children = 'Children';
|
|
6172
6306
|
if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record[`${children}`]))) {
|
|
@@ -6236,6 +6370,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6236
6370
|
* @returns {void}
|
|
6237
6371
|
*/
|
|
6238
6372
|
collapseRow(row, record, key) {
|
|
6373
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
6374
|
+
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6375
|
+
this.trigger(actionFailure, { error: error });
|
|
6376
|
+
}
|
|
6239
6377
|
let parentRec = this.parentData;
|
|
6240
6378
|
if (!this.enableVirtualization) {
|
|
6241
6379
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6252,12 +6390,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6252
6390
|
if (collapsingArgs.collapseAll) {
|
|
6253
6391
|
this.expandCollapseAllChildren(record, 'collapse', key);
|
|
6254
6392
|
}
|
|
6255
|
-
this.collapseRows(row, record, parentRec
|
|
6393
|
+
this.collapseRows(row, record, parentRec);
|
|
6256
6394
|
}
|
|
6257
6395
|
});
|
|
6258
6396
|
}
|
|
6259
6397
|
else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
|
|
6260
|
-
this.collapseRows(row, record, parentRec
|
|
6398
|
+
this.collapseRows(row, record, parentRec);
|
|
6261
6399
|
}
|
|
6262
6400
|
this.isCollapsingEventTriggered = true;
|
|
6263
6401
|
}
|
|
@@ -6265,13 +6403,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6265
6403
|
const args = { data: record, row: row, cancel: false };
|
|
6266
6404
|
this.trigger(collapsing, args, (collapsingArgs) => {
|
|
6267
6405
|
if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
|
|
6268
|
-
this.collapseRows(row, record, parentRec
|
|
6406
|
+
this.collapseRows(row, record, parentRec);
|
|
6269
6407
|
}
|
|
6270
6408
|
});
|
|
6271
6409
|
}
|
|
6272
6410
|
}
|
|
6273
6411
|
// Internal method for handling the rows collapse
|
|
6274
|
-
collapseRows(row, record, parentRec
|
|
6412
|
+
collapseRows(row, record, parentRec) {
|
|
6275
6413
|
this.expandCollapse('collapse', row, record);
|
|
6276
6414
|
let collapseArgs = { data: record, row: row };
|
|
6277
6415
|
if (!isRemoteData(this)) {
|
|
@@ -6315,6 +6453,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6315
6453
|
* @returns {void}
|
|
6316
6454
|
*/
|
|
6317
6455
|
expandAtLevel(level) {
|
|
6456
|
+
if (isNullOrUndefined(level)) {
|
|
6457
|
+
const error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6458
|
+
this.trigger(actionFailure, { error: error });
|
|
6459
|
+
}
|
|
6318
6460
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6319
6461
|
const rec = this.grid.dataSource.filter((e) => {
|
|
6320
6462
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6337,6 +6479,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6337
6479
|
* @returns {void}
|
|
6338
6480
|
*/
|
|
6339
6481
|
expandByKey(key) {
|
|
6482
|
+
if (isNullOrUndefined(key)) {
|
|
6483
|
+
const error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6484
|
+
this.trigger(actionFailure, { error: error });
|
|
6485
|
+
}
|
|
6340
6486
|
this.expandCollapseActionByKey(key, 'Expand');
|
|
6341
6487
|
}
|
|
6342
6488
|
expandAction(record, key, level, isPaging = false) {
|
|
@@ -6389,6 +6535,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6389
6535
|
* @returns {void}
|
|
6390
6536
|
*/
|
|
6391
6537
|
collapseAtLevel(level) {
|
|
6538
|
+
if (isNullOrUndefined(level)) {
|
|
6539
|
+
const error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6540
|
+
this.trigger(actionFailure, { error: error });
|
|
6541
|
+
}
|
|
6392
6542
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6393
6543
|
const record = this.grid.dataSource.filter((e) => {
|
|
6394
6544
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6411,6 +6561,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6411
6561
|
* @returns {void}
|
|
6412
6562
|
*/
|
|
6413
6563
|
collapseByKey(key) {
|
|
6564
|
+
if (isNullOrUndefined(key)) {
|
|
6565
|
+
const error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6566
|
+
this.trigger(actionFailure, { error: error });
|
|
6567
|
+
}
|
|
6414
6568
|
this.expandCollapseActionByKey(key, 'Collapse');
|
|
6415
6569
|
}
|
|
6416
6570
|
expandCollapseActionByKey(key, action) {
|
|
@@ -6450,6 +6604,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6450
6604
|
* @returns {void}
|
|
6451
6605
|
*/
|
|
6452
6606
|
expandAll() {
|
|
6607
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6608
|
+
const error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6609
|
+
this.trigger(actionFailure, { error: error });
|
|
6610
|
+
}
|
|
6453
6611
|
this.isExpandedEventTriggered = false;
|
|
6454
6612
|
this.isExpandingEventTriggered = false;
|
|
6455
6613
|
this.expandCollapseAll('expand');
|
|
@@ -6460,6 +6618,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6460
6618
|
* @returns {void}
|
|
6461
6619
|
*/
|
|
6462
6620
|
collapseAll() {
|
|
6621
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6622
|
+
const error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6623
|
+
this.trigger(actionFailure, { error: error });
|
|
6624
|
+
}
|
|
6463
6625
|
this.isCollapsedEventTriggered = false;
|
|
6464
6626
|
this.isCollapsingEventTriggered = false;
|
|
6465
6627
|
this.expandCollapseAll('collapse');
|
|
@@ -6626,8 +6788,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6626
6788
|
totalRows = [].slice.call(rows);
|
|
6627
6789
|
for (let i = totalRows.length - 1; i >= 0; i--) {
|
|
6628
6790
|
if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
|
|
6629
|
-
const table
|
|
6630
|
-
const sHeight = table
|
|
6791
|
+
const table = this.getContentTable();
|
|
6792
|
+
const sHeight = table.scrollHeight;
|
|
6631
6793
|
const clientHeight = this.getContent().clientHeight;
|
|
6632
6794
|
this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
|
|
6633
6795
|
break;
|
|
@@ -6686,8 +6848,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6686
6848
|
if (childData[parseInt(i.toString(), 10)]) {
|
|
6687
6849
|
childData[parseInt(i.toString(), 10)].level = record.level + 1;
|
|
6688
6850
|
childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
|
|
6689
|
-
childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
|
|
6690
|
-
childData[parseInt(i.toString(), 10)].taskData = extend({}, childData[parseInt(i.toString(), 10)]);
|
|
6851
|
+
childData[parseInt(i.toString(), 10)].parentItem = extend$1({}, record);
|
|
6852
|
+
childData[parseInt(i.toString(), 10)].taskData = extend$1({}, childData[parseInt(i.toString(), 10)]);
|
|
6691
6853
|
delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
|
|
6692
6854
|
delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
|
|
6693
6855
|
childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
|
|
@@ -7001,6 +7163,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7001
7163
|
* @returns {void}
|
|
7002
7164
|
*/
|
|
7003
7165
|
filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
|
|
7166
|
+
if (isNullOrUndefined(fieldName) && isNullOrUndefined(filterOperator) && isNullOrUndefined(filterValue)) {
|
|
7167
|
+
const error = 'The provided value for the fieldName, filterOperator and filterValue are undefined. Please ensure the fieldName, filterOperator and filterValue.';
|
|
7168
|
+
this.trigger(actionFailure, { error: error });
|
|
7169
|
+
}
|
|
7004
7170
|
this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
|
|
7005
7171
|
}
|
|
7006
7172
|
/**
|
|
@@ -7067,6 +7233,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7067
7233
|
* @returns {void}
|
|
7068
7234
|
*/
|
|
7069
7235
|
paste(data, rowIndex, colIndex) {
|
|
7236
|
+
if (isNullOrUndefined(data) && isNullOrUndefined(rowIndex) && isNullOrUndefined(colIndex)) {
|
|
7237
|
+
const error = 'The provided value for the index is undefined. Please ensure the index contains number.';
|
|
7238
|
+
this.trigger(actionFailure, { error: error });
|
|
7239
|
+
}
|
|
7070
7240
|
this.clipboardModule.paste(data, rowIndex, colIndex);
|
|
7071
7241
|
}
|
|
7072
7242
|
/**
|
|
@@ -7278,7 +7448,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7278
7448
|
* @returns {number} - Returns frozen column count
|
|
7279
7449
|
*/
|
|
7280
7450
|
getFrozenColumns() {
|
|
7281
|
-
return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
|
|
7451
|
+
return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
|
|
7282
7452
|
}
|
|
7283
7453
|
getFrozenCount(cols, cnt) {
|
|
7284
7454
|
for (let j = 0, len = cols.length; j < len; j++) {
|
|
@@ -7335,6 +7505,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7335
7505
|
* @returns {void}
|
|
7336
7506
|
*/
|
|
7337
7507
|
reorderRows(fromIndexes, toIndex, position) {
|
|
7508
|
+
if (isNullOrUndefined(fromIndexes) && isNullOrUndefined(toIndex) && isNullOrUndefined(position)) {
|
|
7509
|
+
const error = 'The provided value for the fromIndexes, toIndex and position is undefined. Please ensure the fromIndexes and toIndex contains number and position contains string.';
|
|
7510
|
+
this.trigger(actionFailure, { error: error });
|
|
7511
|
+
}
|
|
7338
7512
|
this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
|
|
7339
7513
|
}
|
|
7340
7514
|
/**
|
|
@@ -7362,400 +7536,400 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7362
7536
|
}
|
|
7363
7537
|
}
|
|
7364
7538
|
};
|
|
7365
|
-
__decorate([
|
|
7539
|
+
__decorate$b([
|
|
7366
7540
|
Property(0)
|
|
7367
7541
|
], TreeGrid.prototype, "frozenRows", void 0);
|
|
7368
|
-
__decorate([
|
|
7542
|
+
__decorate$b([
|
|
7369
7543
|
Property(0)
|
|
7370
7544
|
], TreeGrid.prototype, "frozenColumns", void 0);
|
|
7371
|
-
__decorate([
|
|
7545
|
+
__decorate$b([
|
|
7372
7546
|
Property('Ellipsis')
|
|
7373
7547
|
], TreeGrid.prototype, "clipMode", void 0);
|
|
7374
|
-
__decorate([
|
|
7548
|
+
__decorate$b([
|
|
7375
7549
|
Property([])
|
|
7376
7550
|
], TreeGrid.prototype, "columns", void 0);
|
|
7377
|
-
__decorate([
|
|
7551
|
+
__decorate$b([
|
|
7378
7552
|
Property(null)
|
|
7379
7553
|
], TreeGrid.prototype, "childMapping", void 0);
|
|
7380
|
-
__decorate([
|
|
7554
|
+
__decorate$b([
|
|
7381
7555
|
Property(null)
|
|
7382
7556
|
], TreeGrid.prototype, "hasChildMapping", void 0);
|
|
7383
|
-
__decorate([
|
|
7557
|
+
__decorate$b([
|
|
7384
7558
|
Property(0)
|
|
7385
7559
|
], TreeGrid.prototype, "treeColumnIndex", void 0);
|
|
7386
|
-
__decorate([
|
|
7560
|
+
__decorate$b([
|
|
7387
7561
|
Property(null)
|
|
7388
7562
|
], TreeGrid.prototype, "idMapping", void 0);
|
|
7389
|
-
__decorate([
|
|
7563
|
+
__decorate$b([
|
|
7390
7564
|
Property(null)
|
|
7391
7565
|
], TreeGrid.prototype, "parentIdMapping", void 0);
|
|
7392
|
-
__decorate([
|
|
7566
|
+
__decorate$b([
|
|
7393
7567
|
Property(false)
|
|
7394
7568
|
], TreeGrid.prototype, "enableCollapseAll", void 0);
|
|
7395
|
-
__decorate([
|
|
7569
|
+
__decorate$b([
|
|
7396
7570
|
Property(null)
|
|
7397
7571
|
], TreeGrid.prototype, "expandStateMapping", void 0);
|
|
7398
|
-
__decorate([
|
|
7572
|
+
__decorate$b([
|
|
7399
7573
|
Property(false)
|
|
7400
7574
|
], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
|
|
7401
|
-
__decorate([
|
|
7575
|
+
__decorate$b([
|
|
7402
7576
|
Property([])
|
|
7403
7577
|
], TreeGrid.prototype, "dataSource", void 0);
|
|
7404
|
-
__decorate([
|
|
7578
|
+
__decorate$b([
|
|
7405
7579
|
Property()
|
|
7406
7580
|
], TreeGrid.prototype, "query", void 0);
|
|
7407
|
-
__decorate([
|
|
7581
|
+
__decorate$b([
|
|
7408
7582
|
Property()
|
|
7409
7583
|
], TreeGrid.prototype, "cloneQuery", void 0);
|
|
7410
|
-
__decorate([
|
|
7584
|
+
__decorate$b([
|
|
7411
7585
|
Property('AllPages')
|
|
7412
7586
|
], TreeGrid.prototype, "printMode", void 0);
|
|
7413
|
-
__decorate([
|
|
7587
|
+
__decorate$b([
|
|
7414
7588
|
Property(false)
|
|
7415
7589
|
], TreeGrid.prototype, "allowPaging", void 0);
|
|
7416
|
-
__decorate([
|
|
7590
|
+
__decorate$b([
|
|
7417
7591
|
Property(false)
|
|
7418
7592
|
], TreeGrid.prototype, "loadChildOnDemand", void 0);
|
|
7419
|
-
__decorate([
|
|
7593
|
+
__decorate$b([
|
|
7420
7594
|
Property(false)
|
|
7421
7595
|
], TreeGrid.prototype, "allowTextWrap", void 0);
|
|
7422
|
-
__decorate([
|
|
7596
|
+
__decorate$b([
|
|
7423
7597
|
Complex({}, TextWrapSettings)
|
|
7424
7598
|
], TreeGrid.prototype, "textWrapSettings", void 0);
|
|
7425
|
-
__decorate([
|
|
7599
|
+
__decorate$b([
|
|
7426
7600
|
Property(false)
|
|
7427
7601
|
], TreeGrid.prototype, "allowReordering", void 0);
|
|
7428
|
-
__decorate([
|
|
7602
|
+
__decorate$b([
|
|
7429
7603
|
Property(false)
|
|
7430
7604
|
], TreeGrid.prototype, "allowResizing", void 0);
|
|
7431
|
-
__decorate([
|
|
7605
|
+
__decorate$b([
|
|
7432
7606
|
Property(false)
|
|
7433
7607
|
], TreeGrid.prototype, "autoCheckHierarchy", void 0);
|
|
7434
|
-
__decorate([
|
|
7608
|
+
__decorate$b([
|
|
7435
7609
|
Complex({}, PageSettings)
|
|
7436
7610
|
], TreeGrid.prototype, "pageSettings", void 0);
|
|
7437
|
-
__decorate([
|
|
7438
|
-
Complex({}, RowDropSettings)
|
|
7611
|
+
__decorate$b([
|
|
7612
|
+
Complex({}, RowDropSettings$1)
|
|
7439
7613
|
], TreeGrid.prototype, "rowDropSettings", void 0);
|
|
7440
|
-
__decorate([
|
|
7614
|
+
__decorate$b([
|
|
7441
7615
|
Property('USD')
|
|
7442
7616
|
], TreeGrid.prototype, "currencyCode", void 0);
|
|
7443
|
-
__decorate([
|
|
7617
|
+
__decorate$b([
|
|
7444
7618
|
Property()
|
|
7445
7619
|
], TreeGrid.prototype, "pagerTemplate", void 0);
|
|
7446
|
-
__decorate([
|
|
7620
|
+
__decorate$b([
|
|
7447
7621
|
Property(false)
|
|
7448
7622
|
], TreeGrid.prototype, "showColumnMenu", void 0);
|
|
7449
|
-
__decorate([
|
|
7623
|
+
__decorate$b([
|
|
7450
7624
|
Property(false)
|
|
7451
7625
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
7452
|
-
__decorate([
|
|
7626
|
+
__decorate$b([
|
|
7453
7627
|
Property(false)
|
|
7454
7628
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
7455
|
-
__decorate([
|
|
7629
|
+
__decorate$b([
|
|
7456
7630
|
Property(true)
|
|
7457
7631
|
], TreeGrid.prototype, "allowMultiSorting", void 0);
|
|
7458
|
-
__decorate([
|
|
7632
|
+
__decorate$b([
|
|
7459
7633
|
Complex({}, SortSettings)
|
|
7460
7634
|
], TreeGrid.prototype, "sortSettings", void 0);
|
|
7461
|
-
__decorate([
|
|
7635
|
+
__decorate$b([
|
|
7462
7636
|
Collection([], AggregateRow)
|
|
7463
7637
|
], TreeGrid.prototype, "aggregates", void 0);
|
|
7464
|
-
__decorate([
|
|
7638
|
+
__decorate$b([
|
|
7465
7639
|
Complex({}, EditSettings)
|
|
7466
7640
|
], TreeGrid.prototype, "editSettings", void 0);
|
|
7467
|
-
__decorate([
|
|
7641
|
+
__decorate$b([
|
|
7468
7642
|
Property(false)
|
|
7469
7643
|
], TreeGrid.prototype, "allowFiltering", void 0);
|
|
7470
|
-
__decorate([
|
|
7644
|
+
__decorate$b([
|
|
7471
7645
|
Property()
|
|
7472
7646
|
], TreeGrid.prototype, "detailTemplate", void 0);
|
|
7473
|
-
__decorate([
|
|
7647
|
+
__decorate$b([
|
|
7474
7648
|
Complex({}, FilterSettings)
|
|
7475
7649
|
], TreeGrid.prototype, "filterSettings", void 0);
|
|
7476
|
-
__decorate([
|
|
7650
|
+
__decorate$b([
|
|
7477
7651
|
Complex({}, SearchSettings)
|
|
7478
7652
|
], TreeGrid.prototype, "searchSettings", void 0);
|
|
7479
|
-
__decorate([
|
|
7653
|
+
__decorate$b([
|
|
7480
7654
|
Property()
|
|
7481
7655
|
], TreeGrid.prototype, "toolbar", void 0);
|
|
7482
|
-
__decorate([
|
|
7656
|
+
__decorate$b([
|
|
7483
7657
|
Property()
|
|
7484
7658
|
], TreeGrid.prototype, "toolbarTemplate", void 0);
|
|
7485
|
-
__decorate([
|
|
7659
|
+
__decorate$b([
|
|
7486
7660
|
Property('Default')
|
|
7487
7661
|
], TreeGrid.prototype, "gridLines", void 0);
|
|
7488
|
-
__decorate([
|
|
7662
|
+
__decorate$b([
|
|
7489
7663
|
Property()
|
|
7490
7664
|
], TreeGrid.prototype, "contextMenuItems", void 0);
|
|
7491
|
-
__decorate([
|
|
7665
|
+
__decorate$b([
|
|
7492
7666
|
Property()
|
|
7493
7667
|
], TreeGrid.prototype, "columnMenuItems", void 0);
|
|
7494
|
-
__decorate([
|
|
7668
|
+
__decorate$b([
|
|
7495
7669
|
Property()
|
|
7496
7670
|
], TreeGrid.prototype, "rowTemplate", void 0);
|
|
7497
|
-
__decorate([
|
|
7671
|
+
__decorate$b([
|
|
7498
7672
|
Property('Parent')
|
|
7499
7673
|
], TreeGrid.prototype, "copyHierarchyMode", void 0);
|
|
7500
|
-
__decorate([
|
|
7674
|
+
__decorate$b([
|
|
7501
7675
|
Property(null)
|
|
7502
7676
|
], TreeGrid.prototype, "rowHeight", void 0);
|
|
7503
|
-
__decorate([
|
|
7677
|
+
__decorate$b([
|
|
7504
7678
|
Property(true)
|
|
7505
7679
|
], TreeGrid.prototype, "enableAltRow", void 0);
|
|
7506
|
-
__decorate([
|
|
7680
|
+
__decorate$b([
|
|
7507
7681
|
Property(true)
|
|
7508
7682
|
], TreeGrid.prototype, "allowKeyboard", void 0);
|
|
7509
|
-
__decorate([
|
|
7683
|
+
__decorate$b([
|
|
7510
7684
|
Property(false)
|
|
7511
7685
|
], TreeGrid.prototype, "enableHover", void 0);
|
|
7512
|
-
__decorate([
|
|
7686
|
+
__decorate$b([
|
|
7513
7687
|
Property(false)
|
|
7514
7688
|
], TreeGrid.prototype, "enableAutoFill", void 0);
|
|
7515
|
-
__decorate([
|
|
7689
|
+
__decorate$b([
|
|
7516
7690
|
Property(false)
|
|
7517
7691
|
], TreeGrid.prototype, "enableAdaptiveUI", void 0);
|
|
7518
|
-
__decorate([
|
|
7692
|
+
__decorate$b([
|
|
7519
7693
|
Property(false)
|
|
7520
7694
|
], TreeGrid.prototype, "enableImmutableMode", void 0);
|
|
7521
|
-
__decorate([
|
|
7695
|
+
__decorate$b([
|
|
7522
7696
|
Property('auto')
|
|
7523
7697
|
], TreeGrid.prototype, "height", void 0);
|
|
7524
|
-
__decorate([
|
|
7698
|
+
__decorate$b([
|
|
7525
7699
|
Property('auto')
|
|
7526
7700
|
], TreeGrid.prototype, "width", void 0);
|
|
7527
|
-
__decorate([
|
|
7701
|
+
__decorate$b([
|
|
7528
7702
|
Complex({}, LoadingIndicator)
|
|
7529
7703
|
], TreeGrid.prototype, "loadingIndicator", void 0);
|
|
7530
|
-
__decorate([
|
|
7704
|
+
__decorate$b([
|
|
7531
7705
|
Property(true)
|
|
7532
7706
|
], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
|
|
7533
|
-
__decorate([
|
|
7707
|
+
__decorate$b([
|
|
7534
7708
|
Property(false)
|
|
7535
7709
|
], TreeGrid.prototype, "enableVirtualization", void 0);
|
|
7536
|
-
__decorate([
|
|
7710
|
+
__decorate$b([
|
|
7537
7711
|
Property(false)
|
|
7538
7712
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
7539
|
-
__decorate([
|
|
7713
|
+
__decorate$b([
|
|
7540
7714
|
Property(false)
|
|
7541
7715
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
7542
|
-
__decorate([
|
|
7716
|
+
__decorate$b([
|
|
7543
7717
|
Property(false)
|
|
7544
7718
|
], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
|
|
7545
|
-
__decorate([
|
|
7719
|
+
__decorate$b([
|
|
7546
7720
|
Complex({}, InfiniteScrollSettings)
|
|
7547
7721
|
], TreeGrid.prototype, "infiniteScrollSettings", void 0);
|
|
7548
|
-
__decorate([
|
|
7722
|
+
__decorate$b([
|
|
7549
7723
|
Property('All')
|
|
7550
7724
|
], TreeGrid.prototype, "columnQueryMode", void 0);
|
|
7551
|
-
__decorate([
|
|
7725
|
+
__decorate$b([
|
|
7552
7726
|
Event()
|
|
7553
7727
|
], TreeGrid.prototype, "created", void 0);
|
|
7554
|
-
__decorate([
|
|
7728
|
+
__decorate$b([
|
|
7555
7729
|
Event()
|
|
7556
7730
|
], TreeGrid.prototype, "load", void 0);
|
|
7557
|
-
__decorate([
|
|
7731
|
+
__decorate$b([
|
|
7558
7732
|
Event()
|
|
7559
7733
|
], TreeGrid.prototype, "expanding", void 0);
|
|
7560
|
-
__decorate([
|
|
7734
|
+
__decorate$b([
|
|
7561
7735
|
Event()
|
|
7562
7736
|
], TreeGrid.prototype, "expanded", void 0);
|
|
7563
|
-
__decorate([
|
|
7737
|
+
__decorate$b([
|
|
7564
7738
|
Event()
|
|
7565
7739
|
], TreeGrid.prototype, "collapsing", void 0);
|
|
7566
|
-
__decorate([
|
|
7740
|
+
__decorate$b([
|
|
7567
7741
|
Event()
|
|
7568
7742
|
], TreeGrid.prototype, "collapsed", void 0);
|
|
7569
|
-
__decorate([
|
|
7743
|
+
__decorate$b([
|
|
7570
7744
|
Event()
|
|
7571
7745
|
], TreeGrid.prototype, "cellSave", void 0);
|
|
7572
|
-
__decorate([
|
|
7746
|
+
__decorate$b([
|
|
7573
7747
|
Event()
|
|
7574
7748
|
], TreeGrid.prototype, "cellSaved", void 0);
|
|
7575
|
-
__decorate([
|
|
7749
|
+
__decorate$b([
|
|
7576
7750
|
Event()
|
|
7577
7751
|
], TreeGrid.prototype, "actionBegin", void 0);
|
|
7578
|
-
__decorate([
|
|
7752
|
+
__decorate$b([
|
|
7579
7753
|
Event()
|
|
7580
7754
|
], TreeGrid.prototype, "actionComplete", void 0);
|
|
7581
|
-
__decorate([
|
|
7755
|
+
__decorate$b([
|
|
7582
7756
|
Event()
|
|
7583
7757
|
], TreeGrid.prototype, "beginEdit", void 0);
|
|
7584
|
-
__decorate([
|
|
7758
|
+
__decorate$b([
|
|
7585
7759
|
Event()
|
|
7586
7760
|
], TreeGrid.prototype, "batchAdd", void 0);
|
|
7587
|
-
__decorate([
|
|
7761
|
+
__decorate$b([
|
|
7588
7762
|
Event()
|
|
7589
7763
|
], TreeGrid.prototype, "batchDelete", void 0);
|
|
7590
|
-
__decorate([
|
|
7764
|
+
__decorate$b([
|
|
7591
7765
|
Event()
|
|
7592
7766
|
], TreeGrid.prototype, "batchCancel", void 0);
|
|
7593
|
-
__decorate([
|
|
7767
|
+
__decorate$b([
|
|
7594
7768
|
Event()
|
|
7595
7769
|
], TreeGrid.prototype, "beforeBatchAdd", void 0);
|
|
7596
|
-
__decorate([
|
|
7770
|
+
__decorate$b([
|
|
7597
7771
|
Event()
|
|
7598
7772
|
], TreeGrid.prototype, "beforeBatchDelete", void 0);
|
|
7599
|
-
__decorate([
|
|
7773
|
+
__decorate$b([
|
|
7600
7774
|
Event()
|
|
7601
7775
|
], TreeGrid.prototype, "beforeBatchSave", void 0);
|
|
7602
|
-
__decorate([
|
|
7776
|
+
__decorate$b([
|
|
7603
7777
|
Event()
|
|
7604
7778
|
], TreeGrid.prototype, "cellEdit", void 0);
|
|
7605
|
-
__decorate([
|
|
7779
|
+
__decorate$b([
|
|
7606
7780
|
Event()
|
|
7607
7781
|
], TreeGrid.prototype, "actionFailure", void 0);
|
|
7608
|
-
__decorate([
|
|
7782
|
+
__decorate$b([
|
|
7609
7783
|
Event()
|
|
7610
7784
|
], TreeGrid.prototype, "dataBound", void 0);
|
|
7611
|
-
__decorate([
|
|
7785
|
+
__decorate$b([
|
|
7612
7786
|
Event()
|
|
7613
7787
|
], TreeGrid.prototype, "dataSourceChanged", void 0);
|
|
7614
|
-
__decorate([
|
|
7788
|
+
__decorate$b([
|
|
7615
7789
|
Event()
|
|
7616
7790
|
], TreeGrid.prototype, "dataStateChange", void 0);
|
|
7617
|
-
__decorate([
|
|
7791
|
+
__decorate$b([
|
|
7618
7792
|
Event()
|
|
7619
7793
|
], TreeGrid.prototype, "recordDoubleClick", void 0);
|
|
7620
|
-
__decorate([
|
|
7794
|
+
__decorate$b([
|
|
7621
7795
|
Event()
|
|
7622
7796
|
], TreeGrid.prototype, "rowDataBound", void 0);
|
|
7623
|
-
__decorate([
|
|
7797
|
+
__decorate$b([
|
|
7624
7798
|
Event()
|
|
7625
7799
|
], TreeGrid.prototype, "detailDataBound", void 0);
|
|
7626
|
-
__decorate([
|
|
7800
|
+
__decorate$b([
|
|
7627
7801
|
Event()
|
|
7628
7802
|
], TreeGrid.prototype, "queryCellInfo", void 0);
|
|
7629
|
-
__decorate([
|
|
7803
|
+
__decorate$b([
|
|
7630
7804
|
Property(true)
|
|
7631
7805
|
], TreeGrid.prototype, "allowSelection", void 0);
|
|
7632
|
-
__decorate([
|
|
7806
|
+
__decorate$b([
|
|
7633
7807
|
Event()
|
|
7634
7808
|
], TreeGrid.prototype, "rowSelecting", void 0);
|
|
7635
|
-
__decorate([
|
|
7809
|
+
__decorate$b([
|
|
7636
7810
|
Event()
|
|
7637
7811
|
], TreeGrid.prototype, "rowSelected", void 0);
|
|
7638
|
-
__decorate([
|
|
7812
|
+
__decorate$b([
|
|
7639
7813
|
Event()
|
|
7640
7814
|
], TreeGrid.prototype, "rowDeselecting", void 0);
|
|
7641
|
-
__decorate([
|
|
7815
|
+
__decorate$b([
|
|
7642
7816
|
Event()
|
|
7643
7817
|
], TreeGrid.prototype, "rowDeselected", void 0);
|
|
7644
|
-
__decorate([
|
|
7818
|
+
__decorate$b([
|
|
7645
7819
|
Event()
|
|
7646
7820
|
], TreeGrid.prototype, "headerCellInfo", void 0);
|
|
7647
|
-
__decorate([
|
|
7821
|
+
__decorate$b([
|
|
7648
7822
|
Event()
|
|
7649
7823
|
], TreeGrid.prototype, "cellSelecting", void 0);
|
|
7650
|
-
__decorate([
|
|
7824
|
+
__decorate$b([
|
|
7651
7825
|
Event()
|
|
7652
7826
|
], TreeGrid.prototype, "columnMenuOpen", void 0);
|
|
7653
|
-
__decorate([
|
|
7827
|
+
__decorate$b([
|
|
7654
7828
|
Event()
|
|
7655
7829
|
], TreeGrid.prototype, "columnMenuClick", void 0);
|
|
7656
|
-
__decorate([
|
|
7830
|
+
__decorate$b([
|
|
7657
7831
|
Event()
|
|
7658
7832
|
], TreeGrid.prototype, "cellSelected", void 0);
|
|
7659
|
-
__decorate([
|
|
7833
|
+
__decorate$b([
|
|
7660
7834
|
Event()
|
|
7661
7835
|
], TreeGrid.prototype, "cellDeselecting", void 0);
|
|
7662
|
-
__decorate([
|
|
7836
|
+
__decorate$b([
|
|
7663
7837
|
Event()
|
|
7664
7838
|
], TreeGrid.prototype, "cellDeselected", void 0);
|
|
7665
|
-
__decorate([
|
|
7839
|
+
__decorate$b([
|
|
7666
7840
|
Event()
|
|
7667
7841
|
], TreeGrid.prototype, "resizeStart", void 0);
|
|
7668
|
-
__decorate([
|
|
7842
|
+
__decorate$b([
|
|
7669
7843
|
Event()
|
|
7670
7844
|
], TreeGrid.prototype, "resizing", void 0);
|
|
7671
|
-
__decorate([
|
|
7845
|
+
__decorate$b([
|
|
7672
7846
|
Event()
|
|
7673
7847
|
], TreeGrid.prototype, "resizeStop", void 0);
|
|
7674
|
-
__decorate([
|
|
7848
|
+
__decorate$b([
|
|
7675
7849
|
Event()
|
|
7676
7850
|
], TreeGrid.prototype, "columnDragStart", void 0);
|
|
7677
|
-
__decorate([
|
|
7851
|
+
__decorate$b([
|
|
7678
7852
|
Event()
|
|
7679
7853
|
], TreeGrid.prototype, "columnDrag", void 0);
|
|
7680
|
-
__decorate([
|
|
7854
|
+
__decorate$b([
|
|
7681
7855
|
Event()
|
|
7682
7856
|
], TreeGrid.prototype, "columnDrop", void 0);
|
|
7683
|
-
__decorate([
|
|
7857
|
+
__decorate$b([
|
|
7684
7858
|
Event()
|
|
7685
7859
|
], TreeGrid.prototype, "checkboxChange", void 0);
|
|
7686
|
-
__decorate([
|
|
7860
|
+
__decorate$b([
|
|
7687
7861
|
Event()
|
|
7688
7862
|
], TreeGrid.prototype, "printComplete", void 0);
|
|
7689
|
-
__decorate([
|
|
7863
|
+
__decorate$b([
|
|
7690
7864
|
Event()
|
|
7691
7865
|
], TreeGrid.prototype, "beforePrint", void 0);
|
|
7692
|
-
__decorate([
|
|
7866
|
+
__decorate$b([
|
|
7693
7867
|
Event()
|
|
7694
7868
|
], TreeGrid.prototype, "toolbarClick", void 0);
|
|
7695
|
-
__decorate([
|
|
7869
|
+
__decorate$b([
|
|
7696
7870
|
Event()
|
|
7697
7871
|
], TreeGrid.prototype, "beforeDataBound", void 0);
|
|
7698
|
-
__decorate([
|
|
7872
|
+
__decorate$b([
|
|
7699
7873
|
Event()
|
|
7700
7874
|
], TreeGrid.prototype, "contextMenuOpen", void 0);
|
|
7701
|
-
__decorate([
|
|
7875
|
+
__decorate$b([
|
|
7702
7876
|
Event()
|
|
7703
7877
|
], TreeGrid.prototype, "contextMenuClick", void 0);
|
|
7704
|
-
__decorate([
|
|
7878
|
+
__decorate$b([
|
|
7705
7879
|
Event()
|
|
7706
7880
|
], TreeGrid.prototype, "beforeCopy", void 0);
|
|
7707
|
-
__decorate([
|
|
7881
|
+
__decorate$b([
|
|
7708
7882
|
Event()
|
|
7709
7883
|
], TreeGrid.prototype, "beforePaste", void 0);
|
|
7710
|
-
__decorate([
|
|
7884
|
+
__decorate$b([
|
|
7711
7885
|
Event()
|
|
7712
7886
|
], TreeGrid.prototype, "rowDrag", void 0);
|
|
7713
|
-
__decorate([
|
|
7887
|
+
__decorate$b([
|
|
7714
7888
|
Event()
|
|
7715
7889
|
], TreeGrid.prototype, "rowDragStart", void 0);
|
|
7716
|
-
__decorate([
|
|
7890
|
+
__decorate$b([
|
|
7717
7891
|
Event()
|
|
7718
7892
|
], TreeGrid.prototype, "rowDragStartHelper", void 0);
|
|
7719
|
-
__decorate([
|
|
7893
|
+
__decorate$b([
|
|
7720
7894
|
Event()
|
|
7721
7895
|
], TreeGrid.prototype, "rowDrop", void 0);
|
|
7722
|
-
__decorate([
|
|
7896
|
+
__decorate$b([
|
|
7723
7897
|
Property(-1)
|
|
7724
7898
|
], TreeGrid.prototype, "selectedRowIndex", void 0);
|
|
7725
|
-
__decorate([
|
|
7899
|
+
__decorate$b([
|
|
7726
7900
|
Complex({}, SelectionSettings)
|
|
7727
7901
|
], TreeGrid.prototype, "selectionSettings", void 0);
|
|
7728
|
-
__decorate([
|
|
7902
|
+
__decorate$b([
|
|
7729
7903
|
Property(false)
|
|
7730
7904
|
], TreeGrid.prototype, "allowExcelExport", void 0);
|
|
7731
|
-
__decorate([
|
|
7905
|
+
__decorate$b([
|
|
7732
7906
|
Property(false)
|
|
7733
7907
|
], TreeGrid.prototype, "allowPdfExport", void 0);
|
|
7734
|
-
__decorate([
|
|
7908
|
+
__decorate$b([
|
|
7735
7909
|
Event()
|
|
7736
7910
|
], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
|
|
7737
|
-
__decorate([
|
|
7911
|
+
__decorate$b([
|
|
7738
7912
|
Event()
|
|
7739
7913
|
], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
|
|
7740
|
-
__decorate([
|
|
7914
|
+
__decorate$b([
|
|
7741
7915
|
Event()
|
|
7742
7916
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
7743
|
-
__decorate([
|
|
7917
|
+
__decorate$b([
|
|
7744
7918
|
Event()
|
|
7745
7919
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
7746
|
-
__decorate([
|
|
7920
|
+
__decorate$b([
|
|
7747
7921
|
Event()
|
|
7748
7922
|
], TreeGrid.prototype, "beforeExcelExport", void 0);
|
|
7749
|
-
__decorate([
|
|
7923
|
+
__decorate$b([
|
|
7750
7924
|
Event()
|
|
7751
7925
|
], TreeGrid.prototype, "excelExportComplete", void 0);
|
|
7752
|
-
__decorate([
|
|
7926
|
+
__decorate$b([
|
|
7753
7927
|
Event()
|
|
7754
7928
|
], TreeGrid.prototype, "beforePdfExport", void 0);
|
|
7755
|
-
__decorate([
|
|
7929
|
+
__decorate$b([
|
|
7756
7930
|
Event()
|
|
7757
7931
|
], TreeGrid.prototype, "pdfExportComplete", void 0);
|
|
7758
|
-
TreeGrid = TreeGrid_1 = __decorate([
|
|
7932
|
+
TreeGrid = TreeGrid_1 = __decorate$b([
|
|
7759
7933
|
NotifyPropertyChanges
|
|
7760
7934
|
], TreeGrid);
|
|
7761
7935
|
|
|
@@ -7764,14 +7938,14 @@ TreeGrid = TreeGrid_1 = __decorate([
|
|
|
7764
7938
|
*
|
|
7765
7939
|
* @hidden
|
|
7766
7940
|
*/
|
|
7767
|
-
class Reorder
|
|
7941
|
+
class Reorder {
|
|
7768
7942
|
/**
|
|
7769
7943
|
* Constructor for Reorder module
|
|
7770
7944
|
*
|
|
7771
7945
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7772
7946
|
*/
|
|
7773
7947
|
constructor(parent) {
|
|
7774
|
-
Grid.Inject(Reorder);
|
|
7948
|
+
Grid.Inject(Reorder$1);
|
|
7775
7949
|
this.parent = parent;
|
|
7776
7950
|
this.addEventListener();
|
|
7777
7951
|
}
|
|
@@ -7828,14 +8002,14 @@ class Reorder$1 {
|
|
|
7828
8002
|
*
|
|
7829
8003
|
* @hidden
|
|
7830
8004
|
*/
|
|
7831
|
-
class Resize
|
|
8005
|
+
class Resize {
|
|
7832
8006
|
/**
|
|
7833
8007
|
* Constructor for Resize module
|
|
7834
8008
|
*
|
|
7835
8009
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7836
8010
|
*/
|
|
7837
8011
|
constructor(parent) {
|
|
7838
|
-
Grid.Inject(Resize);
|
|
8012
|
+
Grid.Inject(Resize$1);
|
|
7839
8013
|
this.parent = parent;
|
|
7840
8014
|
}
|
|
7841
8015
|
/**
|
|
@@ -7875,7 +8049,7 @@ class Resize$1 {
|
|
|
7875
8049
|
*
|
|
7876
8050
|
* @hidden
|
|
7877
8051
|
*/
|
|
7878
|
-
class RowDD
|
|
8052
|
+
class RowDD {
|
|
7879
8053
|
/**
|
|
7880
8054
|
* Constructor for render module
|
|
7881
8055
|
*
|
|
@@ -7896,7 +8070,7 @@ class RowDD$1 {
|
|
|
7896
8070
|
this.hasDropItem = true;
|
|
7897
8071
|
/** @hidden */
|
|
7898
8072
|
this.isaddtoBottom = false;
|
|
7899
|
-
Grid.Inject(RowDD);
|
|
8073
|
+
Grid.Inject(RowDD$1);
|
|
7900
8074
|
this.parent = parent;
|
|
7901
8075
|
this.addEventListener();
|
|
7902
8076
|
}
|
|
@@ -8167,15 +8341,17 @@ class RowDD$1 {
|
|
|
8167
8341
|
!Object.prototype.hasOwnProperty.call(draggedRecord.taskData, tObj.childMapping)) {
|
|
8168
8342
|
draggedRecord.taskData[tObj.childMapping] = [];
|
|
8169
8343
|
}
|
|
8170
|
-
if (
|
|
8171
|
-
(draggedRecord
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
dragRecords.
|
|
8177
|
-
|
|
8178
|
-
|
|
8344
|
+
if (!isNullOrUndefined(draggedRecord[tObj.childMapping])) {
|
|
8345
|
+
if (Object.prototype.hasOwnProperty.call(draggedRecord, tObj.childMapping) &&
|
|
8346
|
+
(draggedRecord[tObj.childMapping]).length && !this.isDraggedWithChild &&
|
|
8347
|
+
!isNullOrUndefined(tObj.parentIdMapping)) {
|
|
8348
|
+
const childData = (draggedRecord[tObj.childMapping]);
|
|
8349
|
+
for (let j = 0; j < childData.length; j++) {
|
|
8350
|
+
if (dragRecords.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
|
|
8351
|
+
dragRecords.splice(j, 0, childData[parseInt(j.toString(), 10)]);
|
|
8352
|
+
childData[parseInt(j.toString(), 10)].taskData = extend$1({}, childData[parseInt(j.toString(), 10)]);
|
|
8353
|
+
i += 1;
|
|
8354
|
+
}
|
|
8179
8355
|
}
|
|
8180
8356
|
}
|
|
8181
8357
|
}
|
|
@@ -8249,13 +8425,22 @@ class RowDD$1 {
|
|
|
8249
8425
|
else {
|
|
8250
8426
|
tempDataSource = proxy.dataSource;
|
|
8251
8427
|
}
|
|
8252
|
-
|
|
8253
|
-
|
|
8428
|
+
if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
|
|
8429
|
+
&& !isNullOrUndefined(droppedRecord.taskData)) {
|
|
8254
8430
|
const keys = Object.keys(tempDataSource);
|
|
8255
8431
|
for (let i = 0; i < keys.length; i++) {
|
|
8256
|
-
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping]
|
|
8257
|
-
|
|
8258
|
-
|
|
8432
|
+
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping]) {
|
|
8433
|
+
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
|
|
8434
|
+
droppedRecord.taskData[this.parent.childMapping]) {
|
|
8435
|
+
idx = i;
|
|
8436
|
+
}
|
|
8437
|
+
}
|
|
8438
|
+
else {
|
|
8439
|
+
const primaryKeyField = this.parent.getPrimaryKeyFieldNames()[0];
|
|
8440
|
+
if (tempDataSource[parseInt(i.toString(), 10)][`${primaryKeyField}`] ===
|
|
8441
|
+
droppedRecord.taskData[`${primaryKeyField}`]) {
|
|
8442
|
+
idx = i;
|
|
8443
|
+
}
|
|
8259
8444
|
}
|
|
8260
8445
|
}
|
|
8261
8446
|
if (this.dropPosition === 'topSegment') {
|
|
@@ -8464,16 +8649,16 @@ class RowDD$1 {
|
|
|
8464
8649
|
classList(ele, ['e-errorcontainer'], []);
|
|
8465
8650
|
classList(ele, ['e-icons', 'e-errorelem'], []);
|
|
8466
8651
|
const errorVal = dragelem.querySelector('.errorValue');
|
|
8467
|
-
let content
|
|
8652
|
+
let content = dragelem.querySelector('.e-rowcell').innerHTML;
|
|
8468
8653
|
if (errorVal) {
|
|
8469
|
-
content
|
|
8654
|
+
content = this.parent[`${sanitize}`](errorVal.innerHTML);
|
|
8470
8655
|
errorVal.parentNode.removeChild(errorVal);
|
|
8471
8656
|
}
|
|
8472
8657
|
dragelem.querySelector('.e-rowcell').innerHTML = '';
|
|
8473
8658
|
const spanContent = document.createElement('span');
|
|
8474
8659
|
spanContent.className = 'errorValue';
|
|
8475
8660
|
spanContent.style.paddingLeft = '16px';
|
|
8476
|
-
spanContent.innerHTML = this.parent[`${sanitize}`](content
|
|
8661
|
+
spanContent.innerHTML = this.parent[`${sanitize}`](content);
|
|
8477
8662
|
dragelem.querySelector('.e-rowcell').appendChild(ele);
|
|
8478
8663
|
dragelem.querySelector('.e-rowcell').appendChild(spanContent);
|
|
8479
8664
|
const dropItemSpan = document.querySelector('.e-dropitemscount');
|
|
@@ -8962,7 +9147,7 @@ class RowDD$1 {
|
|
|
8962
9147
|
}
|
|
8963
9148
|
}
|
|
8964
9149
|
if (this.dropPosition === 'middleSegment') {
|
|
8965
|
-
const parentItem = extend({}, droppedRecord);
|
|
9150
|
+
const parentItem = extend$1({}, droppedRecord);
|
|
8966
9151
|
delete parentItem.childRecords;
|
|
8967
9152
|
draggedRecord.parentItem = parentItem;
|
|
8968
9153
|
draggedRecord.parentUniqueID = droppedRecord.uniqueID;
|
|
@@ -9253,28 +9438,20 @@ class RowDD$1 {
|
|
|
9253
9438
|
}
|
|
9254
9439
|
}
|
|
9255
9440
|
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9263
|
-
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;
|
|
9264
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9265
|
-
};
|
|
9441
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9442
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9443
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9444
|
+
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;
|
|
9445
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9446
|
+
};
|
|
9266
9447
|
/**
|
|
9267
9448
|
* Configures the row drop settings of the TreeGrid.
|
|
9268
9449
|
*/
|
|
9269
|
-
class RowDropSettings
|
|
9450
|
+
class RowDropSettings extends ChildProperty {
|
|
9270
9451
|
}
|
|
9271
|
-
__decorate$
|
|
9452
|
+
__decorate$c([
|
|
9272
9453
|
Property()
|
|
9273
|
-
], RowDropSettings
|
|
9274
|
-
|
|
9275
|
-
/**
|
|
9276
|
-
* Models export
|
|
9277
|
-
*/
|
|
9454
|
+
], RowDropSettings.prototype, "targetID", void 0);
|
|
9278
9455
|
|
|
9279
9456
|
/**
|
|
9280
9457
|
* RowModelGenerator is used to generate grid data rows.
|
|
@@ -9328,8 +9505,8 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9328
9505
|
const rows = super.generateRows(data, notifyArgs);
|
|
9329
9506
|
if (!isNullOrUndefined((this.visualData))) {
|
|
9330
9507
|
for (let r = 0; r < rows.length; r++) {
|
|
9331
|
-
rows[parseInt(r.toString(), 10)].index
|
|
9332
|
-
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9508
|
+
rows[parseInt(r.toString(), 10)].index
|
|
9509
|
+
= (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9333
9510
|
}
|
|
9334
9511
|
}
|
|
9335
9512
|
return rows;
|
|
@@ -9368,23 +9545,19 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9368
9545
|
}
|
|
9369
9546
|
}
|
|
9370
9547
|
|
|
9371
|
-
/**
|
|
9372
|
-
* Renderer export
|
|
9373
|
-
*/
|
|
9374
|
-
|
|
9375
9548
|
/**
|
|
9376
9549
|
* TreeGrid Filter module will handle filtering action
|
|
9377
9550
|
*
|
|
9378
9551
|
* @hidden
|
|
9379
9552
|
*/
|
|
9380
|
-
class Filter
|
|
9553
|
+
class Filter {
|
|
9381
9554
|
/**
|
|
9382
9555
|
* Constructor for Filter module
|
|
9383
9556
|
*
|
|
9384
9557
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9385
9558
|
*/
|
|
9386
9559
|
constructor(parent) {
|
|
9387
|
-
Grid.Inject(Filter);
|
|
9560
|
+
Grid.Inject(Filter$1);
|
|
9388
9561
|
this.parent = parent;
|
|
9389
9562
|
this.isHierarchyFilter = false;
|
|
9390
9563
|
this.filteredResult = [];
|
|
@@ -9606,7 +9779,7 @@ class Filter$1 {
|
|
|
9606
9779
|
*
|
|
9607
9780
|
* @hidden
|
|
9608
9781
|
*/
|
|
9609
|
-
class ExcelExport
|
|
9782
|
+
class ExcelExport {
|
|
9610
9783
|
/**
|
|
9611
9784
|
* Constructor for Excel Export module
|
|
9612
9785
|
*
|
|
@@ -9614,7 +9787,7 @@ class ExcelExport$1 {
|
|
|
9614
9787
|
*/
|
|
9615
9788
|
constructor(parent) {
|
|
9616
9789
|
this.isCollapsedStatePersist = false;
|
|
9617
|
-
Grid.Inject(ExcelExport);
|
|
9790
|
+
Grid.Inject(ExcelExport$1);
|
|
9618
9791
|
this.parent = parent;
|
|
9619
9792
|
this.dataResults = {};
|
|
9620
9793
|
this.addEventListener();
|
|
@@ -9673,9 +9846,10 @@ class ExcelExport$1 {
|
|
|
9673
9846
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
9674
9847
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
9675
9848
|
}
|
|
9676
|
-
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
|
|
9677
|
-
|
|
9678
|
-
|
|
9849
|
+
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)) {
|
|
9850
|
+
if (!excelExportProperties.dataSource['dataSource']) {
|
|
9851
|
+
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
9852
|
+
}
|
|
9679
9853
|
}
|
|
9680
9854
|
return new Promise((resolve) => {
|
|
9681
9855
|
const dm = this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
|
|
@@ -9686,7 +9860,7 @@ class ExcelExport$1 {
|
|
|
9686
9860
|
query.queries = this.parent.grid.getDataModule().generateQuery().queries;
|
|
9687
9861
|
setValue('query', query, property);
|
|
9688
9862
|
}
|
|
9689
|
-
this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
|
|
9863
|
+
this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
|
|
9690
9864
|
if (getObject('cancel', property)) {
|
|
9691
9865
|
return null;
|
|
9692
9866
|
}
|
|
@@ -9811,14 +9985,14 @@ class ExcelExport$1 {
|
|
|
9811
9985
|
*
|
|
9812
9986
|
* @hidden
|
|
9813
9987
|
*/
|
|
9814
|
-
class PdfExport
|
|
9988
|
+
class PdfExport {
|
|
9815
9989
|
/**
|
|
9816
9990
|
* Constructor for PDF export module
|
|
9817
9991
|
*
|
|
9818
9992
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9819
9993
|
*/
|
|
9820
9994
|
constructor(parent) {
|
|
9821
|
-
Grid.Inject(PdfExport);
|
|
9995
|
+
Grid.Inject(PdfExport$1);
|
|
9822
9996
|
this.parent = parent;
|
|
9823
9997
|
this.dataResults = {};
|
|
9824
9998
|
this.addEventListener();
|
|
@@ -9876,7 +10050,7 @@ class PdfExport$1 {
|
|
|
9876
10050
|
query = this.generateQuery(query);
|
|
9877
10051
|
setValue('query', query, prop);
|
|
9878
10052
|
}
|
|
9879
|
-
this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
|
|
10053
|
+
this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
|
|
9880
10054
|
if (getObject('cancel', prop)) {
|
|
9881
10055
|
return null;
|
|
9882
10056
|
}
|
|
@@ -9971,9 +10145,9 @@ class PdfExport$1 {
|
|
|
9971
10145
|
*
|
|
9972
10146
|
* @hidden
|
|
9973
10147
|
*/
|
|
9974
|
-
class Page
|
|
10148
|
+
class Page {
|
|
9975
10149
|
constructor(parent) {
|
|
9976
|
-
Grid.Inject(Page);
|
|
10150
|
+
Grid.Inject(Page$1);
|
|
9977
10151
|
this.parent = parent;
|
|
9978
10152
|
this.addEventListener();
|
|
9979
10153
|
}
|
|
@@ -10038,6 +10212,10 @@ class Page$1 {
|
|
|
10038
10212
|
* @returns {void}
|
|
10039
10213
|
*/
|
|
10040
10214
|
updateExternalMessage(message) {
|
|
10215
|
+
if (isNullOrUndefined(message)) {
|
|
10216
|
+
const error = 'The provided value for the message is undefined. Please ensure the message contains string.';
|
|
10217
|
+
this.parent.trigger(actionFailure, { error: error });
|
|
10218
|
+
}
|
|
10041
10219
|
this.parent.grid.pagerModule.updateExternalMessage(message);
|
|
10042
10220
|
}
|
|
10043
10221
|
/**
|
|
@@ -10134,8 +10312,8 @@ class Page$1 {
|
|
|
10134
10312
|
}
|
|
10135
10313
|
else {
|
|
10136
10314
|
const dm = new DataManager(pageingDetails.result);
|
|
10137
|
-
const expanded
|
|
10138
|
-
const parents = dm.executeLocal(new Query().where(expanded
|
|
10315
|
+
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
10316
|
+
const parents = dm.executeLocal(new Query().where(expanded));
|
|
10139
10317
|
let visualData;
|
|
10140
10318
|
if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
|
|
10141
10319
|
pageingDetails.actionArgs.action !== 'expand')) {
|
|
@@ -10143,7 +10321,7 @@ class Page$1 {
|
|
|
10143
10321
|
}
|
|
10144
10322
|
else {
|
|
10145
10323
|
visualData = parents.filter((e) => {
|
|
10146
|
-
return getExpandStatus(this.parent, e
|
|
10324
|
+
return getExpandStatus(this.parent, e);
|
|
10147
10325
|
});
|
|
10148
10326
|
}
|
|
10149
10327
|
pageingDetails.count = visualData.length;
|
|
@@ -10170,9 +10348,9 @@ class Page$1 {
|
|
|
10170
10348
|
*
|
|
10171
10349
|
* @hidden
|
|
10172
10350
|
*/
|
|
10173
|
-
class Toolbar
|
|
10351
|
+
class Toolbar {
|
|
10174
10352
|
constructor(parent) {
|
|
10175
|
-
Grid.Inject(Toolbar);
|
|
10353
|
+
Grid.Inject(Toolbar$1);
|
|
10176
10354
|
this.parent = parent;
|
|
10177
10355
|
this.addEventListener();
|
|
10178
10356
|
}
|
|
@@ -10319,14 +10497,14 @@ class Toolbar$1 {
|
|
|
10319
10497
|
*
|
|
10320
10498
|
* @hidden
|
|
10321
10499
|
*/
|
|
10322
|
-
class Aggregate
|
|
10500
|
+
class Aggregate {
|
|
10323
10501
|
/**
|
|
10324
10502
|
* Constructor for Aggregate module
|
|
10325
10503
|
*
|
|
10326
10504
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10327
10505
|
*/
|
|
10328
10506
|
constructor(parent) {
|
|
10329
|
-
Grid.Inject(Aggregate);
|
|
10507
|
+
Grid.Inject(Aggregate$1);
|
|
10330
10508
|
this.parent = parent;
|
|
10331
10509
|
this.flatChildRecords = [];
|
|
10332
10510
|
this.summaryQuery = [];
|
|
@@ -10394,7 +10572,7 @@ class Aggregate$1 {
|
|
|
10394
10572
|
}
|
|
10395
10573
|
});
|
|
10396
10574
|
const currentIndex = idx + childRecordsLength + summaryRowIndex;
|
|
10397
|
-
const summaryParent = extend({}, parentRecord);
|
|
10575
|
+
const summaryParent = extend$1({}, parentRecord);
|
|
10398
10576
|
delete summaryParent.childRecords;
|
|
10399
10577
|
delete summaryParent[this.parent.childMapping];
|
|
10400
10578
|
setValue('parentItem', summaryParent, item);
|
|
@@ -10560,9 +10738,9 @@ class Aggregate$1 {
|
|
|
10560
10738
|
*
|
|
10561
10739
|
* @hidden
|
|
10562
10740
|
*/
|
|
10563
|
-
class Sort
|
|
10741
|
+
class Sort {
|
|
10564
10742
|
constructor(grid) {
|
|
10565
|
-
Grid.Inject(Sort);
|
|
10743
|
+
Grid.Inject(Sort$1);
|
|
10566
10744
|
this.parent = grid;
|
|
10567
10745
|
this.taskIds = [];
|
|
10568
10746
|
this.flatSortedData = [];
|
|
@@ -10683,14 +10861,14 @@ class Sort$1 {
|
|
|
10683
10861
|
*
|
|
10684
10862
|
* @hidden
|
|
10685
10863
|
*/
|
|
10686
|
-
class ColumnMenu
|
|
10864
|
+
class ColumnMenu {
|
|
10687
10865
|
/**
|
|
10688
10866
|
* Constructor for render module
|
|
10689
10867
|
*
|
|
10690
10868
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10691
10869
|
*/
|
|
10692
10870
|
constructor(parent) {
|
|
10693
|
-
Grid.Inject(ColumnMenu);
|
|
10871
|
+
Grid.Inject(ColumnMenu$1);
|
|
10694
10872
|
this.parent = parent;
|
|
10695
10873
|
}
|
|
10696
10874
|
getColumnMenu() {
|
|
@@ -10715,9 +10893,9 @@ class ColumnMenu$1 {
|
|
|
10715
10893
|
*
|
|
10716
10894
|
* @hidden
|
|
10717
10895
|
*/
|
|
10718
|
-
class ContextMenu
|
|
10896
|
+
class ContextMenu {
|
|
10719
10897
|
constructor(parent) {
|
|
10720
|
-
Grid.Inject(ContextMenu);
|
|
10898
|
+
Grid.Inject(ContextMenu$1);
|
|
10721
10899
|
this.parent = parent;
|
|
10722
10900
|
this.addEventListener();
|
|
10723
10901
|
}
|
|
@@ -10997,7 +11175,7 @@ class BatchEdit {
|
|
|
10997
11175
|
if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
10998
11176
|
added.primaryParent = parentRecord;
|
|
10999
11177
|
if (this.selectedIndex > -1) {
|
|
11000
|
-
added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
|
|
11178
|
+
added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
|
|
11001
11179
|
added.parentUniqueID = added.parentItem.uniqueID;
|
|
11002
11180
|
delete added.parentItem.childRecords;
|
|
11003
11181
|
delete added.parentItem[this.parent.childMapping];
|
|
@@ -11106,13 +11284,13 @@ class BatchEdit {
|
|
|
11106
11284
|
this.updateRowIndex();
|
|
11107
11285
|
// update focus module, need to refix this once grid source modified.
|
|
11108
11286
|
const focusModule = getValue('focusModule', this.parent.grid);
|
|
11109
|
-
const table
|
|
11287
|
+
const table = this.parent.getContentTable();
|
|
11110
11288
|
if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
|
|
11111
11289
|
actualIndex = e.row.rowIndex;
|
|
11112
11290
|
focusModule.getContent().matrix.matrix = this.matrix;
|
|
11113
11291
|
}
|
|
11114
11292
|
else {
|
|
11115
|
-
actualIndex = table
|
|
11293
|
+
actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
|
|
11116
11294
|
// if (this.parent.frozenRows || this.parent.frozenColumns) {
|
|
11117
11295
|
// actualIndex = this.batchIndex;
|
|
11118
11296
|
// }
|
|
@@ -11340,7 +11518,7 @@ class BatchEdit {
|
|
|
11340
11518
|
addRecords.reverse();
|
|
11341
11519
|
}
|
|
11342
11520
|
for (i = 0; i < addRecords.length; i++) {
|
|
11343
|
-
const taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11521
|
+
const taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11344
11522
|
delete taskData.parentItem;
|
|
11345
11523
|
delete taskData.uniqueID;
|
|
11346
11524
|
delete taskData.index;
|
|
@@ -11464,7 +11642,7 @@ class BatchEdit {
|
|
|
11464
11642
|
* TreeGrid Edit Module
|
|
11465
11643
|
* The `Edit` module is used to handle editing actions.
|
|
11466
11644
|
*/
|
|
11467
|
-
class Edit
|
|
11645
|
+
class Edit {
|
|
11468
11646
|
/**
|
|
11469
11647
|
* Constructor for Edit module
|
|
11470
11648
|
*
|
|
@@ -11476,7 +11654,7 @@ class Edit$1 {
|
|
|
11476
11654
|
this.prevAriaRowIndex = '-1';
|
|
11477
11655
|
this.isAddedRowByMethod = false;
|
|
11478
11656
|
this.isAddedRowByContextMenu = false;
|
|
11479
|
-
Grid.Inject(Edit);
|
|
11657
|
+
Grid.Inject(Edit$1);
|
|
11480
11658
|
this.parent = parent;
|
|
11481
11659
|
this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
|
|
11482
11660
|
this.previousNewRowPosition = null;
|
|
@@ -11600,8 +11778,9 @@ class Edit$1 {
|
|
|
11600
11778
|
const eventArgs = getObject('editAction', args);
|
|
11601
11779
|
const eventName = getObject('name', eventArgs);
|
|
11602
11780
|
const treeObj = this.parent;
|
|
11603
|
-
const adaptor = treeObj.dataSource
|
|
11604
|
-
|
|
11781
|
+
const adaptor = !isNullOrUndefined(treeObj.dataSource)
|
|
11782
|
+
&& treeObj.dataSource.adaptor;
|
|
11783
|
+
if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
|
|
11605
11784
|
(eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
|
|
11606
11785
|
(treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
|
|
11607
11786
|
|| treeObj.editSettings.newRowPosition === 'Above')) {
|
|
@@ -11816,7 +11995,7 @@ class Edit$1 {
|
|
|
11816
11995
|
customCellSave(args) {
|
|
11817
11996
|
if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
|
|
11818
11997
|
this.updateCell(args, args.rowIndex);
|
|
11819
|
-
this.afterCellSave(args, args.row
|
|
11998
|
+
this.afterCellSave(args, args.row);
|
|
11820
11999
|
}
|
|
11821
12000
|
}
|
|
11822
12001
|
cellSave(args) {
|
|
@@ -11859,7 +12038,7 @@ class Edit$1 {
|
|
|
11859
12038
|
}
|
|
11860
12039
|
}
|
|
11861
12040
|
const arg = {};
|
|
11862
|
-
extend(arg, args);
|
|
12041
|
+
extend$1(arg, args);
|
|
11863
12042
|
arg.cancel = false;
|
|
11864
12043
|
arg.type = 'save';
|
|
11865
12044
|
row = this.parent.grid.getRows()[row.rowIndex];
|
|
@@ -11880,7 +12059,7 @@ class Edit$1 {
|
|
|
11880
12059
|
else {
|
|
11881
12060
|
this.updateCell(args, rowIndex);
|
|
11882
12061
|
setValue('isEdit', false, this.parent.grid);
|
|
11883
|
-
this.afterCellSave(args, row
|
|
12062
|
+
this.afterCellSave(args, row);
|
|
11884
12063
|
}
|
|
11885
12064
|
}
|
|
11886
12065
|
else if (isRemoteData(this.parent) ||
|
|
@@ -11889,7 +12068,7 @@ class Edit$1 {
|
|
|
11889
12068
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
11890
12069
|
this.updateCell(args, rowIndex);
|
|
11891
12070
|
setValue('isEdit', false, this.parent.grid);
|
|
11892
|
-
this.afterCellSave(args, row
|
|
12071
|
+
this.afterCellSave(args, row);
|
|
11893
12072
|
}
|
|
11894
12073
|
else {
|
|
11895
12074
|
let crud = null;
|
|
@@ -11900,7 +12079,7 @@ class Edit$1 {
|
|
|
11900
12079
|
}
|
|
11901
12080
|
this.updateCell(args, rowIndex);
|
|
11902
12081
|
setValue('isEdit', false, this.parent.grid);
|
|
11903
|
-
this.afterCellSave(args, row
|
|
12082
|
+
this.afterCellSave(args, row);
|
|
11904
12083
|
});
|
|
11905
12084
|
}
|
|
11906
12085
|
}
|
|
@@ -11913,7 +12092,7 @@ class Edit$1 {
|
|
|
11913
12092
|
this.parent.grid.contentModule['virtualData'] = {};
|
|
11914
12093
|
}
|
|
11915
12094
|
}
|
|
11916
|
-
afterCellSave(args, row
|
|
12095
|
+
afterCellSave(args, row) {
|
|
11917
12096
|
if (this.parent.grid.aggregateModule) {
|
|
11918
12097
|
this.parent.grid.aggregateModule.refresh(args.rowData);
|
|
11919
12098
|
}
|
|
@@ -12033,9 +12212,9 @@ class Edit$1 {
|
|
|
12033
12212
|
if (!isNullOrUndefined(treecell)) {
|
|
12034
12213
|
for (let l = 0; l < treecell.classList.length; l++) {
|
|
12035
12214
|
const value = treecell.classList[parseInt(l.toString(), 10)];
|
|
12036
|
-
const remove
|
|
12215
|
+
const remove = /e-gridrowindex/i;
|
|
12037
12216
|
const removed = /e-griddetailrowindex/i;
|
|
12038
|
-
const result = value.match(remove
|
|
12217
|
+
const result = value.match(remove);
|
|
12039
12218
|
const results = value.match(removed);
|
|
12040
12219
|
if (result != null) {
|
|
12041
12220
|
removeClass([treecell], value);
|
|
@@ -12286,7 +12465,7 @@ class Edit$1 {
|
|
|
12286
12465
|
if (args.action === 'add') {
|
|
12287
12466
|
const key = this.parent.grid.getPrimaryKeyFieldNames()[0];
|
|
12288
12467
|
let position = null;
|
|
12289
|
-
value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
|
|
12468
|
+
value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
|
|
12290
12469
|
let currentData;
|
|
12291
12470
|
if (this.parent.enableVirtualization && args.index !== 0) {
|
|
12292
12471
|
currentData = this.parent.flatData;
|
|
@@ -12338,7 +12517,7 @@ class Edit$1 {
|
|
|
12338
12517
|
else if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
12339
12518
|
position = 'after';
|
|
12340
12519
|
if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
|
|
12341
|
-
value.parentItem = extend({}, currentData[this.addRowIndex]);
|
|
12520
|
+
value.parentItem = extend$1({}, currentData[this.addRowIndex]);
|
|
12342
12521
|
value.parentUniqueID = value.parentItem.uniqueID;
|
|
12343
12522
|
delete value.parentItem.childRecords;
|
|
12344
12523
|
delete value.parentItem[this.parent.childMapping];
|
|
@@ -12364,7 +12543,7 @@ class Edit$1 {
|
|
|
12364
12543
|
if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
|
|
12365
12544
|
if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
|
|
12366
12545
|
value.parentUniqueID = parentUniqueID;
|
|
12367
|
-
value.parentItem = extend({}, parentItem);
|
|
12546
|
+
value.parentItem = extend$1({}, parentItem);
|
|
12368
12547
|
delete value.parentItem.childRecords;
|
|
12369
12548
|
delete value.parentItem[this.parent.childMapping];
|
|
12370
12549
|
}
|
|
@@ -12505,9 +12684,9 @@ class Edit$1 {
|
|
|
12505
12684
|
*
|
|
12506
12685
|
* @hidden
|
|
12507
12686
|
*/
|
|
12508
|
-
class CommandColumn
|
|
12687
|
+
class CommandColumn {
|
|
12509
12688
|
constructor(parent) {
|
|
12510
|
-
Grid.Inject(CommandColumn);
|
|
12689
|
+
Grid.Inject(CommandColumn$1);
|
|
12511
12690
|
this.parent = parent;
|
|
12512
12691
|
}
|
|
12513
12692
|
/**
|
|
@@ -12535,9 +12714,9 @@ class CommandColumn$1 {
|
|
|
12535
12714
|
*
|
|
12536
12715
|
* @hidden
|
|
12537
12716
|
*/
|
|
12538
|
-
class DetailRow
|
|
12717
|
+
class DetailRow {
|
|
12539
12718
|
constructor(parent) {
|
|
12540
|
-
Grid.Inject(DetailRow);
|
|
12719
|
+
Grid.Inject(DetailRow$1);
|
|
12541
12720
|
this.parent = parent;
|
|
12542
12721
|
this.addEventListener();
|
|
12543
12722
|
}
|
|
@@ -12676,6 +12855,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12676
12855
|
getFrozenRightVirtualRowByIndex(index) {
|
|
12677
12856
|
return this.getRowCollection(index, false, false, true);
|
|
12678
12857
|
}
|
|
12858
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12679
12859
|
getRowCollection(index, isMovable, isRowObject, isFrozenRight) {
|
|
12680
12860
|
const startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
|
|
12681
12861
|
const rowCollection = this.parent.getDataRows();
|
|
@@ -12708,10 +12888,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12708
12888
|
}
|
|
12709
12889
|
}
|
|
12710
12890
|
indexModifier(args) {
|
|
12711
|
-
const content
|
|
12891
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
12712
12892
|
if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
|
|
12713
12893
|
if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
|
|
12714
|
-
const nextSetResIndex = ~~(content
|
|
12894
|
+
const nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
|
|
12715
12895
|
let lastIndex = nextSetResIndex + this.parent.getRows().length;
|
|
12716
12896
|
if (lastIndex > args.count) {
|
|
12717
12897
|
lastIndex = nextSetResIndex +
|
|
@@ -12839,8 +13019,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12839
13019
|
super[`${dataBoundEve}`]();
|
|
12840
13020
|
}
|
|
12841
13021
|
rowSelectedEvent(args) {
|
|
12842
|
-
const rowSelected
|
|
12843
|
-
super[`${rowSelected
|
|
13022
|
+
const rowSelected = 'rowSelected';
|
|
13023
|
+
super[`${rowSelected}`](args);
|
|
12844
13024
|
}
|
|
12845
13025
|
toSelectVirtualRow(args) {
|
|
12846
13026
|
if (this.parent.isEdit) {
|
|
@@ -12925,8 +13105,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12925
13105
|
}
|
|
12926
13106
|
virtualEditSuccess() {
|
|
12927
13107
|
const isAdd = 'isAdd';
|
|
12928
|
-
const content
|
|
12929
|
-
if (this[`${isAdd}`] && content
|
|
13108
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13109
|
+
if (this[`${isAdd}`] && content.querySelector('.e-addedrow')) {
|
|
12930
13110
|
this.recordAdded = true;
|
|
12931
13111
|
}
|
|
12932
13112
|
}
|
|
@@ -12940,8 +13120,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12940
13120
|
}
|
|
12941
13121
|
restoreNewRow() {
|
|
12942
13122
|
const isAdd = 'isAdd';
|
|
12943
|
-
const content
|
|
12944
|
-
if (this[`${isAdd}`] && !content
|
|
13123
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13124
|
+
if (this[`${isAdd}`] && !content.querySelector('.e-addedrow')) {
|
|
12945
13125
|
this.parent.isEdit = false;
|
|
12946
13126
|
this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
|
|
12947
13127
|
}
|
|
@@ -12958,8 +13138,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12958
13138
|
this.addRowIndex = addArgs.addRowIndex;
|
|
12959
13139
|
this.dataRowIndex = this.parent.root.editModule.selectedIndex;
|
|
12960
13140
|
}
|
|
12961
|
-
const actionComplete
|
|
12962
|
-
super[`${actionComplete
|
|
13141
|
+
const actionComplete = 'actionComplete';
|
|
13142
|
+
super[`${actionComplete}`](args);
|
|
12963
13143
|
}
|
|
12964
13144
|
onEnteredAction() {
|
|
12965
13145
|
return (element, current, direction, e, isWheel, check) => {
|
|
@@ -13007,7 +13187,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13007
13187
|
const info = scrollArgs.sentinel;
|
|
13008
13188
|
const rowHeight = this.parent.getRowHeight();
|
|
13009
13189
|
const outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
|
|
13010
|
-
const content
|
|
13190
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13011
13191
|
const scrollHeight = outBuffer * rowHeight;
|
|
13012
13192
|
const upScroll = (scrollArgs.offset.top - this.translateY) < 0;
|
|
13013
13193
|
const downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
|
|
@@ -13017,7 +13197,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13017
13197
|
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13018
13198
|
const vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
|
|
13019
13199
|
this.parent.element.getBoundingClientRect().height);
|
|
13020
|
-
let index = (~~(content
|
|
13200
|
+
let index = (~~(content.scrollTop / rowHeight)
|
|
13021
13201
|
+ Math.ceil(vHeight / rowHeight))
|
|
13022
13202
|
- this.parent.pageSettings.pageSize;
|
|
13023
13203
|
index = (index > 0) ? index : 0;
|
|
@@ -13062,7 +13242,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13062
13242
|
}
|
|
13063
13243
|
}
|
|
13064
13244
|
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13065
|
-
let nextSetResIndex = ~~(content
|
|
13245
|
+
let nextSetResIndex = ~~(content.scrollTop / rowHeight);
|
|
13066
13246
|
const isLastBlock = (this[`${selectedRowIndex}`] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
|
|
13067
13247
|
if (!isNullOrUndefined(this[`${selectedRowIndex}`]) && this[`${selectedRowIndex}`] !== -1 &&
|
|
13068
13248
|
nextSetResIndex !== this[`${selectedRowIndex}`] && !isLastBlock) {
|
|
@@ -13084,7 +13264,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13084
13264
|
this.startIndex = currentViewData[0][`${indexValue}`] + (this.parent.pageSettings.pageSize / 2);
|
|
13085
13265
|
}
|
|
13086
13266
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
13087
|
-
this.translateY = this.getTranslateY(scrollArgs.offset.top, content
|
|
13267
|
+
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
13088
13268
|
}
|
|
13089
13269
|
else {
|
|
13090
13270
|
if (this.totalRecords === this.endIndex) {
|
|
@@ -13111,10 +13291,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13111
13291
|
this.previousInfo = viewInfo;
|
|
13112
13292
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13113
13293
|
const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13294
|
+
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13114
13295
|
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13115
13296
|
viewInfo.loadNext = false;
|
|
13116
13297
|
}
|
|
13117
|
-
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13118
13298
|
this.requestType = 'virtualscroll';
|
|
13119
13299
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
13120
13300
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -13313,7 +13493,7 @@ class TreeInterSectionObserver extends InterSectionObserver {
|
|
|
13313
13493
|
*
|
|
13314
13494
|
* @hidden
|
|
13315
13495
|
*/
|
|
13316
|
-
class VirtualScroll
|
|
13496
|
+
class VirtualScroll {
|
|
13317
13497
|
/**
|
|
13318
13498
|
* Constructor for VirtualScroll module
|
|
13319
13499
|
*
|
|
@@ -13382,10 +13562,10 @@ class VirtualScroll$1 {
|
|
|
13382
13562
|
}
|
|
13383
13563
|
virtualPageAction(pageingDetails) {
|
|
13384
13564
|
const dm = new DataManager(pageingDetails.result);
|
|
13385
|
-
const expanded
|
|
13386
|
-
const parents = dm.executeLocal(new Query().where(expanded
|
|
13565
|
+
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
13566
|
+
const parents = dm.executeLocal(new Query().where(expanded));
|
|
13387
13567
|
const visualData = parents.filter((e) => {
|
|
13388
|
-
return getExpandStatus(this.parent, e
|
|
13568
|
+
return getExpandStatus(this.parent, e);
|
|
13389
13569
|
});
|
|
13390
13570
|
this.visualData = visualData;
|
|
13391
13571
|
pageingDetails.count = visualData.length;
|
|
@@ -13478,7 +13658,7 @@ class VirtualScroll$1 {
|
|
|
13478
13658
|
this.removeEventListener();
|
|
13479
13659
|
}
|
|
13480
13660
|
}
|
|
13481
|
-
class TreeVirtual extends VirtualScroll {
|
|
13661
|
+
class TreeVirtual extends VirtualScroll$1 {
|
|
13482
13662
|
constructor(parent, locator) {
|
|
13483
13663
|
super(parent, locator);
|
|
13484
13664
|
getValue('parent', this).off('initial-load', getValue('instantiateRenderer', this), this);
|
|
@@ -13519,14 +13699,14 @@ class TreeVirtual extends VirtualScroll {
|
|
|
13519
13699
|
*
|
|
13520
13700
|
* @hidden
|
|
13521
13701
|
*/
|
|
13522
|
-
class Freeze
|
|
13702
|
+
class Freeze {
|
|
13523
13703
|
/**
|
|
13524
13704
|
* Constructor for render module
|
|
13525
13705
|
*
|
|
13526
13706
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
13527
13707
|
*/
|
|
13528
13708
|
constructor(parent) {
|
|
13529
|
-
Grid.Inject(Freeze);
|
|
13709
|
+
Grid.Inject(Freeze$1);
|
|
13530
13710
|
this.parent = parent;
|
|
13531
13711
|
this.addEventListener();
|
|
13532
13712
|
}
|
|
@@ -13618,14 +13798,14 @@ class Freeze$1 {
|
|
|
13618
13798
|
*
|
|
13619
13799
|
* @hidden
|
|
13620
13800
|
*/
|
|
13621
|
-
class ColumnChooser
|
|
13801
|
+
class ColumnChooser {
|
|
13622
13802
|
/**
|
|
13623
13803
|
* Constructor for render module
|
|
13624
13804
|
*
|
|
13625
13805
|
* @param {TreeGrid} parent - Tree Grid instance.
|
|
13626
13806
|
*/
|
|
13627
13807
|
constructor(parent) {
|
|
13628
|
-
Grid.Inject(ColumnChooser);
|
|
13808
|
+
Grid.Inject(ColumnChooser$1);
|
|
13629
13809
|
this.parent = parent;
|
|
13630
13810
|
}
|
|
13631
13811
|
/**
|
|
@@ -13663,7 +13843,7 @@ class ColumnChooser$1 {
|
|
|
13663
13843
|
*
|
|
13664
13844
|
* @hidden
|
|
13665
13845
|
*/
|
|
13666
|
-
class InfiniteScroll
|
|
13846
|
+
class InfiniteScroll {
|
|
13667
13847
|
/**
|
|
13668
13848
|
* Constructor for VirtualScroll module
|
|
13669
13849
|
*
|
|
@@ -13671,7 +13851,7 @@ class InfiniteScroll$1 {
|
|
|
13671
13851
|
*/
|
|
13672
13852
|
constructor(parent) {
|
|
13673
13853
|
this.parent = parent;
|
|
13674
|
-
Grid.Inject(InfiniteScroll);
|
|
13854
|
+
Grid.Inject(InfiniteScroll$1);
|
|
13675
13855
|
this.addEventListener();
|
|
13676
13856
|
}
|
|
13677
13857
|
/**
|
|
@@ -13769,8 +13949,8 @@ class InfiniteScroll$1 {
|
|
|
13769
13949
|
*/
|
|
13770
13950
|
infinitePageAction(pageingDetails) {
|
|
13771
13951
|
const dm = new DataManager(pageingDetails.result);
|
|
13772
|
-
const expanded
|
|
13773
|
-
const visualData = dm.executeLocal(new Query().where(expanded
|
|
13952
|
+
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
13953
|
+
const visualData = dm.executeLocal(new Query().where(expanded));
|
|
13774
13954
|
const actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
|
|
13775
13955
|
const actions = getValue('actions', this.parent.grid.infiniteScrollModule);
|
|
13776
13956
|
if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
|
|
@@ -13960,17 +14140,5 @@ class InfiniteScroll$1 {
|
|
|
13960
14140
|
}
|
|
13961
14141
|
}
|
|
13962
14142
|
|
|
13963
|
-
|
|
13964
|
-
* actions export
|
|
13965
|
-
*/
|
|
13966
|
-
|
|
13967
|
-
/**
|
|
13968
|
-
* TreeGrid component exported items
|
|
13969
|
-
*/
|
|
13970
|
-
|
|
13971
|
-
/**
|
|
13972
|
-
* Export TreeGrid component
|
|
13973
|
-
*/
|
|
13974
|
-
|
|
13975
|
-
export { TreeGrid, load, rowDataBound, dataBound, queryCellInfo, beforeDataBound, actionBegin, dataStateChange, actionComplete, rowSelecting, rowSelected, checkboxChange, rowDeselected, toolbarClick, beforeExcelExport, beforePdfExport, resizeStop, expanded, expanding, collapsed, collapsing, remoteExpand, localPagedExpandCollapse, pagingActions, printGridInit, contextMenuOpen, contextMenuClick, beforeCopy, beforePaste, savePreviousRowPosition, crudAction, beginEdit, beginAdd, recordDoubleClick, cellSave, cellSaved, cellEdit, batchDelete, batchCancel, batchAdd, beforeBatchDelete, beforeBatchAdd, beforeBatchSave, batchSave, keyPressed, updateData, doubleTap, virtualColumnIndex, virtualActionArgs, destroy, dataListener, indexModifier, beforeStartEdit, beforeBatchCancel, batchEditFormRendered, detailDataBound, rowDrag, rowDragStartHelper, rowDrop, rowDragStart, rowsAdd, rowsRemove, rowdraging, rowDropped, autoCol, rowDeselecting, headerContent, movableContent, movableHeader, frozenContent, frozenHeader, content, table, leftRight, frozenRight, frozenLeft, dataColIndex, ariaColIndex, dataRowIndex, ariaRowIndex, DataManipulation, Reorder$1 as Reorder, Resize$1 as Resize, RowDD$1 as RowDD, Column, TreeGridColumn, StackedColumn, EditSettings, Predicate$1 as Predicate, FilterSettings, PageSettings, SearchSettings, SelectionSettings, AggregateColumn, AggregateRow, SortDescriptor, SortSettings, RowDropSettings$1 as RowDropSettings, InfiniteScrollSettings, LoadingIndicator, Render, TreeVirtualRowModelGenerator, isRemoteData, isCountRequired, isCheckboxcolumn, isFilterChildHierarchy, findParentRecords, getExpandStatus, findChildrenRecords, isOffline, extendArray, getPlainData, getParentData, isHidden, ToolbarItem, ContextMenuItems, Filter$1 as Filter, ExcelExport$1 as ExcelExport, PdfExport$1 as PdfExport, Page$1 as Page, Toolbar$1 as Toolbar, Aggregate$1 as Aggregate, Sort$1 as Sort, TreeClipboard, ColumnMenu$1 as ColumnMenu, ContextMenu$1 as ContextMenu, Edit$1 as Edit, CommandColumn$1 as CommandColumn, Selection, DetailRow$1 as DetailRow, VirtualScroll$1 as VirtualScroll, TreeVirtual, Freeze$1 as Freeze, ColumnChooser$1 as ColumnChooser, Logger$1 as Logger, treeGridDetails, InfiniteScroll$1 as InfiniteScroll };
|
|
14143
|
+
export { Aggregate, AggregateColumn, AggregateRow, Column, ColumnChooser, ColumnMenu, CommandColumn, ContextMenu, ContextMenuItems, DataManipulation, DetailRow, Edit, EditSettings, ExcelExport, Filter, FilterSettings, Freeze, InfiniteScroll, InfiniteScrollSettings, LoadingIndicator, Logger, Page, PageSettings, PdfExport, Predicate, Render, Reorder, Resize, RowDD, RowDropSettings, SearchSettings, Selection, SelectionSettings, Sort, SortDescriptor, SortSettings, StackedColumn, Toolbar, ToolbarItem, TreeClipboard, TreeGrid, TreeGridColumn, TreeVirtual, TreeVirtualRowModelGenerator, VirtualScroll, actionBegin, actionComplete, actionFailure, ariaColIndex, ariaRowIndex, autoCol, batchAdd, batchCancel, batchDelete, batchEditFormRendered, batchSave, beforeBatchAdd, beforeBatchCancel, beforeBatchDelete, beforeBatchSave, beforeCopy, beforeDataBound, beforeExcelExport, beforePaste, beforePdfExport, beforeStartEdit, beginAdd, beginEdit, cellEdit, cellSave, cellSaved, checkboxChange, collapsed, collapsing, content, contextMenuClick, contextMenuOpen, crudAction, dataBound, dataColIndex, dataListener, dataRowIndex, dataStateChange, destroy, detailDataBound, doubleTap, expanded, expanding, extendArray, findChildrenRecords, findParentRecords, frozenContent, frozenHeader, frozenLeft, frozenRight, getExpandStatus, getParentData, getPlainData, headerContent, indexModifier, isCheckboxcolumn, isCountRequired, isFilterChildHierarchy, isHidden, isOffline, isRemoteData, keyPressed, leftRight, load, localPagedExpandCollapse, movableContent, movableHeader, pagingActions, printGridInit, queryCellInfo, recordDoubleClick, remoteExpand, resizeStop, rowDataBound, rowDeselected, rowDeselecting, rowDrag, rowDragStart, rowDragStartHelper, rowDrop, rowDropped, rowSelected, rowSelecting, rowdraging, rowsAdd, rowsRemove, savePreviousRowPosition, table, toolbarClick, treeGridDetails, updateData, virtualActionArgs, virtualColumnIndex };
|
|
13976
14144
|
//# sourceMappingURL=ej2-treegrid.es2015.js.map
|