@progress/kendo-react-data-tools 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/clipboard/clipboard.service.d.ts +20 -0
- package/clipboard/common.d.ts +188 -0
- package/columnmenu/ColumnMenu.d.ts +90 -0
- package/columnmenu/ColumnMenuFilterForm.d.ts +25 -0
- package/columnmenu/ColumnMenuFilterLogic.d.ts +10 -0
- package/columnmenu/ColumnMenuFilterLogic.mjs +4 -4
- package/columnmenu/ColumnMenuFilters.d.ts +31 -0
- package/columnmenu/ColumnMenuItem.d.ts +39 -0
- package/columnmenu/ColumnMenuOperators.d.ts +72 -0
- package/columnmenu/index.d.ts +13 -0
- package/data-source/use-data-source.d.ts +224 -0
- package/data-source/use-odata-data-source.d.ts +41 -0
- package/data-source/use-remote-data-source.d.ts +411 -0
- package/detail-expansion/TableExpandableSettings.d.ts +12 -0
- package/detail-expansion/expandReducer.d.ts +31 -0
- package/detail-expansion/utils.d.ts +10 -0
- package/dist/cdn/js/kendo-react-datatools.js +1 -1
- package/drag/ColumnDraggable.d.ts +37 -0
- package/drag/ColumnResize.d.ts +39 -0
- package/drag/ColumnResizer.d.ts +35 -0
- package/drag/CommonDragLogic.d.ts +45 -0
- package/drag/DragClue.d.ts +29 -0
- package/drag/DropClue.d.ts +26 -0
- package/editing/TableEditableSettings.d.ts +24 -0
- package/editing/editReducer.d.ts +62 -0
- package/editing/utils.d.ts +12 -0
- package/filter/Expression.d.ts +53 -0
- package/filter/Expression.js +1 -1
- package/filter/Expression.mjs +10 -11
- package/filter/FieldSettings.d.ts +37 -0
- package/filter/Filter.d.ts +139 -0
- package/filter/Group.d.ts +64 -0
- package/filter/Group.js +1 -1
- package/filter/Group.mjs +7 -7
- package/filter/filters/BooleanFilter.d.ts +50 -0
- package/filter/filters/DateFilter.d.ts +33 -0
- package/filter/filters/EnumFilter.d.ts +50 -0
- package/filter/filters/NumericFilter.d.ts +40 -0
- package/filter/filters/TextFilter.d.ts +47 -0
- package/filter/filters/index.d.ts +12 -0
- package/filter/index.d.ts +13 -0
- package/filter/operators.d.ts +80 -0
- package/filteringCells/BooleanFilter.d.ts +15 -0
- package/filteringCells/DateFilter.d.ts +15 -0
- package/filteringCells/FilterCellProps.d.ts +42 -0
- package/filteringCells/FilterComponent.d.ts +24 -0
- package/filteringCells/FilterComponentProps.d.ts +30 -0
- package/filteringCells/FilterOperator.d.ts +20 -0
- package/filteringCells/NumericFilter.d.ts +15 -0
- package/filteringCells/TextFilter.d.ts +15 -0
- package/filteringCells/index.d.ts +15 -0
- package/group-expansion/TableGroupExpandableSettings.d.ts +12 -0
- package/group-expansion/groupExpandReducer.d.ts +46 -0
- package/header/CellProps.d.ts +83 -0
- package/header/ColumnProps.d.ts +167 -0
- package/header/FilterRow.d.ts +32 -0
- package/header/Header.d.ts +26 -0
- package/header/HeaderCell.d.ts +54 -0
- package/header/HeaderRow.d.ts +44 -0
- package/header/HeaderSelectionCell.d.ts +19 -0
- package/header/HeaderTdElement.d.ts +42 -0
- package/header/HeaderThElement.d.ts +42 -0
- package/header/SortSettings.d.ts +33 -0
- package/header/index.d.ts +18 -0
- package/header/utils/index.d.ts +90 -0
- package/index.d.mts +43 -3741
- package/index.d.ts +43 -3741
- package/messages/index.d.ts +397 -0
- package/navigation/NavigatableSettings.d.ts +25 -0
- package/navigation/TableKeyboardNavigation.d.ts +95 -0
- package/navigation/TableKeyboardNavigation.mjs +13 -13
- package/navigation/TableKeyboardNavigationContext.d.ts +13 -0
- package/navigation/TableKeyboardNavigationContextType.d.ts +14 -0
- package/navigation/TableKeyboardNavigationStateType.d.ts +17 -0
- package/navigation/constants.d.ts +61 -0
- package/navigation/hooks.d.ts +19 -0
- package/navigation/hooks.mjs +3 -3
- package/navigation/stackedKeyboardNavigation.d.ts +217 -0
- package/navigation/utils.d.ts +329 -0
- package/navigation/utils.mjs +5 -5
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
- package/pager/Pager.d.ts +10 -0
- package/pager/Pager.js +1 -1
- package/pager/Pager.mjs +64 -66
- package/pager/PagerInput.d.ts +29 -0
- package/pager/PagerNumericButtons.d.ts +28 -0
- package/pager/PagerNumericButtons.js +1 -1
- package/pager/PagerNumericButtons.mjs +15 -17
- package/pager/PagerPageSizes.d.ts +36 -0
- package/pager/models/index.d.ts +178 -0
- package/pager/utils.d.ts +66 -0
- package/selection/TableSelectableSettings.d.ts +38 -0
- package/selection/TableSelection.d.ts +25 -0
- package/selection/constants.d.ts +13 -0
- package/selection/events.d.ts +101 -0
- package/selection/utils.d.ts +70 -0
- package/utils/DataItemWrapper.d.ts +17 -0
- package/utils/SearchField.d.ts +24 -0
- package/utils/data-operations.d.ts +107 -0
- package/utils/group-operations.d.ts +36 -0
- package/virtualization/columns.d.ts +24 -0
- package/virtualization/index.d.ts +8 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TableGroupExpandableSettings } from './TableGroupExpandableSettings.js';
|
|
9
|
+
/**
|
|
10
|
+
* The descriptor used to define the expanded state of a group.
|
|
11
|
+
*/
|
|
12
|
+
export type GroupExpandDescriptor = {
|
|
13
|
+
value: any;
|
|
14
|
+
field: string;
|
|
15
|
+
expanded?: boolean;
|
|
16
|
+
groups?: GroupExpandDescriptor[];
|
|
17
|
+
};
|
|
18
|
+
/** @hidden */
|
|
19
|
+
export declare enum GROUP_EXPAND_ACTION {
|
|
20
|
+
TOGGLE = "GROUP-EXPAND_TOGGLE",
|
|
21
|
+
EXPAND = "GROUP-EXPAND_EXPAND",
|
|
22
|
+
COLLAPSE = "GROUP-EXPAND_COLLAPSE",
|
|
23
|
+
RESET = "GROUP-EXPAND_RESET"
|
|
24
|
+
}
|
|
25
|
+
/** @hidden */
|
|
26
|
+
export type GroupExpandAction = {
|
|
27
|
+
type: GROUP_EXPAND_ACTION;
|
|
28
|
+
group: GroupState;
|
|
29
|
+
};
|
|
30
|
+
/** @hidden */
|
|
31
|
+
export type GroupState = {
|
|
32
|
+
value: any;
|
|
33
|
+
field: string;
|
|
34
|
+
expanded?: boolean;
|
|
35
|
+
parents?: GroupState[];
|
|
36
|
+
};
|
|
37
|
+
/** @hidden */
|
|
38
|
+
export declare const getGroupExpandableOptions: (groupExpandable?: boolean | TableGroupExpandableSettings) => TableGroupExpandableSettings;
|
|
39
|
+
/** @hidden */
|
|
40
|
+
export declare const findGroupExpand: (groupExpand: GroupExpandDescriptor[], group: GroupState) => GroupExpandDescriptor | undefined;
|
|
41
|
+
/** @hidden */
|
|
42
|
+
export declare const isExpanded: (groupExpand: GroupExpandDescriptor[], group: GroupState) => boolean;
|
|
43
|
+
/** @hidden */
|
|
44
|
+
export declare const flatToTree: (flat: GroupState[]) => GroupExpandDescriptor[];
|
|
45
|
+
/** @hidden */
|
|
46
|
+
export declare const groupExpandReducer: (state: GroupExpandDescriptor[], action: GroupExpandAction, options?: TableGroupExpandableSettings) => GroupExpandDescriptor[];
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
export interface CellProps {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The index applied to the `aria-colindex` attribute.
|
|
16
|
+
*/
|
|
17
|
+
ariaColumnIndex: number;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates if the cell is selected.
|
|
20
|
+
*/
|
|
21
|
+
isSelected: boolean;
|
|
22
|
+
/** @hidden */
|
|
23
|
+
isHighlighted?: boolean;
|
|
24
|
+
/** @hidden */
|
|
25
|
+
isInEdit?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates if the cell is sorted.
|
|
28
|
+
*/
|
|
29
|
+
isSorted?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates if the cell is alt.
|
|
32
|
+
*/
|
|
33
|
+
isAlt?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if the cell is expanded.
|
|
36
|
+
*/
|
|
37
|
+
expanded?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Custom CSS classes for the cell.
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Inline styles for the cell.
|
|
44
|
+
*/
|
|
45
|
+
style?: React.CSSProperties;
|
|
46
|
+
/**
|
|
47
|
+
* The data field that the cell binds to.
|
|
48
|
+
*/
|
|
49
|
+
field?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The data item for the current row.
|
|
52
|
+
*/
|
|
53
|
+
dataItem: any;
|
|
54
|
+
/**
|
|
55
|
+
* The format applied to the value before display.
|
|
56
|
+
* Takes the `{0:format}` form where `format` is a standard number format, a custom number format,
|
|
57
|
+
* a standard date format, or a custom date format.
|
|
58
|
+
*/
|
|
59
|
+
format?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The column span of the cell.
|
|
62
|
+
*/
|
|
63
|
+
colSpan?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Fires when the cell is selected.
|
|
66
|
+
*/
|
|
67
|
+
selectionChange?: (event: {
|
|
68
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
69
|
+
}) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Fires when the cell value changes.
|
|
72
|
+
*/
|
|
73
|
+
onChange?: (event: {
|
|
74
|
+
dataItem: any;
|
|
75
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
76
|
+
field?: string;
|
|
77
|
+
value?: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Overrides the default cell rendering.
|
|
81
|
+
*/
|
|
82
|
+
render?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: CellProps) => React.ReactElement<HTMLTableCellElement> | null;
|
|
83
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ComponentType } from 'react';
|
|
9
|
+
import { HeaderCellProps } from './HeaderCell.js';
|
|
10
|
+
import { CellProps } from './CellProps.js';
|
|
11
|
+
import { FilterCellProps } from '../filteringCells/FilterCellProps.js';
|
|
12
|
+
import { ColumnSortSettings } from './SortSettings.js';
|
|
13
|
+
import { ColumnMenuProps } from '../columnmenu/index.js';
|
|
14
|
+
export interface ColumnBaseProps<C = CellProps> {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the data field that the column binds to.
|
|
17
|
+
*/
|
|
18
|
+
field?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the column header text.
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Enables header click to emit the `sortChange` event. Handle `sortChange` to sort the data.
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
sortable?: boolean | ColumnSortSettings;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the width of the column (in pixels).
|
|
31
|
+
*/
|
|
32
|
+
width?: string | number;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates that the header selection checkbox is checked when `true`.
|
|
35
|
+
*/
|
|
36
|
+
headerSelectionValue?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Applies a format to the value before display.
|
|
39
|
+
* Takes the `{0:format}` form where `format` is a standard number format, a custom number format,
|
|
40
|
+
* a standard date format, or a custom date format. For more information on supported formats see the
|
|
41
|
+
* [kendo-intl](https://github.com/telerik/kendo-intl/blob/develop/docs/index.md) documentation.
|
|
42
|
+
*/
|
|
43
|
+
format?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Sets custom CSS classes on the header cell.
|
|
46
|
+
*/
|
|
47
|
+
headerClassName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Sets custom CSS classes on the column cells.
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Enables column resizing when `true`.
|
|
54
|
+
*
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
resizable?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Enables column reordering when `true`.
|
|
60
|
+
*
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
reorderable?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Disables the ability to reorder when another column is dragged over it or tried to be reordered with keyboard.
|
|
66
|
+
*
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
disableReorder?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the minimum resize width (in pixels).
|
|
72
|
+
*
|
|
73
|
+
* @default 10
|
|
74
|
+
*/
|
|
75
|
+
minResizableWidth?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Determines the column position. Smaller `orderIndex` values render first.
|
|
78
|
+
*
|
|
79
|
+
* @default 0
|
|
80
|
+
*/
|
|
81
|
+
orderIndex?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the column id for distinguishing columns (multi header, resize, or keyboard navigation scenarios).
|
|
84
|
+
* Also used as the unique key for rendering cells. If not set, a unique id is generated.
|
|
85
|
+
*/
|
|
86
|
+
id?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Defines the component rendered as a cell. If not set, a `Cell` renders.
|
|
89
|
+
*/
|
|
90
|
+
cell?: ComponentType<C>;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
navigatable?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
locked?: boolean;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
export interface TreeColumnBaseProps<C = CellProps, H = HeaderCellProps, F = FilterCellProps> extends ColumnBaseProps<C> {
|
|
104
|
+
/**
|
|
105
|
+
* A collection of child columns.
|
|
106
|
+
*/
|
|
107
|
+
children?: TreeColumnBaseProps<C, H, F>[];
|
|
108
|
+
/**
|
|
109
|
+
* The column menu component. Pass the [ColumnMenuTextColumn](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenutextcolumn),
|
|
110
|
+
* [ColumnMenuNumericColumn](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenunumericcolumn),
|
|
111
|
+
* [ColumnMenuDateColumn](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenudatecolumn),
|
|
112
|
+
* [ColumnMenuBooleanColumn](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenubooleancolumn)
|
|
113
|
+
* or a custom component base on the type of the column data.
|
|
114
|
+
*/
|
|
115
|
+
columnMenu?: React.ComponentType<ColumnMenuProps>;
|
|
116
|
+
/**
|
|
117
|
+
* If set to `true`, the column will render the icons that are used for expanding and collapsing child rows.
|
|
118
|
+
*/
|
|
119
|
+
expandable?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Defines the component that will be rendered as an edit cell.
|
|
122
|
+
*/
|
|
123
|
+
editCell?: ComponentType<C>;
|
|
124
|
+
/**
|
|
125
|
+
* Defines the component that will be rendered as a header cell.
|
|
126
|
+
* If not set, a `HeaderCell` will be rendered by default.
|
|
127
|
+
*/
|
|
128
|
+
headerCell?: ComponentType<H>;
|
|
129
|
+
/**
|
|
130
|
+
* **Deprecated**. Use `filterCell` prop instead.
|
|
131
|
+
*/
|
|
132
|
+
filter?: ComponentType<F>;
|
|
133
|
+
/**
|
|
134
|
+
* Defines the component that will be rendered as a filter cell.
|
|
135
|
+
*/
|
|
136
|
+
filterCell?: ComponentType<F>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @hidden
|
|
140
|
+
*/
|
|
141
|
+
export interface ExtendedColumnProps<C = CellProps, H = HeaderCellProps, F = FilterCellProps> extends TreeColumnBaseProps<C, H, F> {
|
|
142
|
+
declarationIndex: number;
|
|
143
|
+
parentIndex: number;
|
|
144
|
+
colSpan: number;
|
|
145
|
+
rowSpan: number;
|
|
146
|
+
depth: number;
|
|
147
|
+
kFirst?: boolean;
|
|
148
|
+
index: number;
|
|
149
|
+
children: ExtendedColumnProps<C, H, F>[];
|
|
150
|
+
left: number;
|
|
151
|
+
right: number;
|
|
152
|
+
rightBorder: boolean;
|
|
153
|
+
groupable: boolean;
|
|
154
|
+
ariaColumnIndex: number;
|
|
155
|
+
isAccessible: boolean;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
export declare const ColumnDefaultProps: {
|
|
161
|
+
filterable: boolean;
|
|
162
|
+
editable: boolean;
|
|
163
|
+
sortable: boolean;
|
|
164
|
+
resizable: boolean;
|
|
165
|
+
reorderable: boolean;
|
|
166
|
+
groupable: boolean;
|
|
167
|
+
};
|
|
@@ -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 { FilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { ExtendedColumnProps } from './ColumnProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const FILTER_ROW_CLASS = "k-table-row k-filter-row";
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface FilterRowProps {
|
|
19
|
+
columns: ExtendedColumnProps[];
|
|
20
|
+
filter?: FilterDescriptor[];
|
|
21
|
+
filterChange: (event: {
|
|
22
|
+
filter: FilterDescriptor[];
|
|
23
|
+
field: string;
|
|
24
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
25
|
+
}) => void;
|
|
26
|
+
sort?: SortDescriptor[];
|
|
27
|
+
ariaRowIndex?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export declare const FilterRow: (props: FilterRowProps) => React.JSX.Element;
|
|
@@ -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 { ColumnResize } from './../drag/ColumnResize.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface HeaderProps {
|
|
14
|
+
headerRow: React.ReactElement<any>;
|
|
15
|
+
filterRow?: React.ReactElement<any>;
|
|
16
|
+
columnResize?: ColumnResize;
|
|
17
|
+
reorderable?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare class Header extends React.Component<HeaderProps> {
|
|
23
|
+
private element;
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface HeaderCellBaseProps {
|
|
13
|
+
/**
|
|
14
|
+
* The column field in which the cell is located.
|
|
15
|
+
*/
|
|
16
|
+
field?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The title of the column in which the cell is located.
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The `click` event handler of the cell.
|
|
23
|
+
*/
|
|
24
|
+
onClick?: any;
|
|
25
|
+
/**
|
|
26
|
+
* The `selectionChange` event handler of the cell.
|
|
27
|
+
*/
|
|
28
|
+
selectionChange: any;
|
|
29
|
+
/**
|
|
30
|
+
* The `selectionValue` event handler of the column in which the cell is located.
|
|
31
|
+
*/
|
|
32
|
+
selectionValue: any;
|
|
33
|
+
/**
|
|
34
|
+
* A function for overriding the default rendering of the header cell.
|
|
35
|
+
*/
|
|
36
|
+
render?: (defaultRendering: React.ReactNode | null, props: HeaderCellBaseProps) => React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The current sort icons.
|
|
39
|
+
*/
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
export interface HeaderCellProps extends HeaderCellBaseProps {
|
|
46
|
+
/**
|
|
47
|
+
* A function for overriding the default rendering of the header cell.
|
|
48
|
+
*/
|
|
49
|
+
render?: (defaultRendering: React.ReactNode | null, props: HeaderCellProps) => React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
export declare function HeaderCell(props: HeaderCellProps): React.JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
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, CompositeFilterDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { TreeColumnBaseProps, ExtendedColumnProps } from './ColumnProps.js';
|
|
10
|
+
import { HeaderCellProps } from './HeaderCell.js';
|
|
11
|
+
import { SortSettings } from './SortSettings.js';
|
|
12
|
+
import { ColumnResize } from '../drag/ColumnResize.js';
|
|
13
|
+
import { ColumnDraggableProps } from '../drag/ColumnDraggable.js';
|
|
14
|
+
import { ColumnMenuProps } from '../columnmenu/index.js';
|
|
15
|
+
import { CellProps } from './CellProps.js';
|
|
16
|
+
import { FilterCellProps } from '../filteringCells/index.js';
|
|
17
|
+
import * as React from 'react';
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export interface HeaderRowProps<C = CellProps, H = HeaderCellProps, F = FilterCellProps> extends ColumnDraggableProps {
|
|
22
|
+
sortable?: SortSettings;
|
|
23
|
+
sortChange?: (e: React.SyntheticEvent<any>, descriptors: SortDescriptor[], field?: string) => void;
|
|
24
|
+
filterChange?: (e: React.SyntheticEvent<any>, descriptors: FilterDescriptor[], field?: string) => void;
|
|
25
|
+
sort?: SortDescriptor[];
|
|
26
|
+
columns: ExtendedColumnProps<C, H, F>[];
|
|
27
|
+
columnsMap: number[][];
|
|
28
|
+
selectionChange: (e: any) => void;
|
|
29
|
+
cellRender?: (defaultRendering: React.ReactNode | null, props: HeaderCellProps) => React.ReactNode;
|
|
30
|
+
columnResize?: ColumnResize<C, H, F>;
|
|
31
|
+
columnMenu?: React.ComponentType<ColumnMenuProps>;
|
|
32
|
+
columnMenuFilter?: CompositeFilterDescriptor[];
|
|
33
|
+
columnMenuFilterChange?: (e: React.SyntheticEvent<any>, filter: CompositeFilterDescriptor[], field?: string) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export declare class HeaderRow<C = CellProps, H = HeaderCellProps, F = FilterCellProps> extends React.Component<HeaderRowProps<C, H, F>, {}> {
|
|
39
|
+
cellClick: (e: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLElement>, column: TreeColumnBaseProps<C, H, F>) => void;
|
|
40
|
+
cellKeyDown: (event: React.KeyboardEvent<HTMLElement>, column: TreeColumnBaseProps<C, H, F>) => void;
|
|
41
|
+
sortIcon(sortIndex: number): (false | React.JSX.Element)[] | null;
|
|
42
|
+
render(): React.JSX.Element[];
|
|
43
|
+
private cells;
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { HeaderCellProps } from './HeaderCell.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface HeaderSelectionCellProps extends HeaderCellProps {
|
|
14
|
+
inputId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare function HeaderSelectionCell(props: HeaderSelectionCellProps): React.JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
export interface HeaderTdElementProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
10
|
+
/** ARIA sort state indicating column sorting direction */
|
|
11
|
+
ariaSort?: 'none' | 'ascending' | 'descending';
|
|
12
|
+
/** ARIA label for accessibility */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** ARIA column index for screen readers */
|
|
15
|
+
ariaColumnIndex?: number;
|
|
16
|
+
/** ARIA selected state for the header cell */
|
|
17
|
+
ariaSelected?: boolean;
|
|
18
|
+
/** ARIA description for additional context */
|
|
19
|
+
ariaDescription?: string;
|
|
20
|
+
/** Number of columns the cell spans */
|
|
21
|
+
colSpan?: number;
|
|
22
|
+
/** Number of rows the cell spans */
|
|
23
|
+
rowSpan?: number;
|
|
24
|
+
/** ARIA role for the element */
|
|
25
|
+
role?: string;
|
|
26
|
+
/** Unique identifier for the column */
|
|
27
|
+
columnId: string;
|
|
28
|
+
/** CSS class names for styling */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Inline styles for the element */
|
|
31
|
+
style?: any;
|
|
32
|
+
/** Child elements to render inside the header cell */
|
|
33
|
+
children?: any;
|
|
34
|
+
/** Keyboard event handler */
|
|
35
|
+
onKeyDown?: any;
|
|
36
|
+
/** Whether the cell supports keyboard navigation */
|
|
37
|
+
navigatable?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const HeaderTdElement: {
|
|
40
|
+
(props: HeaderTdElementProps): React.JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
export interface HeaderThElementProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
|
|
10
|
+
/** ARIA sort state indicating column sorting direction */
|
|
11
|
+
ariaSort?: 'none' | 'ascending' | 'descending';
|
|
12
|
+
/** ARIA label for accessibility */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** ARIA column index for screen readers */
|
|
15
|
+
ariaColumnIndex?: number;
|
|
16
|
+
/** ARIA selected state for the header cell */
|
|
17
|
+
ariaSelected?: boolean;
|
|
18
|
+
/** ARIA description for additional context */
|
|
19
|
+
ariaDescription?: string;
|
|
20
|
+
/** Number of columns the cell spans */
|
|
21
|
+
colSpan?: number;
|
|
22
|
+
/** Number of rows the cell spans */
|
|
23
|
+
rowSpan?: number;
|
|
24
|
+
/** ARIA role for the element */
|
|
25
|
+
role?: string;
|
|
26
|
+
/** Unique identifier for the column */
|
|
27
|
+
columnId: string;
|
|
28
|
+
/** CSS class names for styling */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Inline styles for the element */
|
|
31
|
+
style?: any;
|
|
32
|
+
/** Child elements to render inside the header cell */
|
|
33
|
+
children?: any;
|
|
34
|
+
/** Keyboard event handler */
|
|
35
|
+
onKeyDown?: any;
|
|
36
|
+
/** Whether the cell supports keyboard navigation */
|
|
37
|
+
navigatable?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const HeaderThElement: {
|
|
40
|
+
(props: HeaderThElementProps): React.JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
@@ -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
|
+
/**
|
|
9
|
+
* The settings for sorting the columns of the component.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColumnSortSettings {
|
|
12
|
+
/**
|
|
13
|
+
* Enables the removal of the column sorting functionality.
|
|
14
|
+
*/
|
|
15
|
+
allowUnsort?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The settings for sorting the component data.
|
|
19
|
+
*/
|
|
20
|
+
export type SortSettings = boolean | (ColumnSortSettings & {
|
|
21
|
+
/**
|
|
22
|
+
* The sort mode of the component.
|
|
23
|
+
*
|
|
24
|
+
* The available modes are:
|
|
25
|
+
* - `single`
|
|
26
|
+
* - `multiple`
|
|
27
|
+
*/
|
|
28
|
+
mode?: 'single' | 'multiple';
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare const normalize: (...settings: (SortSettings | ColumnSortSettings)[]) => any;
|
|
@@ -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
|
+
export * from './CellProps.js';
|
|
9
|
+
export * from './ColumnProps.js';
|
|
10
|
+
export * from './FilterRow.js';
|
|
11
|
+
export * from './Header.js';
|
|
12
|
+
export * from './HeaderCell.js';
|
|
13
|
+
export * from './HeaderRow.js';
|
|
14
|
+
export * from './HeaderSelectionCell.js';
|
|
15
|
+
export * from './SortSettings.js';
|
|
16
|
+
export * from './utils/index.js';
|
|
17
|
+
export * from './HeaderThElement.js';
|
|
18
|
+
export * from './HeaderTdElement.js';
|