@progress/kendo-react-chart-wizard 8.3.0-develop.15 → 8.3.0-develop.16
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 +74 -1711
- 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/components/FormFieldSet.js +8 -0
- package/components/FormFieldSet.mjs +13 -0
- package/components/SeriesGrid.js +8 -0
- package/{SeriesGrid.mjs → components/SeriesGrid.mjs} +5 -2
- package/components/SeriesTypeButton.js +8 -0
- package/components/SeriesTypeButton.mjs +30 -0
- package/{common/get-wizard-data-from-data-rows.js → components/SeriesTypesWrap.js} +1 -1
- package/{common/get-wizard-data-from-data-rows.mjs → components/SeriesTypesWrap.mjs} +4 -3
- 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/index.d.mts +3 -6
- package/index.d.ts +3 -6
- package/index.js +1 -1
- package/index.mjs +6 -6
- package/package.json +14 -14
- 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/chart-wizard-state.js +0 -8
- package/chart-wizard-state.mjs +0 -21
- 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
|
@@ -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 e=require("react"),c=require("@progress/kendo-react-layout"),x=require("@progress/kendo-react-form"),d=require("../FormFieldSet.js"),g=require("../FormField.js"),s=require("@progress/kendo-react-inputs"),o=require("../../utils.js"),a=require("../../messages.js"),k=require("@progress/kendo-react-intl"),b=require("@progress/kendo-react-animation"),E=l=>{var u;const t=k.useLocalization(),r=l.state,[m,h]=e.useState(!1),C=e.useCallback(n=>{h(!n.expanded)},[]),A=e.useCallback(n=>{l.onStateChange(o.updateState(r,o.ActionTypes.areaMarginLeft,n.target.value))},[r]),f=e.useCallback(n=>{l.onStateChange(o.updateState(r,o.ActionTypes.areaMarginRight,n.target.value))},[r]),M=e.useCallback(n=>{l.onStateChange(o.updateState(r,o.ActionTypes.areaMarginTop,n.target.value))},[r]),p=e.useCallback(n=>{l.onStateChange(o.updateState(r,o.ActionTypes.areaMarginBottom,n.target.value))},[r]),i=r.area.margin,S=e.useCallback(n=>{l.onStateChange(o.updateState(r,o.ActionTypes.areaBackground,n.value))},[r]);return e.createElement(c.ExpansionPanel,{style:{maxWidth:"576px"},title:t.toLanguageString(a.formatChartArea,a.messages.formatChartArea),expanded:m,tabIndex:0,onAction:C},e.createElement(b.Reveal,null,m&&e.createElement(c.ExpansionPanelContent,null,e.createElement(x.FormElement,{onKeyDown:o.stopPropagation},e.createElement(d.FormFieldSet,{legend:t.toLanguageString(a.formatChartAreaMargins,a.messages.formatChartAreaMargins)},e.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},e.createElement(g.FormField,{labelText:t.toLanguageString(a.formatChartAreaMarginsLeft,a.messages.formatChartAreaMarginsLeft),editorId:"left"},e.createElement(s.NumericTextBox,{id:"left",value:i.left!==void 0?i.left:null,onChange:A,placeholder:t.toLanguageString(a.formatChartAreaMarginsAuto,a.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),e.createElement(g.FormField,{labelText:t.toLanguageString(a.formatChartAreaMarginsRight,a.messages.formatChartAreaMarginsRight),editorId:"right"},e.createElement(s.NumericTextBox,{id:"right",value:i.right!==void 0?i.right:null,onChange:f,placeholder:t.toLanguageString(a.formatChartAreaMarginsAuto,a.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),e.createElement(g.FormField,{labelText:t.toLanguageString(a.formatChartAreaMarginsTop,a.messages.formatChartAreaMarginsTop),editorId:"top"},e.createElement(s.NumericTextBox,{id:"top",value:i.top!==void 0?i.top:null,onChange:M,placeholder:t.toLanguageString(a.formatChartAreaMarginsAuto,a.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),e.createElement(g.FormField,{labelText:t.toLanguageString(a.formatChartAreaMarginsBottom,a.messages.formatChartAreaMarginsBottom),editorId:"bottom"},e.createElement(s.NumericTextBox,{id:"bottom",value:i.bottom!==void 0?i.bottom:null,onChange:p,placeholder:t.toLanguageString(a.formatChartAreaMarginsAuto,a.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})))),e.createElement(d.FormFieldSet,{legend:t.toLanguageString(a.formatChartAreaBackground,a.messages.formatChartAreaBackground)},e.createElement(g.FormField,{labelText:t.toLanguageString(a.formatChartAreaBackgroundColor,a.messages.formatChartAreaBackgroundColor),editorId:"background"},e.createElement(s.ColorPicker,{id:"background",value:((u=r.area)==null?void 0:u.background)||"",onChange:S,view:"gradient",fillMode:"outline"})))))))};exports.ChartAreaPanel=E;
|
|
@@ -0,0 +1,200 @@
|
|
|
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 a from "react";
|
|
10
|
+
import { ExpansionPanel as k, ExpansionPanelContent as S } from "@progress/kendo-react-layout";
|
|
11
|
+
import { FormElement as b } from "@progress/kendo-react-form";
|
|
12
|
+
import { FormFieldSet as C } from "../FormFieldSet.mjs";
|
|
13
|
+
import { FormField as g } from "../FormField.mjs";
|
|
14
|
+
import { NumericTextBox as u, ColorPicker as v } from "@progress/kendo-react-inputs";
|
|
15
|
+
import { updateState as i, ActionTypes as m, stopPropagation as L } from "../../utils.mjs";
|
|
16
|
+
import { formatChartArea as B, messages as r, formatChartAreaMargins as T, formatChartAreaMarginsLeft as I, formatChartAreaMarginsAuto as c, formatChartAreaMarginsRight as R, formatChartAreaMarginsTop as F, formatChartAreaMarginsBottom as P, formatChartAreaBackground as y, formatChartAreaBackgroundColor as w } from "../../messages.mjs";
|
|
17
|
+
import { useLocalization as z } from "@progress/kendo-react-intl";
|
|
18
|
+
import { Reveal as N } from "@progress/kendo-react-animation";
|
|
19
|
+
const Q = (l) => {
|
|
20
|
+
var h;
|
|
21
|
+
const e = z(), t = l.state, [d, s] = a.useState(!1), f = a.useCallback((o) => {
|
|
22
|
+
s(!o.expanded);
|
|
23
|
+
}, []), A = a.useCallback(
|
|
24
|
+
(o) => {
|
|
25
|
+
l.onStateChange(i(t, m.areaMarginLeft, o.target.value));
|
|
26
|
+
},
|
|
27
|
+
[t]
|
|
28
|
+
), p = a.useCallback(
|
|
29
|
+
(o) => {
|
|
30
|
+
l.onStateChange(i(t, m.areaMarginRight, o.target.value));
|
|
31
|
+
},
|
|
32
|
+
[t]
|
|
33
|
+
), M = a.useCallback(
|
|
34
|
+
(o) => {
|
|
35
|
+
l.onStateChange(i(t, m.areaMarginTop, o.target.value));
|
|
36
|
+
},
|
|
37
|
+
[t]
|
|
38
|
+
), x = a.useCallback(
|
|
39
|
+
(o) => {
|
|
40
|
+
l.onStateChange(i(t, m.areaMarginBottom, o.target.value));
|
|
41
|
+
},
|
|
42
|
+
[t]
|
|
43
|
+
), n = t.area.margin, E = a.useCallback(
|
|
44
|
+
(o) => {
|
|
45
|
+
l.onStateChange(i(t, m.areaBackground, o.value));
|
|
46
|
+
},
|
|
47
|
+
[t]
|
|
48
|
+
);
|
|
49
|
+
return /* @__PURE__ */ a.createElement(
|
|
50
|
+
k,
|
|
51
|
+
{
|
|
52
|
+
style: { maxWidth: "576px" },
|
|
53
|
+
title: e.toLanguageString(B, r.formatChartArea),
|
|
54
|
+
expanded: d,
|
|
55
|
+
tabIndex: 0,
|
|
56
|
+
onAction: f
|
|
57
|
+
},
|
|
58
|
+
/* @__PURE__ */ a.createElement(N, null, d && /* @__PURE__ */ a.createElement(S, null, /* @__PURE__ */ a.createElement(b, { onKeyDown: L }, /* @__PURE__ */ a.createElement(
|
|
59
|
+
C,
|
|
60
|
+
{
|
|
61
|
+
legend: e.toLanguageString(
|
|
62
|
+
T,
|
|
63
|
+
r.formatChartAreaMargins
|
|
64
|
+
)
|
|
65
|
+
},
|
|
66
|
+
/* @__PURE__ */ a.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ a.createElement(
|
|
67
|
+
g,
|
|
68
|
+
{
|
|
69
|
+
labelText: e.toLanguageString(
|
|
70
|
+
I,
|
|
71
|
+
r.formatChartAreaMarginsLeft
|
|
72
|
+
),
|
|
73
|
+
editorId: "left"
|
|
74
|
+
},
|
|
75
|
+
/* @__PURE__ */ a.createElement(
|
|
76
|
+
u,
|
|
77
|
+
{
|
|
78
|
+
id: "left",
|
|
79
|
+
value: n.left !== void 0 ? n.left : null,
|
|
80
|
+
onChange: A,
|
|
81
|
+
placeholder: e.toLanguageString(
|
|
82
|
+
c,
|
|
83
|
+
r.formatChartAreaMarginsAuto
|
|
84
|
+
),
|
|
85
|
+
min: 0,
|
|
86
|
+
max: 1e3,
|
|
87
|
+
step: 1,
|
|
88
|
+
fillMode: "outline"
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
), /* @__PURE__ */ a.createElement(
|
|
92
|
+
g,
|
|
93
|
+
{
|
|
94
|
+
labelText: e.toLanguageString(
|
|
95
|
+
R,
|
|
96
|
+
r.formatChartAreaMarginsRight
|
|
97
|
+
),
|
|
98
|
+
editorId: "right"
|
|
99
|
+
},
|
|
100
|
+
/* @__PURE__ */ a.createElement(
|
|
101
|
+
u,
|
|
102
|
+
{
|
|
103
|
+
id: "right",
|
|
104
|
+
value: n.right !== void 0 ? n.right : null,
|
|
105
|
+
onChange: p,
|
|
106
|
+
placeholder: e.toLanguageString(
|
|
107
|
+
c,
|
|
108
|
+
r.formatChartAreaMarginsAuto
|
|
109
|
+
),
|
|
110
|
+
min: 0,
|
|
111
|
+
max: 1e3,
|
|
112
|
+
step: 1,
|
|
113
|
+
fillMode: "outline"
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
), /* @__PURE__ */ a.createElement(
|
|
117
|
+
g,
|
|
118
|
+
{
|
|
119
|
+
labelText: e.toLanguageString(
|
|
120
|
+
F,
|
|
121
|
+
r.formatChartAreaMarginsTop
|
|
122
|
+
),
|
|
123
|
+
editorId: "top"
|
|
124
|
+
},
|
|
125
|
+
/* @__PURE__ */ a.createElement(
|
|
126
|
+
u,
|
|
127
|
+
{
|
|
128
|
+
id: "top",
|
|
129
|
+
value: n.top !== void 0 ? n.top : null,
|
|
130
|
+
onChange: M,
|
|
131
|
+
placeholder: e.toLanguageString(
|
|
132
|
+
c,
|
|
133
|
+
r.formatChartAreaMarginsAuto
|
|
134
|
+
),
|
|
135
|
+
min: 0,
|
|
136
|
+
max: 1e3,
|
|
137
|
+
step: 1,
|
|
138
|
+
fillMode: "outline"
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
), /* @__PURE__ */ a.createElement(
|
|
142
|
+
g,
|
|
143
|
+
{
|
|
144
|
+
labelText: e.toLanguageString(
|
|
145
|
+
P,
|
|
146
|
+
r.formatChartAreaMarginsBottom
|
|
147
|
+
),
|
|
148
|
+
editorId: "bottom"
|
|
149
|
+
},
|
|
150
|
+
/* @__PURE__ */ a.createElement(
|
|
151
|
+
u,
|
|
152
|
+
{
|
|
153
|
+
id: "bottom",
|
|
154
|
+
value: n.bottom !== void 0 ? n.bottom : null,
|
|
155
|
+
onChange: x,
|
|
156
|
+
placeholder: e.toLanguageString(
|
|
157
|
+
c,
|
|
158
|
+
r.formatChartAreaMarginsAuto
|
|
159
|
+
),
|
|
160
|
+
min: 0,
|
|
161
|
+
max: 1e3,
|
|
162
|
+
step: 1,
|
|
163
|
+
fillMode: "outline"
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
))
|
|
167
|
+
), /* @__PURE__ */ a.createElement(
|
|
168
|
+
C,
|
|
169
|
+
{
|
|
170
|
+
legend: e.toLanguageString(
|
|
171
|
+
y,
|
|
172
|
+
r.formatChartAreaBackground
|
|
173
|
+
)
|
|
174
|
+
},
|
|
175
|
+
/* @__PURE__ */ a.createElement(
|
|
176
|
+
g,
|
|
177
|
+
{
|
|
178
|
+
labelText: e.toLanguageString(
|
|
179
|
+
w,
|
|
180
|
+
r.formatChartAreaBackgroundColor
|
|
181
|
+
),
|
|
182
|
+
editorId: "background"
|
|
183
|
+
},
|
|
184
|
+
/* @__PURE__ */ a.createElement(
|
|
185
|
+
v,
|
|
186
|
+
{
|
|
187
|
+
id: "background",
|
|
188
|
+
value: ((h = t.area) == null ? void 0 : h.background) || "",
|
|
189
|
+
onChange: E,
|
|
190
|
+
view: "gradient",
|
|
191
|
+
fillMode: "outline"
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
)
|
|
195
|
+
))))
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
Q as ChartAreaPanel
|
|
200
|
+
};
|
|
@@ -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 T=require("react"),b=require("@progress/kendo-react-animation"),f=require("@progress/kendo-react-intl"),m=require("@progress/kendo-react-layout"),t=require("../../utils.js"),E=require("../SeriesTypesWrap.js"),l=require("../SeriesTypeButton.js"),o=require("../../messages.js"),u=require("@progress/kendo-svg-icons");function q(n){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(c,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return c.default=n,Object.freeze(c)}const a=q(T),x=n=>{const c=f.useLocalization(),e=n.state,s=e.seriesType,{isStackFalse:S,isStackNormal:d,isStack100:C}=t.stackState(e),[i,g]=a.useState(!0),k=a.useCallback(r=>{g(!r.expanded)},[]),p=()=>{n.onStateChange(t.mergeStates(e,t.createState(e.data,"column")))},h=()=>{const r=t.mergeStates(e,t.createState(e.data,"column"));n.onStateChange(t.updateState(r,t.ActionTypes.stacked,t.stackNormal))},y=()=>{const r=t.mergeStates(e,t.createState(e.data,"column"));n.onStateChange(t.updateState(r,t.ActionTypes.stacked,t.stack100))};return a.createElement(m.ExpansionPanel,{style:{maxWidth:"576px"},title:c.toLanguageString(o.columnChart,o.messages.columnChart),expanded:i,tabIndex:0,onAction:k},a.createElement(b.Reveal,null,i&&a.createElement(m.ExpansionPanelContent,null,a.createElement(E.SeriesTypesWrap,null,a.createElement(l.SeriesTypeButton,{selected:s==="column"&&S,onClick:p,icon:u.chartColumnClusteredIcon,iconName:"chart-column-clustered"},c.toLanguageString(o.columnChartColumn,o.messages.columnChartColumn)),a.createElement(l.SeriesTypeButton,{selected:s==="column"&&d,onClick:h,icon:u.chartColumnStackedIcon,iconName:"chart-column-stacked"},c.toLanguageString(o.columnChartStackedColumn,o.messages.columnChartStackedColumn)),a.createElement(l.SeriesTypeButton,{selected:s==="column"&&C,onClick:y,icon:u.chartColumnStacked100Icon,iconName:"chart-column-stacked100"},c.toLanguageString(o.columnChart100StackedColumn,o.messages.columnChart100StackedColumn))))))};exports.ColumnChartPanel=x;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 e from "react";
|
|
10
|
+
import { Reveal as f } from "@progress/kendo-react-animation";
|
|
11
|
+
import { useLocalization as y } from "@progress/kendo-react-intl";
|
|
12
|
+
import { ExpansionPanel as T, ExpansionPanelContent as L } from "@progress/kendo-react-layout";
|
|
13
|
+
import { stackState as N, mergeStates as m, createState as r, updateState as i, ActionTypes as C, stackNormal as I, stack100 as A } from "../../utils.mjs";
|
|
14
|
+
import { SeriesTypesWrap as P } from "../SeriesTypesWrap.mjs";
|
|
15
|
+
import { SeriesTypeButton as s } from "../SeriesTypeButton.mjs";
|
|
16
|
+
import { columnChart as b, messages as c, columnChartColumn as w, columnChartStackedColumn as z, columnChart100StackedColumn as R } from "../../messages.mjs";
|
|
17
|
+
import { chartColumnClusteredIcon as W, chartColumnStackedIcon as v, chartColumnStacked100Icon as B } from "@progress/kendo-svg-icons";
|
|
18
|
+
const M = (a) => {
|
|
19
|
+
const o = y(), t = a.state, l = t.seriesType, { isStackFalse: d, isStackNormal: S, isStack100: h } = N(t), [u, k] = e.useState(!0), p = e.useCallback((n) => {
|
|
20
|
+
k(!n.expanded);
|
|
21
|
+
}, []), g = () => {
|
|
22
|
+
a.onStateChange(m(t, r(t.data, "column")));
|
|
23
|
+
}, x = () => {
|
|
24
|
+
const n = m(t, r(t.data, "column"));
|
|
25
|
+
a.onStateChange(i(n, C.stacked, I));
|
|
26
|
+
}, E = () => {
|
|
27
|
+
const n = m(t, r(t.data, "column"));
|
|
28
|
+
a.onStateChange(i(n, C.stacked, A));
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ e.createElement(
|
|
31
|
+
T,
|
|
32
|
+
{
|
|
33
|
+
style: { maxWidth: "576px" },
|
|
34
|
+
title: o.toLanguageString(b, c.columnChart),
|
|
35
|
+
expanded: u,
|
|
36
|
+
tabIndex: 0,
|
|
37
|
+
onAction: p
|
|
38
|
+
},
|
|
39
|
+
/* @__PURE__ */ e.createElement(f, null, u && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(P, null, /* @__PURE__ */ e.createElement(
|
|
40
|
+
s,
|
|
41
|
+
{
|
|
42
|
+
selected: l === "column" && d,
|
|
43
|
+
onClick: g,
|
|
44
|
+
icon: W,
|
|
45
|
+
iconName: "chart-column-clustered"
|
|
46
|
+
},
|
|
47
|
+
o.toLanguageString(w, c.columnChartColumn)
|
|
48
|
+
), /* @__PURE__ */ e.createElement(
|
|
49
|
+
s,
|
|
50
|
+
{
|
|
51
|
+
selected: l === "column" && S,
|
|
52
|
+
onClick: x,
|
|
53
|
+
icon: v,
|
|
54
|
+
iconName: "chart-column-stacked"
|
|
55
|
+
},
|
|
56
|
+
o.toLanguageString(
|
|
57
|
+
z,
|
|
58
|
+
c.columnChartStackedColumn
|
|
59
|
+
)
|
|
60
|
+
), /* @__PURE__ */ e.createElement(
|
|
61
|
+
s,
|
|
62
|
+
{
|
|
63
|
+
selected: l === "column" && h,
|
|
64
|
+
onClick: E,
|
|
65
|
+
icon: B,
|
|
66
|
+
iconName: "chart-column-stacked100"
|
|
67
|
+
},
|
|
68
|
+
o.toLanguageString(
|
|
69
|
+
R,
|
|
70
|
+
c.columnChart100StackedColumn
|
|
71
|
+
)
|
|
72
|
+
))))
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
M as ColumnChartPanel
|
|
77
|
+
};
|
|
@@ -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 e=require("react"),x=require("@progress/kendo-react-form"),g=require("@progress/kendo-react-layout"),n=require("../../utils.js"),c=require("../FormFieldSet.js"),f=require("@progress/kendo-react-intl"),a=require("../../messages.js"),u=require("@progress/kendo-react-dropdowns"),A=require("../SeriesGrid.js"),y=require("@progress/kendo-react-animation"),E=r=>{const i=f.useLocalization(),t=r.state,s=t.seriesType,[l,d]=e.useState(!0),m=e.useCallback(o=>{d(!o.expanded)},[]),C=e.useCallback(o=>{r.onStateChange(n.updateState(t,n.ActionTypes.categoryAxisX,o.target.value))},[t]),S=e.useCallback(o=>{r.onStateChange(n.updateState(t,n.ActionTypes.seriesChange,o))},[t]),p=e.useCallback(o=>{r.onStateChange(n.updateState(t,n.ActionTypes.valueAxisY,o.target.value))},[t]);return e.createElement(g.ExpansionPanel,{style:{maxWidth:"576px"},title:i.toLanguageString(a.configuration,a.messages.configuration),expanded:l,tabIndex:0,onAction:m},e.createElement(y.Reveal,null,l&&e.createElement(g.ExpansionPanelContent,null,e.createElement(x.FormElement,{onKeyDown:n.stopPropagation},e.createElement(c.FormFieldSet,{legend:s==="scatter"?i.toLanguageString(a.configurationXAxis,a.messages.configurationXAxis):i.toLanguageString(a.configurationCategoryAxis,a.messages.configurationCategoryAxis)},e.createElement(u.DropDownList,{data:t.columns||[],value:t.categoryField,onChange:C,...n.dropdownlistCommonProps})),n.isCategorical(s)&&e.createElement(c.FormFieldSet,{legend:i.toLanguageString(a.configurationSeries,a.messages.configurationSeries)},e.createElement(A.SeriesGrid,{data:t.series,initialData:t.initialSeries,onChange:S})),s==="pie"&&e.createElement(c.FormFieldSet,{legend:i.toLanguageString(a.configurationValueAxis,a.messages.configurationValueAxis)},e.createElement(u.DropDownList,{data:t.columns||[],value:t.valueField||"",...n.dropdownlistCommonProps,onChange:p}))))))};exports.ConfigurationPanel=E;
|
|
@@ -0,0 +1,102 @@
|
|
|
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 e from "react";
|
|
10
|
+
import { FormElement as S } from "@progress/kendo-react-form";
|
|
11
|
+
import { ExpansionPanel as E, ExpansionPanelContent as A } from "@progress/kendo-react-layout";
|
|
12
|
+
import { updateState as l, ActionTypes as s, stopPropagation as h, dropdownlistCommonProps as u, isCategorical as y } from "../../utils.mjs";
|
|
13
|
+
import { FormFieldSet as g } from "../FormFieldSet.mjs";
|
|
14
|
+
import { useLocalization as v } from "@progress/kendo-react-intl";
|
|
15
|
+
import { configuration as L, messages as o, configurationXAxis as b, configurationCategoryAxis as F, configurationSeries as P, configurationValueAxis as k } from "../../messages.mjs";
|
|
16
|
+
import { DropDownList as m } from "@progress/kendo-react-dropdowns";
|
|
17
|
+
import { SeriesGrid as D } from "../SeriesGrid.mjs";
|
|
18
|
+
import { Reveal as w } from "@progress/kendo-react-animation";
|
|
19
|
+
const Y = (i) => {
|
|
20
|
+
const a = v(), t = i.state, r = t.seriesType, [c, f] = e.useState(!0), d = e.useCallback((n) => {
|
|
21
|
+
f(!n.expanded);
|
|
22
|
+
}, []), C = e.useCallback(
|
|
23
|
+
(n) => {
|
|
24
|
+
i.onStateChange(l(t, s.categoryAxisX, n.target.value));
|
|
25
|
+
},
|
|
26
|
+
[t]
|
|
27
|
+
), p = e.useCallback(
|
|
28
|
+
(n) => {
|
|
29
|
+
i.onStateChange(l(t, s.seriesChange, n));
|
|
30
|
+
},
|
|
31
|
+
[t]
|
|
32
|
+
), x = e.useCallback(
|
|
33
|
+
(n) => {
|
|
34
|
+
i.onStateChange(l(t, s.valueAxisY, n.target.value));
|
|
35
|
+
},
|
|
36
|
+
[t]
|
|
37
|
+
);
|
|
38
|
+
return /* @__PURE__ */ e.createElement(
|
|
39
|
+
E,
|
|
40
|
+
{
|
|
41
|
+
style: { maxWidth: "576px" },
|
|
42
|
+
title: a.toLanguageString(L, o.configuration),
|
|
43
|
+
expanded: c,
|
|
44
|
+
tabIndex: 0,
|
|
45
|
+
onAction: d
|
|
46
|
+
},
|
|
47
|
+
/* @__PURE__ */ e.createElement(w, null, c && /* @__PURE__ */ e.createElement(A, null, /* @__PURE__ */ e.createElement(S, { onKeyDown: h }, /* @__PURE__ */ e.createElement(
|
|
48
|
+
g,
|
|
49
|
+
{
|
|
50
|
+
legend: r === "scatter" ? a.toLanguageString(b, o.configurationXAxis) : a.toLanguageString(
|
|
51
|
+
F,
|
|
52
|
+
o.configurationCategoryAxis
|
|
53
|
+
)
|
|
54
|
+
},
|
|
55
|
+
/* @__PURE__ */ e.createElement(
|
|
56
|
+
m,
|
|
57
|
+
{
|
|
58
|
+
data: t.columns || [],
|
|
59
|
+
value: t.categoryField,
|
|
60
|
+
onChange: C,
|
|
61
|
+
...u
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
), y(r) && /* @__PURE__ */ e.createElement(
|
|
65
|
+
g,
|
|
66
|
+
{
|
|
67
|
+
legend: a.toLanguageString(
|
|
68
|
+
P,
|
|
69
|
+
o.configurationSeries
|
|
70
|
+
)
|
|
71
|
+
},
|
|
72
|
+
/* @__PURE__ */ e.createElement(
|
|
73
|
+
D,
|
|
74
|
+
{
|
|
75
|
+
data: t.series,
|
|
76
|
+
initialData: t.initialSeries,
|
|
77
|
+
onChange: p
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
), r === "pie" && /* @__PURE__ */ e.createElement(
|
|
81
|
+
g,
|
|
82
|
+
{
|
|
83
|
+
legend: a.toLanguageString(
|
|
84
|
+
k,
|
|
85
|
+
o.configurationValueAxis
|
|
86
|
+
)
|
|
87
|
+
},
|
|
88
|
+
/* @__PURE__ */ e.createElement(
|
|
89
|
+
m,
|
|
90
|
+
{
|
|
91
|
+
data: t.columns || [],
|
|
92
|
+
value: t.valueField || "",
|
|
93
|
+
...u,
|
|
94
|
+
onChange: x
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
))))
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
Y as ConfigurationPanel
|
|
102
|
+
};
|
|
@@ -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 o=require("react"),C=require("@progress/kendo-react-layout"),w=require("@progress/kendo-react-form"),R=require("@progress/kendo-react-labels"),r=require("../FormField.js"),m=require("@progress/kendo-react-dropdowns"),P=require("@progress/kendo-react-inputs"),T=require("@progress/kendo-react-intl"),t=require("../../messages.js"),e=require("../../utils.js"),q=require("@progress/kendo-react-animation"),A=s=>{var L,f,S,b,p,h,v;const i=T.useLocalization(),l=s.state,[c,F]=o.useState(!1),x=o.useCallback(n=>{F(!n.expanded)},[]),u=[{value:"top",text:i.toLanguageString(t.formatLegendPositionTop,t.messages.formatLegendPositionTop)},{value:"bottom",text:i.toLanguageString(t.formatLegendPositionBottom,t.messages.formatLegendPositionBottom)},{value:"left",text:i.toLanguageString(t.formatLegendPositionLeft,t.messages.formatLegendPositionLeft)},{value:"right",text:i.toLanguageString(t.formatLegendPositionRight,t.messages.formatLegendPositionRight)}],E=n=>{s.onStateChange(e.updateState(l,e.ActionTypes.legendVisible,n.value))},k=n=>{const a=n.target.value||e.nullItem;e.ensureValue(a)&&s.onStateChange(e.updateState(l,e.ActionTypes.legendFontSize,a.value))},y=n=>{const a=n.target.value||e.nullItem;s.onStateChange(e.updateState(l,e.ActionTypes.legendFontName,a.value))},I=n=>{s.onStateChange(e.updateState(l,e.ActionTypes.legendColor,n.value))},z=n=>{const a=n.target.value;s.onStateChange(e.updateState(l,e.ActionTypes.legendPosition,a.value))};return o.createElement(C.ExpansionPanel,{style:{maxWidth:"576px"},title:i.toLanguageString(t.formatLegend,t.messages.formatLegend),expanded:c,tabIndex:0,onAction:x},o.createElement(q.Reveal,null,c&&o.createElement(C.ExpansionPanelContent,null,o.createElement(w.FormElement,{onKeyDown:e.stopPropagation},o.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},o.createElement(R.Label,{editorId:"show-legend"},i.toLanguageString(t.formatLegendShowLegend,t.messages.formatLegendShowLegend)),o.createElement(P.Switch,{id:"show-legend",checked:(L=l.legend)==null?void 0:L.visible,onChange:E}),o.createElement(r.FormField,{className:"k-col-span-2",editorId:"legendLabelsFont",labelText:i.toLanguageString(t.formatLegendFont,t.messages.formatLegendFont)},o.createElement(m.ComboBox,{id:"legendLabelsFont",data:e.fontNames,textField:"text",dataItemKey:"value",placeholder:i.toLanguageString(t.formatLegendFontPlaceholder,t.messages.formatLegendFontPlaceholder),value:e.fontNames.find(n=>{var a,d,g;return n.value===((g=e.parseFont(((d=(a=l.legend)==null?void 0:a.labels)==null?void 0:d.font)||""))==null?void 0:g.name)})||e.nullItem,onChange:y,itemRender:e.itemRender,disabled:((f=l.legend)==null?void 0:f.visible)===!1,...e.dropdownlistCommonProps})),o.createElement(r.FormField,{editorId:"legendLabelsSize",labelText:i.toLanguageString(t.formatLegendSize,t.messages.formatLegendSize)},o.createElement(m.ComboBox,{id:"legendLabelsSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:i.toLanguageString(t.formatLegendSizePlaceholder,t.messages.formatLegendSizePlaceholder),value:e.fontSizes.find(n=>{var a,d,g;return n.value===((g=e.parseFont(((d=(a=l.legend)==null?void 0:a.labels)==null?void 0:d.font)||""))==null?void 0:g.size)})||e.nullItem,onChange:k,disabled:((S=l.legend)==null?void 0:S.visible)===!1,allowCustom:!0,...e.dropdownlistCommonProps})),o.createElement(r.FormField,{editorId:"legendLabelsColor",labelText:i.toLanguageString(t.formatLegendColor,t.messages.formatLegendColor)},o.createElement(P.ColorPicker,{id:"legendLabelsColor",value:((p=(b=l.legend)==null?void 0:b.labels)==null?void 0:p.color)||"",onChange:I,disabled:((h=l.legend)==null?void 0:h.visible)===!1,view:"gradient",fillMode:"outline"})),o.createElement(r.FormField,{className:"k-col-span-2",editorId:"legendPosition",labelText:i.toLanguageString(t.formatLegendPosition,t.messages.formatLegendPosition)},o.createElement(m.DropDownList,{id:"legendPosition",data:u,textField:"text",dataItemKey:"value",value:u.find(n=>{var a;return n.value===((a=l.legend)==null?void 0:a.position)}),onChange:z,disabled:((v=l.legend)==null?void 0:v.visible)===!1,...e.dropdownlistCommonProps})))))))};exports.LegendPanel=A;
|
|
@@ -0,0 +1,190 @@
|
|
|
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 t from "react";
|
|
10
|
+
import { ExpansionPanel as K, ExpansionPanelContent as A } from "@progress/kendo-react-layout";
|
|
11
|
+
import { FormElement as B } from "@progress/kendo-react-form";
|
|
12
|
+
import { Label as D } from "@progress/kendo-react-labels";
|
|
13
|
+
import { FormField as s } from "../FormField.mjs";
|
|
14
|
+
import { ComboBox as P, DropDownList as V } from "@progress/kendo-react-dropdowns";
|
|
15
|
+
import { Switch as _, ColorPicker as M } from "@progress/kendo-react-inputs";
|
|
16
|
+
import { useLocalization as W } from "@progress/kendo-react-intl";
|
|
17
|
+
import { formatLegendPositionTop as j, messages as l, formatLegendPositionBottom as q, formatLegendPositionLeft as G, formatLegendPositionRight as H, formatLegend as J, formatLegendShowLegend as O, formatLegendFont as Q, formatLegendFontPlaceholder as U, formatLegendSize as X, formatLegendSizePlaceholder as Y, formatLegendColor as Z, formatLegendPosition as $ } from "../../messages.mjs";
|
|
18
|
+
import { stopPropagation as ee, fontNames as E, parseFont as F, nullItem as L, itemRender as te, dropdownlistCommonProps as f, fontSizes as z, updateState as r, ActionTypes as m, ensureValue as ne } from "../../utils.mjs";
|
|
19
|
+
import { Reveal as oe } from "@progress/kendo-react-animation";
|
|
20
|
+
const ue = (i) => {
|
|
21
|
+
var S, h, v, b, p, C, x;
|
|
22
|
+
const a = W(), o = i.state, [c, w] = t.useState(!1), I = t.useCallback((e) => {
|
|
23
|
+
w(!e.expanded);
|
|
24
|
+
}, []), u = [
|
|
25
|
+
{
|
|
26
|
+
value: "top",
|
|
27
|
+
text: a.toLanguageString(j, l.formatLegendPositionTop)
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: "bottom",
|
|
31
|
+
text: a.toLanguageString(q, l.formatLegendPositionBottom)
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: "left",
|
|
35
|
+
text: a.toLanguageString(G, l.formatLegendPositionLeft)
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "right",
|
|
39
|
+
text: a.toLanguageString(H, l.formatLegendPositionRight)
|
|
40
|
+
}
|
|
41
|
+
], k = (e) => {
|
|
42
|
+
i.onStateChange(r(o, m.legendVisible, e.value));
|
|
43
|
+
}, y = (e) => {
|
|
44
|
+
const n = e.target.value || L;
|
|
45
|
+
ne(n) && i.onStateChange(r(o, m.legendFontSize, n.value));
|
|
46
|
+
}, N = (e) => {
|
|
47
|
+
const n = e.target.value || L;
|
|
48
|
+
i.onStateChange(r(o, m.legendFontName, n.value));
|
|
49
|
+
}, T = (e) => {
|
|
50
|
+
i.onStateChange(r(o, m.legendColor, e.value));
|
|
51
|
+
}, R = (e) => {
|
|
52
|
+
const n = e.target.value;
|
|
53
|
+
i.onStateChange(r(o, m.legendPosition, n.value));
|
|
54
|
+
};
|
|
55
|
+
return /* @__PURE__ */ t.createElement(
|
|
56
|
+
K,
|
|
57
|
+
{
|
|
58
|
+
style: { maxWidth: "576px" },
|
|
59
|
+
title: a.toLanguageString(J, l.formatLegend),
|
|
60
|
+
expanded: c,
|
|
61
|
+
tabIndex: 0,
|
|
62
|
+
onAction: I
|
|
63
|
+
},
|
|
64
|
+
/* @__PURE__ */ t.createElement(oe, null, c && /* @__PURE__ */ t.createElement(A, null, /* @__PURE__ */ t.createElement(B, { onKeyDown: ee }, /* @__PURE__ */ t.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ t.createElement(D, { editorId: "show-legend" }, a.toLanguageString(
|
|
65
|
+
O,
|
|
66
|
+
l.formatLegendShowLegend
|
|
67
|
+
)), /* @__PURE__ */ t.createElement(
|
|
68
|
+
_,
|
|
69
|
+
{
|
|
70
|
+
id: "show-legend",
|
|
71
|
+
checked: (S = o.legend) == null ? void 0 : S.visible,
|
|
72
|
+
onChange: k
|
|
73
|
+
}
|
|
74
|
+
), /* @__PURE__ */ t.createElement(
|
|
75
|
+
s,
|
|
76
|
+
{
|
|
77
|
+
className: "k-col-span-2",
|
|
78
|
+
editorId: "legendLabelsFont",
|
|
79
|
+
labelText: a.toLanguageString(
|
|
80
|
+
Q,
|
|
81
|
+
l.formatLegendFont
|
|
82
|
+
)
|
|
83
|
+
},
|
|
84
|
+
/* @__PURE__ */ t.createElement(
|
|
85
|
+
P,
|
|
86
|
+
{
|
|
87
|
+
id: "legendLabelsFont",
|
|
88
|
+
data: E,
|
|
89
|
+
textField: "text",
|
|
90
|
+
dataItemKey: "value",
|
|
91
|
+
placeholder: a.toLanguageString(
|
|
92
|
+
U,
|
|
93
|
+
l.formatLegendFontPlaceholder
|
|
94
|
+
),
|
|
95
|
+
value: E.find(
|
|
96
|
+
(e) => {
|
|
97
|
+
var n, d, g;
|
|
98
|
+
return e.value === ((g = F(((d = (n = o.legend) == null ? void 0 : n.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : g.name);
|
|
99
|
+
}
|
|
100
|
+
) || L,
|
|
101
|
+
onChange: N,
|
|
102
|
+
itemRender: te,
|
|
103
|
+
disabled: ((h = o.legend) == null ? void 0 : h.visible) === !1,
|
|
104
|
+
...f
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
), /* @__PURE__ */ t.createElement(
|
|
108
|
+
s,
|
|
109
|
+
{
|
|
110
|
+
editorId: "legendLabelsSize",
|
|
111
|
+
labelText: a.toLanguageString(
|
|
112
|
+
X,
|
|
113
|
+
l.formatLegendSize
|
|
114
|
+
)
|
|
115
|
+
},
|
|
116
|
+
/* @__PURE__ */ t.createElement(
|
|
117
|
+
P,
|
|
118
|
+
{
|
|
119
|
+
id: "legendLabelsSize",
|
|
120
|
+
data: z,
|
|
121
|
+
textField: "text",
|
|
122
|
+
dataItemKey: "value",
|
|
123
|
+
placeholder: a.toLanguageString(
|
|
124
|
+
Y,
|
|
125
|
+
l.formatLegendSizePlaceholder
|
|
126
|
+
),
|
|
127
|
+
value: z.find(
|
|
128
|
+
(e) => {
|
|
129
|
+
var n, d, g;
|
|
130
|
+
return e.value === ((g = F(((d = (n = o.legend) == null ? void 0 : n.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : g.size);
|
|
131
|
+
}
|
|
132
|
+
) || L,
|
|
133
|
+
onChange: y,
|
|
134
|
+
disabled: ((v = o.legend) == null ? void 0 : v.visible) === !1,
|
|
135
|
+
allowCustom: !0,
|
|
136
|
+
...f
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
), /* @__PURE__ */ t.createElement(
|
|
140
|
+
s,
|
|
141
|
+
{
|
|
142
|
+
editorId: "legendLabelsColor",
|
|
143
|
+
labelText: a.toLanguageString(
|
|
144
|
+
Z,
|
|
145
|
+
l.formatLegendColor
|
|
146
|
+
)
|
|
147
|
+
},
|
|
148
|
+
/* @__PURE__ */ t.createElement(
|
|
149
|
+
M,
|
|
150
|
+
{
|
|
151
|
+
id: "legendLabelsColor",
|
|
152
|
+
value: ((p = (b = o.legend) == null ? void 0 : b.labels) == null ? void 0 : p.color) || "",
|
|
153
|
+
onChange: T,
|
|
154
|
+
disabled: ((C = o.legend) == null ? void 0 : C.visible) === !1,
|
|
155
|
+
view: "gradient",
|
|
156
|
+
fillMode: "outline"
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
), /* @__PURE__ */ t.createElement(
|
|
160
|
+
s,
|
|
161
|
+
{
|
|
162
|
+
className: "k-col-span-2",
|
|
163
|
+
editorId: "legendPosition",
|
|
164
|
+
labelText: a.toLanguageString(
|
|
165
|
+
$,
|
|
166
|
+
l.formatLegendPosition
|
|
167
|
+
)
|
|
168
|
+
},
|
|
169
|
+
/* @__PURE__ */ t.createElement(
|
|
170
|
+
V,
|
|
171
|
+
{
|
|
172
|
+
id: "legendPosition",
|
|
173
|
+
data: u,
|
|
174
|
+
textField: "text",
|
|
175
|
+
dataItemKey: "value",
|
|
176
|
+
value: u.find((e) => {
|
|
177
|
+
var n;
|
|
178
|
+
return e.value === ((n = o.legend) == null ? void 0 : n.position);
|
|
179
|
+
}),
|
|
180
|
+
onChange: R,
|
|
181
|
+
disabled: ((x = o.legend) == null ? void 0 : x.visible) === !1,
|
|
182
|
+
...f
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
)))))
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
export {
|
|
189
|
+
ue as LegendPanel
|
|
190
|
+
};
|
|
@@ -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 y=require("react"),T=require("@progress/kendo-react-animation"),b=require("@progress/kendo-react-intl"),u=require("@progress/kendo-react-layout"),t=require("../../utils.js"),i=require("../../messages.js"),f=require("../SeriesTypesWrap.js"),o=require("../SeriesTypeButton.js"),l=require("@progress/kendo-svg-icons");function E(n){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(c,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return c.default=n,Object.freeze(c)}const a=E(y),q=n=>{const c=b.useLocalization(),e=n.state,s=e.seriesType,{isStackFalse:d,isStackNormal:g,isStack100:k}=t.stackState(e),[S,m]=a.useState(!0),p=a.useCallback(r=>{m(!r.expanded)},[]),h=()=>{n.onStateChange(t.mergeStates(e,t.createState(e.data,"line")))},L=()=>{const r=t.mergeStates(e,t.createState(e.data,"line"));n.onStateChange(t.updateState(r,t.ActionTypes.stacked,t.stackNormal))},C=()=>{const r=t.mergeStates(e,t.createState(e.data,"line"));n.onStateChange(t.updateState(r,t.ActionTypes.stacked,t.stack100))};return a.createElement(u.ExpansionPanel,{style:{maxWidth:"576px"},title:c.toLanguageString(i.lineChart,i.messages.lineChart),expanded:S,tabIndex:0,onAction:p},a.createElement(T.Reveal,null,S&&a.createElement(u.ExpansionPanelContent,null,a.createElement(f.SeriesTypesWrap,null,a.createElement(o.SeriesTypeButton,{selected:s==="line"&&d,onClick:h,icon:l.chartLineIcon,iconName:"chart-line"},c.toLanguageString(i.lineChartLine,i.messages.lineChartLine)),a.createElement(o.SeriesTypeButton,{selected:s==="line"&&g,onClick:L,icon:l.chartLineStackedIcon,iconName:"chart-line-stacked"},c.toLanguageString(i.lineChartStackedLine,i.messages.lineChartStackedLine)),a.createElement(o.SeriesTypeButton,{selected:s==="line"&&k,onClick:C,icon:l.chartLineStacked100Icon,iconName:"chart-line-stacked100"},c.toLanguageString(i.lineChart100StackedLine,i.messages.lineChart100StackedLine))))))};exports.LineChartPanel=q;
|