@progress/kendo-vue-grid 3.5.0 → 3.5.1-dev.202208100944
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/cdn/js/kendo-vue-grid.js +1 -1
- package/dist/es/Grid.js +20 -24
- package/dist/es/ScrollMode.js +1 -0
- package/dist/es/columnMenu/ColumnMenu.js +2 -2
- package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.js +9 -13
- package/dist/es/columnMenu/GridColumnMenuFilter.js +423 -107
- package/dist/es/columnMenu/GridColumnMenuFilterCell.js +74 -97
- package/dist/es/columnMenu/GridColumnMenuFilterOperators.d.ts +36 -0
- package/dist/es/columnMenu/GridColumnMenuFilterOperators.js +68 -0
- package/dist/es/columnMenu/GridColumnMenuItem.js +2 -2
- package/dist/es/filterCommon.d.ts +1 -1
- package/dist/es/footer/Footer.js +1 -1
- package/dist/es/footer/FooterRow.js +1 -1
- package/dist/es/header/FilterRow.js +1 -1
- package/dist/es/header/Header.js +1 -1
- package/dist/es/header/HeaderRow.js +1 -1
- package/dist/es/interfaces/ExtendedColumnProps.js +1 -0
- package/dist/es/interfaces/GridCellProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuColumnProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuExtendedFilterProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterUIProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuSortBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnProps.js +1 -0
- package/dist/es/interfaces/GridDetailRowProps.js +1 -0
- package/dist/es/interfaces/GridFilterCellProps.js +1 -0
- package/dist/es/interfaces/GridFilterOperator.js +1 -0
- package/dist/es/interfaces/GridFilterOperators.js +1 -0
- package/dist/es/interfaces/GridFooterCellProps.js +1 -0
- package/dist/es/interfaces/GridGroupableSettings.js +1 -0
- package/dist/es/interfaces/GridHeaderCellProps.js +1 -0
- package/dist/es/interfaces/GridHeaderSelectionCellProps.js +1 -0
- package/dist/es/interfaces/GridNoRecordsProps.js +1 -0
- package/dist/es/interfaces/GridProps.js +1 -0
- package/dist/es/interfaces/GridRowProps.js +1 -0
- package/dist/es/interfaces/GridRowType.js +1 -0
- package/dist/es/interfaces/GridSortSettings.js +9 -7
- package/dist/es/interfaces/GridToolbarProps.js +1 -0
- package/dist/es/interfaces/events.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rows/GridDetailRow.d.ts +2 -1
- package/dist/es/utils/index.js +4 -4
- package/dist/esm/Grid.d.ts +180 -0
- package/dist/esm/Grid.js +2086 -0
- package/dist/esm/GridNav.d.ts +46 -0
- package/dist/esm/GridNav.js +112 -0
- package/dist/esm/GridNoRecords.d.ts +51 -0
- package/dist/esm/GridNoRecords.js +83 -0
- package/dist/esm/GridToolbar.d.ts +58 -0
- package/dist/esm/GridToolbar.js +77 -0
- package/dist/esm/ScrollMode.d.ts +1 -0
- package/dist/esm/ScrollMode.js +1 -0
- package/dist/esm/VirtualScroll.d.ts +41 -0
- package/dist/esm/VirtualScroll.js +217 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/cells/GridCell.d.ts +30 -0
- package/dist/esm/cells/GridCell.js +161 -0
- package/dist/esm/cells/GridDetailCell.d.ts +29 -0
- package/dist/esm/cells/GridDetailCell.js +82 -0
- package/dist/esm/cells/GridDetailHierarchyCell.d.ts +24 -0
- package/dist/esm/cells/GridDetailHierarchyCell.js +53 -0
- package/dist/esm/cells/GridEditCell.d.ts +40 -0
- package/dist/esm/cells/GridEditCell.js +312 -0
- package/dist/esm/cells/GridFilterCell.d.ts +26 -0
- package/dist/esm/cells/GridFilterCell.js +259 -0
- package/dist/esm/cells/GridGroupCell.d.ts +23 -0
- package/dist/esm/cells/GridGroupCell.js +179 -0
- package/dist/esm/cells/GridHierarchyCell.d.ts +23 -0
- package/dist/esm/cells/GridHierarchyCell.js +162 -0
- package/dist/esm/cells/GridSelectionCell.d.ts +34 -0
- package/dist/esm/cells/GridSelectionCell.js +138 -0
- package/dist/esm/columnMenu/ColumnMenu.d.ts +56 -0
- package/dist/esm/columnMenu/ColumnMenu.js +252 -0
- package/dist/esm/columnMenu/ColumnMenuContent.d.ts +33 -0
- package/dist/esm/columnMenu/ColumnMenuContent.js +123 -0
- package/dist/esm/columnMenu/GridColumnMenuCheckboxFilter.d.ts +86 -0
- package/dist/esm/columnMenu/GridColumnMenuCheckboxFilter.js +709 -0
- package/dist/esm/columnMenu/GridColumnMenuFilter.d.ts +339 -0
- package/dist/esm/columnMenu/GridColumnMenuFilter.js +1079 -0
- package/dist/esm/columnMenu/GridColumnMenuFilterCell.d.ts +45 -0
- package/dist/esm/columnMenu/GridColumnMenuFilterCell.js +152 -0
- package/dist/esm/columnMenu/GridColumnMenuFilterOperators.d.ts +36 -0
- package/dist/esm/columnMenu/GridColumnMenuFilterOperators.js +68 -0
- package/dist/esm/columnMenu/GridColumnMenuFilterUI.d.ts +24 -0
- package/dist/esm/columnMenu/GridColumnMenuFilterUI.js +155 -0
- package/dist/esm/columnMenu/GridColumnMenuItem.d.ts +42 -0
- package/dist/esm/columnMenu/GridColumnMenuItem.js +63 -0
- package/dist/esm/columnMenu/GridColumnMenuItemContent.d.ts +34 -0
- package/dist/esm/columnMenu/GridColumnMenuItemContent.js +51 -0
- package/dist/esm/columnMenu/GridColumnMenuItemGroup.d.ts +19 -0
- package/dist/esm/columnMenu/GridColumnMenuItemGroup.js +33 -0
- package/dist/esm/columnMenu/GridColumnMenuSort.d.ts +283 -0
- package/dist/esm/columnMenu/GridColumnMenuSort.js +375 -0
- package/dist/esm/drag/ColumnDraggable.d.ts +43 -0
- package/dist/esm/drag/ColumnDraggable.js +73 -0
- package/dist/esm/drag/ColumnResize.d.ts +31 -0
- package/dist/esm/drag/ColumnResize.js +126 -0
- package/dist/esm/drag/ColumnResizer.d.ts +40 -0
- package/dist/esm/drag/ColumnResizer.js +89 -0
- package/dist/esm/drag/CommonDragLogic.d.ts +35 -0
- package/dist/esm/drag/CommonDragLogic.js +177 -0
- package/dist/esm/drag/DragClue.d.ts +25 -0
- package/dist/esm/drag/DragClue.js +52 -0
- package/dist/esm/drag/DropClue.d.ts +24 -0
- package/dist/esm/drag/DropClue.js +46 -0
- package/dist/esm/drag/GroupingIndicator.d.ts +51 -0
- package/dist/esm/drag/GroupingIndicator.js +153 -0
- package/dist/esm/filterCommon.d.ts +75 -0
- package/dist/esm/filterCommon.js +156 -0
- package/dist/esm/footer/Footer.d.ts +52 -0
- package/dist/esm/footer/Footer.js +103 -0
- package/dist/esm/footer/FooterRow.d.ts +30 -0
- package/dist/esm/footer/FooterRow.js +73 -0
- package/dist/esm/header/FilterRow.d.ts +36 -0
- package/dist/esm/header/FilterRow.js +203 -0
- package/dist/esm/header/GridHeaderCell.d.ts +21 -0
- package/dist/esm/header/GridHeaderCell.js +60 -0
- package/dist/esm/header/GridHeaderSelectionCell.d.ts +32 -0
- package/dist/esm/header/GridHeaderSelectionCell.js +81 -0
- package/dist/esm/header/GroupPanel.d.ts +38 -0
- package/dist/esm/header/GroupPanel.js +108 -0
- package/dist/esm/header/Header.d.ts +64 -0
- package/dist/esm/header/Header.js +123 -0
- package/dist/esm/header/HeaderRow.d.ts +86 -0
- package/dist/esm/header/HeaderRow.js +517 -0
- package/dist/esm/interfaces/ExtendedColumnProps.d.ts +20 -0
- package/dist/esm/interfaces/ExtendedColumnProps.js +1 -0
- package/dist/esm/interfaces/GridCellProps.d.ts +156 -0
- package/dist/esm/interfaces/GridCellProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuColumnProps.d.ts +13 -0
- package/dist/esm/interfaces/GridColumnMenuColumnProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuExtendedFilterProps.d.ts +42 -0
- package/dist/esm/interfaces/GridColumnMenuExtendedFilterProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuFilterBaseProps.d.ts +49 -0
- package/dist/esm/interfaces/GridColumnMenuFilterBaseProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuFilterProps.d.ts +27 -0
- package/dist/esm/interfaces/GridColumnMenuFilterProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuFilterUIProps.d.ts +55 -0
- package/dist/esm/interfaces/GridColumnMenuFilterUIProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuProps.d.ts +19 -0
- package/dist/esm/interfaces/GridColumnMenuProps.js +1 -0
- package/dist/esm/interfaces/GridColumnMenuSortBaseProps.d.ts +28 -0
- package/dist/esm/interfaces/GridColumnMenuSortBaseProps.js +1 -0
- package/dist/esm/interfaces/GridColumnProps.d.ts +147 -0
- package/dist/esm/interfaces/GridColumnProps.js +1 -0
- package/dist/esm/interfaces/GridDetailRowProps.d.ts +9 -0
- package/dist/esm/interfaces/GridDetailRowProps.js +1 -0
- package/dist/esm/interfaces/GridFilterCellProps.d.ts +64 -0
- package/dist/esm/interfaces/GridFilterCellProps.js +1 -0
- package/dist/esm/interfaces/GridFilterOperator.d.ts +7 -0
- package/dist/esm/interfaces/GridFilterOperator.js +1 -0
- package/dist/esm/interfaces/GridFilterOperators.d.ts +49 -0
- package/dist/esm/interfaces/GridFilterOperators.js +1 -0
- package/dist/esm/interfaces/GridFooterCellProps.d.ts +7 -0
- package/dist/esm/interfaces/GridFooterCellProps.js +1 -0
- package/dist/esm/interfaces/GridGroupableSettings.d.ts +15 -0
- package/dist/esm/interfaces/GridGroupableSettings.js +1 -0
- package/dist/esm/interfaces/GridHeaderCellProps.d.ts +37 -0
- package/dist/esm/interfaces/GridHeaderCellProps.js +1 -0
- package/dist/esm/interfaces/GridHeaderSelectionCellProps.d.ts +17 -0
- package/dist/esm/interfaces/GridHeaderSelectionCellProps.js +1 -0
- package/dist/esm/interfaces/GridNoRecordsProps.d.ts +9 -0
- package/dist/esm/interfaces/GridNoRecordsProps.js +1 -0
- package/dist/esm/interfaces/GridProps.d.ts +311 -0
- package/dist/esm/interfaces/GridProps.js +1 -0
- package/dist/esm/interfaces/GridRowProps.d.ts +55 -0
- package/dist/esm/interfaces/GridRowProps.js +1 -0
- package/dist/esm/interfaces/GridRowType.d.ts +9 -0
- package/dist/esm/interfaces/GridRowType.js +1 -0
- package/dist/esm/interfaces/GridSortSettings.d.ts +26 -0
- package/dist/esm/interfaces/GridSortSettings.js +20 -0
- package/dist/esm/interfaces/GridToolbarProps.d.ts +9 -0
- package/dist/esm/interfaces/GridToolbarProps.js +1 -0
- package/dist/esm/interfaces/events.d.ts +248 -0
- package/dist/esm/interfaces/events.js +1 -0
- package/dist/esm/main.d.ts +38 -0
- package/dist/esm/main.js +31 -0
- package/dist/esm/messages/index.d.ts +150 -0
- package/dist/esm/messages/index.js +151 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/rows/GridDetailRow.d.ts +16 -0
- package/dist/esm/rows/GridDetailRow.js +29 -0
- package/dist/esm/rows/GridRow.d.ts +28 -0
- package/dist/esm/rows/GridRow.js +84 -0
- package/dist/esm/utils/browser-support.service.d.ts +7 -0
- package/dist/esm/utils/browser-support.service.js +26 -0
- package/dist/esm/utils/index.d.ts +91 -0
- package/dist/esm/utils/index.js +393 -0
- package/dist/npm/Grid.js +66 -70
- package/dist/npm/GridNav.js +1 -1
- package/dist/npm/GridNoRecords.js +2 -2
- package/dist/npm/GridToolbar.js +1 -1
- package/dist/npm/cells/GridCell.js +2 -2
- package/dist/npm/cells/GridEditCell.js +2 -2
- package/dist/npm/cells/GridFilterCell.js +4 -4
- package/dist/npm/cells/GridHierarchyCell.js +1 -1
- package/dist/npm/cells/GridSelectionCell.js +2 -2
- package/dist/npm/columnMenu/ColumnMenu.js +5 -5
- package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.js +14 -18
- package/dist/npm/columnMenu/GridColumnMenuFilter.js +445 -125
- package/dist/npm/columnMenu/GridColumnMenuFilterCell.js +79 -102
- package/dist/npm/columnMenu/GridColumnMenuFilterOperators.d.ts +36 -0
- package/dist/npm/columnMenu/GridColumnMenuFilterOperators.js +79 -0
- package/dist/npm/columnMenu/GridColumnMenuItem.js +2 -2
- package/dist/npm/columnMenu/GridColumnMenuItemContent.js +1 -1
- package/dist/npm/columnMenu/GridColumnMenuItemGroup.js +1 -1
- package/dist/npm/columnMenu/GridColumnMenuSort.js +5 -4
- package/dist/npm/drag/ColumnDraggable.js +1 -1
- package/dist/npm/drag/CommonDragLogic.js +2 -2
- package/dist/npm/drag/GroupingIndicator.js +3 -3
- package/dist/npm/filterCommon.d.ts +1 -1
- package/dist/npm/filterCommon.js +19 -12
- package/dist/npm/footer/Footer.js +6 -6
- package/dist/npm/footer/FooterRow.js +2 -2
- package/dist/npm/header/FilterRow.js +7 -7
- package/dist/npm/header/GridHeaderCell.js +1 -1
- package/dist/npm/header/GridHeaderSelectionCell.js +1 -1
- package/dist/npm/header/GroupPanel.js +1 -1
- package/dist/npm/header/Header.js +8 -8
- package/dist/npm/header/HeaderRow.js +2 -2
- package/dist/npm/interfaces/GridSortSettings.js +11 -8
- package/dist/npm/main.js +6 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rows/GridDetailRow.d.ts +2 -1
- package/dist/npm/rows/GridRow.js +2 -2
- package/dist/npm/utils/index.js +6 -5
- package/package.json +14 -14
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { DataResult, SortDescriptor, CompositeFilterDescriptor, GroupDescriptor } from '@progress/kendo-data-query';
|
|
2
|
+
import { GridGroupableSettings } from './GridGroupableSettings';
|
|
3
|
+
import { GridSortChangeEvent, GridFilterChangeEvent, GridPageChangeEvent, GridExpandChangeEvent, GridSelectionChangeEvent, GridHeaderSelectionChangeEvent, GridRowClickEvent, GridItemChangeEvent, GridDataStateChangeEvent, GridColumnResizeEvent, GridColumnReorderEvent, GridGroupChangeEvent, GridCancelEvent, GridSaveEvent, GridRemoveEvent, GridEditEvent, GridNavigationActionEvent, GridKeyDownEvent } from './events';
|
|
4
|
+
import { GridCellProps } from './GridCellProps';
|
|
5
|
+
import { GridSortSettings } from './GridSortSettings';
|
|
6
|
+
import { GridPagerSettings } from '@progress/kendo-vue-data-tools';
|
|
7
|
+
import { GridColumnProps } from '../interfaces/GridColumnProps';
|
|
8
|
+
import { GridFilterOperators } from './GridFilterOperators';
|
|
9
|
+
import { PopupAnimation } from '@progress/kendo-vue-popup';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the [native Vue Grid component by Kendo UI]({% slug overview_grid %}).
|
|
12
|
+
*/
|
|
13
|
+
export interface GridProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the Grid row key prop to the value of this field in the dataItem.
|
|
16
|
+
* If not set, the dataItem index will be used for the row key, which
|
|
17
|
+
* might lead to row not updated during paging or scrolling.
|
|
18
|
+
*/
|
|
19
|
+
dataItemKey?: string;
|
|
20
|
+
/**
|
|
21
|
+
* When set to `true` it sets the alternating of the rows per groups so each group could start
|
|
22
|
+
* with the same color row. There is a known limitation when virtual scrolling with groups and
|
|
23
|
+
* alternatePerGroup set to `true`- there may be a slight flicker of the alternating rows in
|
|
24
|
+
* groups with larger amount of items - in this case we would rather recommend
|
|
25
|
+
* using rowTemplates and set the row alternating based on the data or dataItems.
|
|
26
|
+
*/
|
|
27
|
+
alternatePerGroup?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the properties of the columns that are used by the Grid.
|
|
30
|
+
*/
|
|
31
|
+
columns?: GridColumnProps[] | null;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the data of the Grid ([see example]({% slug paging_grid %})). If you use paging,
|
|
34
|
+
* the `data` option has to contain only the items for the current page.
|
|
35
|
+
*/
|
|
36
|
+
dataItems?: any[] | DataResult | null;
|
|
37
|
+
/**
|
|
38
|
+
* Enables the sorting for the columns with their `field` option set
|
|
39
|
+
* ([see example]({% slug sorting_grid %})).
|
|
40
|
+
*/
|
|
41
|
+
sortable?: GridSortSettings;
|
|
42
|
+
/**
|
|
43
|
+
* Fires when the sorting of the Grid is changed ([see example]({% slug sorting_grid %})).
|
|
44
|
+
* You have to handle the event yourself and sort the data.
|
|
45
|
+
*/
|
|
46
|
+
onSortchange?: (event: GridSortChangeEvent) => void;
|
|
47
|
+
/**
|
|
48
|
+
* The descriptors by which the data is sorted.
|
|
49
|
+
* Applies the sorting styles and buttons to the affected columns.
|
|
50
|
+
*/
|
|
51
|
+
sort?: SortDescriptor[];
|
|
52
|
+
/**
|
|
53
|
+
* Enables the filtering of the columns with their `field` option set
|
|
54
|
+
* ([more information and examples]({% slug filtering_grid %})).
|
|
55
|
+
*/
|
|
56
|
+
filterable?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The descriptor by which the data is filtered
|
|
59
|
+
* ([more information and examples]({% slug filtering_grid %})).
|
|
60
|
+
* Affects the values and buttons in the `FilterRow` of the Grid.
|
|
61
|
+
*/
|
|
62
|
+
filter?: CompositeFilterDescriptor;
|
|
63
|
+
/**
|
|
64
|
+
* The filter operators for the Grid filters.
|
|
65
|
+
*/
|
|
66
|
+
filterOperators?: GridFilterOperators;
|
|
67
|
+
/**
|
|
68
|
+
* Fires when the Grid filter is modified through the UI
|
|
69
|
+
* ([more information and examples]({% slug filtering_grid %})).
|
|
70
|
+
* You have to handle the event yourself and filter the data.
|
|
71
|
+
*/
|
|
72
|
+
onFilterchange?: (event: GridFilterChangeEvent) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Defines if the column menu will be shown for the column.
|
|
75
|
+
* Accepts Boolean, a Vue component, a `render` function, or a slot name
|
|
76
|
+
*/
|
|
77
|
+
columnMenu?: boolean | any;
|
|
78
|
+
/**
|
|
79
|
+
* Controls the ColumnMenu animation. By default, the opening and closing animations are enabled.
|
|
80
|
+
*/
|
|
81
|
+
columnMenuAnimate?: boolean | PopupAnimation;
|
|
82
|
+
/**
|
|
83
|
+
* The descriptors by which the data will be grouped
|
|
84
|
+
* ([more information and examples]({% slug groupingbasics_grid %})).
|
|
85
|
+
*/
|
|
86
|
+
group?: GroupDescriptor[];
|
|
87
|
+
/**
|
|
88
|
+
* Fires when the grouping of the Grid is changed. You have to handle the event yourself and group the data
|
|
89
|
+
* ([more information and examples]({% slug groupingbasics_grid %})).
|
|
90
|
+
*/
|
|
91
|
+
onGroupchange?: (event: GridGroupChangeEvent) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Configures the pager of the Grid ([see example]({% slug paging_grid %})).
|
|
94
|
+
*
|
|
95
|
+
* The available options are:
|
|
96
|
+
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed.
|
|
97
|
+
* - `info: Boolean`—Toggles the information about the current page and the total number of records.
|
|
98
|
+
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers)
|
|
99
|
+
* and `input` (input for typing the page number) values.
|
|
100
|
+
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size.
|
|
101
|
+
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons.
|
|
102
|
+
*/
|
|
103
|
+
pageable?: GridPagerSettings | any;
|
|
104
|
+
/**
|
|
105
|
+
* Defines the page size that is used by the Grid pager
|
|
106
|
+
* ([see example]({% slug paging_grid %})). Required by the paging functionality.
|
|
107
|
+
*/
|
|
108
|
+
pageSize?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Alias of the `pageSize` property. If `take` is set, `pageSize` will be ignored.
|
|
111
|
+
*/
|
|
112
|
+
take?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Fires when the page of the Grid is changed ([see example]({% slug paging_grid %})).
|
|
115
|
+
* You have to handle the event yourself and page the data.
|
|
116
|
+
*/
|
|
117
|
+
onPagechange?: (event: GridPageChangeEvent) => void;
|
|
118
|
+
/**
|
|
119
|
+
* Defines the total number of data items in all pages
|
|
120
|
+
* ([see example]({% slug paging_grid %})). Required by the paging functionality.
|
|
121
|
+
*/
|
|
122
|
+
total?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Defines the number of records that will be skipped by the pager
|
|
125
|
+
* ([see example]({% slug paging_grid %})). Required by the paging functionality.
|
|
126
|
+
*/
|
|
127
|
+
skip?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Fires when the user tries to expand or collapse a row.
|
|
130
|
+
*/
|
|
131
|
+
onExpandchange?: (event: GridExpandChangeEvent) => void;
|
|
132
|
+
/**
|
|
133
|
+
* Specifies the name of the field which will provide a Boolean representation
|
|
134
|
+
* of the expanded state of the item ([see example]({% slug detailrow_grid %}).
|
|
135
|
+
*/
|
|
136
|
+
expandField?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Specifies the name of the field which will provide a Boolean representation
|
|
139
|
+
* of the selected state of the item ([see example]({% slug selection_grid %})).
|
|
140
|
+
*/
|
|
141
|
+
selectedField?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Fires when the user tries to select or deselect a row
|
|
144
|
+
* ([see example]({% slug selection_grid %})).
|
|
145
|
+
*/
|
|
146
|
+
onSelectionchange?: (event: GridSelectionChangeEvent) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Fires when the user clicks the checkbox of a column header whose `field` matches `selectedField`.
|
|
149
|
+
* ([see example]({% slug selection_grid %})).
|
|
150
|
+
*/
|
|
151
|
+
onHeaderselectionchange?: (event: GridHeaderSelectionChangeEvent) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Fires when the user clicks a row.
|
|
154
|
+
*/
|
|
155
|
+
onRowclick?: (event: GridRowClickEvent) => void;
|
|
156
|
+
/**
|
|
157
|
+
* Fires when the user double clicks a row.
|
|
158
|
+
*/
|
|
159
|
+
onRowdblclick?: (event: GridRowClickEvent) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Fires when the user clicks a cell.
|
|
162
|
+
*/
|
|
163
|
+
onCellclick?: (event: any) => void;
|
|
164
|
+
/**
|
|
165
|
+
* Fires when Grid is scrolled.
|
|
166
|
+
*/
|
|
167
|
+
onScroll?: (event: any) => void;
|
|
168
|
+
/**
|
|
169
|
+
* Fires when the user triggers an edit operation from a cell.
|
|
170
|
+
*/
|
|
171
|
+
onEdit?: (event: GridEditEvent) => void;
|
|
172
|
+
/**
|
|
173
|
+
* Fires when the user triggers a removal operation from a cell.
|
|
174
|
+
*/
|
|
175
|
+
onRemove?: (event: GridRemoveEvent) => void;
|
|
176
|
+
/**
|
|
177
|
+
* Fires when the user triggers a saving operation from a cell.
|
|
178
|
+
*/
|
|
179
|
+
onSave?: (event: GridSaveEvent) => void;
|
|
180
|
+
/**
|
|
181
|
+
* Fires when the user triggers a canceling operation from a cell.
|
|
182
|
+
*/
|
|
183
|
+
onCancel?: (event: GridCancelEvent) => void;
|
|
184
|
+
/**
|
|
185
|
+
* Fires when the user changes the values of the item.
|
|
186
|
+
* The event is not debounced and fires on every `onChange` event of the input in the current `EditCell`.
|
|
187
|
+
* ([more information and examples]({% slug editing_inline_grid %})).
|
|
188
|
+
*/
|
|
189
|
+
onItemchange?: (event: GridItemChangeEvent) => void;
|
|
190
|
+
/**
|
|
191
|
+
* Specifies the name of the field which will provide a Boolean representation of the edit state of the current
|
|
192
|
+
* item ([more information and examples]({% slug editing_inline_grid %})).
|
|
193
|
+
*/
|
|
194
|
+
editField?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Defines the scroll mode that is used by the Grid ([see example]({% slug scrollmmodes_grid %}).
|
|
197
|
+
*
|
|
198
|
+
* The available options are:
|
|
199
|
+
* - `none`—Renders no scrollbar.
|
|
200
|
+
* - `scrollable`—This is the default scroll mode. It requires the setting of the `height` option.
|
|
201
|
+
* - `virtual`—Displays no pager and renders a portion of the data (optimized rendering)
|
|
202
|
+
* while the user is scrolling the content.
|
|
203
|
+
*/
|
|
204
|
+
scrollable?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Defines the row height and forces an equal height to all rows
|
|
207
|
+
* ([see example]({% slug scrollmmodes_grid %})).
|
|
208
|
+
*/
|
|
209
|
+
rowHeight?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Specifies a custom rendering that will be cloned and rendered inside the detail rows
|
|
212
|
+
* of the currently expanded items ([see example]({% slug master_detail_grid %}).
|
|
213
|
+
* Accepts a Vue component, a `render` function, or a slot name.
|
|
214
|
+
* An item will be rendered as expanded if the value of its `expandField` is `true`.
|
|
215
|
+
*/
|
|
216
|
+
detail?: null | any;
|
|
217
|
+
/**
|
|
218
|
+
* Represents the `style` HTML attribute.
|
|
219
|
+
*/
|
|
220
|
+
style?: any;
|
|
221
|
+
/**
|
|
222
|
+
* Fires when the data state of the Grid is changed.
|
|
223
|
+
*/
|
|
224
|
+
onDatastatechange?: (event: GridDataStateChangeEvent) => void;
|
|
225
|
+
/**
|
|
226
|
+
* If set to `true`, the user can resize columns by dragging the edges (resize handles) of their
|
|
227
|
+
* header cells ([see example]({% slug resizing_columns_grid %}).
|
|
228
|
+
*/
|
|
229
|
+
resizable?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* If set to `true`, the user can reorder columns by dragging their
|
|
232
|
+
* header cells ([see example]({% slug reordering_columns_grid %}).
|
|
233
|
+
*/
|
|
234
|
+
reorderable?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Determines if grouping by dragging and dropping the column headers is allowed
|
|
237
|
+
* ([more information and examples]({% slug groupingbasics_grid %})).
|
|
238
|
+
*/
|
|
239
|
+
groupable?: GridGroupableSettings | boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Fires when a column is resized
|
|
242
|
+
*/
|
|
243
|
+
onColumnresize?: (event: GridColumnResizeEvent) => void;
|
|
244
|
+
/**
|
|
245
|
+
* Fires when columns are reordered.
|
|
246
|
+
*/
|
|
247
|
+
onColumnreorder?: (event: GridColumnReorderEvent) => void;
|
|
248
|
+
/**
|
|
249
|
+
* Defines the custom rendering of the row. Accepts a Vue component, a `render` function, or a slot name.
|
|
250
|
+
*/
|
|
251
|
+
rowRender?: string | boolean | ((h: any, defaultRendering: any | null, dafaultSlots: any, props: any, listeners: any) => any);
|
|
252
|
+
/**
|
|
253
|
+
* Defines the custom rendering of the cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
254
|
+
* ([see example]({% slug groupingaggregates_grid %})).
|
|
255
|
+
*/
|
|
256
|
+
cellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | null | boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Defines the custom rendering of the filter cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
259
|
+
*/
|
|
260
|
+
filterCellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | any;
|
|
261
|
+
/**
|
|
262
|
+
* Defines the custom rendering of the header cell. Accepts a Vue component, a `render` function, or a slot name.
|
|
263
|
+
*/
|
|
264
|
+
headerCellRender?: ((h: any, defaultRendering: any | null, props: GridCellProps, listeners: any) => any) | string | any;
|
|
265
|
+
/**
|
|
266
|
+
* Defines if the loader will be shown. Defaults to `false`. Accepts a slot name, a `render` function, or a Vue component.
|
|
267
|
+
*/
|
|
268
|
+
loader?: boolean | Object | Function | string;
|
|
269
|
+
/**
|
|
270
|
+
* Defines the custom rendering of the pager. Accepts a slot name, a `render` function, or a Vue component.
|
|
271
|
+
*/
|
|
272
|
+
pager?: Object | Function | string | boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Enables virtualization of the columns. If virtualization is
|
|
275
|
+
* enabled, the columns outside the view are not rendered.
|
|
276
|
+
*/
|
|
277
|
+
columnVirtualization?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* If set to `true`, the user can use dedicated shortcuts to interact with the Grid.
|
|
280
|
+
* By default, navigation is disabled and the Grid content is accessible in the normal tab sequence.
|
|
281
|
+
*/
|
|
282
|
+
navigatable?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Passes the number of cached top items needed for the grouping virtualization scenario. Defaults to 4.
|
|
285
|
+
*/
|
|
286
|
+
topCacheCount?: Number;
|
|
287
|
+
/**
|
|
288
|
+
* Passes the calculated height of all the items in the Grid grouped hierarchy.
|
|
289
|
+
*/
|
|
290
|
+
totalGroupedHeight?: Number;
|
|
291
|
+
/**
|
|
292
|
+
* Passes the collection of all grouped items that is needed for the virtualization scenario.
|
|
293
|
+
*/
|
|
294
|
+
allGroupedItems?: DataResult | null;
|
|
295
|
+
/**
|
|
296
|
+
* Passes the collection of all collapsed groups for every grouped level.
|
|
297
|
+
*/
|
|
298
|
+
collapsedGroups?: any[][];
|
|
299
|
+
/**
|
|
300
|
+
* Specifies the name of the field which will provide a unique for every item identifier.
|
|
301
|
+
*/
|
|
302
|
+
uniqueField?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Fires when Grid keyboard navigation position is changed.
|
|
305
|
+
*/
|
|
306
|
+
onNavigationaction?: (event: GridNavigationActionEvent) => void;
|
|
307
|
+
/**
|
|
308
|
+
* Fires when the user press keyboard key.
|
|
309
|
+
*/
|
|
310
|
+
onKeydown?: (event: GridKeyDownEvent) => void;
|
|
311
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The props that the Grid passes to the GridRow component when creating it.
|
|
3
|
+
* Accessible during the `rowRender` callback of the Grid.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export interface GridRowProps {
|
|
9
|
+
/**
|
|
10
|
+
* The 'key' prop that may be applied to the row.
|
|
11
|
+
*/
|
|
12
|
+
key?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The `data` object that represents the current row.
|
|
15
|
+
*/
|
|
16
|
+
dataItem: any;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates whether the row is an alternating row.
|
|
19
|
+
*/
|
|
20
|
+
isAltRow: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates if the row is hidden. The hidden row is rendered above the
|
|
23
|
+
* visible area of the Grid. Occurs when the Grid uses virtualization and
|
|
24
|
+
* the row is on the current page. When `rowHeight` is set, `isHidden` is always `true`.
|
|
25
|
+
*/
|
|
26
|
+
isHidden: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The event that is fired when the row is clicked.
|
|
29
|
+
*/
|
|
30
|
+
onClick: any;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the field which will provide a Boolean representation of the selected state of the item.
|
|
33
|
+
*/
|
|
34
|
+
selectedField?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The row height. Configuring `rowHeight` sets the height to the height of the current Grid row.
|
|
37
|
+
*/
|
|
38
|
+
rowHeight?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The type of the row.
|
|
41
|
+
*/
|
|
42
|
+
rowType: string;
|
|
43
|
+
/**
|
|
44
|
+
* The method for rendering the cell.
|
|
45
|
+
*/
|
|
46
|
+
render?: any;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
ariaRowIndex?: Number;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
dataIndex?: Number;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type of the GridRow component.
|
|
3
|
+
*
|
|
4
|
+
* The available values are:
|
|
5
|
+
* - `groupHeader`—The row is a group header.
|
|
6
|
+
* - `groupFooter`—The row is a group footer.
|
|
7
|
+
* - `data`—The row corresponds to an item from the `data` collection which is passed to the Grid.
|
|
8
|
+
*/
|
|
9
|
+
export declare type GridRowType = 'groupFooter' | 'groupHeader' | 'data';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The settings for sorting the Grid columns.
|
|
3
|
+
*/
|
|
4
|
+
export declare type GridColumnSortSettings = boolean | {
|
|
5
|
+
/**
|
|
6
|
+
* Enables the removal of the column sorting functionality.
|
|
7
|
+
*/
|
|
8
|
+
allowUnsort?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The settings for sorting the Grid data.
|
|
12
|
+
*/
|
|
13
|
+
export declare type GridSortSettings = boolean | GridColumnSortSettings & {
|
|
14
|
+
/**
|
|
15
|
+
* The sort mode of the Grid.
|
|
16
|
+
*
|
|
17
|
+
* The available modes are:
|
|
18
|
+
* - `single`
|
|
19
|
+
* - `multiple`
|
|
20
|
+
*/
|
|
21
|
+
mode?: 'single' | 'multiple';
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const normalize: (...settings: (GridSortSettings | GridColumnSortSettings)[]) => any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export var normalize = function () {
|
|
14
|
+
var _a;
|
|
15
|
+
var settings = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
settings[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return (_a = Object).assign.apply(_a, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings, false));
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { SortDescriptor, CompositeFilterDescriptor, GroupDescriptor, State } from '@progress/kendo-data-query';
|
|
2
|
+
import { GridColumnProps } from './GridColumnProps';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the base event object of the Grid.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export interface GridEvent {
|
|
10
|
+
/**
|
|
11
|
+
* An event target.
|
|
12
|
+
*/
|
|
13
|
+
target?: any;
|
|
14
|
+
/**
|
|
15
|
+
* A specific native DOM event which is fetched by Vue.
|
|
16
|
+
*/
|
|
17
|
+
event?: any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents the object of the `onPageChange` event.
|
|
21
|
+
*/
|
|
22
|
+
export interface GridPageChangeEvent extends GridEvent {
|
|
23
|
+
page: any;
|
|
24
|
+
/**
|
|
25
|
+
* A specific native DOM event which is fetched by Vue.
|
|
26
|
+
*/
|
|
27
|
+
event: any;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The returned type of the `onDataStateChange` event.
|
|
31
|
+
*/
|
|
32
|
+
export interface GridDataStateChangeEvent extends GridEvent {
|
|
33
|
+
/**
|
|
34
|
+
* The state of the Grid based on the user action.
|
|
35
|
+
*/
|
|
36
|
+
data: State;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents the object of the `onSortChange` event.
|
|
40
|
+
*/
|
|
41
|
+
export interface GridSortChangeEvent extends GridEvent {
|
|
42
|
+
/**
|
|
43
|
+
* The new `SortDescriptor` based on the user action.
|
|
44
|
+
*/
|
|
45
|
+
sort: SortDescriptor[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Represents the object of the `onFilterChange` event.
|
|
49
|
+
*/
|
|
50
|
+
export interface GridFilterChangeEvent extends GridEvent {
|
|
51
|
+
/**
|
|
52
|
+
* The new `CompositeFilterDescriptor` based on the user action.
|
|
53
|
+
*/
|
|
54
|
+
filter: CompositeFilterDescriptor;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Represents the object of the `onGroupChange` event.
|
|
58
|
+
*/
|
|
59
|
+
export interface GridGroupChangeEvent extends GridEvent {
|
|
60
|
+
/**
|
|
61
|
+
* An array of `GroupDescriptor` based on the user action.
|
|
62
|
+
*/
|
|
63
|
+
group: GroupDescriptor[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Represents the object of the `onExpandChange` event.
|
|
67
|
+
*/
|
|
68
|
+
export interface GridExpandChangeEvent extends GridEvent {
|
|
69
|
+
/**
|
|
70
|
+
* The array with collapsed groups.
|
|
71
|
+
*/
|
|
72
|
+
collapsed?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* The data item that is expanded or collapsed.
|
|
75
|
+
*/
|
|
76
|
+
dataItem: any;
|
|
77
|
+
/**
|
|
78
|
+
* The available values are:
|
|
79
|
+
* - `true`—If the data item is expanded.
|
|
80
|
+
* - `false`—If the data item is collapsed.
|
|
81
|
+
*/
|
|
82
|
+
value: boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Represents the object of the `onSelectionChange` event.
|
|
86
|
+
*/
|
|
87
|
+
export interface GridSelectionChangeEvent extends GridEvent {
|
|
88
|
+
/**
|
|
89
|
+
* The data item which was selected or deselected by the user.
|
|
90
|
+
*/
|
|
91
|
+
dataItem: any;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Represents the object of the `onItemChange` event.
|
|
95
|
+
*/
|
|
96
|
+
export interface GridItemChangeEvent extends GridEvent {
|
|
97
|
+
/**
|
|
98
|
+
* The data object that represents the current row.
|
|
99
|
+
*/
|
|
100
|
+
dataItem: any;
|
|
101
|
+
/**
|
|
102
|
+
* The field to which the row is bound.
|
|
103
|
+
*/
|
|
104
|
+
field?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The value of the item.
|
|
107
|
+
*/
|
|
108
|
+
value: any;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Represents the object of the `onHeaderSelectionChange` event.
|
|
112
|
+
*/
|
|
113
|
+
export interface GridHeaderSelectionChangeEvent extends GridEvent {
|
|
114
|
+
/**
|
|
115
|
+
* The field of the column in which the cell is located.
|
|
116
|
+
*/
|
|
117
|
+
field?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Represents the object of the `GridKeyDownEvent` Grid event.
|
|
121
|
+
*/
|
|
122
|
+
export interface GridKeyDownEvent extends GridEvent {
|
|
123
|
+
/**
|
|
124
|
+
* The current Grid leaf data items.
|
|
125
|
+
*/
|
|
126
|
+
dataItems: any[];
|
|
127
|
+
/**
|
|
128
|
+
* Grid selection mode.
|
|
129
|
+
*/
|
|
130
|
+
mode: 'single' | 'multiple';
|
|
131
|
+
/**
|
|
132
|
+
* Indicates if cell selection mode is enabled.
|
|
133
|
+
*/
|
|
134
|
+
cell: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* The `selectedField` prop of the Grid.
|
|
137
|
+
*/
|
|
138
|
+
selectedField: string;
|
|
139
|
+
/**
|
|
140
|
+
* The component unique identifier.
|
|
141
|
+
*/
|
|
142
|
+
componentId: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Represents the object of the `GridNavigationActionEvent` Grid event.
|
|
146
|
+
*/
|
|
147
|
+
export interface GridNavigationActionEvent extends GridEvent {
|
|
148
|
+
/**
|
|
149
|
+
* The focused element.
|
|
150
|
+
*/
|
|
151
|
+
focusElement: any;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Represents the object of the `onRowClick` event.
|
|
155
|
+
*/
|
|
156
|
+
export interface GridRowClickEvent extends GridEvent {
|
|
157
|
+
/**
|
|
158
|
+
* The item from the `data` property of the Grid which corresponds to the row that is clicked by the user.
|
|
159
|
+
*/
|
|
160
|
+
dataItem: any;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Represents the object of the `cancel` event.
|
|
164
|
+
*/
|
|
165
|
+
export interface GridCancelEvent {
|
|
166
|
+
/**
|
|
167
|
+
* The item from the `data` property of the Grid that corresponds to the item that is canceled by the user.
|
|
168
|
+
*/
|
|
169
|
+
dataItem: any;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Represents the object of the `edit` event.
|
|
173
|
+
*/
|
|
174
|
+
export interface GridEditEvent {
|
|
175
|
+
/**
|
|
176
|
+
* The item from the `data` property of the Grid that corresponds to the item that is edited by the user.
|
|
177
|
+
*/
|
|
178
|
+
dataItem: any;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Represents the object of the `remove` event.
|
|
182
|
+
*/
|
|
183
|
+
export interface GridRemoveEvent {
|
|
184
|
+
/**
|
|
185
|
+
* The item from the `data` property of the Grid that corresponds to the item that is removed by the user.
|
|
186
|
+
*/
|
|
187
|
+
dataItem: any;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Represents the object of the `save` event.
|
|
191
|
+
*/
|
|
192
|
+
export interface GridSaveEvent {
|
|
193
|
+
/**
|
|
194
|
+
* The item from the `data` property of the Grid that corresponds to the item that is saved by the user.
|
|
195
|
+
*/
|
|
196
|
+
dataItem: any;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Represents the object of the `onColumnResize` event.
|
|
200
|
+
*/
|
|
201
|
+
export interface GridColumnResizeEvent {
|
|
202
|
+
/**
|
|
203
|
+
* An event target.
|
|
204
|
+
*/
|
|
205
|
+
target: any;
|
|
206
|
+
/**
|
|
207
|
+
* A native DOM event.
|
|
208
|
+
*/
|
|
209
|
+
event: any;
|
|
210
|
+
/**
|
|
211
|
+
* The current column collection.
|
|
212
|
+
*/
|
|
213
|
+
columns: GridColumnProps[];
|
|
214
|
+
/**
|
|
215
|
+
* The index of the column.
|
|
216
|
+
*/
|
|
217
|
+
index: number;
|
|
218
|
+
/**
|
|
219
|
+
* The new width of the column.
|
|
220
|
+
*/
|
|
221
|
+
newWidth: number;
|
|
222
|
+
/**
|
|
223
|
+
* The actual width of the column prior to resizing.
|
|
224
|
+
*/
|
|
225
|
+
oldWidth: number;
|
|
226
|
+
/**
|
|
227
|
+
* Indicates that resizing is complete and
|
|
228
|
+
* the user has dropped the resize handler.
|
|
229
|
+
*/
|
|
230
|
+
end: boolean;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Represents the object of the `onColumnReorder` event.
|
|
234
|
+
*/
|
|
235
|
+
export interface GridColumnReorderEvent {
|
|
236
|
+
/**
|
|
237
|
+
* An event target.
|
|
238
|
+
*/
|
|
239
|
+
target: any;
|
|
240
|
+
/**
|
|
241
|
+
* A native DOM event.
|
|
242
|
+
*/
|
|
243
|
+
event: any;
|
|
244
|
+
/**
|
|
245
|
+
* The current column collection.
|
|
246
|
+
*/
|
|
247
|
+
columns: GridColumnProps[];
|
|
248
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|