@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,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 a from "react";
9
- import { Reveal as x } from "@progress/kendo-react-animation";
10
- import { useLocalization as E } from "@progress/kendo-react-intl";
11
- import { ExpansionPanel as f, ExpansionPanelContent as y } from "@progress/kendo-react-layout";
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 L, mergeStates as i, createState as l, updateState as d, ActionTypes as S, stackNormal as N, stack100 as I } from "../../utils.mjs";
15
- import { barChart as A, messages as c, barChartBar as P, barChartStackedBar as w, barChart100StackedBar as z } from "../../messages.mjs";
16
- import { chartBarClusteredIcon as R, chartBarStackedIcon as W, chartBarStacked100Icon as v } from "@progress/kendo-svg-icons";
17
- const M = (r) => {
18
- const n = E(), t = r.state, o = t.seriesType, { isStackFalse: h, isStackNormal: k, isStack100: p } = L(t), [m, C] = a.useState(!0), b = a.useCallback((e) => {
19
- C(!e.expanded);
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(t, l(t.data, "bar")));
20
+ r.onStateChange(i(a, d(a.data, "bar")));
22
21
  }, B = () => {
23
- const e = i(t, l(t.data, "bar"));
24
- r.onStateChange(d(e, S.stacked, N));
22
+ const e = i(a, d(a.data, "bar"));
23
+ r.onStateChange(l(e, m.stacked, L));
25
24
  }, u = () => {
26
- const e = i(t, l(t.data, "bar"));
27
- r.onStateChange(d(e, S.stacked, I));
25
+ const e = i(a, d(a.data, "bar"));
26
+ r.onStateChange(l(e, m.stacked, N));
28
27
  };
29
- return /* @__PURE__ */ a.createElement(
30
- f,
28
+ return /* @__PURE__ */ t.createElement(
29
+ y,
31
30
  {
32
31
  style: { maxWidth: "576px" },
33
- title: n.toLanguageString(A, c.barChart),
34
- expanded: m,
32
+ title: n.toLanguageString(I, c.barChart),
33
+ expanded: C,
35
34
  tabIndex: 0,
36
35
  onAction: b
37
36
  },
38
- /* @__PURE__ */ a.createElement(x, null, m && /* @__PURE__ */ a.createElement(y, null, /* @__PURE__ */ a.createElement(T, null, /* @__PURE__ */ a.createElement(
37
+ /* @__PURE__ */ t.createElement(E, null, /* @__PURE__ */ t.createElement(f, null, /* @__PURE__ */ t.createElement(
39
38
  s,
40
39
  {
41
- selected: o === "bar" && h,
40
+ selected: o === "bar" && S,
42
41
  onClick: g,
43
- icon: R,
42
+ icon: z,
44
43
  iconName: "chart-bar-clustered"
45
44
  },
46
- n.toLanguageString(P, c.barChartBar)
47
- ), /* @__PURE__ */ a.createElement(
45
+ n.toLanguageString(A, c.barChartBar)
46
+ ), /* @__PURE__ */ t.createElement(
48
47
  s,
49
48
  {
50
- selected: o === "bar" && k,
49
+ selected: o === "bar" && h,
51
50
  onClick: B,
52
51
  icon: W,
53
52
  iconName: "chart-bar-stacked"
54
53
  },
55
- n.toLanguageString(w, c.barChartStackedBar)
56
- ), /* @__PURE__ */ a.createElement(
54
+ n.toLanguageString(P, c.barChartStackedBar)
55
+ ), /* @__PURE__ */ t.createElement(
57
56
  s,
58
57
  {
59
- selected: o === "bar" && p,
58
+ selected: o === "bar" && k,
60
59
  onClick: u,
61
- icon: v,
60
+ icon: F,
62
61
  iconName: "chart-bar-stacked100"
63
62
  },
64
- n.toLanguageString(z, c.barChart100StackedBar)
65
- ))))
63
+ n.toLanguageString(w, c.barChart100StackedBar)
64
+ )))
66
65
  );
67
66
  };
68
67
  export {
69
- M as BarChartPanel
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 I=require("react"),b=require("@progress/kendo-react-layout"),N=require("@progress/kendo-react-form"),S=require("../FormFieldSet.js"),g=require("../FormField.js"),c=require("@progress/kendo-react-inputs"),e=require("../../utils.js"),a=require("../../messages.js"),q=require("@progress/kendo-react-intl"),w=require("@progress/kendo-react-animation"),d=require("@progress/kendo-react-dropdowns");function O(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 t=O(I),j=s=>{var x,C,y,A,f;const n=q.useLocalization(),o=s.state,m=o.seriesType,[u,F]=t.useState(!1),L=t.useCallback(l=>{F(!l.expanded)},[]),T=t.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleText,l.target.value))},[o]),p=t.useCallback(l=>{const r=l.target.value||e.nullItem;e.ensureValue(r)&&s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleFontSize,r.value))},[o]),h=t.useCallback(l=>{const r=l.target.value||e.nullItem;s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleFontName,r.value))},[o]),v=t.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisTitleColor,l.value))},[o]),k=t.useCallback(l=>{const r=l.target.value||e.nullItem;e.ensureValue(r)&&s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsFontSize,r.value))},[o]),E=t.useCallback(l=>{const r=l.target.value||e.nullItem;s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsFontName,r.value))},[o]),z=t.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsColor,l.value))},[o]),R=t.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisLabelsRotation,l.target.value))},[o]),P=t.useCallback(l=>{s.onStateChange(e.updateState(o,e.ActionTypes.categoryAxisReverseOrder,l.value))},[o]);return t.createElement(b.ExpansionPanel,{style:{maxWidth:"576px"},title:m==="scatter"?n.toLanguageString(a.formatXAxis,a.messages.formatXAxis):n.toLanguageString(a.formatCategoryAxis,a.messages.formatCategoryAxis),expanded:u,tabIndex:0,onAction:L},t.createElement(w.Reveal,null,u&&t.createElement(b.ExpansionPanelContent,null,t.createElement(N.FormElement,{onKeyDown:e.stopPropagation},t.createElement(S.FormFieldSet,{legend:n.toLanguageString(a.formatCategoryAxisTitle,a.messages.formatCategoryAxisTitle)},t.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},t.createElement(g.FormField,{className:"k-col-span-2"},t.createElement(c.Input,{placeholder:n.toLanguageString(a.formatCategoryAxisTitlePlaceholder,a.messages.formatCategoryAxisTitlePlaceholder),value:((x=o.categoryAxis[0].title)==null?void 0:x.text)||"",onChange:T})),t.createElement(g.FormField,{className:"k-col-span-2",editorId:"categoryAxisTitleFont",labelText:n.toLanguageString(a.formatCategoryAxisTitleFont,a.messages.formatCategoryAxisTitleFont)},t.createElement(d.ComboBox,{id:"categoryAxisTitleFont",data:e.fontNames,textField:"text",dataItemKey:"value",itemRender:e.itemRender,placeholder:n.toLanguageString(a.formatCategoryAxisTitleFontPlaceholder,a.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})),t.createElement(g.FormField,{editorId:"categoryAxisTitleFontSize",labelText:n.toLanguageString(a.formatCategoryAxisTitleSize,a.messages.formatCategoryAxisTitleSize)},t.createElement(d.ComboBox,{id:"categoryAxisTitleFontSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:n.toLanguageString(a.formatCategoryAxisTitleSizePlaceholder,a.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})),t.createElement(g.FormField,{editorId:"categoryAxisTitleColor",labelText:n.toLanguageString(a.formatCategoryAxisTitleColor,a.messages.formatCategoryAxisTitleColor)},t.createElement(c.ColorPicker,{id:"categoryAxisTitleColor",view:"gradient",value:((C=o.categoryAxis[0].title)==null?void 0:C.color)||"",onChange:v,fillMode:"outline"})))),t.createElement(S.FormFieldSet,{legend:n.toLanguageString(a.formatCategoryAxisLabels,a.messages.formatCategoryAxisLabels)},t.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},t.createElement(g.FormField,{className:"k-col-span-2",editorId:"categoryAxisLabelsFont",labelText:n.toLanguageString(a.formatCategoryAxisLabelsFont,a.messages.formatCategoryAxisLabelsFont)},t.createElement(d.ComboBox,{id:"categoryAxisLabelsFont",data:e.fontNames,textField:"text",dataItemKey:"value",placeholder:n.toLanguageString(a.formatCategoryAxisLabelsFontPlaceholder,a.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})),t.createElement(g.FormField,{editorId:"categoryAxisLabelsFontSize",labelText:n.toLanguageString(a.formatCategoryAxisLabelsSize,a.messages.formatCategoryAxisLabelsSize)},t.createElement(d.ComboBox,{id:"categoryAxisLabelsFontSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:n.toLanguageString(a.formatCategoryAxisLabelsSizePlaceholder,a.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})),t.createElement(g.FormField,{editorId:"categoryAxisLabelsColor",labelText:n.toLanguageString(a.formatCategoryAxisLabelsColor,a.messages.formatCategoryAxisLabelsColor)},t.createElement(c.ColorPicker,{id:"categoryAxisLabelsColor",view:"gradient",value:((y=o.categoryAxis[0].labels)==null?void 0:y.color)||"",onChange:z,fillMode:"outline"})),t.createElement(g.FormField,{editorId:"categoryAxisLabelsRotation",labelText:n.toLanguageString(a.formatCategoryAxisLabelsRotation,a.messages.formatCategoryAxisLabelsRotation)},t.createElement(c.NumericTextBox,{id:"categoryAxisLabelsRotation",value:typeof((A=o.categoryAxis[0].labels)==null?void 0:A.rotation)=="number"?(f=o.categoryAxis[0].labels)==null?void 0:f.rotation:null,placeholder:n.toLanguageString(a.formatCategoryAxisLabelsRotationAuto,a.messages.formatCategoryAxisLabelsRotationAuto),onChange:R,fillMode:"outline",min:-360,max:360,step:1})),t.createElement(g.FormField,{className:"k-col-span-2"},t.createElement(c.Checkbox,{label:n.toLanguageString(a.formatCategoryAxisLabelsReverseOrder,a.messages.formatCategoryAxisLabelsReverseOrder),checked:o.categoryAxis[0].reverse||!1,onChange:P}))))))))};exports.CategoryAxisPanel=j;
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 T } from "../FormFieldSet.mjs";
11
+ import { FormFieldSet as h } from "../FormFieldSet.mjs";
12
12
  import { FormField as s } from "../FormField.mjs";
13
- import { Input as W, ColorPicker as v, NumericTextBox as j, Checkbox as q } from "@progress/kendo-react-inputs";
14
- import { updateState as g, ActionTypes as c, nullItem as m, ensureValue as F, stopPropagation as G, dropdownlistCommonProps as x, itemRender as E, fontNames as C, parseFont as y, fontSizes as d } from "../../utils.mjs";
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 he = (n) => {
20
- var f, b, L, S, h;
21
- const l = ce(), t = n.state, k = t.seriesType, [u, p] = e.useState(!1), z = e.useCallback((a) => {
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
- ), R = e.useCallback(
27
+ ), I = e.useCallback(
29
28
  (a) => {
30
29
  const o = a.target.value || m;
31
- F(o) && n.onStateChange(g(t, c.categoryAxisTitleFontSize, o.value));
30
+ v(o) && n.onStateChange(g(t, c.categoryAxisTitleFontSize, o.value));
32
31
  },
33
32
  [t]
34
- ), I = e.useCallback(
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
- ), N = e.useCallback(
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
- F(o) && n.onStateChange(g(t, c.categoryAxisLabelsFontSize, o.value));
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: k === "scatter" ? l.toLanguageString(H, r.formatXAxis) : l.toLanguageString(J, r.formatCategoryAxis),
78
- expanded: u,
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(me, null, u && /* @__PURE__ */ e.createElement(D, null, /* @__PURE__ */ e.createElement(V, { onKeyDown: G }, /* @__PURE__ */ e.createElement(
83
- T,
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: ((f = t.categoryAxis[0].title) == null ? void 0 : f.text) || "",
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: E,
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: I,
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: R,
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
- v,
172
+ T,
174
173
  {
175
174
  id: "categoryAxisTitleColor",
176
175
  view: "gradient",
177
- value: ((b = t.categoryAxis[0].title) == null ? void 0 : b.color) || "",
178
- onChange: N,
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
- T,
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: E,
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
- v,
263
+ T,
265
264
  {
266
265
  id: "categoryAxisLabelsColor",
267
266
  view: "gradient",
268
- value: ((L = t.categoryAxis[0].labels) == null ? void 0 : L.color) || "",
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 ((S = t.categoryAxis[0].labels) == null ? void 0 : S.rotation) == "number" ? (h = t.categoryAxis[0].labels) == null ? void 0 : h.rotation : null,
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
- he as CategoryAxisPanel
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"),u=require("@progress/kendo-react-layout"),x=require("@progress/kendo-react-form"),d=require("../FormFieldSet.js"),s=require("../FormField.js"),m=require("@progress/kendo-react-inputs"),i=require("../../utils.js"),e=require("../../messages.js"),k=require("@progress/kendo-react-intl"),E=require("@progress/kendo-react-animation");function F(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const g=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(r,t,g.get?g:{enumerable:!0,get:()=>n[t]})}}return r.default=n,Object.freeze(r)}const a=F(b),T=n=>{var c;const r=k.useLocalization(),t=n.state,[g,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]),l=t.area.margin,S=a.useCallback(o=>{n.onStateChange(i.updateState(t,i.ActionTypes.areaBackground,o.value))},[t]);return a.createElement(u.ExpansionPanel,{style:{maxWidth:"576px"},title:r.toLanguageString(e.formatChartArea,e.messages.formatChartArea),expanded:g,tabIndex:0,onAction:C},a.createElement(E.Reveal,null,g&&a.createElement(u.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(s.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsLeft,e.messages.formatChartAreaMarginsLeft),editorId:"left"},a.createElement(m.NumericTextBox,{id:"left",value:l.left!==void 0?l.left:null,onChange:f,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),a.createElement(s.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsRight,e.messages.formatChartAreaMarginsRight),editorId:"right"},a.createElement(m.NumericTextBox,{id:"right",value:l.right!==void 0?l.right:null,onChange:A,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),a.createElement(s.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsTop,e.messages.formatChartAreaMarginsTop),editorId:"top"},a.createElement(m.NumericTextBox,{id:"top",value:l.top!==void 0?l.top:null,onChange:p,placeholder:r.toLanguageString(e.formatChartAreaMarginsAuto,e.messages.formatChartAreaMarginsAuto),min:0,max:1e3,step:1,fillMode:"outline"})),a.createElement(s.FormField,{labelText:r.toLanguageString(e.formatChartAreaMarginsBottom,e.messages.formatChartAreaMarginsBottom),editorId:"bottom"},a.createElement(m.NumericTextBox,{id:"bottom",value:l.bottom!==void 0?l.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(s.FormField,{labelText:r.toLanguageString(e.formatChartAreaBackgroundColor,e.messages.formatChartAreaBackgroundColor),editorId:"background"},a.createElement(m.ColorPicker,{id:"background",value:((c=t.area)==null?void 0:c.background)||"",onChange:S,view:"gradient",fillMode:"outline"})))))))};exports.ChartAreaPanel=T;
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 k, ExpansionPanelContent as S } from "@progress/kendo-react-layout";
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 C } from "../FormFieldSet.mjs";
12
- import { FormField as g } from "../FormField.mjs";
13
- import { NumericTextBox as u, ColorPicker as v } from "@progress/kendo-react-inputs";
14
- import { updateState as i, ActionTypes as m, stopPropagation as L } from "../../utils.mjs";
15
- import { formatChartArea as B, messages as r, formatChartAreaMargins as T, formatChartAreaMarginsLeft as I, formatChartAreaMarginsAuto as c, formatChartAreaMarginsRight as R, formatChartAreaMarginsTop as F, formatChartAreaMarginsBottom as P, formatChartAreaBackground as y, formatChartAreaBackgroundColor as w } from "../../messages.mjs";
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
- import { Reveal as N } from "@progress/kendo-react-animation";
18
- const Q = (l) => {
19
- var h;
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
- l.onStateChange(i(t, m.areaMarginLeft, o.target.value));
23
+ g.onStateChange(i(t, m.areaMarginLeft, o.target.value));
25
24
  },
26
25
  [t]
27
- ), p = a.useCallback(
26
+ ), M = a.useCallback(
28
27
  (o) => {
29
- l.onStateChange(i(t, m.areaMarginRight, o.target.value));
28
+ g.onStateChange(i(t, m.areaMarginRight, o.target.value));
30
29
  },
31
30
  [t]
32
- ), M = a.useCallback(
31
+ ), p = a.useCallback(
33
32
  (o) => {
34
- l.onStateChange(i(t, m.areaMarginTop, o.target.value));
33
+ g.onStateChange(i(t, m.areaMarginTop, o.target.value));
35
34
  },
36
35
  [t]
37
36
  ), x = a.useCallback(
38
37
  (o) => {
39
- l.onStateChange(i(t, m.areaMarginBottom, o.target.value));
38
+ g.onStateChange(i(t, m.areaMarginBottom, o.target.value));
40
39
  },
41
40
  [t]
42
- ), n = t.area.margin, E = a.useCallback(
41
+ ), n = t.area.margin, k = a.useCallback(
43
42
  (o) => {
44
- l.onStateChange(i(t, m.areaBackground, o.value));
43
+ g.onStateChange(i(t, m.areaBackground, o.value));
45
44
  },
46
45
  [t]
47
46
  );
48
47
  return /* @__PURE__ */ a.createElement(
49
- k,
48
+ E,
50
49
  {
51
50
  style: { maxWidth: "576px" },
52
51
  title: e.toLanguageString(B, r.formatChartArea),
53
- expanded: d,
52
+ expanded: C,
54
53
  tabIndex: 0,
55
54
  onAction: f
56
55
  },
57
- /* @__PURE__ */ a.createElement(N, null, d && /* @__PURE__ */ a.createElement(S, null, /* @__PURE__ */ a.createElement(b, { onKeyDown: L }, /* @__PURE__ */ a.createElement(
58
- C,
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
- g,
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
- c,
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
- g,
87
+ l,
92
88
  {
93
89
  labelText: e.toLanguageString(
94
- R,
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: p,
100
+ onChange: M,
105
101
  placeholder: e.toLanguageString(
106
- c,
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
- g,
112
+ l,
117
113
  {
118
114
  labelText: e.toLanguageString(
119
- F,
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: M,
125
+ onChange: p,
130
126
  placeholder: e.toLanguageString(
131
- c,
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
- g,
137
+ l,
142
138
  {
143
139
  labelText: e.toLanguageString(
144
- P,
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
- c,
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
- C,
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
- g,
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
- v,
180
+ L,
185
181
  {
186
182
  id: "background",
187
- value: ((h = t.area) == null ? void 0 : h.background) || "",
188
- onChange: E,
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
- Q as ChartAreaPanel
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-animation"),f=require("@progress/kendo-react-intl"),m=require("@progress/kendo-react-layout"),t=require("../../utils.js"),E=require("../SeriesTypesWrap.js"),l=require("../SeriesTypeButton.js"),o=require("../../messages.js"),u=require("@progress/kendo-svg-icons");function q(n){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(c,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return c.default=n,Object.freeze(c)}const a=q(T),x=n=>{const c=f.useLocalization(),e=n.state,s=e.seriesType,{isStackFalse:S,isStackNormal:d,isStack100:C}=t.stackState(e),[i,g]=a.useState(!0),k=a.useCallback(r=>{g(!r.expanded)},[]),p=()=>{n.onStateChange(t.mergeStates(e,t.createState(e.data,"column")))},h=()=>{const r=t.mergeStates(e,t.createState(e.data,"column"));n.onStateChange(t.updateState(r,t.ActionTypes.stacked,t.stackNormal))},y=()=>{const r=t.mergeStates(e,t.createState(e.data,"column"));n.onStateChange(t.updateState(r,t.ActionTypes.stacked,t.stack100))};return a.createElement(m.ExpansionPanel,{style:{maxWidth:"576px"},title:c.toLanguageString(o.columnChart,o.messages.columnChart),expanded:i,tabIndex:0,onAction:k},a.createElement(b.Reveal,null,i&&a.createElement(m.ExpansionPanelContent,null,a.createElement(E.SeriesTypesWrap,null,a.createElement(l.SeriesTypeButton,{selected:s==="column"&&S,onClick:p,icon:u.chartColumnClusteredIcon,iconName:"chart-column-clustered"},c.toLanguageString(o.columnChartColumn,o.messages.columnChartColumn)),a.createElement(l.SeriesTypeButton,{selected:s==="column"&&d,onClick:h,icon:u.chartColumnStackedIcon,iconName:"chart-column-stacked"},c.toLanguageString(o.columnChartStackedColumn,o.messages.columnChartStackedColumn)),a.createElement(l.SeriesTypeButton,{selected:s==="column"&&C,onClick:y,icon:u.chartColumnStacked100Icon,iconName:"chart-column-stacked100"},c.toLanguageString(o.columnChart100StackedColumn,o.messages.columnChart100StackedColumn))))))};exports.ColumnChartPanel=x;
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;