@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.
@@ -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 t from "react";
9
- import { Reveal as f } from "@progress/kendo-react-animation";
10
- import { useLocalization as y } from "@progress/kendo-react-intl";
11
- import { ExpansionPanel as T, ExpansionPanelContent as L } from "@progress/kendo-react-layout";
12
- 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";
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 b, messages as c, columnChartColumn as w, columnChartStackedColumn as z, columnChart100StackedColumn as R } from "../../messages.mjs";
16
- import { chartColumnClusteredIcon as W, chartColumnStackedIcon as v, chartColumnStacked100Icon as B } from "@progress/kendo-svg-icons";
17
- const M = (a) => {
18
- const o = y(), e = a.state, l = e.seriesType, { isStackFalse: d, isStackNormal: S, isStack100: h } = N(e), [u, k] = t.useState(!0), p = t.useCallback((n) => {
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(e, r(e.data, "column")));
20
+ a.onStateChange(m(t, r(t.data, "column")));
22
21
  }, x = () => {
23
- const n = m(e, r(e.data, "column"));
24
- a.onStateChange(i(n, C.stacked, I));
25
- }, E = () => {
26
- const n = m(e, r(e.data, "column"));
27
- a.onStateChange(i(n, C.stacked, A));
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__ */ t.createElement(
30
- T,
28
+ return /* @__PURE__ */ e.createElement(
29
+ f,
31
30
  {
32
31
  style: { maxWidth: "576px" },
33
- title: o.toLanguageString(b, c.columnChart),
34
- expanded: u,
32
+ title: o.toLanguageString(P, c.columnChart),
33
+ expanded: h,
35
34
  tabIndex: 0,
36
35
  onAction: p
37
36
  },
38
- /* @__PURE__ */ t.createElement(f, null, u && /* @__PURE__ */ t.createElement(L, null, /* @__PURE__ */ t.createElement(P, null, /* @__PURE__ */ t.createElement(
37
+ /* @__PURE__ */ e.createElement(T, null, /* @__PURE__ */ e.createElement(A, null, /* @__PURE__ */ e.createElement(
39
38
  s,
40
39
  {
41
- selected: l === "column" && d,
40
+ selected: l === "column" && C,
42
41
  onClick: g,
43
42
  icon: W,
44
43
  iconName: "chart-column-clustered"
45
44
  },
46
- o.toLanguageString(w, c.columnChartColumn)
47
- ), /* @__PURE__ */ t.createElement(
45
+ o.toLanguageString(b, c.columnChartColumn)
46
+ ), /* @__PURE__ */ e.createElement(
48
47
  s,
49
48
  {
50
- selected: l === "column" && S,
49
+ selected: l === "column" && d,
51
50
  onClick: x,
52
- icon: v,
51
+ icon: B,
53
52
  iconName: "chart-column-stacked"
54
53
  },
55
- o.toLanguageString(
56
- z,
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" && h,
63
- onClick: E,
64
- icon: B,
58
+ selected: l === "column" && S,
59
+ onClick: y,
60
+ icon: F,
65
61
  iconName: "chart-column-stacked100"
66
62
  },
67
63
  o.toLanguageString(
68
- R,
64
+ z,
69
65
  c.columnChart100StackedColumn
70
66
  )
71
- ))))
67
+ )))
72
68
  );
73
69
  };
74
70
  export {
75
- M as ColumnChartPanel
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"),u=require("@progress/kendo-react-layout"),a=require("../../utils.js"),c=require("../FormFieldSet.js"),y=require("@progress/kendo-react-intl"),o=require("../../messages.js"),g=require("@progress/kendo-react-dropdowns"),A=require("../SeriesGrid.js"),E=require("@progress/kendo-react-animation");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),F=n=>{const i=y.useLocalization(),e=n.state,s=e.seriesType,[l,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(u.ExpansionPanel,{style:{maxWidth:"576px"},title:i.toLanguageString(o.configuration,o.messages.configuration),expanded:l,tabIndex:0,onAction:m},t.createElement(E.Reveal,null,l&&t.createElement(u.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(g.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(g.DropDownList,{data:e.columns||[],value:e.valueField||"",...a.dropdownlistCommonProps,onChange:S}))))))};exports.ConfigurationPanel=F;
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 E, ExpansionPanelContent as A } from "@progress/kendo-react-layout";
11
- import { updateState as s, ActionTypes as l, stopPropagation as h, dropdownlistCommonProps as u, isCategorical as y } from "../../utils.mjs";
12
- import { FormFieldSet as g } from "../FormFieldSet.mjs";
13
- import { useLocalization as v } from "@progress/kendo-react-intl";
14
- import { configuration as L, messages as o, configurationXAxis as b, configurationCategoryAxis as F, configurationSeries as P, configurationValueAxis as k } from "../../messages.mjs";
15
- import { DropDownList as m } from "@progress/kendo-react-dropdowns";
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
- import { Reveal as w } from "@progress/kendo-react-animation";
18
- const Y = (i) => {
19
- const a = v(), t = i.state, r = t.seriesType, [c, f] = e.useState(!0), C = e.useCallback((n) => {
20
- f(!n.expanded);
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, l.categoryAxisX, n.target.value));
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, l.seriesChange, n));
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, l.valueAxisY, n.target.value));
32
+ i.onStateChange(s(t, g.valueAxisY, n.target.value));
34
33
  },
35
34
  [t]
36
35
  );
37
36
  return /* @__PURE__ */ e.createElement(
38
- E,
37
+ A,
39
38
  {
40
39
  style: { maxWidth: "576px" },
41
- title: a.toLanguageString(L, o.configuration),
42
- expanded: c,
40
+ title: a.toLanguageString(v, o.configuration),
41
+ expanded: m,
43
42
  tabIndex: 0,
44
- onAction: C
43
+ onAction: d
45
44
  },
46
- /* @__PURE__ */ e.createElement(w, null, c && /* @__PURE__ */ e.createElement(A, null, /* @__PURE__ */ e.createElement(S, { onKeyDown: h }, /* @__PURE__ */ e.createElement(
47
- g,
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
- m,
54
+ u,
56
55
  {
57
56
  data: t.columns || [],
58
57
  value: t.categoryField,
59
- onChange: d,
60
- ...u
58
+ onChange: f,
59
+ ...c
61
60
  }
62
61
  )
63
62
  ), y(r) && /* @__PURE__ */ e.createElement(
64
- g,
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
- g,
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
- m,
84
+ u,
89
85
  {
90
86
  data: t.columns || [],
91
87
  value: t.valueField || "",
92
- ...u,
88
+ ...c,
93
89
  onChange: x
94
90
  }
95
91
  )
96
- ))))
92
+ )))
97
93
  );
98
94
  };
99
95
  export {
100
- Y as ConfigurationPanel
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"),R=require("@progress/kendo-react-form"),T=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"),N=require("@progress/kendo-react-animation");function A(s){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(l,n,d.get?d:{enumerable:!0,get:()=>s[n]})}}return l.default=s,Object.freeze(l)}const a=A(w),D=s=>{var L,f,S,b,p,v,h;const l=q.useLocalization(),n=s.state,[d,F]=a.useState(!1),x=a.useCallback(o=>{F(!o.expanded)},[]),u=[{value:"top",text:l.toLanguageString(t.formatLegendPositionTop,t.messages.formatLegendPositionTop)},{value:"bottom",text:l.toLanguageString(t.formatLegendPositionBottom,t.messages.formatLegendPositionBottom)},{value:"left",text:l.toLanguageString(t.formatLegendPositionLeft,t.messages.formatLegendPositionLeft)},{value:"right",text:l.toLanguageString(t.formatLegendPositionRight,t.messages.formatLegendPositionRight)}],E=o=>{s.onStateChange(e.updateState(n,e.ActionTypes.legendVisible,o.value))},y=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 a.createElement(C.ExpansionPanel,{style:{maxWidth:"576px"},title:l.toLanguageString(t.formatLegend,t.messages.formatLegend),expanded:d,tabIndex:0,onAction:x},a.createElement(N.Reveal,null,d&&a.createElement(C.ExpansionPanelContent,null,a.createElement(R.FormElement,{onKeyDown:e.stopPropagation},a.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},a.createElement(T.Label,{editorId:"show-legend"},l.toLanguageString(t.formatLegendShowLegend,t.messages.formatLegendShowLegend)),a.createElement(P.Switch,{id:"show-legend",checked:(L=n.legend)==null?void 0:L.visible,onChange:E}),a.createElement(m.FormField,{className:"k-col-span-2",editorId:"legendLabelsFont",labelText:l.toLanguageString(t.formatLegendFont,t.messages.formatLegendFont)},a.createElement(c.ComboBox,{id:"legendLabelsFont",data:e.fontNames,textField:"text",dataItemKey:"value",placeholder:l.toLanguageString(t.formatLegendFontPlaceholder,t.messages.formatLegendFontPlaceholder),value:e.fontNames.find(o=>{var i,g,r;return o.value===((r=e.parseFont(((g=(i=n.legend)==null?void 0:i.labels)==null?void 0:g.font)||""))==null?void 0:r.name)})||e.nullItem,onChange:k,itemRender:e.itemRender,disabled:((f=n.legend)==null?void 0:f.visible)===!1,...e.dropdownlistCommonProps})),a.createElement(m.FormField,{editorId:"legendLabelsSize",labelText:l.toLanguageString(t.formatLegendSize,t.messages.formatLegendSize)},a.createElement(c.ComboBox,{id:"legendLabelsSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:l.toLanguageString(t.formatLegendSizePlaceholder,t.messages.formatLegendSizePlaceholder),value:e.fontSizes.find(o=>{var i,g,r;return o.value===((r=e.parseFont(((g=(i=n.legend)==null?void 0:i.labels)==null?void 0:g.font)||""))==null?void 0:r.size)})||e.nullItem,onChange:y,disabled:((S=n.legend)==null?void 0:S.visible)===!1,allowCustom:!0,...e.dropdownlistCommonProps})),a.createElement(m.FormField,{editorId:"legendLabelsColor",labelText:l.toLanguageString(t.formatLegendColor,t.messages.formatLegendColor)},a.createElement(P.ColorPicker,{id:"legendLabelsColor",value:((p=(b=n.legend)==null?void 0:b.labels)==null?void 0:p.color)||"",onChange:z,disabled:((v=n.legend)==null?void 0:v.visible)===!1,view:"gradient",fillMode:"outline"})),a.createElement(m.FormField,{className:"k-col-span-2",editorId:"legendPosition",labelText:l.toLanguageString(t.formatLegendPosition,t.messages.formatLegendPosition)},a.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:((h=n.legend)==null?void 0:h.visible)===!1,...e.dropdownlistCommonProps})))))))};exports.LegendPanel=D;
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 K, ExpansionPanelContent as A } from "@progress/kendo-react-layout";
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 s } from "../FormField.mjs";
13
- import { ComboBox as P, DropDownList as V } from "@progress/kendo-react-dropdowns";
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 E, parseFont as F, fontSizes as z, updateState as r, ActionTypes as m, ensureValue as ne } from "../../utils.mjs";
18
- import { Reveal as oe } from "@progress/kendo-react-animation";
19
- const ce = (i) => {
20
- var S, h, v, b, p, C, x;
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
- }, []), u = [
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, m.legendVisible, e.value));
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, m.legendFontSize, n.value));
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, m.legendFontName, n.value));
46
+ i.onStateChange(r(o, s.legendFontName, n.value));
48
47
  }, T = (e) => {
49
- i.onStateChange(r(o, m.legendColor, e.value));
50
- }, R = (e) => {
48
+ i.onStateChange(r(o, s.legendColor, e.value));
49
+ }, K = (e) => {
51
50
  const n = e.target.value;
52
- i.onStateChange(r(o, m.legendPosition, n.value));
51
+ i.onStateChange(r(o, s.legendPosition, n.value));
53
52
  };
54
53
  return /* @__PURE__ */ t.createElement(
55
- K,
54
+ R,
56
55
  {
57
56
  style: { maxWidth: "576px" },
58
57
  title: a.toLanguageString(O, l.formatLegend),
59
- expanded: c,
58
+ expanded: z,
60
59
  tabIndex: 0,
61
60
  onAction: I
62
61
  },
63
- /* @__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(
64
- Q,
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
- P,
70
+ x,
85
71
  {
86
72
  id: "legendLabelsFont",
87
- data: E,
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: E.find(
80
+ value: P.find(
95
81
  (e) => {
96
82
  var n, d, g;
97
- return e.value === ((g = F(((d = (n = o.legend) == null ? void 0 : n.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : g.name);
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: ((h = o.legend) == null ? void 0 : h.visible) === !1,
88
+ disabled: ((S = o.legend) == null ? void 0 : S.visible) === !1,
103
89
  ...f
104
90
  }
105
91
  )
106
92
  ), /* @__PURE__ */ t.createElement(
107
- s,
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
- P,
99
+ x,
117
100
  {
118
101
  id: "legendLabelsSize",
119
- data: z,
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: z.find(
109
+ value: F.find(
127
110
  (e) => {
128
111
  var n, d, g;
129
- return e.value === ((g = F(((d = (n = o.legend) == null ? void 0 : n.labels) == null ? void 0 : d.font) || "")) == null ? void 0 : g.size);
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: ((v = o.legend) == null ? void 0 : v.visible) === !1,
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
- s,
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: ((p = (b = o.legend) == null ? void 0 : b.labels) == null ? void 0 : p.color) || "",
131
+ value: ((v = (b = o.legend) == null ? void 0 : b.labels) == null ? void 0 : v.color) || "",
152
132
  onChange: T,
153
- disabled: ((C = o.legend) == null ? void 0 : C.visible) === !1,
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
- s,
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: u,
152
+ data: c,
173
153
  textField: "text",
174
154
  dataItemKey: "value",
175
- value: u.find((e) => {
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: R,
180
- disabled: ((x = o.legend) == null ? void 0 : x.visible) === !1,
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
- ce as LegendPanel
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-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;
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 e from "react";
9
- import { Reveal as E } from "@progress/kendo-react-animation";
10
- import { useLocalization as f } from "@progress/kendo-react-intl";
11
- import { ExpansionPanel as y, ExpansionPanelContent as T } from "@progress/kendo-react-layout";
12
- import { stackState as N, mergeStates as r, createState as s, updateState as S, ActionTypes as d, stackNormal as I, stack100 as A } from "../../utils.mjs";
13
- import { lineChart as P, messages as c, lineChartLine as b, lineChartStackedLine as w, lineChart100StackedLine as z } from "../../messages.mjs";
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 v, chartLineStacked100Icon as B } from "@progress/kendo-svg-icons";
17
- const M = (a) => {
18
- const i = f(), t = a.state, o = t.seriesType, { isStackFalse: h, isStackNormal: k, isStack100: p } = N(t), [m, L] = e.useState(!0), C = e.useCallback((n) => {
19
- L(!n.expanded);
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(t, s(t.data, "line")));
20
+ a.onStateChange(r(e, s(e.data, "line")));
22
21
  }, u = () => {
23
- const n = r(t, s(t.data, "line"));
24
- a.onStateChange(S(n, d.stacked, I));
22
+ const n = r(e, s(e.data, "line"));
23
+ a.onStateChange(m(n, S.stacked, N));
25
24
  }, x = () => {
26
- const n = r(t, s(t.data, "line"));
27
- a.onStateChange(S(n, d.stacked, A));
25
+ const n = r(e, s(e.data, "line"));
26
+ a.onStateChange(m(n, S.stacked, I));
28
27
  };
29
- return /* @__PURE__ */ e.createElement(
30
- y,
28
+ return /* @__PURE__ */ t.createElement(
29
+ E,
31
30
  {
32
31
  style: { maxWidth: "576px" },
33
- title: i.toLanguageString(P, c.lineChart),
34
- expanded: m,
32
+ title: i.toLanguageString(A, c.lineChart),
33
+ expanded: L,
35
34
  tabIndex: 0,
36
35
  onAction: C
37
36
  },
38
- /* @__PURE__ */ e.createElement(E, null, m && /* @__PURE__ */ e.createElement(T, null, /* @__PURE__ */ e.createElement(R, null, /* @__PURE__ */ e.createElement(
37
+ /* @__PURE__ */ t.createElement(f, null, /* @__PURE__ */ t.createElement(z, null, /* @__PURE__ */ t.createElement(
39
38
  l,
40
39
  {
41
- selected: o === "line" && h,
40
+ selected: o === "line" && d,
42
41
  onClick: g,
43
42
  icon: W,
44
43
  iconName: "chart-line"
45
44
  },
46
- i.toLanguageString(b, c.lineChartLine)
47
- ), /* @__PURE__ */ e.createElement(
45
+ i.toLanguageString(P, c.lineChartLine)
46
+ ), /* @__PURE__ */ t.createElement(
48
47
  l,
49
48
  {
50
- selected: o === "line" && k,
49
+ selected: o === "line" && h,
51
50
  onClick: u,
52
- icon: v,
51
+ icon: B,
53
52
  iconName: "chart-line-stacked"
54
53
  },
55
- i.toLanguageString(w, c.lineChartStackedLine)
56
- ), /* @__PURE__ */ e.createElement(
54
+ i.toLanguageString(b, c.lineChartStackedLine)
55
+ ), /* @__PURE__ */ t.createElement(
57
56
  l,
58
57
  {
59
- selected: o === "line" && p,
58
+ selected: o === "line" && k,
60
59
  onClick: x,
61
- icon: B,
60
+ icon: F,
62
61
  iconName: "chart-line-stacked100"
63
62
  },
64
- i.toLanguageString(
65
- z,
66
- c.lineChart100StackedLine
67
- )
68
- ))))
63
+ i.toLanguageString(w, c.lineChart100StackedLine)
64
+ )))
69
65
  );
70
66
  };
71
67
  export {
72
- M as LineChartPanel
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"),m=require("@progress/kendo-react-animation"),P=require("@progress/kendo-react-intl"),s=require("@progress/kendo-react-layout"),c=require("../../utils.js"),i=require("../../messages.js"),S=require("../SeriesTypesWrap.js"),y=require("../SeriesTypeButton.js"),h=require("@progress/kendo-svg-icons");function C(e){const a=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(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=C(g),b=e=>{const a=P.useLocalization(),t=e.state,r=t.seriesType,[o,l]=n.useState(!0),u=n.useCallback(d=>{l(!d.expanded)},[]),p=()=>{e.onStateChange(c.mergeStates(t,c.createState(t.data,"pie")))};return n.createElement(s.ExpansionPanel,{style:{maxWidth:"576px"},title:a.toLanguageString(i.pieChart,i.messages.pieChart),expanded:o,tabIndex:0,onAction:u},n.createElement(m.Reveal,null,o&&n.createElement(s.ExpansionPanelContent,null,n.createElement(S.SeriesTypesWrap,null,n.createElement(y.SeriesTypeButton,{selected:r==="pie",onClick:p,icon:h.chartPieIcon,iconName:"chart-pie"},a.toLanguageString(i.pieChartPie,i.messages.pieChartPie))))))};exports.PieChartPanel=b;
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;