@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,15 @@
|
|
|
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 declare const GridNoRecordsContainer: {
|
|
13
|
+
(props: any): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
|
-
import {
|
|
10
|
+
import { tableKeyboardNavigationTools as a, KEYBOARD_NAV_DATA_ID as i } from "@progress/kendo-react-data-tools";
|
|
11
11
|
import { classNames as n, uGrid as c } from "@progress/kendo-react-common";
|
|
12
12
|
import { GridContext as l } from "../../utils/GridContext.mjs";
|
|
13
13
|
const m = (s) => {
|
|
@@ -0,0 +1,12 @@
|
|
|
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 declare const GridTable: (props: any) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 declare const GridTableBody: (props: any) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 declare const GridTableScrollable: (props: any) => React.JSX.Element;
|
|
@@ -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 { GridReorderDropPosition } from '../interfaces/GridReorderDropDir.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const dropDirection: {
|
|
13
|
+
[key: string]: GridReorderDropPosition;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare function getOffset(element: any): {
|
|
19
|
+
top: number;
|
|
20
|
+
left: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
/** The attribute required by the Grid selection on Grid `tr` elements. */
|
|
9
|
+
export declare const GRID_ROW_INDEX_ATTRIBUTE = "data-grid-row-index";
|
|
10
|
+
/** The attribute required by the Grid selection on Grid `td` elements. */
|
|
11
|
+
export declare const GRID_COL_INDEX_ATTRIBUTE = "data-grid-col-index";
|
|
12
|
+
/** Attribute which disable selection start from this element. */
|
|
13
|
+
export declare const GRID_PREVENT_SELECTION_ELEMENT = "data-prevent-selection";
|
|
14
|
+
/** @hidden */
|
|
15
|
+
export declare const SAFARI_REGEX: RegExp;
|
package/constants/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
const R =
|
|
8
|
+
import { TABLE_COL_INDEX_ATTRIBUTE as E, TABLE_ROW_INDEX_ATTRIBUTE as T, TABLE_PREVENT_SELECTION_ELEMENT as _ } from "@progress/kendo-react-data-tools";
|
|
9
|
+
const R = T, N = E, L = _;
|
|
10
10
|
export {
|
|
11
11
|
N as GRID_COL_INDEX_ATTRIBUTE,
|
|
12
12
|
L as GRID_PREVENT_SELECTION_ELEMENT,
|
|
@@ -0,0 +1,205 @@
|
|
|
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 { Offset } from '@progress/kendo-react-popup';
|
|
9
|
+
import { MenuCloseEvent, MenuItemModel, MenuSelectEvent } from '@progress/kendo-react-layout';
|
|
10
|
+
import { GridContextMenuItemNames } from './enums.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the `GridContextMenuOptions`.
|
|
14
|
+
*/
|
|
15
|
+
export interface GridContextMenuOptions {
|
|
16
|
+
/**
|
|
17
|
+
* The contextmenu settings for the head of the data table.
|
|
18
|
+
*/
|
|
19
|
+
head?: boolean | (GridContextMenuItemNames | MenuItemModel)[];
|
|
20
|
+
/**
|
|
21
|
+
* The contextmenu settings for the body of the data table.
|
|
22
|
+
*/
|
|
23
|
+
body?: boolean | (GridContextMenuItemNames | MenuItemModel)[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the `GridCellBaseOptions` object that are passed to the handler.
|
|
27
|
+
*/
|
|
28
|
+
export interface GridCellBaseOptions {
|
|
29
|
+
/**
|
|
30
|
+
* The data item associated with the cell.
|
|
31
|
+
*/
|
|
32
|
+
dataItem?: any;
|
|
33
|
+
/**
|
|
34
|
+
* The field name of the column associated with the cell.
|
|
35
|
+
*/
|
|
36
|
+
field?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export interface GridContextMenuOpenArgs extends GridCellBaseOptions {
|
|
42
|
+
event: React.MouseEvent<HTMLElement, MouseEvent>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export interface GridContextMenuProps {
|
|
48
|
+
show: boolean;
|
|
49
|
+
offset: Offset;
|
|
50
|
+
onClose: (event: MenuCloseEvent) => void;
|
|
51
|
+
onSelect: (e: {
|
|
52
|
+
event: MenuSelectEvent;
|
|
53
|
+
dataItem?: any;
|
|
54
|
+
field?: string;
|
|
55
|
+
}) => void;
|
|
56
|
+
dataItem?: any;
|
|
57
|
+
field?: string;
|
|
58
|
+
items?: (GridContextMenuItemNames | MenuItemModel)[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const contextMenuItemsMap: {
|
|
64
|
+
create: {
|
|
65
|
+
name: string;
|
|
66
|
+
text: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
69
|
+
data: {
|
|
70
|
+
action: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
edit: {
|
|
74
|
+
name: string;
|
|
75
|
+
text: string;
|
|
76
|
+
icon: string;
|
|
77
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
78
|
+
data: {
|
|
79
|
+
action: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
delete: {
|
|
83
|
+
name: string;
|
|
84
|
+
text: string;
|
|
85
|
+
icon: string;
|
|
86
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
87
|
+
data: {
|
|
88
|
+
action: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
select: {
|
|
92
|
+
name: string;
|
|
93
|
+
text: string;
|
|
94
|
+
icon: string;
|
|
95
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
96
|
+
items: {
|
|
97
|
+
name: string;
|
|
98
|
+
text: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
101
|
+
data: {
|
|
102
|
+
action: string;
|
|
103
|
+
};
|
|
104
|
+
}[];
|
|
105
|
+
};
|
|
106
|
+
copySelection: {
|
|
107
|
+
name: string;
|
|
108
|
+
text: string;
|
|
109
|
+
icon: string;
|
|
110
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
111
|
+
data: {
|
|
112
|
+
action: string;
|
|
113
|
+
};
|
|
114
|
+
options: string;
|
|
115
|
+
};
|
|
116
|
+
copySelectionNoHeaders: {
|
|
117
|
+
name: string;
|
|
118
|
+
text: string;
|
|
119
|
+
icon: string;
|
|
120
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
121
|
+
data: {
|
|
122
|
+
action: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
paste: {
|
|
126
|
+
name: string;
|
|
127
|
+
text: string;
|
|
128
|
+
icon: string;
|
|
129
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
130
|
+
data: {
|
|
131
|
+
action: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
reorderRow: {
|
|
135
|
+
name: string;
|
|
136
|
+
text: string;
|
|
137
|
+
icon: string;
|
|
138
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
139
|
+
items: {
|
|
140
|
+
name: string;
|
|
141
|
+
text: string;
|
|
142
|
+
icon: string;
|
|
143
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
144
|
+
data: {
|
|
145
|
+
action: string;
|
|
146
|
+
};
|
|
147
|
+
}[];
|
|
148
|
+
};
|
|
149
|
+
exportPDF: {
|
|
150
|
+
name: string;
|
|
151
|
+
text: string;
|
|
152
|
+
icon: string;
|
|
153
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
154
|
+
data: {
|
|
155
|
+
action: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
exportExcel: {
|
|
159
|
+
name: string;
|
|
160
|
+
text: string;
|
|
161
|
+
icon: string;
|
|
162
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
163
|
+
items: ({
|
|
164
|
+
name: string;
|
|
165
|
+
text: string;
|
|
166
|
+
data: {
|
|
167
|
+
action: string;
|
|
168
|
+
};
|
|
169
|
+
options?: undefined;
|
|
170
|
+
} | {
|
|
171
|
+
name: string;
|
|
172
|
+
text: string;
|
|
173
|
+
data: {
|
|
174
|
+
action: string;
|
|
175
|
+
};
|
|
176
|
+
options: string;
|
|
177
|
+
})[];
|
|
178
|
+
};
|
|
179
|
+
separator: {
|
|
180
|
+
name: string;
|
|
181
|
+
separator: boolean;
|
|
182
|
+
};
|
|
183
|
+
sortAsc: {
|
|
184
|
+
name: string;
|
|
185
|
+
text: string;
|
|
186
|
+
icon: string;
|
|
187
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
188
|
+
data: {
|
|
189
|
+
action: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
sortDesc: {
|
|
193
|
+
name: string;
|
|
194
|
+
text: string;
|
|
195
|
+
icon: string;
|
|
196
|
+
svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
|
|
197
|
+
data: {
|
|
198
|
+
action: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* @hidden
|
|
204
|
+
*/
|
|
205
|
+
export declare const GridContextMenu: (props: GridContextMenuProps) => React.JSX.Element;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as a from "react";
|
|
10
|
-
import {
|
|
10
|
+
import { sortDescSmallIcon as w, sortAscSmallIcon as S, fileExcelIcon as u, filePdfIcon as R, caretAltUpIcon as f, caretAltDownIcon as v, caretAltToTopIcon as E, caretAltToBottomIcon as A, caretAltExpandIcon as y, clipboardIcon as D, fileTxtIcon as b, pageHeaderSectionIcon as T, tableRowGroupsIcon as H, gridIcon as h, tableUnmergeIcon as M, tableBodyIcon as P, trashIcon as N, pencilIcon as B, plusIcon as F } from "@progress/kendo-svg-icons";
|
|
11
11
|
import { useLocalization as U } from "@progress/kendo-react-intl";
|
|
12
12
|
import { ContextMenu as z } from "@progress/kendo-react-layout";
|
|
13
13
|
import { GridContextMenuItemNames as e } from "./enums.mjs";
|
|
@@ -16,48 +16,48 @@ const G = {
|
|
|
16
16
|
name: "create",
|
|
17
17
|
text: "Add",
|
|
18
18
|
icon: "plus",
|
|
19
|
-
svgIcon:
|
|
19
|
+
svgIcon: F,
|
|
20
20
|
data: { action: "AddCommand" }
|
|
21
21
|
},
|
|
22
22
|
[e.edit]: {
|
|
23
23
|
name: "edit",
|
|
24
24
|
text: "Edit",
|
|
25
25
|
icon: "pencil",
|
|
26
|
-
svgIcon:
|
|
26
|
+
svgIcon: B,
|
|
27
27
|
data: { action: "EditCommand" }
|
|
28
28
|
},
|
|
29
29
|
[e.delete]: {
|
|
30
30
|
name: "delete",
|
|
31
31
|
text: "Delete",
|
|
32
32
|
icon: "trash",
|
|
33
|
-
svgIcon:
|
|
33
|
+
svgIcon: N,
|
|
34
34
|
data: { action: "DeleteCommand" }
|
|
35
35
|
},
|
|
36
36
|
[e.select]: {
|
|
37
37
|
name: "select",
|
|
38
38
|
text: "Select",
|
|
39
39
|
icon: "table-body",
|
|
40
|
-
svgIcon:
|
|
40
|
+
svgIcon: P,
|
|
41
41
|
items: [
|
|
42
42
|
{
|
|
43
43
|
name: "selectRow",
|
|
44
44
|
text: "Row",
|
|
45
45
|
icon: "table-row-groups",
|
|
46
|
-
svgIcon:
|
|
46
|
+
svgIcon: H,
|
|
47
47
|
data: { action: "SelectRowCommand" }
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
name: "selectAllRows",
|
|
51
51
|
text: "All rows",
|
|
52
52
|
icon: "grid",
|
|
53
|
-
svgIcon:
|
|
53
|
+
svgIcon: h,
|
|
54
54
|
data: { action: "SelectAllRowsCommand" }
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
name: "clearSelection",
|
|
58
58
|
text: "Clear selection",
|
|
59
59
|
icon: "table-unmerge",
|
|
60
|
-
svgIcon:
|
|
60
|
+
svgIcon: M,
|
|
61
61
|
data: { action: "ClearSelectionCommand" }
|
|
62
62
|
}
|
|
63
63
|
]
|
|
@@ -66,7 +66,7 @@ const G = {
|
|
|
66
66
|
name: "copySelection",
|
|
67
67
|
text: "Copy selection",
|
|
68
68
|
icon: "page-header-section",
|
|
69
|
-
svgIcon:
|
|
69
|
+
svgIcon: T,
|
|
70
70
|
data: { action: "CopySelectionCommand" },
|
|
71
71
|
options: "withHeaders"
|
|
72
72
|
},
|
|
@@ -74,7 +74,7 @@ const G = {
|
|
|
74
74
|
name: "copySelectionNoHeaders",
|
|
75
75
|
text: "Copy selection (No Headers)",
|
|
76
76
|
icon: "file-txt",
|
|
77
|
-
svgIcon:
|
|
77
|
+
svgIcon: b,
|
|
78
78
|
data: { action: "CopySelectionCommand" }
|
|
79
79
|
},
|
|
80
80
|
[e.paste]: {
|
|
@@ -88,34 +88,34 @@ const G = {
|
|
|
88
88
|
name: "reorderRow",
|
|
89
89
|
text: "Reorder row",
|
|
90
90
|
icon: "caret-alt-expand",
|
|
91
|
-
svgIcon:
|
|
91
|
+
svgIcon: y,
|
|
92
92
|
items: [
|
|
93
93
|
{
|
|
94
94
|
name: "reorderRowUp",
|
|
95
95
|
text: "Up",
|
|
96
96
|
icon: "caret-alt-up",
|
|
97
|
-
svgIcon:
|
|
97
|
+
svgIcon: f,
|
|
98
98
|
data: { action: "ReorderRowCommand" }
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
name: "reorderRowDown",
|
|
102
102
|
text: "Down",
|
|
103
103
|
icon: "caret-alt-down",
|
|
104
|
-
svgIcon:
|
|
104
|
+
svgIcon: v,
|
|
105
105
|
data: { action: "ReorderRowCommand" }
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
name: "reorderRowTop",
|
|
109
109
|
text: "Top",
|
|
110
110
|
icon: "caret-alt-to-top",
|
|
111
|
-
svgIcon:
|
|
111
|
+
svgIcon: E,
|
|
112
112
|
data: { action: "ReorderRowCommand" }
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
name: "reorderRowBottom",
|
|
116
116
|
text: "Bottom",
|
|
117
117
|
icon: "caret-alt-to-bottom",
|
|
118
|
-
svgIcon:
|
|
118
|
+
svgIcon: A,
|
|
119
119
|
data: { action: "ReorderRowCommand" }
|
|
120
120
|
}
|
|
121
121
|
]
|
|
@@ -124,14 +124,14 @@ const G = {
|
|
|
124
124
|
name: "exportPDF",
|
|
125
125
|
text: "Export to PDF",
|
|
126
126
|
icon: "file-pdf",
|
|
127
|
-
svgIcon:
|
|
127
|
+
svgIcon: R,
|
|
128
128
|
data: { action: "ExportPDFCommand" }
|
|
129
129
|
},
|
|
130
130
|
[e.exportExcel]: {
|
|
131
131
|
name: "exportExcel",
|
|
132
132
|
text: "Export to Excel",
|
|
133
133
|
icon: "file-excel",
|
|
134
|
-
svgIcon:
|
|
134
|
+
svgIcon: u,
|
|
135
135
|
items: [
|
|
136
136
|
{ name: "exportToExcelAll", text: "All", data: { action: "ExportExcelCommand" } },
|
|
137
137
|
{
|
|
@@ -153,14 +153,14 @@ const G = {
|
|
|
153
153
|
name: "sortAsc",
|
|
154
154
|
text: "Sort Ascending",
|
|
155
155
|
icon: "sort-asc-small",
|
|
156
|
-
svgIcon:
|
|
156
|
+
svgIcon: S,
|
|
157
157
|
data: { action: "SortCommand" }
|
|
158
158
|
},
|
|
159
159
|
[e.sortDesc]: {
|
|
160
160
|
name: "sortDesc",
|
|
161
161
|
text: "Sort Descending",
|
|
162
162
|
icon: "sort-desc-small",
|
|
163
|
-
svgIcon:
|
|
163
|
+
svgIcon: w,
|
|
164
164
|
data: { action: "SortCommand" }
|
|
165
165
|
}
|
|
166
166
|
}, j = (m) => {
|
|
@@ -0,0 +1,36 @@
|
|
|
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 available types for the `GridContextMenuAnchorPart`.
|
|
10
|
+
*
|
|
11
|
+
* The available anchor parts are:
|
|
12
|
+
* - `head`
|
|
13
|
+
* - `body`
|
|
14
|
+
*/
|
|
15
|
+
export declare enum GridContextMenuAnchorPart {
|
|
16
|
+
head = "head",
|
|
17
|
+
body = "body"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents the available predefined items names for the `GridContextMenu` items.
|
|
21
|
+
*/
|
|
22
|
+
export declare enum GridContextMenuItemNames {
|
|
23
|
+
create = "create",
|
|
24
|
+
edit = "edit",
|
|
25
|
+
delete = "delete",
|
|
26
|
+
select = "select",
|
|
27
|
+
copySelection = "copySelection",
|
|
28
|
+
copySelectionNoHeaders = "copySelectionNoHeaders",
|
|
29
|
+
paste = "paste",
|
|
30
|
+
reorderRow = "reorderRow",
|
|
31
|
+
exportPDF = "exportPDF",
|
|
32
|
+
exportExcel = "exportExcel",
|
|
33
|
+
separator = "separator",
|
|
34
|
+
sortAsc = "sortAsc",
|
|
35
|
+
sortDesc = "sortDesc"
|
|
36
|
+
}
|