@progress/kendo-react-pivotgrid 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/PivotGrid.d.ts +303 -0
- package/components/AxesEditor.d.ts +57 -0
- package/components/AxisEditor.d.ts +65 -0
- package/components/AxisEditor.mjs +3 -3
- package/components/AxisFilterFieldsEditor.d.ts +145 -0
- package/components/Cell.d.ts +114 -0
- package/components/Column.d.ts +91 -0
- package/components/Configurator.d.ts +140 -0
- package/components/ConfiguratorButton.d.ts +89 -0
- package/components/ConfiguratorButton.mjs +4 -4
- package/components/ConfiguratorEditor.d.ts +144 -0
- package/components/ConfiguratorEditor.js +1 -1
- package/components/ConfiguratorEditor.mjs +1 -2
- package/components/Container.d.ts +64 -0
- package/components/EditorContext.d.ts +14 -0
- package/components/FieldsEditor.d.ts +87 -0
- package/components/FieldsEditor.mjs +3 -3
- package/components/HeaderCell.d.ts +144 -0
- package/components/HeaderCell.mjs +4 -4
- package/components/Row.d.ts +99 -0
- package/dist/cdn/js/kendo-react-pivotgrid.js +1 -1
- package/hooks/index.d.ts +9 -0
- package/hooks/useExpansion.d.ts +26 -0
- package/hooks/useHeaders.d.ts +18 -0
- package/hooks/useHorizontalScrollSync.d.ts +12 -0
- package/hooks/usePivotConfiguratorEditor.d.ts +90 -0
- package/hooks/usePivotLocalDataService.d.ts +86 -0
- package/hooks/usePivotOLAPService.d.ts +84 -0
- package/hooks/useVerticalScrollSync.d.ts +12 -0
- package/index.d.mts +18 -1827
- package/index.d.ts +18 -1827
- package/messages/index.d.ts +77 -0
- package/models/index.d.ts +96 -0
- 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/shared/PivotGridConfiguratorEditorEventsContext.d.ts +20 -0
- package/shared/PivotGridConfiguratorEditorStateContext.d.ts +13 -0
- package/shared/index.d.ts +9 -0
- package/utils/index.d.ts +54 -0
package/PivotGrid.d.ts
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
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 { PivotGridRowProps } from './components/Row.js';
|
|
9
|
+
import { PivotGridCellProps } from './components/Cell.js';
|
|
10
|
+
import { PivotGridHeaderCellProps } from './components/HeaderCell.js';
|
|
11
|
+
import { PivotGridColumnProps } from './components/Column.js';
|
|
12
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
13
|
+
import { PivotGridAxis, PivotDataItem, Tuple, AxisRow } from '@progress/kendo-pivotgrid-common';
|
|
14
|
+
import { PivotGridAxesChangeEvent } from './models/index.js';
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
/**
|
|
17
|
+
* Represents the props of the [KendoReact PivotGrid component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgrid).
|
|
18
|
+
*/
|
|
19
|
+
export interface PivotGridProps {
|
|
20
|
+
/**
|
|
21
|
+
* Sets the `style` property of the top-most element of the PivotGrid.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx
|
|
25
|
+
* <PivotGrid style={{ height: '500px' }} />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the `className` property of the top-most element of the PivotGrid in addition to the default `k-pivotgrid` class.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```jsx
|
|
34
|
+
* <PivotGrid className="custom-class" />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the `id` property of the top-most element of the PivotGrid.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```jsx
|
|
43
|
+
* <PivotGrid id="pivotgrid-id" />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Sets the `tabIndex` property of the top-most element of the PivotGrid.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```jsx
|
|
52
|
+
* <PivotGrid tabIndex={0} />
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
tabIndex?: number;
|
|
56
|
+
/**
|
|
57
|
+
* If set to `true`, the user can use dedicated shortcuts to interact with the PivotGrid.
|
|
58
|
+
* By default, navigation is disabled.
|
|
59
|
+
*
|
|
60
|
+
* @default false
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```jsx
|
|
64
|
+
* <PivotGrid navigatable={true} />
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
navigatable?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Sets the `data` of the PivotGrid.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```jsx
|
|
73
|
+
* <PivotGrid data={[{ field: 'value', data: 100 }]} />
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
data?: PivotDataItem[];
|
|
77
|
+
/**
|
|
78
|
+
* Sets the `columns` data of the PivotGrid.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```jsx
|
|
82
|
+
* <PivotGrid columns={[['Category', 'Subcategory']]} />
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
columns?: Tuple[];
|
|
86
|
+
/**
|
|
87
|
+
* Sets the `rows` data of the PivotGrid.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```jsx
|
|
91
|
+
* <PivotGrid rows={[['Region', 'Country']]} />
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
rows?: Tuple[];
|
|
95
|
+
/**
|
|
96
|
+
* The configuration of the `column` axes.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```jsx
|
|
100
|
+
* <PivotGrid columnAxes={[{ name: 'Category', expand: true }]} />
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
columnAxes?: PivotGridAxis[];
|
|
104
|
+
/**
|
|
105
|
+
* A callback, fired whenever the `columnAxes` property should change.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```jsx
|
|
109
|
+
* <PivotGrid onColumnAxesChange={(event) => console.log(event.value)} />
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
onColumnAxesChange?: (event: PivotGridAxesChangeEvent) => void;
|
|
113
|
+
/**
|
|
114
|
+
* The configuration of the `row` axes.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```jsx
|
|
118
|
+
* <PivotGrid rowAxes={[{ name: 'Region', expand: true }]} />
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
rowAxes?: PivotGridAxis[];
|
|
122
|
+
/**
|
|
123
|
+
* A callback, fired whenever the `rowAxes` property should change.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```jsx
|
|
127
|
+
* <PivotGrid onRowAxesChange={(event) => console.log(event.value)} />
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
onRowAxesChange?: (event: PivotGridAxesChangeEvent) => void;
|
|
131
|
+
/**
|
|
132
|
+
* Overrides the default `row` component.
|
|
133
|
+
*
|
|
134
|
+
* The default component is: [PivotGridRow](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridrow).
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```jsx
|
|
138
|
+
* <PivotGrid row={(props) => <CustomRow {...props} />} />
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
row?: CustomComponent<PivotGridRowProps>;
|
|
142
|
+
/**
|
|
143
|
+
* Overrides the default `column` component.
|
|
144
|
+
*
|
|
145
|
+
* The default component is: [PivotGridColumn](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcolumn).
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```jsx
|
|
149
|
+
* <PivotGrid column={(props) => <CustomColumn {...props} />} />
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
column?: CustomComponent<PivotGridColumnProps>;
|
|
153
|
+
/**
|
|
154
|
+
* Overrides the default `cell` component.
|
|
155
|
+
*
|
|
156
|
+
* The default component is: [PivotGridCell](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcell).
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```jsx
|
|
160
|
+
* <PivotGrid cell={(props) => <CustomCell {...props} />} />
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
cell?: CustomComponent<PivotGridCellProps>;
|
|
164
|
+
/**
|
|
165
|
+
* Overrides the default `headerCell` component.
|
|
166
|
+
*
|
|
167
|
+
* The default component is: [PivotGridHeaderCell](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridheadercell).
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```jsx
|
|
171
|
+
* <PivotGrid headerCell={(props) => <CustomHeaderCell {...props} />} />
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
headerCell?: CustomComponent<PivotGridHeaderCellProps>;
|
|
175
|
+
/**
|
|
176
|
+
* Overrides the default column-headers `row` component.
|
|
177
|
+
*
|
|
178
|
+
* The default component is: [PivotGridRow](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridrow).
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```jsx
|
|
182
|
+
* <PivotGrid columnHeadersRow={(props) => <CustomRow {...props} />} />
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
columnHeadersRow?: React.ComponentType<PivotGridRowProps>;
|
|
186
|
+
/**
|
|
187
|
+
* Overrides the default column-headers `column` component.
|
|
188
|
+
*
|
|
189
|
+
* The default component is: [PivotGridColumn](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcolumn).
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```jsx
|
|
193
|
+
* <PivotGrid columnHeadersColumn={(props) => <CustomColumn {...props} />} />
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
columnHeadersColumn?: React.ComponentType<PivotGridColumnProps>;
|
|
197
|
+
/**
|
|
198
|
+
* Overrides the default column-headers `headerCell` component.
|
|
199
|
+
*
|
|
200
|
+
* The default component is: [PivotGridHeaderCell](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridheadercell).
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```jsx
|
|
204
|
+
* <PivotGrid columnHeadersCell={(props) => <CustomHeaderCell {...props} />} />
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
columnHeadersCell?: React.ComponentType<PivotGridHeaderCellProps>;
|
|
208
|
+
/**
|
|
209
|
+
* Overrides the default row-headers `row` component.
|
|
210
|
+
*
|
|
211
|
+
* The default component is: [PivotGridRow](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridrow).
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* ```jsx
|
|
215
|
+
* <PivotGrid rowHeadersRow={(props) => <CustomRow {...props} />} />
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
rowHeadersRow?: React.ComponentType<PivotGridRowProps>;
|
|
219
|
+
/**
|
|
220
|
+
* Overrides the default row-headers `column` component.
|
|
221
|
+
*
|
|
222
|
+
* The default component is: [PivotGridColumn](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcolumn).
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```jsx
|
|
226
|
+
* <PivotGrid rowHeadersColumn={(props) => <CustomColumn {...props} />} />
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
rowHeadersColumn?: React.ComponentType<PivotGridColumnProps>;
|
|
230
|
+
/**
|
|
231
|
+
* Overrides the default row-headers `headerCell` component.
|
|
232
|
+
*
|
|
233
|
+
* The default component is: [PivotGridHeaderCell](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridheadercell).
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```jsx
|
|
237
|
+
* <PivotGrid rowHeadersCell={(props) => <CustomHeaderCell {...props} />} />
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
rowHeadersCell?: React.ComponentType<PivotGridHeaderCellProps>;
|
|
241
|
+
/**
|
|
242
|
+
* Overrides the default data `row` component.
|
|
243
|
+
*
|
|
244
|
+
* The default component is: [PivotGridRow](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridrow).
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```jsx
|
|
248
|
+
* <PivotGrid dataRow={(props) => <CustomRow {...props} />} />
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
251
|
+
dataRow?: React.ComponentType<PivotGridRowProps>;
|
|
252
|
+
/**
|
|
253
|
+
* Overrides the default data `column` component.
|
|
254
|
+
*
|
|
255
|
+
* The default component is: [PivotGridColumn](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcolumn).
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```jsx
|
|
259
|
+
* <PivotGrid dataColumn={(props) => <CustomColumn {...props} />} />
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
dataColumn?: React.ComponentType<PivotGridColumnProps>;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGrid component.
|
|
266
|
+
*/
|
|
267
|
+
export interface PivotGridHandle {
|
|
268
|
+
/**
|
|
269
|
+
* The DOM element of the PivotGrid component.
|
|
270
|
+
*/
|
|
271
|
+
element: HTMLDivElement | null;
|
|
272
|
+
/**
|
|
273
|
+
* The current properties of the PivotGrid component.
|
|
274
|
+
*/
|
|
275
|
+
props: PivotGridProps;
|
|
276
|
+
/**
|
|
277
|
+
* The rows that make up the column headers.
|
|
278
|
+
*/
|
|
279
|
+
columnHeaderRows: AxisRow[];
|
|
280
|
+
/**
|
|
281
|
+
* The rows that make up the row headers.
|
|
282
|
+
*/
|
|
283
|
+
rowHeaderRows: AxisRow[];
|
|
284
|
+
/**
|
|
285
|
+
* The data cells organized by row and column.
|
|
286
|
+
*/
|
|
287
|
+
dataCells: {
|
|
288
|
+
row: string[];
|
|
289
|
+
cells: PivotDataItem[];
|
|
290
|
+
}[];
|
|
291
|
+
/**
|
|
292
|
+
* The width of the row header area in pixels.
|
|
293
|
+
*/
|
|
294
|
+
rowHeaderBreadth: number;
|
|
295
|
+
/**
|
|
296
|
+
* The height of the column header area in pixels.
|
|
297
|
+
*/
|
|
298
|
+
columnHeaderBreadth: number;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Represents the [KendoReact PivotGrid component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridprops).
|
|
302
|
+
*/
|
|
303
|
+
export declare const PivotGrid: React.ForwardRefExoticComponent<PivotGridProps & React.RefAttributes<PivotGridHandle | null>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { ChipListProps as KendoReactChipListProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
import { FieldProps } from '@progress/kendo-react-form';
|
|
10
|
+
import { PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
11
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the props of the [KendoReact PivotGridAxesEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxeseditor).
|
|
15
|
+
*/
|
|
16
|
+
export interface PivotGridAxesEditorProps extends FieldProps {
|
|
17
|
+
/**
|
|
18
|
+
* Represents the `value` of the AxesEditor.
|
|
19
|
+
*
|
|
20
|
+
* The `value` is an array of [PivotGridAxis](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxis)
|
|
21
|
+
*/
|
|
22
|
+
value: PivotGridAxis[];
|
|
23
|
+
/**
|
|
24
|
+
* Indicates which of the three available axes are represented by the editor:
|
|
25
|
+
* - columnAxes
|
|
26
|
+
* - rowAxes
|
|
27
|
+
* - measureAxes
|
|
28
|
+
*/
|
|
29
|
+
field: string;
|
|
30
|
+
/**
|
|
31
|
+
* Overrides the default `chipList` component.
|
|
32
|
+
*
|
|
33
|
+
* The default component is: [KendoReactChipList](https://www.telerik.com/kendo-react-ui/components/buttons/api/chiplist).
|
|
34
|
+
*/
|
|
35
|
+
chipList?: CustomComponent<KendoReactChipListProps>;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the `className` props of the ClipList component.
|
|
38
|
+
*/
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridAxesEditor component.
|
|
43
|
+
*/
|
|
44
|
+
export interface PivotGridAxesEditorHandle {
|
|
45
|
+
/**
|
|
46
|
+
* The properties passed to the PivotGridAxesEditor component.
|
|
47
|
+
*/
|
|
48
|
+
props: PivotGridAxesEditorProps;
|
|
49
|
+
/**
|
|
50
|
+
* The DOM element of the PivotGridAxesEditor component.
|
|
51
|
+
*/
|
|
52
|
+
element: HTMLDivElement | null;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Represents the [KendoReact PivotGridAxesEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxeseditorprops).
|
|
56
|
+
*/
|
|
57
|
+
export declare const PivotGridAxesEditor: React.ForwardRefExoticComponent<PivotGridAxesEditorProps & React.RefAttributes<PivotGridAxesEditorHandle>>;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
9
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
10
|
+
import { ColumnMenuProps as KendoReactColumnMenuProps } from '@progress/kendo-react-data-tools';
|
|
11
|
+
import { ChipProps as KendoReactChipProps } from '@progress/kendo-react-buttons';
|
|
12
|
+
import { PivotGridAxisFilterFieldsEditorProps } from './AxisFilterFieldsEditor.js';
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
/**
|
|
15
|
+
* Represents the props of the [KendoReact PivotGridAxisEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxiseditor).
|
|
16
|
+
*/
|
|
17
|
+
export interface PivotGridAxisEditorProps extends KendoReactChipProps {
|
|
18
|
+
/**
|
|
19
|
+
* Represents the `dataItem` of the AxisEditor.
|
|
20
|
+
*
|
|
21
|
+
* The `dataItem` is a single [PivotGridAxis](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxis) object.
|
|
22
|
+
*/
|
|
23
|
+
dataItem: PivotGridAxis;
|
|
24
|
+
/**
|
|
25
|
+
* Overrides the default `chip` component.
|
|
26
|
+
*
|
|
27
|
+
* The default component is: [KendoReactChip](https://www.telerik.com/kendo-react-ui/components/buttons/api/chip).
|
|
28
|
+
*/
|
|
29
|
+
chip?: CustomComponent<KendoReactChipProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Overrides the default `dropClue` component.
|
|
32
|
+
*
|
|
33
|
+
* The default component is: `(props) => <div className="k-grouping-dropclue" style={{ position: 'relative', zIndex: 10000 }} {...props}/>`
|
|
34
|
+
*/
|
|
35
|
+
dropClue?: CustomComponent<any>;
|
|
36
|
+
/**
|
|
37
|
+
* Overrides the default `columnMenuTextColumn` component.
|
|
38
|
+
*
|
|
39
|
+
* The default component is: [KendoReactColumnMenuTextColumn](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenutextcolumn).
|
|
40
|
+
*/
|
|
41
|
+
columnMenuTextColumn?: CustomComponent<KendoReactColumnMenuProps>;
|
|
42
|
+
/**
|
|
43
|
+
* Overrides the default `filterFieldsEditor` component.
|
|
44
|
+
*
|
|
45
|
+
* The default component is: [PivotGridAxisFilterFieldsEditor](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxisfilterfieldseditor).
|
|
46
|
+
*/
|
|
47
|
+
filterFieldsEditor?: CustomComponent<PivotGridAxisFilterFieldsEditorProps>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridAxisEditor component.
|
|
51
|
+
*/
|
|
52
|
+
export interface PivotGridAxisEditorHandle {
|
|
53
|
+
/**
|
|
54
|
+
* The properties passed to the PivotGridAxisEditor component.
|
|
55
|
+
*/
|
|
56
|
+
props: PivotGridAxisEditorProps;
|
|
57
|
+
/**
|
|
58
|
+
* The DOM element of the PivotGridAxisEditor component.
|
|
59
|
+
*/
|
|
60
|
+
element: HTMLSpanElement | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Represents the [KendoReact PivotGridAxisEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxiseditorprops).
|
|
64
|
+
*/
|
|
65
|
+
export declare const PivotGridAxisEditor: React.ForwardRefExoticComponent<PivotGridAxisEditorProps & React.RefAttributes<PivotGridAxisEditorHandle | null>>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as r from "react";
|
|
9
9
|
import { compareAxes as R } from "@progress/kendo-pivotgrid-common";
|
|
10
10
|
import { useCustomComponent as d, useDraggable as _, canUseRef as $ } from "@progress/kendo-react-common";
|
|
11
|
-
import {
|
|
11
|
+
import { ColumnMenuTextColumn as B, ColumnMenuTextFilter as K } from "@progress/kendo-react-data-tools";
|
|
12
12
|
import { Chip as V } from "@progress/kendo-react-buttons";
|
|
13
13
|
import { findFilters as M, findFilter as Z } from "../utils/index.mjs";
|
|
14
14
|
import { PivotGridConfiguratorEditorAxesContext as j } from "./EditorContext.mjs";
|
|
@@ -114,7 +114,7 @@ const L = r.forwardRef(
|
|
|
114
114
|
onSortChange: G,
|
|
115
115
|
filter: p && p.length ? [{ logic: "and", filters: p }] : void 0,
|
|
116
116
|
onFilterChange: X,
|
|
117
|
-
filterContent: [
|
|
117
|
+
filterContent: [K],
|
|
118
118
|
...S
|
|
119
119
|
}
|
|
120
120
|
)
|
|
@@ -122,7 +122,7 @@ const L = r.forwardRef(
|
|
|
122
122
|
}
|
|
123
123
|
), c = {
|
|
124
124
|
chip: V,
|
|
125
|
-
columnMenuTextColumn:
|
|
125
|
+
columnMenuTextColumn: B,
|
|
126
126
|
filterFieldsEditor: q,
|
|
127
127
|
dropClue: (t) => /* @__PURE__ */ r.createElement("div", { className: "k-grouping-dropclue", style: { position: "relative", zIndex: 1e4 }, ...t })
|
|
128
128
|
};
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { TreeViewProps as KendoReactTreeViewProps } from '@progress/kendo-react-treeview';
|
|
9
|
+
import { ButtonProps as KendoReactButtonProps } from '@progress/kendo-react-buttons';
|
|
10
|
+
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
11
|
+
import { ColumnMenuItemProps as KendoReactColumnMenuItemProps, ColumnMenuFormProps as KendoReactColumnMenuFormProps } from '@progress/kendo-react-data-tools';
|
|
12
|
+
import { PivotGridField, PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
13
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* Represents the event arguments of the `PivotGridAxisFilterFields` expand-change event.
|
|
17
|
+
*/
|
|
18
|
+
export interface PivotGridAxisFilterFieldsExpandChangeEvent {
|
|
19
|
+
/**
|
|
20
|
+
* The handle of the component that triggered the event.
|
|
21
|
+
*/
|
|
22
|
+
target: PivotGridAxisFilterFieldsEditorHandle;
|
|
23
|
+
/**
|
|
24
|
+
* The expand state value.
|
|
25
|
+
*/
|
|
26
|
+
value: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The DOM event that triggered the change.
|
|
29
|
+
*/
|
|
30
|
+
syntheticEvent: React.SyntheticEvent;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the event arguments of the `PivotGridAxisFilterField` expand event.
|
|
34
|
+
*/
|
|
35
|
+
export interface PivotGridAxisFilterFieldExpandEvent {
|
|
36
|
+
/**
|
|
37
|
+
* The handle of the component that triggered the event.
|
|
38
|
+
*/
|
|
39
|
+
target: PivotGridAxisFilterFieldsEditorHandle;
|
|
40
|
+
/**
|
|
41
|
+
* The field that was expanded.
|
|
42
|
+
*/
|
|
43
|
+
value: PivotGridField;
|
|
44
|
+
/**
|
|
45
|
+
* The DOM event that triggered the expand.
|
|
46
|
+
*/
|
|
47
|
+
syntheticEvent: React.SyntheticEvent;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Represents the props of the [KendoReact PivotGridAxisFilterFieldsEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxisfilterfieldseditor).
|
|
51
|
+
*/
|
|
52
|
+
export interface PivotGridAxisFilterFieldsEditorProps {
|
|
53
|
+
/**
|
|
54
|
+
* Sets the `className` property of the top-most element of the PivotGridAxisFilterFieldsEditor in addition to the default `k-columnmenu-item-wrapper` class.
|
|
55
|
+
*/
|
|
56
|
+
className?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the `id` property of the top-most element of the PivotGridAxisFilterFieldsEditor.
|
|
59
|
+
*/
|
|
60
|
+
id?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the `tabIndex` property of the top-most element of the PivotGridAxisFilterFieldsEditor.
|
|
63
|
+
*/
|
|
64
|
+
tabIndex?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the `style` property of the top-most element of the PivotGridAxisFilterFieldsEditor.
|
|
67
|
+
*/
|
|
68
|
+
style?: React.CSSProperties;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the `data` of the PivotGridAxisFilterFieldsEditor.
|
|
71
|
+
*
|
|
72
|
+
* The `data` represents all fields available for filtering.
|
|
73
|
+
*/
|
|
74
|
+
data?: PivotGridField[];
|
|
75
|
+
/**
|
|
76
|
+
* Represents the `dataItem` of the AxisEditor.
|
|
77
|
+
*
|
|
78
|
+
* The `dataItem` is a single [PivotGridAxis](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxis) object.
|
|
79
|
+
*/
|
|
80
|
+
dataItem: PivotGridAxis;
|
|
81
|
+
/**
|
|
82
|
+
* Represents the initial filter value before additional operations are executed.
|
|
83
|
+
*/
|
|
84
|
+
defaultFilter?: FilterDescriptor;
|
|
85
|
+
/**
|
|
86
|
+
* Indicates which of the three available axes are represented by the editor:
|
|
87
|
+
* - columnAxes
|
|
88
|
+
* - rowAxes
|
|
89
|
+
* - measureAxes
|
|
90
|
+
*/
|
|
91
|
+
axes: string;
|
|
92
|
+
/**
|
|
93
|
+
* Overrides the default `columnMenuItem` component.
|
|
94
|
+
*
|
|
95
|
+
* The default component is: [KendoReactColumnMenuItem](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenuitem).
|
|
96
|
+
*/
|
|
97
|
+
columnMenuItem?: CustomComponent<KendoReactColumnMenuItemProps>;
|
|
98
|
+
/**
|
|
99
|
+
* Overrides the default `columnMenuForm` component.
|
|
100
|
+
*
|
|
101
|
+
* The default component is: [KendoReactColumnMenuForm](https://www.telerik.com/kendo-react-ui/components/datatools/api/columnmenuform).
|
|
102
|
+
*/
|
|
103
|
+
columnMenuForm?: CustomComponent<KendoReactColumnMenuFormProps>;
|
|
104
|
+
/**
|
|
105
|
+
* Overrides the default `resetButton` component.
|
|
106
|
+
*
|
|
107
|
+
* The default component is: [KendoReactButton](https://www.telerik.com/kendo-react-ui/components/buttons/api/button).
|
|
108
|
+
*/
|
|
109
|
+
resetButton?: CustomComponent<KendoReactButtonProps>;
|
|
110
|
+
/**
|
|
111
|
+
* Overrides the default `applyButton` component.
|
|
112
|
+
*
|
|
113
|
+
* The default component is: [KendoReactButton](https://www.telerik.com/kendo-react-ui/components/buttons/api/button).
|
|
114
|
+
*/
|
|
115
|
+
applyButton?: CustomComponent<KendoReactButtonProps>;
|
|
116
|
+
/**
|
|
117
|
+
* Overrides the default `treeView` component.
|
|
118
|
+
*
|
|
119
|
+
* The default component is: [KendoReactTreeView](https://www.telerik.com/kendo-react-ui/components/treeview/api/treeview).
|
|
120
|
+
*/
|
|
121
|
+
treeView?: CustomComponent<KendoReactTreeViewProps>;
|
|
122
|
+
/**
|
|
123
|
+
* Overrides the default `treeView` component.
|
|
124
|
+
*
|
|
125
|
+
* The default component is: `() => <Skeleton shape={'rectangle'} style={{height: '20px', width:'calc(100% - 16px)', margin: 8}}/>`.
|
|
126
|
+
*/
|
|
127
|
+
noData?: CustomComponent<any>;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridAxisFilterFieldsEditor component.
|
|
131
|
+
*/
|
|
132
|
+
export interface PivotGridAxisFilterFieldsEditorHandle {
|
|
133
|
+
/**
|
|
134
|
+
* The properties passed to the PivotGridAxisFilterFieldsEditor component.
|
|
135
|
+
*/
|
|
136
|
+
props: PivotGridAxisFilterFieldsEditorProps;
|
|
137
|
+
/**
|
|
138
|
+
* The DOM element of the PivotGridAxisFilterFieldsEditor component.
|
|
139
|
+
*/
|
|
140
|
+
element: HTMLDivElement | null;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Represents the [KendoReact PivotGridAxisFilterFieldsEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxisfilterfieldseditorprops).
|
|
144
|
+
*/
|
|
145
|
+
export declare const PivotGridAxisFilterFieldsEditor: React.ForwardRefExoticComponent<PivotGridAxisFilterFieldsEditorProps & React.RefAttributes<PivotGridAxisFilterFieldsEditorHandle | null>>;
|