@progress/kendo-react-grid 13.3.0 → 13.4.0-develop.2
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 +6 -6
- 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,11 @@
|
|
|
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 direction in which a row can be dragged and dropped.
|
|
10
|
+
*/
|
|
11
|
+
export type GridReorderDropPosition = 'before' | 'after' | 'forbidden';
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
9
|
+
import { GridRowType } from './GridRowType.js';
|
|
10
|
+
import { GridRowsSettings } from './GridRowsSettings.js';
|
|
11
|
+
/**
|
|
12
|
+
* The props that the Grid passes to the GridRow component when creating it. Accessible when passing a custom row to the `rows` prop of the Grid.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridRowProps extends KendoReactComponentBaseProps {
|
|
15
|
+
/**
|
|
16
|
+
* The `data` object that represents the current row.
|
|
17
|
+
*/
|
|
18
|
+
dataItem: any;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates whether the row is an alternating row.
|
|
21
|
+
*/
|
|
22
|
+
isAltRow: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether the row has at least one edit cell.
|
|
25
|
+
*/
|
|
26
|
+
isInEdit: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Indicates if the row is hidden. The hidden row is rendered above the visible area of the Grid. Occurs when the Grid uses virtualization and the row is on the current page. When `rowHeight` is set, `isHidden` is always `true`.
|
|
29
|
+
*/
|
|
30
|
+
isHidden: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The event that is fired when the row is clicked.
|
|
33
|
+
*/
|
|
34
|
+
onClick: any;
|
|
35
|
+
/**
|
|
36
|
+
* The event that is fired when the row is double clicked.
|
|
37
|
+
*/
|
|
38
|
+
onDoubleClick: any;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the height of the row.
|
|
41
|
+
*/
|
|
42
|
+
rowHeight?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The type of the row.
|
|
45
|
+
*/
|
|
46
|
+
rowType: GridRowType;
|
|
47
|
+
/**
|
|
48
|
+
* Sets a set of rows components that the Grid will render instead of the built-in row.
|
|
49
|
+
*/
|
|
50
|
+
rows?: GridRowsSettings;
|
|
51
|
+
/**
|
|
52
|
+
* The index to be applied to the `aria-rowindex` attribute.
|
|
53
|
+
*/
|
|
54
|
+
ariaRowIndex?: number;
|
|
55
|
+
/**
|
|
56
|
+
* The index of the leaf dataItem in data. Used by selection.
|
|
57
|
+
*/
|
|
58
|
+
dataIndex: number;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates if the row is selected.
|
|
61
|
+
*/
|
|
62
|
+
isSelected: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
isHighlighted?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
absoluteRowIndex: number;
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
isRowReorderable?: boolean;
|
|
75
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Represents the settings for the row reordering functionality of the Grid.
|
|
10
|
+
*/
|
|
11
|
+
export type GridRowReorderSettings = {
|
|
12
|
+
/**
|
|
13
|
+
* Determines if the row reordering functionality is enabled.
|
|
14
|
+
*
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Determines what the text of the drag clue will be.
|
|
20
|
+
* Can also be a function giving the dataItem as an argument and returning a new custom drag clue as a ReactNode.
|
|
21
|
+
*
|
|
22
|
+
* Default value will be the text of the first visible data column of the row.
|
|
23
|
+
*/
|
|
24
|
+
dragClue?: string | ((dataItem: any) => React.ReactNode);
|
|
25
|
+
};
|
|
@@ -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
|
+
/**
|
|
9
|
+
* Represents the settings for the row-spanning functionality of the Grid.
|
|
10
|
+
*/
|
|
11
|
+
export type GridRowSpannableSettings = {
|
|
12
|
+
/**
|
|
13
|
+
* Determines if the row-spanning functionality is enabled or disabled
|
|
14
|
+
*/
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* A function that returns the value of the cell that should span the row.
|
|
18
|
+
* The value could be combined from multiple fields of the dataItem to create a unique identifier and prevent the cell from being row-spanned.
|
|
19
|
+
*/
|
|
20
|
+
valueGetter?: (dataItem: any, field: string) => any;
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 type of the GridRow component.
|
|
10
|
+
*
|
|
11
|
+
* The available values are:
|
|
12
|
+
* - `groupHeader`—The row is a group header.
|
|
13
|
+
* - `groupFooter`—The row is a group footer.
|
|
14
|
+
* - `data`—The row corresponds to an item from the `data` collection which is passed to the Grid.
|
|
15
|
+
*/
|
|
16
|
+
export type GridRowType = 'groupFooter' | 'groupHeader' | 'data';
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { GridRowProps } from './GridRowProps.js';
|
|
10
|
+
/**
|
|
11
|
+
* The properties of the default Grid Row.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridCustomRowProps extends GridRowProps {
|
|
14
|
+
/**
|
|
15
|
+
* The props and attributes that are applied to the tr element by default.
|
|
16
|
+
*/
|
|
17
|
+
trProps?: React.HTMLAttributes<HTMLTableRowElement> | null;
|
|
18
|
+
/**
|
|
19
|
+
* The default children of the table row.
|
|
20
|
+
*/
|
|
21
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The settings of the rows prop options.
|
|
25
|
+
*/
|
|
26
|
+
export interface GridRowsSettings {
|
|
27
|
+
/**
|
|
28
|
+
* Custom component for rendering the group header row.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* import { MyGroupHeaderRow } from './MyGroupHeaderRow.js';
|
|
33
|
+
* <Grid rows={{ groupHeader: MyGroupHeaderRow }} />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
groupHeader?: ComponentType<GridCustomRowProps>;
|
|
37
|
+
/**
|
|
38
|
+
* Custom component for rendering the data row.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { MyDataRow } from './MyDataRow.js';
|
|
43
|
+
* <Grid rows={{ data: MyDataRow }} />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
data?: ComponentType<GridCustomRowProps>;
|
|
47
|
+
/**
|
|
48
|
+
* Custom component for rendering the group footer row.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* import { MyGroupFooterRow } from './MyGroupFooterRow.js';
|
|
53
|
+
* <Grid rows={{ groupFooter: MyGroupFooterRow }} />
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
groupFooter?: ComponentType<GridCustomRowProps>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { TableSelectableMode, TableSelectableSettings } from '@progress/kendo-react-data-tools';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the available selection modes.
|
|
11
|
+
*/
|
|
12
|
+
export type GridSelectableMode = TableSelectableMode;
|
|
13
|
+
/**
|
|
14
|
+
* Represents the Grid selectable settings.
|
|
15
|
+
*/
|
|
16
|
+
export interface GridSelectableSettings extends TableSelectableSettings {
|
|
17
|
+
/**
|
|
18
|
+
* The available values are:
|
|
19
|
+
* * `single`
|
|
20
|
+
* * `multiple`
|
|
21
|
+
*
|
|
22
|
+
* @default "multiple"
|
|
23
|
+
*/
|
|
24
|
+
mode?: GridSelectableMode;
|
|
25
|
+
}
|
|
@@ -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 { ColumnSortSettings, SortSettings } from '@progress/kendo-react-data-tools';
|
|
9
|
+
/**
|
|
10
|
+
* The settings for sorting the Grid columns.
|
|
11
|
+
*/
|
|
12
|
+
export interface GridColumnSortSettings extends ColumnSortSettings {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The sorting settings of the Grid ([see example](https://www.telerik.com/kendo-react-ui/components/grid/sorting)).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```jsx-no-run
|
|
19
|
+
*
|
|
20
|
+
* <Grid
|
|
21
|
+
* sortable={true}
|
|
22
|
+
* >
|
|
23
|
+
* </Grid>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export type GridSortSettings = SortSettings;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
* Defines the width of a column in the stacked layout.
|
|
10
|
+
*/
|
|
11
|
+
export interface GridStackedColSize {
|
|
12
|
+
/**
|
|
13
|
+
* The width of the column. Number values are treated as pixels.
|
|
14
|
+
* String values can be any valid CSS width (px, %, fr, etc.).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* { width: 200 } // 200px
|
|
19
|
+
* { width: '1fr' } // 1 fraction unit
|
|
20
|
+
* { width: '50%' } // 50% of container
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
width?: string | number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Configuration for the stacked layout mode in the Grid.
|
|
27
|
+
*
|
|
28
|
+
* The stacked layout renders each data row as a card with field label/value pairs
|
|
29
|
+
* arranged in a CSS Grid layout.
|
|
30
|
+
*/
|
|
31
|
+
export interface GridStackedLayoutSettings {
|
|
32
|
+
/**
|
|
33
|
+
* Defines the number of columns in the stacked layout.
|
|
34
|
+
*
|
|
35
|
+
* - When a `number`, creates that many equal-width columns.
|
|
36
|
+
* - When an `array`, the length defines the column count and values define widths.
|
|
37
|
+
*
|
|
38
|
+
* @default 1
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* // Two equal columns
|
|
43
|
+
* <Grid stackedLayoutSettings={{ cols: 2 }} />
|
|
44
|
+
*
|
|
45
|
+
* // Three columns with custom widths using fr units
|
|
46
|
+
* <Grid stackedLayoutSettings={{ cols: ['1fr', '2fr', '1fr'] }} />
|
|
47
|
+
*
|
|
48
|
+
* // Two columns with pixel and fraction widths
|
|
49
|
+
* <Grid stackedLayoutSettings={{ cols: [{ width: 200 }, { width: '1fr' }] }} />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
cols?: number | Array<number | string | GridStackedColSize>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The data layout mode for the Grid.
|
|
56
|
+
*
|
|
57
|
+
* - `columns`: Traditional column-based table layout (default).
|
|
58
|
+
* - `stacked`: Card-based layout with field labels and values stacked vertically.
|
|
59
|
+
*/
|
|
60
|
+
export type GridDataLayoutMode = 'columns' | 'stacked';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { ToolbarProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
/**
|
|
10
|
+
* The properties of the GridToolbar component.
|
|
11
|
+
*/
|
|
12
|
+
export interface GridToolbarProps extends ToolbarProps {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
_ariaControls?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { Page } from '../paging/Page.js';
|
|
9
|
+
import { SyntheticEvent } from 'react';
|
|
10
|
+
import { RowHeightService } from '@progress/kendo-react-common';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface VirtualScrollInterface {
|
|
15
|
+
table: HTMLTableElement | null;
|
|
16
|
+
tableBody: HTMLTableSectionElement | null;
|
|
17
|
+
container: HTMLDivElement | null;
|
|
18
|
+
scrollHeightContainer: HTMLDivElement | null;
|
|
19
|
+
total: number;
|
|
20
|
+
scrollableVirtual: boolean;
|
|
21
|
+
pageSize: number;
|
|
22
|
+
PageChange: ((event: Page, syntheticEvent: SyntheticEvent<any>) => void) | null;
|
|
23
|
+
fixedScroll: boolean;
|
|
24
|
+
tableTransform: string;
|
|
25
|
+
rowHeightService?: RowHeightService;
|
|
26
|
+
reset: () => void;
|
|
27
|
+
scrollHandler(e: SyntheticEvent<HTMLDivElement>): void;
|
|
28
|
+
update(): void;
|
|
29
|
+
}
|