@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,13 @@
|
|
|
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 { GridRowProps } from '../interfaces/GridRowProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The component for each of the items in the `data` property which the Grid renders.
|
|
12
|
+
*/
|
|
13
|
+
export declare const GridRow: (props: GridRowProps) => React.JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ExtendedColumnProps } from '../GridColumn.js';
|
|
9
|
+
import { GridCellsSettings } from '../interfaces/GridCellsSettings.js';
|
|
10
|
+
import { GridEditableSettings } from '../interfaces/GridEditableSettings.js';
|
|
11
|
+
import { GridRowProps } from '../interfaces/GridRowProps.js';
|
|
12
|
+
import { DataItemWrapper } from '../utils/index.js';
|
|
13
|
+
import { GridStackedLayoutSettings } from '../interfaces/GridStackedLayoutSettings.js';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface GridRowRendererProps {
|
|
19
|
+
isStackedMode: boolean;
|
|
20
|
+
item: DataItemWrapper;
|
|
21
|
+
rowId: string;
|
|
22
|
+
dataIndex: number;
|
|
23
|
+
idPrefix?: string;
|
|
24
|
+
ariaRowIndex: number;
|
|
25
|
+
absoluteRowIndex: number;
|
|
26
|
+
isAltRow: boolean;
|
|
27
|
+
isHidden: boolean;
|
|
28
|
+
isRowReorderable: boolean;
|
|
29
|
+
rowHeight?: number;
|
|
30
|
+
rows?: GridRowProps['rows'];
|
|
31
|
+
leafColumns: ExtendedColumnProps[];
|
|
32
|
+
groupLevelCount: number;
|
|
33
|
+
stackedLayoutSettings?: GridStackedLayoutSettings;
|
|
34
|
+
cells?: GridCellsSettings;
|
|
35
|
+
editMode?: GridEditableSettings['mode'];
|
|
36
|
+
isSelected: boolean;
|
|
37
|
+
isHighlighted?: boolean;
|
|
38
|
+
isInEdit: boolean;
|
|
39
|
+
preparedCells: React.ReactElement[];
|
|
40
|
+
showDetailToggle: boolean;
|
|
41
|
+
isDetailExpanded: boolean;
|
|
42
|
+
detailExpandField?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare const GridRowRenderer: React.FC<GridRowRendererProps>;
|
package/sortCommon.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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 { GridColumnSortSettings, GridSortSettings } from './interfaces/GridSortSettings.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const normalizeSortable: (...settings: (GridSortSettings | GridColumnSortSettings)[]) => any;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const sortSeqMap: any;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const firstLevelSortSeqMap: any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Props for the GridStackedCell component.
|
|
11
|
+
*
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface GridStackedCellProps {
|
|
15
|
+
/**
|
|
16
|
+
* The column title to display as the header label.
|
|
17
|
+
*/
|
|
18
|
+
header?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The content to display (field value or custom cell content).
|
|
21
|
+
*/
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether the cell is in edit mode.
|
|
25
|
+
*/
|
|
26
|
+
isInEdit?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The edit mode of the grid ('incell', 'inline', or 'dialog').
|
|
29
|
+
*/
|
|
30
|
+
editMode?: 'incell' | 'inline' | 'dialog';
|
|
31
|
+
/**
|
|
32
|
+
* Additional CSS class name.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The column index for navigation purposes.
|
|
37
|
+
*/
|
|
38
|
+
columnIndex?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The ID for keyboard navigation.
|
|
41
|
+
*/
|
|
42
|
+
id?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Additional style to apply to the cell.
|
|
45
|
+
*/
|
|
46
|
+
style?: React.CSSProperties;
|
|
47
|
+
/**
|
|
48
|
+
* Click handler.
|
|
49
|
+
*/
|
|
50
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Keyboard event handler.
|
|
53
|
+
*/
|
|
54
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
55
|
+
/**
|
|
56
|
+
* External ref to be merged with internal ref.
|
|
57
|
+
*/
|
|
58
|
+
cellRef?: React.Ref<HTMLDivElement>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Memoized version of GridStackedCell to optimize rendering performance.
|
|
62
|
+
* Only re-renders when props that affect the cell's appearance or behavior change.
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export declare const GridStackedCell: React.MemoExoticComponent<(props: GridStackedCellProps) => React.JSX.Element>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export interface GridStackedDetailToggleProps {
|
|
11
|
+
dataItem: any;
|
|
12
|
+
dataIndex?: number;
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
field?: string;
|
|
15
|
+
}
|
|
16
|
+
/** @hidden */
|
|
17
|
+
export declare const GridStackedDetailToggle: {
|
|
18
|
+
(props: GridStackedDetailToggleProps): React.JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
@@ -12,9 +12,9 @@ import { useLocalization as E } from "@progress/kendo-react-intl";
|
|
|
12
12
|
import { DETAIL_EXPAND_ACTION as h } from "@progress/kendo-react-data-tools";
|
|
13
13
|
import { Button as D } from "@progress/kendo-react-buttons";
|
|
14
14
|
import { GridContext as y } from "../utils/GridContext.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { detailCollapse as I, detailExpand as k, messages as v } from "../messages/index.mjs";
|
|
16
16
|
const G = (c) => {
|
|
17
|
-
const { dataItem: t, dataIndex: m, expanded: a, field: r } = c, e = l.useContext(y), d = E(), o = a ?
|
|
17
|
+
const { dataItem: t, dataIndex: m, expanded: a, field: r } = c, e = l.useContext(y), d = E(), o = a ? I : k, p = d.toLanguageString(o, v[o]), f = (i) => {
|
|
18
18
|
i.preventDefault(), e != null && e.itemChange && e.itemChange({
|
|
19
19
|
dataItem: t,
|
|
20
20
|
dataIndex: m,
|
|
@@ -0,0 +1,214 @@
|
|
|
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 { GridStackedLayoutSettings } from '../interfaces/GridStackedLayoutSettings.js';
|
|
10
|
+
import { GridCellsSettings } from '../interfaces/GridCellsSettings.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Props passed to custom cell components in stacked layout mode.
|
|
14
|
+
* Similar to GridCustomCellProps but adapted for stacked layout rendering.
|
|
15
|
+
*
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface GridStackedCustomCellProps {
|
|
19
|
+
/**
|
|
20
|
+
* The data item for this row.
|
|
21
|
+
*/
|
|
22
|
+
dataItem: any;
|
|
23
|
+
/**
|
|
24
|
+
* The field name from the column.
|
|
25
|
+
*/
|
|
26
|
+
field?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The column title.
|
|
29
|
+
*/
|
|
30
|
+
title?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The row type - always 'data' for stacked layout.
|
|
33
|
+
*/
|
|
34
|
+
rowType: 'data';
|
|
35
|
+
/**
|
|
36
|
+
* The zero-based index of the data item in the data collection.
|
|
37
|
+
*/
|
|
38
|
+
dataIndex?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The index of the column in the visible columns collection.
|
|
41
|
+
*/
|
|
42
|
+
columnIndex: number;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether the row is selected.
|
|
45
|
+
*/
|
|
46
|
+
isSelected?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Indicates whether the cell is in edit mode.
|
|
49
|
+
*/
|
|
50
|
+
isInEdit?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Format string for the value.
|
|
53
|
+
*/
|
|
54
|
+
format?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Additional CSS class name.
|
|
57
|
+
*/
|
|
58
|
+
className?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The column type.
|
|
61
|
+
*/
|
|
62
|
+
columnType?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The props for the stacked cell container div.
|
|
65
|
+
* Use this to apply default props to your custom cell wrapper.
|
|
66
|
+
*/
|
|
67
|
+
stackedCellProps: {
|
|
68
|
+
className: string;
|
|
69
|
+
'data-grid-col-index': number;
|
|
70
|
+
id?: string;
|
|
71
|
+
style?: React.CSSProperties;
|
|
72
|
+
tabIndex: number;
|
|
73
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
74
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
75
|
+
onDoubleClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
76
|
+
onContextMenu?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
77
|
+
ref?: React.Ref<any>;
|
|
78
|
+
onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* The default content (field value) that would be rendered.
|
|
82
|
+
*/
|
|
83
|
+
children?: React.ReactNode;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Represents column properties needed for stacked row rendering.
|
|
87
|
+
*
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
export interface GridStackedColumnProps {
|
|
91
|
+
/** Unique identifier for the column */
|
|
92
|
+
id?: string;
|
|
93
|
+
/** The field name from the data item */
|
|
94
|
+
field?: string;
|
|
95
|
+
/** The column title to display as label */
|
|
96
|
+
title?: string;
|
|
97
|
+
/** The column type */
|
|
98
|
+
columnType?: string;
|
|
99
|
+
/** Whether the column is hidden */
|
|
100
|
+
hidden?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Indicates whether the column participates in accessibility and rendering.
|
|
103
|
+
* Used to exclude service/group columns in stacked layout.
|
|
104
|
+
*/
|
|
105
|
+
isAccessible?: boolean;
|
|
106
|
+
/** Whether the column is editable */
|
|
107
|
+
editable?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Custom cell component for this column.
|
|
110
|
+
* The component receives GridStackedCustomCellProps.
|
|
111
|
+
*/
|
|
112
|
+
cell?: ComponentType<GridStackedCustomCellProps>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies a set of cell components that the Grid will render instead of the built-in cells.
|
|
115
|
+
* Use `cells.data` to provide a custom data cell component.
|
|
116
|
+
*/
|
|
117
|
+
cells?: GridCellsSettings;
|
|
118
|
+
/** Format string for the value */
|
|
119
|
+
format?: string;
|
|
120
|
+
/** Additional CSS class name for the cell */
|
|
121
|
+
className?: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Props for the GridStackedRow component.
|
|
125
|
+
*
|
|
126
|
+
* @hidden
|
|
127
|
+
*/
|
|
128
|
+
export interface GridStackedRowProps {
|
|
129
|
+
/**
|
|
130
|
+
* The data item for this row.
|
|
131
|
+
*/
|
|
132
|
+
dataItem: any;
|
|
133
|
+
/**
|
|
134
|
+
* The columns to render in the stacked layout.
|
|
135
|
+
*/
|
|
136
|
+
columns: GridStackedColumnProps[];
|
|
137
|
+
/**
|
|
138
|
+
* The stacked layout configuration.
|
|
139
|
+
*/
|
|
140
|
+
stackedLayoutSettings?: GridStackedLayoutSettings;
|
|
141
|
+
/**
|
|
142
|
+
* The zero-based index of the data item in the data collection.
|
|
143
|
+
*/
|
|
144
|
+
dataIndex?: number;
|
|
145
|
+
/**
|
|
146
|
+
* Whether this is an alternating row.
|
|
147
|
+
*/
|
|
148
|
+
isAltRow?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Indicates whether the row is selected.
|
|
151
|
+
*/
|
|
152
|
+
isSelected?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Indicates whether the row is in edit mode.
|
|
155
|
+
*/
|
|
156
|
+
isInEdit?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The edit mode of the Grid.
|
|
159
|
+
*/
|
|
160
|
+
editMode?: 'inline' | 'incell' | 'dialog';
|
|
161
|
+
/**
|
|
162
|
+
* Grid-level custom cells configuration.
|
|
163
|
+
* Column-level cells take precedence over grid-level cells.
|
|
164
|
+
*/
|
|
165
|
+
cells?: GridCellsSettings;
|
|
166
|
+
/**
|
|
167
|
+
* ID prefix for keyboard navigation.
|
|
168
|
+
*/
|
|
169
|
+
idPrefix?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Additional class name for the row.
|
|
172
|
+
*/
|
|
173
|
+
className?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Additional style for the row.
|
|
176
|
+
*/
|
|
177
|
+
style?: React.CSSProperties;
|
|
178
|
+
/**
|
|
179
|
+
* ARIA row index for accessibility.
|
|
180
|
+
*/
|
|
181
|
+
ariaRowIndex?: number;
|
|
182
|
+
/**
|
|
183
|
+
* Absolute row index in the grid.
|
|
184
|
+
*/
|
|
185
|
+
absoluteRowIndex?: number;
|
|
186
|
+
/**
|
|
187
|
+
* The group level for this row (number of parent groups).
|
|
188
|
+
* Used to render group spacer cells before the stacked content.
|
|
189
|
+
*/
|
|
190
|
+
groupLevel?: number;
|
|
191
|
+
/**
|
|
192
|
+
* The prepared cells for this row.
|
|
193
|
+
*/
|
|
194
|
+
preparedCells?: React.ReactElement<any>[];
|
|
195
|
+
/**
|
|
196
|
+
* When enabled, renders an expand/collapse detail toggle in stacked mode.
|
|
197
|
+
*/
|
|
198
|
+
showDetailToggle?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Indicates whether the detail row for this data item is expanded.
|
|
201
|
+
*/
|
|
202
|
+
isDetailExpanded?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* The field name used to track detail expansion.
|
|
205
|
+
*/
|
|
206
|
+
detailExpandField?: string;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @hidden
|
|
210
|
+
*/
|
|
211
|
+
export declare const GridStackedRow: {
|
|
212
|
+
(props: GridStackedRowProps): React.JSX.Element;
|
|
213
|
+
displayName: string;
|
|
214
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface StackedModeColGroupProps {
|
|
13
|
+
groupLevelCount: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare const StackedModeColGroup: React.FC<StackedModeColGroupProps>;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export interface StackedModeDetailRowProps {
|
|
23
|
+
detailRowId: string;
|
|
24
|
+
className: string;
|
|
25
|
+
isHidden: boolean;
|
|
26
|
+
detailRowHeight?: number;
|
|
27
|
+
ariaRowIndex: number;
|
|
28
|
+
groupLevelCount: number;
|
|
29
|
+
dataItem: any;
|
|
30
|
+
dataIndex: number;
|
|
31
|
+
detail: any;
|
|
32
|
+
id: string;
|
|
33
|
+
DetailCell: React.ComponentType<{
|
|
34
|
+
dataItem: any;
|
|
35
|
+
dataIndex: number;
|
|
36
|
+
colSpan: number;
|
|
37
|
+
ariaColIndex: number;
|
|
38
|
+
detail: any;
|
|
39
|
+
id: string;
|
|
40
|
+
}>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
export declare const StackedModeDetailRow: React.FC<StackedModeDetailRowProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ExtendedColumnProps } from '../GridColumn.js';
|
|
9
|
+
import { GridCellsSettings } from '../interfaces/GridCellsSettings.js';
|
|
10
|
+
import { GridEditableSettings } from '../interfaces/GridEditableSettings.js';
|
|
11
|
+
import { GridRowProps } from '../interfaces/GridRowProps.js';
|
|
12
|
+
import { DataItemWrapper } from '../utils/index.js';
|
|
13
|
+
import { GridStackedLayoutSettings } from '../interfaces/GridStackedLayoutSettings.js';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface StackedModeRowProps {
|
|
19
|
+
item: DataItemWrapper;
|
|
20
|
+
rowId: string;
|
|
21
|
+
dataIndex: number;
|
|
22
|
+
idPrefix?: string;
|
|
23
|
+
ariaRowIndex: number;
|
|
24
|
+
absoluteRowIndex: number;
|
|
25
|
+
isAltRow: boolean;
|
|
26
|
+
isHidden: boolean;
|
|
27
|
+
isRowReorderable: boolean;
|
|
28
|
+
rowHeight?: number;
|
|
29
|
+
rows?: GridRowProps['rows'];
|
|
30
|
+
leafColumns: ExtendedColumnProps[];
|
|
31
|
+
groupLevelCount: number;
|
|
32
|
+
stackedLayoutSettings?: GridStackedLayoutSettings;
|
|
33
|
+
cells?: GridCellsSettings;
|
|
34
|
+
editMode?: GridEditableSettings['mode'];
|
|
35
|
+
isSelected: boolean;
|
|
36
|
+
isHighlighted?: boolean;
|
|
37
|
+
isInEdit: boolean;
|
|
38
|
+
preparedCells: React.ReactElement[];
|
|
39
|
+
showDetailToggle: boolean;
|
|
40
|
+
isDetailExpanded: boolean;
|
|
41
|
+
detailExpandField?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
export declare const StackedModeRow: React.FC<StackedModeRowProps>;
|