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