@progress/kendo-react-pivotgrid 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/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
|
@@ -0,0 +1,114 @@
|
|
|
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 { KendoMouse } from '@progress/kendo-react-common';
|
|
9
|
+
import { PivotDataItem } from '@progress/kendo-pivotgrid-common';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridCell component.
|
|
13
|
+
*/
|
|
14
|
+
export interface PivotGridCellHandle {
|
|
15
|
+
/**
|
|
16
|
+
* The properties passed to the PivotGridCell component.
|
|
17
|
+
*/
|
|
18
|
+
props: PivotGridCellProps;
|
|
19
|
+
/**
|
|
20
|
+
* The DOM element of the PivotGridCell component.
|
|
21
|
+
*/
|
|
22
|
+
element: HTMLTableCellElement | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents the props of the [KendoReact PivotGridCell component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcell).
|
|
26
|
+
*/
|
|
27
|
+
export interface PivotGridCellProps extends KendoMouse<PivotGridCellHandle, HTMLTableCellElement> {
|
|
28
|
+
/**
|
|
29
|
+
* Represents the `dataItem` of the PivotGridCell.
|
|
30
|
+
*
|
|
31
|
+
* The `dataItem` is a single [PivotDataItem](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotdataitem) object.
|
|
32
|
+
*/
|
|
33
|
+
dataItem: PivotDataItem;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the `id` property of the top-most element of the PivotGridCell.
|
|
36
|
+
*/
|
|
37
|
+
id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the `className` property of the top-most element of the PivotGridCell in addition to the default `k-pivotgrid-cell` class.
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the `tabIndex` property of the top-most element of the PivotGridCell.
|
|
44
|
+
*/
|
|
45
|
+
tabIndex?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the `children` property of the top-most element of the PivotGridCell.
|
|
48
|
+
*/
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Sets the `style` property of the top-most element of the PivotGridCell.
|
|
52
|
+
*/
|
|
53
|
+
style?: React.CSSProperties;
|
|
54
|
+
/**
|
|
55
|
+
* Represents the columns `path` leading to the current cell.
|
|
56
|
+
*/
|
|
57
|
+
columnPath?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Represents the row `path` leading to the current cell.
|
|
60
|
+
*/
|
|
61
|
+
rowPath?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Indicates if the current cell represents a `total` value.
|
|
64
|
+
*/
|
|
65
|
+
total?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the `role` property of the top-most element of the PivotGridCell.
|
|
68
|
+
*/
|
|
69
|
+
role?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the `aria-describedby` property of the top-most element of the PivotGridCell.
|
|
72
|
+
*/
|
|
73
|
+
ariaDescribedby?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Fires when the user clicks the PivotGridCell.
|
|
76
|
+
*/
|
|
77
|
+
onClick?: (args: any) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Fires when the user double-clicks the PivotGridCell.
|
|
80
|
+
*/
|
|
81
|
+
onDoubleClick?: (args: any) => void;
|
|
82
|
+
/**
|
|
83
|
+
* Fires when the user presses a mouse button while the cursor is over the PivotGridCell.
|
|
84
|
+
*/
|
|
85
|
+
onMouseDown?: (args: any) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Fires when the cursor enters the PivotGridCell area.
|
|
88
|
+
*/
|
|
89
|
+
onMouseEnter?: (args: any) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Fires when the cursor leaves the PivotGridCell area.
|
|
92
|
+
*/
|
|
93
|
+
onMouseLeave?: (args: any) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Fires when the cursor moves within the PivotGridCell area.
|
|
96
|
+
*/
|
|
97
|
+
onMouseMove?: (args: any) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Fires when the cursor moves outside the PivotGridCell area.
|
|
100
|
+
*/
|
|
101
|
+
onMouseOut?: (args: any) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Fires when the cursor moves over the PivotGridCell area.
|
|
104
|
+
*/
|
|
105
|
+
onMouseOver?: (args: any) => void;
|
|
106
|
+
/**
|
|
107
|
+
* Fires when the user releases a mouse button while the cursor is over the PivotGridCell.
|
|
108
|
+
*/
|
|
109
|
+
onMouseUp?: (args: any) => void;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Represents the [KendoReact PivotGridCell component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcellprops).
|
|
113
|
+
*/
|
|
114
|
+
export declare const PivotGridCell: React.ForwardRefExoticComponent<PivotGridCellProps & React.RefAttributes<PivotGridCellHandle | null>>;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { KendoMouse } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridColumn component.
|
|
12
|
+
*/
|
|
13
|
+
export interface PivotGridColumnHandle {
|
|
14
|
+
/**
|
|
15
|
+
* The properties passed to the PivotGridColumn component.
|
|
16
|
+
*/
|
|
17
|
+
props: PivotGridColumnProps;
|
|
18
|
+
/**
|
|
19
|
+
* The DOM element of the PivotGridColumn component.
|
|
20
|
+
*/
|
|
21
|
+
element: HTMLTableColElement | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents the props of the [KendoReact PivotGridColumn component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcolumn).
|
|
25
|
+
*/
|
|
26
|
+
export interface PivotGridColumnProps extends KendoMouse<PivotGridColumnHandle, HTMLTableColElement> {
|
|
27
|
+
/**
|
|
28
|
+
* Sets the `className` property of the top-most element of the PivotGridColumn in addition to the default `k-pivotgrid-row` class.
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the `id` property of the top-most element of the PivotGridColumn.
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the `children` property of the top-most element of the PivotGridColumn.
|
|
37
|
+
*/
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the `style` property of the top-most element of the PivotGridColumn.
|
|
41
|
+
*/
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the `tabIndex` property of the top-most element of the PivotGridColumn.
|
|
45
|
+
*/
|
|
46
|
+
tabIndex?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Represents the `path` leading to the current `column`.
|
|
49
|
+
*/
|
|
50
|
+
path?: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Fires when the user clicks the PivotGridColumn.
|
|
53
|
+
*/
|
|
54
|
+
onClick?: (args: any) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Fires when the user double-clicks the PivotGridColumn.
|
|
57
|
+
*/
|
|
58
|
+
onDoubleClick?: (args: any) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Fires when the user presses a mouse button while the cursor is over the PivotGridColumn.
|
|
61
|
+
*/
|
|
62
|
+
onMouseDown?: (args: any) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Fires when the cursor enters the PivotGridColumn area.
|
|
65
|
+
*/
|
|
66
|
+
onMouseEnter?: (args: any) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Fires when the cursor leaves the PivotGridColumn area.
|
|
69
|
+
*/
|
|
70
|
+
onMouseLeave?: (args: any) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Fires when the cursor moves within the PivotGridColumn area.
|
|
73
|
+
*/
|
|
74
|
+
onMouseMove?: (args: any) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Fires when the cursor moves outside the PivotGridColumn area.
|
|
77
|
+
*/
|
|
78
|
+
onMouseOut?: (args: any) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Fires when the cursor moves over the PivotGridColumn area.
|
|
81
|
+
*/
|
|
82
|
+
onMouseOver?: (args: any) => void;
|
|
83
|
+
/**
|
|
84
|
+
* Fires when the user releases a mouse button while the cursor is over the PivotGridColumn.
|
|
85
|
+
*/
|
|
86
|
+
onMouseUp?: (args: any) => void;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Represents the [KendoReact PivotGridColumn component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridcolumnprops).
|
|
90
|
+
*/
|
|
91
|
+
export declare const PivotGridColumn: React.ForwardRefExoticComponent<PivotGridColumnProps & React.RefAttributes<PivotGridColumnHandle | null>>;
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { CustomComponent } from '@progress/kendo-react-common';
|
|
9
|
+
import { FormProps as KendoFormProps, FormElementProps as KendoFormElementProps } from '@progress/kendo-react-form';
|
|
10
|
+
import { SortDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
11
|
+
import { PivotGridAxis, PivotGridField } from '@progress/kendo-pivotgrid-common';
|
|
12
|
+
import { PivotGridConfiguratorEditorProps } from './ConfiguratorEditor.js';
|
|
13
|
+
import { PivotGridAxisFilterFieldsExpandChangeEvent, PivotGridAxisFilterFieldExpandEvent } from './AxisFilterFieldsEditor.js';
|
|
14
|
+
import { PivotGridConfiguratorAxesChangeEvent, PivotGridConfiguratorSortChangeEvent, PivotGridConfiguratorFilterChangeEvent } from '../models/index.js';
|
|
15
|
+
import { PivotGridFieldsEditorFieldExpandEvent, PivotGridFieldsEditorFieldCheckEvent } from './FieldsEditor.js';
|
|
16
|
+
import * as React from 'react';
|
|
17
|
+
/**
|
|
18
|
+
* Represents the props of the [KendoReact PivotGridConfigurator component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfigurator).
|
|
19
|
+
*/
|
|
20
|
+
export interface PivotGridConfiguratorProps {
|
|
21
|
+
/**
|
|
22
|
+
* Sets the `className` property of the top-most element of the PivotGridConfigurator in addition to the default `k-pivotgrid-configurator` class.
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the `id` property of the top-most element of the PivotGridConfigurator.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the `tabIndex` property of the top-most element of the PivotGridConfigurator.
|
|
31
|
+
*/
|
|
32
|
+
tabIndex?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the `style` property of the top-most element of the PivotGridConfigurator.
|
|
35
|
+
*/
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
/**
|
|
38
|
+
* Renders the PivotGridConfigurator in `horizontal` orientation.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
horizontal?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the `data` of the PivotGridConfigurator.
|
|
45
|
+
*
|
|
46
|
+
* The `data` represents all fields available in the configurator.
|
|
47
|
+
*/
|
|
48
|
+
data?: PivotGridField[];
|
|
49
|
+
/**
|
|
50
|
+
* The configuration of the `column` axes.
|
|
51
|
+
*/
|
|
52
|
+
columnAxes?: PivotGridAxis[];
|
|
53
|
+
/**
|
|
54
|
+
* A callback, fired whenever the `columnAxes` property should change.
|
|
55
|
+
*/
|
|
56
|
+
onColumnAxesChange?: (event: PivotGridConfiguratorAxesChangeEvent) => void;
|
|
57
|
+
/**
|
|
58
|
+
* The configuration of the `row` axes.
|
|
59
|
+
*/
|
|
60
|
+
rowAxes?: PivotGridAxis[];
|
|
61
|
+
/**
|
|
62
|
+
* A callback, fired whenever the `rowAxes` property should change.
|
|
63
|
+
*/
|
|
64
|
+
onRowAxesChange?: (event: PivotGridConfiguratorAxesChangeEvent) => void;
|
|
65
|
+
/**
|
|
66
|
+
* The configuration of the `measure` axes.
|
|
67
|
+
*/
|
|
68
|
+
measureAxes?: PivotGridAxis[];
|
|
69
|
+
/**
|
|
70
|
+
* A callback, fired whenever the `measureAxes` property should change.
|
|
71
|
+
*/
|
|
72
|
+
onMeasureAxesChange?: (event: PivotGridConfiguratorAxesChangeEvent) => void;
|
|
73
|
+
/**
|
|
74
|
+
* The descriptors by which the data is sorted.
|
|
75
|
+
*/
|
|
76
|
+
sort?: SortDescriptor[];
|
|
77
|
+
/**
|
|
78
|
+
* A callback, fired whenever the `sort` property should change.
|
|
79
|
+
*/
|
|
80
|
+
onSortChange?: (event: PivotGridConfiguratorSortChangeEvent) => void;
|
|
81
|
+
/**
|
|
82
|
+
* The descriptors by which the data is filtered.
|
|
83
|
+
*/
|
|
84
|
+
filter?: FilterDescriptor[];
|
|
85
|
+
/**
|
|
86
|
+
* A callback, fired whenever the `filter` property should change.
|
|
87
|
+
*/
|
|
88
|
+
onFilterChange?: (event: PivotGridConfiguratorFilterChangeEvent) => void;
|
|
89
|
+
/**
|
|
90
|
+
* A callback, fired whenever a `field` is expanded.
|
|
91
|
+
*/
|
|
92
|
+
onFieldsEditorFieldExpand?: (event: PivotGridFieldsEditorFieldExpandEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* A callback, fired whenever a `field` is checked.
|
|
95
|
+
*/
|
|
96
|
+
onFieldsEditorFieldCheck?: (event: PivotGridFieldsEditorFieldCheckEvent) => void;
|
|
97
|
+
/**
|
|
98
|
+
* A callback, fired whenever an `AxisFilterField` is expanded.
|
|
99
|
+
*/
|
|
100
|
+
onAxisFilterFieldExpand?: (event?: PivotGridAxisFilterFieldExpandEvent) => void;
|
|
101
|
+
/**
|
|
102
|
+
* A callback, fired whenever the `expanded` state of the `AxisFilterFields` is changed.
|
|
103
|
+
*/
|
|
104
|
+
onAxisFilterFieldsExpandChange?: (event?: PivotGridAxisFilterFieldsExpandChangeEvent) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Overrides the default `editor` component.
|
|
107
|
+
*
|
|
108
|
+
* The default component is: [PivotGridConfiguratorEditor](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfiguratoreditor).
|
|
109
|
+
*/
|
|
110
|
+
editor?: CustomComponent<PivotGridConfiguratorEditorProps>;
|
|
111
|
+
/**
|
|
112
|
+
* Overrides the default `form` component.
|
|
113
|
+
*
|
|
114
|
+
* The default component is: [KendoReactForm](https://www.telerik.com/kendo-react-ui/components/form/api/form).
|
|
115
|
+
*/
|
|
116
|
+
form?: CustomComponent<KendoFormProps>;
|
|
117
|
+
/**
|
|
118
|
+
* Overrides the default `formElement` component.
|
|
119
|
+
*
|
|
120
|
+
* The default component is: [KendoReactFormElement](https://www.telerik.com/kendo-react-ui/components/form/api/formelement).
|
|
121
|
+
*/
|
|
122
|
+
formElement?: CustomComponent<KendoFormElementProps>;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridConfigurator component.
|
|
126
|
+
*/
|
|
127
|
+
export interface PivotGridConfiguratorHandle {
|
|
128
|
+
/**
|
|
129
|
+
* The properties passed to the PivotGridConfigurator component.
|
|
130
|
+
*/
|
|
131
|
+
props: PivotGridConfiguratorProps;
|
|
132
|
+
/**
|
|
133
|
+
* The DOM element of the PivotGridConfigurator component.
|
|
134
|
+
*/
|
|
135
|
+
element: HTMLDivElement | null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Represents the [KendoReact PivotGridConfigurator component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfiguratorprops).
|
|
139
|
+
*/
|
|
140
|
+
export declare const PivotGridConfigurator: React.ForwardRefExoticComponent<PivotGridConfiguratorProps & React.RefAttributes<PivotGridConfiguratorHandle | null>>;
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { CustomComponent, IconProps as KendoIconProps, KendoMouse, SvgIconProps } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the [KendoReact PivotGridConfiguratorButton component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfiguratorbutton).
|
|
12
|
+
*/
|
|
13
|
+
export interface PivotGridConfiguratorButtonProps extends KendoMouse<PivotGridConfiguratorButtonHandle, HTMLDivElement> {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `className` property of the top-most element of the PivotGridConfiguratorButton in addition to the default `k-pivotgrid-configurator-button` class.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the `id` property of the top-most element of the PivotGridConfiguratorButton.
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the `tabIndex` property of the top-most element of the PivotGridConfiguratorButton.
|
|
24
|
+
*/
|
|
25
|
+
tabIndex?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the `style` property of the top-most element of the PivotGridConfiguratorButton.
|
|
28
|
+
*/
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
/**
|
|
31
|
+
* Overrides the default `icon` component.
|
|
32
|
+
*
|
|
33
|
+
* The default component is: [KendoReactIcon](https://www.telerik.com/kendo-react-ui/components/common/api/icon).
|
|
34
|
+
*/
|
|
35
|
+
icon?: CustomComponent<KendoIconProps & SvgIconProps>;
|
|
36
|
+
/**
|
|
37
|
+
* Fires when the user clicks the PivotGridConfiguratorButton.
|
|
38
|
+
*/
|
|
39
|
+
onClick?: (args: any) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Fires when the user double-clicks the PivotGridConfiguratorButton.
|
|
42
|
+
*/
|
|
43
|
+
onDoubleClick?: (args: any) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Fires when the user presses a mouse button while the cursor is over the PivotGridConfiguratorButton.
|
|
46
|
+
*/
|
|
47
|
+
onMouseDown?: (args: any) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Fires when the cursor enters the PivotGridConfiguratorButton area.
|
|
50
|
+
*/
|
|
51
|
+
onMouseEnter?: (args: any) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Fires when the cursor leaves the PivotGridConfiguratorButton area.
|
|
54
|
+
*/
|
|
55
|
+
onMouseLeave?: (args: any) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Fires when the cursor moves within the PivotGridConfiguratorButton area.
|
|
58
|
+
*/
|
|
59
|
+
onMouseMove?: (args: any) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Fires when the cursor moves outside the PivotGridConfiguratorButton area.
|
|
62
|
+
*/
|
|
63
|
+
onMouseOut?: (args: any) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Fires when the cursor moves over the PivotGridConfiguratorButton area.
|
|
66
|
+
*/
|
|
67
|
+
onMouseOver?: (args: any) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Fires when the user releases a mouse button while the cursor is over the PivotGridConfiguratorButton.
|
|
70
|
+
*/
|
|
71
|
+
onMouseUp?: (args: any) => void;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridConfiguratorButton component.
|
|
75
|
+
*/
|
|
76
|
+
export interface PivotGridConfiguratorButtonHandle {
|
|
77
|
+
/**
|
|
78
|
+
* The properties passed to the PivotGridConfiguratorButton component.
|
|
79
|
+
*/
|
|
80
|
+
props: PivotGridConfiguratorButtonProps;
|
|
81
|
+
/**
|
|
82
|
+
* The DOM element of the PivotGridConfiguratorButton component.
|
|
83
|
+
*/
|
|
84
|
+
element: HTMLDivElement | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Represents the [KendoReact PivotGridConfiguratorButton component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfiguratorbuttonprops).
|
|
88
|
+
*/
|
|
89
|
+
export declare const PivotGridConfiguratorButton: React.ForwardRefExoticComponent<PivotGridConfiguratorButtonProps & React.RefAttributes<PivotGridConfiguratorButtonHandle | null>>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
|
-
import { useCustomComponent as l,
|
|
9
|
+
import { useCustomComponent as l, IconWrap as f, classNames as d, useMouse as g } from "@progress/kendo-react-common";
|
|
10
10
|
import { useLocalization as I } from "@progress/kendo-react-intl";
|
|
11
11
|
import { gearIcon as v } from "@progress/kendo-svg-icons";
|
|
12
12
|
import { configuratorButtonLabel as a, messages as p } from "../messages/index.mjs";
|
|
@@ -19,15 +19,15 @@ const C = e.forwardRef((t, r) => {
|
|
|
19
19
|
const [s, i] = l(
|
|
20
20
|
t.icon || N.icon
|
|
21
21
|
), m = e.useMemo(
|
|
22
|
-
() =>
|
|
22
|
+
() => d("k-pivotgrid-configurator-button", t.className),
|
|
23
23
|
[t.className]
|
|
24
|
-
), u =
|
|
24
|
+
), u = g(
|
|
25
25
|
t,
|
|
26
26
|
o
|
|
27
27
|
);
|
|
28
28
|
return /* @__PURE__ */ e.createElement("div", { ref: n, id: t.id, className: m, tabIndex: t.tabIndex, ...u }, /* @__PURE__ */ e.createElement("span", null, c.toLanguageString(a, p[a]), /* @__PURE__ */ e.createElement(s, { name: "gear", icon: v, ...i })));
|
|
29
29
|
}), N = {
|
|
30
|
-
icon:
|
|
30
|
+
icon: f
|
|
31
31
|
};
|
|
32
32
|
C.displayName = "KendoReactPivotGridConfiguratorButton";
|
|
33
33
|
export {
|
|
@@ -0,0 +1,144 @@
|
|
|
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 { FormRenderProps, FieldProps } from '@progress/kendo-react-form';
|
|
9
|
+
import { LabelProps } from '@progress/kendo-react-labels';
|
|
10
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
11
|
+
import { PivotGridAxisFilterFieldExpandEvent, PivotGridAxisFilterFieldsExpandChangeEvent } from './AxisFilterFieldsEditor.js';
|
|
12
|
+
import { PivotGridConfiguratorState, PivotGridField } from '@progress/kendo-pivotgrid-common';
|
|
13
|
+
import { PivotGridAxesEditorProps } from './AxesEditor.js';
|
|
14
|
+
import { PivotGridFieldsEditorProps, PivotGridFieldsEditorFieldExpandEvent, PivotGridFieldsEditorFieldCheckEvent } from './FieldsEditor.js';
|
|
15
|
+
import { PivotGridConfiguratorEditorState, PivotGridConfiguratorAction } from '../hooks/index.js';
|
|
16
|
+
import * as React from 'react';
|
|
17
|
+
/**
|
|
18
|
+
* Represents the props of the [KendoReact PivotGridConfiguratorEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfiguratoreditor).
|
|
19
|
+
*/
|
|
20
|
+
export interface PivotGridConfiguratorEditorProps extends FormRenderProps {
|
|
21
|
+
/**
|
|
22
|
+
* Sets the `data` of the PivotGridConfiguratorEditor.
|
|
23
|
+
*
|
|
24
|
+
* The `data` represents all fields available in the configurator.
|
|
25
|
+
*/
|
|
26
|
+
data: PivotGridField[];
|
|
27
|
+
/**
|
|
28
|
+
* Renders the PivotGridConfiguratorEditor in `horizontal` orientation.
|
|
29
|
+
*
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
horizontal?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Overrides the default `fieldsLabel` component.
|
|
35
|
+
*
|
|
36
|
+
* The default component is: [KendoReactLabel](https://www.telerik.com/kendo-react-ui/components/labels/api/label).
|
|
37
|
+
*/
|
|
38
|
+
fieldsLabel?: CustomComponent<FieldProps & LabelProps>;
|
|
39
|
+
/**
|
|
40
|
+
* Overrides the default `fieldsEditor` component.
|
|
41
|
+
*
|
|
42
|
+
* The default component is: [PivotGridFieldsEditor](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridfieldseditor).
|
|
43
|
+
*/
|
|
44
|
+
fieldsEditor?: CustomComponent<PivotGridFieldsEditorProps>;
|
|
45
|
+
/**
|
|
46
|
+
* Overrides the default `columnAxesLabel` component.
|
|
47
|
+
*
|
|
48
|
+
* The default component is: [KendoReactLabel](https://www.telerik.com/kendo-react-ui/components/labels/api/label).
|
|
49
|
+
*/
|
|
50
|
+
columnAxesLabel?: CustomComponent<FieldProps & LabelProps>;
|
|
51
|
+
/**
|
|
52
|
+
* Overrides the default `columnAxesEditor` component.
|
|
53
|
+
*
|
|
54
|
+
* The default component is: [PivotGridAxesEditor](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxeseditor).
|
|
55
|
+
*/
|
|
56
|
+
columnAxesEditor?: CustomComponent<PivotGridAxesEditorProps>;
|
|
57
|
+
/**
|
|
58
|
+
* Overrides the default `rowAxesLabel` component.
|
|
59
|
+
*
|
|
60
|
+
* The default component is: [KendoReactLabel](https://www.telerik.com/kendo-react-ui/components/labels/api/label).
|
|
61
|
+
*/
|
|
62
|
+
rowAxesLabel?: CustomComponent<FieldProps & LabelProps>;
|
|
63
|
+
/**
|
|
64
|
+
* Overrides the default `rowAxesEditor` component.
|
|
65
|
+
*
|
|
66
|
+
* The default component is: [PivotGridAxesEditor](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxeseditor).
|
|
67
|
+
*/
|
|
68
|
+
rowAxesEditor?: CustomComponent<PivotGridAxesEditorProps>;
|
|
69
|
+
/**
|
|
70
|
+
* Overrides the default `measureAxesLabel` component.
|
|
71
|
+
*
|
|
72
|
+
* The default component is: [KendoReactLabel](https://www.telerik.com/kendo-react-ui/components/labels/api/label).
|
|
73
|
+
*/
|
|
74
|
+
measureAxesLabel?: CustomComponent<FieldProps & LabelProps>;
|
|
75
|
+
/**
|
|
76
|
+
* Overrides the default `measureAxesEditor` component.
|
|
77
|
+
*
|
|
78
|
+
* The default component is: [PivotGridAxesEditor](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridaxeseditor).
|
|
79
|
+
*/
|
|
80
|
+
measureAxesEditor?: CustomComponent<PivotGridAxesEditorProps>;
|
|
81
|
+
/**
|
|
82
|
+
* A callback, fired whenever a `FieldEditorField` is expanded.
|
|
83
|
+
*/
|
|
84
|
+
onFieldsEditorFieldExpand?: (event: PivotGridFieldsEditorFieldExpandEvent & {
|
|
85
|
+
currentTarget: PivotGridConfiguratorEditorHandle;
|
|
86
|
+
}) => void;
|
|
87
|
+
/**
|
|
88
|
+
* An action callback. Used to define the component behavior when a `FieldsEditorFieldExpand` is triggered.
|
|
89
|
+
*
|
|
90
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
91
|
+
*
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
onFieldsEditorFieldExpandAction?: (event: PivotGridFieldsEditorFieldCheckEvent & {
|
|
95
|
+
currentTarget: PivotGridConfiguratorEditorHandle;
|
|
96
|
+
}, props: PivotGridConfiguratorEditorProps, state: PivotGridConfiguratorEditorState) => PivotGridConfiguratorAction | PivotGridConfiguratorAction[];
|
|
97
|
+
/**
|
|
98
|
+
* A callback, fired whenever a `FieldEditorField` is checked.
|
|
99
|
+
*/
|
|
100
|
+
onFieldsEditorFieldCheck?: (event: PivotGridFieldsEditorFieldCheckEvent & {
|
|
101
|
+
currentTarget: PivotGridConfiguratorEditorHandle;
|
|
102
|
+
}) => void;
|
|
103
|
+
/**
|
|
104
|
+
* An action callback. Used to define the component behavior when a `FieldsEditorFieldCheck` is triggered.
|
|
105
|
+
*
|
|
106
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
107
|
+
*
|
|
108
|
+
* @hidden
|
|
109
|
+
*/
|
|
110
|
+
onFieldsEditorFieldCheckAction?: (event: PivotGridFieldsEditorFieldCheckEvent & {
|
|
111
|
+
currentTarget: PivotGridConfiguratorEditorHandle;
|
|
112
|
+
}, props: PivotGridConfiguratorEditorProps, state: PivotGridConfiguratorEditorState) => PivotGridConfiguratorAction | PivotGridConfiguratorAction[];
|
|
113
|
+
/**
|
|
114
|
+
* A callback, fired whenever an `AxisFilterField` is expanded.
|
|
115
|
+
*/
|
|
116
|
+
onAxisFilterFieldExpand?: (event: PivotGridAxisFilterFieldExpandEvent & {
|
|
117
|
+
currentTarget: PivotGridConfiguratorEditorHandle;
|
|
118
|
+
}) => void;
|
|
119
|
+
/**
|
|
120
|
+
* A callback, fired whenever `expanded` state of the AxisFilterFields is changed.
|
|
121
|
+
*/
|
|
122
|
+
onAxisFilterFieldsExpandChange?: (event: PivotGridAxisFilterFieldsExpandChangeEvent) => void;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Represents the object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the PivotGridConfiguratorEditor component.
|
|
126
|
+
*/
|
|
127
|
+
export interface PivotGridConfiguratorEditorHandle {
|
|
128
|
+
/**
|
|
129
|
+
* The properties passed to the PivotGridConfiguratorEditor component.
|
|
130
|
+
*/
|
|
131
|
+
props: PivotGridConfiguratorEditorProps;
|
|
132
|
+
/**
|
|
133
|
+
* The current state of the PivotGridConfiguratorEditor component.
|
|
134
|
+
*/
|
|
135
|
+
state: PivotGridConfiguratorState;
|
|
136
|
+
/**
|
|
137
|
+
* The DOM element of the PivotGridConfiguratorEditor component.
|
|
138
|
+
*/
|
|
139
|
+
element: HTMLDivElement;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Represents the [KendoReact PivotGridConfiguratorEditor component](https://www.telerik.com/kendo-react-ui/components/pivotgrid/api/pivotgridconfiguratoreditorprops).
|
|
143
|
+
*/
|
|
144
|
+
export declare const PivotGridConfiguratorEditor: React.ForwardRefExoticComponent<PivotGridConfiguratorEditorProps & React.RefAttributes<PivotGridConfiguratorEditorHandle>>;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react"),p=require("@progress/kendo-react-form"),C=require("@progress/kendo-react-labels"),oe=require("@progress/kendo-react-intl"),E=require("@progress/kendo-react-common"),v=require("./AxesEditor.js"),ne=require("./FieldsEditor.js"),o=require("../messages/index.js"),d=require("../hooks/usePivotConfiguratorEditor.js"),se=require("../shared/PivotGridConfiguratorEditorEventsContext.js"),re=require("../shared/PivotGridConfiguratorEditorStateContext.js");function ae(r){const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const c in r)if(c!=="default"){const A=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(x,c,A.get?A:{enumerable:!0,get:()=>r[c]})}}return x.default=r,Object.freeze(x)}const e=ae(te),w=e.forwardRef((r,x)=>{const{onFieldsEditorFieldCheck:c,onFieldsEditorFieldCheckAction:A=a.onFieldsEditorFieldCheckAction,onFieldsEditorFieldExpand:b,onFieldsEditorFieldExpandAction:R=a.onFieldsEditorFieldExpandAction,onAxisFilterFieldExpand:I,onAxisFilterFieldsExpandChange:N}=r,n={onFieldsEditorFieldCheck:c,onFieldsEditorFieldCheckAction:A,horizontal:a.horizontal,axesEditor:a.axesEditor,...r},[k,G]=E.useCustomComponent(n.fieldsLabel||a.fieldsLabel),[_,S]=E.useCustomComponent(n.fieldsEditor||a.fieldsEditor),[q,z]=E.useCustomComponent(n.columnAxesLabel||a.columnAxesLabel),[D,U]=E.useCustomComponent(n.columnAxesEditor||a.columnAxesEditor),[V,Z]=E.useCustomComponent(n.rowAxesLabel||a.rowAxesLabel),[j,B]=E.useCustomComponent(n.rowAxesEditor||a.rowAxesEditor),[H,K]=E.useCustomComponent(n.measureAxesLabel||a.measureAxesLabel),[J,Q]=E.useCustomComponent(n.measureAxesEditor||a.measureAxesEditor),W=e.useRef(null),u=e.useRef(null),g=oe.useLocalization(),[s,i]=d.usePivotConfiguratorEditor(n,u);e.useImperativeHandle(u,()=>({element:W.current,props:n,state:s})),e.useImperativeHandle(x,()=>u.current);const F=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:"columnAxes"})},L=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})},h=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:"rowAxes"})},y=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})},M=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:"measureAxes"})},T=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})},X=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};if(R){const l=R(m,n,s);l&&(Array.isArray(l)?l.filter(Boolean).map(f=>f&&i({...f},t.syntheticEvent)):i({...l},t.syntheticEvent))}b&&b({target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent})},Y=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};if(A){const l=A(m,n,s);l&&(Array.isArray(l)?l.filter(Boolean).map(f=>f&&i({...f},t.syntheticEvent)):i({...l},t.syntheticEvent))}c&&c(m)},$=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};I&&I(m)},ee=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};N&&N(m)},O=n.horizontal?"div":e.Fragment,P=n.horizontal?{className:"k-form-field-wrapper"}:{};return e.createElement(se.PivotGridConfiguratorEditorEventsContext.Provider,{value:{onAxisFilterFieldExpand:$,onAxisFilterFieldsExpandChange:ee}},e.createElement(re.PivotGridConfiguratorEditorStateContext.Provider,{value:[s,i]},e.createElement(O,{...P},e.createElement("div",{className:"k-form-field"},e.createElement(k,{name:"",component:C.Label,...G},g.toLanguageString(o.configuratorEditorSearchTitle,o.messages[o.configuratorEditorSearchTitle]))),e.createElement("div",{className:"k-form-field"},e.createElement("div",{className:"k-fields-list-wrapper"},e.createElement(_,{data:n.data,onExpand:X,onCheck:Y,columnAxes:s.columnAxes,rowAxes:s.rowAxes,measureAxes:s.measureAxes,...S})))),e.createElement(O,{...P},e.createElement("div",{className:"k-form-field",onMouseEnter:F,onMouseLeave:L},e.createElement(p.Field,{name:"columnAxes",field:"columnAxes",component:q,...z},g.toLanguageString(o.configuratorColumnsTitle,o.messages[o.configuratorColumnsTitle]))),n.valueGetter("columnAxes").length?e.createElement(p.Field,{name:"columnAxes",field:"columnAxes",component:D,onMouseEnter:F,onMouseLeave:L,className:"k-column-fields",...U}):e.createElement("div",{className:"k-settings-description",onMouseEnter:F,onMouseLeave:L},g.toLanguageString(o.configuratorMissingFields,o.messages[o.configuratorMissingFields])),e.createElement("div",{className:"k-form-field",onMouseEnter:h,onMouseLeave:y},e.createElement(p.Field,{name:"rowAxes",field:"rowAxes",component:V,...Z},g.toLanguageString(o.configuratorRowsTitle,o.messages[o.configuratorRowsTitle]))),n.valueGetter("rowAxes").length?e.createElement(p.Field,{name:"rowAxes",field:"rowAxes",component:j,onMouseEnter:h,onMouseLeave:y,className:"k-column-fields",...B}):e.createElement("div",{className:"k-settings-description",onMouseEnter:h,onMouseLeave:y},g.toLanguageString(o.configuratorMissingFields,o.messages[o.configuratorMissingFields]))),e.createElement(O,{...P},e.createElement("div",{className:"k-form-field",onMouseEnter:M,onMouseLeave:T},e.createElement(p.Field,{name:"measureAxes",field:"measureAxes",component:H,...K},g.toLanguageString(o.configuratorMeasuresTitle,o.messages[o.configuratorMeasuresTitle]))),n.valueGetter("measureAxes").length?e.createElement(p.Field,{name:"measureAxes",field:"measureAxes",component:J,onMouseEnter:M,onMouseLeave:T,className:"k-column-fields",...Q}):e.createElement("div",{className:"k-settings-description",onMouseEnter:M,onMouseLeave:T},g.toLanguageString(o.configuratorMissingFields,o.messages[o.configuratorMissingFields])))))}),a={
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react"),p=require("@progress/kendo-react-form"),C=require("@progress/kendo-react-labels"),oe=require("@progress/kendo-react-intl"),E=require("@progress/kendo-react-common"),v=require("./AxesEditor.js"),ne=require("./FieldsEditor.js"),o=require("../messages/index.js"),d=require("../hooks/usePivotConfiguratorEditor.js"),se=require("../shared/PivotGridConfiguratorEditorEventsContext.js"),re=require("../shared/PivotGridConfiguratorEditorStateContext.js");function ae(r){const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const c in r)if(c!=="default"){const A=Object.getOwnPropertyDescriptor(r,c);Object.defineProperty(x,c,A.get?A:{enumerable:!0,get:()=>r[c]})}}return x.default=r,Object.freeze(x)}const e=ae(te),w=e.forwardRef((r,x)=>{const{onFieldsEditorFieldCheck:c,onFieldsEditorFieldCheckAction:A=a.onFieldsEditorFieldCheckAction,onFieldsEditorFieldExpand:b,onFieldsEditorFieldExpandAction:R=a.onFieldsEditorFieldExpandAction,onAxisFilterFieldExpand:I,onAxisFilterFieldsExpandChange:N}=r,n={onFieldsEditorFieldCheck:c,onFieldsEditorFieldCheckAction:A,horizontal:a.horizontal,axesEditor:a.axesEditor,...r},[k,G]=E.useCustomComponent(n.fieldsLabel||a.fieldsLabel),[_,S]=E.useCustomComponent(n.fieldsEditor||a.fieldsEditor),[q,z]=E.useCustomComponent(n.columnAxesLabel||a.columnAxesLabel),[D,U]=E.useCustomComponent(n.columnAxesEditor||a.columnAxesEditor),[V,Z]=E.useCustomComponent(n.rowAxesLabel||a.rowAxesLabel),[j,B]=E.useCustomComponent(n.rowAxesEditor||a.rowAxesEditor),[H,K]=E.useCustomComponent(n.measureAxesLabel||a.measureAxesLabel),[J,Q]=E.useCustomComponent(n.measureAxesEditor||a.measureAxesEditor),W=e.useRef(null),u=e.useRef(null),g=oe.useLocalization(),[s,i]=d.usePivotConfiguratorEditor(n,u);e.useImperativeHandle(u,()=>({element:W.current,props:n,state:s})),e.useImperativeHandle(x,()=>u.current);const F=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:"columnAxes"})},L=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})},h=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:"rowAxes"})},y=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})},M=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:"measureAxes"})},T=()=>{s.dragItem&&i({type:d.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})},X=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};if(R){const l=R(m,n,s);l&&(Array.isArray(l)?l.filter(Boolean).map(f=>f&&i({...f},t.syntheticEvent)):i({...l},t.syntheticEvent))}b&&b({target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent})},Y=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};if(A){const l=A(m,n,s);l&&(Array.isArray(l)?l.filter(Boolean).map(f=>f&&i({...f},t.syntheticEvent)):i({...l},t.syntheticEvent))}c&&c(m)},$=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};I&&I(m)},ee=t=>{const m={target:t.target,currentTarget:u.current,value:t.value,syntheticEvent:t.syntheticEvent};N&&N(m)},O=n.horizontal?"div":e.Fragment,P=n.horizontal?{className:"k-form-field-wrapper"}:{};return e.createElement(se.PivotGridConfiguratorEditorEventsContext.Provider,{value:{onAxisFilterFieldExpand:$,onAxisFilterFieldsExpandChange:ee}},e.createElement(re.PivotGridConfiguratorEditorStateContext.Provider,{value:[s,i]},e.createElement(O,{...P},e.createElement("div",{className:"k-form-field"},e.createElement(k,{name:"",component:C.Label,...G},g.toLanguageString(o.configuratorEditorSearchTitle,o.messages[o.configuratorEditorSearchTitle]))),e.createElement("div",{className:"k-form-field"},e.createElement("div",{className:"k-fields-list-wrapper"},e.createElement(_,{data:n.data,onExpand:X,onCheck:Y,columnAxes:s.columnAxes,rowAxes:s.rowAxes,measureAxes:s.measureAxes,...S})))),e.createElement(O,{...P},e.createElement("div",{className:"k-form-field",onMouseEnter:F,onMouseLeave:L},e.createElement(p.Field,{name:"columnAxes",field:"columnAxes",component:q,...z},g.toLanguageString(o.configuratorColumnsTitle,o.messages[o.configuratorColumnsTitle]))),n.valueGetter("columnAxes").length?e.createElement(p.Field,{name:"columnAxes",field:"columnAxes",component:D,onMouseEnter:F,onMouseLeave:L,className:"k-column-fields",...U}):e.createElement("div",{className:"k-settings-description",onMouseEnter:F,onMouseLeave:L},g.toLanguageString(o.configuratorMissingFields,o.messages[o.configuratorMissingFields])),e.createElement("div",{className:"k-form-field",onMouseEnter:h,onMouseLeave:y},e.createElement(p.Field,{name:"rowAxes",field:"rowAxes",component:V,...Z},g.toLanguageString(o.configuratorRowsTitle,o.messages[o.configuratorRowsTitle]))),n.valueGetter("rowAxes").length?e.createElement(p.Field,{name:"rowAxes",field:"rowAxes",component:j,onMouseEnter:h,onMouseLeave:y,className:"k-column-fields",...B}):e.createElement("div",{className:"k-settings-description",onMouseEnter:h,onMouseLeave:y},g.toLanguageString(o.configuratorMissingFields,o.messages[o.configuratorMissingFields]))),e.createElement(O,{...P},e.createElement("div",{className:"k-form-field",onMouseEnter:M,onMouseLeave:T},e.createElement(p.Field,{name:"measureAxes",field:"measureAxes",component:H,...K},g.toLanguageString(o.configuratorMeasuresTitle,o.messages[o.configuratorMeasuresTitle]))),n.valueGetter("measureAxes").length?e.createElement(p.Field,{name:"measureAxes",field:"measureAxes",component:J,onMouseEnter:M,onMouseLeave:T,className:"k-column-fields",...Q}):e.createElement("div",{className:"k-settings-description",onMouseEnter:M,onMouseLeave:T},g.toLanguageString(o.configuratorMissingFields,o.messages[o.configuratorMissingFields])))))}),a={horizontal:!1,fieldsLabel:C.Label,fieldsEditor:ne.PivotGridFieldsEditor,columnAxesLabel:C.Label,columnAxesEditor:v.PivotGridAxesEditor,rowAxesLabel:C.Label,rowAxesEditor:v.PivotGridAxesEditor,measureAxesLabel:C.Label,measureAxesEditor:v.PivotGridAxesEditor,axesEditor:v.PivotGridAxesEditor,onFieldsEditorFieldCheckAction:r=>({type:d.PIVOT_CONFIGURATOR_ACTION.toggleSelection,payload:r.value}),onFieldsEditorFieldExpandAction:r=>({type:d.PIVOT_CONFIGURATOR_ACTION.toggleExpansion,payload:r.value})};w.displayName="KendoReactPivotGridConfiguratorEditor";exports.PivotGridConfiguratorEditor=w;
|
|
@@ -13,7 +13,7 @@ import { useCustomComponent as d } from "@progress/kendo-react-common";
|
|
|
13
13
|
import { PivotGridAxesEditor as f } from "./AxesEditor.mjs";
|
|
14
14
|
import { PivotGridFieldsEditor as ae } from "./FieldsEditor.mjs";
|
|
15
15
|
import { configuratorEditorSearchTitle as I, messages as u, configuratorColumnsTitle as S, configuratorMissingFields as x, configuratorRowsTitle as G, configuratorMeasuresTitle as z } from "../messages/index.mjs";
|
|
16
|
-
import {
|
|
16
|
+
import { PIVOT_CONFIGURATOR_ACTION as c, usePivotConfiguratorEditor as ie } from "../hooks/usePivotConfiguratorEditor.mjs";
|
|
17
17
|
import { PivotGridConfiguratorEditorEventsContext as le } from "../shared/PivotGridConfiguratorEditorEventsContext.mjs";
|
|
18
18
|
import { PivotGridConfiguratorEditorStateContext as de } from "../shared/PivotGridConfiguratorEditorStateContext.mjs";
|
|
19
19
|
const ce = e.forwardRef((E, D) => {
|
|
@@ -249,7 +249,6 @@ const ce = e.forwardRef((E, D) => {
|
|
|
249
249
|
)))
|
|
250
250
|
);
|
|
251
251
|
}), r = {
|
|
252
|
-
data: [],
|
|
253
252
|
horizontal: !1,
|
|
254
253
|
fieldsLabel: g,
|
|
255
254
|
fieldsEditor: ae,
|