@progress/kendo-react-data-tools 13.3.0-develop.9 → 13.4.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ClipboardActionType } from './common.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class ClipboardService {
|
|
13
|
+
private clipboardEvent;
|
|
14
|
+
constructor(ClipboardEventHandler: (clipboardType: ClipboardActionType, event: ClipboardEvent) => void);
|
|
15
|
+
private copyHandler;
|
|
16
|
+
private cutHandler;
|
|
17
|
+
private pasteHandler;
|
|
18
|
+
addEventListeners: (document: Document | undefined) => void;
|
|
19
|
+
removeEventListeners: (document: Document | undefined) => void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
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 { ColumnBaseProps } from '../header/index.js';
|
|
9
|
+
import { SelectDescriptor } from '../selection/TableSelection.js';
|
|
10
|
+
/**
|
|
11
|
+
* The possible values of the `type` property.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum ClipboardActionType {
|
|
14
|
+
copy = "copy",
|
|
15
|
+
cut = "cut",
|
|
16
|
+
paste = "paste"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents the object of the `ClipboardDataEvent` event.
|
|
20
|
+
*/
|
|
21
|
+
export interface ClipboardDataEvent {
|
|
22
|
+
/**
|
|
23
|
+
* Represents the type of the clipboard action.
|
|
24
|
+
*/
|
|
25
|
+
type: ClipboardActionType;
|
|
26
|
+
/**
|
|
27
|
+
* Represents the native [ClipboardEvent](https://www.telerik.com/kendo-react-ui/components/grid/api/gridcellssettings)
|
|
28
|
+
*/
|
|
29
|
+
nativeEvent?: ClipboardEvent;
|
|
30
|
+
/**
|
|
31
|
+
* All the Grid columns. It takes value of type of [ColumnBaseProps](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnbaseprops)<[CellProps](https://www.telerik.com/kendo-react-ui/components/datatools/api/cellprops)>[]
|
|
32
|
+
*/
|
|
33
|
+
columns: ColumnBaseProps[];
|
|
34
|
+
/**
|
|
35
|
+
* Passes the dataItemKey prop in the clipboard action.
|
|
36
|
+
*/
|
|
37
|
+
dataItemKey: string;
|
|
38
|
+
/**
|
|
39
|
+
* Passes the clipboard prop copyHeaders value in the clipboard action.
|
|
40
|
+
*/
|
|
41
|
+
copyHeaders?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the cell delimiter used when manipulating the clipboard data Defaults to `\t`.
|
|
44
|
+
*/
|
|
45
|
+
cellDelimiter?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the row delimiter used when manipulating the clipboard data Defaults to `\r\n`.
|
|
48
|
+
*/
|
|
49
|
+
newLineDelimiter?: string;
|
|
50
|
+
/**
|
|
51
|
+
* This is the item that is clicked if the action is raised from the contextMenu.
|
|
52
|
+
*/
|
|
53
|
+
dataItem?: any;
|
|
54
|
+
/**
|
|
55
|
+
* This is the column field that is clicked if the action is raised from the contextMenu.
|
|
56
|
+
*/
|
|
57
|
+
field?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Represents the object of the `GridClipboardEvent` event.
|
|
61
|
+
*/
|
|
62
|
+
export interface GridClipboardEvent extends ClipboardDataEvent, ClipboardData {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Represents the `PopulateClipboardArgs` event argument.
|
|
66
|
+
*/
|
|
67
|
+
export interface PopulateClipboardArgs {
|
|
68
|
+
/**
|
|
69
|
+
* Represents the base object of the `ClipboardDataEvent` event.
|
|
70
|
+
*/
|
|
71
|
+
event: ClipboardDataEvent;
|
|
72
|
+
/**
|
|
73
|
+
* Represents the current selected state of the data.
|
|
74
|
+
*/
|
|
75
|
+
selectedState: SelectDescriptor;
|
|
76
|
+
/**
|
|
77
|
+
* Passes the data currently displayed.
|
|
78
|
+
*/
|
|
79
|
+
data: any[];
|
|
80
|
+
/**
|
|
81
|
+
* Passes dataItemKey name of the field that could be used to make difference between dataItems.
|
|
82
|
+
*/
|
|
83
|
+
dataItemKey?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Passes subItemsField that will be used in grouping cases.
|
|
86
|
+
*/
|
|
87
|
+
subItemsField?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Previous copied items.
|
|
90
|
+
*/
|
|
91
|
+
previousCopiedItems?: ClipboardItem[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Represents the object that is returned form the `populateClipboardData` function.
|
|
95
|
+
*/
|
|
96
|
+
export interface ClipboardData {
|
|
97
|
+
/**
|
|
98
|
+
* A collection of the ClipboardItem that are selected.
|
|
99
|
+
*/
|
|
100
|
+
copiedItems: ClipboardItem[];
|
|
101
|
+
/**
|
|
102
|
+
* A collection of the ClipboardItem that are pasted.
|
|
103
|
+
*/
|
|
104
|
+
pastedItems: ClipboardItem[];
|
|
105
|
+
/**
|
|
106
|
+
* When the action is `copy` or `cut` - the Grid data, copied to the clipboard, in Excel-compatible format.
|
|
107
|
+
* When the action is `paste` - the current clipboard data, available in the original DOM event.
|
|
108
|
+
*/
|
|
109
|
+
clipboardData: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Represents the aria that is copied - the dataItem and the fields.
|
|
113
|
+
*/
|
|
114
|
+
export interface ClipboardItem {
|
|
115
|
+
/**
|
|
116
|
+
* Represents the dataItem used in the clipboard action.
|
|
117
|
+
*/
|
|
118
|
+
dataItem: any;
|
|
119
|
+
/**
|
|
120
|
+
* Represents the fields used in the clipboard action.
|
|
121
|
+
*/
|
|
122
|
+
fields: string[];
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Represents settings that can be added to the clipboard behavior.
|
|
126
|
+
*/
|
|
127
|
+
export interface ClipboardSettings {
|
|
128
|
+
/**
|
|
129
|
+
* Determines whether column titles or field names will be included in the generated data
|
|
130
|
+
* during the `copy` and `cut` actions.
|
|
131
|
+
* Defaults to `false`.
|
|
132
|
+
*/
|
|
133
|
+
copyHeaders: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Determines what is the delimiter used to separate the cells.
|
|
136
|
+
* Defaults to `\t`.
|
|
137
|
+
*/
|
|
138
|
+
cellDelimiter?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Determines what is the delimiter used to separate the rows.
|
|
141
|
+
* Defaults to `'\r\n'`.
|
|
142
|
+
*/
|
|
143
|
+
newLineDelimiter?: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @hidden
|
|
147
|
+
*/
|
|
148
|
+
export declare const getItemsToUpdateOnPaste: (args: PopulateClipboardArgs, selectedItems: ClipboardItem[], dataLength: number, dataItemKey: string) => any[];
|
|
149
|
+
/**
|
|
150
|
+
* @hidden
|
|
151
|
+
*/
|
|
152
|
+
export declare const getPreviouslyCopiedItemsData: (previousCopiedItems?: ClipboardItem[]) => any[][];
|
|
153
|
+
/**
|
|
154
|
+
* @hidden
|
|
155
|
+
*/
|
|
156
|
+
export declare const getClipboardItemsToPaste: (args: PopulateClipboardArgs, clipboardText: string) => string[][];
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
export declare const getItemsToPaste: (args: PopulateClipboardArgs, clipboardText: string) => any[][];
|
|
161
|
+
/**
|
|
162
|
+
* @hidden
|
|
163
|
+
*/
|
|
164
|
+
export declare const getPastedItems: (args: PopulateClipboardArgs, clipboardText: string) => ClipboardItem[];
|
|
165
|
+
/**
|
|
166
|
+
* @hidden
|
|
167
|
+
*/
|
|
168
|
+
export declare const itemToString: (item: any, cols: string[]) => string | null;
|
|
169
|
+
/**
|
|
170
|
+
* @hidden
|
|
171
|
+
*/
|
|
172
|
+
export declare const addHeaders: (initialData: string, cols: string[], event: ClipboardDataEvent) => string;
|
|
173
|
+
/**
|
|
174
|
+
* @hidden
|
|
175
|
+
*/
|
|
176
|
+
export declare const getSelectedItems: (args: PopulateClipboardArgs) => ClipboardItem[];
|
|
177
|
+
/**
|
|
178
|
+
* @hidden
|
|
179
|
+
*/
|
|
180
|
+
export declare const getClipboardText: (copiedItems: ClipboardItem[], event: ClipboardDataEvent) => string;
|
|
181
|
+
/**
|
|
182
|
+
* @hidden
|
|
183
|
+
*/
|
|
184
|
+
export declare const getClipboardData: (event: ClipboardDataEvent, copiedItems: ClipboardItem[]) => string;
|
|
185
|
+
/**
|
|
186
|
+
* A function used to populate the Clipboard data.
|
|
187
|
+
*/
|
|
188
|
+
export declare const populateClipboardData: (args: PopulateClipboardArgs) => ClipboardData;
|
|
@@ -0,0 +1,90 @@
|
|
|
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 } from '@progress/kendo-data-query';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Defines the props of the ColumnMenu component.
|
|
12
|
+
*/
|
|
13
|
+
export interface ColumnMenuProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `SortDescriptor[]` applied to the data.
|
|
16
|
+
*/
|
|
17
|
+
sort?: SortDescriptor[];
|
|
18
|
+
/**
|
|
19
|
+
* Fires when sorting changes. Receives the browser event, the new `SortDescriptor[]`, and the column `field`.
|
|
20
|
+
*/
|
|
21
|
+
onSortChange?: (event: React.SyntheticEvent<any>, sort: SortDescriptor[], field: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the `CompositeFilterDescriptor[]` applied to the data.
|
|
24
|
+
*/
|
|
25
|
+
filter?: CompositeFilterDescriptor[];
|
|
26
|
+
/**
|
|
27
|
+
* Fires when filtering changes. Receives the browser event, the new `CompositeFilterDescriptor[]`, and the column `field`.
|
|
28
|
+
*/
|
|
29
|
+
onFilterChange?: (event: React.SyntheticEvent<any>, filter: CompositeFilterDescriptor[], field: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the column `field` the menu operates on.
|
|
32
|
+
*/
|
|
33
|
+
field?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Shows the ascending sort button when `true`.
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
sortAsc?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Shows the descending sort button when `true`.
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
sortDesc?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Provides the filtering UI components in render order. Supply up to three components: first filter, logic, second filter.
|
|
48
|
+
*/
|
|
49
|
+
filterContent?: any[];
|
|
50
|
+
/**
|
|
51
|
+
* Sets the initial expand state of the filters.
|
|
52
|
+
*
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
expandFilters?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the initial `CompositeFilterDescriptor` based on the current `field`. Use to customize starting filter values.
|
|
58
|
+
*/
|
|
59
|
+
initialFilter?: (field: string) => CompositeFilterDescriptor;
|
|
60
|
+
/**
|
|
61
|
+
* Fires before the ColumnMenu items render. Use to add or remove items.
|
|
62
|
+
* `defaultRendering` holds sorting and filtering elements.
|
|
63
|
+
* `props` exposes the column `field` and `closeMenu()` helper.
|
|
64
|
+
*/
|
|
65
|
+
itemsRender?: (defaultRendering: (React.ReactElement<HTMLDivElement> | null)[], props: {
|
|
66
|
+
field?: string;
|
|
67
|
+
closeMenu: () => void;
|
|
68
|
+
}) => React.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Fires before the ColumnMenu renders. Use to override the entire rendering.
|
|
71
|
+
* `defaultRendering` contains the menu button and popup elements (and license watermark when present).
|
|
72
|
+
*/
|
|
73
|
+
render?: (defaultRendering: React.ReactElement<any>[]) => React.ReactNode;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Represents the ColumnMenuTextColumn component. Use it for `string` type columns.
|
|
77
|
+
*/
|
|
78
|
+
export declare const ColumnMenuTextColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
79
|
+
/**
|
|
80
|
+
* Represents the ColumnMenuNumericColumn component. Use it for `number` type columns.
|
|
81
|
+
*/
|
|
82
|
+
export declare const ColumnMenuNumericColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
83
|
+
/**
|
|
84
|
+
* Represents the ColumnMenuDateColumn component. Use it for `Date` type columns.
|
|
85
|
+
*/
|
|
86
|
+
export declare const ColumnMenuDateColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
87
|
+
/**
|
|
88
|
+
* Represents the ColumnMenuBooleanColumn component. Use it for `boolean` type columns.
|
|
89
|
+
*/
|
|
90
|
+
export declare const ColumnMenuBooleanColumn: React.FunctionComponent<ColumnMenuProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 ColumnMenuFormProps {
|
|
10
|
+
/** Whether to show the form */
|
|
11
|
+
show?: boolean;
|
|
12
|
+
/** Event handler for form submission */
|
|
13
|
+
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
14
|
+
/** Event handler for form reset */
|
|
15
|
+
onReset?: React.FormEventHandler<HTMLFormElement>;
|
|
16
|
+
/** Action buttons or custom action elements */
|
|
17
|
+
actions?: React.ReactNode;
|
|
18
|
+
/** Form content and child elements */
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const ColumnMenuForm: React.FunctionComponent<ColumnMenuFormProps>;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const ColumnMenuFilterForm: React.FunctionComponent<ColumnMenuFormProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { DropDownListProps } from '@progress/kendo-react-dropdowns';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
export declare const ColumnMenuFilterLogic: React.FunctionComponent<DropDownListProps>;
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
import * as n from "react";
|
|
10
10
|
import { DropDownList as i } from "@progress/kendo-react-dropdowns";
|
|
11
11
|
import { useLocalization as l } from "@progress/kendo-react-intl";
|
|
12
|
-
import {
|
|
12
|
+
import { columnMenuFilterAndLogic as c, columnMenuFilterOrLogic as r, messages as m } from "../messages/index.mjs";
|
|
13
13
|
const g = [
|
|
14
|
-
{ text:
|
|
15
|
-
{ text:
|
|
14
|
+
{ text: c, logic: "and" },
|
|
15
|
+
{ text: r, logic: "or" }
|
|
16
16
|
], d = (e) => {
|
|
17
17
|
const a = l(), o = (e.data || g).map((t) => ({
|
|
18
18
|
...t,
|
|
19
|
-
text: a.toLanguageString(t.text,
|
|
19
|
+
text: a.toLanguageString(t.text, m[t.text])
|
|
20
20
|
}));
|
|
21
21
|
return /* @__PURE__ */ n.createElement(
|
|
22
22
|
i,
|
|
@@ -0,0 +1,31 @@
|
|
|
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 } from '@progress/kendo-data-query';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
export interface ColumnMenuFilterProps {
|
|
11
|
+
/** The current filter descriptor for the column */
|
|
12
|
+
filter: FilterDescriptor;
|
|
13
|
+
/** Event handler for filter changes */
|
|
14
|
+
onFilterChange: (event: React.SyntheticEvent<any>, nextFilter: FilterDescriptor, prevFilter: FilterDescriptor) => void;
|
|
15
|
+
/** Available filter operators for the column */
|
|
16
|
+
operators?: {
|
|
17
|
+
text: string;
|
|
18
|
+
operator: string;
|
|
19
|
+
}[];
|
|
20
|
+
/** Initial filter descriptor when creating a new filter */
|
|
21
|
+
initialFilter?: FilterDescriptor;
|
|
22
|
+
/** Custom input component for filter value entry */
|
|
23
|
+
input?: React.ComponentType<{
|
|
24
|
+
value: any;
|
|
25
|
+
onChange: any;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
export declare const ColumnMenuBooleanFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
29
|
+
export declare const ColumnMenuTextFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
30
|
+
export declare const ColumnMenuNumericFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
31
|
+
export declare const ColumnMenuDateFilter: React.FunctionComponent<ColumnMenuFilterProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Defines the props of the ColumnMenuItem component.
|
|
12
|
+
*/
|
|
13
|
+
export interface ColumnMenuItemProps {
|
|
14
|
+
/**
|
|
15
|
+
* Fires when the item is clicked.
|
|
16
|
+
*/
|
|
17
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that the item is selected when `true`.
|
|
20
|
+
*/
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Disables the item when `true`.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the font icon CSS class.
|
|
28
|
+
*/
|
|
29
|
+
iconClass?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the SVG icon definition.
|
|
32
|
+
*/
|
|
33
|
+
svgIcon?: SVGIcon;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the item title text.
|
|
36
|
+
*/
|
|
37
|
+
title: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const ColumnMenuItem: React.FunctionComponent<ColumnMenuItemProps>;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { FilterOperator } from '../filteringCells/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the operators for the ColumnMenuTextFilter, ColumnMenuNumericFilter,
|
|
11
|
+
* ColumnMenuDateFilter and ColumnMenuBooleanFilter components.
|
|
12
|
+
*
|
|
13
|
+
* The text field of each operator object will be resolved according to the
|
|
14
|
+
* [localization messages](https://www.telerik.com/kendo-react-ui/components/datatools/globalization#toc-messages).
|
|
15
|
+
*/
|
|
16
|
+
export declare class ColumnMenuOperators {
|
|
17
|
+
/**
|
|
18
|
+
* An array containing the operators for the ColumnMenuTextFilter component.
|
|
19
|
+
*
|
|
20
|
+
* The operators are:
|
|
21
|
+
*
|
|
22
|
+
* - { text: 'columnMenu.filterContainsOperator', operator: 'contains' }
|
|
23
|
+
* - { text: 'columnMenu.filterNotContainsOperator', operator: 'doesnotcontain' }
|
|
24
|
+
* - { text: 'columnMenu.filterEqOperator', operator: 'eq' }
|
|
25
|
+
* - { text: 'columnMenu.filterNotEqOperator', operator: 'neq' }
|
|
26
|
+
* - { text: 'columnMenu.filterStartsWithOperator', operator: 'startswith' }
|
|
27
|
+
* - { text: 'columnMenu.filterEndsWithOperator', operator: 'endswith' }
|
|
28
|
+
* - { text: 'columnMenu.filterIsNullOperator', operator: 'isnull' }
|
|
29
|
+
* - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
|
|
30
|
+
* - { text: 'columnMenu.filterIsEmptyOperator', operator: 'isempty' }
|
|
31
|
+
* - { text: 'columnMenu.filterIsNotEmptyOperator', operator: 'isnotempty' }
|
|
32
|
+
*/
|
|
33
|
+
static get text(): FilterOperator[];
|
|
34
|
+
/**
|
|
35
|
+
* An array containing the operators for the ColumnMenuNumericFilter component.
|
|
36
|
+
*
|
|
37
|
+
* The operators are:
|
|
38
|
+
*
|
|
39
|
+
* - { text: 'columnMenu.filterEqOperator', operator: 'eq' }
|
|
40
|
+
* - { text: 'columnMenu.filterNotEqOperator', operator: 'neq' }
|
|
41
|
+
* - { text: 'columnMenu.filterGteOperator', operator: 'gte' }
|
|
42
|
+
* - { text: 'columnMenu.filterGtOperator', operator: 'gt' }
|
|
43
|
+
* - { text: 'columnMenu.filterLteOperator', operator: 'lte' }
|
|
44
|
+
* - { text: 'columnMenu.filterLtOperator', operator: 'lt' }
|
|
45
|
+
* - { text: 'columnMenu.filterIsNullOperator', operator: 'isnull' }
|
|
46
|
+
* - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
|
|
47
|
+
*/
|
|
48
|
+
static get numeric(): FilterOperator[];
|
|
49
|
+
/**
|
|
50
|
+
* An array containing the operators for the ColumnMenuDateFilter component.
|
|
51
|
+
*
|
|
52
|
+
* The operators are:
|
|
53
|
+
*
|
|
54
|
+
* - { text: 'columnMenu.filterEqOperator', operator: 'eq' }
|
|
55
|
+
* - { text: 'columnMenu.filterNotEqOperator', operator: 'neq' }
|
|
56
|
+
* - { text: 'columnMenu.filterAfterOrEqualOperator', operator: 'gte' }
|
|
57
|
+
* - { text: 'columnMenu.filterAfterOperator', operator: 'gt' }
|
|
58
|
+
* - { text: 'columnMenu.filterBeforeOperator', operator: 'lt' }
|
|
59
|
+
* - { text: 'columnMenu.filterBeforeOrEqualOperator', operator: 'lte' }
|
|
60
|
+
* - { text: 'columnMenu.filterIsNullOperator', operator: 'isnull' }
|
|
61
|
+
* - { text: 'columnMenu.filterIsNotNullOperator', operator: 'isnotnull' }
|
|
62
|
+
*/
|
|
63
|
+
static get date(): FilterOperator[];
|
|
64
|
+
/**
|
|
65
|
+
* An array containing the operators for the ColumnMenuBooleanFilter component.
|
|
66
|
+
*
|
|
67
|
+
* The operators are:
|
|
68
|
+
*
|
|
69
|
+
* - { text: 'columnMenu.filterIsTrue', operator: '' }
|
|
70
|
+
*/
|
|
71
|
+
static get boolean(): FilterOperator[];
|
|
72
|
+
}
|
|
@@ -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
|
+
export * from './ColumnMenu.js';
|
|
9
|
+
export * from './ColumnMenuFilterForm.js';
|
|
10
|
+
export * from './ColumnMenuFilterLogic.js';
|
|
11
|
+
export * from './ColumnMenuFilters.js';
|
|
12
|
+
export * from './ColumnMenuItem.js';
|
|
13
|
+
export * from './ColumnMenuOperators.js';
|