@syncfusion/ej2-treegrid 25.2.5 → 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 +706 -532
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +1222 -1047
- 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 +29 -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/render.js +3 -1
- 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 -250
- 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;
|
|
@@ -1838,7 +1844,9 @@ class Render {
|
|
|
1838
1844
|
&& !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
|
|
1839
1845
|
const cell = rowsObj[parseInt(j.toString(), 10)][`${cells}`][parseInt(cellIndex.toString(), 10)];
|
|
1840
1846
|
const cellRenderer = new CellRenderer(this.parent.grid, this.parent.grid.serviceLocator);
|
|
1841
|
-
const td =
|
|
1847
|
+
const td = rows.length >= rowsObj.length
|
|
1848
|
+
? this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent)
|
|
1849
|
+
: this.parent.getRows()[rowsObj[parseInt(j.toString(), 10)].index].querySelector('.e-templatecell');
|
|
1842
1850
|
cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)][`${rowIdx}`] });
|
|
1843
1851
|
const treecell = this.parent.getRows()[parseInt(j.toString(), 10)]
|
|
1844
1852
|
.cells[parseInt(cellIndex.toString(), 10)];
|
|
@@ -1939,7 +1947,8 @@ class DataManipulation {
|
|
|
1939
1947
|
* @returns {void}
|
|
1940
1948
|
*/
|
|
1941
1949
|
convertToFlatData(data) {
|
|
1942
|
-
this.parent.flatData = (Object.keys(data).length === 0
|
|
1950
|
+
this.parent.flatData = (!isNullOrUndefined(data) && Object.keys(data).length === 0
|
|
1951
|
+
&& !(this.parent.dataSource instanceof DataManager) ?
|
|
1943
1952
|
this.parent.dataSource : []);
|
|
1944
1953
|
this.parent.parentData = [];
|
|
1945
1954
|
if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
|
|
@@ -1995,7 +2004,7 @@ class DataManipulation {
|
|
|
1995
2004
|
const keys = Object.keys(data);
|
|
1996
2005
|
for (let i = 0; i < keys.length; i++) {
|
|
1997
2006
|
const tempData = data[parseInt(i.toString(), 10)];
|
|
1998
|
-
this.hierarchyData.push(extend({}, tempData));
|
|
2007
|
+
this.hierarchyData.push(extend$1({}, tempData));
|
|
1999
2008
|
if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
|
|
2000
2009
|
this.taskIds.push(tempData[this.parent.idMapping]);
|
|
2001
2010
|
}
|
|
@@ -2097,7 +2106,7 @@ class DataManipulation {
|
|
|
2097
2106
|
}
|
|
2098
2107
|
}
|
|
2099
2108
|
if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
|
|
2100
|
-
records[parseInt(rec.toString(), 10)].taskData = extend({}, records[parseInt(rec.toString(), 10)]);
|
|
2109
|
+
records[parseInt(rec.toString(), 10)].taskData = extend$1({}, records[parseInt(rec.toString(), 10)]);
|
|
2101
2110
|
records[parseInt(rec.toString(), 10)].uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2102
2111
|
setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this.parent);
|
|
2103
2112
|
records[parseInt(rec.toString(), 10)].level = 0;
|
|
@@ -2289,7 +2298,7 @@ class DataManipulation {
|
|
|
2289
2298
|
}
|
|
2290
2299
|
}
|
|
2291
2300
|
}
|
|
2292
|
-
result[parseInt(r.toString(), 10)].taskData = extend({}, result[parseInt(r.toString(), 10)]);
|
|
2301
|
+
result[parseInt(r.toString(), 10)].taskData = extend$1({}, result[parseInt(r.toString(), 10)]);
|
|
2293
2302
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] && this.parent.enableVirtualization && this.parent[`${remoteExpandedData}`].length) {
|
|
2294
2303
|
for (let i = 0; i < this.parent[`${remoteExpandedData}`].length; i++) {
|
|
2295
2304
|
if (result[parseInt(r.toString(), 10)][`${this.parent.parentIdMapping}`] === this.parent[`${remoteExpandedData}`][parseInt(i.toString(), 10)][`${this.parent.idMapping}`]) {
|
|
@@ -2317,7 +2326,7 @@ class DataManipulation {
|
|
|
2317
2326
|
}
|
|
2318
2327
|
}
|
|
2319
2328
|
else {
|
|
2320
|
-
const parentData = extend({}, rowDetails.record);
|
|
2329
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2321
2330
|
delete parentData.childRecords;
|
|
2322
2331
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2323
2332
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2325,7 +2334,7 @@ class DataManipulation {
|
|
|
2325
2334
|
}
|
|
2326
2335
|
else {
|
|
2327
2336
|
result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
|
|
2328
|
-
const parentData = extend({}, rowDetails.record);
|
|
2337
|
+
const parentData = extend$1({}, rowDetails.record);
|
|
2329
2338
|
delete parentData.childRecords;
|
|
2330
2339
|
result[parseInt(r.toString(), 10)].parentItem = parentData;
|
|
2331
2340
|
result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
|
|
@@ -2445,7 +2454,7 @@ class DataManipulation {
|
|
|
2445
2454
|
const treeGridData = [];
|
|
2446
2455
|
const keys = Object.keys(data);
|
|
2447
2456
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
2448
|
-
const currentData = extend({}, data[parseInt(i.toString(), 10)]);
|
|
2457
|
+
const currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
|
|
2449
2458
|
currentData.taskData = data[parseInt(i.toString(), 10)];
|
|
2450
2459
|
let level = 0;
|
|
2451
2460
|
this.storedIndex++;
|
|
@@ -2473,7 +2482,7 @@ class DataManipulation {
|
|
|
2473
2482
|
currentData.uniqueID = getUid(this.parent.element.id + '_data_');
|
|
2474
2483
|
setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
|
|
2475
2484
|
if (!isNullOrUndefined(parentRecords)) {
|
|
2476
|
-
const parentData = extend({}, parentRecords);
|
|
2485
|
+
const parentData = extend$1({}, parentRecords);
|
|
2477
2486
|
delete parentData.childRecords;
|
|
2478
2487
|
delete parentData[this.parent.childMapping];
|
|
2479
2488
|
if (this.isSelfReference) {
|
|
@@ -2754,48 +2763,48 @@ var ContextMenuItems;
|
|
|
2754
2763
|
ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
|
|
2755
2764
|
})(ContextMenuItems || (ContextMenuItems = {}));
|
|
2756
2765
|
|
|
2757
|
-
var __decorate$
|
|
2758
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2759
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2760
|
-
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;
|
|
2761
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2762
|
-
};
|
|
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
|
+
};
|
|
2763
2772
|
/**
|
|
2764
2773
|
* Configures the paging behavior of the TreeGrid.
|
|
2765
2774
|
*/
|
|
2766
2775
|
class PageSettings extends ChildProperty {
|
|
2767
2776
|
}
|
|
2768
|
-
__decorate$
|
|
2777
|
+
__decorate$6([
|
|
2769
2778
|
Property(12)
|
|
2770
2779
|
], PageSettings.prototype, "pageSize", void 0);
|
|
2771
|
-
__decorate$
|
|
2780
|
+
__decorate$6([
|
|
2772
2781
|
Property(8)
|
|
2773
2782
|
], PageSettings.prototype, "pageCount", void 0);
|
|
2774
|
-
__decorate$
|
|
2783
|
+
__decorate$6([
|
|
2775
2784
|
Property(1)
|
|
2776
2785
|
], PageSettings.prototype, "currentPage", void 0);
|
|
2777
|
-
__decorate$
|
|
2786
|
+
__decorate$6([
|
|
2778
2787
|
Property()
|
|
2779
2788
|
], PageSettings.prototype, "totalRecordsCount", void 0);
|
|
2780
|
-
__decorate$
|
|
2789
|
+
__decorate$6([
|
|
2781
2790
|
Property(false)
|
|
2782
2791
|
], PageSettings.prototype, "enableQueryString", void 0);
|
|
2783
|
-
__decorate$
|
|
2792
|
+
__decorate$6([
|
|
2784
2793
|
Property(false)
|
|
2785
2794
|
], PageSettings.prototype, "pageSizes", void 0);
|
|
2786
|
-
__decorate$
|
|
2795
|
+
__decorate$6([
|
|
2787
2796
|
Property(null)
|
|
2788
2797
|
], PageSettings.prototype, "template", void 0);
|
|
2789
|
-
__decorate$
|
|
2798
|
+
__decorate$6([
|
|
2790
2799
|
Property('All')
|
|
2791
2800
|
], PageSettings.prototype, "pageSizeMode", void 0);
|
|
2792
2801
|
|
|
2793
|
-
var __decorate$
|
|
2794
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2795
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2796
|
-
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;
|
|
2797
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2798
|
-
};
|
|
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
|
+
};
|
|
2799
2808
|
/**
|
|
2800
2809
|
* Configures the TreeGrid's aggregate column.
|
|
2801
2810
|
*/
|
|
@@ -2866,93 +2875,93 @@ class AggregateColumn extends ChildProperty {
|
|
|
2866
2875
|
this.setProperties(prop, true);
|
|
2867
2876
|
}
|
|
2868
2877
|
}
|
|
2869
|
-
__decorate$
|
|
2878
|
+
__decorate$7([
|
|
2870
2879
|
Property()
|
|
2871
2880
|
], AggregateColumn.prototype, "type", void 0);
|
|
2872
|
-
__decorate$
|
|
2881
|
+
__decorate$7([
|
|
2873
2882
|
Property()
|
|
2874
2883
|
], AggregateColumn.prototype, "footerTemplate", void 0);
|
|
2875
|
-
__decorate$
|
|
2884
|
+
__decorate$7([
|
|
2876
2885
|
Property()
|
|
2877
2886
|
], AggregateColumn.prototype, "field", void 0);
|
|
2878
|
-
__decorate$
|
|
2887
|
+
__decorate$7([
|
|
2879
2888
|
Property()
|
|
2880
2889
|
], AggregateColumn.prototype, "format", void 0);
|
|
2881
|
-
__decorate$
|
|
2890
|
+
__decorate$7([
|
|
2882
2891
|
Property()
|
|
2883
2892
|
], AggregateColumn.prototype, "columnName", void 0);
|
|
2884
|
-
__decorate$
|
|
2893
|
+
__decorate$7([
|
|
2885
2894
|
Property()
|
|
2886
2895
|
], AggregateColumn.prototype, "customAggregate", void 0);
|
|
2887
2896
|
class AggregateRow extends ChildProperty {
|
|
2888
2897
|
}
|
|
2889
|
-
__decorate$
|
|
2898
|
+
__decorate$7([
|
|
2890
2899
|
Collection([], AggregateColumn)
|
|
2891
2900
|
], AggregateRow.prototype, "columns", void 0);
|
|
2892
|
-
__decorate$
|
|
2901
|
+
__decorate$7([
|
|
2893
2902
|
Property(true)
|
|
2894
2903
|
], AggregateRow.prototype, "showChildSummary", void 0);
|
|
2895
2904
|
|
|
2896
|
-
var __decorate$
|
|
2897
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2898
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2899
|
-
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;
|
|
2900
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2901
|
-
};
|
|
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
|
+
};
|
|
2902
2911
|
/**
|
|
2903
2912
|
* Configures the edit behavior of the TreeGrid.
|
|
2904
2913
|
*/
|
|
2905
2914
|
class EditSettings extends ChildProperty {
|
|
2906
2915
|
}
|
|
2907
|
-
__decorate$
|
|
2916
|
+
__decorate$8([
|
|
2908
2917
|
Property(false)
|
|
2909
2918
|
], EditSettings.prototype, "allowAdding", void 0);
|
|
2910
|
-
__decorate$
|
|
2919
|
+
__decorate$8([
|
|
2911
2920
|
Property(false)
|
|
2912
2921
|
], EditSettings.prototype, "allowEditing", void 0);
|
|
2913
|
-
__decorate$
|
|
2922
|
+
__decorate$8([
|
|
2914
2923
|
Property(false)
|
|
2915
2924
|
], EditSettings.prototype, "allowDeleting", void 0);
|
|
2916
|
-
__decorate$
|
|
2925
|
+
__decorate$8([
|
|
2917
2926
|
Property('Cell')
|
|
2918
2927
|
], EditSettings.prototype, "mode", void 0);
|
|
2919
|
-
__decorate$
|
|
2928
|
+
__decorate$8([
|
|
2920
2929
|
Property('Top')
|
|
2921
2930
|
], EditSettings.prototype, "newRowPosition", void 0);
|
|
2922
|
-
__decorate$
|
|
2931
|
+
__decorate$8([
|
|
2923
2932
|
Property(true)
|
|
2924
2933
|
], EditSettings.prototype, "allowEditOnDblClick", void 0);
|
|
2925
|
-
__decorate$
|
|
2934
|
+
__decorate$8([
|
|
2926
2935
|
Property(true)
|
|
2927
2936
|
], EditSettings.prototype, "showConfirmDialog", void 0);
|
|
2928
|
-
__decorate$
|
|
2937
|
+
__decorate$8([
|
|
2929
2938
|
Property(false)
|
|
2930
2939
|
], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
|
|
2931
|
-
__decorate$
|
|
2940
|
+
__decorate$8([
|
|
2932
2941
|
Property('')
|
|
2933
2942
|
], EditSettings.prototype, "template", void 0);
|
|
2934
|
-
__decorate$
|
|
2943
|
+
__decorate$8([
|
|
2935
2944
|
Property({})
|
|
2936
2945
|
], EditSettings.prototype, "dialog", void 0);
|
|
2937
|
-
__decorate$
|
|
2946
|
+
__decorate$8([
|
|
2938
2947
|
Property(false)
|
|
2939
2948
|
], EditSettings.prototype, "allowNextRowEdit", void 0);
|
|
2940
2949
|
|
|
2941
|
-
var __decorate$
|
|
2942
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2943
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2944
|
-
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;
|
|
2945
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2946
|
-
};
|
|
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
|
+
};
|
|
2947
2956
|
/**
|
|
2948
2957
|
* Represents the field name and direction of sort column.
|
|
2949
2958
|
*/
|
|
2950
2959
|
class SortDescriptor extends ChildProperty {
|
|
2951
2960
|
}
|
|
2952
|
-
__decorate$
|
|
2961
|
+
__decorate$9([
|
|
2953
2962
|
Property()
|
|
2954
2963
|
], SortDescriptor.prototype, "field", void 0);
|
|
2955
|
-
__decorate$
|
|
2964
|
+
__decorate$9([
|
|
2956
2965
|
Property()
|
|
2957
2966
|
], SortDescriptor.prototype, "direction", void 0);
|
|
2958
2967
|
/**
|
|
@@ -2960,10 +2969,10 @@ __decorate$10([
|
|
|
2960
2969
|
*/
|
|
2961
2970
|
class SortSettings extends ChildProperty {
|
|
2962
2971
|
}
|
|
2963
|
-
__decorate$
|
|
2972
|
+
__decorate$9([
|
|
2964
2973
|
Collection([], SortDescriptor)
|
|
2965
2974
|
], SortSettings.prototype, "columns", void 0);
|
|
2966
|
-
__decorate$
|
|
2975
|
+
__decorate$9([
|
|
2967
2976
|
Property(true)
|
|
2968
2977
|
], SortSettings.prototype, "allowUnsort", void 0);
|
|
2969
2978
|
|
|
@@ -3008,7 +3017,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
|
|
|
3008
3017
|
modifiedData = extendArray(value);
|
|
3009
3018
|
}
|
|
3010
3019
|
else {
|
|
3011
|
-
modifiedData.push(extend({}, value));
|
|
3020
|
+
modifiedData.push(extend$1({}, value));
|
|
3012
3021
|
}
|
|
3013
3022
|
if (!isSkip && (action !== 'add' ||
|
|
3014
3023
|
(control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
|
|
@@ -3124,7 +3133,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3124
3133
|
let value;
|
|
3125
3134
|
let isSkip = false;
|
|
3126
3135
|
const currentViewRecords = control.grid.getCurrentViewRecords();
|
|
3127
|
-
value = extend({}, details.value);
|
|
3136
|
+
value = extend$1({}, details.value);
|
|
3128
3137
|
value = getPlainData(value);
|
|
3129
3138
|
switch (control.editSettings.newRowPosition) {
|
|
3130
3139
|
case 'Top':
|
|
@@ -3137,28 +3146,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
|
|
|
3137
3146
|
break;
|
|
3138
3147
|
case 'Above':
|
|
3139
3148
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3140
|
-
value = extend({}, addRowRecord);
|
|
3149
|
+
value = extend$1({}, addRowRecord);
|
|
3141
3150
|
value = getPlainData(value);
|
|
3142
3151
|
}
|
|
3143
3152
|
else {
|
|
3144
|
-
value = extend({}, currentViewRecords[addRowIndex + 1]);
|
|
3153
|
+
value = extend$1({}, currentViewRecords[addRowIndex + 1]);
|
|
3145
3154
|
value = getPlainData(value);
|
|
3146
3155
|
}
|
|
3147
3156
|
break;
|
|
3148
3157
|
case 'Below':
|
|
3149
3158
|
case 'Child':
|
|
3150
3159
|
if (!isNullOrUndefined(addRowRecord)) {
|
|
3151
|
-
value = extend({}, addRowRecord);
|
|
3160
|
+
value = extend$1({}, addRowRecord);
|
|
3152
3161
|
value = getPlainData(value);
|
|
3153
3162
|
}
|
|
3154
3163
|
else {
|
|
3155
3164
|
const primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
|
|
3156
3165
|
const currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
|
|
3157
3166
|
if (!isNullOrUndefined(currentdata) && currentdata[`${primaryKeys}`] === details.value[`${primaryKeys}`] || selectedIndex !== -1) {
|
|
3158
|
-
value = extend({}, currentdata);
|
|
3167
|
+
value = extend$1({}, currentdata);
|
|
3159
3168
|
}
|
|
3160
3169
|
else {
|
|
3161
|
-
value = extend({}, details.value);
|
|
3170
|
+
value = extend$1({}, details.value);
|
|
3162
3171
|
}
|
|
3163
3172
|
value = getPlainData(value);
|
|
3164
3173
|
const internalProperty = 'internalProperties';
|
|
@@ -3367,33 +3376,33 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
|
|
|
3367
3376
|
}
|
|
3368
3377
|
}
|
|
3369
3378
|
|
|
3370
|
-
var __decorate$
|
|
3371
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3372
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3373
|
-
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;
|
|
3374
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3375
|
-
};
|
|
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
|
+
};
|
|
3376
3385
|
/**
|
|
3377
3386
|
* Configures the infinite scroll behavior of Tree Grid.
|
|
3378
3387
|
*/
|
|
3379
3388
|
class InfiniteScrollSettings extends ChildProperty {
|
|
3380
3389
|
}
|
|
3381
|
-
__decorate$
|
|
3390
|
+
__decorate$a([
|
|
3382
3391
|
Property(false)
|
|
3383
3392
|
], InfiniteScrollSettings.prototype, "enableCache", void 0);
|
|
3384
|
-
__decorate$
|
|
3393
|
+
__decorate$a([
|
|
3385
3394
|
Property(3)
|
|
3386
3395
|
], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
|
|
3387
|
-
__decorate$
|
|
3396
|
+
__decorate$a([
|
|
3388
3397
|
Property(3)
|
|
3389
3398
|
], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
|
|
3390
3399
|
|
|
3391
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3392
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3393
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3394
|
-
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;
|
|
3395
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3396
|
-
};
|
|
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
|
+
};
|
|
3397
3406
|
var TreeGrid_1;
|
|
3398
3407
|
/**
|
|
3399
3408
|
* Represents the TreeGrid component.
|
|
@@ -3440,15 +3449,15 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3440
3449
|
return false;
|
|
3441
3450
|
}
|
|
3442
3451
|
};
|
|
3443
|
-
TreeGrid_1.Inject(Selection, Logger
|
|
3452
|
+
TreeGrid_1.Inject(Selection, Logger);
|
|
3444
3453
|
setValue('mergePersistData', this.mergePersistTreeGridData, this);
|
|
3445
3454
|
const logger = 'Logger';
|
|
3446
3455
|
if (!isNullOrUndefined(this.injectedModules[`${logger}`])) {
|
|
3447
|
-
Grid.Inject(Logger);
|
|
3456
|
+
Grid.Inject(Logger$1);
|
|
3448
3457
|
}
|
|
3449
3458
|
const freezeModulePresent = this.injectedModules.filter((e) => {
|
|
3450
3459
|
if (e.prototype.getModuleName() === 'freeze') {
|
|
3451
|
-
Grid.Inject(Freeze);
|
|
3460
|
+
Grid.Inject(Freeze$1);
|
|
3452
3461
|
}
|
|
3453
3462
|
});
|
|
3454
3463
|
this.grid = new Grid();
|
|
@@ -3525,6 +3534,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3525
3534
|
}
|
|
3526
3535
|
/**
|
|
3527
3536
|
* Exports the TreeGrid data to the specified URL using a POST request.
|
|
3537
|
+
*
|
|
3528
3538
|
* @param {string} url - Defines exporting url
|
|
3529
3539
|
* @returns {void}
|
|
3530
3540
|
*/
|
|
@@ -3555,6 +3565,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3555
3565
|
}
|
|
3556
3566
|
/**
|
|
3557
3567
|
* Sets the header text and other properties for an array of columns based on specified criteria.
|
|
3568
|
+
*
|
|
3558
3569
|
* @param {Column[]} columns - Defines array of columns
|
|
3559
3570
|
* @param {string[]} include - Defines array of sting
|
|
3560
3571
|
* @returns {Column[]} returns array of columns
|
|
@@ -3641,6 +3652,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3641
3652
|
* @returns {void}
|
|
3642
3653
|
*/
|
|
3643
3654
|
sortByColumn(columnName, direction, isMultiSort) {
|
|
3655
|
+
if (isNullOrUndefined(columnName) && isNullOrUndefined(direction)) {
|
|
3656
|
+
const error = 'The provided value for the columnName and direction is undefined. Please ensure the columnName and direction contains string.';
|
|
3657
|
+
this.trigger(actionFailure, { error: error });
|
|
3658
|
+
}
|
|
3644
3659
|
if (this.sortModule) {
|
|
3645
3660
|
this.sortModule.sortColumn(columnName, direction, isMultiSort);
|
|
3646
3661
|
}
|
|
@@ -3701,21 +3716,27 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3701
3716
|
* @returns {void}
|
|
3702
3717
|
*/
|
|
3703
3718
|
reorderColumns(fromFName, toFName) {
|
|
3719
|
+
if (isNullOrUndefined(fromFName) && isNullOrUndefined(toFName)) {
|
|
3720
|
+
const error = 'The provided value for the fromFName and toFName is undefined. Please ensure the fromFName and toFName contains string.';
|
|
3721
|
+
this.trigger(actionFailure, { error: error });
|
|
3722
|
+
}
|
|
3704
3723
|
this.grid.reorderColumns(fromFName, toFName);
|
|
3705
3724
|
}
|
|
3706
3725
|
TreeGridLocale() {
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3726
|
+
if (!isNullOrUndefined(this.locale)) {
|
|
3727
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
3728
|
+
const locale = L10n.locale;
|
|
3729
|
+
const localeObject = {};
|
|
3730
|
+
setValue(this.locale, {}, localeObject);
|
|
3731
|
+
let gridLocale;
|
|
3732
|
+
gridLocale = {};
|
|
3733
|
+
gridLocale = getObject(this.locale, locale);
|
|
3734
|
+
let treeGridLocale;
|
|
3735
|
+
treeGridLocale = {};
|
|
3736
|
+
treeGridLocale = getObject(this.getModuleName(), gridLocale);
|
|
3737
|
+
setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
|
|
3738
|
+
L10n.load(localeObject);
|
|
3739
|
+
}
|
|
3719
3740
|
}
|
|
3720
3741
|
/**
|
|
3721
3742
|
* By default, prints all the pages of the TreeGrid and hides the pager.
|
|
@@ -3762,45 +3783,57 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3762
3783
|
}
|
|
3763
3784
|
break;
|
|
3764
3785
|
case 'downArrow':
|
|
3765
|
-
if (!this.enableVirtualization) {
|
|
3786
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3766
3787
|
target = e.target;
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3788
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
3789
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
3790
|
+
}
|
|
3791
|
+
if (!isNullOrUndefined(target)) {
|
|
3792
|
+
parentTarget = target.parentElement;
|
|
3793
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
3794
|
+
const cellIndex = parentTarget.cellIndex;
|
|
3795
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
3796
|
+
parentTarget = target;
|
|
3797
|
+
}
|
|
3798
|
+
summaryElement = this.findnextRowElement(parentTarget);
|
|
3799
|
+
if (summaryElement !== null) {
|
|
3800
|
+
const cellIndex = target.cellIndex;
|
|
3801
|
+
const row = summaryElement.children[parseInt(cellIndex.toString(), 10)];
|
|
3802
|
+
addClass([row], 'e-focused');
|
|
3803
|
+
addClass([row], 'e-focus');
|
|
3804
|
+
}
|
|
3805
|
+
else {
|
|
3806
|
+
this.clearSelection();
|
|
3807
|
+
}
|
|
3782
3808
|
}
|
|
3783
3809
|
}
|
|
3784
3810
|
}
|
|
3785
3811
|
break;
|
|
3786
3812
|
case 'upArrow':
|
|
3787
|
-
if (!this.enableVirtualization) {
|
|
3813
|
+
if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
|
|
3788
3814
|
target = e.target;
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3815
|
+
if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
|
|
3816
|
+
target = parentsUntil(target, 'e-rowcell');
|
|
3817
|
+
}
|
|
3818
|
+
if (!isNullOrUndefined(target)) {
|
|
3819
|
+
parentTarget = target.parentElement;
|
|
3820
|
+
if (!isNullOrUndefined(parentTarget)) {
|
|
3821
|
+
const cellIndex = parentTarget.cellIndex;
|
|
3822
|
+
if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
|
|
3823
|
+
parentTarget = target;
|
|
3824
|
+
}
|
|
3825
|
+
summaryElement = this.findPreviousRowElement(parentTarget);
|
|
3826
|
+
if (summaryElement !== null) {
|
|
3827
|
+
const cellIndex = target.cellIndex;
|
|
3828
|
+
if (!isNullOrUndefined(cellIndex)) {
|
|
3829
|
+
const row = summaryElement.children[parseInt(cellIndex.toString(), 10)];
|
|
3830
|
+
addClass([row], 'e-focused');
|
|
3831
|
+
addClass([row], 'e-focus');
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
else {
|
|
3835
|
+
this.clearSelection();
|
|
3836
|
+
}
|
|
3804
3837
|
}
|
|
3805
3838
|
}
|
|
3806
3839
|
}
|
|
@@ -3994,7 +4027,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3994
4027
|
name: 'Edit'
|
|
3995
4028
|
});
|
|
3996
4029
|
}
|
|
3997
|
-
if (this.isCommandColumn(this.columns)) {
|
|
4030
|
+
if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
|
|
3998
4031
|
modules.push({
|
|
3999
4032
|
member: 'commandColumn',
|
|
4000
4033
|
args: [this],
|
|
@@ -4090,7 +4123,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4090
4123
|
this.log(['mapping_fields_missing']);
|
|
4091
4124
|
this.renderModule = new Render(this);
|
|
4092
4125
|
this.dataModule = new DataManipulation(this);
|
|
4093
|
-
this.printModule = new Print
|
|
4126
|
+
this.printModule = new Print(this);
|
|
4094
4127
|
this.trigger(load);
|
|
4095
4128
|
this.autoGenerateColumns();
|
|
4096
4129
|
this.initialRender = true;
|
|
@@ -4125,6 +4158,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4125
4158
|
const root = 'root';
|
|
4126
4159
|
this.grid[`${root}`] = this[`${root}`] ? this[`${root}`] : this;
|
|
4127
4160
|
this.grid.appendTo(gridContainer);
|
|
4161
|
+
this.actionFailureHandler();
|
|
4128
4162
|
const gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
|
|
4129
4163
|
gridContent.setAttribute('tabindex', '0');
|
|
4130
4164
|
const contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
|
|
@@ -4147,6 +4181,84 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4147
4181
|
}
|
|
4148
4182
|
};
|
|
4149
4183
|
}
|
|
4184
|
+
actionFailureHandler() {
|
|
4185
|
+
const failureCases = [];
|
|
4186
|
+
const primaryKeyFieldNames = this.getPrimaryKeyFieldNames();
|
|
4187
|
+
const RecordsCount = this.flatData.length;
|
|
4188
|
+
if ((this.editSettings.allowAdding || this.editSettings.allowDeleting || this.editSettings.allowEditing)
|
|
4189
|
+
&& primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4190
|
+
failureCases.push('For the CRUD actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4191
|
+
}
|
|
4192
|
+
if (this.allowRowDragAndDrop && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
|
|
4193
|
+
failureCases.push('For the Row Drag and Drop actions, it is necessary to enable Primary Key field for the unique data column.');
|
|
4194
|
+
}
|
|
4195
|
+
if (this.allowPaging && this.enableVirtualization) {
|
|
4196
|
+
failureCases.push('Paging is not allowed in virtualization case.');
|
|
4197
|
+
}
|
|
4198
|
+
if (RecordsCount === 0 && this.columns.length === 0) {
|
|
4199
|
+
failureCases.push('Either of the Data source or columns should be given.');
|
|
4200
|
+
}
|
|
4201
|
+
if (this.frozenColumns > 0 && this.columnModel.filter((col) => col.isFrozen)) {
|
|
4202
|
+
failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
|
|
4203
|
+
}
|
|
4204
|
+
if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
|
|
4205
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4206
|
+
}
|
|
4207
|
+
if (this.stackedHeader && !isNullOrUndefined(this.detailTemplate)) {
|
|
4208
|
+
failureCases.push('Virtual scrolling is not compatible with the detail template');
|
|
4209
|
+
}
|
|
4210
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen) || this.frozenRows > 0)
|
|
4211
|
+
&& (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
|
|
4212
|
+
failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
|
|
4213
|
+
}
|
|
4214
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter((col) => col.isFrozen).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
|
|
4215
|
+
failureCases.push('Frozen rows and columns are not supported with cell editing.');
|
|
4216
|
+
}
|
|
4217
|
+
if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
|
|
4218
|
+
failureCases.push('Selection is not supported in RowTemplate');
|
|
4219
|
+
}
|
|
4220
|
+
if (this.treeColumnIndex < 0) {
|
|
4221
|
+
failureCases.push('For showing tree structure it is must to set the TreeColumnIndex value.');
|
|
4222
|
+
}
|
|
4223
|
+
if (this.treeColumnIndex >= this.columns.length) {
|
|
4224
|
+
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
4225
|
+
}
|
|
4226
|
+
if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter((col) => col.width).toString())
|
|
4227
|
+
&& !/[px]$/.test(this.columnModel.filter((col) => col.width).toString()))
|
|
4228
|
+
|| (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
|
|
4229
|
+
failureCases.push('column width and height should be in pixels');
|
|
4230
|
+
}
|
|
4231
|
+
if (!isNullOrUndefined(this.childMapping) && !isNullOrUndefined(this.idMapping)) {
|
|
4232
|
+
failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
|
|
4233
|
+
}
|
|
4234
|
+
if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
|
|
4235
|
+
((isNullOrUndefined(this.idMapping) && (!isNullOrUndefined(this.parentIdMapping))))) {
|
|
4236
|
+
failureCases.push('IdMapping and ParentIdMapping properties should be defined and vice versa.');
|
|
4237
|
+
}
|
|
4238
|
+
const checkboxColumn = this.columnModel.filter((col) => col.showCheckbox);
|
|
4239
|
+
const treeColumn = this.columns[this.treeColumnIndex];
|
|
4240
|
+
if (checkboxColumn.length !== 0) {
|
|
4241
|
+
if (checkboxColumn !== treeColumn) {
|
|
4242
|
+
failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
|
|
4243
|
+
}
|
|
4244
|
+
if (checkboxColumn.length > 1) {
|
|
4245
|
+
failureCases.push('Only one column can have the ShowCheckbox option enabled.');
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
const alignColumn = this.columnModel.filter((col) => col.textAlign === 'Right' && col.field === this.columnModel[this.treeColumnIndex].field);
|
|
4249
|
+
if (alignColumn.length !== 0) {
|
|
4250
|
+
failureCases.push('TextAlign right for the tree column is not applicable.');
|
|
4251
|
+
}
|
|
4252
|
+
if (failureCases.length > 0) {
|
|
4253
|
+
const failureEventArgs = {
|
|
4254
|
+
error: {}
|
|
4255
|
+
};
|
|
4256
|
+
failureCases.forEach((failureCase, index) => {
|
|
4257
|
+
failureEventArgs.error[parseInt(index.toString(), 10)] = failureCase;
|
|
4258
|
+
});
|
|
4259
|
+
this.trigger(actionFailure, failureEventArgs);
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4150
4262
|
refreshToolbarItems() {
|
|
4151
4263
|
const toolbarElement = this.toolbarModule.getToolbar();
|
|
4152
4264
|
const indentID = this.element.id + '_gridcontrol_indent';
|
|
@@ -4352,11 +4464,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4352
4464
|
this.grid.on('initial-end', this.afterGridRender, this);
|
|
4353
4465
|
if (!isNullOrUndefined(this.loggerModule)) {
|
|
4354
4466
|
const loggerModule = 'loggerModule';
|
|
4355
|
-
this.loggerModule = this.grid[`${loggerModule}`] = new Logger
|
|
4467
|
+
this.loggerModule = this.grid[`${loggerModule}`] = new Logger(this.grid);
|
|
4356
4468
|
}
|
|
4357
4469
|
};
|
|
4358
4470
|
this.grid.printComplete = this.triggerEvents.bind(this);
|
|
4359
|
-
this.grid.actionFailure =
|
|
4471
|
+
this.grid.actionFailure = (args) => {
|
|
4472
|
+
this.trigger(actionFailure, args);
|
|
4473
|
+
};
|
|
4360
4474
|
this.extendedGridDataBoundEvent();
|
|
4361
4475
|
this.extendedGridEvents();
|
|
4362
4476
|
this.extendedGridActionEvents();
|
|
@@ -4444,7 +4558,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4444
4558
|
treeGrid.notify('dataProcessor', args);
|
|
4445
4559
|
//args = treeGrid.dataModule.dataProcessor(args);
|
|
4446
4560
|
}
|
|
4447
|
-
extend(args, treeGrid.dataResults);
|
|
4561
|
+
extend$1(args, treeGrid.dataResults);
|
|
4448
4562
|
if (treeGrid.enableImmutableMode) {
|
|
4449
4563
|
args.result = args.result.slice();
|
|
4450
4564
|
}
|
|
@@ -4724,9 +4838,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4724
4838
|
}
|
|
4725
4839
|
else {
|
|
4726
4840
|
if (this.grid.isFrozenGrid() && this.enableVirtualization && args['tableName'] === 'movable') {
|
|
4727
|
-
const movableContent
|
|
4728
|
-
const frozenContent
|
|
4729
|
-
movableContent
|
|
4841
|
+
const movableContent$1 = this.grid.element.querySelector('.' + movableContent);
|
|
4842
|
+
const frozenContent$1 = this.grid.element.querySelector('.' + frozenContent);
|
|
4843
|
+
movableContent$1.style.height = frozenContent$1.style.height = 'auto';
|
|
4730
4844
|
}
|
|
4731
4845
|
this.trigger(actionComplete, args);
|
|
4732
4846
|
}
|
|
@@ -5441,7 +5555,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5441
5555
|
if (this.grid.editModule) {
|
|
5442
5556
|
if (!isNullOrUndefined(index)) {
|
|
5443
5557
|
const griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
|
|
5444
|
-
extend(griddata, data);
|
|
5558
|
+
extend$1(griddata, data);
|
|
5445
5559
|
this.grid.editModule.updateRow(index, griddata);
|
|
5446
5560
|
}
|
|
5447
5561
|
else {
|
|
@@ -5458,6 +5572,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5458
5572
|
* @returns {void}
|
|
5459
5573
|
*/
|
|
5460
5574
|
deleteRecord(fieldName, data) {
|
|
5575
|
+
if ((isNullOrUndefined(fieldName) && (isNullOrUndefined(data)) || (this.getSelectedRecords().length <= 0))) {
|
|
5576
|
+
const error = 'The provided value for the fieldName and data is undefined. Please ensure the fieldName and data contains number.';
|
|
5577
|
+
this.trigger(actionFailure, { error: error });
|
|
5578
|
+
}
|
|
5461
5579
|
if (this.grid.editModule) {
|
|
5462
5580
|
this.grid.editModule.deleteRecord(fieldName, data);
|
|
5463
5581
|
}
|
|
@@ -5526,6 +5644,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5526
5644
|
* @returns {void}
|
|
5527
5645
|
*/
|
|
5528
5646
|
deleteRow(tr) {
|
|
5647
|
+
if (isNullOrUndefined(tr)) {
|
|
5648
|
+
const error = 'The provided value for the tr is undefined. Please ensure the tr contains HTMLTableRowElement.';
|
|
5649
|
+
this.trigger(actionFailure, { error: error });
|
|
5650
|
+
}
|
|
5529
5651
|
if (this.grid.editModule) {
|
|
5530
5652
|
this.grid.editModule.deleteRow(tr);
|
|
5531
5653
|
}
|
|
@@ -5551,9 +5673,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5551
5673
|
this.grid.setCellValue(key, field, value);
|
|
5552
5674
|
const rowIndex = this.grid.getRowIndexByPrimaryKey(key);
|
|
5553
5675
|
const record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
|
|
5554
|
-
if (
|
|
5555
|
-
|
|
5676
|
+
if (isNullOrUndefined(record)) {
|
|
5677
|
+
const error = 'The provided value for the record is undefined. Please ensure the record contains ITreeData.';
|
|
5678
|
+
this.trigger(actionFailure, { error: error });
|
|
5556
5679
|
}
|
|
5680
|
+
editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
|
|
5557
5681
|
}
|
|
5558
5682
|
/**
|
|
5559
5683
|
* Updates and refresh the particular row values based on the given primary key value.
|
|
@@ -5591,8 +5715,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5591
5715
|
this.grid.setRowData(key, rowData);
|
|
5592
5716
|
const visibleRecords = this.getVisibleRecords();
|
|
5593
5717
|
if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])[`${primaryKey}`]) {
|
|
5594
|
-
const table
|
|
5595
|
-
const sHeight = table
|
|
5718
|
+
const table = this.getContentTable();
|
|
5719
|
+
const sHeight = table.scrollHeight;
|
|
5596
5720
|
const clientHeight = this.getContent().clientHeight;
|
|
5597
5721
|
this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
|
|
5598
5722
|
}
|
|
@@ -5604,6 +5728,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5604
5728
|
* @returns {void}
|
|
5605
5729
|
*/
|
|
5606
5730
|
goToPage(pageNo) {
|
|
5731
|
+
if (isNullOrUndefined(pageNo)) {
|
|
5732
|
+
const error = 'The provided value for the pageNo is undefined. Please ensure the pageNo contains number.';
|
|
5733
|
+
this.trigger(actionFailure, { error: error });
|
|
5734
|
+
}
|
|
5607
5735
|
if (this.grid.pagerModule) {
|
|
5608
5736
|
this.grid.pagerModule.goToPage(pageNo);
|
|
5609
5737
|
}
|
|
@@ -5705,6 +5833,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5705
5833
|
* @returns {void}
|
|
5706
5834
|
*/
|
|
5707
5835
|
hideColumns(keys, hideBy) {
|
|
5836
|
+
if (isNullOrUndefined(keys)) {
|
|
5837
|
+
const error = 'The provided value for the keys is undefined. Please ensure the keys contains string.';
|
|
5838
|
+
this.trigger(actionFailure, { error: error });
|
|
5839
|
+
}
|
|
5708
5840
|
this.grid.hideColumns(keys, hideBy);
|
|
5709
5841
|
this.updateColumnModel();
|
|
5710
5842
|
}
|
|
@@ -5801,10 +5933,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5801
5933
|
if (this.grid.columns.length !== this.columnModel.length) {
|
|
5802
5934
|
this.stackedHeader = true;
|
|
5803
5935
|
}
|
|
5804
|
-
if (this.stackedHeader && this.allowResizing) {
|
|
5936
|
+
if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
|
|
5805
5937
|
this.updateColumnsWidth(this.columns);
|
|
5806
5938
|
}
|
|
5807
|
-
if (!this.stackedHeader) {
|
|
5939
|
+
if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
|
|
5808
5940
|
merge(this.columns, this.columnModel);
|
|
5809
5941
|
}
|
|
5810
5942
|
this[`${deepMerge}`] = undefined; // Workaround for blazor updateModel
|
|
@@ -5812,10 +5944,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5812
5944
|
}
|
|
5813
5945
|
updateColumnsWidth(columns) {
|
|
5814
5946
|
columns.forEach((column) => {
|
|
5815
|
-
if (column.columns) {
|
|
5947
|
+
if (!isNullOrUndefined(column) && column.columns) {
|
|
5816
5948
|
this.updateColumnsWidth(column.columns);
|
|
5817
5949
|
}
|
|
5818
|
-
else if (column.field) {
|
|
5950
|
+
else if (!isNullOrUndefined(column) && column.field) {
|
|
5819
5951
|
const currentColumn = this.grid.getColumnByField(column.field);
|
|
5820
5952
|
if (!isNullOrUndefined(currentColumn)) {
|
|
5821
5953
|
column.width = currentColumn.width;
|
|
@@ -6118,6 +6250,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6118
6250
|
* @returns {void}
|
|
6119
6251
|
*/
|
|
6120
6252
|
expandRow(row, record, key, level) {
|
|
6253
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
6254
|
+
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6255
|
+
this.trigger(actionFailure, { error: error });
|
|
6256
|
+
}
|
|
6121
6257
|
let parentRec = this.parentData;
|
|
6122
6258
|
if (!this.enableVirtualization) {
|
|
6123
6259
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6141,13 +6277,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6141
6277
|
if (expandingArgs.expandAll) {
|
|
6142
6278
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6143
6279
|
}
|
|
6144
|
-
this.expandRows(row, record, parentRec
|
|
6280
|
+
this.expandRows(row, record, parentRec);
|
|
6145
6281
|
}
|
|
6146
6282
|
});
|
|
6147
6283
|
}
|
|
6148
6284
|
else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
|
|
6149
6285
|
!this.expandAllPrevent && this.isExpandingEventTriggered) {
|
|
6150
|
-
this.expandRows(row, record, parentRec
|
|
6286
|
+
this.expandRows(row, record, parentRec);
|
|
6151
6287
|
}
|
|
6152
6288
|
this.isExpandingEventTriggered = true;
|
|
6153
6289
|
}
|
|
@@ -6158,13 +6294,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6158
6294
|
if (expandingArgs.expandAll) {
|
|
6159
6295
|
this.expandCollapseAllChildren(record, 'expand', key, level);
|
|
6160
6296
|
}
|
|
6161
|
-
this.expandRows(row, record, parentRec
|
|
6297
|
+
this.expandRows(row, record, parentRec);
|
|
6162
6298
|
}
|
|
6163
6299
|
});
|
|
6164
6300
|
}
|
|
6165
6301
|
}
|
|
6166
6302
|
// Internal method to handle the rows expand
|
|
6167
|
-
expandRows(row, record, parentRec
|
|
6303
|
+
expandRows(row, record, parentRec) {
|
|
6168
6304
|
this.expandCollapse('expand', row, record);
|
|
6169
6305
|
const children = 'Children';
|
|
6170
6306
|
if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record[`${children}`]))) {
|
|
@@ -6234,6 +6370,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6234
6370
|
* @returns {void}
|
|
6235
6371
|
*/
|
|
6236
6372
|
collapseRow(row, record, key) {
|
|
6373
|
+
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
6374
|
+
const error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6375
|
+
this.trigger(actionFailure, { error: error });
|
|
6376
|
+
}
|
|
6237
6377
|
let parentRec = this.parentData;
|
|
6238
6378
|
if (!this.enableVirtualization) {
|
|
6239
6379
|
parentRec = this.flatData.filter((e) => {
|
|
@@ -6250,12 +6390,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6250
6390
|
if (collapsingArgs.collapseAll) {
|
|
6251
6391
|
this.expandCollapseAllChildren(record, 'collapse', key);
|
|
6252
6392
|
}
|
|
6253
|
-
this.collapseRows(row, record, parentRec
|
|
6393
|
+
this.collapseRows(row, record, parentRec);
|
|
6254
6394
|
}
|
|
6255
6395
|
});
|
|
6256
6396
|
}
|
|
6257
6397
|
else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
|
|
6258
|
-
this.collapseRows(row, record, parentRec
|
|
6398
|
+
this.collapseRows(row, record, parentRec);
|
|
6259
6399
|
}
|
|
6260
6400
|
this.isCollapsingEventTriggered = true;
|
|
6261
6401
|
}
|
|
@@ -6263,13 +6403,13 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6263
6403
|
const args = { data: record, row: row, cancel: false };
|
|
6264
6404
|
this.trigger(collapsing, args, (collapsingArgs) => {
|
|
6265
6405
|
if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
|
|
6266
|
-
this.collapseRows(row, record, parentRec
|
|
6406
|
+
this.collapseRows(row, record, parentRec);
|
|
6267
6407
|
}
|
|
6268
6408
|
});
|
|
6269
6409
|
}
|
|
6270
6410
|
}
|
|
6271
6411
|
// Internal method for handling the rows collapse
|
|
6272
|
-
collapseRows(row, record, parentRec
|
|
6412
|
+
collapseRows(row, record, parentRec) {
|
|
6273
6413
|
this.expandCollapse('collapse', row, record);
|
|
6274
6414
|
let collapseArgs = { data: record, row: row };
|
|
6275
6415
|
if (!isRemoteData(this)) {
|
|
@@ -6313,6 +6453,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6313
6453
|
* @returns {void}
|
|
6314
6454
|
*/
|
|
6315
6455
|
expandAtLevel(level) {
|
|
6456
|
+
if (isNullOrUndefined(level)) {
|
|
6457
|
+
const error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6458
|
+
this.trigger(actionFailure, { error: error });
|
|
6459
|
+
}
|
|
6316
6460
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6317
6461
|
const rec = this.grid.dataSource.filter((e) => {
|
|
6318
6462
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6335,6 +6479,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6335
6479
|
* @returns {void}
|
|
6336
6480
|
*/
|
|
6337
6481
|
expandByKey(key) {
|
|
6482
|
+
if (isNullOrUndefined(key)) {
|
|
6483
|
+
const error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6484
|
+
this.trigger(actionFailure, { error: error });
|
|
6485
|
+
}
|
|
6338
6486
|
this.expandCollapseActionByKey(key, 'Expand');
|
|
6339
6487
|
}
|
|
6340
6488
|
expandAction(record, key, level, isPaging = false) {
|
|
@@ -6387,6 +6535,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6387
6535
|
* @returns {void}
|
|
6388
6536
|
*/
|
|
6389
6537
|
collapseAtLevel(level) {
|
|
6538
|
+
if (isNullOrUndefined(level)) {
|
|
6539
|
+
const error = 'The provided value for the level is undefined. Please ensure the level contains number.';
|
|
6540
|
+
this.trigger(actionFailure, { error: error });
|
|
6541
|
+
}
|
|
6390
6542
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
|
|
6391
6543
|
const record = this.grid.dataSource.filter((e) => {
|
|
6392
6544
|
if (e.hasChildRecords && e.level === level) {
|
|
@@ -6409,6 +6561,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6409
6561
|
* @returns {void}
|
|
6410
6562
|
*/
|
|
6411
6563
|
collapseByKey(key) {
|
|
6564
|
+
if (isNullOrUndefined(key)) {
|
|
6565
|
+
const error = 'The provided value for the key is undefined. Please ensure the key contains number.';
|
|
6566
|
+
this.trigger(actionFailure, { error: error });
|
|
6567
|
+
}
|
|
6412
6568
|
this.expandCollapseActionByKey(key, 'Collapse');
|
|
6413
6569
|
}
|
|
6414
6570
|
expandCollapseActionByKey(key, action) {
|
|
@@ -6448,6 +6604,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6448
6604
|
* @returns {void}
|
|
6449
6605
|
*/
|
|
6450
6606
|
expandAll() {
|
|
6607
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6608
|
+
const error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6609
|
+
this.trigger(actionFailure, { error: error });
|
|
6610
|
+
}
|
|
6451
6611
|
this.isExpandedEventTriggered = false;
|
|
6452
6612
|
this.isExpandingEventTriggered = false;
|
|
6453
6613
|
this.expandCollapseAll('expand');
|
|
@@ -6458,6 +6618,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6458
6618
|
* @returns {void}
|
|
6459
6619
|
*/
|
|
6460
6620
|
collapseAll() {
|
|
6621
|
+
if (this.getCurrentViewRecords().length === 0) {
|
|
6622
|
+
const error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
|
|
6623
|
+
this.trigger(actionFailure, { error: error });
|
|
6624
|
+
}
|
|
6461
6625
|
this.isCollapsedEventTriggered = false;
|
|
6462
6626
|
this.isCollapsingEventTriggered = false;
|
|
6463
6627
|
this.expandCollapseAll('collapse');
|
|
@@ -6624,8 +6788,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6624
6788
|
totalRows = [].slice.call(rows);
|
|
6625
6789
|
for (let i = totalRows.length - 1; i >= 0; i--) {
|
|
6626
6790
|
if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
|
|
6627
|
-
const table
|
|
6628
|
-
const sHeight = table
|
|
6791
|
+
const table = this.getContentTable();
|
|
6792
|
+
const sHeight = table.scrollHeight;
|
|
6629
6793
|
const clientHeight = this.getContent().clientHeight;
|
|
6630
6794
|
this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
|
|
6631
6795
|
break;
|
|
@@ -6684,8 +6848,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6684
6848
|
if (childData[parseInt(i.toString(), 10)]) {
|
|
6685
6849
|
childData[parseInt(i.toString(), 10)].level = record.level + 1;
|
|
6686
6850
|
childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
|
|
6687
|
-
childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
|
|
6688
|
-
childData[parseInt(i.toString(), 10)].taskData = extend({}, childData[parseInt(i.toString(), 10)]);
|
|
6851
|
+
childData[parseInt(i.toString(), 10)].parentItem = extend$1({}, record);
|
|
6852
|
+
childData[parseInt(i.toString(), 10)].taskData = extend$1({}, childData[parseInt(i.toString(), 10)]);
|
|
6689
6853
|
delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
|
|
6690
6854
|
delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
|
|
6691
6855
|
childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
|
|
@@ -6999,6 +7163,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6999
7163
|
* @returns {void}
|
|
7000
7164
|
*/
|
|
7001
7165
|
filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
|
|
7166
|
+
if (isNullOrUndefined(fieldName) && isNullOrUndefined(filterOperator) && isNullOrUndefined(filterValue)) {
|
|
7167
|
+
const error = 'The provided value for the fieldName, filterOperator and filterValue are undefined. Please ensure the fieldName, filterOperator and filterValue.';
|
|
7168
|
+
this.trigger(actionFailure, { error: error });
|
|
7169
|
+
}
|
|
7002
7170
|
this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
|
|
7003
7171
|
}
|
|
7004
7172
|
/**
|
|
@@ -7065,6 +7233,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7065
7233
|
* @returns {void}
|
|
7066
7234
|
*/
|
|
7067
7235
|
paste(data, rowIndex, colIndex) {
|
|
7236
|
+
if (isNullOrUndefined(data) && isNullOrUndefined(rowIndex) && isNullOrUndefined(colIndex)) {
|
|
7237
|
+
const error = 'The provided value for the index is undefined. Please ensure the index contains number.';
|
|
7238
|
+
this.trigger(actionFailure, { error: error });
|
|
7239
|
+
}
|
|
7068
7240
|
this.clipboardModule.paste(data, rowIndex, colIndex);
|
|
7069
7241
|
}
|
|
7070
7242
|
/**
|
|
@@ -7276,7 +7448,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7276
7448
|
* @returns {number} - Returns frozen column count
|
|
7277
7449
|
*/
|
|
7278
7450
|
getFrozenColumns() {
|
|
7279
|
-
return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
|
|
7451
|
+
return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
|
|
7280
7452
|
}
|
|
7281
7453
|
getFrozenCount(cols, cnt) {
|
|
7282
7454
|
for (let j = 0, len = cols.length; j < len; j++) {
|
|
@@ -7333,6 +7505,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7333
7505
|
* @returns {void}
|
|
7334
7506
|
*/
|
|
7335
7507
|
reorderRows(fromIndexes, toIndex, position) {
|
|
7508
|
+
if (isNullOrUndefined(fromIndexes) && isNullOrUndefined(toIndex) && isNullOrUndefined(position)) {
|
|
7509
|
+
const error = 'The provided value for the fromIndexes, toIndex and position is undefined. Please ensure the fromIndexes and toIndex contains number and position contains string.';
|
|
7510
|
+
this.trigger(actionFailure, { error: error });
|
|
7511
|
+
}
|
|
7336
7512
|
this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
|
|
7337
7513
|
}
|
|
7338
7514
|
/**
|
|
@@ -7360,400 +7536,400 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
7360
7536
|
}
|
|
7361
7537
|
}
|
|
7362
7538
|
};
|
|
7363
|
-
__decorate([
|
|
7539
|
+
__decorate$b([
|
|
7364
7540
|
Property(0)
|
|
7365
7541
|
], TreeGrid.prototype, "frozenRows", void 0);
|
|
7366
|
-
__decorate([
|
|
7542
|
+
__decorate$b([
|
|
7367
7543
|
Property(0)
|
|
7368
7544
|
], TreeGrid.prototype, "frozenColumns", void 0);
|
|
7369
|
-
__decorate([
|
|
7545
|
+
__decorate$b([
|
|
7370
7546
|
Property('Ellipsis')
|
|
7371
7547
|
], TreeGrid.prototype, "clipMode", void 0);
|
|
7372
|
-
__decorate([
|
|
7548
|
+
__decorate$b([
|
|
7373
7549
|
Property([])
|
|
7374
7550
|
], TreeGrid.prototype, "columns", void 0);
|
|
7375
|
-
__decorate([
|
|
7551
|
+
__decorate$b([
|
|
7376
7552
|
Property(null)
|
|
7377
7553
|
], TreeGrid.prototype, "childMapping", void 0);
|
|
7378
|
-
__decorate([
|
|
7554
|
+
__decorate$b([
|
|
7379
7555
|
Property(null)
|
|
7380
7556
|
], TreeGrid.prototype, "hasChildMapping", void 0);
|
|
7381
|
-
__decorate([
|
|
7557
|
+
__decorate$b([
|
|
7382
7558
|
Property(0)
|
|
7383
7559
|
], TreeGrid.prototype, "treeColumnIndex", void 0);
|
|
7384
|
-
__decorate([
|
|
7560
|
+
__decorate$b([
|
|
7385
7561
|
Property(null)
|
|
7386
7562
|
], TreeGrid.prototype, "idMapping", void 0);
|
|
7387
|
-
__decorate([
|
|
7563
|
+
__decorate$b([
|
|
7388
7564
|
Property(null)
|
|
7389
7565
|
], TreeGrid.prototype, "parentIdMapping", void 0);
|
|
7390
|
-
__decorate([
|
|
7566
|
+
__decorate$b([
|
|
7391
7567
|
Property(false)
|
|
7392
7568
|
], TreeGrid.prototype, "enableCollapseAll", void 0);
|
|
7393
|
-
__decorate([
|
|
7569
|
+
__decorate$b([
|
|
7394
7570
|
Property(null)
|
|
7395
7571
|
], TreeGrid.prototype, "expandStateMapping", void 0);
|
|
7396
|
-
__decorate([
|
|
7572
|
+
__decorate$b([
|
|
7397
7573
|
Property(false)
|
|
7398
7574
|
], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
|
|
7399
|
-
__decorate([
|
|
7575
|
+
__decorate$b([
|
|
7400
7576
|
Property([])
|
|
7401
7577
|
], TreeGrid.prototype, "dataSource", void 0);
|
|
7402
|
-
__decorate([
|
|
7578
|
+
__decorate$b([
|
|
7403
7579
|
Property()
|
|
7404
7580
|
], TreeGrid.prototype, "query", void 0);
|
|
7405
|
-
__decorate([
|
|
7581
|
+
__decorate$b([
|
|
7406
7582
|
Property()
|
|
7407
7583
|
], TreeGrid.prototype, "cloneQuery", void 0);
|
|
7408
|
-
__decorate([
|
|
7584
|
+
__decorate$b([
|
|
7409
7585
|
Property('AllPages')
|
|
7410
7586
|
], TreeGrid.prototype, "printMode", void 0);
|
|
7411
|
-
__decorate([
|
|
7587
|
+
__decorate$b([
|
|
7412
7588
|
Property(false)
|
|
7413
7589
|
], TreeGrid.prototype, "allowPaging", void 0);
|
|
7414
|
-
__decorate([
|
|
7590
|
+
__decorate$b([
|
|
7415
7591
|
Property(false)
|
|
7416
7592
|
], TreeGrid.prototype, "loadChildOnDemand", void 0);
|
|
7417
|
-
__decorate([
|
|
7593
|
+
__decorate$b([
|
|
7418
7594
|
Property(false)
|
|
7419
7595
|
], TreeGrid.prototype, "allowTextWrap", void 0);
|
|
7420
|
-
__decorate([
|
|
7596
|
+
__decorate$b([
|
|
7421
7597
|
Complex({}, TextWrapSettings)
|
|
7422
7598
|
], TreeGrid.prototype, "textWrapSettings", void 0);
|
|
7423
|
-
__decorate([
|
|
7599
|
+
__decorate$b([
|
|
7424
7600
|
Property(false)
|
|
7425
7601
|
], TreeGrid.prototype, "allowReordering", void 0);
|
|
7426
|
-
__decorate([
|
|
7602
|
+
__decorate$b([
|
|
7427
7603
|
Property(false)
|
|
7428
7604
|
], TreeGrid.prototype, "allowResizing", void 0);
|
|
7429
|
-
__decorate([
|
|
7605
|
+
__decorate$b([
|
|
7430
7606
|
Property(false)
|
|
7431
7607
|
], TreeGrid.prototype, "autoCheckHierarchy", void 0);
|
|
7432
|
-
__decorate([
|
|
7608
|
+
__decorate$b([
|
|
7433
7609
|
Complex({}, PageSettings)
|
|
7434
7610
|
], TreeGrid.prototype, "pageSettings", void 0);
|
|
7435
|
-
__decorate([
|
|
7436
|
-
Complex({}, RowDropSettings)
|
|
7611
|
+
__decorate$b([
|
|
7612
|
+
Complex({}, RowDropSettings$1)
|
|
7437
7613
|
], TreeGrid.prototype, "rowDropSettings", void 0);
|
|
7438
|
-
__decorate([
|
|
7614
|
+
__decorate$b([
|
|
7439
7615
|
Property('USD')
|
|
7440
7616
|
], TreeGrid.prototype, "currencyCode", void 0);
|
|
7441
|
-
__decorate([
|
|
7617
|
+
__decorate$b([
|
|
7442
7618
|
Property()
|
|
7443
7619
|
], TreeGrid.prototype, "pagerTemplate", void 0);
|
|
7444
|
-
__decorate([
|
|
7620
|
+
__decorate$b([
|
|
7445
7621
|
Property(false)
|
|
7446
7622
|
], TreeGrid.prototype, "showColumnMenu", void 0);
|
|
7447
|
-
__decorate([
|
|
7623
|
+
__decorate$b([
|
|
7448
7624
|
Property(false)
|
|
7449
7625
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
7450
|
-
__decorate([
|
|
7626
|
+
__decorate$b([
|
|
7451
7627
|
Property(false)
|
|
7452
7628
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
7453
|
-
__decorate([
|
|
7629
|
+
__decorate$b([
|
|
7454
7630
|
Property(true)
|
|
7455
7631
|
], TreeGrid.prototype, "allowMultiSorting", void 0);
|
|
7456
|
-
__decorate([
|
|
7632
|
+
__decorate$b([
|
|
7457
7633
|
Complex({}, SortSettings)
|
|
7458
7634
|
], TreeGrid.prototype, "sortSettings", void 0);
|
|
7459
|
-
__decorate([
|
|
7635
|
+
__decorate$b([
|
|
7460
7636
|
Collection([], AggregateRow)
|
|
7461
7637
|
], TreeGrid.prototype, "aggregates", void 0);
|
|
7462
|
-
__decorate([
|
|
7638
|
+
__decorate$b([
|
|
7463
7639
|
Complex({}, EditSettings)
|
|
7464
7640
|
], TreeGrid.prototype, "editSettings", void 0);
|
|
7465
|
-
__decorate([
|
|
7641
|
+
__decorate$b([
|
|
7466
7642
|
Property(false)
|
|
7467
7643
|
], TreeGrid.prototype, "allowFiltering", void 0);
|
|
7468
|
-
__decorate([
|
|
7644
|
+
__decorate$b([
|
|
7469
7645
|
Property()
|
|
7470
7646
|
], TreeGrid.prototype, "detailTemplate", void 0);
|
|
7471
|
-
__decorate([
|
|
7647
|
+
__decorate$b([
|
|
7472
7648
|
Complex({}, FilterSettings)
|
|
7473
7649
|
], TreeGrid.prototype, "filterSettings", void 0);
|
|
7474
|
-
__decorate([
|
|
7650
|
+
__decorate$b([
|
|
7475
7651
|
Complex({}, SearchSettings)
|
|
7476
7652
|
], TreeGrid.prototype, "searchSettings", void 0);
|
|
7477
|
-
__decorate([
|
|
7653
|
+
__decorate$b([
|
|
7478
7654
|
Property()
|
|
7479
7655
|
], TreeGrid.prototype, "toolbar", void 0);
|
|
7480
|
-
__decorate([
|
|
7656
|
+
__decorate$b([
|
|
7481
7657
|
Property()
|
|
7482
7658
|
], TreeGrid.prototype, "toolbarTemplate", void 0);
|
|
7483
|
-
__decorate([
|
|
7659
|
+
__decorate$b([
|
|
7484
7660
|
Property('Default')
|
|
7485
7661
|
], TreeGrid.prototype, "gridLines", void 0);
|
|
7486
|
-
__decorate([
|
|
7662
|
+
__decorate$b([
|
|
7487
7663
|
Property()
|
|
7488
7664
|
], TreeGrid.prototype, "contextMenuItems", void 0);
|
|
7489
|
-
__decorate([
|
|
7665
|
+
__decorate$b([
|
|
7490
7666
|
Property()
|
|
7491
7667
|
], TreeGrid.prototype, "columnMenuItems", void 0);
|
|
7492
|
-
__decorate([
|
|
7668
|
+
__decorate$b([
|
|
7493
7669
|
Property()
|
|
7494
7670
|
], TreeGrid.prototype, "rowTemplate", void 0);
|
|
7495
|
-
__decorate([
|
|
7671
|
+
__decorate$b([
|
|
7496
7672
|
Property('Parent')
|
|
7497
7673
|
], TreeGrid.prototype, "copyHierarchyMode", void 0);
|
|
7498
|
-
__decorate([
|
|
7674
|
+
__decorate$b([
|
|
7499
7675
|
Property(null)
|
|
7500
7676
|
], TreeGrid.prototype, "rowHeight", void 0);
|
|
7501
|
-
__decorate([
|
|
7677
|
+
__decorate$b([
|
|
7502
7678
|
Property(true)
|
|
7503
7679
|
], TreeGrid.prototype, "enableAltRow", void 0);
|
|
7504
|
-
__decorate([
|
|
7680
|
+
__decorate$b([
|
|
7505
7681
|
Property(true)
|
|
7506
7682
|
], TreeGrid.prototype, "allowKeyboard", void 0);
|
|
7507
|
-
__decorate([
|
|
7683
|
+
__decorate$b([
|
|
7508
7684
|
Property(false)
|
|
7509
7685
|
], TreeGrid.prototype, "enableHover", void 0);
|
|
7510
|
-
__decorate([
|
|
7686
|
+
__decorate$b([
|
|
7511
7687
|
Property(false)
|
|
7512
7688
|
], TreeGrid.prototype, "enableAutoFill", void 0);
|
|
7513
|
-
__decorate([
|
|
7689
|
+
__decorate$b([
|
|
7514
7690
|
Property(false)
|
|
7515
7691
|
], TreeGrid.prototype, "enableAdaptiveUI", void 0);
|
|
7516
|
-
__decorate([
|
|
7692
|
+
__decorate$b([
|
|
7517
7693
|
Property(false)
|
|
7518
7694
|
], TreeGrid.prototype, "enableImmutableMode", void 0);
|
|
7519
|
-
__decorate([
|
|
7695
|
+
__decorate$b([
|
|
7520
7696
|
Property('auto')
|
|
7521
7697
|
], TreeGrid.prototype, "height", void 0);
|
|
7522
|
-
__decorate([
|
|
7698
|
+
__decorate$b([
|
|
7523
7699
|
Property('auto')
|
|
7524
7700
|
], TreeGrid.prototype, "width", void 0);
|
|
7525
|
-
__decorate([
|
|
7701
|
+
__decorate$b([
|
|
7526
7702
|
Complex({}, LoadingIndicator)
|
|
7527
7703
|
], TreeGrid.prototype, "loadingIndicator", void 0);
|
|
7528
|
-
__decorate([
|
|
7704
|
+
__decorate$b([
|
|
7529
7705
|
Property(true)
|
|
7530
7706
|
], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
|
|
7531
|
-
__decorate([
|
|
7707
|
+
__decorate$b([
|
|
7532
7708
|
Property(false)
|
|
7533
7709
|
], TreeGrid.prototype, "enableVirtualization", void 0);
|
|
7534
|
-
__decorate([
|
|
7710
|
+
__decorate$b([
|
|
7535
7711
|
Property(false)
|
|
7536
7712
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
7537
|
-
__decorate([
|
|
7713
|
+
__decorate$b([
|
|
7538
7714
|
Property(false)
|
|
7539
7715
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
7540
|
-
__decorate([
|
|
7716
|
+
__decorate$b([
|
|
7541
7717
|
Property(false)
|
|
7542
7718
|
], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
|
|
7543
|
-
__decorate([
|
|
7719
|
+
__decorate$b([
|
|
7544
7720
|
Complex({}, InfiniteScrollSettings)
|
|
7545
7721
|
], TreeGrid.prototype, "infiniteScrollSettings", void 0);
|
|
7546
|
-
__decorate([
|
|
7722
|
+
__decorate$b([
|
|
7547
7723
|
Property('All')
|
|
7548
7724
|
], TreeGrid.prototype, "columnQueryMode", void 0);
|
|
7549
|
-
__decorate([
|
|
7725
|
+
__decorate$b([
|
|
7550
7726
|
Event()
|
|
7551
7727
|
], TreeGrid.prototype, "created", void 0);
|
|
7552
|
-
__decorate([
|
|
7728
|
+
__decorate$b([
|
|
7553
7729
|
Event()
|
|
7554
7730
|
], TreeGrid.prototype, "load", void 0);
|
|
7555
|
-
__decorate([
|
|
7731
|
+
__decorate$b([
|
|
7556
7732
|
Event()
|
|
7557
7733
|
], TreeGrid.prototype, "expanding", void 0);
|
|
7558
|
-
__decorate([
|
|
7734
|
+
__decorate$b([
|
|
7559
7735
|
Event()
|
|
7560
7736
|
], TreeGrid.prototype, "expanded", void 0);
|
|
7561
|
-
__decorate([
|
|
7737
|
+
__decorate$b([
|
|
7562
7738
|
Event()
|
|
7563
7739
|
], TreeGrid.prototype, "collapsing", void 0);
|
|
7564
|
-
__decorate([
|
|
7740
|
+
__decorate$b([
|
|
7565
7741
|
Event()
|
|
7566
7742
|
], TreeGrid.prototype, "collapsed", void 0);
|
|
7567
|
-
__decorate([
|
|
7743
|
+
__decorate$b([
|
|
7568
7744
|
Event()
|
|
7569
7745
|
], TreeGrid.prototype, "cellSave", void 0);
|
|
7570
|
-
__decorate([
|
|
7746
|
+
__decorate$b([
|
|
7571
7747
|
Event()
|
|
7572
7748
|
], TreeGrid.prototype, "cellSaved", void 0);
|
|
7573
|
-
__decorate([
|
|
7749
|
+
__decorate$b([
|
|
7574
7750
|
Event()
|
|
7575
7751
|
], TreeGrid.prototype, "actionBegin", void 0);
|
|
7576
|
-
__decorate([
|
|
7752
|
+
__decorate$b([
|
|
7577
7753
|
Event()
|
|
7578
7754
|
], TreeGrid.prototype, "actionComplete", void 0);
|
|
7579
|
-
__decorate([
|
|
7755
|
+
__decorate$b([
|
|
7580
7756
|
Event()
|
|
7581
7757
|
], TreeGrid.prototype, "beginEdit", void 0);
|
|
7582
|
-
__decorate([
|
|
7758
|
+
__decorate$b([
|
|
7583
7759
|
Event()
|
|
7584
7760
|
], TreeGrid.prototype, "batchAdd", void 0);
|
|
7585
|
-
__decorate([
|
|
7761
|
+
__decorate$b([
|
|
7586
7762
|
Event()
|
|
7587
7763
|
], TreeGrid.prototype, "batchDelete", void 0);
|
|
7588
|
-
__decorate([
|
|
7764
|
+
__decorate$b([
|
|
7589
7765
|
Event()
|
|
7590
7766
|
], TreeGrid.prototype, "batchCancel", void 0);
|
|
7591
|
-
__decorate([
|
|
7767
|
+
__decorate$b([
|
|
7592
7768
|
Event()
|
|
7593
7769
|
], TreeGrid.prototype, "beforeBatchAdd", void 0);
|
|
7594
|
-
__decorate([
|
|
7770
|
+
__decorate$b([
|
|
7595
7771
|
Event()
|
|
7596
7772
|
], TreeGrid.prototype, "beforeBatchDelete", void 0);
|
|
7597
|
-
__decorate([
|
|
7773
|
+
__decorate$b([
|
|
7598
7774
|
Event()
|
|
7599
7775
|
], TreeGrid.prototype, "beforeBatchSave", void 0);
|
|
7600
|
-
__decorate([
|
|
7776
|
+
__decorate$b([
|
|
7601
7777
|
Event()
|
|
7602
7778
|
], TreeGrid.prototype, "cellEdit", void 0);
|
|
7603
|
-
__decorate([
|
|
7779
|
+
__decorate$b([
|
|
7604
7780
|
Event()
|
|
7605
7781
|
], TreeGrid.prototype, "actionFailure", void 0);
|
|
7606
|
-
__decorate([
|
|
7782
|
+
__decorate$b([
|
|
7607
7783
|
Event()
|
|
7608
7784
|
], TreeGrid.prototype, "dataBound", void 0);
|
|
7609
|
-
__decorate([
|
|
7785
|
+
__decorate$b([
|
|
7610
7786
|
Event()
|
|
7611
7787
|
], TreeGrid.prototype, "dataSourceChanged", void 0);
|
|
7612
|
-
__decorate([
|
|
7788
|
+
__decorate$b([
|
|
7613
7789
|
Event()
|
|
7614
7790
|
], TreeGrid.prototype, "dataStateChange", void 0);
|
|
7615
|
-
__decorate([
|
|
7791
|
+
__decorate$b([
|
|
7616
7792
|
Event()
|
|
7617
7793
|
], TreeGrid.prototype, "recordDoubleClick", void 0);
|
|
7618
|
-
__decorate([
|
|
7794
|
+
__decorate$b([
|
|
7619
7795
|
Event()
|
|
7620
7796
|
], TreeGrid.prototype, "rowDataBound", void 0);
|
|
7621
|
-
__decorate([
|
|
7797
|
+
__decorate$b([
|
|
7622
7798
|
Event()
|
|
7623
7799
|
], TreeGrid.prototype, "detailDataBound", void 0);
|
|
7624
|
-
__decorate([
|
|
7800
|
+
__decorate$b([
|
|
7625
7801
|
Event()
|
|
7626
7802
|
], TreeGrid.prototype, "queryCellInfo", void 0);
|
|
7627
|
-
__decorate([
|
|
7803
|
+
__decorate$b([
|
|
7628
7804
|
Property(true)
|
|
7629
7805
|
], TreeGrid.prototype, "allowSelection", void 0);
|
|
7630
|
-
__decorate([
|
|
7806
|
+
__decorate$b([
|
|
7631
7807
|
Event()
|
|
7632
7808
|
], TreeGrid.prototype, "rowSelecting", void 0);
|
|
7633
|
-
__decorate([
|
|
7809
|
+
__decorate$b([
|
|
7634
7810
|
Event()
|
|
7635
7811
|
], TreeGrid.prototype, "rowSelected", void 0);
|
|
7636
|
-
__decorate([
|
|
7812
|
+
__decorate$b([
|
|
7637
7813
|
Event()
|
|
7638
7814
|
], TreeGrid.prototype, "rowDeselecting", void 0);
|
|
7639
|
-
__decorate([
|
|
7815
|
+
__decorate$b([
|
|
7640
7816
|
Event()
|
|
7641
7817
|
], TreeGrid.prototype, "rowDeselected", void 0);
|
|
7642
|
-
__decorate([
|
|
7818
|
+
__decorate$b([
|
|
7643
7819
|
Event()
|
|
7644
7820
|
], TreeGrid.prototype, "headerCellInfo", void 0);
|
|
7645
|
-
__decorate([
|
|
7821
|
+
__decorate$b([
|
|
7646
7822
|
Event()
|
|
7647
7823
|
], TreeGrid.prototype, "cellSelecting", void 0);
|
|
7648
|
-
__decorate([
|
|
7824
|
+
__decorate$b([
|
|
7649
7825
|
Event()
|
|
7650
7826
|
], TreeGrid.prototype, "columnMenuOpen", void 0);
|
|
7651
|
-
__decorate([
|
|
7827
|
+
__decorate$b([
|
|
7652
7828
|
Event()
|
|
7653
7829
|
], TreeGrid.prototype, "columnMenuClick", void 0);
|
|
7654
|
-
__decorate([
|
|
7830
|
+
__decorate$b([
|
|
7655
7831
|
Event()
|
|
7656
7832
|
], TreeGrid.prototype, "cellSelected", void 0);
|
|
7657
|
-
__decorate([
|
|
7833
|
+
__decorate$b([
|
|
7658
7834
|
Event()
|
|
7659
7835
|
], TreeGrid.prototype, "cellDeselecting", void 0);
|
|
7660
|
-
__decorate([
|
|
7836
|
+
__decorate$b([
|
|
7661
7837
|
Event()
|
|
7662
7838
|
], TreeGrid.prototype, "cellDeselected", void 0);
|
|
7663
|
-
__decorate([
|
|
7839
|
+
__decorate$b([
|
|
7664
7840
|
Event()
|
|
7665
7841
|
], TreeGrid.prototype, "resizeStart", void 0);
|
|
7666
|
-
__decorate([
|
|
7842
|
+
__decorate$b([
|
|
7667
7843
|
Event()
|
|
7668
7844
|
], TreeGrid.prototype, "resizing", void 0);
|
|
7669
|
-
__decorate([
|
|
7845
|
+
__decorate$b([
|
|
7670
7846
|
Event()
|
|
7671
7847
|
], TreeGrid.prototype, "resizeStop", void 0);
|
|
7672
|
-
__decorate([
|
|
7848
|
+
__decorate$b([
|
|
7673
7849
|
Event()
|
|
7674
7850
|
], TreeGrid.prototype, "columnDragStart", void 0);
|
|
7675
|
-
__decorate([
|
|
7851
|
+
__decorate$b([
|
|
7676
7852
|
Event()
|
|
7677
7853
|
], TreeGrid.prototype, "columnDrag", void 0);
|
|
7678
|
-
__decorate([
|
|
7854
|
+
__decorate$b([
|
|
7679
7855
|
Event()
|
|
7680
7856
|
], TreeGrid.prototype, "columnDrop", void 0);
|
|
7681
|
-
__decorate([
|
|
7857
|
+
__decorate$b([
|
|
7682
7858
|
Event()
|
|
7683
7859
|
], TreeGrid.prototype, "checkboxChange", void 0);
|
|
7684
|
-
__decorate([
|
|
7860
|
+
__decorate$b([
|
|
7685
7861
|
Event()
|
|
7686
7862
|
], TreeGrid.prototype, "printComplete", void 0);
|
|
7687
|
-
__decorate([
|
|
7863
|
+
__decorate$b([
|
|
7688
7864
|
Event()
|
|
7689
7865
|
], TreeGrid.prototype, "beforePrint", void 0);
|
|
7690
|
-
__decorate([
|
|
7866
|
+
__decorate$b([
|
|
7691
7867
|
Event()
|
|
7692
7868
|
], TreeGrid.prototype, "toolbarClick", void 0);
|
|
7693
|
-
__decorate([
|
|
7869
|
+
__decorate$b([
|
|
7694
7870
|
Event()
|
|
7695
7871
|
], TreeGrid.prototype, "beforeDataBound", void 0);
|
|
7696
|
-
__decorate([
|
|
7872
|
+
__decorate$b([
|
|
7697
7873
|
Event()
|
|
7698
7874
|
], TreeGrid.prototype, "contextMenuOpen", void 0);
|
|
7699
|
-
__decorate([
|
|
7875
|
+
__decorate$b([
|
|
7700
7876
|
Event()
|
|
7701
7877
|
], TreeGrid.prototype, "contextMenuClick", void 0);
|
|
7702
|
-
__decorate([
|
|
7878
|
+
__decorate$b([
|
|
7703
7879
|
Event()
|
|
7704
7880
|
], TreeGrid.prototype, "beforeCopy", void 0);
|
|
7705
|
-
__decorate([
|
|
7881
|
+
__decorate$b([
|
|
7706
7882
|
Event()
|
|
7707
7883
|
], TreeGrid.prototype, "beforePaste", void 0);
|
|
7708
|
-
__decorate([
|
|
7884
|
+
__decorate$b([
|
|
7709
7885
|
Event()
|
|
7710
7886
|
], TreeGrid.prototype, "rowDrag", void 0);
|
|
7711
|
-
__decorate([
|
|
7887
|
+
__decorate$b([
|
|
7712
7888
|
Event()
|
|
7713
7889
|
], TreeGrid.prototype, "rowDragStart", void 0);
|
|
7714
|
-
__decorate([
|
|
7890
|
+
__decorate$b([
|
|
7715
7891
|
Event()
|
|
7716
7892
|
], TreeGrid.prototype, "rowDragStartHelper", void 0);
|
|
7717
|
-
__decorate([
|
|
7893
|
+
__decorate$b([
|
|
7718
7894
|
Event()
|
|
7719
7895
|
], TreeGrid.prototype, "rowDrop", void 0);
|
|
7720
|
-
__decorate([
|
|
7896
|
+
__decorate$b([
|
|
7721
7897
|
Property(-1)
|
|
7722
7898
|
], TreeGrid.prototype, "selectedRowIndex", void 0);
|
|
7723
|
-
__decorate([
|
|
7899
|
+
__decorate$b([
|
|
7724
7900
|
Complex({}, SelectionSettings)
|
|
7725
7901
|
], TreeGrid.prototype, "selectionSettings", void 0);
|
|
7726
|
-
__decorate([
|
|
7902
|
+
__decorate$b([
|
|
7727
7903
|
Property(false)
|
|
7728
7904
|
], TreeGrid.prototype, "allowExcelExport", void 0);
|
|
7729
|
-
__decorate([
|
|
7905
|
+
__decorate$b([
|
|
7730
7906
|
Property(false)
|
|
7731
7907
|
], TreeGrid.prototype, "allowPdfExport", void 0);
|
|
7732
|
-
__decorate([
|
|
7908
|
+
__decorate$b([
|
|
7733
7909
|
Event()
|
|
7734
7910
|
], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
|
|
7735
|
-
__decorate([
|
|
7911
|
+
__decorate$b([
|
|
7736
7912
|
Event()
|
|
7737
7913
|
], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
|
|
7738
|
-
__decorate([
|
|
7914
|
+
__decorate$b([
|
|
7739
7915
|
Event()
|
|
7740
7916
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
7741
|
-
__decorate([
|
|
7917
|
+
__decorate$b([
|
|
7742
7918
|
Event()
|
|
7743
7919
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
7744
|
-
__decorate([
|
|
7920
|
+
__decorate$b([
|
|
7745
7921
|
Event()
|
|
7746
7922
|
], TreeGrid.prototype, "beforeExcelExport", void 0);
|
|
7747
|
-
__decorate([
|
|
7923
|
+
__decorate$b([
|
|
7748
7924
|
Event()
|
|
7749
7925
|
], TreeGrid.prototype, "excelExportComplete", void 0);
|
|
7750
|
-
__decorate([
|
|
7926
|
+
__decorate$b([
|
|
7751
7927
|
Event()
|
|
7752
7928
|
], TreeGrid.prototype, "beforePdfExport", void 0);
|
|
7753
|
-
__decorate([
|
|
7929
|
+
__decorate$b([
|
|
7754
7930
|
Event()
|
|
7755
7931
|
], TreeGrid.prototype, "pdfExportComplete", void 0);
|
|
7756
|
-
TreeGrid = TreeGrid_1 = __decorate([
|
|
7932
|
+
TreeGrid = TreeGrid_1 = __decorate$b([
|
|
7757
7933
|
NotifyPropertyChanges
|
|
7758
7934
|
], TreeGrid);
|
|
7759
7935
|
|
|
@@ -7762,14 +7938,14 @@ TreeGrid = TreeGrid_1 = __decorate([
|
|
|
7762
7938
|
*
|
|
7763
7939
|
* @hidden
|
|
7764
7940
|
*/
|
|
7765
|
-
class Reorder
|
|
7941
|
+
class Reorder {
|
|
7766
7942
|
/**
|
|
7767
7943
|
* Constructor for Reorder module
|
|
7768
7944
|
*
|
|
7769
7945
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7770
7946
|
*/
|
|
7771
7947
|
constructor(parent) {
|
|
7772
|
-
Grid.Inject(Reorder);
|
|
7948
|
+
Grid.Inject(Reorder$1);
|
|
7773
7949
|
this.parent = parent;
|
|
7774
7950
|
this.addEventListener();
|
|
7775
7951
|
}
|
|
@@ -7826,14 +8002,14 @@ class Reorder$1 {
|
|
|
7826
8002
|
*
|
|
7827
8003
|
* @hidden
|
|
7828
8004
|
*/
|
|
7829
|
-
class Resize
|
|
8005
|
+
class Resize {
|
|
7830
8006
|
/**
|
|
7831
8007
|
* Constructor for Resize module
|
|
7832
8008
|
*
|
|
7833
8009
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
7834
8010
|
*/
|
|
7835
8011
|
constructor(parent) {
|
|
7836
|
-
Grid.Inject(Resize);
|
|
8012
|
+
Grid.Inject(Resize$1);
|
|
7837
8013
|
this.parent = parent;
|
|
7838
8014
|
}
|
|
7839
8015
|
/**
|
|
@@ -7873,7 +8049,7 @@ class Resize$1 {
|
|
|
7873
8049
|
*
|
|
7874
8050
|
* @hidden
|
|
7875
8051
|
*/
|
|
7876
|
-
class RowDD
|
|
8052
|
+
class RowDD {
|
|
7877
8053
|
/**
|
|
7878
8054
|
* Constructor for render module
|
|
7879
8055
|
*
|
|
@@ -7894,7 +8070,7 @@ class RowDD$1 {
|
|
|
7894
8070
|
this.hasDropItem = true;
|
|
7895
8071
|
/** @hidden */
|
|
7896
8072
|
this.isaddtoBottom = false;
|
|
7897
|
-
Grid.Inject(RowDD);
|
|
8073
|
+
Grid.Inject(RowDD$1);
|
|
7898
8074
|
this.parent = parent;
|
|
7899
8075
|
this.addEventListener();
|
|
7900
8076
|
}
|
|
@@ -8165,15 +8341,17 @@ class RowDD$1 {
|
|
|
8165
8341
|
!Object.prototype.hasOwnProperty.call(draggedRecord.taskData, tObj.childMapping)) {
|
|
8166
8342
|
draggedRecord.taskData[tObj.childMapping] = [];
|
|
8167
8343
|
}
|
|
8168
|
-
if (
|
|
8169
|
-
(draggedRecord
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
dragRecords.
|
|
8175
|
-
|
|
8176
|
-
|
|
8344
|
+
if (!isNullOrUndefined(draggedRecord[tObj.childMapping])) {
|
|
8345
|
+
if (Object.prototype.hasOwnProperty.call(draggedRecord, tObj.childMapping) &&
|
|
8346
|
+
(draggedRecord[tObj.childMapping]).length && !this.isDraggedWithChild &&
|
|
8347
|
+
!isNullOrUndefined(tObj.parentIdMapping)) {
|
|
8348
|
+
const childData = (draggedRecord[tObj.childMapping]);
|
|
8349
|
+
for (let j = 0; j < childData.length; j++) {
|
|
8350
|
+
if (dragRecords.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
|
|
8351
|
+
dragRecords.splice(j, 0, childData[parseInt(j.toString(), 10)]);
|
|
8352
|
+
childData[parseInt(j.toString(), 10)].taskData = extend$1({}, childData[parseInt(j.toString(), 10)]);
|
|
8353
|
+
i += 1;
|
|
8354
|
+
}
|
|
8177
8355
|
}
|
|
8178
8356
|
}
|
|
8179
8357
|
}
|
|
@@ -8247,13 +8425,22 @@ class RowDD$1 {
|
|
|
8247
8425
|
else {
|
|
8248
8426
|
tempDataSource = proxy.dataSource;
|
|
8249
8427
|
}
|
|
8250
|
-
|
|
8251
|
-
|
|
8428
|
+
if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
|
|
8429
|
+
&& !isNullOrUndefined(droppedRecord.taskData)) {
|
|
8252
8430
|
const keys = Object.keys(tempDataSource);
|
|
8253
8431
|
for (let i = 0; i < keys.length; i++) {
|
|
8254
|
-
if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping]
|
|
8255
|
-
|
|
8256
|
-
|
|
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
|
+
}
|
|
8257
8444
|
}
|
|
8258
8445
|
}
|
|
8259
8446
|
if (this.dropPosition === 'topSegment') {
|
|
@@ -8362,8 +8549,12 @@ class RowDD$1 {
|
|
|
8362
8549
|
const bottomRowSegment = middleRowSegment + divide;
|
|
8363
8550
|
const mouseEvent = getObject('originalEvent.event', args);
|
|
8364
8551
|
const touchEvent = getObject('originalEvent.event', args);
|
|
8365
|
-
|
|
8552
|
+
let posy = (mouseEvent.type === 'mousemove') ? mouseEvent.pageY : ((!isNullOrUndefined(touchEvent) &&
|
|
8366
8553
|
!isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].pageY : null);
|
|
8554
|
+
if (this.parent.enableVirtualization) {
|
|
8555
|
+
posy = (mouseEvent.type === 'mousemove') ? mouseEvent.clientY : ((!isNullOrUndefined(touchEvent) &&
|
|
8556
|
+
!isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].clientY : null);
|
|
8557
|
+
}
|
|
8367
8558
|
const isTopSegment = posy <= topRowSegment;
|
|
8368
8559
|
const isMiddleRowSegment = (posy > topRowSegment && posy <= middleRowSegment);
|
|
8369
8560
|
const isBottomRowSegment = (posy > middleRowSegment && posy <= bottomRowSegment);
|
|
@@ -8458,16 +8649,16 @@ class RowDD$1 {
|
|
|
8458
8649
|
classList(ele, ['e-errorcontainer'], []);
|
|
8459
8650
|
classList(ele, ['e-icons', 'e-errorelem'], []);
|
|
8460
8651
|
const errorVal = dragelem.querySelector('.errorValue');
|
|
8461
|
-
let content
|
|
8652
|
+
let content = dragelem.querySelector('.e-rowcell').innerHTML;
|
|
8462
8653
|
if (errorVal) {
|
|
8463
|
-
content
|
|
8654
|
+
content = this.parent[`${sanitize}`](errorVal.innerHTML);
|
|
8464
8655
|
errorVal.parentNode.removeChild(errorVal);
|
|
8465
8656
|
}
|
|
8466
8657
|
dragelem.querySelector('.e-rowcell').innerHTML = '';
|
|
8467
8658
|
const spanContent = document.createElement('span');
|
|
8468
8659
|
spanContent.className = 'errorValue';
|
|
8469
8660
|
spanContent.style.paddingLeft = '16px';
|
|
8470
|
-
spanContent.innerHTML = this.parent[`${sanitize}`](content
|
|
8661
|
+
spanContent.innerHTML = this.parent[`${sanitize}`](content);
|
|
8471
8662
|
dragelem.querySelector('.e-rowcell').appendChild(ele);
|
|
8472
8663
|
dragelem.querySelector('.e-rowcell').appendChild(spanContent);
|
|
8473
8664
|
const dropItemSpan = document.querySelector('.e-dropitemscount');
|
|
@@ -8956,7 +9147,7 @@ class RowDD$1 {
|
|
|
8956
9147
|
}
|
|
8957
9148
|
}
|
|
8958
9149
|
if (this.dropPosition === 'middleSegment') {
|
|
8959
|
-
const parentItem = extend({}, droppedRecord);
|
|
9150
|
+
const parentItem = extend$1({}, droppedRecord);
|
|
8960
9151
|
delete parentItem.childRecords;
|
|
8961
9152
|
draggedRecord.parentItem = parentItem;
|
|
8962
9153
|
draggedRecord.parentUniqueID = droppedRecord.uniqueID;
|
|
@@ -9247,28 +9438,20 @@ class RowDD$1 {
|
|
|
9247
9438
|
}
|
|
9248
9439
|
}
|
|
9249
9440
|
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9257
|
-
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;
|
|
9258
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9259
|
-
};
|
|
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
|
+
};
|
|
9260
9447
|
/**
|
|
9261
9448
|
* Configures the row drop settings of the TreeGrid.
|
|
9262
9449
|
*/
|
|
9263
|
-
class RowDropSettings
|
|
9450
|
+
class RowDropSettings extends ChildProperty {
|
|
9264
9451
|
}
|
|
9265
|
-
__decorate$
|
|
9452
|
+
__decorate$c([
|
|
9266
9453
|
Property()
|
|
9267
|
-
], RowDropSettings
|
|
9268
|
-
|
|
9269
|
-
/**
|
|
9270
|
-
* Models export
|
|
9271
|
-
*/
|
|
9454
|
+
], RowDropSettings.prototype, "targetID", void 0);
|
|
9272
9455
|
|
|
9273
9456
|
/**
|
|
9274
9457
|
* RowModelGenerator is used to generate grid data rows.
|
|
@@ -9322,8 +9505,8 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9322
9505
|
const rows = super.generateRows(data, notifyArgs);
|
|
9323
9506
|
if (!isNullOrUndefined((this.visualData))) {
|
|
9324
9507
|
for (let r = 0; r < rows.length; r++) {
|
|
9325
|
-
rows[parseInt(r.toString(), 10)].index
|
|
9326
|
-
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9508
|
+
rows[parseInt(r.toString(), 10)].index
|
|
9509
|
+
= (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9327
9510
|
}
|
|
9328
9511
|
}
|
|
9329
9512
|
return rows;
|
|
@@ -9362,23 +9545,19 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9362
9545
|
}
|
|
9363
9546
|
}
|
|
9364
9547
|
|
|
9365
|
-
/**
|
|
9366
|
-
* Renderer export
|
|
9367
|
-
*/
|
|
9368
|
-
|
|
9369
9548
|
/**
|
|
9370
9549
|
* TreeGrid Filter module will handle filtering action
|
|
9371
9550
|
*
|
|
9372
9551
|
* @hidden
|
|
9373
9552
|
*/
|
|
9374
|
-
class Filter
|
|
9553
|
+
class Filter {
|
|
9375
9554
|
/**
|
|
9376
9555
|
* Constructor for Filter module
|
|
9377
9556
|
*
|
|
9378
9557
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9379
9558
|
*/
|
|
9380
9559
|
constructor(parent) {
|
|
9381
|
-
Grid.Inject(Filter);
|
|
9560
|
+
Grid.Inject(Filter$1);
|
|
9382
9561
|
this.parent = parent;
|
|
9383
9562
|
this.isHierarchyFilter = false;
|
|
9384
9563
|
this.filteredResult = [];
|
|
@@ -9600,7 +9779,7 @@ class Filter$1 {
|
|
|
9600
9779
|
*
|
|
9601
9780
|
* @hidden
|
|
9602
9781
|
*/
|
|
9603
|
-
class ExcelExport
|
|
9782
|
+
class ExcelExport {
|
|
9604
9783
|
/**
|
|
9605
9784
|
* Constructor for Excel Export module
|
|
9606
9785
|
*
|
|
@@ -9608,7 +9787,7 @@ class ExcelExport$1 {
|
|
|
9608
9787
|
*/
|
|
9609
9788
|
constructor(parent) {
|
|
9610
9789
|
this.isCollapsedStatePersist = false;
|
|
9611
|
-
Grid.Inject(ExcelExport);
|
|
9790
|
+
Grid.Inject(ExcelExport$1);
|
|
9612
9791
|
this.parent = parent;
|
|
9613
9792
|
this.dataResults = {};
|
|
9614
9793
|
this.addEventListener();
|
|
@@ -9667,9 +9846,10 @@ class ExcelExport$1 {
|
|
|
9667
9846
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
9668
9847
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
9669
9848
|
}
|
|
9670
|
-
if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
|
|
9671
|
-
|
|
9672
|
-
|
|
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
|
+
}
|
|
9673
9853
|
}
|
|
9674
9854
|
return new Promise((resolve) => {
|
|
9675
9855
|
const dm = this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
|
|
@@ -9680,7 +9860,7 @@ class ExcelExport$1 {
|
|
|
9680
9860
|
query.queries = this.parent.grid.getDataModule().generateQuery().queries;
|
|
9681
9861
|
setValue('query', query, property);
|
|
9682
9862
|
}
|
|
9683
|
-
this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
|
|
9863
|
+
this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
|
|
9684
9864
|
if (getObject('cancel', property)) {
|
|
9685
9865
|
return null;
|
|
9686
9866
|
}
|
|
@@ -9805,14 +9985,14 @@ class ExcelExport$1 {
|
|
|
9805
9985
|
*
|
|
9806
9986
|
* @hidden
|
|
9807
9987
|
*/
|
|
9808
|
-
class PdfExport
|
|
9988
|
+
class PdfExport {
|
|
9809
9989
|
/**
|
|
9810
9990
|
* Constructor for PDF export module
|
|
9811
9991
|
*
|
|
9812
9992
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
9813
9993
|
*/
|
|
9814
9994
|
constructor(parent) {
|
|
9815
|
-
Grid.Inject(PdfExport);
|
|
9995
|
+
Grid.Inject(PdfExport$1);
|
|
9816
9996
|
this.parent = parent;
|
|
9817
9997
|
this.dataResults = {};
|
|
9818
9998
|
this.addEventListener();
|
|
@@ -9870,7 +10050,7 @@ class PdfExport$1 {
|
|
|
9870
10050
|
query = this.generateQuery(query);
|
|
9871
10051
|
setValue('query', query, prop);
|
|
9872
10052
|
}
|
|
9873
|
-
this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
|
|
10053
|
+
this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
|
|
9874
10054
|
if (getObject('cancel', prop)) {
|
|
9875
10055
|
return null;
|
|
9876
10056
|
}
|
|
@@ -9965,9 +10145,9 @@ class PdfExport$1 {
|
|
|
9965
10145
|
*
|
|
9966
10146
|
* @hidden
|
|
9967
10147
|
*/
|
|
9968
|
-
class Page
|
|
10148
|
+
class Page {
|
|
9969
10149
|
constructor(parent) {
|
|
9970
|
-
Grid.Inject(Page);
|
|
10150
|
+
Grid.Inject(Page$1);
|
|
9971
10151
|
this.parent = parent;
|
|
9972
10152
|
this.addEventListener();
|
|
9973
10153
|
}
|
|
@@ -10032,6 +10212,10 @@ class Page$1 {
|
|
|
10032
10212
|
* @returns {void}
|
|
10033
10213
|
*/
|
|
10034
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
|
+
}
|
|
10035
10219
|
this.parent.grid.pagerModule.updateExternalMessage(message);
|
|
10036
10220
|
}
|
|
10037
10221
|
/**
|
|
@@ -10128,8 +10312,8 @@ class Page$1 {
|
|
|
10128
10312
|
}
|
|
10129
10313
|
else {
|
|
10130
10314
|
const dm = new DataManager(pageingDetails.result);
|
|
10131
|
-
const expanded
|
|
10132
|
-
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));
|
|
10133
10317
|
let visualData;
|
|
10134
10318
|
if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
|
|
10135
10319
|
pageingDetails.actionArgs.action !== 'expand')) {
|
|
@@ -10137,7 +10321,7 @@ class Page$1 {
|
|
|
10137
10321
|
}
|
|
10138
10322
|
else {
|
|
10139
10323
|
visualData = parents.filter((e) => {
|
|
10140
|
-
return getExpandStatus(this.parent, e
|
|
10324
|
+
return getExpandStatus(this.parent, e);
|
|
10141
10325
|
});
|
|
10142
10326
|
}
|
|
10143
10327
|
pageingDetails.count = visualData.length;
|
|
@@ -10164,9 +10348,9 @@ class Page$1 {
|
|
|
10164
10348
|
*
|
|
10165
10349
|
* @hidden
|
|
10166
10350
|
*/
|
|
10167
|
-
class Toolbar
|
|
10351
|
+
class Toolbar {
|
|
10168
10352
|
constructor(parent) {
|
|
10169
|
-
Grid.Inject(Toolbar);
|
|
10353
|
+
Grid.Inject(Toolbar$1);
|
|
10170
10354
|
this.parent = parent;
|
|
10171
10355
|
this.addEventListener();
|
|
10172
10356
|
}
|
|
@@ -10313,14 +10497,14 @@ class Toolbar$1 {
|
|
|
10313
10497
|
*
|
|
10314
10498
|
* @hidden
|
|
10315
10499
|
*/
|
|
10316
|
-
class Aggregate
|
|
10500
|
+
class Aggregate {
|
|
10317
10501
|
/**
|
|
10318
10502
|
* Constructor for Aggregate module
|
|
10319
10503
|
*
|
|
10320
10504
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10321
10505
|
*/
|
|
10322
10506
|
constructor(parent) {
|
|
10323
|
-
Grid.Inject(Aggregate);
|
|
10507
|
+
Grid.Inject(Aggregate$1);
|
|
10324
10508
|
this.parent = parent;
|
|
10325
10509
|
this.flatChildRecords = [];
|
|
10326
10510
|
this.summaryQuery = [];
|
|
@@ -10388,7 +10572,7 @@ class Aggregate$1 {
|
|
|
10388
10572
|
}
|
|
10389
10573
|
});
|
|
10390
10574
|
const currentIndex = idx + childRecordsLength + summaryRowIndex;
|
|
10391
|
-
const summaryParent = extend({}, parentRecord);
|
|
10575
|
+
const summaryParent = extend$1({}, parentRecord);
|
|
10392
10576
|
delete summaryParent.childRecords;
|
|
10393
10577
|
delete summaryParent[this.parent.childMapping];
|
|
10394
10578
|
setValue('parentItem', summaryParent, item);
|
|
@@ -10554,9 +10738,9 @@ class Aggregate$1 {
|
|
|
10554
10738
|
*
|
|
10555
10739
|
* @hidden
|
|
10556
10740
|
*/
|
|
10557
|
-
class Sort
|
|
10741
|
+
class Sort {
|
|
10558
10742
|
constructor(grid) {
|
|
10559
|
-
Grid.Inject(Sort);
|
|
10743
|
+
Grid.Inject(Sort$1);
|
|
10560
10744
|
this.parent = grid;
|
|
10561
10745
|
this.taskIds = [];
|
|
10562
10746
|
this.flatSortedData = [];
|
|
@@ -10677,14 +10861,14 @@ class Sort$1 {
|
|
|
10677
10861
|
*
|
|
10678
10862
|
* @hidden
|
|
10679
10863
|
*/
|
|
10680
|
-
class ColumnMenu
|
|
10864
|
+
class ColumnMenu {
|
|
10681
10865
|
/**
|
|
10682
10866
|
* Constructor for render module
|
|
10683
10867
|
*
|
|
10684
10868
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
10685
10869
|
*/
|
|
10686
10870
|
constructor(parent) {
|
|
10687
|
-
Grid.Inject(ColumnMenu);
|
|
10871
|
+
Grid.Inject(ColumnMenu$1);
|
|
10688
10872
|
this.parent = parent;
|
|
10689
10873
|
}
|
|
10690
10874
|
getColumnMenu() {
|
|
@@ -10709,9 +10893,9 @@ class ColumnMenu$1 {
|
|
|
10709
10893
|
*
|
|
10710
10894
|
* @hidden
|
|
10711
10895
|
*/
|
|
10712
|
-
class ContextMenu
|
|
10896
|
+
class ContextMenu {
|
|
10713
10897
|
constructor(parent) {
|
|
10714
|
-
Grid.Inject(ContextMenu);
|
|
10898
|
+
Grid.Inject(ContextMenu$1);
|
|
10715
10899
|
this.parent = parent;
|
|
10716
10900
|
this.addEventListener();
|
|
10717
10901
|
}
|
|
@@ -10991,7 +11175,7 @@ class BatchEdit {
|
|
|
10991
11175
|
if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
10992
11176
|
added.primaryParent = parentRecord;
|
|
10993
11177
|
if (this.selectedIndex > -1) {
|
|
10994
|
-
added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
|
|
11178
|
+
added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
|
|
10995
11179
|
added.parentUniqueID = added.parentItem.uniqueID;
|
|
10996
11180
|
delete added.parentItem.childRecords;
|
|
10997
11181
|
delete added.parentItem[this.parent.childMapping];
|
|
@@ -11100,13 +11284,13 @@ class BatchEdit {
|
|
|
11100
11284
|
this.updateRowIndex();
|
|
11101
11285
|
// update focus module, need to refix this once grid source modified.
|
|
11102
11286
|
const focusModule = getValue('focusModule', this.parent.grid);
|
|
11103
|
-
const table
|
|
11287
|
+
const table = this.parent.getContentTable();
|
|
11104
11288
|
if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
|
|
11105
11289
|
actualIndex = e.row.rowIndex;
|
|
11106
11290
|
focusModule.getContent().matrix.matrix = this.matrix;
|
|
11107
11291
|
}
|
|
11108
11292
|
else {
|
|
11109
|
-
actualIndex = table
|
|
11293
|
+
actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
|
|
11110
11294
|
// if (this.parent.frozenRows || this.parent.frozenColumns) {
|
|
11111
11295
|
// actualIndex = this.batchIndex;
|
|
11112
11296
|
// }
|
|
@@ -11334,7 +11518,7 @@ class BatchEdit {
|
|
|
11334
11518
|
addRecords.reverse();
|
|
11335
11519
|
}
|
|
11336
11520
|
for (i = 0; i < addRecords.length; i++) {
|
|
11337
|
-
const taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11521
|
+
const taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
|
|
11338
11522
|
delete taskData.parentItem;
|
|
11339
11523
|
delete taskData.uniqueID;
|
|
11340
11524
|
delete taskData.index;
|
|
@@ -11458,7 +11642,7 @@ class BatchEdit {
|
|
|
11458
11642
|
* TreeGrid Edit Module
|
|
11459
11643
|
* The `Edit` module is used to handle editing actions.
|
|
11460
11644
|
*/
|
|
11461
|
-
class Edit
|
|
11645
|
+
class Edit {
|
|
11462
11646
|
/**
|
|
11463
11647
|
* Constructor for Edit module
|
|
11464
11648
|
*
|
|
@@ -11470,7 +11654,7 @@ class Edit$1 {
|
|
|
11470
11654
|
this.prevAriaRowIndex = '-1';
|
|
11471
11655
|
this.isAddedRowByMethod = false;
|
|
11472
11656
|
this.isAddedRowByContextMenu = false;
|
|
11473
|
-
Grid.Inject(Edit);
|
|
11657
|
+
Grid.Inject(Edit$1);
|
|
11474
11658
|
this.parent = parent;
|
|
11475
11659
|
this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
|
|
11476
11660
|
this.previousNewRowPosition = null;
|
|
@@ -11594,8 +11778,9 @@ class Edit$1 {
|
|
|
11594
11778
|
const eventArgs = getObject('editAction', args);
|
|
11595
11779
|
const eventName = getObject('name', eventArgs);
|
|
11596
11780
|
const treeObj = this.parent;
|
|
11597
|
-
const adaptor = treeObj.dataSource
|
|
11598
|
-
|
|
11781
|
+
const adaptor = !isNullOrUndefined(treeObj.dataSource)
|
|
11782
|
+
&& treeObj.dataSource.adaptor;
|
|
11783
|
+
if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
|
|
11599
11784
|
(eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
|
|
11600
11785
|
(treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
|
|
11601
11786
|
|| treeObj.editSettings.newRowPosition === 'Above')) {
|
|
@@ -11810,7 +11995,7 @@ class Edit$1 {
|
|
|
11810
11995
|
customCellSave(args) {
|
|
11811
11996
|
if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
|
|
11812
11997
|
this.updateCell(args, args.rowIndex);
|
|
11813
|
-
this.afterCellSave(args, args.row
|
|
11998
|
+
this.afterCellSave(args, args.row);
|
|
11814
11999
|
}
|
|
11815
12000
|
}
|
|
11816
12001
|
cellSave(args) {
|
|
@@ -11853,7 +12038,7 @@ class Edit$1 {
|
|
|
11853
12038
|
}
|
|
11854
12039
|
}
|
|
11855
12040
|
const arg = {};
|
|
11856
|
-
extend(arg, args);
|
|
12041
|
+
extend$1(arg, args);
|
|
11857
12042
|
arg.cancel = false;
|
|
11858
12043
|
arg.type = 'save';
|
|
11859
12044
|
row = this.parent.grid.getRows()[row.rowIndex];
|
|
@@ -11874,7 +12059,7 @@ class Edit$1 {
|
|
|
11874
12059
|
else {
|
|
11875
12060
|
this.updateCell(args, rowIndex);
|
|
11876
12061
|
setValue('isEdit', false, this.parent.grid);
|
|
11877
|
-
this.afterCellSave(args, row
|
|
12062
|
+
this.afterCellSave(args, row);
|
|
11878
12063
|
}
|
|
11879
12064
|
}
|
|
11880
12065
|
else if (isRemoteData(this.parent) ||
|
|
@@ -11883,7 +12068,7 @@ class Edit$1 {
|
|
|
11883
12068
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
11884
12069
|
this.updateCell(args, rowIndex);
|
|
11885
12070
|
setValue('isEdit', false, this.parent.grid);
|
|
11886
|
-
this.afterCellSave(args, row
|
|
12071
|
+
this.afterCellSave(args, row);
|
|
11887
12072
|
}
|
|
11888
12073
|
else {
|
|
11889
12074
|
let crud = null;
|
|
@@ -11894,7 +12079,7 @@ class Edit$1 {
|
|
|
11894
12079
|
}
|
|
11895
12080
|
this.updateCell(args, rowIndex);
|
|
11896
12081
|
setValue('isEdit', false, this.parent.grid);
|
|
11897
|
-
this.afterCellSave(args, row
|
|
12082
|
+
this.afterCellSave(args, row);
|
|
11898
12083
|
});
|
|
11899
12084
|
}
|
|
11900
12085
|
}
|
|
@@ -11907,7 +12092,7 @@ class Edit$1 {
|
|
|
11907
12092
|
this.parent.grid.contentModule['virtualData'] = {};
|
|
11908
12093
|
}
|
|
11909
12094
|
}
|
|
11910
|
-
afterCellSave(args, row
|
|
12095
|
+
afterCellSave(args, row) {
|
|
11911
12096
|
if (this.parent.grid.aggregateModule) {
|
|
11912
12097
|
this.parent.grid.aggregateModule.refresh(args.rowData);
|
|
11913
12098
|
}
|
|
@@ -12027,9 +12212,9 @@ class Edit$1 {
|
|
|
12027
12212
|
if (!isNullOrUndefined(treecell)) {
|
|
12028
12213
|
for (let l = 0; l < treecell.classList.length; l++) {
|
|
12029
12214
|
const value = treecell.classList[parseInt(l.toString(), 10)];
|
|
12030
|
-
const remove
|
|
12215
|
+
const remove = /e-gridrowindex/i;
|
|
12031
12216
|
const removed = /e-griddetailrowindex/i;
|
|
12032
|
-
const result = value.match(remove
|
|
12217
|
+
const result = value.match(remove);
|
|
12033
12218
|
const results = value.match(removed);
|
|
12034
12219
|
if (result != null) {
|
|
12035
12220
|
removeClass([treecell], value);
|
|
@@ -12280,7 +12465,7 @@ class Edit$1 {
|
|
|
12280
12465
|
if (args.action === 'add') {
|
|
12281
12466
|
const key = this.parent.grid.getPrimaryKeyFieldNames()[0];
|
|
12282
12467
|
let position = null;
|
|
12283
|
-
value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
|
|
12468
|
+
value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
|
|
12284
12469
|
let currentData;
|
|
12285
12470
|
if (this.parent.enableVirtualization && args.index !== 0) {
|
|
12286
12471
|
currentData = this.parent.flatData;
|
|
@@ -12332,7 +12517,7 @@ class Edit$1 {
|
|
|
12332
12517
|
else if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
12333
12518
|
position = 'after';
|
|
12334
12519
|
if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
|
|
12335
|
-
value.parentItem = extend({}, currentData[this.addRowIndex]);
|
|
12520
|
+
value.parentItem = extend$1({}, currentData[this.addRowIndex]);
|
|
12336
12521
|
value.parentUniqueID = value.parentItem.uniqueID;
|
|
12337
12522
|
delete value.parentItem.childRecords;
|
|
12338
12523
|
delete value.parentItem[this.parent.childMapping];
|
|
@@ -12358,7 +12543,7 @@ class Edit$1 {
|
|
|
12358
12543
|
if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
|
|
12359
12544
|
if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
|
|
12360
12545
|
value.parentUniqueID = parentUniqueID;
|
|
12361
|
-
value.parentItem = extend({}, parentItem);
|
|
12546
|
+
value.parentItem = extend$1({}, parentItem);
|
|
12362
12547
|
delete value.parentItem.childRecords;
|
|
12363
12548
|
delete value.parentItem[this.parent.childMapping];
|
|
12364
12549
|
}
|
|
@@ -12499,9 +12684,9 @@ class Edit$1 {
|
|
|
12499
12684
|
*
|
|
12500
12685
|
* @hidden
|
|
12501
12686
|
*/
|
|
12502
|
-
class CommandColumn
|
|
12687
|
+
class CommandColumn {
|
|
12503
12688
|
constructor(parent) {
|
|
12504
|
-
Grid.Inject(CommandColumn);
|
|
12689
|
+
Grid.Inject(CommandColumn$1);
|
|
12505
12690
|
this.parent = parent;
|
|
12506
12691
|
}
|
|
12507
12692
|
/**
|
|
@@ -12529,9 +12714,9 @@ class CommandColumn$1 {
|
|
|
12529
12714
|
*
|
|
12530
12715
|
* @hidden
|
|
12531
12716
|
*/
|
|
12532
|
-
class DetailRow
|
|
12717
|
+
class DetailRow {
|
|
12533
12718
|
constructor(parent) {
|
|
12534
|
-
Grid.Inject(DetailRow);
|
|
12719
|
+
Grid.Inject(DetailRow$1);
|
|
12535
12720
|
this.parent = parent;
|
|
12536
12721
|
this.addEventListener();
|
|
12537
12722
|
}
|
|
@@ -12670,6 +12855,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12670
12855
|
getFrozenRightVirtualRowByIndex(index) {
|
|
12671
12856
|
return this.getRowCollection(index, false, false, true);
|
|
12672
12857
|
}
|
|
12858
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12673
12859
|
getRowCollection(index, isMovable, isRowObject, isFrozenRight) {
|
|
12674
12860
|
const startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
|
|
12675
12861
|
const rowCollection = this.parent.getDataRows();
|
|
@@ -12702,10 +12888,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12702
12888
|
}
|
|
12703
12889
|
}
|
|
12704
12890
|
indexModifier(args) {
|
|
12705
|
-
const content
|
|
12891
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
12706
12892
|
if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
|
|
12707
12893
|
if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
|
|
12708
|
-
const nextSetResIndex = ~~(content
|
|
12894
|
+
const nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
|
|
12709
12895
|
let lastIndex = nextSetResIndex + this.parent.getRows().length;
|
|
12710
12896
|
if (lastIndex > args.count) {
|
|
12711
12897
|
lastIndex = nextSetResIndex +
|
|
@@ -12833,8 +13019,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12833
13019
|
super[`${dataBoundEve}`]();
|
|
12834
13020
|
}
|
|
12835
13021
|
rowSelectedEvent(args) {
|
|
12836
|
-
const rowSelected
|
|
12837
|
-
super[`${rowSelected
|
|
13022
|
+
const rowSelected = 'rowSelected';
|
|
13023
|
+
super[`${rowSelected}`](args);
|
|
12838
13024
|
}
|
|
12839
13025
|
toSelectVirtualRow(args) {
|
|
12840
13026
|
if (this.parent.isEdit) {
|
|
@@ -12919,8 +13105,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12919
13105
|
}
|
|
12920
13106
|
virtualEditSuccess() {
|
|
12921
13107
|
const isAdd = 'isAdd';
|
|
12922
|
-
const content
|
|
12923
|
-
if (this[`${isAdd}`] && content
|
|
13108
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13109
|
+
if (this[`${isAdd}`] && content.querySelector('.e-addedrow')) {
|
|
12924
13110
|
this.recordAdded = true;
|
|
12925
13111
|
}
|
|
12926
13112
|
}
|
|
@@ -12934,8 +13120,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12934
13120
|
}
|
|
12935
13121
|
restoreNewRow() {
|
|
12936
13122
|
const isAdd = 'isAdd';
|
|
12937
|
-
const content
|
|
12938
|
-
if (this[`${isAdd}`] && !content
|
|
13123
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13124
|
+
if (this[`${isAdd}`] && !content.querySelector('.e-addedrow')) {
|
|
12939
13125
|
this.parent.isEdit = false;
|
|
12940
13126
|
this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
|
|
12941
13127
|
}
|
|
@@ -12952,8 +13138,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12952
13138
|
this.addRowIndex = addArgs.addRowIndex;
|
|
12953
13139
|
this.dataRowIndex = this.parent.root.editModule.selectedIndex;
|
|
12954
13140
|
}
|
|
12955
|
-
const actionComplete
|
|
12956
|
-
super[`${actionComplete
|
|
13141
|
+
const actionComplete = 'actionComplete';
|
|
13142
|
+
super[`${actionComplete}`](args);
|
|
12957
13143
|
}
|
|
12958
13144
|
onEnteredAction() {
|
|
12959
13145
|
return (element, current, direction, e, isWheel, check) => {
|
|
@@ -13001,7 +13187,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13001
13187
|
const info = scrollArgs.sentinel;
|
|
13002
13188
|
const rowHeight = this.parent.getRowHeight();
|
|
13003
13189
|
const outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
|
|
13004
|
-
const content
|
|
13190
|
+
const content = this.parent.getContent().querySelector('.e-content');
|
|
13005
13191
|
const scrollHeight = outBuffer * rowHeight;
|
|
13006
13192
|
const upScroll = (scrollArgs.offset.top - this.translateY) < 0;
|
|
13007
13193
|
const downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
|
|
@@ -13011,7 +13197,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13011
13197
|
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13012
13198
|
const vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
|
|
13013
13199
|
this.parent.element.getBoundingClientRect().height);
|
|
13014
|
-
let index = (~~(content
|
|
13200
|
+
let index = (~~(content.scrollTop / rowHeight)
|
|
13015
13201
|
+ Math.ceil(vHeight / rowHeight))
|
|
13016
13202
|
- this.parent.pageSettings.pageSize;
|
|
13017
13203
|
index = (index > 0) ? index : 0;
|
|
@@ -13056,7 +13242,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13056
13242
|
}
|
|
13057
13243
|
}
|
|
13058
13244
|
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
13059
|
-
let nextSetResIndex = ~~(content
|
|
13245
|
+
let nextSetResIndex = ~~(content.scrollTop / rowHeight);
|
|
13060
13246
|
const isLastBlock = (this[`${selectedRowIndex}`] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
|
|
13061
13247
|
if (!isNullOrUndefined(this[`${selectedRowIndex}`]) && this[`${selectedRowIndex}`] !== -1 &&
|
|
13062
13248
|
nextSetResIndex !== this[`${selectedRowIndex}`] && !isLastBlock) {
|
|
@@ -13078,7 +13264,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13078
13264
|
this.startIndex = currentViewData[0][`${indexValue}`] + (this.parent.pageSettings.pageSize / 2);
|
|
13079
13265
|
}
|
|
13080
13266
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
13081
|
-
this.translateY = this.getTranslateY(scrollArgs.offset.top, content
|
|
13267
|
+
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
13082
13268
|
}
|
|
13083
13269
|
else {
|
|
13084
13270
|
if (this.totalRecords === this.endIndex) {
|
|
@@ -13105,10 +13291,10 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13105
13291
|
this.previousInfo = viewInfo;
|
|
13106
13292
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13107
13293
|
const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13294
|
+
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13108
13295
|
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13109
13296
|
viewInfo.loadNext = false;
|
|
13110
13297
|
}
|
|
13111
|
-
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13112
13298
|
this.requestType = 'virtualscroll';
|
|
13113
13299
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
13114
13300
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -13307,7 +13493,7 @@ class TreeInterSectionObserver extends InterSectionObserver {
|
|
|
13307
13493
|
*
|
|
13308
13494
|
* @hidden
|
|
13309
13495
|
*/
|
|
13310
|
-
class VirtualScroll
|
|
13496
|
+
class VirtualScroll {
|
|
13311
13497
|
/**
|
|
13312
13498
|
* Constructor for VirtualScroll module
|
|
13313
13499
|
*
|
|
@@ -13376,10 +13562,10 @@ class VirtualScroll$1 {
|
|
|
13376
13562
|
}
|
|
13377
13563
|
virtualPageAction(pageingDetails) {
|
|
13378
13564
|
const dm = new DataManager(pageingDetails.result);
|
|
13379
|
-
const expanded
|
|
13380
|
-
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));
|
|
13381
13567
|
const visualData = parents.filter((e) => {
|
|
13382
|
-
return getExpandStatus(this.parent, e
|
|
13568
|
+
return getExpandStatus(this.parent, e);
|
|
13383
13569
|
});
|
|
13384
13570
|
this.visualData = visualData;
|
|
13385
13571
|
pageingDetails.count = visualData.length;
|
|
@@ -13472,7 +13658,7 @@ class VirtualScroll$1 {
|
|
|
13472
13658
|
this.removeEventListener();
|
|
13473
13659
|
}
|
|
13474
13660
|
}
|
|
13475
|
-
class TreeVirtual extends VirtualScroll {
|
|
13661
|
+
class TreeVirtual extends VirtualScroll$1 {
|
|
13476
13662
|
constructor(parent, locator) {
|
|
13477
13663
|
super(parent, locator);
|
|
13478
13664
|
getValue('parent', this).off('initial-load', getValue('instantiateRenderer', this), this);
|
|
@@ -13513,14 +13699,14 @@ class TreeVirtual extends VirtualScroll {
|
|
|
13513
13699
|
*
|
|
13514
13700
|
* @hidden
|
|
13515
13701
|
*/
|
|
13516
|
-
class Freeze
|
|
13702
|
+
class Freeze {
|
|
13517
13703
|
/**
|
|
13518
13704
|
* Constructor for render module
|
|
13519
13705
|
*
|
|
13520
13706
|
* @param {TreeGrid} parent - Tree Grid instance
|
|
13521
13707
|
*/
|
|
13522
13708
|
constructor(parent) {
|
|
13523
|
-
Grid.Inject(Freeze);
|
|
13709
|
+
Grid.Inject(Freeze$1);
|
|
13524
13710
|
this.parent = parent;
|
|
13525
13711
|
this.addEventListener();
|
|
13526
13712
|
}
|
|
@@ -13612,14 +13798,14 @@ class Freeze$1 {
|
|
|
13612
13798
|
*
|
|
13613
13799
|
* @hidden
|
|
13614
13800
|
*/
|
|
13615
|
-
class ColumnChooser
|
|
13801
|
+
class ColumnChooser {
|
|
13616
13802
|
/**
|
|
13617
13803
|
* Constructor for render module
|
|
13618
13804
|
*
|
|
13619
13805
|
* @param {TreeGrid} parent - Tree Grid instance.
|
|
13620
13806
|
*/
|
|
13621
13807
|
constructor(parent) {
|
|
13622
|
-
Grid.Inject(ColumnChooser);
|
|
13808
|
+
Grid.Inject(ColumnChooser$1);
|
|
13623
13809
|
this.parent = parent;
|
|
13624
13810
|
}
|
|
13625
13811
|
/**
|
|
@@ -13657,7 +13843,7 @@ class ColumnChooser$1 {
|
|
|
13657
13843
|
*
|
|
13658
13844
|
* @hidden
|
|
13659
13845
|
*/
|
|
13660
|
-
class InfiniteScroll
|
|
13846
|
+
class InfiniteScroll {
|
|
13661
13847
|
/**
|
|
13662
13848
|
* Constructor for VirtualScroll module
|
|
13663
13849
|
*
|
|
@@ -13665,7 +13851,7 @@ class InfiniteScroll$1 {
|
|
|
13665
13851
|
*/
|
|
13666
13852
|
constructor(parent) {
|
|
13667
13853
|
this.parent = parent;
|
|
13668
|
-
Grid.Inject(InfiniteScroll);
|
|
13854
|
+
Grid.Inject(InfiniteScroll$1);
|
|
13669
13855
|
this.addEventListener();
|
|
13670
13856
|
}
|
|
13671
13857
|
/**
|
|
@@ -13763,8 +13949,8 @@ class InfiniteScroll$1 {
|
|
|
13763
13949
|
*/
|
|
13764
13950
|
infinitePageAction(pageingDetails) {
|
|
13765
13951
|
const dm = new DataManager(pageingDetails.result);
|
|
13766
|
-
const expanded
|
|
13767
|
-
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));
|
|
13768
13954
|
const actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
|
|
13769
13955
|
const actions = getValue('actions', this.parent.grid.infiniteScrollModule);
|
|
13770
13956
|
if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
|
|
@@ -13954,17 +14140,5 @@ class InfiniteScroll$1 {
|
|
|
13954
14140
|
}
|
|
13955
14141
|
}
|
|
13956
14142
|
|
|
13957
|
-
|
|
13958
|
-
* actions export
|
|
13959
|
-
*/
|
|
13960
|
-
|
|
13961
|
-
/**
|
|
13962
|
-
* TreeGrid component exported items
|
|
13963
|
-
*/
|
|
13964
|
-
|
|
13965
|
-
/**
|
|
13966
|
-
* Export TreeGrid component
|
|
13967
|
-
*/
|
|
13968
|
-
|
|
13969
|
-
export { TreeGrid, load, rowDataBound, dataBound, queryCellInfo, beforeDataBound, actionBegin, dataStateChange, actionComplete, rowSelecting, rowSelected, checkboxChange, rowDeselected, toolbarClick, beforeExcelExport, beforePdfExport, resizeStop, expanded, expanding, collapsed, collapsing, remoteExpand, localPagedExpandCollapse, pagingActions, printGridInit, contextMenuOpen, contextMenuClick, beforeCopy, beforePaste, savePreviousRowPosition, crudAction, beginEdit, beginAdd, recordDoubleClick, cellSave, cellSaved, cellEdit, batchDelete, batchCancel, batchAdd, beforeBatchDelete, beforeBatchAdd, beforeBatchSave, batchSave, keyPressed, updateData, doubleTap, virtualColumnIndex, virtualActionArgs, destroy, dataListener, indexModifier, beforeStartEdit, beforeBatchCancel, batchEditFormRendered, detailDataBound, rowDrag, rowDragStartHelper, rowDrop, rowDragStart, rowsAdd, rowsRemove, rowdraging, rowDropped, autoCol, rowDeselecting, headerContent, movableContent, movableHeader, frozenContent, frozenHeader, content, table, leftRight, frozenRight, frozenLeft, dataColIndex, ariaColIndex, dataRowIndex, ariaRowIndex, DataManipulation, Reorder$1 as Reorder, Resize$1 as Resize, RowDD$1 as RowDD, Column, TreeGridColumn, StackedColumn, EditSettings, Predicate$1 as Predicate, FilterSettings, PageSettings, SearchSettings, SelectionSettings, AggregateColumn, AggregateRow, SortDescriptor, SortSettings, RowDropSettings$1 as RowDropSettings, InfiniteScrollSettings, LoadingIndicator, Render, TreeVirtualRowModelGenerator, isRemoteData, isCountRequired, isCheckboxcolumn, isFilterChildHierarchy, findParentRecords, getExpandStatus, findChildrenRecords, isOffline, extendArray, getPlainData, getParentData, isHidden, ToolbarItem, ContextMenuItems, Filter$1 as Filter, ExcelExport$1 as ExcelExport, PdfExport$1 as PdfExport, Page$1 as Page, Toolbar$1 as Toolbar, Aggregate$1 as Aggregate, Sort$1 as Sort, TreeClipboard, ColumnMenu$1 as ColumnMenu, ContextMenu$1 as ContextMenu, Edit$1 as Edit, CommandColumn$1 as CommandColumn, Selection, DetailRow$1 as DetailRow, VirtualScroll$1 as VirtualScroll, TreeVirtual, Freeze$1 as Freeze, ColumnChooser$1 as ColumnChooser, Logger$1 as Logger, treeGridDetails, InfiniteScroll$1 as InfiniteScroll };
|
|
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 };
|
|
13970
14144
|
//# sourceMappingURL=ej2-treegrid.es2015.js.map
|