@syncfusion/ej2-treegrid 31.1.17 → 31.1.21
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,100 +0,0 @@
|
|
|
1
|
-
import { ChildProperty, Property } from '@syncfusion/ej2-base';import { EditMode, RowPosition } from '../enum';import { IDialogUI } from '@syncfusion/ej2-grids';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface for a class EditSettings
|
|
5
|
-
*/
|
|
6
|
-
export interface EditSettingsModel {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Enables the ability to add new records to the TreeGrid when set to `true`.
|
|
10
|
-
* This allows users to insert new rows into the data set.
|
|
11
|
-
*
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
allowAdding?: boolean;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Permits updating values in existing records if set to `true`.
|
|
18
|
-
* This setting allows inline modification of data cells within the TreeGrid.
|
|
19
|
-
*
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
allowEditing?: boolean;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Allows removal of records from the TreeGrid when set to `true`.
|
|
26
|
-
* Users can delete rows from the data set, reflecting changes immediately.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
allowDeleting?: boolean;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the editing mode for the TreeGrid. Available modes include:
|
|
34
|
-
* * `Cell`: Enables individual cell editing.
|
|
35
|
-
* * `Row`: Allows entire row editing at once.
|
|
36
|
-
* * `Dialog`: Opens a dialog for row editing.
|
|
37
|
-
* * `Batch`: Supports batch editing of cells across multiple rows. Changes are not immediately saved but can be committed all at once, enhancing efficiency in bulk data edits.
|
|
38
|
-
*
|
|
39
|
-
* @default Cell
|
|
40
|
-
* @isEnumeration true
|
|
41
|
-
*/
|
|
42
|
-
mode?: EditMode;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Determines the position where new rows are added within the TreeGrid. Options are:
|
|
46
|
-
* * `Top`: Adds new rows at the top of the grid.
|
|
47
|
-
* * `Bottom`: Adds new rows at the bottom of the grid.
|
|
48
|
-
* * `Above`: Inserts a new row above the selected row.
|
|
49
|
-
* * `Below`: Adds a new row below the selected row.
|
|
50
|
-
* * `Child`: Inserts a new row as a child of the currently selected row.
|
|
51
|
-
*
|
|
52
|
-
* @default Top
|
|
53
|
-
*/
|
|
54
|
-
newRowPosition?: RowPosition;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* If set to `false`, prevents editing on a row double-click, allowing edits through other triggers only.
|
|
58
|
-
*
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
allowEditOnDblClick?: boolean;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Controls the display of a confirmation dialog when batch changes are either applied or discarded.
|
|
65
|
-
* Set to `false` to suppress the display of this confirmation prompt.
|
|
66
|
-
*
|
|
67
|
-
* @default true
|
|
68
|
-
*/
|
|
69
|
-
showConfirmDialog?: boolean;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* If set to `true`, a confirmation dialog appears before record deletion, allowing users to confirm or cancel the operation.
|
|
73
|
-
*
|
|
74
|
-
* @default false
|
|
75
|
-
*/
|
|
76
|
-
showDeleteConfirmDialog?: boolean;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Provides a template for custom editing elements within the dialog, supporting both HTML strings and functions.
|
|
80
|
-
*
|
|
81
|
-
* @default ''
|
|
82
|
-
* @aspType string
|
|
83
|
-
*/
|
|
84
|
-
template?: string | Function;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Specifies the parameters for customizing the edit dialog, allowing the configuration of elements and behavior.
|
|
88
|
-
*
|
|
89
|
-
* @default {}
|
|
90
|
-
*/
|
|
91
|
-
dialog?: IDialogUI;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Enables continued editing in subsequent rows when navigating with keyboard shortcuts if set to `true`.
|
|
95
|
-
*
|
|
96
|
-
* @default false
|
|
97
|
-
*/
|
|
98
|
-
allowNextRowEdit?: boolean;
|
|
99
|
-
|
|
100
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
-
import { EditMode, RowPosition } from '../enum';
|
|
3
|
-
import { IDialogUI } from '@syncfusion/ej2-grids';
|
|
4
|
-
/**
|
|
5
|
-
* Configures the edit behavior of the TreeGrid, defining how records can be added, modified, or deleted.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EditSettings extends ChildProperty<EditSettings> {
|
|
8
|
-
/**
|
|
9
|
-
* Enables the ability to add new records to the TreeGrid when set to `true`.
|
|
10
|
-
* This allows users to insert new rows into the data set.
|
|
11
|
-
*
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
allowAdding: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Permits updating values in existing records if set to `true`.
|
|
17
|
-
* This setting allows inline modification of data cells within the TreeGrid.
|
|
18
|
-
*
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
allowEditing: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Allows removal of records from the TreeGrid when set to `true`.
|
|
24
|
-
* Users can delete rows from the data set, reflecting changes immediately.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
allowDeleting: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the editing mode for the TreeGrid. Available modes include:
|
|
31
|
-
* * `Cell`: Enables individual cell editing.
|
|
32
|
-
* * `Row`: Allows entire row editing at once.
|
|
33
|
-
* * `Dialog`: Opens a dialog for row editing.
|
|
34
|
-
* * `Batch`: Supports batch editing of cells across multiple rows. Changes are not immediately saved but can be committed all at once, enhancing efficiency in bulk data edits.
|
|
35
|
-
*
|
|
36
|
-
* @default Cell
|
|
37
|
-
* @isEnumeration true
|
|
38
|
-
*/
|
|
39
|
-
mode: EditMode;
|
|
40
|
-
/**
|
|
41
|
-
* Determines the position where new rows are added within the TreeGrid. Options are:
|
|
42
|
-
* * `Top`: Adds new rows at the top of the grid.
|
|
43
|
-
* * `Bottom`: Adds new rows at the bottom of the grid.
|
|
44
|
-
* * `Above`: Inserts a new row above the selected row.
|
|
45
|
-
* * `Below`: Adds a new row below the selected row.
|
|
46
|
-
* * `Child`: Inserts a new row as a child of the currently selected row.
|
|
47
|
-
*
|
|
48
|
-
* @default Top
|
|
49
|
-
*/
|
|
50
|
-
newRowPosition: RowPosition;
|
|
51
|
-
/**
|
|
52
|
-
* If set to `false`, prevents editing on a row double-click, allowing edits through other triggers only.
|
|
53
|
-
*
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
allowEditOnDblClick: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Controls the display of a confirmation dialog when batch changes are either applied or discarded.
|
|
59
|
-
* Set to `false` to suppress the display of this confirmation prompt.
|
|
60
|
-
*
|
|
61
|
-
* @default true
|
|
62
|
-
*/
|
|
63
|
-
showConfirmDialog: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* If set to `true`, a confirmation dialog appears before record deletion, allowing users to confirm or cancel the operation.
|
|
66
|
-
*
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
showDeleteConfirmDialog: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Provides a template for custom editing elements within the dialog, supporting both HTML strings and functions.
|
|
72
|
-
*
|
|
73
|
-
* @default ''
|
|
74
|
-
* @aspType string
|
|
75
|
-
*/
|
|
76
|
-
template: string | Function;
|
|
77
|
-
/**
|
|
78
|
-
* Specifies the parameters for customizing the edit dialog, allowing the configuration of elements and behavior.
|
|
79
|
-
*
|
|
80
|
-
* @default {}
|
|
81
|
-
*/
|
|
82
|
-
dialog: IDialogUI;
|
|
83
|
-
/**
|
|
84
|
-
* Enables continued editing in subsequent rows when navigating with keyboard shortcuts if set to `true`.
|
|
85
|
-
*
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
allowNextRowEdit: boolean;
|
|
89
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { ChildProperty, Property } from '@syncfusion/ej2-base';
|
|
2
|
-
import { EditMode, RowPosition } from '../enum';
|
|
3
|
-
import { IDialogUI } from '@syncfusion/ej2-grids';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Configures the edit behavior of the TreeGrid, defining how records can be added, modified, or deleted.
|
|
7
|
-
*/
|
|
8
|
-
export class EditSettings extends ChildProperty<EditSettings> {
|
|
9
|
-
/**
|
|
10
|
-
* Enables the ability to add new records to the TreeGrid when set to `true`.
|
|
11
|
-
* This allows users to insert new rows into the data set.
|
|
12
|
-
*
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
@Property(false)
|
|
16
|
-
public allowAdding: boolean;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Permits updating values in existing records if set to `true`.
|
|
20
|
-
* This setting allows inline modification of data cells within the TreeGrid.
|
|
21
|
-
*
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
@Property(false)
|
|
25
|
-
public allowEditing: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Allows removal of records from the TreeGrid when set to `true`.
|
|
29
|
-
* Users can delete rows from the data set, reflecting changes immediately.
|
|
30
|
-
*
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
@Property(false)
|
|
34
|
-
public allowDeleting: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Specifies the editing mode for the TreeGrid. Available modes include:
|
|
38
|
-
* * `Cell`: Enables individual cell editing.
|
|
39
|
-
* * `Row`: Allows entire row editing at once.
|
|
40
|
-
* * `Dialog`: Opens a dialog for row editing.
|
|
41
|
-
* * `Batch`: Supports batch editing of cells across multiple rows. Changes are not immediately saved but can be committed all at once, enhancing efficiency in bulk data edits.
|
|
42
|
-
*
|
|
43
|
-
* @default Cell
|
|
44
|
-
* @isEnumeration true
|
|
45
|
-
*/
|
|
46
|
-
@Property('Cell')
|
|
47
|
-
public mode: EditMode;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Determines the position where new rows are added within the TreeGrid. Options are:
|
|
51
|
-
* * `Top`: Adds new rows at the top of the grid.
|
|
52
|
-
* * `Bottom`: Adds new rows at the bottom of the grid.
|
|
53
|
-
* * `Above`: Inserts a new row above the selected row.
|
|
54
|
-
* * `Below`: Adds a new row below the selected row.
|
|
55
|
-
* * `Child`: Inserts a new row as a child of the currently selected row.
|
|
56
|
-
*
|
|
57
|
-
* @default Top
|
|
58
|
-
*/
|
|
59
|
-
@Property('Top')
|
|
60
|
-
public newRowPosition: RowPosition;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* If set to `false`, prevents editing on a row double-click, allowing edits through other triggers only.
|
|
64
|
-
*
|
|
65
|
-
* @default true
|
|
66
|
-
*/
|
|
67
|
-
@Property(true)
|
|
68
|
-
public allowEditOnDblClick: boolean;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Controls the display of a confirmation dialog when batch changes are either applied or discarded.
|
|
72
|
-
* Set to `false` to suppress the display of this confirmation prompt.
|
|
73
|
-
*
|
|
74
|
-
* @default true
|
|
75
|
-
*/
|
|
76
|
-
@Property(true)
|
|
77
|
-
public showConfirmDialog: boolean;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* If set to `true`, a confirmation dialog appears before record deletion, allowing users to confirm or cancel the operation.
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
*/
|
|
84
|
-
@Property(false)
|
|
85
|
-
public showDeleteConfirmDialog: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Provides a template for custom editing elements within the dialog, supporting both HTML strings and functions.
|
|
89
|
-
*
|
|
90
|
-
* @default ''
|
|
91
|
-
* @aspType string
|
|
92
|
-
*/
|
|
93
|
-
@Property('')
|
|
94
|
-
public template: string | Function;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Specifies the parameters for customizing the edit dialog, allowing the configuration of elements and behavior.
|
|
98
|
-
*
|
|
99
|
-
* @default {}
|
|
100
|
-
*/
|
|
101
|
-
@Property({})
|
|
102
|
-
public dialog: IDialogUI;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Enables continued editing in subsequent rows when navigating with keyboard shortcuts if set to `true`.
|
|
106
|
-
*
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
@Property(false)
|
|
110
|
-
public allowNextRowEdit: boolean;
|
|
111
|
-
}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { Collection, Property, ChildProperty } from '@syncfusion/ej2-base';import { ICustomOptr, FilterBarMode, FilterType } from '@syncfusion/ej2-grids';import { FilterHierarchyMode } from '../enum';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface for a class Predicate
|
|
5
|
-
*/
|
|
6
|
-
export interface PredicateModel {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Specifies the field name of the column to apply the filter on.
|
|
10
|
-
*
|
|
11
|
-
* @default ''
|
|
12
|
-
*/
|
|
13
|
-
field?: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the operator used for filtering TreeGrid records. The available operators support a variety of data types
|
|
17
|
-
* and offer different filtering mechanisms. Details for each operator are provided below:
|
|
18
|
-
* <table>
|
|
19
|
-
* <tr>
|
|
20
|
-
* <td colspan=1 rowspan=1>
|
|
21
|
-
* Operator<br/></td><td colspan=1 rowspan=1>
|
|
22
|
-
* Description<br/></td><td colspan=1 rowspan=1>
|
|
23
|
-
* Supported Data Types<br/></td></tr>
|
|
24
|
-
* <tr>
|
|
25
|
-
* <td colspan=1 rowspan=1>
|
|
26
|
-
* startswith<br/></td><td colspan=1 rowspan=1>
|
|
27
|
-
* Checks if the value starts with the specified input.<br/></td><td colspan=1 rowspan=1>
|
|
28
|
-
* String<br/></td></tr>
|
|
29
|
-
* <tr>
|
|
30
|
-
* <td colspan=1 rowspan=1>
|
|
31
|
-
* endswith<br/></td><td colspan=1 rowspan=1>
|
|
32
|
-
* Checks if the value ends with the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
33
|
-
* <br/>String<br/></td></tr>
|
|
34
|
-
* <tr>
|
|
35
|
-
* <td colspan=1 rowspan=1>
|
|
36
|
-
* contains<br/></td><td colspan=1 rowspan=1>
|
|
37
|
-
* Checks if the value contains the specified input anywhere within it.<br/><br/></td><td colspan=1 rowspan=1>
|
|
38
|
-
* <br/>String<br/></td></tr>
|
|
39
|
-
* <tr>
|
|
40
|
-
* <td colspan=1 rowspan=1>
|
|
41
|
-
* equal<br/></td><td colspan=1 rowspan=1>
|
|
42
|
-
* Checks if the value is exactly equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
43
|
-
* <br/>String | Number | Boolean | Date<br/></td></tr>
|
|
44
|
-
* <tr>
|
|
45
|
-
* <td colspan=1 rowspan=1>
|
|
46
|
-
* notequal<br/></td><td colspan=1 rowspan=1>
|
|
47
|
-
* Identifies values that are not equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
48
|
-
* <br/>String | Number | Boolean | Date<br/></td></tr>
|
|
49
|
-
* <tr>
|
|
50
|
-
* <td colspan=1 rowspan=1>
|
|
51
|
-
* greaterthan<br/></td><td colspan=1 rowspan=1>
|
|
52
|
-
* Verifies if the value is greater than the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
53
|
-
* Number | Date<br/></td></tr>
|
|
54
|
-
* <tr>
|
|
55
|
-
* <td colspan=1 rowspan=1>
|
|
56
|
-
* greaterthanorequal<br/></td><td colspan=1 rowspan=1>
|
|
57
|
-
* Verifies if the value is greater than or equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
58
|
-
* <br/>Number | Date<br/></td></tr>
|
|
59
|
-
* <tr>
|
|
60
|
-
* <td colspan=1 rowspan=1>
|
|
61
|
-
* lessthan<br/></td><td colspan=1 rowspan=1>
|
|
62
|
-
* Checks if the value is less than the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
63
|
-
* <br/>Number | Date<br/></td></tr>
|
|
64
|
-
* <tr>
|
|
65
|
-
* <td colspan=1 rowspan=1>
|
|
66
|
-
* lessthanorequal<br/></td><td colspan=1 rowspan=1>
|
|
67
|
-
* Checks if the value is less than or equal to the specified input.<br/><br/></td><td colspan=1 rowspan=1>
|
|
68
|
-
* <br/>Number | Date<br/></td></tr>
|
|
69
|
-
* </table>
|
|
70
|
-
*
|
|
71
|
-
* @default null
|
|
72
|
-
*/
|
|
73
|
-
operator?: string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Specifies the value to filter the column's data by.
|
|
77
|
-
*
|
|
78
|
-
* @default ''
|
|
79
|
-
*/
|
|
80
|
-
value?: string | number | Date | boolean;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Applies case-sensitive filtering if set to `true`. When false, filtering is case-insensitive.
|
|
84
|
-
*
|
|
85
|
-
* @default null
|
|
86
|
-
*/
|
|
87
|
-
matchCase?: boolean;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Ignores diacritic characters during filtering if set to `true`.
|
|
91
|
-
*
|
|
92
|
-
* @default false
|
|
93
|
-
*/
|
|
94
|
-
ignoreAccent?: boolean;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Defines the logical relationship between multiple filter conditions ('AND' / 'OR').
|
|
98
|
-
*
|
|
99
|
-
* @default null
|
|
100
|
-
*/
|
|
101
|
-
predicate?: string;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
* Holds the actual value used for filtering the column.
|
|
106
|
-
*/
|
|
107
|
-
actualFilterValue?: Object;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
* Represents the actual filter operator applied to the column.
|
|
112
|
-
*/
|
|
113
|
-
actualOperator?: Object;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @hidden
|
|
117
|
-
* Defines the data type of the filter column.
|
|
118
|
-
*/
|
|
119
|
-
type?: string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
* Represents the internal predicate condition for the filter column.
|
|
124
|
-
*/
|
|
125
|
-
ejpredicate?: Object;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @hidden
|
|
129
|
-
* Unique identifier for the filter column.
|
|
130
|
-
*/
|
|
131
|
-
uid?: string;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @hidden
|
|
135
|
-
* Indicates whether the column is a foreign key in the filter set.
|
|
136
|
-
*/
|
|
137
|
-
isForeignKey?: boolean;
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Interface for a class FilterSettings
|
|
143
|
-
*/
|
|
144
|
-
export interface FilterSettingsModel {
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Specifies the initial filter configuration for TreeGrid columns or retrieves the current filter state.
|
|
148
|
-
*
|
|
149
|
-
* @default []
|
|
150
|
-
*/
|
|
151
|
-
columns?: PredicateModel[];
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Sets the filtering interface type. Options include:
|
|
155
|
-
* * `Menu`: Provides a menu for filtering options.
|
|
156
|
-
* * `FilterBar`: Allows direct input filtering in a bar at the top of each column.
|
|
157
|
-
* * `Excel` : Specifies the filter type as excel.
|
|
158
|
-
* * `CheckBox` : Specifies the filter type as check box.
|
|
159
|
-
*
|
|
160
|
-
* @default FilterBar
|
|
161
|
-
*/
|
|
162
|
-
type?: FilterType;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Determines the mode of the filter bar operation. Options include:
|
|
166
|
-
* * `OnEnter`: Filtering is triggered upon pressing the Enter key.
|
|
167
|
-
* * `Immediate`: Filtering occurs after a short delay automatically.
|
|
168
|
-
*
|
|
169
|
-
* @default Syncfusion.EJ2.Grids.FilterBarMode.OnEnter
|
|
170
|
-
* @isEnumeration true
|
|
171
|
-
* @aspType Syncfusion.EJ2.Grids.FilterBarMode
|
|
172
|
-
*/
|
|
173
|
-
mode?: FilterBarMode;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Shows or hides the status message related to filtering actions on the pager.
|
|
177
|
-
*
|
|
178
|
-
* @default true
|
|
179
|
-
*/
|
|
180
|
-
showFilterBarStatus?: boolean;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Determines the delay in milliseconds before filtering is triggered in `Immediate` mode.
|
|
184
|
-
*
|
|
185
|
-
* @default 1500
|
|
186
|
-
*/
|
|
187
|
-
immediateModeDelay?: number;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Allows customization of the default operators offered in the filter menu by defining custom operators for string, number, date, and boolean types.
|
|
191
|
-
*
|
|
192
|
-
* @default null
|
|
193
|
-
*/
|
|
194
|
-
operators?: ICustomOptr;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* If set to `true`, filtering ignores accent characters, making diacritic characters identical to their unaccented versions.
|
|
198
|
-
*
|
|
199
|
-
* @default false
|
|
200
|
-
*/
|
|
201
|
-
ignoreAccent?: boolean;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Specifies how the hierarchy should be maintained during filtering:
|
|
205
|
-
* * `Parent`: Displays the filtered records along with their parent records.
|
|
206
|
-
* * `Child`: Displays the filtered records along with their child records.
|
|
207
|
-
* * `Both`: Displays the filtered records with both parent and child records.
|
|
208
|
-
* * `None`: Only displays the filtered records.
|
|
209
|
-
*
|
|
210
|
-
* @default Parent
|
|
211
|
-
* @isEnumeration true
|
|
212
|
-
* @aspType FilterHierarchyMode
|
|
213
|
-
*/
|
|
214
|
-
hierarchyMode?: FilterHierarchyMode;
|
|
215
|
-
|
|
216
|
-
}
|