@progress/kendo-react-chart-wizard 16.2.0-develop.1 → 16.2.0-develop.3
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/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 -14
|
@@ -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 B=require("react"),y=require("@progress/kendo-react-
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),y=require("@progress/kendo-react-intl"),S=require("@progress/kendo-react-layout"),T=require("../SeriesTypesWrap.js"),i=require("../SeriesTypeButton.js"),t=require("../../utils.js"),n=require("../../messages.js"),l=require("@progress/kendo-svg-icons");function f(a){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(r,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}return r.default=a,Object.freeze(r)}const c=f(B),x=a=>{const r=y.useLocalization(),e=a.state,s=e.seriesType,{isStackFalse:d,isStackNormal:u,isStack100:g}=t.stackState(e),[b,k]=c.useState(!0),m=c.useCallback(o=>{k(!o.expanded)},[]),p=()=>{a.onStateChange(t.mergeStates(e,t.createState(e.data,"bar")))},h=()=>{const o=t.mergeStates(e,t.createState(e.data,"bar"));a.onStateChange(t.updateState(o,t.ActionTypes.stacked,t.stackNormal))},C=()=>{const o=t.mergeStates(e,t.createState(e.data,"bar"));a.onStateChange(t.updateState(o,t.ActionTypes.stacked,t.stack100))};return c.createElement(S.ExpansionPanel,{style:{maxWidth:"576px"},title:r.toLanguageString(n.barChart,n.messages.barChart),expanded:b,tabIndex:0,onAction:m},c.createElement(S.ExpansionPanelContent,null,c.createElement(T.SeriesTypesWrap,null,c.createElement(i.SeriesTypeButton,{selected:s==="bar"&&d,onClick:p,icon:l.chartBarClusteredIcon,iconName:"chart-bar-clustered"},r.toLanguageString(n.barChartBar,n.messages.barChartBar)),c.createElement(i.SeriesTypeButton,{selected:s==="bar"&&u,onClick:h,icon:l.chartBarStackedIcon,iconName:"chart-bar-stacked"},r.toLanguageString(n.barChartStackedBar,n.messages.barChartStackedBar)),c.createElement(i.SeriesTypeButton,{selected:s==="bar"&&g,onClick:C,icon:l.chartBarStacked100Icon,iconName:"chart-bar-stacked100"},r.toLanguageString(n.barChart100StackedBar,n.messages.barChart100StackedBar)))))};exports.BarChartPanel=x;
|
|
@@ -5,66 +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 { SeriesTypesWrap as T } from "../SeriesTypesWrap.mjs";
|
|
8
|
+
import * as t from "react";
|
|
9
|
+
import { useLocalization as x } from "@progress/kendo-react-intl";
|
|
10
|
+
import { ExpansionPanel as y, ExpansionPanelContent as E } from "@progress/kendo-react-layout";
|
|
11
|
+
import { SeriesTypesWrap as f } from "../SeriesTypesWrap.mjs";
|
|
13
12
|
import { SeriesTypeButton as s } from "../SeriesTypeButton.mjs";
|
|
14
|
-
import { stackState as
|
|
15
|
-
import { barChart as
|
|
16
|
-
import { chartBarClusteredIcon as
|
|
17
|
-
const
|
|
18
|
-
const n =
|
|
19
|
-
|
|
13
|
+
import { stackState as T, mergeStates as i, createState as d, updateState as l, ActionTypes as m, stackNormal as L, stack100 as N } from "../../utils.mjs";
|
|
14
|
+
import { barChart as I, messages as c, barChartBar as A, barChartStackedBar as P, barChart100StackedBar as w } from "../../messages.mjs";
|
|
15
|
+
import { chartBarClusteredIcon as z, chartBarStackedIcon as W, chartBarStacked100Icon as F } from "@progress/kendo-svg-icons";
|
|
16
|
+
const J = (r) => {
|
|
17
|
+
const n = x(), a = r.state, o = a.seriesType, { isStackFalse: S, isStackNormal: h, isStack100: k } = T(a), [C, p] = t.useState(!0), b = t.useCallback((e) => {
|
|
18
|
+
p(!e.expanded);
|
|
20
19
|
}, []), g = () => {
|
|
21
|
-
r.onStateChange(i(
|
|
20
|
+
r.onStateChange(i(a, d(a.data, "bar")));
|
|
22
21
|
}, B = () => {
|
|
23
|
-
const e = i(
|
|
24
|
-
r.onStateChange(
|
|
22
|
+
const e = i(a, d(a.data, "bar"));
|
|
23
|
+
r.onStateChange(l(e, m.stacked, L));
|
|
25
24
|
}, u = () => {
|
|
26
|
-
const e = i(
|
|
27
|
-
r.onStateChange(
|
|
25
|
+
const e = i(a, d(a.data, "bar"));
|
|
26
|
+
r.onStateChange(l(e, m.stacked, N));
|
|
28
27
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
28
|
+
return /* @__PURE__ */ t.createElement(
|
|
29
|
+
y,
|
|
31
30
|
{
|
|
32
31
|
style: { maxWidth: "576px" },
|
|
33
|
-
title: n.toLanguageString(
|
|
34
|
-
expanded:
|
|
32
|
+
title: n.toLanguageString(I, c.barChart),
|
|
33
|
+
expanded: C,
|
|
35
34
|
tabIndex: 0,
|
|
36
35
|
onAction: b
|
|
37
36
|
},
|
|
38
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ t.createElement(E, null, /* @__PURE__ */ t.createElement(f, null, /* @__PURE__ */ t.createElement(
|
|
39
38
|
s,
|
|
40
39
|
{
|
|
41
|
-
selected: o === "bar" &&
|
|
40
|
+
selected: o === "bar" && S,
|
|
42
41
|
onClick: g,
|
|
43
|
-
icon:
|
|
42
|
+
icon: z,
|
|
44
43
|
iconName: "chart-bar-clustered"
|
|
45
44
|
},
|
|
46
|
-
n.toLanguageString(
|
|
47
|
-
), /* @__PURE__ */
|
|
45
|
+
n.toLanguageString(A, c.barChartBar)
|
|
46
|
+
), /* @__PURE__ */ t.createElement(
|
|
48
47
|
s,
|
|
49
48
|
{
|
|
50
|
-
selected: o === "bar" &&
|
|
49
|
+
selected: o === "bar" && h,
|
|
51
50
|
onClick: B,
|
|
52
51
|
icon: W,
|
|
53
52
|
iconName: "chart-bar-stacked"
|
|
54
53
|
},
|
|
55
|
-
n.toLanguageString(
|
|
56
|
-
), /* @__PURE__ */
|
|
54
|
+
n.toLanguageString(P, c.barChartStackedBar)
|
|
55
|
+
), /* @__PURE__ */ t.createElement(
|
|
57
56
|
s,
|
|
58
57
|
{
|
|
59
|
-
selected: o === "bar" &&
|
|
58
|
+
selected: o === "bar" && k,
|
|
60
59
|
onClick: u,
|
|
61
|
-
icon:
|
|
60
|
+
icon: F,
|
|
62
61
|
iconName: "chart-bar-stacked100"
|
|
63
62
|
},
|
|
64
|
-
n.toLanguageString(
|
|
65
|
-
)))
|
|
63
|
+
n.toLanguageString(w, c.barChart100StackedBar)
|
|
64
|
+
)))
|
|
66
65
|
);
|
|
67
66
|
};
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
J as BarChartPanel
|
|
70
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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),f=require("@progress/kendo-react-layout"),N=require("@progress/kendo-react-form"),b=require("../FormFieldSet.js"),g=require("../FormField.js"),c=require("@progress/kendo-react-inputs"),e=require("../../utils.js"),t=require("../../messages.js"),w=require("@progress/kendo-react-intl"),d=require("@progress/kendo-react-dropdowns");function q(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const m=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(n,o,m.get?m:{enumerable:!0,get:()=>s[o]})}}return n.default=s,Object.freeze(n)}const a=q(R),O=s=>{var u,x,C,y,A;const n=w.useLocalization(),o=s.state,m=o.seriesType,[S,F]=a.useState(!1),L=a.useCallback(l=>{F(!l.expanded)},[]),T=a.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleText,l.target.value))},[o]),p=a.useCallback(l=>{const r=l.target.value||e.nullItem;e.ensureValue(r)&&s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleFontSize,r.value))},[o]),h=a.useCallback(l=>{const r=l.target.value||e.nullItem;s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleFontName,r.value))},[o]),v=a.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleColor,l.value))},[o]),k=a.useCallback(l=>{const r=l.target.value||e.nullItem;e.ensureValue(r)&&s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsFontSize,r.value))},[o]),E=a.useCallback(l=>{const r=l.target.value||e.nullItem;s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsFontName,r.value))},[o]),z=a.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsColor,l.value))},[o]),P=a.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsRotation,l.target.value))},[o]),I=a.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisReverseOrder,l.value))},[o]);return a.createElement(f.ExpansionPanel,{style:{maxWidth:"576px"},title:m==="scatter"?n.toLanguageString(t.formatXAxis,t.messages.formatXAxis):n.toLanguageString(t.formatCategoryAxis,t.messages.formatCategoryAxis),expanded:S,tabIndex:0,onAction:L},a.createElement(f.ExpansionPanelContent,null,a.createElement(N.FormElement,{onKeyDown:e.stopPropagation},a.createElement(b.FormFieldSet,{legend:n.toLanguageString(t.formatCategoryAxisTitle,t.messages.formatCategoryAxisTitle)},a.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},a.createElement(g.FormField,{className:"k-col-span-2"},a.createElement(c.Input,{placeholder:n.toLanguageString(t.formatCategoryAxisTitlePlaceholder,t.messages.formatCategoryAxisTitlePlaceholder),value:((u=o.categoryAxis[0].title)==null?void 0:u.text)||"",onChange:T})),a.createElement(g.FormField,{className:"k-col-span-2",editorId:"categoryAxisTitleFont",labelText:n.toLanguageString(t.formatCategoryAxisTitleFont,t.messages.formatCategoryAxisTitleFont)},a.createElement(d.ComboBox,{id:"categoryAxisTitleFont",data:e.fontNames,textField:"text",dataItemKey:"value",itemRender:e.itemRender,placeholder:n.toLanguageString(t.formatCategoryAxisTitleFontPlaceholder,t.messages.formatCategoryAxisTitleFontPlaceholder),value:e.fontNames.find(l=>{var r,i;return l.value===((i=e.parseFont(((r=o.categoryAxis[0].title)==null?void 0:r.font)||""))==null?void 0:i.name)})||e.nullItem,onChange:h,...e.dropdownlistCommonProps})),a.createElement(g.FormField,{editorId:"categoryAxisTitleFontSize",labelText:n.toLanguageString(t.formatCategoryAxisTitleSize,t.messages.formatCategoryAxisTitleSize)},a.createElement(d.ComboBox,{id:"categoryAxisTitleFontSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:n.toLanguageString(t.formatCategoryAxisTitleSizePlaceholder,t.messages.formatCategoryAxisTitleSizePlaceholder),value:e.fontSizes.find(l=>{var r,i;return l.value===((i=e.parseFont(((r=o.categoryAxis[0].title)==null?void 0:r.font)||""))==null?void 0:i.size)})||e.nullItem,onChange:p,allowCustom:!0,...e.dropdownlistCommonProps})),a.createElement(g.FormField,{editorId:"categoryAxisTitleColor",labelText:n.toLanguageString(t.formatCategoryAxisTitleColor,t.messages.formatCategoryAxisTitleColor)},a.createElement(c.ColorPicker,{id:"categoryAxisTitleColor",view:"gradient",value:((x=o.categoryAxis[0].title)==null?void 0:x.color)||"",onChange:v,fillMode:"outline"})))),a.createElement(b.FormFieldSet,{legend:n.toLanguageString(t.formatCategoryAxisLabels,t.messages.formatCategoryAxisLabels)},a.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},a.createElement(g.FormField,{className:"k-col-span-2",editorId:"categoryAxisLabelsFont",labelText:n.toLanguageString(t.formatCategoryAxisLabelsFont,t.messages.formatCategoryAxisLabelsFont)},a.createElement(d.ComboBox,{id:"categoryAxisLabelsFont",data:e.fontNames,textField:"text",dataItemKey:"value",placeholder:n.toLanguageString(t.formatCategoryAxisLabelsFontPlaceholder,t.messages.formatCategoryAxisLabelsFontPlaceholder),value:e.fontNames.find(l=>{var r,i;return l.value===((i=e.parseFont(((r=o.categoryAxis[0].labels)==null?void 0:r.font)||""))==null?void 0:i.name)})||e.nullItem,onChange:E,itemRender:e.itemRender,...e.dropdownlistCommonProps})),a.createElement(g.FormField,{editorId:"categoryAxisLabelsFontSize",labelText:n.toLanguageString(t.formatCategoryAxisLabelsSize,t.messages.formatCategoryAxisLabelsSize)},a.createElement(d.ComboBox,{id:"categoryAxisLabelsFontSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:n.toLanguageString(t.formatCategoryAxisLabelsSizePlaceholder,t.messages.formatCategoryAxisLabelsSizePlaceholder),value:e.fontSizes.find(l=>{var r,i;return l.value===((i=e.parseFont(((r=o.categoryAxis[0].labels)==null?void 0:r.font)||""))==null?void 0:i.size)})||e.nullItem,onChange:k,allowCustom:!0,...e.dropdownlistCommonProps})),a.createElement(g.FormField,{editorId:"categoryAxisLabelsColor",labelText:n.toLanguageString(t.formatCategoryAxisLabelsColor,t.messages.formatCategoryAxisLabelsColor)},a.createElement(c.ColorPicker,{id:"categoryAxisLabelsColor",view:"gradient",value:((C=o.categoryAxis[0].labels)==null?void 0:C.color)||"",onChange:z,fillMode:"outline"})),a.createElement(g.FormField,{editorId:"categoryAxisLabelsRotation",labelText:n.toLanguageString(t.formatCategoryAxisLabelsRotation,t.messages.formatCategoryAxisLabelsRotation)},a.createElement(c.NumericTextBox,{id:"categoryAxisLabelsRotation",value:typeof((y=o.categoryAxis[0].labels)==null?void 0:y.rotation)=="number"?(A=o.categoryAxis[0].labels)==null?void 0:A.rotation:null,placeholder:n.toLanguageString(t.formatCategoryAxisLabelsRotationAuto,t.messages.formatCategoryAxisLabelsRotationAuto),onChange:P,fillMode:"outline",min:-360,max:360,step:1})),a.createElement(g.FormField,{className:"k-col-span-2"},a.createElement(c.Checkbox,{label:n.toLanguageString(t.formatCategoryAxisLabelsReverseOrder,t.messages.formatCategoryAxisLabelsReverseOrder),checked:o.categoryAxis[0].reverse||!1,onChange:I})))))))};exports.CategoryAxisPanel=O;
|
|
@@ -8,36 +8,35 @@
|
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import { ExpansionPanel as X, ExpansionPanelContent as D } from "@progress/kendo-react-layout";
|
|
10
10
|
import { FormElement as V } from "@progress/kendo-react-form";
|
|
11
|
-
import { FormFieldSet as
|
|
11
|
+
import { FormFieldSet as h } from "../FormFieldSet.mjs";
|
|
12
12
|
import { FormField as s } from "../FormField.mjs";
|
|
13
|
-
import { Input as W, ColorPicker as
|
|
14
|
-
import { updateState as g, ActionTypes as c, nullItem as m, ensureValue as
|
|
13
|
+
import { Input as W, ColorPicker as T, NumericTextBox as j, Checkbox as q } from "@progress/kendo-react-inputs";
|
|
14
|
+
import { updateState as g, ActionTypes as c, nullItem as m, ensureValue as v, stopPropagation as G, dropdownlistCommonProps as x, itemRender as F, fontNames as C, parseFont as y, fontSizes as d } from "../../utils.mjs";
|
|
15
15
|
import { formatXAxis as H, messages as r, formatCategoryAxis as J, formatCategoryAxisTitle as Q, formatCategoryAxisTitlePlaceholder as U, formatCategoryAxisTitleFont as Y, formatCategoryAxisTitleFontPlaceholder as Z, formatCategoryAxisTitleSize as _, formatCategoryAxisTitleSizePlaceholder as $, formatCategoryAxisTitleColor as ee, formatCategoryAxisLabels as te, formatCategoryAxisLabelsFont as ae, formatCategoryAxisLabelsFontPlaceholder as oe, formatCategoryAxisLabelsSize as le, formatCategoryAxisLabelsSizePlaceholder as re, formatCategoryAxisLabelsColor as ie, formatCategoryAxisLabelsRotation as ne, formatCategoryAxisLabelsRotationAuto as se, formatCategoryAxisLabelsReverseOrder as ge } from "../../messages.mjs";
|
|
16
16
|
import { useLocalization as ce } from "@progress/kendo-react-intl";
|
|
17
|
-
import { Reveal as me } from "@progress/kendo-react-animation";
|
|
18
17
|
import { ComboBox as A } from "@progress/kendo-react-dropdowns";
|
|
19
|
-
const
|
|
20
|
-
var f, b, L, S
|
|
21
|
-
const l = ce(), t = n.state,
|
|
18
|
+
const Le = (n) => {
|
|
19
|
+
var u, f, b, L, S;
|
|
20
|
+
const l = ce(), t = n.state, E = t.seriesType, [k, p] = e.useState(!1), z = e.useCallback((a) => {
|
|
22
21
|
p(!a.expanded);
|
|
23
22
|
}, []), P = e.useCallback(
|
|
24
23
|
(a) => {
|
|
25
24
|
n.onStateChange(g(t, c.categoryAxisTitleText, a.target.value));
|
|
26
25
|
},
|
|
27
26
|
[t]
|
|
28
|
-
),
|
|
27
|
+
), I = e.useCallback(
|
|
29
28
|
(a) => {
|
|
30
29
|
const o = a.target.value || m;
|
|
31
|
-
|
|
30
|
+
v(o) && n.onStateChange(g(t, c.categoryAxisTitleFontSize, o.value));
|
|
32
31
|
},
|
|
33
32
|
[t]
|
|
34
|
-
),
|
|
33
|
+
), N = e.useCallback(
|
|
35
34
|
(a) => {
|
|
36
35
|
const o = a.target.value || m;
|
|
37
36
|
n.onStateChange(g(t, c.categoryAxisTitleFontName, o.value));
|
|
38
37
|
},
|
|
39
38
|
[t]
|
|
40
|
-
),
|
|
39
|
+
), R = e.useCallback(
|
|
41
40
|
(a) => {
|
|
42
41
|
n.onStateChange(g(t, c.categoryAxisTitleColor, a.value));
|
|
43
42
|
},
|
|
@@ -45,7 +44,7 @@ const he = (n) => {
|
|
|
45
44
|
), w = e.useCallback(
|
|
46
45
|
(a) => {
|
|
47
46
|
const o = a.target.value || m;
|
|
48
|
-
|
|
47
|
+
v(o) && n.onStateChange(g(t, c.categoryAxisLabelsFontSize, o.value));
|
|
49
48
|
},
|
|
50
49
|
[t]
|
|
51
50
|
), K = e.useCallback(
|
|
@@ -74,13 +73,13 @@ const he = (n) => {
|
|
|
74
73
|
X,
|
|
75
74
|
{
|
|
76
75
|
style: { maxWidth: "576px" },
|
|
77
|
-
title:
|
|
78
|
-
expanded:
|
|
76
|
+
title: E === "scatter" ? l.toLanguageString(H, r.formatXAxis) : l.toLanguageString(J, r.formatCategoryAxis),
|
|
77
|
+
expanded: k,
|
|
79
78
|
tabIndex: 0,
|
|
80
79
|
onAction: z
|
|
81
80
|
},
|
|
82
|
-
/* @__PURE__ */ e.createElement(
|
|
83
|
-
|
|
81
|
+
/* @__PURE__ */ e.createElement(D, null, /* @__PURE__ */ e.createElement(V, { onKeyDown: G }, /* @__PURE__ */ e.createElement(
|
|
82
|
+
h,
|
|
84
83
|
{
|
|
85
84
|
legend: l.toLanguageString(
|
|
86
85
|
Q,
|
|
@@ -94,7 +93,7 @@ const he = (n) => {
|
|
|
94
93
|
U,
|
|
95
94
|
r.formatCategoryAxisTitlePlaceholder
|
|
96
95
|
),
|
|
97
|
-
value: ((
|
|
96
|
+
value: ((u = t.categoryAxis[0].title) == null ? void 0 : u.text) || "",
|
|
98
97
|
onChange: P
|
|
99
98
|
}
|
|
100
99
|
)), /* @__PURE__ */ e.createElement(
|
|
@@ -114,7 +113,7 @@ const he = (n) => {
|
|
|
114
113
|
data: C,
|
|
115
114
|
textField: "text",
|
|
116
115
|
dataItemKey: "value",
|
|
117
|
-
itemRender:
|
|
116
|
+
itemRender: F,
|
|
118
117
|
placeholder: l.toLanguageString(
|
|
119
118
|
Z,
|
|
120
119
|
r.formatCategoryAxisTitleFontPlaceholder
|
|
@@ -125,7 +124,7 @@ const he = (n) => {
|
|
|
125
124
|
return a.value === ((i = y(((o = t.categoryAxis[0].title) == null ? void 0 : o.font) || "")) == null ? void 0 : i.name);
|
|
126
125
|
}
|
|
127
126
|
) || m,
|
|
128
|
-
onChange:
|
|
127
|
+
onChange: N,
|
|
129
128
|
...x
|
|
130
129
|
}
|
|
131
130
|
)
|
|
@@ -155,7 +154,7 @@ const he = (n) => {
|
|
|
155
154
|
return a.value === ((i = y(((o = t.categoryAxis[0].title) == null ? void 0 : o.font) || "")) == null ? void 0 : i.size);
|
|
156
155
|
}
|
|
157
156
|
) || m,
|
|
158
|
-
onChange:
|
|
157
|
+
onChange: I,
|
|
159
158
|
allowCustom: !0,
|
|
160
159
|
...x
|
|
161
160
|
}
|
|
@@ -170,18 +169,18 @@ const he = (n) => {
|
|
|
170
169
|
)
|
|
171
170
|
},
|
|
172
171
|
/* @__PURE__ */ e.createElement(
|
|
173
|
-
|
|
172
|
+
T,
|
|
174
173
|
{
|
|
175
174
|
id: "categoryAxisTitleColor",
|
|
176
175
|
view: "gradient",
|
|
177
|
-
value: ((
|
|
178
|
-
onChange:
|
|
176
|
+
value: ((f = t.categoryAxis[0].title) == null ? void 0 : f.color) || "",
|
|
177
|
+
onChange: R,
|
|
179
178
|
fillMode: "outline"
|
|
180
179
|
}
|
|
181
180
|
)
|
|
182
181
|
))
|
|
183
182
|
), /* @__PURE__ */ e.createElement(
|
|
184
|
-
|
|
183
|
+
h,
|
|
185
184
|
{
|
|
186
185
|
legend: l.toLanguageString(
|
|
187
186
|
te,
|
|
@@ -216,7 +215,7 @@ const he = (n) => {
|
|
|
216
215
|
}
|
|
217
216
|
) || m,
|
|
218
217
|
onChange: K,
|
|
219
|
-
itemRender:
|
|
218
|
+
itemRender: F,
|
|
220
219
|
...x
|
|
221
220
|
}
|
|
222
221
|
)
|
|
@@ -261,11 +260,11 @@ const he = (n) => {
|
|
|
261
260
|
)
|
|
262
261
|
},
|
|
263
262
|
/* @__PURE__ */ e.createElement(
|
|
264
|
-
|
|
263
|
+
T,
|
|
265
264
|
{
|
|
266
265
|
id: "categoryAxisLabelsColor",
|
|
267
266
|
view: "gradient",
|
|
268
|
-
value: ((
|
|
267
|
+
value: ((b = t.categoryAxis[0].labels) == null ? void 0 : b.color) || "",
|
|
269
268
|
onChange: M,
|
|
270
269
|
fillMode: "outline"
|
|
271
270
|
}
|
|
@@ -283,7 +282,7 @@ const he = (n) => {
|
|
|
283
282
|
j,
|
|
284
283
|
{
|
|
285
284
|
id: "categoryAxisLabelsRotation",
|
|
286
|
-
value: typeof ((
|
|
285
|
+
value: typeof ((L = t.categoryAxis[0].labels) == null ? void 0 : L.rotation) == "number" ? (S = t.categoryAxis[0].labels) == null ? void 0 : S.rotation : null,
|
|
287
286
|
placeholder: l.toLanguageString(
|
|
288
287
|
se,
|
|
289
288
|
r.formatCategoryAxisLabelsRotationAuto
|
|
@@ -306,9 +305,9 @@ const he = (n) => {
|
|
|
306
305
|
onChange: B
|
|
307
306
|
}
|
|
308
307
|
)))
|
|
309
|
-
)))
|
|
308
|
+
)))
|
|
310
309
|
);
|
|
311
310
|
};
|
|
312
311
|
export {
|
|
313
|
-
|
|
312
|
+
Le as CategoryAxisPanel
|
|
314
313
|
};
|
|
@@ -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 b=require("react"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),c=require("@progress/kendo-react-layout"),x=require("@progress/kendo-react-form"),d=require("../FormFieldSet.js"),l=require("../FormField.js"),s=require("@progress/kendo-react-inputs"),i=require("../../utils.js"),e=require("../../messages.js"),k=require("@progress/kendo-react-intl");function E(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const m=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(r,t,m.get?m:{enumerable:!0,get:()=>n[t]})}}return r.default=n,Object.freeze(r)}const a=E(b),F=n=>{var u;const r=k.useLocalization(),t=n.state,[m,h]=a.useState(!1),C=a.useCallback(o=>{h(!o.expanded)},[]),f=a.useCallback(o=>{n.onStateChange(i.updateState(t,i.ActionTypes.areaMarginLeft,o.target.value))},[t]),A=a.useCallback(o=>{n.onStateChange(i.updateState(t,i.ActionTypes.areaMarginRight,o.target.value))},[t]),p=a.useCallback(o=>{n.onStateChange(i.updateState(t,i.ActionTypes.areaMarginTop,o.target.value))},[t]),M=a.useCallback(o=>{n.onStateChange(i.updateState(t,i.ActionTypes.areaMarginBottom,o.target.value))},[t]),g=t.area.margin,S=a.useCallback(o=>{n.onStateChange(i.updateState(t,i.ActionTypes.areaBackground,o.value))},[t]);return a.createElement(c.ExpansionPanel,{style:{maxWidth:"576px"},title:r.toLanguageString(e.formatChartArea,e.messages.formatChartArea),expanded:m,tabIndex:0,onAction:C},a.createElement(c.ExpansionPanelContent,null,a.createElement(x.FormElement,{onKeyDown:i.stopPropagation},a.createElement(d.FormFieldSet,{legend:r.toLanguageString(e.formatChartAreaMargins,e.messages.formatChartAreaMargins)},a.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},a.createElement(l.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsLeft,e.messages.formatChartAreaMarginsLeft),editorId:"left"},a.createElement(s.NumericTextBox,{id:"left",value:g.left!==void 0?g.left:null,onChange:f,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),a.createElement(l.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsRight,e.messages.formatChartAreaMarginsRight),editorId:"right"},a.createElement(s.NumericTextBox,{id:"right",value:g.right!==void 0?g.right:null,onChange:A,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),a.createElement(l.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsTop,e.messages.formatChartAreaMarginsTop),editorId:"top"},a.createElement(s.NumericTextBox,{id:"top",value:g.top!==void 0?g.top:null,onChange:p,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),a.createElement(l.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsBottom,e.messages.formatChartAreaMarginsBottom),editorId:"bottom"},a.createElement(s.NumericTextBox,{id:"bottom",value:g.bottom!==void 0?g.bottom:null,onChange:M,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})))),a.createElement(d.FormFieldSet,{legend:r.toLanguageString(e.formatChartAreaBackground,e.messages.formatChartAreaBackground)},a.createElement(l.FormField,{labelText:r.toLanguageString(e.formatChartAreaBackgroundColor,e.messages.formatChartAreaBackgroundColor),editorId:"background"},a.createElement(s.ColorPicker,{id:"background",value:((u=t.area)==null?void 0:u.background)||"",onChange:S,view:"gradient",fillMode:"outline"}))))))};exports.ChartAreaPanel=F;
|
|
@@ -6,64 +6,60 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
|
-
import { ExpansionPanel as
|
|
9
|
+
import { ExpansionPanel as E, ExpansionPanelContent as S } from "@progress/kendo-react-layout";
|
|
10
10
|
import { FormElement as b } from "@progress/kendo-react-form";
|
|
11
|
-
import { FormFieldSet as
|
|
12
|
-
import { FormField as
|
|
13
|
-
import { NumericTextBox as u, ColorPicker as
|
|
14
|
-
import { updateState as i, ActionTypes as m, stopPropagation as
|
|
15
|
-
import { formatChartArea as B, messages as r, formatChartAreaMargins as T, formatChartAreaMarginsLeft as I, formatChartAreaMarginsAuto as
|
|
11
|
+
import { FormFieldSet as h } from "../FormFieldSet.mjs";
|
|
12
|
+
import { FormField as l } from "../FormField.mjs";
|
|
13
|
+
import { NumericTextBox as u, ColorPicker as L } from "@progress/kendo-react-inputs";
|
|
14
|
+
import { updateState as i, ActionTypes as m, stopPropagation as v } from "../../utils.mjs";
|
|
15
|
+
import { formatChartArea as B, messages as r, formatChartAreaMargins as T, formatChartAreaMarginsLeft as I, formatChartAreaMarginsAuto as d, formatChartAreaMarginsRight as F, formatChartAreaMarginsTop as P, formatChartAreaMarginsBottom as R, formatChartAreaBackground as y, formatChartAreaBackgroundColor as w } from "../../messages.mjs";
|
|
16
16
|
import { useLocalization as z } from "@progress/kendo-react-intl";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const e = z(), t = l.state, [d, s] = a.useState(!1), f = a.useCallback((o) => {
|
|
17
|
+
const J = (g) => {
|
|
18
|
+
var c;
|
|
19
|
+
const e = z(), t = g.state, [C, s] = a.useState(!1), f = a.useCallback((o) => {
|
|
21
20
|
s(!o.expanded);
|
|
22
21
|
}, []), A = a.useCallback(
|
|
23
22
|
(o) => {
|
|
24
|
-
|
|
23
|
+
g.onStateChange(i(t, m.areaMarginLeft, o.target.value));
|
|
25
24
|
},
|
|
26
25
|
[t]
|
|
27
|
-
),
|
|
26
|
+
), M = a.useCallback(
|
|
28
27
|
(o) => {
|
|
29
|
-
|
|
28
|
+
g.onStateChange(i(t, m.areaMarginRight, o.target.value));
|
|
30
29
|
},
|
|
31
30
|
[t]
|
|
32
|
-
),
|
|
31
|
+
), p = a.useCallback(
|
|
33
32
|
(o) => {
|
|
34
|
-
|
|
33
|
+
g.onStateChange(i(t, m.areaMarginTop, o.target.value));
|
|
35
34
|
},
|
|
36
35
|
[t]
|
|
37
36
|
), x = a.useCallback(
|
|
38
37
|
(o) => {
|
|
39
|
-
|
|
38
|
+
g.onStateChange(i(t, m.areaMarginBottom, o.target.value));
|
|
40
39
|
},
|
|
41
40
|
[t]
|
|
42
|
-
), n = t.area.margin,
|
|
41
|
+
), n = t.area.margin, k = a.useCallback(
|
|
43
42
|
(o) => {
|
|
44
|
-
|
|
43
|
+
g.onStateChange(i(t, m.areaBackground, o.value));
|
|
45
44
|
},
|
|
46
45
|
[t]
|
|
47
46
|
);
|
|
48
47
|
return /* @__PURE__ */ a.createElement(
|
|
49
|
-
|
|
48
|
+
E,
|
|
50
49
|
{
|
|
51
50
|
style: { maxWidth: "576px" },
|
|
52
51
|
title: e.toLanguageString(B, r.formatChartArea),
|
|
53
|
-
expanded:
|
|
52
|
+
expanded: C,
|
|
54
53
|
tabIndex: 0,
|
|
55
54
|
onAction: f
|
|
56
55
|
},
|
|
57
|
-
/* @__PURE__ */ a.createElement(
|
|
58
|
-
|
|
56
|
+
/* @__PURE__ */ a.createElement(S, null, /* @__PURE__ */ a.createElement(b, { onKeyDown: v }, /* @__PURE__ */ a.createElement(
|
|
57
|
+
h,
|
|
59
58
|
{
|
|
60
|
-
legend: e.toLanguageString(
|
|
61
|
-
T,
|
|
62
|
-
r.formatChartAreaMargins
|
|
63
|
-
)
|
|
59
|
+
legend: e.toLanguageString(T, r.formatChartAreaMargins)
|
|
64
60
|
},
|
|
65
61
|
/* @__PURE__ */ a.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ a.createElement(
|
|
66
|
-
|
|
62
|
+
l,
|
|
67
63
|
{
|
|
68
64
|
labelText: e.toLanguageString(
|
|
69
65
|
I,
|
|
@@ -78,7 +74,7 @@ const Q = (l) => {
|
|
|
78
74
|
value: n.left !== void 0 ? n.left : null,
|
|
79
75
|
onChange: A,
|
|
80
76
|
placeholder: e.toLanguageString(
|
|
81
|
-
|
|
77
|
+
d,
|
|
82
78
|
r.formatChartAreaMarginsAuto
|
|
83
79
|
),
|
|
84
80
|
min: 0,
|
|
@@ -88,10 +84,10 @@ const Q = (l) => {
|
|
|
88
84
|
}
|
|
89
85
|
)
|
|
90
86
|
), /* @__PURE__ */ a.createElement(
|
|
91
|
-
|
|
87
|
+
l,
|
|
92
88
|
{
|
|
93
89
|
labelText: e.toLanguageString(
|
|
94
|
-
|
|
90
|
+
F,
|
|
95
91
|
r.formatChartAreaMarginsRight
|
|
96
92
|
),
|
|
97
93
|
editorId: "right"
|
|
@@ -101,9 +97,9 @@ const Q = (l) => {
|
|
|
101
97
|
{
|
|
102
98
|
id: "right",
|
|
103
99
|
value: n.right !== void 0 ? n.right : null,
|
|
104
|
-
onChange:
|
|
100
|
+
onChange: M,
|
|
105
101
|
placeholder: e.toLanguageString(
|
|
106
|
-
|
|
102
|
+
d,
|
|
107
103
|
r.formatChartAreaMarginsAuto
|
|
108
104
|
),
|
|
109
105
|
min: 0,
|
|
@@ -113,10 +109,10 @@ const Q = (l) => {
|
|
|
113
109
|
}
|
|
114
110
|
)
|
|
115
111
|
), /* @__PURE__ */ a.createElement(
|
|
116
|
-
|
|
112
|
+
l,
|
|
117
113
|
{
|
|
118
114
|
labelText: e.toLanguageString(
|
|
119
|
-
|
|
115
|
+
P,
|
|
120
116
|
r.formatChartAreaMarginsTop
|
|
121
117
|
),
|
|
122
118
|
editorId: "top"
|
|
@@ -126,9 +122,9 @@ const Q = (l) => {
|
|
|
126
122
|
{
|
|
127
123
|
id: "top",
|
|
128
124
|
value: n.top !== void 0 ? n.top : null,
|
|
129
|
-
onChange:
|
|
125
|
+
onChange: p,
|
|
130
126
|
placeholder: e.toLanguageString(
|
|
131
|
-
|
|
127
|
+
d,
|
|
132
128
|
r.formatChartAreaMarginsAuto
|
|
133
129
|
),
|
|
134
130
|
min: 0,
|
|
@@ -138,10 +134,10 @@ const Q = (l) => {
|
|
|
138
134
|
}
|
|
139
135
|
)
|
|
140
136
|
), /* @__PURE__ */ a.createElement(
|
|
141
|
-
|
|
137
|
+
l,
|
|
142
138
|
{
|
|
143
139
|
labelText: e.toLanguageString(
|
|
144
|
-
|
|
140
|
+
R,
|
|
145
141
|
r.formatChartAreaMarginsBottom
|
|
146
142
|
),
|
|
147
143
|
editorId: "bottom"
|
|
@@ -153,7 +149,7 @@ const Q = (l) => {
|
|
|
153
149
|
value: n.bottom !== void 0 ? n.bottom : null,
|
|
154
150
|
onChange: x,
|
|
155
151
|
placeholder: e.toLanguageString(
|
|
156
|
-
|
|
152
|
+
d,
|
|
157
153
|
r.formatChartAreaMarginsAuto
|
|
158
154
|
),
|
|
159
155
|
min: 0,
|
|
@@ -164,7 +160,7 @@ const Q = (l) => {
|
|
|
164
160
|
)
|
|
165
161
|
))
|
|
166
162
|
), /* @__PURE__ */ a.createElement(
|
|
167
|
-
|
|
163
|
+
h,
|
|
168
164
|
{
|
|
169
165
|
legend: e.toLanguageString(
|
|
170
166
|
y,
|
|
@@ -172,7 +168,7 @@ const Q = (l) => {
|
|
|
172
168
|
)
|
|
173
169
|
},
|
|
174
170
|
/* @__PURE__ */ a.createElement(
|
|
175
|
-
|
|
171
|
+
l,
|
|
176
172
|
{
|
|
177
173
|
labelText: e.toLanguageString(
|
|
178
174
|
w,
|
|
@@ -181,19 +177,19 @@ const Q = (l) => {
|
|
|
181
177
|
editorId: "background"
|
|
182
178
|
},
|
|
183
179
|
/* @__PURE__ */ a.createElement(
|
|
184
|
-
|
|
180
|
+
L,
|
|
185
181
|
{
|
|
186
182
|
id: "background",
|
|
187
|
-
value: ((
|
|
188
|
-
onChange:
|
|
183
|
+
value: ((c = t.area) == null ? void 0 : c.background) || "",
|
|
184
|
+
onChange: k,
|
|
189
185
|
view: "gradient",
|
|
190
186
|
fillMode: "outline"
|
|
191
187
|
}
|
|
192
188
|
)
|
|
193
189
|
)
|
|
194
|
-
)))
|
|
190
|
+
)))
|
|
195
191
|
);
|
|
196
192
|
};
|
|
197
193
|
export {
|
|
198
|
-
|
|
194
|
+
J as ChartAreaPanel
|
|
199
195
|
};
|
|
@@ -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 T=require("react"),b=require("@progress/kendo-react-
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),b=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-layout"),t=require("../../utils.js"),f=require("../SeriesTypesWrap.js"),l=require("../SeriesTypeButton.js"),c=require("../../messages.js"),u=require("@progress/kendo-svg-icons");function x(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 o=x(T),E=n=>{const a=b.useLocalization(),e=n.state,s=e.seriesType,{isStackFalse:m,isStackNormal:S,isStack100:d}=t.stackState(e),[C,g]=o.useState(!0),k=o.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 o.createElement(i.ExpansionPanel,{style:{maxWidth:"576px"},title:a.toLanguageString(c.columnChart,c.messages.columnChart),expanded:C,tabIndex:0,onAction:k},o.createElement(i.ExpansionPanelContent,null,o.createElement(f.SeriesTypesWrap,null,o.createElement(l.SeriesTypeButton,{selected:s==="column"&&m,onClick:p,icon:u.chartColumnClusteredIcon,iconName:"chart-column-clustered"},a.toLanguageString(c.columnChartColumn,c.messages.columnChartColumn)),o.createElement(l.SeriesTypeButton,{selected:s==="column"&&S,onClick:h,icon:u.chartColumnStackedIcon,iconName:"chart-column-stacked"},a.toLanguageString(c.columnChartStackedColumn,c.messages.columnChartStackedColumn)),o.createElement(l.SeriesTypeButton,{selected:s==="column"&&d,onClick:y,icon:u.chartColumnStacked100Icon,iconName:"chart-column-stacked100"},a.toLanguageString(c.columnChart100StackedColumn,c.messages.columnChart100StackedColumn)))))};exports.ColumnChartPanel=E;
|