@progress/kendo-react-chart-wizard 13.3.0 → 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/ChartWizard.d.ts +15 -0
- package/ChartWizard.mjs +10 -10
- package/components/ChartComponent.d.ts +18 -0
- package/components/FormField.d.ts +19 -0
- package/components/FormFieldSet.d.ts +17 -0
- package/components/SeriesGrid.d.ts +18 -0
- package/components/SeriesGrid.mjs +3 -3
- package/components/SeriesGridCells.d.ts +54 -0
- package/components/SeriesTypeButton.d.ts +21 -0
- package/components/SeriesTypesWrap.d.ts +14 -0
- package/components/panels/BarChartPanel.d.ts +16 -0
- package/components/panels/CategoryAxisPanel.d.ts +16 -0
- package/components/panels/CategoryAxisPanel.mjs +13 -13
- package/components/panels/ChartAreaPanel.d.ts +16 -0
- package/components/panels/ColumnChartPanel.d.ts +16 -0
- package/components/panels/ConfigurationPanel.d.ts +16 -0
- package/components/panels/LegendPanel.d.ts +16 -0
- package/components/panels/LegendPanel.mjs +1 -1
- package/components/panels/LineChartPanel.d.ts +16 -0
- package/components/panels/PieChartPanel.d.ts +16 -0
- package/components/panels/ScatterChartPanel.d.ts +16 -0
- package/components/panels/SeriesPanel.d.ts +16 -0
- package/components/panels/SeriesPanel.mjs +3 -3
- package/components/panels/TitlePanel.d.ts +16 -0
- package/components/panels/TitlePanel.mjs +6 -6
- package/components/panels/ValueAxisPanel.d.ts +16 -0
- package/components/panels/ValueAxisPanel.mjs +1 -1
- package/dist/cdn/js/kendo-react-chart-wizard.js +1 -1
- package/grid-integration/get-grid-selected-rows.d.ts +36 -0
- package/grid-integration/get-wizard-data-from-grid-selection.d.ts +36 -0
- package/grid-integration/index.d.ts +9 -0
- package/index.d.mts +7 -237
- package/index.d.ts +7 -237
- package/messages.d.ts +551 -0
- package/package.json +14 -14
- package/types/ChartWizardHandle.d.ts +24 -0
- package/types/ChartWizardPanelProps.d.ts +15 -0
- package/types/ChartWizardProps.d.ts +47 -0
- package/types/export.d.ts +65 -0
- package/utils.d.ts +147 -0
package/index.d.ts
CHANGED
|
@@ -5,240 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { ChartWizardSeriesItem } from '@progress/kendo-charts';
|
|
16
|
-
import { ChartWizardSeriesItemLabel } from '@progress/kendo-charts';
|
|
17
|
-
import { ChartWizardSeriesStack } from '@progress/kendo-charts';
|
|
18
|
-
import { ChartWizardSeriesType } from '@progress/kendo-charts';
|
|
19
|
-
import { ChartWizardState } from '@progress/kendo-charts';
|
|
20
|
-
import { ChartWizardTitle } from '@progress/kendo-charts';
|
|
21
|
-
import { ChartWizardValueAxisItem } from '@progress/kendo-charts';
|
|
22
|
-
import { DataColumn } from '@progress/kendo-charts';
|
|
23
|
-
import { DataRow } from '@progress/kendo-charts';
|
|
24
|
-
import { GridHandle } from '@progress/kendo-react-grid';
|
|
25
|
-
import { ImageExportOptions } from '@progress/kendo-drawing';
|
|
26
|
-
import { PDFOptions } from '@progress/kendo-drawing/pdf';
|
|
27
|
-
import * as React_2 from 'react';
|
|
28
|
-
import { WindowProps } from '@progress/kendo-react-dialogs';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* The KendoReact ChartWizard component.
|
|
32
|
-
*/
|
|
33
|
-
export declare const ChartWizard: React_2.ForwardRefExoticComponent<ChartWizardProps & React_2.RefAttributes<ChartWizardHandle | null>>;
|
|
34
|
-
|
|
35
|
-
export { ChartWizardArea }
|
|
36
|
-
|
|
37
|
-
export { ChartWizardCategoryAxisItem }
|
|
38
|
-
|
|
39
|
-
export { ChartWizardDataCell }
|
|
40
|
-
|
|
41
|
-
export { ChartWizardDataRow }
|
|
42
|
-
|
|
43
|
-
export { ChartWizardDefaultState }
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Represents the `ref` object of the ChartWizard component.
|
|
47
|
-
**/
|
|
48
|
-
export declare interface ChartWizardHandle {
|
|
49
|
-
/**
|
|
50
|
-
* Gets the Chart instance.
|
|
51
|
-
*/
|
|
52
|
-
chart: Chart | null;
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*
|
|
56
|
-
* The current state of the ChartWizard.
|
|
57
|
-
*/
|
|
58
|
-
state: ChartWizardState;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { ChartWizardLegend }
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The props of the KendoReact ChartWizard component.
|
|
65
|
-
*/
|
|
66
|
-
export declare interface ChartWizardProps {
|
|
67
|
-
/**
|
|
68
|
-
* Specifies the data you want to display in the ChartWizard component.
|
|
69
|
-
*/
|
|
70
|
-
data?: ChartWizardDataRow[];
|
|
71
|
-
/**
|
|
72
|
-
* Fires when you close the ChartWizard component.
|
|
73
|
-
*/
|
|
74
|
-
onClose?: () => void;
|
|
75
|
-
/**
|
|
76
|
-
* Fires when the Chart exports. You can prevent this action.
|
|
77
|
-
*/
|
|
78
|
-
onExport?: (event: ExportEvent) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the export options for the ChartWizard component.
|
|
81
|
-
*/
|
|
82
|
-
exportOptions?: ExportOptions;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the default state of the ChartWizard component.
|
|
85
|
-
*/
|
|
86
|
-
defaultState?: ChartWizardDefaultState;
|
|
87
|
-
/**
|
|
88
|
-
* Sets the component that renders the ChartWizard window.
|
|
89
|
-
*/
|
|
90
|
-
window?: React.ComponentType<WindowProps>;
|
|
91
|
-
/**
|
|
92
|
-
* Fires when the ChartWizard component state changes.
|
|
93
|
-
*/
|
|
94
|
-
onStateChange?: (state: ChartWizardState) => void;
|
|
95
|
-
/**
|
|
96
|
-
* Controls the state of the ChartWizard component.
|
|
97
|
-
*/
|
|
98
|
-
state?: ChartWizardState;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export { ChartWizardSeriesItem }
|
|
102
|
-
|
|
103
|
-
export { ChartWizardSeriesItemLabel }
|
|
104
|
-
|
|
105
|
-
export { ChartWizardSeriesStack }
|
|
106
|
-
|
|
107
|
-
export { ChartWizardSeriesType }
|
|
108
|
-
|
|
109
|
-
export { ChartWizardState }
|
|
110
|
-
|
|
111
|
-
export { ChartWizardTitle }
|
|
112
|
-
|
|
113
|
-
export { ChartWizardValueAxisItem }
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Creates a state object from the provided data and series type.
|
|
117
|
-
*
|
|
118
|
-
* @param data - Specifies the data you want to display in the ChartWizard component.
|
|
119
|
-
* @param seriesType - Sets the series type of the ChartWizard component.
|
|
120
|
-
* @returns The state object.
|
|
121
|
-
*/
|
|
122
|
-
export declare const createState: (data: ChartWizardDataRow[], seriesType: ChartWizardSeriesType) => ChartWizardState;
|
|
123
|
-
|
|
124
|
-
export { DataColumn }
|
|
125
|
-
|
|
126
|
-
export { DataRow }
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Provides arguments for the `export` event on the Chart Wizard.
|
|
130
|
-
*/
|
|
131
|
-
export declare class ExportEvent extends PreventableEvent {
|
|
132
|
-
/**
|
|
133
|
-
* Gets the export options on the Chart Wizard.
|
|
134
|
-
*/
|
|
135
|
-
exportOptions: ExportOptions;
|
|
136
|
-
/**
|
|
137
|
-
* Gets the current Chart chart instance you want to export.
|
|
138
|
-
*/
|
|
139
|
-
chart: Chart;
|
|
140
|
-
constructor(chart: Chart, exportOptions: ExportOptions);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Sets the export options for the Chart Wizard.
|
|
145
|
-
*/
|
|
146
|
-
export declare interface ExportOptions {
|
|
147
|
-
/**
|
|
148
|
-
* Sets the filename for exported files.
|
|
149
|
-
*
|
|
150
|
-
* @default 'chart'
|
|
151
|
-
*/
|
|
152
|
-
fileName?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Configures PDF export options.
|
|
155
|
-
*
|
|
156
|
-
* @default { paperSize: 'A4', margin: '1cm' }
|
|
157
|
-
*/
|
|
158
|
-
pdf?: PDFOptions;
|
|
159
|
-
/**
|
|
160
|
-
* Configures image export options.
|
|
161
|
-
*
|
|
162
|
-
* @default { width: 800, height: 600 }
|
|
163
|
-
*/
|
|
164
|
-
image?: ImageExportOptions;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Maps the Grid selectedState to a more general DataRows type you can display in the Chart Wizard.
|
|
169
|
-
*
|
|
170
|
-
* The selectedKeys can be either row keys or cell keys.
|
|
171
|
-
*
|
|
172
|
-
* @returns DataRow array that you can pass to `getWizardDataFromDataRows` to bind the Chart Wizard.
|
|
173
|
-
*/
|
|
174
|
-
export declare function getGridSelectedRows(args: {
|
|
175
|
-
/**
|
|
176
|
-
* Specifies the Grid handle instance.
|
|
177
|
-
*/
|
|
178
|
-
grid: GridHandle | null;
|
|
179
|
-
/**
|
|
180
|
-
* Sets the data array from the Grid.
|
|
181
|
-
*/
|
|
182
|
-
data: any[];
|
|
183
|
-
/**
|
|
184
|
-
* Configures the current selection state.
|
|
185
|
-
*/
|
|
186
|
-
selectedState: {
|
|
187
|
-
[id: string]: boolean | number[];
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Sets the key property for identifying data items.
|
|
191
|
-
*/
|
|
192
|
-
dataItemKey: string;
|
|
193
|
-
}): DataRow[];
|
|
194
|
-
|
|
195
|
-
export declare const getWizardDataFromDataRows: (dataRows: DataRow[]) => ChartWizardDataRow[];
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Maps the Grid selectedState to data you can display in the Chart Wizard.
|
|
199
|
-
*
|
|
200
|
-
* Supports both row and cell selection.
|
|
201
|
-
*
|
|
202
|
-
* @returns A collection that you can use as Chart Wizard data.
|
|
203
|
-
*/
|
|
204
|
-
export declare const getWizardDataFromGridSelection: (args: {
|
|
205
|
-
/**
|
|
206
|
-
* Specifies the Grid handle instance.
|
|
207
|
-
*/
|
|
208
|
-
grid: GridHandle | null;
|
|
209
|
-
/**
|
|
210
|
-
* Sets the data array from the Grid.
|
|
211
|
-
*/
|
|
212
|
-
data: any[];
|
|
213
|
-
/**
|
|
214
|
-
* Configures the current selection state.
|
|
215
|
-
*/
|
|
216
|
-
selectedState: {
|
|
217
|
-
[id: string]: boolean | number[];
|
|
218
|
-
};
|
|
219
|
-
/**
|
|
220
|
-
* Sets the key property for identifying data items.
|
|
221
|
-
*/
|
|
222
|
-
dataItemKey: string;
|
|
223
|
-
}) => ChartWizardDataRow[];
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @hidden
|
|
227
|
-
*/
|
|
228
|
-
declare abstract class PreventableEvent {
|
|
229
|
-
private prevented;
|
|
230
|
-
/**
|
|
231
|
-
* Prevents the default action for a specific event.
|
|
232
|
-
* This action stops the source component from executing its built-in behavior that follows the event.
|
|
233
|
-
*/
|
|
234
|
-
preventDefault(): void;
|
|
235
|
-
/**
|
|
236
|
-
* Returns `true` if any of the event subscribers prevented the event.
|
|
237
|
-
*
|
|
238
|
-
* @returns - Returns `true` if you prevented the default action.
|
|
239
|
-
* Otherwise, returns `false`.
|
|
240
|
-
*/
|
|
241
|
-
isDefaultPrevented(): boolean;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export { }
|
|
8
|
+
export { ChartWizard } from './ChartWizard.js';
|
|
9
|
+
export { type ChartWizardProps } from './types/ChartWizardProps.js';
|
|
10
|
+
export { type ChartWizardHandle } from './types/ChartWizardHandle.js';
|
|
11
|
+
export { type ExportEvent, type ExportOptions } from './types/export.js';
|
|
12
|
+
export * from './grid-integration/index.js';
|
|
13
|
+
export { getWizardDataFromDataRows, createState } from './utils.js';
|
|
14
|
+
export { type ChartWizardState, type ChartWizardDefaultState, type ChartWizardSeriesType, type ChartWizardSeriesStack, type ChartWizardDataCell, type ChartWizardDataRow, type DataColumn, type DataRow, type ChartWizardArea, type ChartWizardCategoryAxisItem, type ChartWizardValueAxisItem, type ChartWizardSeriesItem, type ChartWizardSeriesItemLabel, type ChartWizardLegend, type ChartWizardTitle } from '@progress/kendo-charts';
|