@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,124 +0,0 @@
|
|
|
1
|
-
import { ChildProperty, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';
|
|
2
|
-
import { AggregateColumnModel } from './summary-model';
|
|
3
|
-
import { CustomSummaryType, AggregateType, CellType } from '@syncfusion/ej2-grids';
|
|
4
|
-
/**
|
|
5
|
-
* Configures the TreeGrid's aggregate column.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AggregateColumn extends ChildProperty<AggregateColumn> {
|
|
8
|
-
private formatFn;
|
|
9
|
-
private intl;
|
|
10
|
-
private templateFn;
|
|
11
|
-
/**
|
|
12
|
-
* Defines the aggregate type of a particular column.
|
|
13
|
-
* To use multiple aggregates for single column, specify the `type` as array.
|
|
14
|
-
* Types of aggregate are,
|
|
15
|
-
* * sum
|
|
16
|
-
* * average
|
|
17
|
-
* * max
|
|
18
|
-
* * min
|
|
19
|
-
* * count
|
|
20
|
-
* * falsecount
|
|
21
|
-
* * truecount
|
|
22
|
-
* * custom
|
|
23
|
-
* > Specify the `type` value as `custom` to use custom aggregation.
|
|
24
|
-
*
|
|
25
|
-
* @aspType string
|
|
26
|
-
* @default null
|
|
27
|
-
*/
|
|
28
|
-
type: AggregateType | AggregateType[] | string;
|
|
29
|
-
/**
|
|
30
|
-
* Defines the footer cell template as a string for the aggregate column.
|
|
31
|
-
* The `type` name should be used to access aggregate values inside the template.
|
|
32
|
-
*
|
|
33
|
-
* {% codeBlock src="grid/footer-template-api/index.ts" %}{% endcodeBlock %}
|
|
34
|
-
*
|
|
35
|
-
* @default null
|
|
36
|
-
* @aspType string
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
footerTemplate: string | Function;
|
|
40
|
-
/**
|
|
41
|
-
* Defines the column name to perform aggregation.
|
|
42
|
-
*
|
|
43
|
-
* @default null
|
|
44
|
-
*/
|
|
45
|
-
field: string;
|
|
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;
|
|
56
|
-
/**
|
|
57
|
-
* Defines the column name to display the aggregate value. If `columnName` is not defined,
|
|
58
|
-
* then `field` name value will be assigned to the `columnName` property.
|
|
59
|
-
*
|
|
60
|
-
* @default null
|
|
61
|
-
*/
|
|
62
|
-
columnName: string;
|
|
63
|
-
/**
|
|
64
|
-
* Defines a function to calculate custom aggregate value. The `type` value should be set to `custom`.
|
|
65
|
-
* To use custom aggregate value in the template, use the key as `${custom}`.
|
|
66
|
-
* **Total aggregation**: The custom function will be called with the whole data and the current `AggregateColumn` object.
|
|
67
|
-
* **Group aggregation**: This will be called with the current group details and the `AggregateColumn` object.
|
|
68
|
-
*
|
|
69
|
-
* @default null
|
|
70
|
-
*/
|
|
71
|
-
customAggregate: CustomSummaryType | string;
|
|
72
|
-
/**
|
|
73
|
-
* Custom format function
|
|
74
|
-
*
|
|
75
|
-
* @hidden
|
|
76
|
-
* @param {string} cultureName - culture name to format
|
|
77
|
-
* @returns {void}
|
|
78
|
-
*/
|
|
79
|
-
setFormatter(cultureName: string): void;
|
|
80
|
-
/**
|
|
81
|
-
* @param {NumberFormatOptions | DateFormatOptions} format - formatting options for number and date values
|
|
82
|
-
* @hidden
|
|
83
|
-
* @returns {Function} - return formatter function
|
|
84
|
-
*/
|
|
85
|
-
getFormatFunction(format: NumberFormatOptions | DateFormatOptions): Function;
|
|
86
|
-
/**
|
|
87
|
-
* @hidden
|
|
88
|
-
* @returns {Function} - Returns formatter function
|
|
89
|
-
*/
|
|
90
|
-
getFormatter(): Function;
|
|
91
|
-
/**
|
|
92
|
-
* @param {Object} helper - Specified the helper
|
|
93
|
-
* @hidden
|
|
94
|
-
* @returns {void}
|
|
95
|
-
*/
|
|
96
|
-
setTemplate(helper?: Object): void;
|
|
97
|
-
/**
|
|
98
|
-
* @param {CellType} type - specifies the cell type
|
|
99
|
-
* @returns {Object} returns the object
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
getTemplate(type: CellType): {
|
|
103
|
-
fn: Function;
|
|
104
|
-
property: string;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* @param {Object} prop - updates aggregate properties without change detection
|
|
108
|
-
* @hidden
|
|
109
|
-
* @returns {void}
|
|
110
|
-
*/
|
|
111
|
-
setPropertiesSilent(prop: Object): void;
|
|
112
|
-
}
|
|
113
|
-
export declare class AggregateRow extends ChildProperty<AggregateRow> {
|
|
114
|
-
/**
|
|
115
|
-
* Configures the aggregate columns.
|
|
116
|
-
*
|
|
117
|
-
* @default []
|
|
118
|
-
*/
|
|
119
|
-
columns: AggregateColumnModel[];
|
|
120
|
-
/**
|
|
121
|
-
* Display the childSummary for each parent.
|
|
122
|
-
*/
|
|
123
|
-
showChildSummary: boolean;
|
|
124
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
-
import { WrapMode } from '../enum';
|
|
3
|
-
/**
|
|
4
|
-
* Configures the textwrap behavior of the TreeGrid.
|
|
5
|
-
*/
|
|
6
|
-
export declare class TextWrapSettings extends ChildProperty<TextWrapSettings> {
|
|
7
|
-
/**
|
|
8
|
-
* Defines the `wrapMode` of the TreeGrid. The available modes are:
|
|
9
|
-
* * `Both`: Wraps both the header and content.
|
|
10
|
-
* * `Content`: Wraps the header alone.
|
|
11
|
-
* * `Header`: Wraps the content alone.
|
|
12
|
-
*
|
|
13
|
-
* @default Both
|
|
14
|
-
*/
|
|
15
|
-
wrapMode: WrapMode;
|
|
16
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { TreeGrid } from '..';
|
|
2
|
-
import { QueryCellInfoEventArgs, RowDataBoundEventArgs } from '@syncfusion/ej2-grids';
|
|
3
|
-
/**
|
|
4
|
-
* TreeGrid render module
|
|
5
|
-
*
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class Render {
|
|
9
|
-
private parent;
|
|
10
|
-
private templateResult;
|
|
11
|
-
/**
|
|
12
|
-
* Constructor for render module
|
|
13
|
-
*
|
|
14
|
-
* @param {TreeGrid} parent - Tree Grid instance
|
|
15
|
-
*/
|
|
16
|
-
constructor(parent?: TreeGrid);
|
|
17
|
-
/**
|
|
18
|
-
* Updated row elements for TreeGrid
|
|
19
|
-
*
|
|
20
|
-
* @param {RowDataBoundEventArgs} args - Row details before its bound to DOM
|
|
21
|
-
* @returns {void}
|
|
22
|
-
*/
|
|
23
|
-
RowModifier(args: RowDataBoundEventArgs): void;
|
|
24
|
-
/**
|
|
25
|
-
* cell renderer for tree column index cell
|
|
26
|
-
*
|
|
27
|
-
* @param {QueryCellInfoEventArgs} args - Cell detail before its bound to DOM
|
|
28
|
-
* @returns {void}
|
|
29
|
-
*/
|
|
30
|
-
cellRender(args: QueryCellInfoEventArgs): void;
|
|
31
|
-
private updateTreeCell;
|
|
32
|
-
/**
|
|
33
|
-
* @param {string} columnUid - Defines column uid
|
|
34
|
-
* @returns {void}
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
private refreshReactColumnTemplateByUid;
|
|
38
|
-
private columnTemplateResult;
|
|
39
|
-
private reactTemplateRender;
|
|
40
|
-
destroy(): void;
|
|
41
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { VirtualRowModelGenerator } from '@syncfusion/ej2-grids';
|
|
2
|
-
import { NotifyArgs, Row, Column, IGrid } from '@syncfusion/ej2-grids';
|
|
3
|
-
/**
|
|
4
|
-
* RowModelGenerator is used to generate grid data rows.
|
|
5
|
-
*
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
9
|
-
private visualData;
|
|
10
|
-
constructor(parent: IGrid);
|
|
11
|
-
addEventListener(): void;
|
|
12
|
-
private getDatas;
|
|
13
|
-
private getDataInfo;
|
|
14
|
-
generateRows(data: Object[], notifyArgs?: NotifyArgs): Row<Column>[];
|
|
15
|
-
checkAndResetCache(action: string): boolean;
|
|
16
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Cell, CellType, Column, NotifyArgs, SentinelType } from '@syncfusion/ej2-grids';
|
|
2
|
-
import { Offsets, VirtualInfo, ServiceLocator, IGrid, IModelGenerator } from '@syncfusion/ej2-grids';
|
|
3
|
-
import { VirtualContentRenderer } from '@syncfusion/ej2-grids';
|
|
4
|
-
import { InterSectionObserver } from '@syncfusion/ej2-grids';
|
|
5
|
-
export declare class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
6
|
-
getModelGenerator(): IModelGenerator<Column>;
|
|
7
|
-
constructor(parent: IGrid, locator?: ServiceLocator);
|
|
8
|
-
private isExpandCollapse;
|
|
9
|
-
private observers;
|
|
10
|
-
private translateY;
|
|
11
|
-
private maxiPage;
|
|
12
|
-
private rowPosition;
|
|
13
|
-
private addRowIndex;
|
|
14
|
-
private dataRowIndex;
|
|
15
|
-
private recordAdded;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
startIndex: number;
|
|
18
|
-
private endIndex;
|
|
19
|
-
private totalRecords;
|
|
20
|
-
private contents;
|
|
21
|
-
private fn;
|
|
22
|
-
private preTranslate;
|
|
23
|
-
private isRemoteExpand;
|
|
24
|
-
private previousInfo;
|
|
25
|
-
/** @hidden */
|
|
26
|
-
isDataSourceChanged: boolean;
|
|
27
|
-
getRowByIndex(index: number): Element;
|
|
28
|
-
getFrozenRightVirtualRowByIndex(index: number): Element;
|
|
29
|
-
getRowCollection(index: number, isMovable: boolean, isRowObject?: boolean, isFrozenRight?: boolean): Element | Object;
|
|
30
|
-
addEventListener(): void;
|
|
31
|
-
private virtualOtherAction;
|
|
32
|
-
private indexModifier;
|
|
33
|
-
eventListener(action: string): void;
|
|
34
|
-
private cellFocus;
|
|
35
|
-
protected onDataReady(e?: NotifyArgs): void;
|
|
36
|
-
renderTable(): void;
|
|
37
|
-
protected getTranslateY(sTop: number, cHeight: number, info?: VirtualInfo, isOnenter?: boolean): number;
|
|
38
|
-
private dataBoundEvent;
|
|
39
|
-
private rowSelectedEvent;
|
|
40
|
-
private toSelectVirtualRow;
|
|
41
|
-
private refreshCell;
|
|
42
|
-
generateCells(): Cell<Column>[];
|
|
43
|
-
generateCell(col: Column, rowId?: string, cellType?: CellType, colSpan?: number, oIndex?: number, foreignKeyData?: Object): Cell<Column>;
|
|
44
|
-
private beginEdit;
|
|
45
|
-
private beginAdd;
|
|
46
|
-
private restoreEditState;
|
|
47
|
-
private resetIseditValue;
|
|
48
|
-
private virtualEditSuccess;
|
|
49
|
-
private cancelEdit;
|
|
50
|
-
private toSelectRowOnContextOpen;
|
|
51
|
-
private restoreNewRow;
|
|
52
|
-
private getData;
|
|
53
|
-
private onActionComplete;
|
|
54
|
-
private onEnteredAction;
|
|
55
|
-
scrollListeners(scrollArgs: ScrollArg): void;
|
|
56
|
-
appendContent(target: HTMLElement, newChild: DocumentFragment, e: NotifyArgs): void;
|
|
57
|
-
removeEventListener(): void;
|
|
58
|
-
}
|
|
59
|
-
export declare class TreeInterSectionObserver extends InterSectionObserver {
|
|
60
|
-
private isWheeling;
|
|
61
|
-
private newPos;
|
|
62
|
-
private lastPos;
|
|
63
|
-
private timer;
|
|
64
|
-
observes(callback: Function, onEnterCallback: Function, instance: IGrid): void;
|
|
65
|
-
private clear;
|
|
66
|
-
private virtualScrollHandlers;
|
|
67
|
-
}
|
|
68
|
-
declare type ScrollArg = {
|
|
69
|
-
direction: string;
|
|
70
|
-
isWheel: boolean;
|
|
71
|
-
sentinel: SentinelType;
|
|
72
|
-
offset: Offsets;
|
|
73
|
-
focusElement: HTMLElement;
|
|
74
|
-
};
|
|
75
|
-
export {};
|
package/src/treegrid/utils.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { IGrid } from '@syncfusion/ej2-grids';
|
|
2
|
-
import { TreeGrid } from './base/treegrid';
|
|
3
|
-
import { ITreeData } from './base/interface';
|
|
4
|
-
/**
|
|
5
|
-
* @param {TreeGrid} parent - Tree Grid instance
|
|
6
|
-
* @returns {boolean} - Specifies whether remote data binding
|
|
7
|
-
*/
|
|
8
|
-
export declare function isRemoteData(parent: TreeGrid): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* @param {TreeGrid | IGrid} parent - Tree Grid or Grid instance
|
|
11
|
-
* @returns {boolean} - Returns whether custom binding
|
|
12
|
-
*/
|
|
13
|
-
export declare function isCountRequired(parent: TreeGrid | IGrid): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @param {TreeGrid} parent - Tree Grid instance
|
|
16
|
-
* @returns {boolean} - Returns whether checkbox column is enabled
|
|
17
|
-
*/
|
|
18
|
-
export declare function isCheckboxcolumn(parent: TreeGrid): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @param {TreeGrid} parent - Tree Grid instance
|
|
21
|
-
* @returns {boolean} - Returns whether filtering and searching done
|
|
22
|
-
*/
|
|
23
|
-
export declare function isFilterChildHierarchy(parent: TreeGrid): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @param {Object} records - Define records for which parent records has to be found
|
|
26
|
-
* @hidden
|
|
27
|
-
* @returns {Object} - Returns parent records collection
|
|
28
|
-
*/
|
|
29
|
-
export declare function findParentRecords(records: Object): Object;
|
|
30
|
-
/**
|
|
31
|
-
* @param {TreeGrid} parent - Tree Grid instance
|
|
32
|
-
* @returns {boolean} - Returns the expand status of record
|
|
33
|
-
* @param {ITreeData} record - Define the record for which expand status has be found
|
|
34
|
-
* @param {ITreeData[]} parents - Parent Data collection
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export declare function getExpandStatus(parent: TreeGrid, record: ITreeData, parents: ITreeData[]): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* @param {ITreeData} records - Define the record for which child records has to be found
|
|
40
|
-
* @returns {Object[]} - Returns child records collection
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export declare function findChildrenRecords(records: ITreeData): Object[];
|
|
44
|
-
/**
|
|
45
|
-
* @param {TreeGrid} parent - Tree Grid instance
|
|
46
|
-
* @returns {boolean} - Returns whether local data binding
|
|
47
|
-
*/
|
|
48
|
-
export declare function isOffline(parent: TreeGrid): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* @param {Object[]} array - Defines the array to be cloned
|
|
51
|
-
* @returns {Object[]} - Returns cloned array collection
|
|
52
|
-
*/
|
|
53
|
-
export declare function extendArray(array: Object[]): Object[];
|
|
54
|
-
/**
|
|
55
|
-
* @param {ITreeData} value - Defined the dirty data to be cleaned
|
|
56
|
-
* @returns {ITreeData} - Returns cleaned original data
|
|
57
|
-
*/
|
|
58
|
-
export declare function getPlainData(value: ITreeData): ITreeData;
|
|
59
|
-
/**
|
|
60
|
-
* @param {TreeGrid} parent - TreeGrid instance
|
|
61
|
-
* @param {string} value - IdMapping field name
|
|
62
|
-
* @param {boolean} requireFilter - Specified whether treegrid data is filtered
|
|
63
|
-
* @returns {ITreeData} - Returns IdMapping matched record
|
|
64
|
-
*/
|
|
65
|
-
export declare function getParentData(parent: TreeGrid, value: string, requireFilter?: boolean): ITreeData;
|
|
66
|
-
/**
|
|
67
|
-
* @param {HTMLTableRowElement} el - Row element
|
|
68
|
-
* @returns {boolean} - Returns whether hidden
|
|
69
|
-
*/
|
|
70
|
-
export declare function isHidden(el: HTMLTableRowElement): boolean;
|
package/treegrid.d.ts
DELETED
package/treegrid.js
DELETED
package/tslint.json
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rules": {
|
|
3
|
-
"chai-vague-errors": true,
|
|
4
|
-
"use-isnan": true,
|
|
5
|
-
"missing-jsdoc": true,
|
|
6
|
-
"missing-optional-annotation": true,
|
|
7
|
-
"no-backbone-get-set-outside-model": true,
|
|
8
|
-
"no-banned-terms": true,
|
|
9
|
-
"no-constant-condition": true,
|
|
10
|
-
"no-control-regex": true,
|
|
11
|
-
"no-cookies": true,
|
|
12
|
-
"no-delete-expression": true,
|
|
13
|
-
"no-document-write": true,
|
|
14
|
-
"no-document-domain": true,
|
|
15
|
-
"no-disable-auto-sanitization": true,
|
|
16
|
-
"no-duplicate-case": true,
|
|
17
|
-
"no-duplicate-parameter-names": true,
|
|
18
|
-
"no-empty-interfaces": true,
|
|
19
|
-
"no-exec-script": true,
|
|
20
|
-
"no-function-constructor-with-string-args": true,
|
|
21
|
-
"no-function-expression": true,
|
|
22
|
-
"no-invalid-regexp": true,
|
|
23
|
-
"no-for-in": true,
|
|
24
|
-
"member-access": true,
|
|
25
|
-
"no-multiline-string": true,
|
|
26
|
-
"no-multiple-var-decl": true,
|
|
27
|
-
"no-unnecessary-bind": true,
|
|
28
|
-
"no-unnecessary-semicolons": true,
|
|
29
|
-
"no-octal-literal": true,
|
|
30
|
-
"no-regex-spaces": true,
|
|
31
|
-
"no-sparse-arrays": true,
|
|
32
|
-
"no-string-based-set-immediate": true,
|
|
33
|
-
"no-string-based-set-interval": true,
|
|
34
|
-
"no-unused-imports": true,
|
|
35
|
-
"no-with-statement": true,
|
|
36
|
-
"prefer-array-literal": true,
|
|
37
|
-
"promise-must-complete": false,
|
|
38
|
-
"react-no-dangerous-html": true,
|
|
39
|
-
"use-named-parameter": true,
|
|
40
|
-
"valid-typeof": true,
|
|
41
|
-
"max-func-body-length": [true, 100, {
|
|
42
|
-
"ignore-parameters-to-function-regex": "describe"
|
|
43
|
-
}],
|
|
44
|
-
"class-name": true,
|
|
45
|
-
"curly": true,
|
|
46
|
-
"eofline": false,
|
|
47
|
-
"forin": true,
|
|
48
|
-
"indent": [
|
|
49
|
-
true,
|
|
50
|
-
"spaces"
|
|
51
|
-
],
|
|
52
|
-
"label-position": true,
|
|
53
|
-
"max-line-length": [true, 140],
|
|
54
|
-
"no-arg": true,
|
|
55
|
-
"no-console": [true,
|
|
56
|
-
"debug",
|
|
57
|
-
"info",
|
|
58
|
-
"log",
|
|
59
|
-
"time",
|
|
60
|
-
"timeEnd",
|
|
61
|
-
"trace"
|
|
62
|
-
],
|
|
63
|
-
"no-construct": true,
|
|
64
|
-
"no-parameter-properties": true,
|
|
65
|
-
"no-debugger": true,
|
|
66
|
-
"no-duplicate-variable": true,
|
|
67
|
-
"no-empty": true,
|
|
68
|
-
"no-eval": true,
|
|
69
|
-
"no-string-literal": true,
|
|
70
|
-
"no-switch-case-fall-through": true,
|
|
71
|
-
"trailing-comma": true,
|
|
72
|
-
"no-trailing-whitespace": true,
|
|
73
|
-
"no-unused-expression": true,
|
|
74
|
-
"no-use-before-declare": false,
|
|
75
|
-
"no-var-requires": true,
|
|
76
|
-
"one-line": [true,
|
|
77
|
-
"check-open-brace",
|
|
78
|
-
"check-catch",
|
|
79
|
-
"check-else",
|
|
80
|
-
"check-whitespace"
|
|
81
|
-
],
|
|
82
|
-
"no-any": true,
|
|
83
|
-
"no-conditional-assignment": true,
|
|
84
|
-
"no-angle-bracket-type-assertion": false,
|
|
85
|
-
"align": [true, "parameters", "arguments", "statements"],
|
|
86
|
-
"no-empty-line-after-opening-brace": false,
|
|
87
|
-
"typedef-whitespace": [false],
|
|
88
|
-
"ban": true,
|
|
89
|
-
"quotemark": [true, "single"],
|
|
90
|
-
"semicolon": true,
|
|
91
|
-
"triple-equals": [true, "allow-null-check"],
|
|
92
|
-
"typedef": [true,
|
|
93
|
-
"call-signature",
|
|
94
|
-
"parameter",
|
|
95
|
-
"property-declaration",
|
|
96
|
-
"variable-declaration",
|
|
97
|
-
"arrow-parameter",
|
|
98
|
-
"member-variable-declaration"],
|
|
99
|
-
"variable-name": true,
|
|
100
|
-
"whitespace": [true,
|
|
101
|
-
"check-branch",
|
|
102
|
-
"check-decl",
|
|
103
|
-
"check-operator",
|
|
104
|
-
"check-separator",
|
|
105
|
-
"check-type"
|
|
106
|
-
],
|
|
107
|
-
"jsdoc-format": true,
|
|
108
|
-
"no-var-keyword": true,
|
|
109
|
-
"radix": true
|
|
110
|
-
}
|
|
111
|
-
}
|