@progress/kendo-react-grid 13.3.0-develop.9 → 13.4.0-develop.1
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/BasePDFExport.d.ts +31 -0
- package/Grid.d.ts +129 -0
- package/GridClientContextReader.d.ts +17 -0
- package/GridClientWrapper.d.ts +32 -0
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +21 -25
- package/GridColumn.d.ts +51 -0
- package/GridComponent.d.ts +14 -0
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +35 -35
- package/GridPdfExportButton.d.ts +18 -0
- package/GridSearchBox.d.ts +27 -0
- package/GridState.d.ts +30 -0
- package/GridToolbar.d.ts +48 -0
- package/ScrollMode.d.ts +8 -0
- package/StatusBar.d.ts +59 -0
- package/VirtualScroll.d.ts +45 -0
- package/cells/GridDetailHierarchyCell.d.ts +16 -0
- package/cells/GridFilterCell.d.ts +10 -0
- package/cells/GridFilterCell.mjs +4 -4
- package/cells/datacell/GridCell.d.ts +15 -0
- package/cells/datacell/GridCellServer.d.ts +15 -0
- package/cells/datacell/GridCellServerContainer.d.ts +11 -0
- package/cells/datacell/useCellClientTdProps.d.ts +69 -0
- package/cells/datacell/utils.d.ts +20 -0
- package/cells/detailcell/GridDetailCell.d.ts +23 -0
- package/cells/detailcell/GridDetailCellServer.d.ts +11 -0
- package/cells/detailcell/GridDetailCellServerContainer.d.ts +12 -0
- package/cells/detailcell/useDetailCellClientTdProps.d.ts +23 -0
- package/cells/detailcell/utils.d.ts +19 -0
- package/cells/editcell/GridEditCell.d.ts +15 -0
- package/cells/editcell/GridEditCellEditor.d.ts +11 -0
- package/cells/editcell/GridEditCellServer.d.ts +15 -0
- package/cells/editcell/GridEditCellServerContainer.d.ts +11 -0
- package/cells/editcell/useEditCellClientTdProps.d.ts +25 -0
- package/cells/editcell/utils.d.ts +19 -0
- package/cells/groupcell/GridGroupCell.d.ts +15 -0
- package/cells/groupcell/GridGroupCellServer.d.ts +15 -0
- package/cells/groupcell/GridGroupCellServerContainer.d.ts +12 -0
- package/cells/groupcell/GridGroupCellToggle.d.ts +13 -0
- package/cells/groupcell/useGroupCellClientTdProps.d.ts +41 -0
- package/cells/groupcell/utils.d.ts +22 -0
- package/cells/hierarchycell/GridHierarchyCell.d.ts +15 -0
- package/cells/hierarchycell/GridHierarchyCellServer.d.ts +15 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.d.ts +11 -0
- package/cells/hierarchycell/GridHierarchyCellToggle.d.ts +13 -0
- package/cells/hierarchycell/GridHierarchyCellToggle.mjs +2 -2
- package/cells/hierarchycell/useHierarchyCellClientTdProps.d.ts +32 -0
- package/cells/hierarchycell/utils.d.ts +20 -0
- package/cells/hooks.d.ts +25 -0
- package/cells/rowreordercell/GridRowReorderCell.d.ts +15 -0
- package/cells/rowreordercell/GridRowReorderCellServer.d.ts +15 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.d.ts +11 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.d.ts +27 -0
- package/cells/rowreordercell/utils.d.ts +15 -0
- package/cells/selectioncell/GridSelectionCell.d.ts +15 -0
- package/cells/selectioncell/GridSelectionCellInput.d.ts +13 -0
- package/cells/selectioncell/GridSelectionCellServer.d.ts +15 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.d.ts +11 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.d.ts +25 -0
- package/cells/selectioncell/utils.d.ts +25 -0
- package/codemods/v11/cell-render.js +2 -9
- package/codemods/v11/column-cell.js +2 -9
- package/codemods/v11/column-filter-cell.js +2 -9
- package/codemods/v11/column-footer-cell.js +2 -9
- package/codemods/v11/column-header-cell.js +2 -9
- package/codemods/v11/detail-expand-state.js +2 -9
- package/codemods/v11/edit-state.js +2 -9
- package/codemods/v11/filter-cell-render.js +2 -9
- package/codemods/v11/group-expand-state.js +2 -9
- package/codemods/v11/header-cell-render.js +2 -9
- package/codemods/v11/index.js +0 -7
- package/codemods/v11/row-render.js +2 -9
- package/codemods/v11/selection-state.js +2 -9
- package/codemods/v11/utils.js +2 -9
- package/columnMenu/GridColumnMenuCheckboxFilter.d.ts +58 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +0 -1
- package/columnMenu/GridColumnMenuColumnsChooser.d.ts +30 -0
- package/columnMenu/GridColumnMenuColumnsList.d.ts +34 -0
- package/columnMenu/GridColumnMenuFilter.d.ts +101 -0
- package/columnMenu/GridColumnMenuFilterCell.d.ts +29 -0
- package/columnMenu/GridColumnMenuFilterUI.d.ts +13 -0
- package/columnMenu/GridColumnMenuGroup.d.ts +61 -0
- package/columnMenu/GridColumnMenuGroup.mjs +3 -3
- package/columnMenu/GridColumnMenuItem.d.ts +48 -0
- package/columnMenu/GridColumnMenuItemContent.d.ts +22 -0
- package/columnMenu/GridColumnMenuItemGroup.d.ts +18 -0
- package/columnMenu/GridColumnMenuSort.d.ts +67 -0
- package/columnMenu/GridColumnMenuWrapper.d.ts +33 -0
- package/columnMenu/GridColumnMenuWrapper.mjs +5 -5
- package/columnMenu/adaptiveContent/GridActionSheetFooter.d.ts +26 -0
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.d.ts +27 -0
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +4 -4
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.d.ts +32 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +3 -3
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.d.ts +12 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +4 -4
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.d.ts +27 -0
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +8 -8
- package/columnMenu/adaptiveContext/GridColumnMenuAdaptiveContext.d.ts +23 -0
- package/components/GridContainerElementContainer.d.ts +12 -0
- package/components/GridDragClue.d.ts +12 -0
- package/components/GridDraggableRowsContainer.d.ts +20 -0
- package/components/GridDropClue.d.ts +12 -0
- package/components/GridEditDialog.d.ts +22 -0
- package/components/GridEditDialog.mjs +1 -1
- package/components/GridElementContainer.d.ts +14 -0
- package/components/GridLoader.d.ts +17 -0
- package/components/PagerContainer.d.ts +12 -0
- package/components/VirtualScrollHeightContainer.d.ts +12 -0
- package/components/colGroup/GridColGroup.d.ts +12 -0
- package/components/icons/reorder-row-svg.d.ts +12 -0
- package/components/noRecords/GridNoRecords.d.ts +31 -0
- package/components/noRecords/GridNoRecordsContainer.d.ts +15 -0
- package/components/noRecords/GridNoRecordsContainer.mjs +1 -1
- package/components/table/GridTable.d.ts +12 -0
- package/components/table/GridTableBody.d.ts +12 -0
- package/components/table/GridTableScrollable.d.ts +12 -0
- package/components/utils.d.ts +21 -0
- package/constants/index.d.ts +15 -0
- package/constants/index.mjs +2 -2
- package/contextMenu/GridContextMenu.d.ts +205 -0
- package/contextMenu/GridContextMenu.mjs +19 -19
- package/contextMenu/enums.d.ts +36 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/ColumnDraggable.d.ts +26 -0
- package/drag/ColumnResize.d.ts +47 -0
- package/drag/CommonDragLogic.d.ts +50 -0
- package/drag/GroupingIndicator.d.ts +26 -0
- package/drag/GroupingIndicator.js +1 -1
- package/drag/GroupingIndicator.mjs +20 -20
- package/filterCommon.d.ts +86 -0
- package/footer/Footer.d.ts +38 -0
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +9 -9
- package/footer/FooterCell.d.ts +19 -0
- package/footer/FooterRow.d.ts +23 -0
- package/footer/client/FooterCellContainer.d.ts +12 -0
- package/header/FilterRow.d.ts +35 -0
- package/header/GridHeaderCell.d.ts +48 -0
- package/header/GridHeaderSelectionCell.d.ts +13 -0
- package/header/GroupPanel.d.ts +23 -0
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +11 -11
- package/header/Header.d.ts +44 -0
- package/header/Header.js +1 -1
- package/header/Header.mjs +1 -1
- package/header/HeaderRow.d.ts +45 -0
- package/header/client/GridFilterCellContainer.d.ts +12 -0
- package/header/client/GridFilterCellElementContainer.d.ts +12 -0
- package/header/client/GridHeaderCellContainer.d.ts +12 -0
- package/header/client/GridHeaderCellElementContainer.d.ts +12 -0
- package/header/client/GridHeaderRowContainer.d.ts +16 -0
- package/header/client/GridHeaderRowReorderCell.d.ts +12 -0
- package/header/client/HeaderCellResizer.d.ts +11 -0
- package/header/client/HeaderRowDraggable.d.ts +11 -0
- package/index.d.mts +84 -5356
- package/index.d.ts +84 -5356
- package/interfaces/ColumnType.d.ts +13 -0
- package/interfaces/CompositeHighlightDescriptor.d.ts +29 -0
- package/interfaces/GridAIAssistantCommand.d.ts +110 -0
- package/interfaces/GridAICommands.d.ts +60 -0
- package/interfaces/GridCellProps.d.ts +112 -0
- package/interfaces/GridCellRenderModel.d.ts +15 -0
- package/interfaces/GridCellsSettings.d.ts +366 -0
- package/interfaces/GridColSpanProps.d.ts +21 -0
- package/interfaces/GridColumnChildrenProps.d.ts +18 -0
- package/interfaces/GridColumnMenuBaseProps.d.ts +21 -0
- package/interfaces/GridColumnMenuColumnProps.d.ts +32 -0
- package/interfaces/GridColumnMenuColumnsChooserBaseProps.d.ts +22 -0
- package/interfaces/GridColumnMenuFilterBaseProps.d.ts +31 -0
- package/interfaces/GridColumnMenuFilterUIProps.d.ts +38 -0
- package/interfaces/GridColumnMenuGroupBaseProps.d.ts +26 -0
- package/interfaces/GridColumnMenuProps.d.ts +24 -0
- package/interfaces/GridColumnMenuSortBaseProps.d.ts +27 -0
- package/interfaces/GridColumnProps.d.ts +230 -0
- package/interfaces/GridColumnState.d.ts +52 -0
- package/interfaces/GridDataType.d.ts +12 -0
- package/interfaces/GridDetailExpandableSettings.d.ts +11 -0
- package/interfaces/GridDetailRowProps.d.ts +20 -0
- package/interfaces/GridEditDialogProps.d.ts +30 -0
- package/interfaces/GridEditableSettings.d.ts +16 -0
- package/interfaces/GridFilterCellProps.d.ts +67 -0
- package/interfaces/GridFilterOperator.d.ts +13 -0
- package/interfaces/GridFilterOperators.d.ts +56 -0
- package/interfaces/GridFooterCellProps.d.ts +29 -0
- package/interfaces/GridGroupExpandableSettings.d.ts +22 -0
- package/interfaces/GridGroupableSettings.d.ts +25 -0
- package/interfaces/GridHeaderCellProps.d.ts +23 -0
- package/interfaces/GridHighlightDescriptor.d.ts +16 -0
- package/interfaces/GridNoRecordsProps.d.ts +16 -0
- package/interfaces/GridProps.d.ts +1083 -0
- package/interfaces/GridReorderDropDir.d.ts +11 -0
- package/interfaces/GridRowProps.d.ts +75 -0
- package/interfaces/GridRowReorderSettings.d.ts +25 -0
- package/interfaces/GridRowSpannableSettings.d.ts +21 -0
- package/interfaces/GridRowType.d.ts +16 -0
- package/interfaces/GridRowsSettings.d.ts +57 -0
- package/interfaces/GridSelectableSettings.d.ts +25 -0
- package/interfaces/GridSortSettings.d.ts +26 -0
- package/interfaces/GridStackedLayoutSettings.d.ts +60 -0
- package/interfaces/GridToolbarProps.d.ts +17 -0
- package/interfaces/VirtualScrollInterface.d.ts +29 -0
- package/interfaces/events.d.ts +357 -0
- package/interfaces/index.d.ts +15 -0
- package/messages/index.d.ts +365 -0
- package/messages/messagesMap.d.ts +14 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +17 -17
- package/paging/GridPagerSettings.d.ts +89 -0
- package/paging/Page.d.ts +20 -0
- package/rows/GridDetailRow.d.ts +41 -0
- package/rows/GridDetailRowRenderer.d.ts +48 -0
- package/rows/GridRow.d.ts +13 -0
- package/rows/GridRowRenderer.d.ts +47 -0
- package/sortCommon.d.ts +20 -0
- package/stacked/GridStackedCell.d.ts +67 -0
- package/stacked/GridStackedDetailToggle.d.ts +20 -0
- package/stacked/GridStackedDetailToggle.mjs +2 -2
- package/stacked/GridStackedRow.d.ts +214 -0
- package/stacked/StackedModeComponents.d.ts +45 -0
- package/stacked/StackedModeRow.d.ts +46 -0
- package/toolbar-tools/GridToolbarAIAssistant.d.ts +246 -0
- package/toolbar-tools/GridToolbarCheckboxFilter.d.ts +89 -0
- package/toolbar-tools/GridToolbarCheckboxFilter.js +1 -1
- package/toolbar-tools/GridToolbarCheckboxFilter.mjs +0 -1
- package/toolbar-tools/GridToolbarColumnsChooser.d.ts +55 -0
- package/toolbar-tools/GridToolbarFilter.d.ts +72 -0
- package/toolbar-tools/GridToolbarFilter.mjs +5 -5
- package/toolbar-tools/GridToolbarGroup.d.ts +55 -0
- package/toolbar-tools/GridToolbarSeparator.d.ts +21 -0
- package/toolbar-tools/GridToolbarSort.d.ts +55 -0
- package/toolbar-tools/GridToolbarSpacer.d.ts +21 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.d.ts +35 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.mjs +3 -3
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.d.ts +33 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.mjs +3 -3
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarFilter.d.ts +34 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarFilter.mjs +3 -3
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.d.ts +26 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.d.ts +27 -0
- package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.d.ts +23 -0
- package/toolbar-tools/ai-tool/GridAIPrompt.d.ts +160 -0
- package/utils/GridContext.d.ts +12 -0
- package/utils/_clientModule.d.ts +11 -0
- package/utils/_serverModule.d.ts +12 -0
- package/utils/handleAIResponse.d.ts +221 -0
- package/utils/index.d.ts +185 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +2 -2
- package/utils/premium.d.ts +31 -0
- package/utils/virtualColumns.d.ts +18 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ComponentType } from 'react';
|
|
9
|
+
import { TABLE_COL_INDEX_ATTRIBUTE, HeaderThElementProps } from '@progress/kendo-react-data-tools';
|
|
10
|
+
import { GridCellProps } from './GridCellProps.js';
|
|
11
|
+
import { GridFooterCellProps } from './GridFooterCellProps.js';
|
|
12
|
+
import { GridFilterCellProps } from './GridFilterCellProps.js';
|
|
13
|
+
import { GridHeaderCellProps } from './GridHeaderCellProps.js';
|
|
14
|
+
import { GridStackedCustomCellProps } from '../stacked/GridStackedRow.js';
|
|
15
|
+
/**
|
|
16
|
+
* Represents the attributes for Grid table cell elements, extending standard HTML td element properties.
|
|
17
|
+
*/
|
|
18
|
+
export interface GridTdAttributes extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
19
|
+
/**
|
|
20
|
+
* The column index attribute used for grid operations.
|
|
21
|
+
*/
|
|
22
|
+
[TABLE_COL_INDEX_ATTRIBUTE]?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The unique identifier of the column.
|
|
25
|
+
*/
|
|
26
|
+
columnId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The React key for the element.
|
|
29
|
+
*/
|
|
30
|
+
key?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the attributes for Grid header cell elements, extending standard HTML th element properties.
|
|
34
|
+
*/
|
|
35
|
+
export interface GridThAttributes extends HeaderThElementProps {
|
|
36
|
+
/**
|
|
37
|
+
* The unique identifier of the column.
|
|
38
|
+
*/
|
|
39
|
+
columnId: string;
|
|
40
|
+
/**
|
|
41
|
+
* The React key for the element.
|
|
42
|
+
*/
|
|
43
|
+
key?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The properties of the default Grid Cell.
|
|
47
|
+
*/
|
|
48
|
+
export interface GridCustomCellProps extends GridCellProps {
|
|
49
|
+
/**
|
|
50
|
+
* The props and attributes that are applied to the td element by default.
|
|
51
|
+
*/
|
|
52
|
+
tdProps?: React.TdHTMLAttributes<HTMLTableCellElement> | null;
|
|
53
|
+
/**
|
|
54
|
+
* The props and attributes that are applied to the second td. Such element is
|
|
55
|
+
* rendered in very rare cases when we have grouping and sticky columns.
|
|
56
|
+
*/
|
|
57
|
+
td2Props?: React.TdHTMLAttributes<HTMLTableCellElement> | null;
|
|
58
|
+
/**
|
|
59
|
+
* The default children of the table cell.
|
|
60
|
+
*/
|
|
61
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The properties of the footer Grid Cell.
|
|
65
|
+
*/
|
|
66
|
+
export interface GridCustomFooterCellProps extends GridFooterCellProps {
|
|
67
|
+
/**
|
|
68
|
+
* The props and attributes that are applied to the td element by default.
|
|
69
|
+
*/
|
|
70
|
+
tdProps?: React.TdHTMLAttributes<HTMLTableCellElement> | null;
|
|
71
|
+
/**
|
|
72
|
+
* The index of the column that is rendered.
|
|
73
|
+
*/
|
|
74
|
+
index?: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The properties of the filter Grid Cell.
|
|
78
|
+
*/
|
|
79
|
+
export interface GridCustomFilterCellProps extends GridFilterCellProps {
|
|
80
|
+
/**
|
|
81
|
+
* The props and attributes that are applied to the th element by default.
|
|
82
|
+
*/
|
|
83
|
+
thProps?: GridThAttributes | null;
|
|
84
|
+
/**
|
|
85
|
+
* The props and attributes that are applied to the td element by default.
|
|
86
|
+
*/
|
|
87
|
+
tdProps?: GridTdAttributes | null;
|
|
88
|
+
/**
|
|
89
|
+
* The default children of the table cell.
|
|
90
|
+
*/
|
|
91
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
92
|
+
/**
|
|
93
|
+
* The index of the column.
|
|
94
|
+
*/
|
|
95
|
+
index?: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The properties of the header Grid Cell.
|
|
99
|
+
*/
|
|
100
|
+
export interface GridCustomHeaderCellProps extends GridHeaderCellProps {
|
|
101
|
+
/**
|
|
102
|
+
* The props and attributes that are applied to the `th` element by default. The property should be used with the [HeaderThElement](https://www.telerik.com/kendo-react-ui/components/datatools/api/headerthelement) component as demonstrated in [this example](https://www.telerik.com/kendo-react-ui/components/grid/cells#toc-group-header-group-footer-header-cell-footer-cell-filter-cell-and-data-cell).
|
|
103
|
+
*/
|
|
104
|
+
thProps?: GridThAttributes | null;
|
|
105
|
+
/**
|
|
106
|
+
* The default children of the table cell.
|
|
107
|
+
*/
|
|
108
|
+
children: React.ReactNode | React.ReactNode[];
|
|
109
|
+
/**
|
|
110
|
+
* The index of the column.
|
|
111
|
+
*/
|
|
112
|
+
index?: number;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The settings of the cells prop options.
|
|
116
|
+
*/
|
|
117
|
+
export interface GridCellsSettings {
|
|
118
|
+
/**
|
|
119
|
+
* Custom component for rendering the header cell.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```tsx
|
|
123
|
+
* import { MyHeaderCell } from './MyHeaderCell.js';
|
|
124
|
+
* <Grid cells={{ headerCell: MyHeaderCell }} />
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
headerCell?: ComponentType<GridCustomHeaderCellProps>;
|
|
128
|
+
/**
|
|
129
|
+
* Custom component for rendering the filter cell.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```tsx
|
|
133
|
+
* import { MyFilterCell } from './MyFilterCell.js';
|
|
134
|
+
* <Grid cells={{ filterCell: MyFilterCell }} />
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
filterCell?: ComponentType<GridCustomFilterCellProps>;
|
|
138
|
+
/**
|
|
139
|
+
* Custom component for rendering the footer cell.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```tsx
|
|
143
|
+
* import { MyFooterCell } from './MyFooterCell.js';
|
|
144
|
+
* <Grid cells={{ footerCell: MyFooterCell }} />
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
footerCell?: ComponentType<GridCustomFooterCellProps>;
|
|
148
|
+
/**
|
|
149
|
+
* Custom component for rendering the group header cell.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```tsx
|
|
153
|
+
* import { MyGroupHeaderCell } from './MyGroupHeaderCell.js';
|
|
154
|
+
* <Grid cells={{ groupHeader: MyGroupHeaderCell }} />
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
158
|
+
/**
|
|
159
|
+
* Custom component for rendering the data cell in table layout mode.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```tsx
|
|
163
|
+
* import { MyDataCell } from './MyDataCell.js';
|
|
164
|
+
* <Grid cells={{ data: MyDataCell }} />
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
data?: ComponentType<GridCustomCellProps>;
|
|
168
|
+
/**
|
|
169
|
+
* Custom component for rendering the data cell in stacked layout mode.
|
|
170
|
+
* When both `stackedData` and `data` are provided, `stackedData` takes precedence in stacked layout.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```tsx
|
|
174
|
+
* import { MyStackedDataCell } from './MyStackedDataCell.js';
|
|
175
|
+
* <Grid
|
|
176
|
+
* stackedLayout={{ enabled: true }}
|
|
177
|
+
* cells={{ stackedData: MyStackedDataCell }}
|
|
178
|
+
* />
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
stackedData?: ComponentType<GridStackedCustomCellProps>;
|
|
182
|
+
/**
|
|
183
|
+
* Custom component for rendering the group footer cell.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```tsx
|
|
187
|
+
* import { MyGroupFooterCell } from './MyGroupFooterCell.js';
|
|
188
|
+
* <Grid cells={{ groupFooter: MyGroupFooterCell }} />
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
192
|
+
/**
|
|
193
|
+
* Custom cell components for selection columns.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```tsx
|
|
197
|
+
* import { MySelectDataCell } from './MySelectDataCell.js';
|
|
198
|
+
* <Grid cells={{ select: { data: MySelectDataCell } }} />
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
select?: {
|
|
202
|
+
/**
|
|
203
|
+
* Custom component for rendering the group header cell in selection columns.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```tsx
|
|
207
|
+
* import { MySelectGroupHeaderCell } from './MySelectGroupHeaderCell.js';
|
|
208
|
+
* <Grid cells={{ select: { groupHeader: MySelectGroupHeaderCell } }} />
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
212
|
+
/**
|
|
213
|
+
* Custom component for rendering the data cell in selection columns.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```tsx
|
|
217
|
+
* import { MySelectDataCell } from './MySelectDataCell.js';
|
|
218
|
+
* <Grid cells={{ select: { data: MySelectDataCell } }} />
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
data?: ComponentType<GridCustomCellProps>;
|
|
222
|
+
/**
|
|
223
|
+
* Custom component for rendering the group footer cell in selection columns.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```tsx
|
|
227
|
+
* import { MySelectGroupFooterCell } from './MySelectGroupFooterCell.js';
|
|
228
|
+
* <Grid cells={{ select: { groupFooter: MySelectGroupFooterCell } }} />
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Custom cell components for hierarchy columns.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* ```tsx
|
|
238
|
+
* import { MyHierarchyDataCell } from './MyHierarchyDataCell.js';
|
|
239
|
+
* <Grid cells={{ hierarchy: { data: MyHierarchyDataCell } }} />
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
hierarchy?: {
|
|
243
|
+
/**
|
|
244
|
+
* Custom component for rendering the group header cell in hierarchy columns.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```tsx
|
|
248
|
+
* import { MyHierarchyGroupHeaderCell } from './MyHierarchyGroupHeaderCell.js';
|
|
249
|
+
* <Grid cells={{ hierarchy: { groupHeader: MyHierarchyGroupHeaderCell } }} />
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
253
|
+
/**
|
|
254
|
+
* Custom component for rendering the data cell in hierarchy columns.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```tsx
|
|
258
|
+
* import { MyHierarchyDataCell } from './MyHierarchyDataCell.js';
|
|
259
|
+
* <Grid cells={{ hierarchy: { data: MyHierarchyDataCell } }} />
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
data?: ComponentType<GridCustomCellProps>;
|
|
263
|
+
/**
|
|
264
|
+
* Custom component for rendering the group footer cell in hierarchy columns.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* ```tsx
|
|
268
|
+
* import { MyHierarchyGroupFooterCell } from './MyHierarchyGroupFooterCell.js';
|
|
269
|
+
* <Grid cells={{ hierarchy: { groupFooter: MyHierarchyGroupFooterCell } }} />
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Custom cell components for group columns.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```tsx
|
|
279
|
+
* import { MyGroupDataCell } from './MyGroupDataCell.js';
|
|
280
|
+
* <Grid cells={{ group: { data: MyGroupDataCell } }} />
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
group?: {
|
|
284
|
+
/**
|
|
285
|
+
* Custom component for rendering the group header cell in group columns.
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* ```tsx
|
|
289
|
+
* import { MyGroupGroupHeaderCell } from './MyGroupGroupHeaderCell.js';
|
|
290
|
+
* <Grid cells={{ group: { groupHeader: MyGroupGroupHeaderCell } }} />
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
294
|
+
/**
|
|
295
|
+
* Custom component for rendering the data cell in group columns.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```tsx
|
|
299
|
+
* import { MyGroupDataCell } from './MyGroupDataCell.js';
|
|
300
|
+
* <Grid cells={{ group: { data: MyGroupDataCell } }} />
|
|
301
|
+
* ```
|
|
302
|
+
*/
|
|
303
|
+
data?: ComponentType<GridCustomCellProps>;
|
|
304
|
+
/**
|
|
305
|
+
* Custom component for rendering the group footer cell in group columns.
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```tsx
|
|
309
|
+
* import { MyGroupGroupFooterCell } from './MyGroupGroupFooterCell.js';
|
|
310
|
+
* <Grid cells={{ group: { groupFooter: MyGroupGroupFooterCell } }} />
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Custom cell components for edit columns.
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* ```tsx
|
|
320
|
+
* import { MyTextEditCell } from './MyTextEditCell.js';
|
|
321
|
+
* <Grid cells={{ edit: { text: MyTextEditCell } }} />
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
edit?: {
|
|
325
|
+
/**
|
|
326
|
+
* Custom component for rendering the text edit cell.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```tsx
|
|
330
|
+
* import { MyTextEditCell } from './MyTextEditCell.js';
|
|
331
|
+
* <Grid cells={{ edit: { text: MyTextEditCell } }} />
|
|
332
|
+
* ```
|
|
333
|
+
*/
|
|
334
|
+
text?: ComponentType<GridCustomCellProps>;
|
|
335
|
+
/**
|
|
336
|
+
* Custom component for rendering the numeric edit cell.
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```tsx
|
|
340
|
+
* import { MyNumericEditCell } from './MyNumericEditCell.js';
|
|
341
|
+
* <Grid cells={{ edit: { numeric: MyNumericEditCell } }} />
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
344
|
+
numeric?: ComponentType<GridCustomCellProps>;
|
|
345
|
+
/**
|
|
346
|
+
* Custom component for rendering the boolean edit cell.
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* ```tsx
|
|
350
|
+
* import { MyBooleanEditCell } from './MyBooleanEditCell.js';
|
|
351
|
+
* <Grid cells={{ edit: { boolean: MyBooleanEditCell } }} />
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
boolean?: ComponentType<GridCustomCellProps>;
|
|
355
|
+
/**
|
|
356
|
+
* Custom component for rendering the date edit cell.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* ```tsx
|
|
360
|
+
* import { MyDateEditCell } from './MyDateEditCell.js';
|
|
361
|
+
* <Grid cells={{ edit: { date: MyDateEditCell } }} />
|
|
362
|
+
* ```
|
|
363
|
+
*/
|
|
364
|
+
date?: ComponentType<GridCustomCellProps>;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridColumnProps } from './GridColumnProps.js';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the properties of the callback used when spanning a column.
|
|
11
|
+
*/
|
|
12
|
+
export type GridColSpanProps = {
|
|
13
|
+
/**
|
|
14
|
+
* Represents the properties of the spanned column.
|
|
15
|
+
*/
|
|
16
|
+
column: GridColumnProps;
|
|
17
|
+
/**
|
|
18
|
+
* Represents the current row data item.
|
|
19
|
+
*/
|
|
20
|
+
dataItem: any;
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ReactElement } from 'react';
|
|
9
|
+
import { GridColumnProps } from './GridColumnProps.js';
|
|
10
|
+
/**
|
|
11
|
+
* The type of elements that the children property of the Grid accepts.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnChildrenProps extends GridColumnProps, ReactElement<GridColumnProps> {
|
|
14
|
+
/**
|
|
15
|
+
* The props object containing GridColumn properties.
|
|
16
|
+
*/
|
|
17
|
+
props: GridColumnProps;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridColumnMenuColumnProps } from './GridColumnMenuColumnProps.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface GridColumnMenuBaseProps {
|
|
13
|
+
/**
|
|
14
|
+
* The current column options.
|
|
15
|
+
*/
|
|
16
|
+
column: GridColumnMenuColumnProps;
|
|
17
|
+
/**
|
|
18
|
+
* The method that will be called to close the column menu.
|
|
19
|
+
*/
|
|
20
|
+
onCloseMenu?: Function;
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The column props passed by the ColumnMenu.
|
|
10
|
+
*/
|
|
11
|
+
export interface GridColumnMenuColumnProps {
|
|
12
|
+
/**
|
|
13
|
+
* The field to which the column is bound.
|
|
14
|
+
*/
|
|
15
|
+
field?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the filter type that is displayed inside the filter row. Defaults to `text`.
|
|
18
|
+
*/
|
|
19
|
+
filter?: 'text' | 'numeric' | 'boolean' | 'date';
|
|
20
|
+
/**
|
|
21
|
+
* The column locked state.
|
|
22
|
+
*/
|
|
23
|
+
locked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The column id.
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps.js';
|
|
9
|
+
import { GridColumnState } from './GridColumnState.js';
|
|
10
|
+
/**
|
|
11
|
+
* The props passed to the ColumnMenu ColumnsChooser component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuColumnsChooserBaseProps extends GridColumnMenuBaseProps {
|
|
14
|
+
/**
|
|
15
|
+
* The columns state of the KendoReact GridColumnMenuColumnsChooser component.
|
|
16
|
+
*/
|
|
17
|
+
columnsState?: GridColumnState[];
|
|
18
|
+
/**
|
|
19
|
+
* The method that will be called when the new columns state is applied.
|
|
20
|
+
*/
|
|
21
|
+
onColumnsStateChange?: Function;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps.js';
|
|
10
|
+
import { GridFilterOperators } from './GridFilterOperators.js';
|
|
11
|
+
/**
|
|
12
|
+
* The props passed to the ColumnMenu filter component.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridColumnMenuFilterBaseProps extends GridColumnMenuBaseProps {
|
|
15
|
+
/**
|
|
16
|
+
* The current filter state of the Grid.It takes value of type [CompositeFilterDescriptor](https://www.telerik.com/kendo-react-ui/components/datatools/api/compositefilterdescriptor)
|
|
17
|
+
*/
|
|
18
|
+
filter?: CompositeFilterDescriptor;
|
|
19
|
+
/**
|
|
20
|
+
* The filterable option of the column.
|
|
21
|
+
*/
|
|
22
|
+
filterable?: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The filter operators for the Grid filters.
|
|
25
|
+
*/
|
|
26
|
+
filterOperators: GridFilterOperators;
|
|
27
|
+
/**
|
|
28
|
+
* The method that will be called to notify the parent Grid about a filter change.
|
|
29
|
+
*/
|
|
30
|
+
onFilterChange?: (filter: CompositeFilterDescriptor | null, syntheticEvent: React.SyntheticEvent<any>) => any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridFilterCellProps } from './GridFilterCellProps.js';
|
|
9
|
+
import { GridFilterOperator } from './GridFilterOperator.js';
|
|
10
|
+
/**
|
|
11
|
+
* The props that will be passed to the UI of the ColumnMenu filter component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuFilterUIProps {
|
|
14
|
+
/**
|
|
15
|
+
* The options of the first filter.
|
|
16
|
+
*/
|
|
17
|
+
firstFilterProps: GridFilterCellProps;
|
|
18
|
+
/**
|
|
19
|
+
* The options of the second filter.
|
|
20
|
+
*/
|
|
21
|
+
secondFilterProps: GridFilterCellProps;
|
|
22
|
+
/**
|
|
23
|
+
* The current value of the filter logic.
|
|
24
|
+
*/
|
|
25
|
+
logicValue?: GridFilterOperator;
|
|
26
|
+
/**
|
|
27
|
+
* The list of the filter logic options.
|
|
28
|
+
*/
|
|
29
|
+
logicData: GridFilterOperator[];
|
|
30
|
+
/**
|
|
31
|
+
* The method that will be called to notify the parent about a change in the filter logic.
|
|
32
|
+
*/
|
|
33
|
+
onLogicChange: (e: any) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if the second filter will be hidden.
|
|
36
|
+
*/
|
|
37
|
+
hideSecondFilter?: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GroupDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps.js';
|
|
10
|
+
/**
|
|
11
|
+
* The props passed to the ColumnMenu group component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuGroupBaseProps extends GridColumnMenuBaseProps {
|
|
14
|
+
/**
|
|
15
|
+
* The groupable option of the column.
|
|
16
|
+
*/
|
|
17
|
+
groupable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The current group state of the Grid. It takes value of type [GroupDescriptor](https://www.telerik.com/kendo-react-ui/components/datatools/api/groupdescriptor)[]
|
|
20
|
+
*/
|
|
21
|
+
group?: GroupDescriptor[];
|
|
22
|
+
/**
|
|
23
|
+
* The method that will be called to notify the parent Grid about a group change.
|
|
24
|
+
*/
|
|
25
|
+
onGroupChange?: (groups: GroupDescriptor[], event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridColumnMenuColumnsChooserBaseProps } from './GridColumnMenuColumnsChooserBaseProps.js';
|
|
9
|
+
import { GridColumnMenuFilterBaseProps } from './GridColumnMenuFilterBaseProps.js';
|
|
10
|
+
import { GridColumnMenuGroupBaseProps } from './GridColumnMenuGroupBaseProps.js';
|
|
11
|
+
import { GridColumnMenuSortBaseProps } from './GridColumnMenuSortBaseProps.js';
|
|
12
|
+
/**
|
|
13
|
+
* The props which the ColumnMenu passes to its children.
|
|
14
|
+
*/
|
|
15
|
+
export interface GridColumnMenuProps extends GridColumnMenuFilterBaseProps, GridColumnMenuSortBaseProps, GridColumnMenuGroupBaseProps, GridColumnMenuColumnsChooserBaseProps {
|
|
16
|
+
/**
|
|
17
|
+
* Determines if the column menu supports keyboard navigation.
|
|
18
|
+
*/
|
|
19
|
+
navigatable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Determines if the column menu is visible.
|
|
22
|
+
*/
|
|
23
|
+
show?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { GridSortSettings } from './GridSortSettings.js';
|
|
10
|
+
import { GridColumnMenuBaseProps } from './GridColumnMenuBaseProps.js';
|
|
11
|
+
/**
|
|
12
|
+
* The props passed to the ColumnMenu sort component.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridColumnMenuSortBaseProps extends GridColumnMenuBaseProps {
|
|
15
|
+
/**
|
|
16
|
+
* The sortable option of the column.
|
|
17
|
+
*/
|
|
18
|
+
sortable?: GridSortSettings;
|
|
19
|
+
/**
|
|
20
|
+
* The current sort state of the Grid. It takes a value of type [SortDescriptor](https://www.telerik.com/kendo-react-ui/components/datatools/api/sortdescriptor)[]
|
|
21
|
+
*/
|
|
22
|
+
sort?: SortDescriptor[];
|
|
23
|
+
/**
|
|
24
|
+
* The method that will be called to notify the parent Grid about a sort change.
|
|
25
|
+
*/
|
|
26
|
+
onSortChange?: (descriptors: SortDescriptor[], e: React.SyntheticEvent<any>) => void;
|
|
27
|
+
}
|