@syncfusion/ej2-treegrid 25.2.6 → 26.1.35-760834
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 +842 -553
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +1361 -1069
- 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 +73 -0
- package/license +9 -9
- package/package.json +70 -70
- package/src/treegrid/actions/clipboard.js +13 -13
- package/src/treegrid/actions/crud-actions.js +1 -1
- package/src/treegrid/actions/edit.js +11 -9
- package/src/treegrid/actions/excel-export.js +16 -4
- package/src/treegrid/actions/logger.js +13 -13
- package/src/treegrid/actions/page.js +4 -0
- package/src/treegrid/actions/rowdragdrop.js +27 -16
- package/src/treegrid/actions/selection.js +13 -1
- package/src/treegrid/actions/virtual-scroll.d.ts +2 -0
- package/src/treegrid/actions/virtual-scroll.js +26 -14
- package/src/treegrid/base/constant.d.ts +2 -0
- package/src/treegrid/base/constant.js +2 -0
- package/src/treegrid/base/data.js +22 -4
- package/src/treegrid/base/interface.js +0 -1
- package/src/treegrid/base/treegrid-model.d.ts +875 -875
- package/src/treegrid/base/treegrid.d.ts +45 -41
- package/src/treegrid/base/treegrid.js +338 -101
- package/src/treegrid/models/column-model.d.ts +6 -6
- package/src/treegrid/models/column.js +19 -19
- package/src/treegrid/models/edit-settings-model.d.ts +72 -72
- package/src/treegrid/models/edit-settings.js +19 -19
- package/src/treegrid/models/filter-settings-model.d.ts +206 -206
- package/src/treegrid/models/filter-settings.js +19 -19
- package/src/treegrid/models/infinite-scroll-settings-model.d.ts +16 -16
- package/src/treegrid/models/infinite-scroll-settings.js +19 -19
- package/src/treegrid/models/loading-indicator.js +19 -19
- package/src/treegrid/models/page-settings-model.d.ts +46 -46
- package/src/treegrid/models/page-settings.js +19 -19
- package/src/treegrid/models/rowdrop-settings-model.d.ts +6 -6
- package/src/treegrid/models/rowdrop-settings.js +19 -19
- package/src/treegrid/models/search-settings-model.d.ts +60 -60
- package/src/treegrid/models/search-settings.js +19 -19
- package/src/treegrid/models/selection-settings-model.d.ts +66 -66
- package/src/treegrid/models/selection-settings.js +19 -19
- package/src/treegrid/models/sort-settings-model.d.ts +24 -24
- package/src/treegrid/models/sort-settings.js +19 -19
- package/src/treegrid/models/summary-model.d.ts +64 -64
- package/src/treegrid/models/summary.js +19 -19
- package/src/treegrid/models/textwrap-settings-model.d.ts +9 -9
- package/src/treegrid/models/textwrap-settings.js +19 -19
- package/src/treegrid/renderer/virtual-row-model-generator.js +15 -15
- package/src/treegrid/renderer/virtual-tree-content-render.js +26 -20
- 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 +549 -0
- package/styles/bootstrap5.3-lite.scss +18 -0
- package/styles/bootstrap5.3.css +569 -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 +735 -0
- package/styles/fluent2-lite.scss +18 -0
- package/styles/fluent2.css +758 -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 +578 -0
- package/styles/material3-dark-lite.scss +18 -0
- package/styles/material3-dark.css +220 -185
- package/styles/material3-dark.scss +19 -1
- package/styles/material3-lite.css +580 -0
- package/styles/material3-lite.scss +18 -0
- package/styles/material3.css +221 -240
- 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 +561 -0
- package/styles/tailwind3-lite.scss +18 -0
- package/styles/tailwind3.css +581 -0
- package/styles/tailwind3.scss +19 -0
- package/styles/treegrid/_all.scss +2 -2
- package/styles/treegrid/_bds-definition.scss +24 -28
- package/styles/treegrid/_bigger.scss +66 -0
- package/styles/treegrid/_bootstrap-dark-definition.scss +29 -30
- package/styles/treegrid/_bootstrap-definition.scss +29 -30
- package/styles/treegrid/_bootstrap4-definition.scss +29 -30
- package/styles/treegrid/_bootstrap5-definition.scss +24 -28
- package/styles/treegrid/_bootstrap5.3-definition.scss +24 -0
- package/styles/treegrid/_fabric-dark-definition.scss +29 -30
- package/styles/treegrid/_fabric-definition.scss +29 -30
- package/styles/treegrid/_fluent-definition.scss +25 -29
- package/styles/treegrid/_fluent2-definition.scss +24 -0
- package/styles/treegrid/_fusionnew-definition.scss +24 -28
- package/styles/treegrid/_highcontrast-definition.scss +29 -30
- package/styles/treegrid/_highcontrast-light-definition.scss +29 -30
- package/styles/treegrid/_icons.scss +47 -37
- package/styles/treegrid/_layout.scss +530 -455
- package/styles/treegrid/_material-dark-definition.scss +29 -30
- package/styles/treegrid/_material-definition.scss +29 -30
- package/styles/treegrid/_material3-definition.scss +24 -28
- package/styles/treegrid/_tailwind-definition.scss +24 -28
- package/styles/treegrid/_tailwind3-definition.scss +24 -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 +569 -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 +758 -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 +220 -185
- package/styles/treegrid/material3-dark.scss +2 -1
- package/styles/treegrid/material3.css +221 -240
- 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 +581 -0
- package/styles/treegrid/tailwind3.scss +19 -0
- package/CHANGELOG.md +0 -264
- package/helpers/e2e/index.d.ts +0 -1
- package/helpers/e2e/index.js +0 -8
- package/helpers/e2e/treegridhelper.d.ts +0 -21
- package/helpers/e2e/treegridhelper.js +0 -83
- package/tslint.json +0 -111
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
|
|
1
|
+
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class SortDescriptor
|
|
@@ -6,20 +6,20 @@ import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';impor
|
|
|
6
6
|
export interface SortDescriptorModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Defines the field name of sort column.
|
|
10
|
-
*
|
|
11
|
-
* @default ''
|
|
12
|
-
*/
|
|
13
|
-
field?: string;
|
|
9
|
+
* Defines the field name of sort column.
|
|
10
|
+
*
|
|
11
|
+
* @default ''
|
|
12
|
+
*/
|
|
13
|
+
field?: string;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Defines the direction of sort column.
|
|
17
|
-
*
|
|
18
|
-
* @default ''
|
|
19
|
-
* @isEnumeration true
|
|
20
|
-
* @aspType Syncfusion.EJ2.Grids.SortDirection
|
|
21
|
-
*/
|
|
22
|
-
direction?: SortDirection;
|
|
16
|
+
* Defines the direction of sort column.
|
|
17
|
+
*
|
|
18
|
+
* @default ''
|
|
19
|
+
* @isEnumeration true
|
|
20
|
+
* @aspType Syncfusion.EJ2.Grids.SortDirection
|
|
21
|
+
*/
|
|
22
|
+
direction?: SortDirection;
|
|
23
23
|
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -29,18 +29,18 @@ export interface SortDescriptorModel {
|
|
|
29
29
|
export interface SortSettingsModel {
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Specifies the columns to sort at initial rendering of TreeGrid.
|
|
33
|
-
* Also user can get current sorted columns.
|
|
34
|
-
*
|
|
35
|
-
* @default []
|
|
36
|
-
*/
|
|
37
|
-
columns?: SortDescriptorModel[];
|
|
32
|
+
* Specifies the columns to sort at initial rendering of TreeGrid.
|
|
33
|
+
* Also user can get current sorted columns.
|
|
34
|
+
*
|
|
35
|
+
* @default []
|
|
36
|
+
*/
|
|
37
|
+
columns?: SortDescriptorModel[];
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* If `allowUnsort` set to false the user can not get the TreeGrid in unsorted state by clicking the sorted column header.
|
|
41
|
-
*
|
|
42
|
-
* @default true
|
|
43
|
-
*/
|
|
44
|
-
allowUnsort?: boolean;
|
|
40
|
+
* If `allowUnsort` set to false the user can not get the TreeGrid in unsorted state by clicking the sorted column header.
|
|
41
|
+
*
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
allowUnsort?: boolean;
|
|
45
45
|
|
|
46
46
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* Represents the field name and direction of sort column.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class AggregateColumn
|
|
@@ -6,71 +6,71 @@ import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatO
|
|
|
6
6
|
export interface AggregateColumnModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Defines the aggregate type of a particular column.
|
|
10
|
-
* To use multiple aggregates for single column, specify the `type` as array.
|
|
11
|
-
* Types of aggregate are,
|
|
12
|
-
* * sum
|
|
13
|
-
* * average
|
|
14
|
-
* * max
|
|
15
|
-
* * min
|
|
16
|
-
* * count
|
|
17
|
-
* * falsecount
|
|
18
|
-
* * truecount
|
|
19
|
-
* * custom
|
|
20
|
-
* > Specify the `type` value as `custom` to use custom aggregation.
|
|
21
|
-
*
|
|
22
|
-
* @aspType string
|
|
23
|
-
* @default null
|
|
24
|
-
*/
|
|
25
|
-
type?: AggregateType | AggregateType[] | string;
|
|
9
|
+
* Defines the aggregate type of a particular column.
|
|
10
|
+
* To use multiple aggregates for single column, specify the `type` as array.
|
|
11
|
+
* Types of aggregate are,
|
|
12
|
+
* * sum
|
|
13
|
+
* * average
|
|
14
|
+
* * max
|
|
15
|
+
* * min
|
|
16
|
+
* * count
|
|
17
|
+
* * falsecount
|
|
18
|
+
* * truecount
|
|
19
|
+
* * custom
|
|
20
|
+
* > Specify the `type` value as `custom` to use custom aggregation.
|
|
21
|
+
*
|
|
22
|
+
* @aspType string
|
|
23
|
+
* @default null
|
|
24
|
+
*/
|
|
25
|
+
type?: AggregateType | AggregateType[] | string;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Defines the footer cell template as a string for the aggregate column.
|
|
29
|
-
* The `type` name should be used to access aggregate values inside the template.
|
|
30
|
-
*
|
|
31
|
-
* {% codeBlock src="grid/footer-template-api/index.ts" %}{% endcodeBlock %}
|
|
32
|
-
*
|
|
33
|
-
* @default null
|
|
34
|
-
* @aspType string
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
footerTemplate?: string | Function;
|
|
28
|
+
* Defines the footer cell template as a string for the aggregate column.
|
|
29
|
+
* The `type` name should be used to access aggregate values inside the template.
|
|
30
|
+
*
|
|
31
|
+
* {% codeBlock src="grid/footer-template-api/index.ts" %}{% endcodeBlock %}
|
|
32
|
+
*
|
|
33
|
+
* @default null
|
|
34
|
+
* @aspType string
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
footerTemplate?: string | Function;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Defines the column name to perform aggregation.
|
|
41
|
-
*
|
|
42
|
-
* @default null
|
|
43
|
-
*/
|
|
44
|
-
field?: string;
|
|
40
|
+
* Defines the column name to perform aggregation.
|
|
41
|
+
*
|
|
42
|
+
* @default null
|
|
43
|
+
*/
|
|
44
|
+
field?: string;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* Format is applied to a calculated value before it is displayed.
|
|
48
|
-
* Gets the format from the user, which can be standard or custom
|
|
49
|
-
* [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
50
|
-
* and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
|
|
51
|
-
*
|
|
52
|
-
* @aspType string
|
|
53
|
-
* @default null
|
|
54
|
-
*/
|
|
55
|
-
format?: string | NumberFormatOptions | DateFormatOptions;
|
|
47
|
+
* Format is applied to a calculated value before it is displayed.
|
|
48
|
+
* Gets the format from the user, which can be standard or custom
|
|
49
|
+
* [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
50
|
+
* and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
|
|
51
|
+
*
|
|
52
|
+
* @aspType string
|
|
53
|
+
* @default null
|
|
54
|
+
*/
|
|
55
|
+
format?: string | NumberFormatOptions | DateFormatOptions;
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Defines the column name to display the aggregate value. If `columnName` is not defined,
|
|
59
|
-
* then `field` name value will be assigned to the `columnName` property.
|
|
60
|
-
*
|
|
61
|
-
* @default null
|
|
62
|
-
*/
|
|
63
|
-
columnName?: string;
|
|
58
|
+
* Defines the column name to display the aggregate value. If `columnName` is not defined,
|
|
59
|
+
* then `field` name value will be assigned to the `columnName` property.
|
|
60
|
+
*
|
|
61
|
+
* @default null
|
|
62
|
+
*/
|
|
63
|
+
columnName?: string;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Defines a function to calculate custom aggregate value. The `type` value should be set to `custom`.
|
|
67
|
-
* To use custom aggregate value in the template, use the key as `${custom}`.
|
|
68
|
-
* **Total aggregation**: The custom function will be called with the whole data and the current `AggregateColumn` object.
|
|
69
|
-
* **Group aggregation**: This will be called with the current group details and the `AggregateColumn` object.
|
|
70
|
-
*
|
|
71
|
-
* @default null
|
|
72
|
-
*/
|
|
73
|
-
customAggregate?: CustomSummaryType | string;
|
|
66
|
+
* Defines a function to calculate custom aggregate value. The `type` value should be set to `custom`.
|
|
67
|
+
* To use custom aggregate value in the template, use the key as `${custom}`.
|
|
68
|
+
* **Total aggregation**: The custom function will be called with the whole data and the current `AggregateColumn` object.
|
|
69
|
+
* **Group aggregation**: This will be called with the current group details and the `AggregateColumn` object.
|
|
70
|
+
*
|
|
71
|
+
* @default null
|
|
72
|
+
*/
|
|
73
|
+
customAggregate?: CustomSummaryType | string;
|
|
74
74
|
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -80,15 +80,15 @@ export interface AggregateColumnModel {
|
|
|
80
80
|
export interface AggregateRowModel {
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Configures the aggregate columns.
|
|
84
|
-
*
|
|
85
|
-
* @default []
|
|
86
|
-
*/
|
|
87
|
-
columns?: AggregateColumnModel[];
|
|
83
|
+
* Configures the aggregate columns.
|
|
84
|
+
*
|
|
85
|
+
* @default []
|
|
86
|
+
*/
|
|
87
|
+
columns?: AggregateColumnModel[];
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* Display the childSummary for each parent.
|
|
91
|
-
*/
|
|
92
|
-
showChildSummary?: boolean;
|
|
90
|
+
* Display the childSummary for each parent.
|
|
91
|
+
*/
|
|
92
|
+
showChildSummary?: boolean;
|
|
93
93
|
|
|
94
94
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, ChildProperty, Collection, getEnumValue, compile } from '@syncfusion/ej2-base';
|
|
21
21
|
import { Internationalization } from '@syncfusion/ej2-base';
|
|
22
22
|
import { CellType } from '@syncfusion/ej2-grids';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class TextWrapSettings
|
|
@@ -6,13 +6,13 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { WrapMode
|
|
|
6
6
|
export interface TextWrapSettingsModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Defines the `wrapMode` of the TreeGrid. The available modes are:
|
|
10
|
-
* * `Both`: Wraps both the header and content.
|
|
11
|
-
* * `Content`: Wraps the header alone.
|
|
12
|
-
* * `Header`: Wraps the content alone.
|
|
13
|
-
*
|
|
14
|
-
* @default Both
|
|
15
|
-
*/
|
|
16
|
-
wrapMode?: WrapMode;
|
|
9
|
+
* Defines the `wrapMode` of the TreeGrid. The available modes are:
|
|
10
|
+
* * `Both`: Wraps both the header and content.
|
|
11
|
+
* * `Content`: Wraps the header alone.
|
|
12
|
+
* * `Header`: Wraps the content alone.
|
|
13
|
+
*
|
|
14
|
+
* @default Both
|
|
15
|
+
*/
|
|
16
|
+
wrapMode?: WrapMode;
|
|
17
17
|
|
|
18
18
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
21
21
|
/**
|
|
22
22
|
* Configures the textwrap behavior of the TreeGrid.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { VirtualRowModelGenerator } from '@syncfusion/ej2-grids';
|
|
15
15
|
import * as events from '../base/constant';
|
|
16
16
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
@@ -70,8 +70,8 @@ var TreeVirtualRowModelGenerator = /** @class */ (function (_super) {
|
|
|
70
70
|
var rows = _super.prototype.generateRows.call(this, data, notifyArgs);
|
|
71
71
|
if (!isNullOrUndefined((this.visualData))) {
|
|
72
72
|
for (var r = 0; r < rows.length; r++) {
|
|
73
|
-
rows[parseInt(r.toString(), 10)].index
|
|
74
|
-
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
73
|
+
rows[parseInt(r.toString(), 10)].index
|
|
74
|
+
= (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
return rows;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { Cell, CellType } from '@syncfusion/ej2-grids';
|
|
15
15
|
import { VirtualContentRenderer } from '@syncfusion/ej2-grids';
|
|
16
16
|
import * as literals from '../base/constant';
|
|
@@ -52,6 +52,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
52
52
|
VirtualTreeContentRenderer.prototype.getFrozenRightVirtualRowByIndex = function (index) {
|
|
53
53
|
return this.getRowCollection(index, false, false, true);
|
|
54
54
|
};
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
56
|
VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
|
|
56
57
|
var startIdx = parseInt(this.parent.getRows()[0].getAttribute(literals.dataRowIndex), 10);
|
|
57
58
|
var rowCollection = this.parent.getDataRows();
|
|
@@ -218,6 +219,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
218
219
|
VirtualTreeContentRenderer.prototype.rowSelectedEvent = function (args) {
|
|
219
220
|
var rowSelected = 'rowSelected';
|
|
220
221
|
_super.prototype["" + rowSelected].call(this, args);
|
|
222
|
+
this.parent.notify('virtualTransform', { requestType: 'transformChange' });
|
|
221
223
|
};
|
|
222
224
|
VirtualTreeContentRenderer.prototype.toSelectVirtualRow = function (args) {
|
|
223
225
|
if (this.parent.isEdit) {
|
|
@@ -385,21 +387,25 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
385
387
|
var info = scrollArgs.sentinel;
|
|
386
388
|
var rowHeight = this.parent.getRowHeight();
|
|
387
389
|
var outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
|
|
388
|
-
var content
|
|
390
|
+
var content;
|
|
391
|
+
if (!isNullOrUndefined(this.parent.contentModule)) {
|
|
392
|
+
content = this.parent.getContent().querySelector('.e-content');
|
|
393
|
+
}
|
|
389
394
|
var scrollHeight = outBuffer * rowHeight;
|
|
390
|
-
var upScroll = (scrollArgs.offset.top - this.translateY)
|
|
395
|
+
var upScroll = (scrollArgs.offset.top - this.translateY) <= 0;
|
|
391
396
|
var downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
|
|
392
397
|
var selectedRowIndex = 'selectedRowIndex';
|
|
393
398
|
var currentViewData = this.parent.currentViewData;
|
|
394
399
|
var indexValue = 'index';
|
|
395
|
-
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
400
|
+
if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') && !isNullOrUndefined(content)) {
|
|
396
401
|
var vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
|
|
397
402
|
this.parent.element.getBoundingClientRect().height);
|
|
398
403
|
var index = (~~(content.scrollTop / rowHeight)
|
|
399
404
|
+ Math.ceil(vHeight / rowHeight))
|
|
400
405
|
- this.parent.pageSettings.pageSize;
|
|
401
406
|
index = (index > 0) ? index : 0;
|
|
402
|
-
if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 && index !== this["" + selectedRowIndex]
|
|
407
|
+
if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 && index !== this["" + selectedRowIndex] &&
|
|
408
|
+
((this.parent.rowHeight * this.parent.pageSettings.pageSize) < content.scrollTop)) {
|
|
403
409
|
index = this["" + selectedRowIndex];
|
|
404
410
|
}
|
|
405
411
|
this.startIndex = index;
|
|
@@ -439,7 +445,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
439
445
|
scrollArgs.offset.top - (outBuffer * rowHeight) + 10 : 0;
|
|
440
446
|
}
|
|
441
447
|
}
|
|
442
|
-
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
|
|
448
|
+
else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') && !isNullOrUndefined(content)) {
|
|
443
449
|
var nextSetResIndex = ~~(content.scrollTop / rowHeight);
|
|
444
450
|
var isLastBlock = (this["" + selectedRowIndex] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
|
|
445
451
|
if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 &&
|
|
@@ -489,10 +495,10 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
489
495
|
this.previousInfo = viewInfo;
|
|
490
496
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
491
497
|
var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
498
|
+
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
492
499
|
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
493
500
|
viewInfo.loadNext = false;
|
|
494
501
|
}
|
|
495
|
-
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
496
502
|
this.requestType = 'virtualscroll';
|
|
497
503
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
498
504
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
|
@@ -513,7 +519,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
513
519
|
};
|
|
514
520
|
VirtualTreeContentRenderer.prototype.appendContent = function (target, newChild, e) {
|
|
515
521
|
if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
|
|
516
|
-
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)
|
|
522
|
+
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
|
|
517
523
|
if (getValue('isExpandCollapse', e)) {
|
|
518
524
|
this.isRemoteExpand = true;
|
|
519
525
|
}
|