@progress/kendo-react-grid 7.2.4-develop.3 → 7.2.4-develop.4

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.
Files changed (174) hide show
  1. package/Grid.js +8 -0
  2. package/Grid.mjs +1108 -0
  3. package/GridColumn.js +8 -0
  4. package/GridColumn.mjs +53 -0
  5. package/GridNoRecords.js +8 -0
  6. package/GridNoRecords.mjs +25 -0
  7. package/GridToolbar.js +8 -0
  8. package/GridToolbar.mjs +39 -0
  9. package/StatusBar.js +8 -0
  10. package/StatusBar.mjs +53 -0
  11. package/VirtualScroll.js +8 -0
  12. package/VirtualScroll.mjs +128 -0
  13. package/VirtualScrollFixed.js +8 -0
  14. package/VirtualScrollFixed.mjs +86 -0
  15. package/cells/GridCell.js +8 -0
  16. package/cells/GridCell.mjs +57 -0
  17. package/cells/GridDetailCell.js +8 -0
  18. package/cells/GridDetailCell.mjs +30 -0
  19. package/cells/GridDetailHierarchyCell.js +8 -0
  20. package/cells/GridDetailHierarchyCell.mjs +17 -0
  21. package/cells/GridEditCell.js +8 -0
  22. package/cells/GridEditCell.mjs +172 -0
  23. package/cells/GridFilterCell.js +8 -0
  24. package/cells/GridFilterCell.mjs +145 -0
  25. package/cells/GridGroupCell.js +8 -0
  26. package/cells/GridGroupCell.mjs +115 -0
  27. package/cells/GridHierarchyCell.js +8 -0
  28. package/cells/GridHierarchyCell.mjs +84 -0
  29. package/cells/GridSelectionCell.js +8 -0
  30. package/cells/GridSelectionCell.mjs +54 -0
  31. package/columnMenu/GridColumnMenuCheckboxFilter.js +8 -0
  32. package/columnMenu/GridColumnMenuCheckboxFilter.mjs +199 -0
  33. package/columnMenu/GridColumnMenuColumnsList.js +8 -0
  34. package/columnMenu/GridColumnMenuColumnsList.mjs +60 -0
  35. package/columnMenu/GridColumnMenuFilter.js +8 -0
  36. package/columnMenu/GridColumnMenuFilter.mjs +188 -0
  37. package/columnMenu/GridColumnMenuFilterCell.js +8 -0
  38. package/columnMenu/GridColumnMenuFilterCell.mjs +96 -0
  39. package/columnMenu/GridColumnMenuFilterUI.js +8 -0
  40. package/columnMenu/GridColumnMenuFilterUI.mjs +36 -0
  41. package/columnMenu/GridColumnMenuGroup.js +8 -0
  42. package/columnMenu/GridColumnMenuGroup.mjs +50 -0
  43. package/columnMenu/GridColumnMenuItem.js +8 -0
  44. package/columnMenu/GridColumnMenuItem.mjs +22 -0
  45. package/columnMenu/GridColumnMenuItemContent.js +8 -0
  46. package/columnMenu/GridColumnMenuItemContent.mjs +30 -0
  47. package/columnMenu/GridColumnMenuItemGroup.js +8 -0
  48. package/columnMenu/GridColumnMenuItemGroup.mjs +30 -0
  49. package/columnMenu/GridColumnMenuSort.js +8 -0
  50. package/columnMenu/GridColumnMenuSort.mjs +75 -0
  51. package/columnMenu/GridColumnMenuWrapper.js +8 -0
  52. package/columnMenu/GridColumnMenuWrapper.mjs +91 -0
  53. package/constants/index.js +8 -0
  54. package/constants/index.mjs +15 -0
  55. package/dist/cdn/js/kendo-react-grid.js +8 -5
  56. package/drag/ColumnDraggable.js +8 -0
  57. package/drag/ColumnDraggable.mjs +43 -0
  58. package/drag/ColumnResize.js +8 -0
  59. package/drag/ColumnResize.mjs +128 -0
  60. package/drag/CommonDragLogic.js +8 -0
  61. package/drag/CommonDragLogic.mjs +104 -0
  62. package/drag/GroupingIndicator.js +8 -0
  63. package/drag/GroupingIndicator.mjs +91 -0
  64. package/filterCommon.js +8 -0
  65. package/filterCommon.mjs +103 -0
  66. package/footer/Footer.js +8 -0
  67. package/footer/Footer.mjs +76 -0
  68. package/footer/FooterRow.js +8 -0
  69. package/footer/FooterRow.mjs +46 -0
  70. package/header/FilterRow.js +8 -0
  71. package/header/FilterRow.mjs +96 -0
  72. package/header/GridHeaderCell.js +8 -0
  73. package/header/GridHeaderCell.mjs +38 -0
  74. package/header/GridHeaderSelectionCell.js +8 -0
  75. package/header/GridHeaderSelectionCell.mjs +44 -0
  76. package/header/GroupPanel.js +8 -0
  77. package/header/GroupPanel.mjs +60 -0
  78. package/header/Header.js +8 -0
  79. package/header/Header.mjs +107 -0
  80. package/header/HeaderRow.js +8 -0
  81. package/header/HeaderRow.mjs +155 -0
  82. package/index.d.mts +2771 -5
  83. package/index.d.ts +2771 -57
  84. package/index.js +8 -5
  85. package/index.mjs +89 -3845
  86. package/interfaces/GridSortSettings.js +8 -0
  87. package/interfaces/GridSortSettings.mjs +12 -0
  88. package/messages/index.js +8 -0
  89. package/messages/index.mjs +105 -0
  90. package/package-metadata.js +8 -0
  91. package/package-metadata.mjs +19 -0
  92. package/package.json +10 -10
  93. package/paging/GridPagerSettings.js +8 -0
  94. package/paging/GridPagerSettings.mjs +28 -0
  95. package/rows/GridDetailRow.js +8 -0
  96. package/rows/GridDetailRow.mjs +20 -0
  97. package/rows/GridRow.js +8 -0
  98. package/rows/GridRow.mjs +51 -0
  99. package/utils/index.js +8 -0
  100. package/utils/index.mjs +180 -0
  101. package/Grid.d.ts +0 -267
  102. package/GridColumn.d.ts +0 -28
  103. package/GridNoRecords.d.ts +0 -40
  104. package/GridToolbar.d.ts +0 -54
  105. package/ScrollMode.d.ts +0 -5
  106. package/StatusBar.d.ts +0 -51
  107. package/VirtualScroll.d.ts +0 -51
  108. package/VirtualScrollFixed.d.ts +0 -53
  109. package/cells/GridCell.d.ts +0 -6
  110. package/cells/GridDetailCell.d.ts +0 -18
  111. package/cells/GridDetailHierarchyCell.d.ts +0 -10
  112. package/cells/GridEditCell.d.ts +0 -9
  113. package/cells/GridFilterCell.d.ts +0 -20
  114. package/cells/GridGroupCell.d.ts +0 -9
  115. package/cells/GridHierarchyCell.d.ts +0 -9
  116. package/cells/GridSelectionCell.d.ts +0 -9
  117. package/columnMenu/GridColumnMenuCheckboxFilter.d.ts +0 -122
  118. package/columnMenu/GridColumnMenuColumnsList.d.ts +0 -31
  119. package/columnMenu/GridColumnMenuFilter.d.ts +0 -165
  120. package/columnMenu/GridColumnMenuFilterCell.d.ts +0 -37
  121. package/columnMenu/GridColumnMenuFilterUI.d.ts +0 -12
  122. package/columnMenu/GridColumnMenuGroup.d.ts +0 -77
  123. package/columnMenu/GridColumnMenuItem.d.ts +0 -40
  124. package/columnMenu/GridColumnMenuItemContent.d.ts +0 -24
  125. package/columnMenu/GridColumnMenuItemGroup.d.ts +0 -20
  126. package/columnMenu/GridColumnMenuSort.d.ts +0 -89
  127. package/columnMenu/GridColumnMenuWrapper.d.ts +0 -49
  128. package/constants/index.d.ts +0 -10
  129. package/drag/ColumnDraggable.d.ts +0 -38
  130. package/drag/ColumnResize.d.ts +0 -37
  131. package/drag/CommonDragLogic.d.ts +0 -44
  132. package/drag/GroupingIndicator.d.ts +0 -41
  133. package/filterCommon.d.ts +0 -73
  134. package/footer/Footer.d.ts +0 -38
  135. package/footer/FooterRow.d.ts +0 -25
  136. package/header/FilterRow.d.ts +0 -38
  137. package/header/GridHeaderCell.d.ts +0 -56
  138. package/header/GridHeaderSelectionCell.d.ts +0 -10
  139. package/header/GroupPanel.d.ts +0 -26
  140. package/header/Header.d.ts +0 -46
  141. package/header/HeaderRow.d.ts +0 -51
  142. package/interfaces/GridCellProps.d.ts +0 -73
  143. package/interfaces/GridCellsSettings.d.ts +0 -115
  144. package/interfaces/GridColumnMenuBaseProps.d.ts +0 -18
  145. package/interfaces/GridColumnMenuColumnProps.d.ts +0 -29
  146. package/interfaces/GridColumnMenuFilterBaseProps.d.ts +0 -28
  147. package/interfaces/GridColumnMenuFilterUIProps.d.ts +0 -35
  148. package/interfaces/GridColumnMenuGroupBaseProps.d.ts +0 -23
  149. package/interfaces/GridColumnMenuProps.d.ts +0 -12
  150. package/interfaces/GridColumnMenuSortBaseProps.d.ts +0 -24
  151. package/interfaces/GridColumnProps.d.ts +0 -92
  152. package/interfaces/GridDetailRowProps.d.ts +0 -17
  153. package/interfaces/GridFilterCellProps.d.ts +0 -68
  154. package/interfaces/GridFilterOperator.d.ts +0 -10
  155. package/interfaces/GridFilterOperators.d.ts +0 -53
  156. package/interfaces/GridFooterCellProps.d.ts +0 -26
  157. package/interfaces/GridGroupableSettings.d.ts +0 -17
  158. package/interfaces/GridHeaderCellProps.d.ts +0 -24
  159. package/interfaces/GridNoRecordsProps.d.ts +0 -13
  160. package/interfaces/GridProps.d.ts +0 -333
  161. package/interfaces/GridRowProps.d.ts +0 -67
  162. package/interfaces/GridRowType.d.ts +0 -13
  163. package/interfaces/GridSelectableSettings.d.ts +0 -22
  164. package/interfaces/GridSortSettings.d.ts +0 -17
  165. package/interfaces/GridToolbarProps.d.ts +0 -37
  166. package/interfaces/VirtualScrollInterface.d.ts +0 -31
  167. package/interfaces/events.d.ts +0 -232
  168. package/messages/index.d.ts +0 -199
  169. package/package-metadata.d.ts +0 -9
  170. package/paging/GridPagerSettings.d.ts +0 -71
  171. package/paging/Page.d.ts +0 -17
  172. package/rows/GridDetailRow.d.ts +0 -55
  173. package/rows/GridRow.d.ts +0 -15
  174. package/utils/index.d.ts +0 -73
@@ -1,115 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ComponentType } from 'react';
6
- import { TABLE_COL_INDEX_ATTRIBUTE } from '@progress/kendo-react-data-tools';
7
- import { GridCellProps } from './GridCellProps';
8
- import { GridFooterCellProps } from './GridFooterCellProps';
9
- import { GridFilterCellProps } from './GridFilterCellProps';
10
- import { GridHeaderCellProps } from './GridHeaderCellProps';
11
- export interface GridTdAttributes extends React.TdHTMLAttributes<HTMLTableCellElement> {
12
- [TABLE_COL_INDEX_ATTRIBUTE]?: number;
13
- key?: string;
14
- }
15
- export interface GridThAttributes extends React.ThHTMLAttributes<HTMLTableCellElement> {
16
- columnId: string;
17
- key?: string;
18
- }
19
- /**
20
- * The properties of the default Grid Cell.
21
- */
22
- export interface GridCustomCellProps extends GridCellProps {
23
- /**
24
- * The props and attributes that are applied to the td element by default.
25
- */
26
- tdProps?: React.TdHTMLAttributes<HTMLTableCellElement> | null;
27
- /**
28
- * The props and attributes that are applied to the second td. Such element is
29
- * rendered in very rare cases when we have grouping and sticky columns.
30
- */
31
- td2Props?: React.TdHTMLAttributes<HTMLTableCellElement> | null;
32
- /**
33
- * The default children of the table cell.
34
- */
35
- children?: React.ReactNode | React.ReactNode[];
36
- }
37
- /**
38
- * The properties of the footer Grid Cell.
39
- */
40
- export interface GridCustomFooterCellProps extends GridFooterCellProps {
41
- /**
42
- * The props and attributes that are applied to the td element by default.
43
- */
44
- tdProps?: React.TdHTMLAttributes<HTMLTableCellElement> | null;
45
- /**
46
- * The index of the column that is rendered.
47
- */
48
- index?: number;
49
- }
50
- /**
51
- * The properties of the filter Grid Cell.
52
- */
53
- export interface GridCustomFilterCellProps extends GridFilterCellProps {
54
- /**
55
- * The props and attributes that are applied to the td element by default.
56
- */
57
- thProps?: GridThAttributes | null;
58
- /**
59
- * The default children of the table cell.
60
- */
61
- children?: React.ReactNode | React.ReactNode[];
62
- /**
63
- * The index of the column.
64
- */
65
- index?: number;
66
- }
67
- /**
68
- * The properties of the header Grid Cell.
69
- */
70
- export interface GridCustomHeaderCellProps extends GridHeaderCellProps {
71
- /**
72
- * The props and attributes that are applied to the td element by default.
73
- */
74
- thProps?: GridThAttributes | null;
75
- /**
76
- * The default children of the table cell.
77
- */
78
- children: React.ReactNode | React.ReactNode[];
79
- /**
80
- * The index of the column.
81
- */
82
- index?: number;
83
- }
84
- /**
85
- * The settings of the cells prop options.
86
- */
87
- export interface GridCellsSettings {
88
- headerCell?: ComponentType<GridCustomHeaderCellProps>;
89
- filterCell?: ComponentType<GridCustomFilterCellProps>;
90
- footerCell?: ComponentType<GridCustomFooterCellProps>;
91
- groupHeader?: ComponentType<GridCustomCellProps>;
92
- data?: ComponentType<GridCustomCellProps>;
93
- groupFooter?: ComponentType<GridCustomCellProps>;
94
- select?: {
95
- groupHeader?: ComponentType<GridCustomCellProps>;
96
- data?: ComponentType<GridCustomCellProps>;
97
- groupFooter?: ComponentType<GridCustomCellProps>;
98
- };
99
- hierarchy?: {
100
- groupHeader?: ComponentType<GridCustomCellProps>;
101
- data?: ComponentType<GridCustomCellProps>;
102
- groupFooter?: ComponentType<GridCustomCellProps>;
103
- };
104
- group?: {
105
- groupHeader?: ComponentType<GridCustomCellProps>;
106
- data?: ComponentType<GridCustomCellProps>;
107
- groupFooter?: ComponentType<GridCustomCellProps>;
108
- };
109
- edit?: {
110
- text?: ComponentType<GridCustomCellProps>;
111
- numeric?: ComponentType<GridCustomCellProps>;
112
- boolean?: ComponentType<GridCustomCellProps>;
113
- date?: ComponentType<GridCustomCellProps>;
114
- };
115
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GridColumnMenuColumnProps } from './GridColumnMenuColumnProps';
6
- /**
7
- * @hidden
8
- */
9
- export interface GridColumnMenuBaseProps {
10
- /**
11
- * The current column options.
12
- */
13
- column: GridColumnMenuColumnProps;
14
- /**
15
- * The method that will be called to close the column menu.
16
- */
17
- onCloseMenu?: Function;
18
- }
@@ -1,29 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The column props passed by the ColumnMenu.
7
- */
8
- export interface GridColumnMenuColumnProps {
9
- /**
10
- * The field to which the column is bound.
11
- */
12
- field?: string;
13
- /**
14
- * Defines the filter type that is displayed inside the filter row. Defaults to `text`.
15
- */
16
- filter?: 'text' | 'numeric' | 'boolean' | 'date';
17
- /**
18
- * The column locked state.
19
- */
20
- locked?: boolean;
21
- /**
22
- * @hidden
23
- */
24
- title?: string;
25
- /**
26
- * The column id.
27
- */
28
- id?: string;
29
- }
@@ -1,28 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
6
- import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps';
7
- import { GridFilterOperators } from './GridFilterOperators';
8
- /**
9
- * The props passed to the ColumnMenu filter component.
10
- */
11
- export interface GridColumnMenuFilterBaseProps extends GridColumnMenuBaseProps {
12
- /**
13
- * The current filter state of the Grid.
14
- */
15
- filter?: CompositeFilterDescriptor;
16
- /**
17
- * The filterable option of the column.
18
- */
19
- filterable?: boolean | undefined;
20
- /**
21
- * The filter operators for the Grid filters.
22
- */
23
- filterOperators: GridFilterOperators;
24
- /**
25
- * The method that will be called to notify the parent Grid about a filter change.
26
- */
27
- onFilterChange?: (filter: CompositeFilterDescriptor | null, syntheticEvent: React.SyntheticEvent<any>) => any;
28
- }
@@ -1,35 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GridFilterCellProps } from './GridFilterCellProps';
6
- import { GridFilterOperator } from './GridFilterOperator';
7
- /**
8
- * The props that will be passed to the UI of the ColumnMenu filter component.
9
- */
10
- export interface GridColumnMenuFilterUIProps {
11
- /**
12
- * The options of the first filter.
13
- */
14
- firstFilterProps: GridFilterCellProps;
15
- /**
16
- * The options of the second filter.
17
- */
18
- secondFilterProps: GridFilterCellProps;
19
- /**
20
- * The current value of the filter logic.
21
- */
22
- logicValue?: GridFilterOperator;
23
- /**
24
- * The list of the filter logic options.
25
- */
26
- logicData: GridFilterOperator[];
27
- /**
28
- * The method that will be called to notify the parent about a change in the filter logic.
29
- */
30
- onLogicChange: (e: any) => void;
31
- /**
32
- * Indicates if the second filter will be hidden.
33
- */
34
- hideSecondFilter?: boolean;
35
- }
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GroupDescriptor } from '@progress/kendo-data-query';
6
- import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps';
7
- /**
8
- * The props passed to the ColumnMenu group component.
9
- */
10
- export interface GridColumnMenuGroupBaseProps extends GridColumnMenuBaseProps {
11
- /**
12
- * The groupable option of the column.
13
- */
14
- groupable?: boolean;
15
- /**
16
- * The current group state of the Grid.
17
- */
18
- group?: GroupDescriptor[];
19
- /**
20
- * The method that will be called to notify the parent Grid about a group change.
21
- */
22
- onGroupChange?: (groups: GroupDescriptor[], event: React.MouseEvent<HTMLAnchorElement>) => void;
23
- }
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GridColumnMenuFilterBaseProps } from './GridColumnMenuFilterBaseProps';
6
- import { GridColumnMenuGroupBaseProps } from './GridColumnMenuGroupBaseProps';
7
- import { GridColumnMenuSortBaseProps } from './GridColumnMenuSortBaseProps';
8
- /**
9
- * The props which the ColumnMenu passes to its children.
10
- */
11
- export interface GridColumnMenuProps extends GridColumnMenuFilterBaseProps, GridColumnMenuSortBaseProps, GridColumnMenuGroupBaseProps {
12
- }
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { SortDescriptor } from '@progress/kendo-data-query';
6
- import { GridSortSettings } from './GridSortSettings';
7
- import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps';
8
- /**
9
- * The props passed to the ColumnMenu sort component.
10
- */
11
- export interface GridColumnMenuSortBaseProps extends GridColumnMenuBaseProps {
12
- /**
13
- * The sortable option of the column.
14
- */
15
- sortable?: GridSortSettings;
16
- /**
17
- * The current sort state of the Grid.
18
- */
19
- sort?: SortDescriptor[];
20
- /**
21
- * The method that will be called to notify the parent Grid about a sort change.
22
- */
23
- onSortChange?: (descriptors: SortDescriptor[], e: React.SyntheticEvent<any>) => void;
24
- }
@@ -1,92 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ComponentType, ReactElement } from 'react';
6
- import { GridCellProps } from '../interfaces/GridCellProps';
7
- import { GridFilterCellProps } from '../interfaces/GridFilterCellProps';
8
- import { GridHeaderCellProps } from '../interfaces/GridHeaderCellProps';
9
- import { GridColumnMenuProps } from '../interfaces/GridColumnMenuProps';
10
- import { GridFooterCellProps } from './GridFooterCellProps';
11
- import { GridColumnSortSettings } from './GridSortSettings';
12
- import { ColumnBaseProps } from '@progress/kendo-react-data-tools';
13
- import { GridCellsSettings } from './GridCellsSettings';
14
- /**
15
- * The props of the GridColumn component.
16
- */
17
- export interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
18
- /**
19
- * Allows the column headers to be clicked and the `sortChange` event emitted.
20
- * You have to handle the `sortChange` event yourself and sort the data.
21
- * Defaults to `true`.
22
- */
23
- sortable?: boolean | GridColumnSortSettings;
24
- /**
25
- * Defines if the column is locked (frozen or sticky).
26
- * Locked columns are the columns that are visible at all times while the user scrolls the component horizontally.
27
- * Defaults to `false`.
28
- */
29
- locked?: boolean;
30
- /**
31
- * A collection of child columns.
32
- */
33
- children?: GridColumnProps[] | ReactElement<GridColumnProps>[];
34
- /**
35
- * Specifies a React element that will be cloned and rendered inside the column menu of the Grid ([see example]({% slug column_menu_grid %}#toc-basic-usage)).
36
- */
37
- columnMenu?: ComponentType<GridColumnMenuProps>;
38
- /**
39
- * Determines if the column can be dragged to the group panel. Defaults to `true`.
40
- */
41
- groupable?: boolean;
42
- /**
43
- * Defines whether the column is editable ([more information and examples]({% slug editing_inline_grid %})).
44
- */
45
- editable?: boolean;
46
- /**
47
- * Defines if a filter UI will be rendered for this column. Defaults to `true`.
48
- */
49
- filterable?: boolean;
50
- /**
51
- * Defines the title which will be set to the input element in the filter cell.
52
- */
53
- filterTitle?: string;
54
- /**
55
- * Defines the filter type that will be rendered inside the filter row. Defaults to `text`.
56
- */
57
- filter?: 'text' | 'numeric' | 'boolean' | 'date';
58
- /**
59
- * Defines the editor type. Used when the column enters the edit mode ([more information and examples]({% slug editing_inline_grid %})). Defaults to `text`.
60
- */
61
- editor?: 'text' | 'numeric' | 'boolean' | 'date';
62
- /**
63
- * Defines the component that will be rendered as a cell. If not set, a `GridCell` will be rendered by default.
64
- */
65
- cell?: ComponentType<GridCellProps>;
66
- /**
67
- * Sets a set of cells components that the Grid will render instead of the built-in cell.
68
- */
69
- cells?: GridCellsSettings;
70
- /**
71
- * Defines the component that will be rendered as a filter cell. If not set, a `GridFilterCell` will be rendered by default.
72
- */
73
- filterCell?: ComponentType<GridFilterCellProps>;
74
- /**
75
- * Defines the component that will be rendered as a header cell. If not set, a `GridHeaderCell` will be rendered by default.
76
- */
77
- headerCell?: ComponentType<GridHeaderCellProps>;
78
- /**
79
- * Defines the component that will be rendered as a footer cell.
80
- * The footer has to render an HTML `<td>` element and applies the `style` and `colspan` values from its props.
81
- *
82
- * @example
83
- * ```jsx-no-run
84
- * <GridColumn
85
- * footerCell={props => (
86
- * <td className='k-table-td' colSpan={props.colSpan} style={props.style} role={'gridcell'}>Sum: 50</td>
87
- * )}
88
- * />
89
- * ```
90
- */
91
- footerCell?: ComponentType<GridFooterCellProps>;
92
- }
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The props of the GridDetailRow component ([see example]({% slug detailrow_grid %})).
7
- */
8
- export interface GridDetailRowProps {
9
- /**
10
- * The data object that represents the current row.
11
- */
12
- dataItem: any;
13
- /**
14
- * Zero-based index of the dataItem.
15
- */
16
- dataIndex: number;
17
- }
@@ -1,68 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GridFilterOperator } from './GridFilterOperator';
6
- /**
7
- * The props of the GridFilterCell component
8
- * ([more information]({% slug cells_grid %}#toc-filter-cells)
9
- * and [example]({% slug filtering_grid %}#toc-custom-filter-cells)).
10
- */
11
- export interface GridFilterCellProps {
12
- /**
13
- * The column field in which the cell is located.
14
- */
15
- field?: string;
16
- /**
17
- * The method that will be called if the cell needs to inform its parent Grid about a change.
18
- */
19
- onChange: (event: {
20
- value: any;
21
- operator: string | Function;
22
- syntheticEvent: React.SyntheticEvent<any>;
23
- }) => void;
24
- /**
25
- * The list of the default operators for the current filter type.
26
- */
27
- operators: GridFilterOperator[];
28
- /**
29
- * The title which will be set to the input element in the filter cell.
30
- */
31
- title?: string;
32
- /**
33
- * The type of the filter. Determines which editor will be rendered for filtering.
34
- */
35
- filterType: 'text' | 'numeric' | 'boolean' | 'date';
36
- /**
37
- * The value of the cell.
38
- */
39
- value: any;
40
- /**
41
- * The operator that will be used for the cell filtering.
42
- */
43
- operator?: string | Function;
44
- /**
45
- * The list of values for the Boolean filter.
46
- */
47
- booleanValues: GridFilterOperator[];
48
- /**
49
- * A function for overriding the default rendering of the filter cell.
50
- */
51
- render?: (row: React.ReactElement<any>, dataItem: GridFilterCellProps) => React.ReactNode;
52
- /**
53
- * Accessible label of the filter.
54
- */
55
- ariaLabel?: string;
56
- /**
57
- * Configures the `size` of the cell.
58
- *
59
- * The available options are:
60
- * - small
61
- * - medium
62
- * - large
63
- * - null&mdash;Does not set a size `className`.
64
- *
65
- * @default `medium`
66
- */
67
- size?: null | 'small' | 'medium' | 'large';
68
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { FilterOperator } from '@progress/kendo-react-data-tools';
6
- /**
7
- * The filter operator for the Grid filters.
8
- */
9
- export interface GridFilterOperator extends FilterOperator {
10
- }
@@ -1,53 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GridFilterOperator } from './GridFilterOperator';
6
- /**
7
- * The filter operators for the Grid filters.
8
- *
9
- * @example
10
- * ```jsx-no-run
11
- * // Default Grid filter operators:
12
- * const filterOperators: {
13
- * 'text': [
14
- * { text: 'grid.filterContainsOperator', operator: 'contains' },
15
- * { text: 'grid.filterNotContainsOperator', operator: 'doesnotcontain' },
16
- * { text: 'grid.filterEqOperator', operator: 'eq' },
17
- * { text: 'grid.filterNotEqOperator', operator: 'neq' },
18
- * { text: 'grid.filterStartsWithOperator', operator: 'startswith' },
19
- * { text: 'grid.filterEndsWithOperator', operator: 'endswith' },
20
- * { text: 'grid.filterIsNullOperator', operator: 'isnull' },
21
- * { text: 'grid.filterIsNotNullOperator', operator: 'isnotnull' },
22
- * { text: 'grid.filterIsEmptyOperator', operator: 'isempty' },
23
- * { text: 'grid.filterIsNotEmptyOperator', operator: 'isnotempty' }
24
- * ],
25
- * 'numeric': [
26
- * { text: 'grid.filterEqOperator', operator: 'eq' },
27
- * { text: 'grid.filterNotEqOperator', operator: 'neq' },
28
- * { text: 'grid.filterGteOperator', operator: 'gte' },
29
- * { text: 'grid.filterGtOperator', operator: 'gt' },
30
- * { text: 'grid.filterLteOperator', operator: 'lte' },
31
- * { text: 'grid.filterLtOperator', operator: 'lt' },
32
- * { text: 'grid.filterIsNullOperator', operator: 'isnull' },
33
- * { text: 'grid.filterIsNotNullOperator', operator: 'isnotnull' }
34
- * ],
35
- * 'date': [
36
- * { text: 'grid.filterEqOperator', operator: 'eq' },
37
- * { text: 'grid.filterNotEqOperator', operator: 'neq' },
38
- * { text: 'grid.filterAfterOrEqualOperator', operator: 'gte' },
39
- * { text: 'grid.filterAfterOperator', operator: 'gt' },
40
- * { text: 'grid.filterBeforeOperator', operator: 'lt' },
41
- * { text: 'grid.filterBeforeOrEqualOperator', operator: 'lte' },
42
- * { text: 'grid.filterIsNullOperator', operator: 'isnull' },
43
- * { text: 'grid.filterIsNotNullOperator', operator: 'isnotnull' }
44
- * ],
45
- * 'boolean': [
46
- * { text: 'grid.filterEqOperator', operator: 'eq' }
47
- * ]
48
- * }
49
- * ```
50
- */
51
- export interface GridFilterOperators {
52
- [type: string]: GridFilterOperator[];
53
- }
@@ -1,26 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The props of the GridFooterCell component
7
- * ([see example]({% slug cells_grid %}#toc-footer-cells)).
8
- */
9
- export interface GridFooterCellProps {
10
- /**
11
- * The field to which the footer cell is bound.
12
- */
13
- field?: string;
14
- /**
15
- * The styles of the footer cell.
16
- */
17
- style?: React.CSSProperties;
18
- /**
19
- * The `colSpan` of the footer cell.
20
- */
21
- colSpan?: number;
22
- /**
23
- * The index to be applied to the `aria-colindex` attribute.
24
- */
25
- ariaColumnIndex: number;
26
- }
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The settings for grouping the data of the Grid ([see example]({% slug groupingaggregates_grid %})).
7
- */
8
- export interface GridGroupableSettings {
9
- /**
10
- * Determines if grouping by dragging and dropping the column headers is allowed and if the group header is visible.
11
- */
12
- enabled?: boolean;
13
- /**
14
- * Determines if the group footer row is visible when the group is collapsed. Defaults to `none`.
15
- */
16
- footer?: 'always' | 'visible' | 'none';
17
- }
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { HeaderCellBaseProps } from '@progress/kendo-react-data-tools';
6
- import { GridColumnMenuWrapperProps } from '../columnMenu/GridColumnMenuWrapper';
7
- /**
8
- * The props of the GridHeaderCell component
9
- * ([more information]({% slug cells_grid %}#toc-header-cells)).
10
- */
11
- export interface GridHeaderCellProps extends Omit<HeaderCellBaseProps, 'render'> {
12
- /**
13
- * A function for overriding the default rendering of the header cell.
14
- */
15
- render?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
16
- /**
17
- * The props of the Grid column menu wrapper.
18
- */
19
- columnMenuWrapperProps: GridColumnMenuWrapperProps;
20
- /**
21
- * @hidden
22
- */
23
- id?: string;
24
- }
@@ -1,13 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The props of the GridNoRecords component.
7
- */
8
- export interface GridNoRecordsProps {
9
- /**
10
- * The React elements that will be rendered inside the Grid when no records are available.
11
- */
12
- children?: React.ReactNode;
13
- }