@syncfusion/ej2-treegrid 31.1.17 → 31.1.20
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/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +13 -4
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +13 -4
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +14 -50
- package/src/treegrid/actions/edit.js +1 -1
- package/src/treegrid/actions/rowdragdrop.js +12 -3
- package/styles/bootstrap4-lite.css +8 -0
- package/styles/bootstrap4.css +8 -0
- package/styles/treegrid/bootstrap4.css +8 -0
- package/dist/ts/index.d.ts +0 -4
- package/dist/ts/index.ts +0 -4
- package/dist/ts/treegrid/actions/batch-edit.d.ts +0 -74
- package/dist/ts/treegrid/actions/batch-edit.ts +0 -627
- package/dist/ts/treegrid/actions/clipboard.d.ts +0 -36
- package/dist/ts/treegrid/actions/clipboard.ts +0 -174
- package/dist/ts/treegrid/actions/column-chooser.d.ts +0 -37
- package/dist/ts/treegrid/actions/column-chooser.ts +0 -55
- package/dist/ts/treegrid/actions/column-menu.d.ts +0 -24
- package/dist/ts/treegrid/actions/column-menu.ts +0 -39
- package/dist/ts/treegrid/actions/command-column.d.ts +0 -24
- package/dist/ts/treegrid/actions/command-column.ts +0 -32
- package/dist/ts/treegrid/actions/context-menu.d.ts +0 -42
- package/dist/ts/treegrid/actions/context-menu.ts +0 -149
- package/dist/ts/treegrid/actions/crud-actions.d.ts +0 -66
- package/dist/ts/treegrid/actions/crud-actions.ts +0 -388
- package/dist/ts/treegrid/actions/detail-row.d.ts +0 -39
- package/dist/ts/treegrid/actions/detail-row.ts +0 -124
- package/dist/ts/treegrid/actions/edit.d.ts +0 -121
- package/dist/ts/treegrid/actions/edit.ts +0 -1083
- package/dist/ts/treegrid/actions/excel-export.d.ts +0 -67
- package/dist/ts/treegrid/actions/excel-export.ts +0 -240
- package/dist/ts/treegrid/actions/filter.d.ts +0 -57
- package/dist/ts/treegrid/actions/filter.ts +0 -231
- package/dist/ts/treegrid/actions/freeze-column.d.ts +0 -28
- package/dist/ts/treegrid/actions/freeze-column.ts +0 -119
- package/dist/ts/treegrid/actions/index.d.ts +0 -24
- package/dist/ts/treegrid/actions/index.ts +0 -24
- package/dist/ts/treegrid/actions/infinite-scroll.d.ts +0 -96
- package/dist/ts/treegrid/actions/infinite-scroll.ts +0 -320
- package/dist/ts/treegrid/actions/logger.d.ts +0 -25
- package/dist/ts/treegrid/actions/logger.ts +0 -136
- package/dist/ts/treegrid/actions/page.d.ts +0 -67
- package/dist/ts/treegrid/actions/page.ts +0 -212
- package/dist/ts/treegrid/actions/pdf-export.d.ts +0 -63
- package/dist/ts/treegrid/actions/pdf-export.ts +0 -182
- package/dist/ts/treegrid/actions/print.d.ts +0 -37
- package/dist/ts/treegrid/actions/print.ts +0 -69
- package/dist/ts/treegrid/actions/reorder.d.ts +0 -36
- package/dist/ts/treegrid/actions/reorder.ts +0 -60
- package/dist/ts/treegrid/actions/resize.d.ts +0 -36
- package/dist/ts/treegrid/actions/resize.ts +0 -54
- package/dist/ts/treegrid/actions/rowdragdrop.d.ts +0 -405
- package/dist/ts/treegrid/actions/rowdragdrop.ts +0 -1896
- package/dist/ts/treegrid/actions/selection.d.ts +0 -51
- package/dist/ts/treegrid/actions/selection.ts +0 -530
- package/dist/ts/treegrid/actions/sort.d.ts +0 -63
- package/dist/ts/treegrid/actions/sort.ts +0 -149
- package/dist/ts/treegrid/actions/summary.d.ts +0 -47
- package/dist/ts/treegrid/actions/summary.ts +0 -231
- package/dist/ts/treegrid/actions/toolbar.d.ts +0 -52
- package/dist/ts/treegrid/actions/toolbar.ts +0 -154
- package/dist/ts/treegrid/actions/virtual-scroll.d.ts +0 -90
- package/dist/ts/treegrid/actions/virtual-scroll.ts +0 -306
- package/dist/ts/treegrid/base/constant.d.ts +0 -158
- package/dist/ts/treegrid/base/constant.ts +0 -158
- package/dist/ts/treegrid/base/data.d.ts +0 -90
- package/dist/ts/treegrid/base/data.ts +0 -904
- package/dist/ts/treegrid/base/index.d.ts +0 -11
- package/dist/ts/treegrid/base/index.ts +0 -11
- package/dist/ts/treegrid/base/interface.d.ts +0 -186
- package/dist/ts/treegrid/base/interface.ts +0 -191
- package/dist/ts/treegrid/base/treegrid-model.d.ts +0 -1100
- package/dist/ts/treegrid/base/treegrid.d.ts +0 -2422
- package/dist/ts/treegrid/base/treegrid.ts +0 -5962
- package/dist/ts/treegrid/enum.d.ts +0 -152
- package/dist/ts/treegrid/enum.ts +0 -217
- package/dist/ts/treegrid/index.d.ts +0 -9
- package/dist/ts/treegrid/index.ts +0 -9
- package/dist/ts/treegrid/models/column-chooser-settings-model.d.ts +0 -62
- package/dist/ts/treegrid/models/column-chooser-settings.d.ts +0 -53
- package/dist/ts/treegrid/models/column-chooser-settings.ts +0 -67
- package/dist/ts/treegrid/models/column-model.d.ts +0 -30
- package/dist/ts/treegrid/models/column.d.ts +0 -697
- package/dist/ts/treegrid/models/column.ts +0 -800
- package/dist/ts/treegrid/models/edit-settings-model.d.ts +0 -100
- package/dist/ts/treegrid/models/edit-settings.d.ts +0 -89
- package/dist/ts/treegrid/models/edit-settings.ts +0 -111
- package/dist/ts/treegrid/models/filter-settings-model.d.ts +0 -216
- package/dist/ts/treegrid/models/filter-settings.d.ts +0 -195
- package/dist/ts/treegrid/models/filter-settings.ts +0 -237
- package/dist/ts/treegrid/models/index.d.ts +0 -24
- package/dist/ts/treegrid/models/index.ts +0 -24
- package/dist/ts/treegrid/models/infinite-scroll-settings-model.d.ts +0 -29
- package/dist/ts/treegrid/models/infinite-scroll-settings.d.ts +0 -25
- package/dist/ts/treegrid/models/infinite-scroll-settings.ts +0 -31
- package/dist/ts/treegrid/models/loading-indicator-model.d.ts +0 -21
- package/dist/ts/treegrid/models/loading-indicator.d.ts +0 -19
- package/dist/ts/treegrid/models/loading-indicator.ts +0 -21
- package/dist/ts/treegrid/models/page-settings-model.d.ts +0 -66
- package/dist/ts/treegrid/models/page-settings.d.ts +0 -57
- package/dist/ts/treegrid/models/page-settings.ts +0 -73
- package/dist/ts/treegrid/models/rowdrop-settings-model.d.ts +0 -15
- package/dist/ts/treegrid/models/rowdrop-settings.d.ts +0 -34
- package/dist/ts/treegrid/models/rowdrop-settings.ts +0 -37
- package/dist/ts/treegrid/models/search-settings-model.d.ts +0 -79
- package/dist/ts/treegrid/models/search-settings.d.ts +0 -73
- package/dist/ts/treegrid/models/search-settings.ts +0 -83
- package/dist/ts/treegrid/models/selection-settings-model.d.ts +0 -76
- package/dist/ts/treegrid/models/selection-settings.d.ts +0 -68
- package/dist/ts/treegrid/models/selection-settings.ts +0 -82
- package/dist/ts/treegrid/models/sort-settings-model.d.ts +0 -49
- package/dist/ts/treegrid/models/sort-settings.d.ts +0 -43
- package/dist/ts/treegrid/models/sort-settings.ts +0 -51
- package/dist/ts/treegrid/models/summary-model.d.ts +0 -93
- package/dist/ts/treegrid/models/summary.d.ts +0 -126
- package/dist/ts/treegrid/models/summary.ts +0 -170
- package/dist/ts/treegrid/models/textwrap-settings-model.d.ts +0 -21
- package/dist/ts/treegrid/models/textwrap-settings.d.ts +0 -19
- package/dist/ts/treegrid/models/textwrap-settings.ts +0 -21
- package/dist/ts/treegrid/renderer/index.d.ts +0 -5
- package/dist/ts/treegrid/renderer/index.ts +0 -5
- package/dist/ts/treegrid/renderer/render.d.ts +0 -41
- package/dist/ts/treegrid/renderer/render.ts +0 -379
- package/dist/ts/treegrid/renderer/virtual-row-model-generator.d.ts +0 -16
- package/dist/ts/treegrid/renderer/virtual-row-model-generator.ts +0 -90
- package/dist/ts/treegrid/renderer/virtual-tree-content-render.d.ts +0 -353
- package/dist/ts/treegrid/renderer/virtual-tree-content-render.ts +0 -1125
- package/dist/ts/treegrid/utils.d.ts +0 -70
- package/dist/ts/treegrid/utils.ts +0 -217
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
-
import { SelectionMode, CellSelectionMode, SelectionType, CheckboxSelectionType } from '@syncfusion/ej2-grids';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Configures the selection behavior of the TreeGrid.
|
|
6
|
-
*/
|
|
7
|
-
export class SelectionSettings extends ChildProperty<SelectionSettings> {
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the selection mode for the TreeGrid, which supports row, cell, and both (row and cell) selection modes.
|
|
10
|
-
* * `Row`: Selects the entire row.
|
|
11
|
-
* * `Cell`: Selects a single cell.
|
|
12
|
-
* * `Both`: Selects the entire row and its cells.
|
|
13
|
-
*
|
|
14
|
-
* @default Syncfusion.EJ2.Grids.SelectionMode.Row
|
|
15
|
-
* @isEnumeration true
|
|
16
|
-
* @aspType Syncfusion.EJ2.Grids.SelectionMode
|
|
17
|
-
*/
|
|
18
|
-
@Property('Row')
|
|
19
|
-
public mode: SelectionMode;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Determines the mode for cell selection, available options are flow and box.
|
|
23
|
-
* Requires the selection `mode` to be either cell or both.
|
|
24
|
-
* * `Flow`: Selects the range between start and end indexes, including other cells of selected rows.
|
|
25
|
-
* * `Box`: Selects cells within the start and end column indexes within the selected rows.
|
|
26
|
-
*
|
|
27
|
-
* @default Syncfusion.EJ2.Grids.CellSelectionMode.Flow
|
|
28
|
-
* @isEnumeration true
|
|
29
|
-
* @aspType Syncfusion.EJ2.Grids.CellSelectionMode
|
|
30
|
-
*/
|
|
31
|
-
@Property('Flow')
|
|
32
|
-
public cellSelectionMode: CellSelectionMode;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Defines the selection type, specifying whether single or multiple selections are allowed.
|
|
36
|
-
* * `Single`: Allows selection of only a single row or cell.
|
|
37
|
-
* * `Multiple`: Allows selection of multiple rows or cells.
|
|
38
|
-
*
|
|
39
|
-
* @default Syncfusion.EJ2.Grids.SelectionType.Single
|
|
40
|
-
* @isEnumeration true
|
|
41
|
-
* @aspType Syncfusion.EJ2.Grids.SelectionType
|
|
42
|
-
*/
|
|
43
|
-
@Property('Single')
|
|
44
|
-
public type: SelectionType;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* When set to true, the TreeGrid selection persists even during various grid operations such as sorting or paging.
|
|
48
|
-
* Requires at least one column to be configured as the primary key for persistence.
|
|
49
|
-
*
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
@Property(false)
|
|
53
|
-
public persistSelection: boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the mode for checkbox selection:
|
|
57
|
-
* * `Default`: Allows selection of multiple rows by clicking on each row individually.
|
|
58
|
-
* * `ResetOnRowClick`: Resets prior selection when a new row is clicked. Multiple rows can be selected using CTRL or SHIFT keys.
|
|
59
|
-
*
|
|
60
|
-
* @default Syncfusion.EJ2.Grids.CheckboxSelectionType.Default
|
|
61
|
-
* @isEnumeration true
|
|
62
|
-
* @aspType Syncfusion.EJ2.Grids.CheckboxSelectionType
|
|
63
|
-
*/
|
|
64
|
-
@Property('Default')
|
|
65
|
-
public checkboxMode: CheckboxSelectionType;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* If set to true, TreeGrid selection is allowed only through checkboxes. Ensure the column type is set to `checkbox` to enable this mode.
|
|
69
|
-
*
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
@Property(false)
|
|
73
|
-
public checkboxOnly: boolean;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Enables toggling of the selected row. When true, users can toggle the selection of a row.
|
|
77
|
-
*
|
|
78
|
-
* @default true
|
|
79
|
-
*/
|
|
80
|
-
@Property(true)
|
|
81
|
-
public enableToggle: boolean;
|
|
82
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';import { SortDirection } from '@syncfusion/ej2-grids';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface for a class SortDescriptor
|
|
5
|
-
*/
|
|
6
|
-
export interface SortDescriptorModel {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the field name of the column to be sorted.
|
|
10
|
-
*
|
|
11
|
-
* @default ''
|
|
12
|
-
*/
|
|
13
|
-
field?: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the direction of sorting for the column. The available options are:
|
|
17
|
-
* * `Ascending`: Sorts the column in ascending order.
|
|
18
|
-
* * `Descending`: Sorts the column in descending order.
|
|
19
|
-
*
|
|
20
|
-
* @default ''
|
|
21
|
-
* @isEnumeration true
|
|
22
|
-
* @aspType Syncfusion.EJ2.Grids.SortDirection
|
|
23
|
-
*/
|
|
24
|
-
direction?: SortDirection;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Interface for a class SortSettings
|
|
30
|
-
*/
|
|
31
|
-
export interface SortSettingsModel {
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the columns to be sorted at initial rendering of the TreeGrid.
|
|
35
|
-
* This property can also be used to get or modify the currently sorted columns at runtime.
|
|
36
|
-
*
|
|
37
|
-
* @default []
|
|
38
|
-
*/
|
|
39
|
-
columns?: SortDescriptorModel[];
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* If set to false, the user cannot reset the TreeGrid to an unsorted state by clicking on the sorted column header.
|
|
43
|
-
* When true, clicking an already sorted column header will toggle the sort direction or remove sorting.
|
|
44
|
-
*
|
|
45
|
-
* @default true
|
|
46
|
-
*/
|
|
47
|
-
allowUnsort?: boolean;
|
|
48
|
-
|
|
49
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
-
import { SortDirection } from '@syncfusion/ej2-grids';
|
|
3
|
-
import { SortDescriptorModel } from './sort-settings-model';
|
|
4
|
-
/**
|
|
5
|
-
* Represents the field name and direction of a sort column in the TreeGrid.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SortDescriptor extends ChildProperty<SortDescriptor> {
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the field name of the column to be sorted.
|
|
10
|
-
*
|
|
11
|
-
* @default ''
|
|
12
|
-
*/
|
|
13
|
-
field: string;
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the direction of sorting for the column. The available options are:
|
|
16
|
-
* * `Ascending`: Sorts the column in ascending order.
|
|
17
|
-
* * `Descending`: Sorts the column in descending order.
|
|
18
|
-
*
|
|
19
|
-
* @default ''
|
|
20
|
-
* @isEnumeration true
|
|
21
|
-
* @aspType Syncfusion.EJ2.Grids.SortDirection
|
|
22
|
-
*/
|
|
23
|
-
direction: SortDirection;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Configures the sorting behavior of the TreeGrid.
|
|
27
|
-
*/
|
|
28
|
-
export declare class SortSettings extends ChildProperty<SortSettings> {
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the columns to be sorted at initial rendering of the TreeGrid.
|
|
31
|
-
* This property can also be used to get or modify the currently sorted columns at runtime.
|
|
32
|
-
*
|
|
33
|
-
* @default []
|
|
34
|
-
*/
|
|
35
|
-
columns: SortDescriptorModel[];
|
|
36
|
-
/**
|
|
37
|
-
* If set to false, the user cannot reset the TreeGrid to an unsorted state by clicking on the sorted column header.
|
|
38
|
-
* When true, clicking an already sorted column header will toggle the sort direction or remove sorting.
|
|
39
|
-
*
|
|
40
|
-
* @default true
|
|
41
|
-
*/
|
|
42
|
-
allowUnsort: boolean;
|
|
43
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
|
|
2
|
-
import { SortDirection } from '@syncfusion/ej2-grids';
|
|
3
|
-
import { SortDescriptorModel } from './sort-settings-model';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Represents the field name and direction of a sort column in the TreeGrid.
|
|
7
|
-
*/
|
|
8
|
-
export class SortDescriptor extends ChildProperty<SortDescriptor> {
|
|
9
|
-
/**
|
|
10
|
-
* Specifies the field name of the column to be sorted.
|
|
11
|
-
*
|
|
12
|
-
* @default ''
|
|
13
|
-
*/
|
|
14
|
-
@Property()
|
|
15
|
-
public field: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Specifies the direction of sorting for the column. The available options are:
|
|
19
|
-
* * `Ascending`: Sorts the column in ascending order.
|
|
20
|
-
* * `Descending`: Sorts the column in descending order.
|
|
21
|
-
*
|
|
22
|
-
* @default ''
|
|
23
|
-
* @isEnumeration true
|
|
24
|
-
* @aspType Syncfusion.EJ2.Grids.SortDirection
|
|
25
|
-
*/
|
|
26
|
-
@Property()
|
|
27
|
-
public direction: SortDirection;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Configures the sorting behavior of the TreeGrid.
|
|
32
|
-
*/
|
|
33
|
-
export class SortSettings extends ChildProperty<SortSettings> {
|
|
34
|
-
/**
|
|
35
|
-
* Specifies the columns to be sorted at initial rendering of the TreeGrid.
|
|
36
|
-
* This property can also be used to get or modify the currently sorted columns at runtime.
|
|
37
|
-
*
|
|
38
|
-
* @default []
|
|
39
|
-
*/
|
|
40
|
-
@Collection<SortDescriptorModel>([], SortDescriptor)
|
|
41
|
-
public columns: SortDescriptorModel[];
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* If set to false, the user cannot reset the TreeGrid to an unsorted state by clicking on the sorted column header.
|
|
45
|
-
* When true, clicking an already sorted column header will toggle the sort direction or remove sorting.
|
|
46
|
-
*
|
|
47
|
-
* @default true
|
|
48
|
-
*/
|
|
49
|
-
@Property(true)
|
|
50
|
-
public allowUnsort: boolean;
|
|
51
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';import { Internationalization } from '@syncfusion/ej2-base';import { CustomSummaryType, AggregateType, CellType } from '@syncfusion/ej2-grids';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface for a class AggregateColumn
|
|
5
|
-
*/
|
|
6
|
-
export interface AggregateColumnModel {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Defines the aggregate type(s) for a particular column.
|
|
10
|
-
* To apply multiple aggregates to a single column, specify the `type` as an array.
|
|
11
|
-
* Available aggregate types include:
|
|
12
|
-
* * `sum`: Calculates the sum of all values in a column.
|
|
13
|
-
* * `average`: Computes the average of the column values.
|
|
14
|
-
* * `max`: Finds the maximum value in a column.
|
|
15
|
-
* * `min`: Finds the minimum value in a column.
|
|
16
|
-
* * `count`: Counts the number of records.
|
|
17
|
-
* * `falsecount`: Counts the number of false values.
|
|
18
|
-
* * `truecount`: Counts the number of true values.
|
|
19
|
-
* * `custom`: Allows for a custom aggregate function.
|
|
20
|
-
*
|
|
21
|
-
* Use `custom` to specify a custom aggregation.
|
|
22
|
-
*
|
|
23
|
-
* @aspType string
|
|
24
|
-
* @default null
|
|
25
|
-
*/
|
|
26
|
-
type?: AggregateType | AggregateType[] | string;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Defines a template for the footer cell of the aggregate column.
|
|
30
|
-
* Use the aggregate `type` names within the template to access aggregate values.
|
|
31
|
-
*
|
|
32
|
-
* @default null
|
|
33
|
-
* @aspType string
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
footerTemplate?: string | Function;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the column name on which to perform the aggregation.
|
|
40
|
-
*
|
|
41
|
-
* @default null
|
|
42
|
-
*/
|
|
43
|
-
field?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the format to be applied to the calculated aggregate value before display.
|
|
47
|
-
* Supports both standard and custom formats for numbers and dates.
|
|
48
|
-
* Refer to the Syncfusion documentation for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
49
|
-
* and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
|
|
50
|
-
*
|
|
51
|
-
* @aspType string
|
|
52
|
-
* @default null
|
|
53
|
-
*/
|
|
54
|
-
format?: string | NumberFormatOptions | DateFormatOptions;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the column name to display the aggregate value. If not defined, the `field` name is used by default.
|
|
58
|
-
*
|
|
59
|
-
* @default null
|
|
60
|
-
*/
|
|
61
|
-
columnName?: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Defines a custom function to calculate the aggregate value. The `type` must be set to `custom`.
|
|
65
|
-
* Use the custom value as `${custom}` in templates.
|
|
66
|
-
* * `Total aggregation`: The custom function is called with the entire dataset and the current `AggregateColumn` object.
|
|
67
|
-
* * `Group aggregation`: It is called with the current group details and the `AggregateColumn` object.
|
|
68
|
-
*
|
|
69
|
-
* @default null
|
|
70
|
-
*/
|
|
71
|
-
customAggregate?: CustomSummaryType | string;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Interface for a class AggregateRow
|
|
77
|
-
*/
|
|
78
|
-
export interface AggregateRowModel {
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Configures the collection of aggregate columns.
|
|
82
|
-
*
|
|
83
|
-
* @default []
|
|
84
|
-
*/
|
|
85
|
-
columns?: AggregateColumnModel[];
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Determines whether to display child summaries for each parent row.
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
showChildSummary?: boolean;
|
|
92
|
-
|
|
93
|
-
}
|
|
@@ -1,126 +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 aggregate column for the TreeGrid.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AggregateColumn extends ChildProperty<AggregateColumn> {
|
|
8
|
-
private formatFn;
|
|
9
|
-
private intl;
|
|
10
|
-
private templateFn;
|
|
11
|
-
/**
|
|
12
|
-
* Defines the aggregate type(s) for a particular column.
|
|
13
|
-
* To apply multiple aggregates to a single column, specify the `type` as an array.
|
|
14
|
-
* Available aggregate types include:
|
|
15
|
-
* * `sum`: Calculates the sum of all values in a column.
|
|
16
|
-
* * `average`: Computes the average of the column values.
|
|
17
|
-
* * `max`: Finds the maximum value in a column.
|
|
18
|
-
* * `min`: Finds the minimum value in a column.
|
|
19
|
-
* * `count`: Counts the number of records.
|
|
20
|
-
* * `falsecount`: Counts the number of false values.
|
|
21
|
-
* * `truecount`: Counts the number of true values.
|
|
22
|
-
* * `custom`: Allows for a custom aggregate function.
|
|
23
|
-
*
|
|
24
|
-
* Use `custom` to specify a custom aggregation.
|
|
25
|
-
*
|
|
26
|
-
* @aspType string
|
|
27
|
-
* @default null
|
|
28
|
-
*/
|
|
29
|
-
type: AggregateType | AggregateType[] | string;
|
|
30
|
-
/**
|
|
31
|
-
* Defines a template for the footer cell of the aggregate column.
|
|
32
|
-
* Use the aggregate `type` names within the template to access aggregate values.
|
|
33
|
-
*
|
|
34
|
-
* @default null
|
|
35
|
-
* @aspType string
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
footerTemplate: string | Function;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the column name on which to perform the aggregation.
|
|
41
|
-
*
|
|
42
|
-
* @default null
|
|
43
|
-
*/
|
|
44
|
-
field: string;
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the format to be applied to the calculated aggregate value before display.
|
|
47
|
-
* Supports both standard and custom formats for numbers and dates.
|
|
48
|
-
* Refer to the Syncfusion documentation for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
49
|
-
* and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
|
|
50
|
-
*
|
|
51
|
-
* @aspType string
|
|
52
|
-
* @default null
|
|
53
|
-
*/
|
|
54
|
-
format: string | NumberFormatOptions | DateFormatOptions;
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the column name to display the aggregate value. If not defined, the `field` name is used by default.
|
|
57
|
-
*
|
|
58
|
-
* @default null
|
|
59
|
-
*/
|
|
60
|
-
columnName: string;
|
|
61
|
-
/**
|
|
62
|
-
* Defines a custom function to calculate the aggregate value. The `type` must be set to `custom`.
|
|
63
|
-
* Use the custom value as `${custom}` in templates.
|
|
64
|
-
* * `Total aggregation`: The custom function is called with the entire dataset and the current `AggregateColumn` object.
|
|
65
|
-
* * `Group aggregation`: It is called with the current group details and the `AggregateColumn` object.
|
|
66
|
-
*
|
|
67
|
-
* @default null
|
|
68
|
-
*/
|
|
69
|
-
customAggregate: CustomSummaryType | string;
|
|
70
|
-
/**
|
|
71
|
-
* Custom format function
|
|
72
|
-
*
|
|
73
|
-
* @hidden
|
|
74
|
-
* @param {string} cultureName - culture name to format
|
|
75
|
-
* @returns {void}
|
|
76
|
-
*/
|
|
77
|
-
setFormatter(cultureName: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* @param {NumberFormatOptions | DateFormatOptions} format - formatting options for number and date values
|
|
80
|
-
* @hidden
|
|
81
|
-
* @returns {Function} - return formatter function
|
|
82
|
-
*/
|
|
83
|
-
getFormatFunction(format: NumberFormatOptions | DateFormatOptions): Function;
|
|
84
|
-
/**
|
|
85
|
-
* @hidden
|
|
86
|
-
* @returns {Function} - Returns formatter function
|
|
87
|
-
*/
|
|
88
|
-
getFormatter(): Function;
|
|
89
|
-
/**
|
|
90
|
-
* @param {Object} helper - Specified the helper
|
|
91
|
-
* @hidden
|
|
92
|
-
* @returns {void}
|
|
93
|
-
*/
|
|
94
|
-
setTemplate(helper?: Object): void;
|
|
95
|
-
/**
|
|
96
|
-
* @param {CellType} type - specifies the cell type
|
|
97
|
-
* @returns {Object} returns the object
|
|
98
|
-
* @hidden
|
|
99
|
-
*/
|
|
100
|
-
getTemplate(type: CellType): {
|
|
101
|
-
fn: Function;
|
|
102
|
-
property: string;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* @param {Object} prop - updates aggregate properties without change detection
|
|
106
|
-
* @hidden
|
|
107
|
-
* @returns {void}
|
|
108
|
-
*/
|
|
109
|
-
setPropertiesSilent(prop: Object): void;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Configures the aggregate rows in the TreeGrid.
|
|
113
|
-
*/
|
|
114
|
-
export declare class AggregateRow extends ChildProperty<AggregateRow> {
|
|
115
|
-
/**
|
|
116
|
-
* Configures the collection of aggregate columns.
|
|
117
|
-
*
|
|
118
|
-
* @default []
|
|
119
|
-
*/
|
|
120
|
-
columns: AggregateColumnModel[];
|
|
121
|
-
/**
|
|
122
|
-
* Determines whether to display child summaries for each parent row.
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
|
-
showChildSummary: boolean;
|
|
126
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';
|
|
2
|
-
import { Internationalization } from '@syncfusion/ej2-base';
|
|
3
|
-
import { AggregateColumnModel } from './summary-model';
|
|
4
|
-
import { CustomSummaryType, AggregateType, CellType } from '@syncfusion/ej2-grids';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Configures the aggregate column for the TreeGrid.
|
|
8
|
-
*/
|
|
9
|
-
export class AggregateColumn extends ChildProperty<AggregateColumn> {
|
|
10
|
-
private formatFn: Function;
|
|
11
|
-
private intl: Internationalization = new Internationalization();
|
|
12
|
-
private templateFn: { [x: string]: { fn: Function, property: string } } = {};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Defines the aggregate type(s) for a particular column.
|
|
16
|
-
* To apply multiple aggregates to a single column, specify the `type` as an array.
|
|
17
|
-
* Available aggregate types include:
|
|
18
|
-
* * `sum`: Calculates the sum of all values in a column.
|
|
19
|
-
* * `average`: Computes the average of the column values.
|
|
20
|
-
* * `max`: Finds the maximum value in a column.
|
|
21
|
-
* * `min`: Finds the minimum value in a column.
|
|
22
|
-
* * `count`: Counts the number of records.
|
|
23
|
-
* * `falsecount`: Counts the number of false values.
|
|
24
|
-
* * `truecount`: Counts the number of true values.
|
|
25
|
-
* * `custom`: Allows for a custom aggregate function.
|
|
26
|
-
*
|
|
27
|
-
* Use `custom` to specify a custom aggregation.
|
|
28
|
-
*
|
|
29
|
-
* @aspType string
|
|
30
|
-
* @default null
|
|
31
|
-
*/
|
|
32
|
-
@Property()
|
|
33
|
-
public type: AggregateType | AggregateType[] | string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Defines a template for the footer cell of the aggregate column.
|
|
37
|
-
* Use the aggregate `type` names within the template to access aggregate values.
|
|
38
|
-
*
|
|
39
|
-
* @default null
|
|
40
|
-
* @aspType string
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
@Property()
|
|
44
|
-
public footerTemplate: string | Function;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Specifies the column name on which to perform the aggregation.
|
|
48
|
-
*
|
|
49
|
-
* @default null
|
|
50
|
-
*/
|
|
51
|
-
@Property()
|
|
52
|
-
public field: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Specifies the format to be applied to the calculated aggregate value before display.
|
|
56
|
-
* Supports both standard and custom formats for numbers and dates.
|
|
57
|
-
* Refer to the Syncfusion documentation for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
|
|
58
|
-
* and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
|
|
59
|
-
*
|
|
60
|
-
* @aspType string
|
|
61
|
-
* @default null
|
|
62
|
-
*/
|
|
63
|
-
@Property()
|
|
64
|
-
public format: string | NumberFormatOptions | DateFormatOptions;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Specifies the column name to display the aggregate value. If not defined, the `field` name is used by default.
|
|
68
|
-
*
|
|
69
|
-
* @default null
|
|
70
|
-
*/
|
|
71
|
-
@Property()
|
|
72
|
-
public columnName: string;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Defines a custom function to calculate the aggregate value. The `type` must be set to `custom`.
|
|
76
|
-
* Use the custom value as `${custom}` in templates.
|
|
77
|
-
* * `Total aggregation`: The custom function is called with the entire dataset and the current `AggregateColumn` object.
|
|
78
|
-
* * `Group aggregation`: It is called with the current group details and the `AggregateColumn` object.
|
|
79
|
-
*
|
|
80
|
-
* @default null
|
|
81
|
-
*/
|
|
82
|
-
@Property()
|
|
83
|
-
public customAggregate: CustomSummaryType | string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Custom format function
|
|
87
|
-
*
|
|
88
|
-
* @hidden
|
|
89
|
-
* @param {string} cultureName - culture name to format
|
|
90
|
-
* @returns {void}
|
|
91
|
-
*/
|
|
92
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
93
|
-
public setFormatter(cultureName: string): void {
|
|
94
|
-
if (this.format && ((<DateFormatOptions>this.format).skeleton || (<DateFormatOptions>this.format).format)) {
|
|
95
|
-
this.formatFn = this.getFormatFunction(this.format as DateFormatOptions);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @param {NumberFormatOptions | DateFormatOptions} format - formatting options for number and date values
|
|
101
|
-
* @hidden
|
|
102
|
-
* @returns {Function} - return formatter function
|
|
103
|
-
*/
|
|
104
|
-
public getFormatFunction(format: NumberFormatOptions | DateFormatOptions): Function {
|
|
105
|
-
if ((<DateFormatOptions>format).type) {
|
|
106
|
-
return this.intl.getDateFormat(<DateFormatOptions>format);
|
|
107
|
-
} else {
|
|
108
|
-
return this.intl.getNumberFormat(<DateFormatOptions>format);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @hidden
|
|
114
|
-
* @returns {Function} - Returns formatter function
|
|
115
|
-
*/
|
|
116
|
-
public getFormatter(): Function {
|
|
117
|
-
return this.formatFn;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @param {Object} helper - Specified the helper
|
|
122
|
-
* @hidden
|
|
123
|
-
* @returns {void}
|
|
124
|
-
*/
|
|
125
|
-
public setTemplate(helper: Object = {}): void {
|
|
126
|
-
if (this.footerTemplate !== undefined) {
|
|
127
|
-
this.templateFn[getEnumValue(CellType, CellType.Summary)] = { fn: compile(this.footerTemplate, helper),
|
|
128
|
-
property: 'footerTemplate' };
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* @param {CellType} type - specifies the cell type
|
|
134
|
-
* @returns {Object} returns the object
|
|
135
|
-
* @hidden
|
|
136
|
-
*/
|
|
137
|
-
public getTemplate(type: CellType): { fn: Function, property: string } {
|
|
138
|
-
return this.templateFn[getEnumValue(CellType, type)];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @param {Object} prop - updates aggregate properties without change detection
|
|
143
|
-
* @hidden
|
|
144
|
-
* @returns {void}
|
|
145
|
-
*/
|
|
146
|
-
public setPropertiesSilent(prop: Object): void {
|
|
147
|
-
this.setProperties(prop, true);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Configures the aggregate rows in the TreeGrid.
|
|
154
|
-
*/
|
|
155
|
-
export class AggregateRow extends ChildProperty<AggregateRow> {
|
|
156
|
-
/**
|
|
157
|
-
* Configures the collection of aggregate columns.
|
|
158
|
-
*
|
|
159
|
-
* @default []
|
|
160
|
-
*/
|
|
161
|
-
@Collection<AggregateColumnModel>([], AggregateColumn)
|
|
162
|
-
public columns: AggregateColumnModel[];
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Determines whether to display child summaries for each parent row.
|
|
166
|
-
*
|
|
167
|
-
*/
|
|
168
|
-
@Property(true)
|
|
169
|
-
public showChildSummary: boolean;
|
|
170
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';import { WrapMode } from '../enum';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface for a class TextWrapSettings
|
|
5
|
-
*/
|
|
6
|
-
export interface TextWrapSettingsModel {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Defines the `wrapMode` of the TreeGrid, controlling how text wrapping is applied to header and content.
|
|
10
|
-
* Available wrap modes are:
|
|
11
|
-
* * `Both`: Wraps both the header and the content of all columns.
|
|
12
|
-
* * `Content`: Wraps only the content of the columns, allowing headers to remain unchanged.
|
|
13
|
-
* * `Header`: Wraps only the header text of the columns, while content remains unwrapped.
|
|
14
|
-
*
|
|
15
|
-
* Text wrapping can improve readability when dealing with long text values or narrow column widths.
|
|
16
|
-
*
|
|
17
|
-
* @default Both
|
|
18
|
-
*/
|
|
19
|
-
wrapMode?: WrapMode;
|
|
20
|
-
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
-
import { WrapMode } from '../enum';
|
|
3
|
-
/**
|
|
4
|
-
* Configures the text wrapping behavior of the TreeGrid.
|
|
5
|
-
*/
|
|
6
|
-
export declare class TextWrapSettings extends ChildProperty<TextWrapSettings> {
|
|
7
|
-
/**
|
|
8
|
-
* Defines the `wrapMode` of the TreeGrid, controlling how text wrapping is applied to header and content.
|
|
9
|
-
* Available wrap modes are:
|
|
10
|
-
* * `Both`: Wraps both the header and the content of all columns.
|
|
11
|
-
* * `Content`: Wraps only the content of the columns, allowing headers to remain unchanged.
|
|
12
|
-
* * `Header`: Wraps only the header text of the columns, while content remains unwrapped.
|
|
13
|
-
*
|
|
14
|
-
* Text wrapping can improve readability when dealing with long text values or narrow column widths.
|
|
15
|
-
*
|
|
16
|
-
* @default Both
|
|
17
|
-
*/
|
|
18
|
-
wrapMode: WrapMode;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
-
import { WrapMode } from '../enum';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Configures the text wrapping behavior of the TreeGrid.
|
|
6
|
-
*/
|
|
7
|
-
export class TextWrapSettings extends ChildProperty<TextWrapSettings> {
|
|
8
|
-
/**
|
|
9
|
-
* Defines the `wrapMode` of the TreeGrid, controlling how text wrapping is applied to header and content.
|
|
10
|
-
* Available wrap modes are:
|
|
11
|
-
* * `Both`: Wraps both the header and the content of all columns.
|
|
12
|
-
* * `Content`: Wraps only the content of the columns, allowing headers to remain unchanged.
|
|
13
|
-
* * `Header`: Wraps only the header text of the columns, while content remains unwrapped.
|
|
14
|
-
*
|
|
15
|
-
* Text wrapping can improve readability when dealing with long text values or narrow column widths.
|
|
16
|
-
*
|
|
17
|
-
* @default Both
|
|
18
|
-
*/
|
|
19
|
-
@Property('Both')
|
|
20
|
-
public wrapMode: WrapMode;
|
|
21
|
-
}
|