@progress/kendo-react-grid 11.0.0-develop.8 → 11.0.0
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.js +8 -0
- package/BasePDFExport.mjs +52 -0
- package/Grid.js +1 -1
- package/Grid.mjs +13 -18
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +300 -288
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +387 -429
- package/GridPdfExportButton.js +8 -0
- package/GridPdfExportButton.mjs +35 -0
- package/GridSearchBox.js +1 -1
- package/GridSearchBox.mjs +1 -1
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +15 -20
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +23 -23
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +46 -46
- package/cells/datacell/GridCell.js +1 -1
- package/cells/datacell/GridCell.mjs +9 -15
- package/cells/datacell/GridCellServerContainer.js +1 -1
- package/cells/datacell/GridCellServerContainer.mjs +1 -1
- package/cells/datacell/useCellClientTdProps.js +1 -1
- package/cells/datacell/useCellClientTdProps.mjs +1 -1
- package/cells/editcell/GridEditCell.js +1 -1
- package/cells/editcell/GridEditCell.mjs +7 -13
- package/cells/editcell/GridEditCellEditor.js +1 -1
- package/cells/editcell/GridEditCellEditor.mjs +1 -1
- package/cells/editcell/GridEditCellServerContainer.js +1 -1
- package/cells/editcell/GridEditCellServerContainer.mjs +1 -1
- package/cells/groupcell/GridGroupCell.js +1 -1
- package/cells/groupcell/GridGroupCell.mjs +8 -10
- package/cells/groupcell/GridGroupCellServerContainer.js +1 -1
- package/cells/groupcell/GridGroupCellServerContainer.mjs +1 -1
- package/cells/groupcell/GridGroupCellToggle.js +1 -1
- package/cells/groupcell/GridGroupCellToggle.mjs +1 -1
- package/cells/groupcell/useGroupCellClientTdProps.js +1 -1
- package/cells/groupcell/useGroupCellClientTdProps.mjs +1 -1
- package/cells/hierarchycell/GridHierarchyCell.js +1 -1
- package/cells/hierarchycell/GridHierarchyCell.mjs +8 -14
- package/cells/hierarchycell/GridHierarchyCellServerContainer.js +1 -1
- package/cells/hierarchycell/GridHierarchyCellServerContainer.mjs +1 -1
- package/cells/hierarchycell/GridHierarchyCellToggle.js +1 -1
- package/cells/hierarchycell/GridHierarchyCellToggle.mjs +1 -1
- package/cells/hierarchycell/useHierarchyCellClientTdProps.js +1 -1
- package/cells/hierarchycell/useHierarchyCellClientTdProps.mjs +15 -18
- package/cells/hooks.js +1 -1
- package/cells/hooks.mjs +1 -1
- package/cells/rowreordercell/useRowReorderCellClientTdProps.js +1 -1
- package/cells/rowreordercell/useRowReorderCellClientTdProps.mjs +1 -1
- package/cells/selectioncell/GridSelectionCell.js +1 -1
- package/cells/selectioncell/GridSelectionCell.mjs +7 -13
- package/cells/selectioncell/GridSelectionCellInput.js +1 -1
- package/cells/selectioncell/GridSelectionCellInput.mjs +1 -1
- package/cells/selectioncell/GridSelectionCellServerContainer.js +1 -1
- package/cells/selectioncell/GridSelectionCellServerContainer.mjs +1 -1
- package/codemods/v11/cell-render.js +9 -0
- package/codemods/v11/column-cell.js +9 -0
- package/codemods/v11/column-filter-cell.js +9 -0
- package/codemods/v11/column-footer-cell.js +9 -0
- package/codemods/v11/column-header-cell.js +9 -0
- package/codemods/v11/detail-expand-state.js +9 -0
- package/codemods/v11/edit-state.js +9 -0
- package/codemods/v11/filter-cell-render.js +9 -0
- package/codemods/v11/group-expand-state.js +9 -0
- package/codemods/v11/header-cell-render.js +9 -0
- package/codemods/v11/index.js +9 -0
- package/codemods/v11/row-render.js +9 -0
- package/codemods/v11/selection-state.js +9 -0
- package/codemods/v11/utils.js +9 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +3 -2
- package/columnMenu/GridColumnMenuColumnsChooser.js +1 -1
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +1 -1
- package/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +1 -1
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +35 -28
- package/columnMenu/GridColumnMenuFilterUI.js +1 -1
- package/columnMenu/GridColumnMenuFilterUI.mjs +1 -1
- package/columnMenu/GridColumnMenuItem.js +1 -1
- package/columnMenu/GridColumnMenuItem.mjs +1 -1
- package/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/columnMenu/GridColumnMenuWrapper.mjs +62 -49
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveCheckboxFilter.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnChooser.mjs +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +2 -2
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveFilterMenu.mjs +1 -1
- package/components/GridContainerElementContainer.js +1 -1
- package/components/GridContainerElementContainer.mjs +1 -1
- package/components/GridDragClue.js +1 -1
- package/components/GridDragClue.mjs +1 -1
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +1 -1
- package/components/GridDropClue.js +1 -1
- package/components/GridDropClue.mjs +1 -1
- package/components/GridEditDialog.js +1 -1
- package/components/GridEditDialog.mjs +1 -1
- package/components/GridElementContainer.js +1 -1
- package/components/GridElementContainer.mjs +1 -1
- package/components/PagerContainer.js +1 -1
- package/components/PagerContainer.mjs +1 -1
- package/components/VirtualScrollHeightContainer.js +1 -1
- package/components/VirtualScrollHeightContainer.mjs +1 -1
- package/components/colGroup/GridColGroup.js +1 -1
- package/components/colGroup/GridColGroup.mjs +1 -1
- package/components/noRecords/GridNoRecordsContainer.js +1 -1
- package/components/noRecords/GridNoRecordsContainer.mjs +1 -1
- package/components/table/GridTable.js +1 -1
- package/components/table/GridTable.mjs +1 -1
- package/components/table/GridTableBody.js +1 -1
- package/components/table/GridTableBody.mjs +1 -1
- package/components/table/GridTableScrollable.js +1 -1
- package/components/table/GridTableScrollable.mjs +1 -1
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +1 -1
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +14 -14
- package/footer/client/FooterCellContainer.js +1 -1
- package/footer/client/FooterCellContainer.mjs +1 -1
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +42 -46
- package/header/GridHeaderCell.js +1 -1
- package/header/GridHeaderCell.mjs +11 -11
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +14 -14
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +1 -1
- package/header/Header.js +1 -1
- package/header/Header.mjs +1 -1
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +19 -20
- package/header/client/GridFilterCellContainer.js +1 -1
- package/header/client/GridFilterCellContainer.mjs +11 -12
- package/header/client/GridFilterCellElementContainer.js +1 -1
- package/header/client/GridFilterCellElementContainer.mjs +1 -1
- package/header/client/GridHeaderCellContainer.js +1 -1
- package/header/client/GridHeaderCellContainer.mjs +7 -8
- package/header/client/GridHeaderCellElementContainer.js +1 -1
- package/header/client/GridHeaderCellElementContainer.mjs +1 -1
- package/header/client/GridHeaderRowContainer.js +1 -1
- package/header/client/GridHeaderRowContainer.mjs +1 -1
- package/header/client/HeaderCellResizer.js +1 -1
- package/header/client/HeaderCellResizer.mjs +1 -1
- package/header/client/HeaderRowDraggable.js +1 -1
- package/header/client/HeaderRowDraggable.mjs +1 -1
- package/index.d.mts +293 -186
- package/index.d.ts +293 -186
- package/index.js +1 -1
- package/index.mjs +81 -71
- package/messages/index.js +1 -1
- package/messages/index.mjs +94 -76
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +77 -21
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +32 -33
- package/toolbar-tools/GridToolbarCheckboxFilter.js +8 -0
- package/toolbar-tools/GridToolbarCheckboxFilter.mjs +312 -0
- package/toolbar-tools/GridToolbarColumnsChooser.js +8 -0
- package/toolbar-tools/GridToolbarColumnsChooser.mjs +178 -0
- package/toolbar-tools/GridToolbarFilter.js +8 -0
- package/toolbar-tools/GridToolbarFilter.mjs +281 -0
- package/toolbar-tools/GridToolbarSort.js +8 -0
- package/toolbar-tools/GridToolbarSort.mjs +146 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.js +9 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarCheckboxFilter.mjs +114 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.js +9 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarColumnChooser.mjs +89 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarFilter.js +9 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarFilter.mjs +98 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.js +9 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarSort.mjs +68 -0
- package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.js +9 -0
- package/toolbar-tools/adaptiveContext/GridToolbarAdaptiveContext.mjs +17 -0
- package/utils/GridContext.js +9 -0
- package/{codemods/index.js → utils/GridContext.mjs} +6 -1
- package/utils/index.js +1 -1
- package/utils/index.mjs +145 -148
- package/utils/premium.js +1 -1
- package/utils/premium.mjs +26 -25
- package/utils/virtualColumns.js +1 -1
- package/utils/virtualColumns.mjs +13 -7
- package/components/GridCustomCellClientContainer.js +0 -9
- package/components/GridCustomCellClientContainer.mjs +0 -34
package/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
9
10
|
import { CellProps } from '@progress/kendo-react-data-tools';
|
|
10
11
|
import { ClipboardSettings } from '@progress/kendo-react-data-tools';
|
|
11
12
|
import { ColumnBaseProps } from '@progress/kendo-react-data-tools';
|
|
@@ -60,6 +61,7 @@ import { TableSelectableSettings } from '@progress/kendo-react-data-tools';
|
|
|
60
61
|
import { TableSelectionChangeEvent } from '@progress/kendo-react-data-tools';
|
|
61
62
|
import { TextBoxChangeEvent } from '@progress/kendo-react-inputs';
|
|
62
63
|
import { TextBoxProps } from '@progress/kendo-react-inputs';
|
|
64
|
+
import { ToolbarProps } from '@progress/kendo-react-buttons';
|
|
63
65
|
|
|
64
66
|
/**
|
|
65
67
|
* The value of the filter operators displayed in the boolean filter menu.
|
|
@@ -252,6 +254,7 @@ declare interface ExtendedColumnProps extends GridColumnProps {
|
|
|
252
254
|
_type?: 'edit' | 'expand';
|
|
253
255
|
rowSpannable?: Required<GridRowSpannableSettings>;
|
|
254
256
|
defaultCell?: any;
|
|
257
|
+
defaultHeaderCell?: any;
|
|
255
258
|
}
|
|
256
259
|
|
|
257
260
|
/**
|
|
@@ -377,11 +380,6 @@ export declare interface GridCellProps extends Omit<CellProps, 'onChange' | 'ren
|
|
|
377
380
|
* Supported values are `text`, `numeric`, `boolean`, and `date`.
|
|
378
381
|
*/
|
|
379
382
|
editor?: 'text' | 'numeric' | 'boolean' | 'date';
|
|
380
|
-
/**
|
|
381
|
-
* A function to override the default rendering of the cell.
|
|
382
|
-
* Accepts the default rendering and props as arguments and returns a React element.
|
|
383
|
-
*/
|
|
384
|
-
render?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => React.ReactElement<HTMLTableCellElement> | null;
|
|
385
383
|
/**
|
|
386
384
|
* @hidden
|
|
387
385
|
*/
|
|
@@ -922,7 +920,7 @@ declare interface GridColumnMenuItemProps {
|
|
|
922
920
|
/**
|
|
923
921
|
* The class of the icon that is rendered next to the title.
|
|
924
922
|
*/
|
|
925
|
-
iconClass
|
|
923
|
+
iconClass?: string;
|
|
926
924
|
/**
|
|
927
925
|
* The SVG icon that is rendered next to the title.
|
|
928
926
|
*/
|
|
@@ -1210,16 +1208,6 @@ export declare interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
|
1210
1208
|
* ```
|
|
1211
1209
|
*/
|
|
1212
1210
|
media?: string;
|
|
1213
|
-
/**
|
|
1214
|
-
* Defines the component that will be rendered as a cell. If not set, a `GridCell` will be rendered by default.
|
|
1215
|
-
*
|
|
1216
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1217
|
-
* @example
|
|
1218
|
-
* ```jsx
|
|
1219
|
-
* <GridColumn cell={CustomCell} />
|
|
1220
|
-
* ```
|
|
1221
|
-
*/
|
|
1222
|
-
cell?: ComponentType<GridCellProps>;
|
|
1223
1211
|
/**
|
|
1224
1212
|
* Specifies a set of cell components that the Grid will render instead of the built-in cell.
|
|
1225
1213
|
*
|
|
@@ -1229,42 +1217,6 @@ export declare interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
|
1229
1217
|
* ```
|
|
1230
1218
|
*/
|
|
1231
1219
|
cells?: GridCellsSettings;
|
|
1232
|
-
/**
|
|
1233
|
-
* Defines the component that will be rendered as a filter cell. If not set, a `GridFilterCell` will be rendered by default.
|
|
1234
|
-
*
|
|
1235
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1236
|
-
* @example
|
|
1237
|
-
* ```jsx
|
|
1238
|
-
* <GridColumn filterCell={CustomFilterCell} />
|
|
1239
|
-
* ```
|
|
1240
|
-
*/
|
|
1241
|
-
filterCell?: ComponentType<GridFilterCellProps>;
|
|
1242
|
-
/**
|
|
1243
|
-
* Defines the component that will be rendered as a header cell. If not set, a `GridHeaderCell` will be rendered by default.
|
|
1244
|
-
*
|
|
1245
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1246
|
-
* @example
|
|
1247
|
-
* ```jsx
|
|
1248
|
-
* <GridColumn headerCell={CustomHeaderCell} />
|
|
1249
|
-
* ```
|
|
1250
|
-
*/
|
|
1251
|
-
headerCell?: ComponentType<GridHeaderCellProps>;
|
|
1252
|
-
/**
|
|
1253
|
-
* Defines the component that will be rendered as a footer cell.
|
|
1254
|
-
* The footer has to render an HTML `<td>` element and applies the `style` and `colspan` values from its props.
|
|
1255
|
-
*
|
|
1256
|
-
* @example
|
|
1257
|
-
* ```jsx-no-run
|
|
1258
|
-
* <GridColumn
|
|
1259
|
-
* footerCell={props => (
|
|
1260
|
-
* <td className='k-table-td' colSpan={props.colSpan} style={props.style} role={'gridcell'}>Sum: 50</td>
|
|
1261
|
-
* )}
|
|
1262
|
-
* />
|
|
1263
|
-
* ```
|
|
1264
|
-
*
|
|
1265
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridcolumnprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
1266
|
-
*/
|
|
1267
|
-
footerCell?: ComponentType<GridFooterCellProps>;
|
|
1268
1220
|
/**
|
|
1269
1221
|
* Sets the type of the column and renders a dedicated column for interaction.
|
|
1270
1222
|
*
|
|
@@ -1674,7 +1626,7 @@ export declare interface GridDetailExpandChangeEvent extends GridEvent {
|
|
|
1674
1626
|
}
|
|
1675
1627
|
|
|
1676
1628
|
/**
|
|
1677
|
-
* Represents the detail row class of the KendoReact Grid. Used to define custom details for each row. Can be applied for building the hierarchy.
|
|
1629
|
+
* Represents the detail row class of the KendoReact Grid. Used to define custom details for each row. Can be applied for building the hierarchy. The details for each row will be visible or hidden depending on the current `detailExpand` prop.
|
|
1678
1630
|
*
|
|
1679
1631
|
* @example
|
|
1680
1632
|
* ```jsx
|
|
@@ -1776,25 +1728,7 @@ export declare type GridEditDialogProps = DialogProps & {
|
|
|
1776
1728
|
export declare interface GridEvent extends BaseEvent<GridHandle> {
|
|
1777
1729
|
}
|
|
1778
1730
|
|
|
1779
|
-
|
|
1780
|
-
* Represents the object of the `onExpandChange` Grid event.
|
|
1781
|
-
*/
|
|
1782
|
-
export declare interface GridExpandChangeEvent extends GridEvent {
|
|
1783
|
-
/**
|
|
1784
|
-
* The data item that is expanded or collapsed.
|
|
1785
|
-
*/
|
|
1786
|
-
dataItem: any;
|
|
1787
|
-
/**
|
|
1788
|
-
* Indicates whether the data item is expanded or collapsed
|
|
1789
|
-
*/
|
|
1790
|
-
value: boolean;
|
|
1791
|
-
/**
|
|
1792
|
-
* Zero based index of the data item.
|
|
1793
|
-
*/
|
|
1794
|
-
dataIndex: number;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
export declare const GridFilterCell: (props: GridFilterCellProps) => string | number | bigint | boolean | Iterable<React_2.ReactNode> | Promise<string | number | bigint | boolean | React_2.ReactPortal | React_2.ReactElement<unknown, string | React_2.JSXElementConstructor<any>> | Iterable<React_2.ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
1731
|
+
export declare const GridFilterCell: (props: GridFilterCellProps) => JSX.Element;
|
|
1798
1732
|
|
|
1799
1733
|
/**
|
|
1800
1734
|
* The props of the GridFilterCell component
|
|
@@ -1838,10 +1772,6 @@ export declare interface GridFilterCellProps {
|
|
|
1838
1772
|
* The list of values for the Boolean filter.
|
|
1839
1773
|
*/
|
|
1840
1774
|
booleanValues: GridFilterOperator[];
|
|
1841
|
-
/**
|
|
1842
|
-
* A function for overriding the default rendering of the filter cell.
|
|
1843
|
-
*/
|
|
1844
|
-
render?: (row: React.ReactElement<any>, dataItem: GridFilterCellProps) => React.ReactNode;
|
|
1845
1775
|
/**
|
|
1846
1776
|
* Accessible label of the filter.
|
|
1847
1777
|
*/
|
|
@@ -2054,6 +1984,11 @@ export declare interface GridHandle {
|
|
|
2054
1984
|
* @param columnIds - Array of column ids to be fitted.
|
|
2055
1985
|
*/
|
|
2056
1986
|
fitColumns: (columnIds: string[]) => void;
|
|
1987
|
+
/**
|
|
1988
|
+
* Method to trigger a PDF export of the Grid.
|
|
1989
|
+
* The 'pdf' prop of the Grid should be set to true or object of setting that will be applied the exported Grid.
|
|
1990
|
+
*/
|
|
1991
|
+
exportAsPdf: () => void;
|
|
2057
1992
|
}
|
|
2058
1993
|
|
|
2059
1994
|
/**
|
|
@@ -2090,17 +2025,13 @@ export declare interface GridHandle {
|
|
|
2090
2025
|
* export default App;
|
|
2091
2026
|
* ```
|
|
2092
2027
|
*/
|
|
2093
|
-
export declare const GridHeaderCell: (props: GridHeaderCellProps) =>
|
|
2028
|
+
export declare const GridHeaderCell: (props: GridHeaderCellProps) => JSX.Element;
|
|
2094
2029
|
|
|
2095
2030
|
/**
|
|
2096
2031
|
* The props of the GridHeaderCell component
|
|
2097
2032
|
* ([more information]({% slug cells_grid %}#toc-header-cells)).
|
|
2098
2033
|
*/
|
|
2099
2034
|
export declare interface GridHeaderCellProps extends Omit<HeaderCellBaseProps, 'render'> {
|
|
2100
|
-
/**
|
|
2101
|
-
* A function for overriding the default rendering of the header cell.
|
|
2102
|
-
*/
|
|
2103
|
-
render?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
|
|
2104
2035
|
/**
|
|
2105
2036
|
* The props of the Grid column menu wrapper.
|
|
2106
2037
|
*/
|
|
@@ -2127,10 +2058,6 @@ export declare interface GridHeaderSelectionChangeEvent extends GridEvent {
|
|
|
2127
2058
|
* The current Grid leaf data items.
|
|
2128
2059
|
*/
|
|
2129
2060
|
dataItems: any[];
|
|
2130
|
-
/**
|
|
2131
|
-
* The `selectedField` prop of the Grid.
|
|
2132
|
-
*/
|
|
2133
|
-
selectedField: string;
|
|
2134
2061
|
}
|
|
2135
2062
|
|
|
2136
2063
|
/**
|
|
@@ -2180,12 +2107,20 @@ export declare const gridMessages: {
|
|
|
2180
2107
|
"grid.groupPanelEmpty": string;
|
|
2181
2108
|
"grid.filterApplyButton": string;
|
|
2182
2109
|
"grid.filterClearButton": string;
|
|
2110
|
+
"grid.filterClearAllButton": string;
|
|
2183
2111
|
"grid.filterResetButton": string;
|
|
2184
2112
|
"grid.filterSubmitButton": string;
|
|
2185
2113
|
"grid.filterTitle": string;
|
|
2186
2114
|
"grid.sortAscending": string;
|
|
2187
2115
|
"grid.sortDescending": string;
|
|
2116
|
+
"grid.sortClearButton": string;
|
|
2117
|
+
"grid.sortApplyButton": string;
|
|
2188
2118
|
"grid.sortAriaLabel": string;
|
|
2119
|
+
"grid.adaptiveToolbarSortTitle": string;
|
|
2120
|
+
"grid.toolbarSort": string;
|
|
2121
|
+
"grid.toolbarFilter": string;
|
|
2122
|
+
"grid.toolbarColumnsChooser": string;
|
|
2123
|
+
"grid.toolbarCheckboxFilter": string;
|
|
2189
2124
|
"grid.groupColumn": string;
|
|
2190
2125
|
"grid.ungroupColumn": string;
|
|
2191
2126
|
"grid.columnMenu": string;
|
|
@@ -2201,6 +2136,7 @@ export declare const gridMessages: {
|
|
|
2201
2136
|
"grid.pagerTotalPages": string;
|
|
2202
2137
|
"grid.searchPlaceholder": string;
|
|
2203
2138
|
"grid.searchboxPlaceholder": string;
|
|
2139
|
+
"grid.exportPDF": string;
|
|
2204
2140
|
"grid.filterCheckAll": string;
|
|
2205
2141
|
"grid.editDialogTitle": string;
|
|
2206
2142
|
"grid.editDialogSaveButtonTitle": string;
|
|
@@ -2377,6 +2313,14 @@ export declare interface GridPagerSettings {
|
|
|
2377
2313
|
*/
|
|
2378
2314
|
declare type GridPagerType = 'numeric' | 'input';
|
|
2379
2315
|
|
|
2316
|
+
/**
|
|
2317
|
+
* Represents the properties of the KendoReact GridPdfExportButton component.
|
|
2318
|
+
*/
|
|
2319
|
+
export declare const GridPdfExportButton: (props: GridPdfExportButtonProps) => JSX.Element;
|
|
2320
|
+
|
|
2321
|
+
export declare interface GridPdfExportButtonProps extends ButtonProps {
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2380
2324
|
/**
|
|
2381
2325
|
* Represents the props of the [KendoReact Grid component]({% slug overview_grid %}).
|
|
2382
2326
|
*/
|
|
@@ -2721,6 +2665,31 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2721
2665
|
* ```
|
|
2722
2666
|
*/
|
|
2723
2667
|
pager?: null | ComponentType<PagerProps>;
|
|
2668
|
+
/**
|
|
2669
|
+
* When set to true the Grid pdf export will be enabled.
|
|
2670
|
+
* If set to an object, the Grid will use the provided settings to export the PDF.
|
|
2671
|
+
*
|
|
2672
|
+
* @example
|
|
2673
|
+
* ```jsx
|
|
2674
|
+
* <Grid pdf={true} />
|
|
2675
|
+
* ```
|
|
2676
|
+
*/
|
|
2677
|
+
pdf?: boolean | GridProps;
|
|
2678
|
+
/**
|
|
2679
|
+
* Fires when the user clicks the PDF export button.
|
|
2680
|
+
*
|
|
2681
|
+
* @example
|
|
2682
|
+
* ```jsx
|
|
2683
|
+
*
|
|
2684
|
+
* <Grid onPdfExport={async (event) => {
|
|
2685
|
+
* const pdf = await import('@progress/kendo-react-pdf');
|
|
2686
|
+
* await pdf.saveGridPDF(event.target);
|
|
2687
|
+
* }} />
|
|
2688
|
+
* ```
|
|
2689
|
+
*/
|
|
2690
|
+
onPdfExport?: (event: {
|
|
2691
|
+
target: HTMLDivElement;
|
|
2692
|
+
}) => Promise<void>;
|
|
2724
2693
|
/**
|
|
2725
2694
|
* Alias for the `pageSize` property. If `take` is set, `pageSize` will be ignored.
|
|
2726
2695
|
*
|
|
@@ -2838,24 +2807,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2838
2807
|
* ```
|
|
2839
2808
|
*/
|
|
2840
2809
|
onGroupExpandChange?: (event: GridGroupExpandChangeEvent) => void;
|
|
2841
|
-
/**
|
|
2842
|
-
* Fires when the user tries to expand or collapse a row.
|
|
2843
|
-
*
|
|
2844
|
-
* @deprecated This prop is deprecated in favor of the [onDetailExpandChange]({% slug api_grid_gridprops %}#toc-ondetailexpandchange) and [onGroupExpandChange]({% slug api_grid_gridprops %}#toc-ongroupexpandchange) props.
|
|
2845
|
-
* We’re removing this prop in version 11.0.0.
|
|
2846
|
-
* ```
|
|
2847
|
-
*/
|
|
2848
|
-
onExpandChange?: (event: GridExpandChangeEvent) => void;
|
|
2849
|
-
/**
|
|
2850
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
|
|
2851
|
-
*
|
|
2852
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item ([see example]({% slug detailrow_grid %})).
|
|
2853
|
-
*
|
|
2854
|
-
* @deprecated This prop is deprecated in favor of the ([detailExpand]({% slug api_grid_gridprops %}#toc-detailexpand)) and ([groupExpand]({% slug api_grid_gridprops %}#toc-groupexpand)) props.
|
|
2855
|
-
* We’re removing this prop in version 11.0.0.
|
|
2856
|
-
* ```
|
|
2857
|
-
*/
|
|
2858
|
-
expandField?: string;
|
|
2859
2810
|
/**
|
|
2860
2811
|
* The [descriptor]({% slug api_data-tools_selectdescriptor %}) by which the selected state of an item is defined.
|
|
2861
2812
|
* Passing a boolean value will select the whole row, while passing an array of strings will select individual.
|
|
@@ -2884,16 +2835,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2884
2835
|
* ```
|
|
2885
2836
|
*/
|
|
2886
2837
|
selectable?: boolean | GridSelectableSettings;
|
|
2887
|
-
/**
|
|
2888
|
-
* Specifies the name of the field which will provide a:
|
|
2889
|
-
* - Boolean representation of the selected state of the item ([see example]({% slug selection_grid %})) for row selection
|
|
2890
|
-
* - String array of the selected columns of the item for cell selection
|
|
2891
|
-
*
|
|
2892
|
-
* @deprecated This prop is deprecated in favor of the ([select]({% slug api_grid_gridprops %}#toc-select)) prop.
|
|
2893
|
-
* We’re removing this prop in version 11.0.0.
|
|
2894
|
-
* ```
|
|
2895
|
-
*/
|
|
2896
|
-
selectedField?: string;
|
|
2897
2838
|
/**
|
|
2898
2839
|
* Fires when the user tries to select or deselect a row or cell.
|
|
2899
2840
|
*
|
|
@@ -2904,7 +2845,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2904
2845
|
*/
|
|
2905
2846
|
onSelectionChange?: (event: GridSelectionChangeEvent) => void;
|
|
2906
2847
|
/**
|
|
2907
|
-
* Fires when the user clicks the checkbox of a column header whose
|
|
2848
|
+
* Fires when the user clicks the checkbox of a column header whose type is set to `checkbox`.
|
|
2908
2849
|
*
|
|
2909
2850
|
* @example
|
|
2910
2851
|
* ```jsx
|
|
@@ -2975,16 +2916,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2975
2916
|
* ```
|
|
2976
2917
|
*/
|
|
2977
2918
|
onEditChange?: (event: GridEditChangeEvent) => void;
|
|
2978
|
-
/**
|
|
2979
|
-
* Specifies the name of the field which will provide a Boolean representation of the edit state
|
|
2980
|
-
* of the current item ([more information and examples]({% slug editing_inline_grid %})).
|
|
2981
|
-
*
|
|
2982
|
-
* @example
|
|
2983
|
-
* ```jsx
|
|
2984
|
-
* <Grid editField="inEdit" />
|
|
2985
|
-
* ```
|
|
2986
|
-
*/
|
|
2987
|
-
editField?: string;
|
|
2988
2919
|
/**
|
|
2989
2920
|
* Defines the scroll mode that is used by the Grid ([see example]({% slug scrollmodes_grid %})).
|
|
2990
2921
|
*
|
|
@@ -3134,30 +3065,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
3134
3065
|
* ```
|
|
3135
3066
|
*/
|
|
3136
3067
|
onColumnReorder?: (event: GridColumnReorderEvent) => void;
|
|
3137
|
-
/**
|
|
3138
|
-
* Fires when a row is about to be rendered. Overrides the default appearance of the row.
|
|
3139
|
-
*
|
|
3140
|
-
* @deprecated This prop is deprecated in favor of the ([rows]({% slug api_grid_gridprops %}#toc-rows)) prop. We’re removing this prop in version 11.0.0.
|
|
3141
|
-
*/
|
|
3142
|
-
rowRender?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
|
|
3143
|
-
/**
|
|
3144
|
-
* Fires when a cell is about to be rendered. Used to override the default appearance of the cell ([see example]({% slug groupingaggregates_grid %})).
|
|
3145
|
-
*
|
|
3146
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
3147
|
-
*/
|
|
3148
|
-
cellRender?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => React.ReactElement<HTMLTableCellElement> | React.ReactElement<HTMLTableCellElement>[] | null;
|
|
3149
|
-
/**
|
|
3150
|
-
* Fires when a filter cell is about to be rendered. Overrides the default appearance of the filter cell.
|
|
3151
|
-
*
|
|
3152
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
3153
|
-
*/
|
|
3154
|
-
filterCellRender?: (defaultRendering: React.ReactElement<any> | null, props: GridFilterCellProps) => React.ReactElement<any> | null;
|
|
3155
|
-
/**
|
|
3156
|
-
* Fires when a header cell is about to be rendered. Overrides the default appearance of the header cell.
|
|
3157
|
-
*
|
|
3158
|
-
* @deprecated This prop is deprecated in favor of the ([cells]({% slug api_grid_gridprops %}#toc-cells)) prop. We’re removing this prop in version 11.0.0.
|
|
3159
|
-
*/
|
|
3160
|
-
headerCellRender?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
|
|
3161
3068
|
/**
|
|
3162
3069
|
* Fires when Grid is scrolled. Only fired when the Grid is run as a client component.
|
|
3163
3070
|
*
|
|
@@ -3204,15 +3111,6 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
3204
3111
|
* ```
|
|
3205
3112
|
*/
|
|
3206
3113
|
onKeyDown?: (event: GridKeyDownEvent) => void;
|
|
3207
|
-
/**
|
|
3208
|
-
* The accessible label of the Grid.
|
|
3209
|
-
*/
|
|
3210
|
-
/**
|
|
3211
|
-
* **Deprecated**. The accessible label of the Grid. Use ([messages]({% slug globalization_grid %})) instead.
|
|
3212
|
-
*
|
|
3213
|
-
* @deprecated
|
|
3214
|
-
*/
|
|
3215
|
-
ariaLabel?: string;
|
|
3216
3114
|
/**
|
|
3217
3115
|
* Defines if the group descriptor columns are locked (frozen or sticky).
|
|
3218
3116
|
* Locked columns are the columns that are visible at all times while the user scrolls the component horizontally.
|
|
@@ -3335,7 +3233,7 @@ export declare type GridReorderDropPosition = 'before' | 'after' | 'forbidden';
|
|
|
3335
3233
|
/**
|
|
3336
3234
|
* The component for each of the items in the `data` property which the Grid renders.
|
|
3337
3235
|
*/
|
|
3338
|
-
export declare const GridRow: (props: GridRowProps) =>
|
|
3236
|
+
export declare const GridRow: (props: GridRowProps) => JSX.Element;
|
|
3339
3237
|
|
|
3340
3238
|
/**
|
|
3341
3239
|
* Represents the object of the `onRowClick` Grid event.
|
|
@@ -3358,7 +3256,7 @@ export declare interface GridRowDoubleClickEvent extends GridEvent {
|
|
|
3358
3256
|
}
|
|
3359
3257
|
|
|
3360
3258
|
/**
|
|
3361
|
-
* The props that the Grid passes to the GridRow component when creating it. Accessible
|
|
3259
|
+
* The props that the Grid passes to the GridRow component when creating it. Accessible when passing a custom row to the `rows` prop of the Grid.
|
|
3362
3260
|
*/
|
|
3363
3261
|
export declare interface GridRowProps extends KendoReactComponentBaseProps {
|
|
3364
3262
|
/**
|
|
@@ -3385,10 +3283,6 @@ export declare interface GridRowProps extends KendoReactComponentBaseProps {
|
|
|
3385
3283
|
* The event that is fired when the row is double clicked.
|
|
3386
3284
|
*/
|
|
3387
3285
|
onDoubleClick: any;
|
|
3388
|
-
/**
|
|
3389
|
-
* The name of the field which will provide a Boolean representation of the selected state of the item.
|
|
3390
|
-
*/
|
|
3391
|
-
selectedField?: string;
|
|
3392
3286
|
/**
|
|
3393
3287
|
* Sets the height of the row.
|
|
3394
3288
|
*/
|
|
@@ -3397,10 +3291,6 @@ export declare interface GridRowProps extends KendoReactComponentBaseProps {
|
|
|
3397
3291
|
* The type of the row.
|
|
3398
3292
|
*/
|
|
3399
3293
|
rowType: GridRowType;
|
|
3400
|
-
/**
|
|
3401
|
-
* A function for overriding the default rendering of the row.
|
|
3402
|
-
*/
|
|
3403
|
-
render?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
|
|
3404
3294
|
/**
|
|
3405
3295
|
* Sets a set of rows components that the Grid will render instead of the built-in row.
|
|
3406
3296
|
*/
|
|
@@ -3647,37 +3537,254 @@ export declare const GridToolbar: {
|
|
|
3647
3537
|
};
|
|
3648
3538
|
|
|
3649
3539
|
/**
|
|
3650
|
-
*
|
|
3540
|
+
* Represents the GridToolbarCheckboxFilter component.
|
|
3651
3541
|
*/
|
|
3652
|
-
export declare
|
|
3542
|
+
export declare const GridToolbarCheckboxFilter: {
|
|
3543
|
+
(props: GridToolbarCheckboxFilterProps): JSX.Element;
|
|
3544
|
+
displayName: string;
|
|
3545
|
+
};
|
|
3546
|
+
|
|
3547
|
+
export declare interface GridToolbarCheckboxFilterProps {
|
|
3653
3548
|
/**
|
|
3654
|
-
*
|
|
3549
|
+
* Sets the items collection that will be rendered by the GridToolbarCheckboxFilter component.
|
|
3655
3550
|
*/
|
|
3656
|
-
|
|
3551
|
+
data: Array<string | object>;
|
|
3657
3552
|
/**
|
|
3658
|
-
*
|
|
3553
|
+
* Defines the icon rendered in the GridToolbarCheckboxFilter tool ([see example]({% slug overview_icon %})).
|
|
3554
|
+
*
|
|
3555
|
+
* @example
|
|
3556
|
+
* ```jsx
|
|
3557
|
+
* <GridToolbarCheckboxFilter icon="home" />
|
|
3558
|
+
* ```
|
|
3659
3559
|
*/
|
|
3660
|
-
|
|
3560
|
+
icon?: string;
|
|
3661
3561
|
/**
|
|
3662
|
-
*
|
|
3562
|
+
* Defines the SVG icon rendered in the GridToolbarCheckboxFilter tool ([see example]({% slug overview_svgicon %})).
|
|
3663
3563
|
*
|
|
3664
|
-
*
|
|
3665
|
-
*
|
|
3666
|
-
* -
|
|
3667
|
-
* - large
|
|
3668
|
-
* - null—Does not set a size `className`.
|
|
3564
|
+
* @example
|
|
3565
|
+
* ```jsx
|
|
3566
|
+
* import { gearIcon } from '@progress/kendo-svg-icons';
|
|
3669
3567
|
*
|
|
3670
|
-
*
|
|
3568
|
+
* <GridToolbarCheckboxFilter svgIcon={gearIcon} />
|
|
3569
|
+
* ```
|
|
3671
3570
|
*/
|
|
3672
|
-
|
|
3571
|
+
svgIcon?: SVGIcon;
|
|
3673
3572
|
/**
|
|
3674
|
-
*
|
|
3573
|
+
* Defines the component that will be rendered as a search box.
|
|
3574
|
+
*
|
|
3675
3575
|
*/
|
|
3676
|
-
|
|
3576
|
+
searchBox?: React_2.ComponentType<any>;
|
|
3577
|
+
/**
|
|
3578
|
+
* Defines the filter operator that will be used to filter the values via the search box.
|
|
3579
|
+
* "startswith"
|
|
3580
|
+
* "endswith"
|
|
3581
|
+
* "contains"
|
|
3582
|
+
* "doesnotcontain"
|
|
3583
|
+
* "isempty"
|
|
3584
|
+
* "isnotempty"
|
|
3585
|
+
* "eq" (equal to)
|
|
3586
|
+
* "eq" (equal to)
|
|
3587
|
+
* "neq" (not equal to)
|
|
3588
|
+
* "isnull" (is equal to null)
|
|
3589
|
+
* "isnotnull" (is not equal to null)
|
|
3590
|
+
*/
|
|
3591
|
+
searchBoxFilterOperator?: string | Function;
|
|
3592
|
+
/**
|
|
3593
|
+
* Determines if the data in the component will be unique. By default the property is set to true.
|
|
3594
|
+
*
|
|
3595
|
+
* @example
|
|
3596
|
+
* ```jsx
|
|
3597
|
+
* <GridToolbarCheckboxFilter uniqueData={true} />
|
|
3598
|
+
* ```
|
|
3599
|
+
*/
|
|
3600
|
+
uniqueData?: boolean;
|
|
3601
|
+
/**
|
|
3602
|
+
* Specifies if the popup will be displayed.
|
|
3603
|
+
*
|
|
3604
|
+
* @example
|
|
3605
|
+
* ```jsx
|
|
3606
|
+
* <GridToolbarCheckboxFilter show={true} />
|
|
3607
|
+
* ```
|
|
3608
|
+
*/
|
|
3609
|
+
show?: boolean;
|
|
3610
|
+
/**
|
|
3611
|
+
* The method that will be called to close the column menu.
|
|
3612
|
+
*
|
|
3613
|
+
* @example
|
|
3614
|
+
* ```jsx
|
|
3615
|
+
* <GridToolbarCheckboxFilter onCloseMenu={() => console.log('close menu');} />
|
|
3616
|
+
* ```
|
|
3617
|
+
*/
|
|
3618
|
+
onCloseMenu?: Function;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* Represents the GridToolbarColumnsChooser component.
|
|
3623
|
+
*/
|
|
3624
|
+
export declare const GridToolbarColumnsChooser: {
|
|
3625
|
+
(props: GridToolbarColumnsChooserProps): JSX.Element;
|
|
3626
|
+
displayName: string;
|
|
3627
|
+
};
|
|
3628
|
+
|
|
3629
|
+
export declare interface GridToolbarColumnsChooserProps {
|
|
3630
|
+
/**
|
|
3631
|
+
* Defines the icon rendered in the GridToolbarSort tool ([see example]({% slug overview_icon %})).
|
|
3632
|
+
*
|
|
3633
|
+
* @example
|
|
3634
|
+
* ```jsx
|
|
3635
|
+
* <GridToolbarSort icon="home" />
|
|
3636
|
+
* ```
|
|
3637
|
+
*/
|
|
3638
|
+
icon?: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* Defines the SVG icon rendered in the GridToolbarSort tool ([see example]({% slug overview_svgicon %})).
|
|
3641
|
+
*
|
|
3642
|
+
* @example
|
|
3643
|
+
* ```jsx
|
|
3644
|
+
* import { gearIcon } from '@progress/kendo-svg-icons';
|
|
3645
|
+
*
|
|
3646
|
+
* <GridToolbarSort svgIcon={gearIcon} />
|
|
3647
|
+
* ```
|
|
3648
|
+
*/
|
|
3649
|
+
svgIcon?: SVGIcon;
|
|
3650
|
+
/**
|
|
3651
|
+
* Specifies if the popup will be displayed.
|
|
3652
|
+
*
|
|
3653
|
+
* @example
|
|
3654
|
+
* ```jsx
|
|
3655
|
+
* <GridToolbarColumnsChooser show={true} />
|
|
3656
|
+
* ```
|
|
3657
|
+
*/
|
|
3658
|
+
show?: boolean;
|
|
3659
|
+
/**
|
|
3660
|
+
* The method that will be called to close the column menu.
|
|
3661
|
+
*
|
|
3662
|
+
* @example
|
|
3663
|
+
* ```jsx
|
|
3664
|
+
* <GridToolbarColumnsChooser onCloseMenu={() => console.log('close menu');} />
|
|
3665
|
+
*/
|
|
3666
|
+
onCloseMenu?: Function;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
/**
|
|
3670
|
+
* Represents the GridToolbarFilter component.
|
|
3671
|
+
*/
|
|
3672
|
+
export declare const GridToolbarFilter: {
|
|
3673
|
+
(props: GridToolbarFilterProps): JSX.Element;
|
|
3674
|
+
displayName: string;
|
|
3675
|
+
};
|
|
3676
|
+
|
|
3677
|
+
export declare interface GridToolbarFilterProps {
|
|
3678
|
+
/**
|
|
3679
|
+
* Defines the icon rendered in the GridToolbarFilter tool ([see example]({% slug overview_icon %})).
|
|
3680
|
+
*
|
|
3681
|
+
* @example
|
|
3682
|
+
* ```jsx
|
|
3683
|
+
* <GridToolbarFilter icon="home" />
|
|
3684
|
+
* ```
|
|
3685
|
+
*/
|
|
3686
|
+
icon?: string;
|
|
3687
|
+
/**
|
|
3688
|
+
* Defines the SVG icon rendered in the GridToolbarFilter tool ([see example]({% slug overview_svgicon %})).
|
|
3689
|
+
*
|
|
3690
|
+
* @example
|
|
3691
|
+
* ```jsx
|
|
3692
|
+
* import { gearIcon } from '@progress/kendo-svg-icons';
|
|
3693
|
+
*
|
|
3694
|
+
* <GridToolbarFilter svgIcon={gearIcon} />
|
|
3695
|
+
* ```
|
|
3696
|
+
*/
|
|
3697
|
+
svgIcon?: SVGIcon;
|
|
3698
|
+
/**
|
|
3699
|
+
* If set to `false`, the second filter operator and the input will be hidden.
|
|
3700
|
+
*/
|
|
3701
|
+
hideSecondFilter?: boolean;
|
|
3702
|
+
/**
|
|
3703
|
+
* Specifies a React element that will be cloned and rendered inside the UI of the column-menu filter component
|
|
3704
|
+
* ([see example]({% slug column_menu_grid %}#toc-customizing-the-filter-component)).
|
|
3705
|
+
*/
|
|
3706
|
+
filterUI?: ComponentType<GridColumnMenuFilterUIProps>;
|
|
3707
|
+
/**
|
|
3708
|
+
* Specifies if the popup will be displayed.
|
|
3709
|
+
*
|
|
3710
|
+
* @example
|
|
3711
|
+
* ```jsx
|
|
3712
|
+
* <GridToolbarFilter show={true} />
|
|
3713
|
+
* ```
|
|
3714
|
+
*/
|
|
3715
|
+
show?: boolean;
|
|
3716
|
+
/**
|
|
3717
|
+
* The method that will be called to close the column menu.
|
|
3718
|
+
*
|
|
3719
|
+
* @example
|
|
3720
|
+
* ```jsx
|
|
3721
|
+
* <GridToolbarFilter onCloseMenu={() => console.log('close menu');} />
|
|
3722
|
+
* ```
|
|
3723
|
+
*/
|
|
3724
|
+
onCloseMenu?: Function;
|
|
3725
|
+
/**
|
|
3726
|
+
* The method that will be called to notify the parent Grid about a filter change.
|
|
3727
|
+
*/
|
|
3728
|
+
onFilterChange?: (filter: CompositeFilterDescriptor | null, syntheticEvent: React_2.SyntheticEvent<any>) => any;
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* The properties of the GridToolbar component.
|
|
3733
|
+
*/
|
|
3734
|
+
export declare interface GridToolbarProps extends ToolbarProps {
|
|
3677
3735
|
/**
|
|
3678
3736
|
* @hidden
|
|
3679
3737
|
*/
|
|
3680
|
-
|
|
3738
|
+
_ariaControls?: string;
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
/**
|
|
3742
|
+
* Represents the GridToolbarSort component.
|
|
3743
|
+
*/
|
|
3744
|
+
export declare const GridToolbarSort: {
|
|
3745
|
+
(props: GridToolbarSortProps): any;
|
|
3746
|
+
displayName: string;
|
|
3747
|
+
};
|
|
3748
|
+
|
|
3749
|
+
export declare interface GridToolbarSortProps {
|
|
3750
|
+
/**
|
|
3751
|
+
* Defines the icon rendered in the GridToolbarSort tool ([see example]({% slug overview_icon %})).
|
|
3752
|
+
*
|
|
3753
|
+
* @example
|
|
3754
|
+
* ```jsx
|
|
3755
|
+
* <GridToolbarSort icon="home" />
|
|
3756
|
+
* ```
|
|
3757
|
+
*/
|
|
3758
|
+
icon?: string;
|
|
3759
|
+
/**
|
|
3760
|
+
* Defines the SVG icon rendered in the GridToolbarSort tool ([see example]({% slug overview_svgicon %})).
|
|
3761
|
+
*
|
|
3762
|
+
* @example
|
|
3763
|
+
* ```jsx
|
|
3764
|
+
* import { gearIcon } from '@progress/kendo-svg-icons';
|
|
3765
|
+
*
|
|
3766
|
+
* <GridToolbarSort svgIcon={gearIcon} />
|
|
3767
|
+
* ```
|
|
3768
|
+
*/
|
|
3769
|
+
svgIcon?: SVGIcon_2;
|
|
3770
|
+
/**
|
|
3771
|
+
* Specifies if the popup will be displayed.
|
|
3772
|
+
*
|
|
3773
|
+
* @example
|
|
3774
|
+
* ```jsx
|
|
3775
|
+
* <GridToolbarSort show={true} />
|
|
3776
|
+
* ```
|
|
3777
|
+
*/
|
|
3778
|
+
show?: boolean;
|
|
3779
|
+
/**
|
|
3780
|
+
* The method that will be called to close the column menu.
|
|
3781
|
+
*
|
|
3782
|
+
* @example
|
|
3783
|
+
* ```jsx
|
|
3784
|
+
* <GridToolbarSort onCloseMenu={() => console.log('close menu');} />
|
|
3785
|
+
* ```
|
|
3786
|
+
*/
|
|
3787
|
+
onCloseMenu?: Function;
|
|
3681
3788
|
}
|
|
3682
3789
|
|
|
3683
3790
|
/**
|
|
@@ -3778,9 +3885,9 @@ export declare interface StatusBarProps {
|
|
|
3778
3885
|
/**
|
|
3779
3886
|
* Represents the arguments of the getStatusData function.
|
|
3780
3887
|
*/
|
|
3781
|
-
export declare type StatusDataArgs = Pick<GridSelectionChangeEvent, 'dataItems' | 'target' | '
|
|
3888
|
+
export declare type StatusDataArgs = Pick<GridSelectionChangeEvent, 'dataItems' | 'target' | 'select'> & {
|
|
3782
3889
|
dataItemKey: Required<GridProps>['dataItemKey'];
|
|
3783
|
-
}
|
|
3890
|
+
};
|
|
3784
3891
|
|
|
3785
3892
|
/**
|
|
3786
3893
|
* Represents the KendoReact Grid's StatusItem object.
|