@progress/kendo-react-chart-wizard 8.3.0-develop.8 → 8.3.0
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.js +1 -1
- package/ChartWizard.mjs +88 -942
- package/components/ChartComponent.js +8 -0
- package/components/ChartComponent.mjs +69 -0
- package/components/FormField.js +8 -0
- package/components/FormField.mjs +16 -0
- package/{common/get-wizard-data-from-data-rows.js → components/FormFieldSet.js} +1 -1
- package/{common/get-wizard-data-from-data-rows.mjs → components/FormFieldSet.mjs} +3 -14
- package/components/SeriesGrid.js +8 -0
- package/components/SeriesGrid.mjs +89 -0
- package/components/SeriesTypeButton.js +8 -0
- package/components/SeriesTypeButton.mjs +30 -0
- package/components/SeriesTypesWrap.js +8 -0
- package/components/SeriesTypesWrap.mjs +14 -0
- package/components/panels/BarChartPanel.js +8 -0
- package/components/panels/BarChartPanel.mjs +71 -0
- package/components/panels/CategoryAxisPanel.js +8 -0
- package/components/panels/CategoryAxisPanel.mjs +315 -0
- package/components/panels/ChartAreaPanel.js +8 -0
- package/components/panels/ChartAreaPanel.mjs +200 -0
- package/components/panels/ColumnChartPanel.js +8 -0
- package/components/panels/ColumnChartPanel.mjs +77 -0
- package/components/panels/ConfigurationPanel.js +8 -0
- package/components/panels/ConfigurationPanel.mjs +102 -0
- package/components/panels/LegendPanel.js +8 -0
- package/components/panels/LegendPanel.mjs +190 -0
- package/components/panels/LineChartPanel.js +8 -0
- package/components/panels/LineChartPanel.mjs +74 -0
- package/components/panels/PieChartPanel.js +8 -0
- package/components/panels/PieChartPanel.mjs +47 -0
- package/components/panels/ScatterChartPanel.js +8 -0
- package/components/panels/ScatterChartPanel.mjs +47 -0
- package/components/panels/SeriesPanel.js +8 -0
- package/components/panels/SeriesPanel.mjs +110 -0
- package/components/panels/TitlePanel.js +8 -0
- package/components/panels/TitlePanel.mjs +172 -0
- package/components/panels/ValueAxisPanel.js +8 -0
- package/components/panels/ValueAxisPanel.mjs +332 -0
- package/dist/cdn/js/kendo-react-chart-wizard.js +1 -1
- package/grid-integration/get-wizard-data-from-grid-selection.js +1 -1
- package/grid-integration/get-wizard-data-from-grid-selection.mjs +4 -4
- package/index.d.mts +15 -194
- package/index.d.ts +15 -194
- package/index.js +1 -1
- package/index.mjs +8 -18
- package/messages.js +1 -1
- package/messages.mjs +109 -215
- package/package.json +15 -15
- package/types/export.js +8 -0
- package/types/export.mjs +39 -0
- package/utils.js +8 -0
- package/utils.mjs +81 -0
- package/SeriesGrid.js +0 -8
- package/SeriesGrid.mjs +0 -85
- package/chart-wizard-state.js +0 -8
- package/chart-wizard-state.mjs +0 -360
- package/export.js +0 -8
- package/export.mjs +0 -70
- /package/{SeriesGridCells.js → components/SeriesGridCells.js} +0 -0
- /package/{SeriesGridCells.mjs → components/SeriesGridCells.mjs} +0 -0
package/messages.mjs
CHANGED
|
@@ -6,220 +6,114 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[a]: "Export",
|
|
12
|
-
[r]: "PDF File",
|
|
13
|
-
[o]: "SVG File",
|
|
14
|
-
[e]: "PNG File",
|
|
15
|
-
[i]: "Chart",
|
|
16
|
-
[c]: "Data",
|
|
17
|
-
[s]: "Format",
|
|
18
|
-
[l]: "Bar Chart",
|
|
19
|
-
[n]: "Bar",
|
|
20
|
-
[h]: "Stacked Bar",
|
|
21
|
-
[d]: "100% Stacked Bar",
|
|
22
|
-
[m]: "Pie Chart",
|
|
23
|
-
[f]: "Pie",
|
|
24
|
-
[x]: "Column Chart",
|
|
25
|
-
[z]: "Column",
|
|
26
|
-
[A]: "Stacked Column",
|
|
27
|
-
[u]: "100% Stacked Column",
|
|
28
|
-
[W]: "Line Chart",
|
|
29
|
-
[g]: "Line",
|
|
30
|
-
[C]: "Stacked Line",
|
|
31
|
-
[b]: "100% Stacked Line",
|
|
32
|
-
[p]: "Scatter Chart",
|
|
33
|
-
[T]: "Scatter",
|
|
34
|
-
[L]: "Configuration",
|
|
35
|
-
[S]: "Category Axis",
|
|
36
|
-
[y]: "X Axis",
|
|
37
|
-
[P]: "Value Axis",
|
|
38
|
-
[F]: "Series",
|
|
39
|
-
[V]: "Add",
|
|
40
|
-
[v]: "Chart Area",
|
|
41
|
-
[k]: "Margins",
|
|
42
|
-
[B]: "Auto",
|
|
43
|
-
[R]: "Left",
|
|
44
|
-
[w]: "Right",
|
|
45
|
-
[M]: "Top",
|
|
46
|
-
[G]: "Bottom",
|
|
47
|
-
[D]: "Background",
|
|
48
|
-
[N]: "Color",
|
|
49
|
-
[X]: "Title",
|
|
50
|
-
[O]: "Apply to",
|
|
51
|
-
[Y]: "Chart Title",
|
|
52
|
-
[E]: "Chart Subtitle",
|
|
53
|
-
[j]: "Title",
|
|
54
|
-
[q]: "Font",
|
|
55
|
-
[H]: "(inherited font)",
|
|
56
|
-
[I]: "Size",
|
|
57
|
-
[J]: "px",
|
|
58
|
-
[K]: "Color",
|
|
59
|
-
[Q]: "Series",
|
|
60
|
-
[U]: "Apply to",
|
|
61
|
-
[Z]: "All Series",
|
|
62
|
-
[_]: "Color",
|
|
63
|
-
[$]: "Show Labels",
|
|
64
|
-
[tt]: "Legend",
|
|
65
|
-
[at]: "Show Legend",
|
|
66
|
-
[rt]: "Font",
|
|
67
|
-
[ot]: "(inherited font)",
|
|
68
|
-
[et]: "Size",
|
|
69
|
-
[it]: "px",
|
|
70
|
-
[ct]: "Color",
|
|
71
|
-
[st]: "Position",
|
|
72
|
-
[lt]: "Top",
|
|
73
|
-
[nt]: "Bottom",
|
|
74
|
-
[ht]: "Left",
|
|
75
|
-
[dt]: "Right",
|
|
76
|
-
[mt]: "Category Axis",
|
|
77
|
-
[ft]: "X Axis",
|
|
78
|
-
[xt]: "Title",
|
|
79
|
-
[zt]: "Axis Title",
|
|
80
|
-
[At]: "Font",
|
|
81
|
-
[ut]: "(inherited font)",
|
|
82
|
-
[Wt]: "Size",
|
|
83
|
-
[gt]: "px",
|
|
84
|
-
[Ct]: "Color",
|
|
85
|
-
[bt]: "Labels",
|
|
86
|
-
[pt]: "Font",
|
|
87
|
-
[Tt]: "(inherited font)",
|
|
88
|
-
[Lt]: "Size",
|
|
89
|
-
[St]: "px",
|
|
90
|
-
[yt]: "Color",
|
|
91
|
-
[Pt]: "Rotation",
|
|
92
|
-
[Ft]: "Auto",
|
|
93
|
-
[Vt]: "Reverse Order",
|
|
94
|
-
[vt]: "Value Axis",
|
|
95
|
-
[kt]: "Y Axis",
|
|
96
|
-
[Bt]: "Title",
|
|
97
|
-
[Rt]: "Axis Title",
|
|
98
|
-
[wt]: "Font",
|
|
99
|
-
[Mt]: "(inherited font)",
|
|
100
|
-
[Gt]: "Size",
|
|
101
|
-
[Dt]: "px",
|
|
102
|
-
[Nt]: "Color",
|
|
103
|
-
[Xt]: "Labels",
|
|
104
|
-
[Ot]: "Label Format",
|
|
105
|
-
[Yt]: "Text",
|
|
106
|
-
[Et]: "Number",
|
|
107
|
-
[jt]: "Currency",
|
|
108
|
-
[qt]: "Percent",
|
|
109
|
-
[Ht]: "Font",
|
|
110
|
-
[It]: "(inherited font)",
|
|
111
|
-
[Jt]: "Size",
|
|
112
|
-
[Kt]: "px",
|
|
113
|
-
[Qt]: "Color",
|
|
114
|
-
[Ut]: "Rotation",
|
|
115
|
-
[Zt]: "Auto"
|
|
116
|
-
};
|
|
9
|
+
import { ChartWizardCommon as t } from "@progress/kendo-charts";
|
|
10
|
+
const r = t.messages, o = "chartWizard.window.title", e = "chartWizard.export.button", i = "chartWizard.exportPDF.button", c = "chartWizard.exportSVG.button", s = "chartWizard.exportPNG.button", l = "chartWizard.tab.chart", n = "chartWizard.tab.data", h = "chartWizard.tab.format", d = "chartWizard.chart.barChart.expandText", m = "chartWizard.chart.barChart.bar", f = "chartWizard.chart.barChart.stackedBar", x = "chartWizard.chart.barChart.100%stackedBar", z = "chartWizard.chart.pieChart.expandText", A = "chartWizard.chart.pieChart.pie", W = "chartWizard.chart.columnChart.expandText", g = "chartWizard.chart.columnChart.column", u = "chartWizard.chart.columnChart.stackedColumn", C = "chartWizard.chart.columnChart.100%stackedColumn", b = "chartWizard.chart.lineChart.expandText", p = "chartWizard.chart.lineChart.line", T = "chartWizard.chart.lineChart.stackedLine", L = "chartWizard.chart.lineChart.100%stackedLine", y = "chartWizard.chart.scatterChart.expandText", P = "chartWizard.chart.scatterChart.scatter", S = "chartWizard.data.configuration.expandText", F = "chartWizard.data.configuration.categoryAxis", v = "chartWizard.data.configuration.xAxis", V = "chartWizard.data.configuration.valueAxis", k = "chartWizard.data.configuration.series.title", B = "chartWizard.data.configuration.series.add", w = "chartWizard.format.chartArea.expandText", R = "chartWizard.format.chartArea.margins", M = "chartWizard.format.chartArea.margins.auto", G = "chartWizard.format.chartArea.margins.left", D = "chartWizard.format.chartArea.margins.right", N = "chartWizard.format.chartArea.margins.top", O = "chartWizard.format.chartArea.margins.bottom", X = "chartWizard.format.chartArea.background", Y = "chartWizard.format.chartArea.background.color", j = "chartWizard.format.title.expandText", q = "chartWizard.format.title.applyTo", E = "chartWizard.format.title.chartTitle", H = "chartWizard.format.title.chartSubtitle", I = "chartWizard.format.title.label", J = "chartWizard.format.title.font", K = "chartWizard.format.title.fontPlaceholder", Q = "chartWizard.format.title.size", U = "chartWizard.format.title.sizePlaceholder", Z = "chartWizard.format.title.color", _ = "chartWizard.format.series.expandText", $ = "chartWizard.format.series.applyTo", tt = "chartWizard.format.series.allSeries", at = "chartWizard.format.series.color", rt = "chartWizard.format.series.showLabels", ot = "chartWizard.format.legend.expandText", et = "chartWizard.format.legend.showLegend", it = "chartWizard.format.legend.font", ct = "chartWizard.format.legend.fontPlaceholder", st = "chartWizard.format.legend.size", lt = "chartWizard.format.legend.sizePlaceholder", nt = "chartWizard.format.legend.color", ht = "chartWizard.format.legend.position", dt = "chartWizard.format.legend.position.top", mt = "chartWizard.format.legend.position.bottom", ft = "chartWizard.format.legend.position.left", xt = "chartWizard.format.legend.position.right", zt = "chartWizard.format.categoryAxis.expandText", At = "chartWizard.format.xAxis.expandText", Wt = "chartWizard.format.categoryAxis.title.expandText", gt = "chartWizard.format.categoryAxis.title.placeholder", ut = "chartWizard.format.categoryAxis.title.font", Ct = "chartWizard.format.categoryAxis.title.fontPlaceholder", bt = "chartWizard.format.categoryAxis.title.size", pt = "chartWizard.format.categoryAxis.title.sizePlaceholder", Tt = "chartWizard.format.categoryAxis.title.color", Lt = "chartWizard.format.categoryAxis.labels.text", yt = "chartWizard.format.categoryAxis.labels.font", Pt = "chartWizard.format.categoryAxis.labels.fontPlaceholder", St = "chartWizard.format.categoryAxis.labels.size", Ft = "chartWizard.format.categoryAxis.labels.sizePlaceholder", vt = "chartWizard.format.categoryAxis.labels.color", Vt = "chartWizard.format.categoryAxis.labels.rotation.text", kt = "chartWizard.format.categoryAxis.labels.rotation.auto", Bt = "chartWizard.format.categoryAxis.labels.reverseOrder", wt = "chartWizard.format.valueAxis.expandText", Rt = "chartWizard.format.yAxis.expandText", Mt = "chartWizard.format.valueAxis.title.text", Gt = "chartWizard.format.valueAxis.title.placeholder", Dt = "chartWizard.format.valueAxis.title.font", Nt = "chartWizard.format.valueAxis.title.fontPlaceholder", Ot = "chartWizard.format.valueAxis.title.size", Xt = "chartWizard.format.valueAxis.title.sizePlaceholder", Yt = "chartWizard.format.valueAxis.title.color", jt = "chartWizard.format.valueAxis.labels.text", qt = "chartWizard.format.valueAxis.labelFormat", Et = "chartWizard.format.valueAxis.labelFormat.text", Ht = "chartWizard.format.valueAxis.labelFormat.number", It = "chartWizard.format.valueAxis.labelFormat.currency", Jt = "chartWizard.format.valueAxis.labelFormat.percent", Kt = "chartWizard.format.valueAxis.labels.font", Qt = "chartWizard.format.valueAxis.labels.fontPlaceholder", Ut = "chartWizard.format.valueAxis.labels.size", Zt = "chartWizard.format.valueAxis.labels.sizePlaceholder", _t = "chartWizard.format.valueAxis.labels.color", $t = "chartWizard.format.valueAxis.labels.rotation.text", ta = "chartWizard.format.valueAxis.labels.rotation.auto";
|
|
117
11
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
12
|
+
d as barChart,
|
|
13
|
+
x as barChart100StackedBar,
|
|
14
|
+
m as barChartBar,
|
|
15
|
+
f as barChartStackedBar,
|
|
16
|
+
W as columnChart,
|
|
17
|
+
C as columnChart100StackedColumn,
|
|
18
|
+
g as columnChartColumn,
|
|
19
|
+
u as columnChartStackedColumn,
|
|
20
|
+
S as configuration,
|
|
21
|
+
F as configurationCategoryAxis,
|
|
22
|
+
k as configurationSeries,
|
|
23
|
+
B as configurationSeriesAdd,
|
|
24
|
+
V as configurationValueAxis,
|
|
25
|
+
v as configurationXAxis,
|
|
26
|
+
e as exportButton,
|
|
27
|
+
i as exportPDFButton,
|
|
28
|
+
s as exportPNGButton,
|
|
29
|
+
c as exportSVGButton,
|
|
30
|
+
zt as formatCategoryAxis,
|
|
31
|
+
Lt as formatCategoryAxisLabels,
|
|
32
|
+
vt as formatCategoryAxisLabelsColor,
|
|
33
|
+
yt as formatCategoryAxisLabelsFont,
|
|
34
|
+
Pt as formatCategoryAxisLabelsFontPlaceholder,
|
|
35
|
+
Bt as formatCategoryAxisLabelsReverseOrder,
|
|
36
|
+
Vt as formatCategoryAxisLabelsRotation,
|
|
37
|
+
kt as formatCategoryAxisLabelsRotationAuto,
|
|
38
|
+
St as formatCategoryAxisLabelsSize,
|
|
39
|
+
Ft as formatCategoryAxisLabelsSizePlaceholder,
|
|
40
|
+
Wt as formatCategoryAxisTitle,
|
|
41
|
+
Tt as formatCategoryAxisTitleColor,
|
|
42
|
+
ut as formatCategoryAxisTitleFont,
|
|
43
|
+
Ct as formatCategoryAxisTitleFontPlaceholder,
|
|
44
|
+
gt as formatCategoryAxisTitlePlaceholder,
|
|
45
|
+
bt as formatCategoryAxisTitleSize,
|
|
46
|
+
pt as formatCategoryAxisTitleSizePlaceholder,
|
|
47
|
+
w as formatChartArea,
|
|
48
|
+
X as formatChartAreaBackground,
|
|
49
|
+
Y as formatChartAreaBackgroundColor,
|
|
50
|
+
R as formatChartAreaMargins,
|
|
51
|
+
M as formatChartAreaMarginsAuto,
|
|
52
|
+
O as formatChartAreaMarginsBottom,
|
|
53
|
+
G as formatChartAreaMarginsLeft,
|
|
54
|
+
D as formatChartAreaMarginsRight,
|
|
55
|
+
N as formatChartAreaMarginsTop,
|
|
56
|
+
ot as formatLegend,
|
|
57
|
+
nt as formatLegendColor,
|
|
58
|
+
it as formatLegendFont,
|
|
59
|
+
ct as formatLegendFontPlaceholder,
|
|
60
|
+
ht as formatLegendPosition,
|
|
61
|
+
mt as formatLegendPositionBottom,
|
|
62
|
+
ft as formatLegendPositionLeft,
|
|
63
|
+
xt as formatLegendPositionRight,
|
|
64
|
+
dt as formatLegendPositionTop,
|
|
65
|
+
et as formatLegendShowLegend,
|
|
66
|
+
st as formatLegendSize,
|
|
67
|
+
lt as formatLegendSizePlaceholder,
|
|
68
|
+
_ as formatSeries,
|
|
69
|
+
tt as formatSeriesAllSeries,
|
|
70
|
+
$ as formatSeriesApplyTo,
|
|
71
|
+
at as formatSeriesColor,
|
|
72
|
+
rt as formatSeriesShowLabels,
|
|
73
|
+
j as formatTitle,
|
|
74
|
+
q as formatTitleApplyTo,
|
|
75
|
+
H as formatTitleChartSubtitle,
|
|
76
|
+
E as formatTitleChartTitle,
|
|
77
|
+
Z as formatTitleColor,
|
|
78
|
+
J as formatTitleFont,
|
|
79
|
+
K as formatTitleFontPlaceholder,
|
|
80
|
+
I as formatTitleLabel,
|
|
81
|
+
Q as formatTitleSize,
|
|
82
|
+
U as formatTitleSizePlaceholder,
|
|
83
|
+
wt as formatValueAxis,
|
|
84
|
+
jt as formatValueAxisLabels,
|
|
85
|
+
_t as formatValueAxisLabelsColor,
|
|
86
|
+
Kt as formatValueAxisLabelsFont,
|
|
87
|
+
Qt as formatValueAxisLabelsFontPlaceholder,
|
|
88
|
+
qt as formatValueAxisLabelsFormat,
|
|
89
|
+
It as formatValueAxisLabelsFormatCurrency,
|
|
90
|
+
Ht as formatValueAxisLabelsFormatNumber,
|
|
91
|
+
Jt as formatValueAxisLabelsFormatPercent,
|
|
92
|
+
Et as formatValueAxisLabelsFormatText,
|
|
93
|
+
$t as formatValueAxisLabelsRotation,
|
|
94
|
+
ta as formatValueAxisLabelsRotationAuto,
|
|
95
|
+
Ut as formatValueAxisLabelsSize,
|
|
96
|
+
Zt as formatValueAxisLabelsSizePlaceholder,
|
|
97
|
+
Mt as formatValueAxisTitle,
|
|
98
|
+
Yt as formatValueAxisTitleColor,
|
|
99
|
+
Dt as formatValueAxisTitleFont,
|
|
100
|
+
Nt as formatValueAxisTitleFontPlaceholder,
|
|
101
|
+
Gt as formatValueAxisTitlePlaceholder,
|
|
102
|
+
Ot as formatValueAxisTitleSize,
|
|
103
|
+
Xt as formatValueAxisTitleSizePlaceholder,
|
|
104
|
+
At as formatXAxis,
|
|
105
|
+
Rt as formatYAxis,
|
|
106
|
+
b as lineChart,
|
|
107
|
+
L as lineChart100StackedLine,
|
|
108
|
+
p as lineChartLine,
|
|
109
|
+
T as lineChartStackedLine,
|
|
110
|
+
r as messages,
|
|
111
|
+
z as pieChart,
|
|
112
|
+
A as pieChartPie,
|
|
113
|
+
y as scatterChart,
|
|
114
|
+
P as scatterChartScatter,
|
|
115
|
+
l as tabChart,
|
|
116
|
+
n as tabData,
|
|
117
|
+
h as tabFormat,
|
|
118
|
+
o as windowTitle
|
|
225
119
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-chart-wizard",
|
|
3
|
-
"version": "8.3.0
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "React Chart Wizard lets you create a chart using data from a Grid, another data-bound component, or an external source",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -18,25 +18,25 @@
|
|
|
18
18
|
"@progress/kendo-drawing": "^1.20.1",
|
|
19
19
|
"@progress/kendo-file-saver": "^1.0.1",
|
|
20
20
|
"@progress/kendo-licensing": "^1.3.4",
|
|
21
|
-
"@progress/kendo-react-animation": "8.3.0
|
|
22
|
-
"@progress/kendo-react-buttons": "8.3.0
|
|
23
|
-
"@progress/kendo-react-charts": "8.3.0
|
|
24
|
-
"@progress/kendo-react-common": "8.3.0
|
|
25
|
-
"@progress/kendo-react-dialogs": "8.3.0
|
|
26
|
-
"@progress/kendo-react-form": "8.3.0
|
|
27
|
-
"@progress/kendo-react-dropdowns": "8.3.0
|
|
28
|
-
"@progress/kendo-react-grid": "8.3.0
|
|
29
|
-
"@progress/kendo-react-inputs": "8.3.0
|
|
30
|
-
"@progress/kendo-react-intl": "8.3.0
|
|
31
|
-
"@progress/kendo-react-labels": "8.3.0
|
|
32
|
-
"@progress/kendo-react-layout": "8.3.0
|
|
33
|
-
"@progress/kendo-react-popup": "8.3.0
|
|
21
|
+
"@progress/kendo-react-animation": "8.3.0",
|
|
22
|
+
"@progress/kendo-react-buttons": "8.3.0",
|
|
23
|
+
"@progress/kendo-react-charts": "8.3.0",
|
|
24
|
+
"@progress/kendo-react-common": "8.3.0",
|
|
25
|
+
"@progress/kendo-react-dialogs": "8.3.0",
|
|
26
|
+
"@progress/kendo-react-form": "8.3.0",
|
|
27
|
+
"@progress/kendo-react-dropdowns": "8.3.0",
|
|
28
|
+
"@progress/kendo-react-grid": "8.3.0",
|
|
29
|
+
"@progress/kendo-react-inputs": "8.3.0",
|
|
30
|
+
"@progress/kendo-react-intl": "8.3.0",
|
|
31
|
+
"@progress/kendo-react-labels": "8.3.0",
|
|
32
|
+
"@progress/kendo-react-layout": "8.3.0",
|
|
33
|
+
"@progress/kendo-react-popup": "8.3.0",
|
|
34
34
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
35
35
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
36
36
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@progress/kendo-charts": "2.
|
|
39
|
+
"@progress/kendo-charts": "2.5.0",
|
|
40
40
|
"prop-types": "^15.6.0"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
package/types/export.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class s extends e{constructor(r,n){super(),this.chart=r,this.exportOptions=n}}exports.ExportEvent=s;exports.PreventableEvent=e;
|
package/types/export.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
class s {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.prevented = !1;
|
|
12
|
+
}
|
|
13
|
+
/* eslint-disable max-len */
|
|
14
|
+
/**
|
|
15
|
+
* Prevents the default action for a specified event.
|
|
16
|
+
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
17
|
+
*/
|
|
18
|
+
preventDefault() {
|
|
19
|
+
this.prevented = !0;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns `true` if the event was prevented by any of its subscribers.
|
|
23
|
+
*
|
|
24
|
+
* @returns - Returns `true` if the default action was prevented.
|
|
25
|
+
* Otherwise, returns `false`.
|
|
26
|
+
*/
|
|
27
|
+
isDefaultPrevented() {
|
|
28
|
+
return this.prevented;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
class n extends s {
|
|
32
|
+
constructor(t, r) {
|
|
33
|
+
super(), this.chart = t, this.exportOptions = r;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
n as ExportEvent,
|
|
38
|
+
s as PreventableEvent
|
|
39
|
+
};
|
package/utils.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),r=require("@progress/kendo-charts"),i=require("@progress/kendo-react-charts"),c=require("@progress/kendo-drawing"),p=require("@progress/kendo-file-saver");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const u=g(f),h=t=>{t.stopPropagation()},n={fileName:"chart",pdf:{paperSize:"A4",margin:"1cm"},image:{width:800,height:600}},C=(t={})=>({fileName:t.fileName||n.fileName,pdf:{...n.pdf,...t.pdf},image:{...n.image,...t.image}}),x=t=>{const e=i.exportVisual(t.chart),a=t.exportOptions;e&&c.exportPDF(e,a.pdf).then(o=>p.saveAs(o,a.fileName+".pdf"))},S=t=>{const e=i.exportVisual(t.chart),a=t.exportOptions;e&&c.exportSVG(e).then(o=>p.saveAs(o,a.fileName+".svg"))},k=t=>{const e=t.exportOptions,a=i.exportVisual(t.chart,e.image);a&&c.exportImage(a,e.image).then(o=>p.saveAs(o,e.fileName+".png"))},y={value:null,text:""},N=(t,e)=>e.dataItem.style?u.cloneElement(t,t.props,u.createElement("span",{style:e.dataItem.style},t.props.children)):t,v=/^\d+$/,E=t=>{if(t.text==="")return!0;if(t.value===void 0){if(!v.test(t.text))return!1;t.value=t.text+"px"}return s.find(a=>a.value===t.value)||(s.push(t),s.sort((a,o)=>parseInt(a.text,10)-parseInt(o.text,10))),!0},I={fillMode:"outline",popupSettings:{animate:!1}},W={type:"normal"},z={type:"100%"},V=t=>{var l,m;const e=typeof((l=t.series[0])==null?void 0:l.stack)=="object"?(m=t.series[0])==null?void 0:m.stack:!1,a=e===!1,o=e&&e.type==="normal",d=e&&e.type==="100%";return{isStackFalse:a,isStackNormal:o,isStack100:d}},s=r.ChartWizardCommon.fontSizes,b=r.ChartWizardCommon.fontNames,D=r.ChartWizardCommon.createInitialState,F=r.ChartWizardCommon.createState,O=r.ChartWizardCommon.updateState,P=r.ChartWizardCommon.mergeStates,R=r.ChartWizardCommon.isCategorical,w=r.ChartWizardCommon.parseFont,A=r.ChartWizardCommon.ActionTypes,{getWizardDataFromDataRows:j}=r.ChartWizardCommon;exports.ActionTypes=A;exports.createInitialState=D;exports.createState=F;exports.dropdownlistCommonProps=I;exports.ensureValue=E;exports.fontNames=b;exports.fontSizes=s;exports.getWizardDataFromDataRows=j;exports.handleImageExport=k;exports.handlePDFExport=x;exports.handleSVGExport=S;exports.isCategorical=R;exports.itemRender=N;exports.mergeStates=P;exports.nullItem=y;exports.parseFont=w;exports.resolveExportOptions=C;exports.stack100=z;exports.stackNormal=W;exports.stackState=V;exports.stopPropagation=h;exports.updateState=O;
|
package/utils.mjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as l from "react";
|
|
10
|
+
import { ChartWizardCommon as s } from "@progress/kendo-charts";
|
|
11
|
+
import { exportVisual as c } from "@progress/kendo-react-charts";
|
|
12
|
+
import { exportPDF as u, exportSVG as d, exportImage as g } from "@progress/kendo-drawing";
|
|
13
|
+
import { saveAs as i } from "@progress/kendo-file-saver";
|
|
14
|
+
const k = (t) => {
|
|
15
|
+
t.stopPropagation();
|
|
16
|
+
}, n = {
|
|
17
|
+
fileName: "chart",
|
|
18
|
+
pdf: { paperSize: "A4", margin: "1cm" },
|
|
19
|
+
image: { width: 800, height: 600 }
|
|
20
|
+
}, I = (t = {}) => ({
|
|
21
|
+
fileName: t.fileName || n.fileName,
|
|
22
|
+
pdf: {
|
|
23
|
+
...n.pdf,
|
|
24
|
+
...t.pdf
|
|
25
|
+
},
|
|
26
|
+
image: {
|
|
27
|
+
...n.image,
|
|
28
|
+
...t.image
|
|
29
|
+
}
|
|
30
|
+
}), E = (t) => {
|
|
31
|
+
const e = c(t.chart), a = t.exportOptions;
|
|
32
|
+
e && u(e, a.pdf).then((o) => i(o, a.fileName + ".pdf"));
|
|
33
|
+
}, C = (t) => {
|
|
34
|
+
const e = c(t.chart), a = t.exportOptions;
|
|
35
|
+
e && d(e).then((o) => i(o, a.fileName + ".svg"));
|
|
36
|
+
}, V = (t) => {
|
|
37
|
+
const e = t.exportOptions, a = c(t.chart, e.image);
|
|
38
|
+
a && g(a, e.image).then((o) => i(o, e.fileName + ".png"));
|
|
39
|
+
}, v = { value: null, text: "" }, F = (t, e) => e.dataItem.style ? l.cloneElement(t, t.props, /* @__PURE__ */ l.createElement("span", { style: e.dataItem.style }, t.props.children)) : t, h = /^\d+$/, A = (t) => {
|
|
40
|
+
if (t.text === "")
|
|
41
|
+
return !0;
|
|
42
|
+
if (t.value === void 0) {
|
|
43
|
+
if (!h.test(t.text))
|
|
44
|
+
return !1;
|
|
45
|
+
t.value = t.text + "px";
|
|
46
|
+
}
|
|
47
|
+
return r.find((a) => a.value === t.value) || (r.push(t), r.sort((a, o) => parseInt(a.text, 10) - parseInt(o.text, 10))), !0;
|
|
48
|
+
}, D = {
|
|
49
|
+
fillMode: "outline",
|
|
50
|
+
popupSettings: {
|
|
51
|
+
animate: !1
|
|
52
|
+
}
|
|
53
|
+
}, P = { type: "normal" }, R = { type: "100%" }, w = (t) => {
|
|
54
|
+
var p, m;
|
|
55
|
+
const e = typeof ((p = t.series[0]) == null ? void 0 : p.stack) == "object" ? (m = t.series[0]) == null ? void 0 : m.stack : !1, a = e === !1, o = e && e.type === "normal", f = e && e.type === "100%";
|
|
56
|
+
return { isStackFalse: a, isStackNormal: o, isStack100: f };
|
|
57
|
+
}, r = s.fontSizes, O = s.fontNames, b = s.createInitialState, G = s.createState, T = s.updateState, W = s.mergeStates, j = s.isCategorical, M = s.parseFont, $ = s.ActionTypes, { getWizardDataFromDataRows: q } = s;
|
|
58
|
+
export {
|
|
59
|
+
$ as ActionTypes,
|
|
60
|
+
b as createInitialState,
|
|
61
|
+
G as createState,
|
|
62
|
+
D as dropdownlistCommonProps,
|
|
63
|
+
A as ensureValue,
|
|
64
|
+
O as fontNames,
|
|
65
|
+
r as fontSizes,
|
|
66
|
+
q as getWizardDataFromDataRows,
|
|
67
|
+
V as handleImageExport,
|
|
68
|
+
E as handlePDFExport,
|
|
69
|
+
C as handleSVGExport,
|
|
70
|
+
j as isCategorical,
|
|
71
|
+
F as itemRender,
|
|
72
|
+
W as mergeStates,
|
|
73
|
+
v as nullItem,
|
|
74
|
+
M as parseFont,
|
|
75
|
+
I as resolveExportOptions,
|
|
76
|
+
R as stack100,
|
|
77
|
+
P as stackNormal,
|
|
78
|
+
w as stackState,
|
|
79
|
+
k as stopPropagation,
|
|
80
|
+
T as updateState
|
|
81
|
+
};
|
package/SeriesGrid.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),D=require("@progress/kendo-react-buttons"),o=require("@progress/kendo-react-grid"),I=require("@progress/kendo-react-intl"),x=require("@progress/kendo-svg-icons"),d=require("./SeriesGridCells.js"),s=require("./messages.js"),u="inEdit",b=e=>{const[r,m]=n.useState(null),g=t=>{if(r===t)return;const a=e.data.slice(),i=a.findIndex(c=>c===r),l=a.findIndex(c=>c===t);a.splice(i,1),a.splice(l,0,r||a[0]),e.onChange.call(void 0,a)},C=t=>{m(t)},v=()=>{const t=e.initialData.find(a=>!e.data.find(i=>i.id===a.id));t&&e.onChange.call(void 0,[...e.data,t])},f=(t,a)=>{const i=e.data.map(l=>({...l,[u]:l.id===t.id?a:void 0}));e.onChange.call(void 0,i)},E=()=>{const t=e.data.map(a=>({...a,[u]:void 0}));e.onChange.call(void 0,t)},S=t=>{const a=t.field||"",i=e.data.map(l=>l.id===t.dataItem.id?{...l,[a]:t.value}:l);e.onChange.call(void 0,i)},h=t=>{const a=e.data.filter(i=>i.id!==t);e.onChange.call(void 0,a)};return n.createElement(d.RemoveSeriesContext.Provider,{value:{onRemove:h,count:e.data.length}},n.createElement(d.ReorderContext.Provider,{value:{reorder:g,dragStart:C}},n.createElement(d.SeriesEditContext.Provider,{value:{enterEdit:f,exitEdit:E}},n.createElement(o.Grid,{className:"k-series-grid",style:{width:"100%"},size:"medium",data:e.data,dataItemKey:"id",onItemChange:S,scrollable:"none",editField:u,cells:{headerCell:d.SeriesHeaderCell,data:d.SeriesDataCell,edit:{text:d.SeriesDataEditCell,boolean:d.SeriesDataEditCell,numeric:d.SeriesDataEditCell,date:d.SeriesDataEditCell}}},n.createElement(o.GridToolbar,null,n.createElement(D.Button,{type:"button",className:"k-toolbar-button",fillMode:"flat",onClick:v,disabled:e.data.length===e.initialData.length,svgIcon:x.plusIcon,icon:"plus"},I.useLocalization().toLanguageString(s.configurationSeriesAdd,s.messages[s.configurationSeriesAdd]))),n.createElement(o.GridColumn,{field:"reorder",width:"40px",editable:!1}),n.createElement(o.GridColumn,{field:"name",title:"Name"}),n.createElement(o.GridColumn,{field:"delete",width:"40px",editable:!1})))))};exports.SeriesGrid=b;
|
package/SeriesGrid.mjs
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
7
|
-
*/
|
|
8
|
-
"use client";
|
|
9
|
-
import n from "react";
|
|
10
|
-
import { Button as D } from "@progress/kendo-react-buttons";
|
|
11
|
-
import { Grid as I, GridToolbar as S, GridColumn as c } from "@progress/kendo-react-grid";
|
|
12
|
-
import { useLocalization as b } from "@progress/kendo-react-intl";
|
|
13
|
-
import { plusIcon as w } from "@progress/kendo-svg-icons";
|
|
14
|
-
import { RemoveSeriesContext as A, ReorderContext as G, SeriesEditContext as R, SeriesHeaderCell as k, SeriesDataCell as y, SeriesDataEditCell as l } from "./SeriesGridCells.mjs";
|
|
15
|
-
import { configurationSeriesAdd as s, messages as L } from "./messages.mjs";
|
|
16
|
-
const m = "inEdit", H = (e) => {
|
|
17
|
-
const [o, f] = n.useState(null), u = (t) => {
|
|
18
|
-
if (o === t)
|
|
19
|
-
return;
|
|
20
|
-
const a = e.data.slice(), i = a.findIndex((r) => r === o), d = a.findIndex((r) => r === t);
|
|
21
|
-
a.splice(i, 1), a.splice(d, 0, o || a[0]), e.onChange.call(void 0, a);
|
|
22
|
-
}, g = (t) => {
|
|
23
|
-
f(t);
|
|
24
|
-
}, v = () => {
|
|
25
|
-
const t = e.initialData.find((a) => !e.data.find((i) => i.id === a.id));
|
|
26
|
-
t && e.onChange.call(void 0, [...e.data, t]);
|
|
27
|
-
}, C = (t, a) => {
|
|
28
|
-
const i = e.data.map((d) => ({
|
|
29
|
-
...d,
|
|
30
|
-
[m]: d.id === t.id ? a : void 0
|
|
31
|
-
}));
|
|
32
|
-
e.onChange.call(void 0, i);
|
|
33
|
-
}, E = () => {
|
|
34
|
-
const t = e.data.map((a) => ({ ...a, [m]: void 0 }));
|
|
35
|
-
e.onChange.call(void 0, t);
|
|
36
|
-
}, h = (t) => {
|
|
37
|
-
const a = t.field || "", i = e.data.map((d) => d.id === t.dataItem.id ? { ...d, [a]: t.value } : d);
|
|
38
|
-
e.onChange.call(void 0, i);
|
|
39
|
-
}, x = (t) => {
|
|
40
|
-
const a = e.data.filter((i) => i.id !== t);
|
|
41
|
-
e.onChange.call(void 0, a);
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ n.createElement(A.Provider, { value: { onRemove: x, count: e.data.length } }, /* @__PURE__ */ n.createElement(G.Provider, { value: { reorder: u, dragStart: g } }, /* @__PURE__ */ n.createElement(R.Provider, { value: { enterEdit: C, exitEdit: E } }, /* @__PURE__ */ n.createElement(
|
|
44
|
-
I,
|
|
45
|
-
{
|
|
46
|
-
className: "k-series-grid",
|
|
47
|
-
style: { width: "100%" },
|
|
48
|
-
size: "medium",
|
|
49
|
-
data: e.data,
|
|
50
|
-
dataItemKey: "id",
|
|
51
|
-
onItemChange: h,
|
|
52
|
-
scrollable: "none",
|
|
53
|
-
editField: m,
|
|
54
|
-
cells: {
|
|
55
|
-
headerCell: k,
|
|
56
|
-
data: y,
|
|
57
|
-
edit: {
|
|
58
|
-
text: l,
|
|
59
|
-
boolean: l,
|
|
60
|
-
numeric: l,
|
|
61
|
-
date: l
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
/* @__PURE__ */ n.createElement(S, null, /* @__PURE__ */ n.createElement(
|
|
66
|
-
D,
|
|
67
|
-
{
|
|
68
|
-
type: "button",
|
|
69
|
-
className: "k-toolbar-button",
|
|
70
|
-
fillMode: "flat",
|
|
71
|
-
onClick: v,
|
|
72
|
-
disabled: e.data.length === e.initialData.length,
|
|
73
|
-
svgIcon: w,
|
|
74
|
-
icon: "plus"
|
|
75
|
-
},
|
|
76
|
-
b().toLanguageString(s, L[s])
|
|
77
|
-
)),
|
|
78
|
-
/* @__PURE__ */ n.createElement(c, { field: "reorder", width: "40px", editable: !1 }),
|
|
79
|
-
/* @__PURE__ */ n.createElement(c, { field: "name", title: "Name" }),
|
|
80
|
-
/* @__PURE__ */ n.createElement(c, { field: "delete", width: "40px", editable: !1 })
|
|
81
|
-
))));
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
H as SeriesGrid
|
|
85
|
-
};
|