@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,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GridColumnProps } from './../interfaces/GridColumnProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the KendoReact GridColumnMenuColumnsList component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuColumnsListProps {
|
|
14
|
+
/**
|
|
15
|
+
* The columns state of the KendoReact GridColumnMenuColumnsList component.
|
|
16
|
+
*/
|
|
17
|
+
columnsState: GridColumnProps[];
|
|
18
|
+
/**
|
|
19
|
+
* The initial columns of the KendoReact GridColumnMenuColumnsList component.
|
|
20
|
+
*/
|
|
21
|
+
columns: GridColumnProps[];
|
|
22
|
+
/**
|
|
23
|
+
* The onColumnsChange event handler of the KendoReact GridColumnMenuColumnsList component.
|
|
24
|
+
*/
|
|
25
|
+
onColumnsChange: (cols: GridColumnProps[]) => void;
|
|
26
|
+
/**
|
|
27
|
+
* The onCloseMenu event handler of the KendoReact GridColumnMenuColumnsList component.
|
|
28
|
+
*/
|
|
29
|
+
onCloseMenu: Function;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Represents the KendoReact GridColumnMenuColumnsList component.
|
|
33
|
+
*/
|
|
34
|
+
export declare const GridColumnMenuColumnsList: React.FunctionComponent<GridColumnMenuColumnsListProps>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { GridColumnMenuFilterUIProps } from '../interfaces/GridColumnMenuFilterUIProps.js';
|
|
10
|
+
import { GridColumnMenuFilterBaseProps } from '../interfaces/GridColumnMenuFilterBaseProps.js';
|
|
11
|
+
import { ComponentType } from 'react';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const rootFilterOrDefault: (rootFilter: CompositeFilterDescriptor | undefined) => CompositeFilterDescriptor;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const filterGroupByField: (field: string, filter: CompositeFilterDescriptor | undefined) => CompositeFilterDescriptor | null;
|
|
21
|
+
/**
|
|
22
|
+
* Can be used to check if filtering is applied to a specific field ([see example](https://www.telerik.com/kendo-react-ui/components/grid/columns/column-menu#toc-styling-the-column-menu-icon)). Useful for creating active filter indicators.
|
|
23
|
+
*/
|
|
24
|
+
export declare const isColumnMenuFilterActive: (field: string, filter?: CompositeFilterDescriptor) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The props of the GridColumnMenuFilter component.
|
|
27
|
+
*/
|
|
28
|
+
export interface GridColumnMenuFilterProps extends GridColumnMenuFilterBaseProps {
|
|
29
|
+
/**
|
|
30
|
+
* Controls the expand state of the filter component.
|
|
31
|
+
*/
|
|
32
|
+
expanded?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Triggered on each subsequent expand state of the filter component.
|
|
35
|
+
*/
|
|
36
|
+
onExpandChange?: (nextExpandState: boolean) => void;
|
|
37
|
+
/**
|
|
38
|
+
* If set to `false`, the second filter operator and the input will be hidden.
|
|
39
|
+
*/
|
|
40
|
+
hideSecondFilter?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies a React element that will be cloned and rendered inside the UI of the column-menu filter component
|
|
43
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/grid/columns/column-menu#toc-customizing-the-filter-component)).
|
|
44
|
+
*/
|
|
45
|
+
filterUI?: ComponentType<GridColumnMenuFilterUIProps>;
|
|
46
|
+
/**
|
|
47
|
+
* The child elements to be rendered inside the filter component.
|
|
48
|
+
*/
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* If set to `true`, filter expand button will not be rendered and filter menu will be expanded.
|
|
52
|
+
*/
|
|
53
|
+
alwaysExpand?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* ```jsx-no-run
|
|
58
|
+
* const TextColumnMenu = (props) => {
|
|
59
|
+
* return (
|
|
60
|
+
* <div>
|
|
61
|
+
* <GridColumnMenuSort {...props} />
|
|
62
|
+
* <GridColumnMenuFilter {...props} />
|
|
63
|
+
* </div>
|
|
64
|
+
* );
|
|
65
|
+
* };
|
|
66
|
+
*
|
|
67
|
+
* const App = () => {
|
|
68
|
+
* const [state, setState] = React.useState(
|
|
69
|
+
* createAppState({
|
|
70
|
+
* take: 10,
|
|
71
|
+
* skip: 0,
|
|
72
|
+
* })
|
|
73
|
+
* );
|
|
74
|
+
*
|
|
75
|
+
* function createAppState(dataState) {
|
|
76
|
+
* return {
|
|
77
|
+
* result: process(products.slice(0), dataState),
|
|
78
|
+
* dataState: dataState,
|
|
79
|
+
* };
|
|
80
|
+
* }
|
|
81
|
+
*
|
|
82
|
+
* const dataStateChange = (event) => {
|
|
83
|
+
* setState(createAppState(event.dataState));
|
|
84
|
+
* };
|
|
85
|
+
*
|
|
86
|
+
* return (
|
|
87
|
+
* <Grid
|
|
88
|
+
* data={state.result}
|
|
89
|
+
* {...state.dataState}
|
|
90
|
+
* onDataStateChange={dataStateChange}
|
|
91
|
+
* sortable={true}
|
|
92
|
+
* pageable={true}
|
|
93
|
+
* >
|
|
94
|
+
* <GridColumn field="ProductID" title="Product ID" />
|
|
95
|
+
* <GridColumn field="ProductName" columnMenu={TextColumnMenu} />
|
|
96
|
+
* </Grid>
|
|
97
|
+
* );
|
|
98
|
+
* };
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare const GridColumnMenuFilter: (props: GridColumnMenuFilterProps) => React.JSX.Element;
|
|
@@ -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 { GridFilterOperator } from '../interfaces/GridFilterOperator.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuFilterCellProps {
|
|
14
|
+
field?: string;
|
|
15
|
+
filterType: 'text' | 'numeric' | 'boolean' | 'date';
|
|
16
|
+
value: any;
|
|
17
|
+
operator?: string | Function;
|
|
18
|
+
operators: GridFilterOperator[];
|
|
19
|
+
booleanValues: GridFilterOperator[];
|
|
20
|
+
onChange: (event: {
|
|
21
|
+
value: any;
|
|
22
|
+
operator: string | Function;
|
|
23
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare const GridColumnMenuFilterCell: (props: GridColumnMenuFilterCellProps) => React.JSX.Element;
|
|
@@ -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 { GridColumnMenuFilterUIProps } from '../interfaces/GridColumnMenuFilterUIProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const GridColumnMenuFilterUI: (props: GridColumnMenuFilterUIProps) => React.JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { GridColumnMenuGroupBaseProps } from '../interfaces/GridColumnMenuGroupBaseProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The props of the GridColumnMenuGroup component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuGroupProps extends GridColumnMenuGroupBaseProps {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @example
|
|
17
|
+
* ```jsx-no-run
|
|
18
|
+
* const TextColumnMenu = (props) => {
|
|
19
|
+
* return (
|
|
20
|
+
* <div>
|
|
21
|
+
* <GridColumnMenuSort {...props} />
|
|
22
|
+
* <GridColumnMenuGroup {...props} />
|
|
23
|
+
* </div>
|
|
24
|
+
* );
|
|
25
|
+
* };
|
|
26
|
+
*
|
|
27
|
+
* const initialState = {
|
|
28
|
+
* take: 10,
|
|
29
|
+
* skip: 0
|
|
30
|
+
* };
|
|
31
|
+
*
|
|
32
|
+
* const App = () => {
|
|
33
|
+
* const [dataState, setDataState] = useState(initialState);
|
|
34
|
+
* const [result, setResult] = useState(process(products.slice(0), initialState));
|
|
35
|
+
*
|
|
36
|
+
* const dataStateChange = (event) => {
|
|
37
|
+
* setDataState(event.dataState);
|
|
38
|
+
* setResult(process(products.slice(0), event.dataState));
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* return (
|
|
42
|
+
* <div>
|
|
43
|
+
* <Grid
|
|
44
|
+
* data={result}
|
|
45
|
+
* {...dataState}
|
|
46
|
+
* onDataStateChange={dataStateChange}
|
|
47
|
+
* sortable={true}
|
|
48
|
+
* pageable={true}
|
|
49
|
+
* >
|
|
50
|
+
* <Column field="ProductID" title="Product ID" />
|
|
51
|
+
* <Column field="ProductName" columnMenu={TextColumnMenu} />
|
|
52
|
+
* </Grid>
|
|
53
|
+
* <br />
|
|
54
|
+
* </div>
|
|
55
|
+
* );
|
|
56
|
+
* };
|
|
57
|
+
*
|
|
58
|
+
* export default App;
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare const GridColumnMenuGroup: (props: GridColumnMenuGroupProps) => React.JSX.Element;
|
|
@@ -10,7 +10,7 @@ import * as m from "react";
|
|
|
10
10
|
import { useLocalization as a } from "@progress/kendo-react-intl";
|
|
11
11
|
import { GridColumnMenuItemGroup as d } from "./GridColumnMenuItemGroup.mjs";
|
|
12
12
|
import { GridColumnMenuItem as g } from "./GridColumnMenuItem.mjs";
|
|
13
|
-
import {
|
|
13
|
+
import { groupColumn as C, ungroupColumn as p, messages as G } from "../messages/index.mjs";
|
|
14
14
|
import { groupIcon as I, ungroupIcon as M } from "@progress/kendo-svg-icons";
|
|
15
15
|
const L = (o) => {
|
|
16
16
|
const c = (e) => {
|
|
@@ -23,12 +23,12 @@ const L = (o) => {
|
|
|
23
23
|
}), o.onGroupChange(u, e);
|
|
24
24
|
}
|
|
25
25
|
o.onCloseMenu && o.onCloseMenu();
|
|
26
|
-
}, { group: i, column: l } = o, f = a(), n = !!(i && l.field && i.find((e) => e.field === l.field)), r = n ?
|
|
26
|
+
}, { group: i, column: l } = o, f = a(), n = !!(i && l.field && i.find((e) => e.field === l.field)), r = n ? p : C;
|
|
27
27
|
return /* @__PURE__ */ m.createElement(d, null, /* @__PURE__ */ m.createElement(
|
|
28
28
|
g,
|
|
29
29
|
{
|
|
30
30
|
selected: n,
|
|
31
|
-
title: f.toLanguageString(r,
|
|
31
|
+
title: f.toLanguageString(r, G[r]),
|
|
32
32
|
iconClass: n ? "k-i-ungroup" : "k-i-group",
|
|
33
33
|
svgIcon: n ? M : I,
|
|
34
34
|
onClick: c
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { SVGIcon } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The props of the GridColumnMenuItem component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuItemProps {
|
|
14
|
+
/**
|
|
15
|
+
* Triggered each time the title is clicked.
|
|
16
|
+
*/
|
|
17
|
+
onClick: React.MouseEventHandler<HTMLElement>;
|
|
18
|
+
/**
|
|
19
|
+
* The title of the GridColumnMenuItem component.
|
|
20
|
+
*/
|
|
21
|
+
title: string;
|
|
22
|
+
/**
|
|
23
|
+
* The class of the icon that is rendered next to the title.
|
|
24
|
+
*/
|
|
25
|
+
iconClass?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The SVG icon that is rendered next to the title.
|
|
28
|
+
*/
|
|
29
|
+
svgIcon?: SVGIcon;
|
|
30
|
+
/**
|
|
31
|
+
* The selected state of the component.
|
|
32
|
+
*/
|
|
33
|
+
selected?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
* States if the Column Menu item is expandable.
|
|
37
|
+
*/
|
|
38
|
+
expandable?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
* States if the Column Menu item is expanded.
|
|
42
|
+
*/
|
|
43
|
+
expanded?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The GridColumnMenuItem component that is used inside the Grid ColumnMenu.
|
|
47
|
+
*/
|
|
48
|
+
export declare const GridColumnMenuItem: (props: GridColumnMenuItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The props of the GridColumnMenuItemContent component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuItemContentProps extends KendoReactComponentBaseProps {
|
|
14
|
+
/**
|
|
15
|
+
* The `show` state of the component. Each change is animated with the Reveal animation.
|
|
16
|
+
*/
|
|
17
|
+
show: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The GridColumnMenuItemContent that will be used inside the Grid ColumnMenu.
|
|
21
|
+
*/
|
|
22
|
+
export declare const GridColumnMenuItemContent: (props: GridColumnMenuItemContentProps) => React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The props of the GridColumnMenuItemGroup component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GridColumnMenuItemGroupProps extends KendoReactComponentBaseProps {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The GridColumnMenuItemGroup that will be used inside the Grid ColumnMenu.
|
|
17
|
+
*/
|
|
18
|
+
export declare const GridColumnMenuItemGroup: (props: GridColumnMenuItemGroupProps) => React.JSX.Element;
|
|
@@ -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 { SortDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { GridColumnMenuSortBaseProps } from '../interfaces/GridColumnMenuSortBaseProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Can be used to check if sorting is applied to a specific field ([see example](https://www.telerik.com/kendo-react-ui/components/grid/columns/column-menu#toc-styling-the-column-menu-icon)). Useful for creating active sort indicators.
|
|
13
|
+
*/
|
|
14
|
+
export declare const isColumnMenuSortActive: (field: string, sort?: SortDescriptor[]) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The props of the GridColumnMenuSort component.
|
|
17
|
+
*/
|
|
18
|
+
export interface GridColumnMenuSortProps extends GridColumnMenuSortBaseProps {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @example
|
|
22
|
+
* ```jsx-no-run
|
|
23
|
+
* const ColumnMenu = (props) => {
|
|
24
|
+
* return (
|
|
25
|
+
* <div>
|
|
26
|
+
* <GridColumnMenuSort {...props} />
|
|
27
|
+
* </div>
|
|
28
|
+
* );
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* const initialState = {
|
|
32
|
+
* take: 10,
|
|
33
|
+
* skip: 0
|
|
34
|
+
* };
|
|
35
|
+
*
|
|
36
|
+
* const App = () => {
|
|
37
|
+
* const [dataState, setDataState] = useState(initialState);
|
|
38
|
+
* const [result, setResult] = useState(process(products.slice(0), initialState));
|
|
39
|
+
*
|
|
40
|
+
* const dataStateChange = (event) => {
|
|
41
|
+
* setDataState(event.dataState);
|
|
42
|
+
* setResult(process(products.slice(0), event.dataState));
|
|
43
|
+
* };
|
|
44
|
+
*
|
|
45
|
+
* return (
|
|
46
|
+
* <div>
|
|
47
|
+
* <div>
|
|
48
|
+
* <Grid
|
|
49
|
+
* data={result}
|
|
50
|
+
* {...dataState}
|
|
51
|
+
* onDataStateChange={dataStateChange}
|
|
52
|
+
* sortable={true}
|
|
53
|
+
* pageable={true}
|
|
54
|
+
* >
|
|
55
|
+
* <Column field="ProductID" title="Product ID" columnMenu={ColumnMenu} />
|
|
56
|
+
* <Column field="ProductName" />
|
|
57
|
+
* </Grid>
|
|
58
|
+
* <br />
|
|
59
|
+
* </div>
|
|
60
|
+
* </div>
|
|
61
|
+
* );
|
|
62
|
+
* };
|
|
63
|
+
*
|
|
64
|
+
* export default App;
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare const GridColumnMenuSort: (props: GridColumnMenuSortProps) => React.JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { GridColumnMenuProps } from '../interfaces/GridColumnMenuProps.js';
|
|
9
|
+
import { SVGIcon } from '@progress/kendo-react-common';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The props of the GridColumnMenuWrapper component.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridColumnMenuWrapperProps extends GridColumnMenuProps {
|
|
15
|
+
/**
|
|
16
|
+
* The component to be rendered as content of the Grid column menu.
|
|
17
|
+
*/
|
|
18
|
+
columnMenu?: React.ComponentType<GridColumnMenuProps> | null;
|
|
19
|
+
/**
|
|
20
|
+
* The icon that overrides the default(three vertical dots) icon displayed in the column menu of each column.
|
|
21
|
+
*/
|
|
22
|
+
columnMenuIcon?: SVGIcon;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export interface ColumnMenuStateProps {
|
|
28
|
+
show: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The GridColumnMenuWrapper component.
|
|
32
|
+
*/
|
|
33
|
+
export declare const GridColumnMenuWrapper: (props: GridColumnMenuWrapperProps) => React.JSX.Element;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
10
|
import { Popup as V } from "@progress/kendo-react-popup";
|
|
11
|
-
import {
|
|
11
|
+
import { useDocument as _, Navigation as H, classNames as q, IconWrap as D, TABBABLE_ELEMENTS as J, getActiveElement as Q } from "@progress/kendo-react-common";
|
|
12
12
|
import { moreVerticalIcon as U } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { columnMenu as b, messages as X } from "../messages/index.mjs";
|
|
14
14
|
import { useLocalization as Y } from "@progress/kendo-react-intl";
|
|
@@ -16,9 +16,9 @@ import { GridContext as Z } from "../utils/GridContext.mjs";
|
|
|
16
16
|
import { GridColumnMenuAdaptiveProvider as O } from "./adaptiveContext/GridColumnMenuAdaptiveContext.mjs";
|
|
17
17
|
import { GridAdaptiveColumnMenu as j } from "./adaptiveContent/GridAdaptiveColumnMenu.mjs";
|
|
18
18
|
import ee from "react-dom";
|
|
19
|
-
const ne = [".k-columnmenu-item-content", ".k-filter-menu-container"].map((r) =>
|
|
19
|
+
const ne = [".k-columnmenu-item-content", ".k-filter-menu-container"].map((r) => J.map((c) => `${r} ${c}`)), te = [[".k-tabstrip-items"], [".k-columnmenu-item"], ...ne], de = (r) => {
|
|
20
20
|
var y;
|
|
21
|
-
const c = t.useContext(Z), [d, M] = t.useState(!1), s = t.useRef(null), i = t.useRef(null), l = t.useRef(null), h = t.useRef(0), A =
|
|
21
|
+
const c = t.useContext(Z), [d, M] = t.useState(!1), s = t.useRef(null), i = t.useRef(null), l = t.useRef(null), h = t.useRef(0), A = _(s), { columnMenu: a, ...p } = r, { column: u, columnMenuIcon: g, navigatable: C } = r, T = Y(), w = u.title || u.field, S = w ? `${w} ` : "", x = "#", N = (n) => {
|
|
22
22
|
const e = Q(document);
|
|
23
23
|
clearTimeout(h.current), h.current = window.setTimeout(() => {
|
|
24
24
|
!c.mobileMode && e && n.relatedTarget !== s.current && i.current && !i.current.contains(e) && m();
|
|
@@ -65,7 +65,7 @@ const ne = [".k-columnmenu-item-content", ".k-filter-menu-container"].map((r) =>
|
|
|
65
65
|
},
|
|
66
66
|
[]
|
|
67
67
|
), k = t.useCallback((n, e) => !e || !Array.isArray(e) ? !1 : e.some((o) => o.field === n), []), W = t.useMemo(() => u.field && (v(u.field, c.filter) || k(u.field, c.group)), [u.field, c.filter, c.group, v, k]);
|
|
68
|
-
return t.useEffect(() => (E && i.current && (l.current = new
|
|
68
|
+
return t.useEffect(() => (E && i.current && (l.current = new H({
|
|
69
69
|
tabIndex: 0,
|
|
70
70
|
root: i,
|
|
71
71
|
selectors: te,
|
|
@@ -78,7 +78,7 @@ const ne = [".k-columnmenu-item-content", ".k-filter-menu-container"].map((r) =>
|
|
|
78
78
|
}), [E]), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
79
79
|
"a",
|
|
80
80
|
{
|
|
81
|
-
className:
|
|
81
|
+
className: q("k-grid-header-menu k-grid-column-menu", {
|
|
82
82
|
"k-active": W
|
|
83
83
|
}),
|
|
84
84
|
ref: s,
|
|
@@ -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 { default as React } from 'react';
|
|
9
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
type GridActionSheetFooterProps = {
|
|
14
|
+
onApply?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
15
|
+
onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
16
|
+
submitMessage?: string;
|
|
17
|
+
resetMessage?: string;
|
|
18
|
+
submitIcon?: SVGIcon;
|
|
19
|
+
resetIcon?: SVGIcon;
|
|
20
|
+
submitDisabled?: boolean;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const GridActionSheetFooterContent: (props: GridActionSheetFooterProps) => React.JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
type GridAdaptiveCheckboxFilterProps = {
|
|
13
|
+
onBackView?: () => void;
|
|
14
|
+
handleClose?: () => void;
|
|
15
|
+
isAllSelected?: () => boolean;
|
|
16
|
+
handleCheckBoxChange?: (event: any, value: any) => void;
|
|
17
|
+
clear: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
18
|
+
submit?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
19
|
+
currentData: any;
|
|
20
|
+
uniqueFilterValues: any;
|
|
21
|
+
searchBox?: any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const GridAdaptiveCheckboxFilter: (props: GridAdaptiveCheckboxFilterProps) => React.JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import e from "react";
|
|
10
10
|
import S from "react-dom";
|
|
11
|
-
import { adaptiveColumnMenuCheckboxFilterTitle as i, messages as c, filterCheckAll as r, filterSelectedItems as m,
|
|
11
|
+
import { adaptiveColumnMenuCheckboxFilterTitle as i, messages as c, filterCheckAll as r, filterSelectedItems as m, filterClearButton as s, filterSubmitButton as u } from "../../messages/index.mjs";
|
|
12
12
|
import { GridContext as b } from "../../utils/GridContext.mjs";
|
|
13
13
|
import { ActionSheetHeader as x, ActionSheetContent as M, ActionSheetFooter as N } from "@progress/kendo-react-layout";
|
|
14
14
|
import { Button as h } from "@progress/kendo-react-buttons";
|
|
@@ -65,10 +65,10 @@ const H = (t) => {
|
|
|
65
65
|
onApply: t.submit,
|
|
66
66
|
onReset: t.clear,
|
|
67
67
|
submitMessage: l.toLanguageString(
|
|
68
|
-
|
|
69
|
-
c[
|
|
68
|
+
u,
|
|
69
|
+
c[u]
|
|
70
70
|
),
|
|
71
|
-
resetMessage: l.toLanguageString(
|
|
71
|
+
resetMessage: l.toLanguageString(s, c[s])
|
|
72
72
|
}
|
|
73
73
|
))),
|
|
74
74
|
k.current.current
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
import { TextBoxChangeEvent } from '@progress/kendo-react-inputs';
|
|
10
|
+
import { GridColumnState } from '../../index.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
type GridAdaptiveColumnChooserProps = {
|
|
15
|
+
onBackView?: () => void;
|
|
16
|
+
handleClose?: () => void;
|
|
17
|
+
onSelectAll?: () => void;
|
|
18
|
+
onFilter?: (event: TextBoxChangeEvent) => void;
|
|
19
|
+
onApply?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
20
|
+
onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
21
|
+
onCheckChange?: (checked: boolean, id: string) => void;
|
|
22
|
+
filter?: string;
|
|
23
|
+
allSelected?: boolean;
|
|
24
|
+
checkedCount?: number;
|
|
25
|
+
filtered?: GridColumnState[];
|
|
26
|
+
selectedColumns?: Record<string, boolean>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const GridAdaptiveColumnChooser: (props: GridAdaptiveColumnChooserProps) => React.JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -10,7 +10,7 @@ import e from "react";
|
|
|
10
10
|
import M from "react-dom";
|
|
11
11
|
import { GridContext as N } from "../../utils/GridContext.mjs";
|
|
12
12
|
import { chevronRightIcon as A, chevronLeftIcon as y, xIcon as I, searchIcon as w } from "@progress/kendo-svg-icons";
|
|
13
|
-
import { adaptiveColumnMenuChooserTitle as r, messages as a, adaptiveColumnMenuChooserSubTitle as m, filterSelectAll as s, columnMenuColumnChooserSelectedItems as u,
|
|
13
|
+
import { adaptiveColumnMenuChooserTitle as r, messages as a, adaptiveColumnMenuChooserSubTitle as m, filterSelectAll as s, columnMenuColumnChooserSelectedItems as u, filterApplyButton as d, filterResetButton as h } from "../../messages/index.mjs";
|
|
14
14
|
import { Button as f } from "@progress/kendo-react-buttons";
|
|
15
15
|
import { useLocalization as B } from "@progress/kendo-react-intl";
|
|
16
16
|
import { TextBox as L, Checkbox as g, InputPrefix as R } from "@progress/kendo-react-inputs";
|
|
@@ -78,8 +78,8 @@ const Y = (t) => {
|
|
|
78
78
|
{
|
|
79
79
|
onApply: t.onApply,
|
|
80
80
|
onReset: t.onReset,
|
|
81
|
-
resetMessage: o.toLanguageString(
|
|
82
|
-
submitMessage: o.toLanguageString(
|
|
81
|
+
resetMessage: o.toLanguageString(h, a[h]),
|
|
82
|
+
submitMessage: o.toLanguageString(d, a[d])
|
|
83
83
|
}
|
|
84
84
|
))),
|
|
85
85
|
k.current.current
|
|
@@ -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 { default as React } from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const GridAdaptiveColumnMenu: (props: any) => React.JSX.Element;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@progress/kendo-react-layout"),m=require("@progress/kendo-react-common"),d=require("../../utils/GridContext.js"),v=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-svg-icons"),C=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@progress/kendo-react-layout"),m=require("@progress/kendo-react-common"),d=require("../../utils/GridContext.js"),v=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-svg-icons"),C=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),k=require("@progress/kendo-react-intl"),i=require("../../messages/index.js"),f=n=>{const a=e.useContext(d.GridContext),{actionSheetRef:c,firstViewRef:s,secondViewRef:r}=e.useContext(C.GridColumnMenuAdaptiveContext),o=m.useAdaptiveModeContext(),l=k.useLocalization(),u={animation:!0,navigatable:!1,navigatableElements:[],expand:n.computedShow,animationStyles:o&&a.adaptiveColumnMenuRef<=o.small?{top:0,width:"100%",height:"100%"}:void 0,className:"k-adaptive-actionsheet",position:o&&a.adaptiveColumnMenuRef<=o.small?"fullscreen":void 0};return e.createElement(t.ActionSheet,{...u,ref:c,style:{"--kendo-actionsheet-view-current":1},onClose:()=>{n.closeMenu()}},e.createElement(t.ActionSheetView,{className:"k-actionsheet-view-animated",ref:s,style:{transitionDuration:"500ms",transitionProperty:"transform"}},e.createElement(t.ActionSheetHeader,null,e.createElement("div",{className:"k-actionsheet-titlebar-group"},e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},a.adaptiveTitle||l.toLanguageString(i.columnMenu,i.messages[i.columnMenu]))),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(v.Button,{svgIcon:h.xIcon,onClick:n.closeMenu})))),e.createElement(t.ActionSheetContent,null,e.createElement("div",{className:"k-column-menu k-column-menu-lg"},n.children))),e.createElement(t.ActionSheetView,{className:"k-actionsheet-view-animated",ref:r,style:{transitionDuration:"500ms",transitionProperty:"transform"}}))};exports.GridAdaptiveColumnMenu=f;
|