@progress/kendo-react-chart-wizard 14.2.1-develop.3 → 14.2.1
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/ChartComponent.d.ts +1 -1
- package/components/ChartComponent.js +1 -1
- package/components/ChartComponent.mjs +6 -6
- package/components/FormField.d.ts +1 -1
- package/components/FormField.js +1 -1
- package/components/FormField.mjs +4 -4
- package/components/FormFieldSet.d.ts +1 -1
- package/components/FormFieldSet.js +1 -1
- package/components/FormFieldSet.mjs +3 -3
- package/components/SeriesGrid.d.ts +1 -1
- package/components/SeriesGrid.js +1 -1
- package/components/SeriesGrid.mjs +1 -1
- package/components/SeriesTypeButton.d.ts +1 -1
- package/components/SeriesTypeButton.js +1 -1
- package/components/SeriesTypeButton.mjs +6 -6
- package/components/SeriesTypesWrap.d.ts +1 -1
- package/components/SeriesTypesWrap.js +1 -1
- package/components/SeriesTypesWrap.mjs +3 -3
- package/components/panels/CategoryAxisPanel.d.ts +1 -1
- package/components/panels/CategoryAxisPanel.js +1 -1
- package/components/panels/CategoryAxisPanel.mjs +18 -18
- package/components/panels/ChartAreaPanel.d.ts +1 -1
- package/components/panels/ChartAreaPanel.js +1 -1
- package/components/panels/ChartAreaPanel.mjs +9 -9
- package/components/panels/ConfigurationPanel.d.ts +1 -1
- package/components/panels/ConfigurationPanel.js +1 -1
- package/components/panels/ConfigurationPanel.mjs +9 -9
- package/components/panels/LegendPanel.d.ts +1 -1
- package/components/panels/LegendPanel.js +1 -1
- package/components/panels/LegendPanel.mjs +20 -20
- package/components/panels/SeriesPanel.d.ts +1 -1
- package/components/panels/SeriesPanel.js +1 -1
- package/components/panels/SeriesPanel.mjs +14 -14
- package/components/panels/ValueAxisPanel.d.ts +1 -1
- package/components/panels/ValueAxisPanel.js +1 -1
- package/components/panels/ValueAxisPanel.mjs +46 -46
- package/dist/cdn/js/kendo-react-chart-wizard.js +1 -1
- package/package.json +14 -14
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import e from "react";
|
|
8
|
+
import * as e from "react";
|
|
9
9
|
import { FormElement as S } from "@progress/kendo-react-form";
|
|
10
10
|
import { ExpansionPanel as E, ExpansionPanelContent as A } from "@progress/kendo-react-layout";
|
|
11
|
-
import { updateState as
|
|
11
|
+
import { updateState as s, ActionTypes as l, stopPropagation as h, dropdownlistCommonProps as u, isCategorical as y } from "../../utils.mjs";
|
|
12
12
|
import { FormFieldSet as g } from "../FormFieldSet.mjs";
|
|
13
13
|
import { useLocalization as v } from "@progress/kendo-react-intl";
|
|
14
14
|
import { configuration as L, messages as o, configurationXAxis as b, configurationCategoryAxis as F, configurationSeries as P, configurationValueAxis as k } from "../../messages.mjs";
|
|
@@ -16,21 +16,21 @@ import { DropDownList as m } from "@progress/kendo-react-dropdowns";
|
|
|
16
16
|
import { SeriesGrid as D } from "../SeriesGrid.mjs";
|
|
17
17
|
import { Reveal as w } from "@progress/kendo-react-animation";
|
|
18
18
|
const Y = (i) => {
|
|
19
|
-
const a = v(), t = i.state, r = t.seriesType, [c, f] = e.useState(!0),
|
|
19
|
+
const a = v(), t = i.state, r = t.seriesType, [c, f] = e.useState(!0), C = e.useCallback((n) => {
|
|
20
20
|
f(!n.expanded);
|
|
21
|
-
}, []),
|
|
21
|
+
}, []), d = e.useCallback(
|
|
22
22
|
(n) => {
|
|
23
|
-
i.onStateChange(
|
|
23
|
+
i.onStateChange(s(t, l.categoryAxisX, n.target.value));
|
|
24
24
|
},
|
|
25
25
|
[t]
|
|
26
26
|
), p = e.useCallback(
|
|
27
27
|
(n) => {
|
|
28
|
-
i.onStateChange(
|
|
28
|
+
i.onStateChange(s(t, l.seriesChange, n));
|
|
29
29
|
},
|
|
30
30
|
[t]
|
|
31
31
|
), x = e.useCallback(
|
|
32
32
|
(n) => {
|
|
33
|
-
i.onStateChange(
|
|
33
|
+
i.onStateChange(s(t, l.valueAxisY, n.target.value));
|
|
34
34
|
},
|
|
35
35
|
[t]
|
|
36
36
|
);
|
|
@@ -41,7 +41,7 @@ const Y = (i) => {
|
|
|
41
41
|
title: a.toLanguageString(L, o.configuration),
|
|
42
42
|
expanded: c,
|
|
43
43
|
tabIndex: 0,
|
|
44
|
-
onAction:
|
|
44
|
+
onAction: C
|
|
45
45
|
},
|
|
46
46
|
/* @__PURE__ */ e.createElement(w, null, c && /* @__PURE__ */ e.createElement(A, null, /* @__PURE__ */ e.createElement(S, { onKeyDown: h }, /* @__PURE__ */ e.createElement(
|
|
47
47
|
g,
|
|
@@ -56,7 +56,7 @@ const Y = (i) => {
|
|
|
56
56
|
{
|
|
57
57
|
data: t.columns || [],
|
|
58
58
|
value: t.categoryField,
|
|
59
|
-
onChange:
|
|
59
|
+
onChange: d,
|
|
60
60
|
...u
|
|
61
61
|
}
|
|
62
62
|
)
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as React } from 'react';
|
|
9
8
|
import { ChartWizardPanelProps } from '../../types/ChartWizardPanelProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
10
|
interface LegendPanelProps extends ChartWizardPanelProps {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -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 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;
|
|
@@ -5,37 +5,37 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import t from "react";
|
|
8
|
+
import * as t from "react";
|
|
9
9
|
import { ExpansionPanel as K, 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
12
|
import { FormField as s } from "../FormField.mjs";
|
|
13
13
|
import { ComboBox as P, DropDownList as V } from "@progress/kendo-react-dropdowns";
|
|
14
|
-
import { Switch as
|
|
15
|
-
import { useLocalization as
|
|
16
|
-
import { formatLegendPositionTop as
|
|
14
|
+
import { Switch as M, ColorPicker as W } from "@progress/kendo-react-inputs";
|
|
15
|
+
import { useLocalization as j } from "@progress/kendo-react-intl";
|
|
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
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
18
|
import { Reveal as oe } from "@progress/kendo-react-animation";
|
|
19
|
-
const
|
|
19
|
+
const ce = (i) => {
|
|
20
20
|
var S, h, v, b, p, C, x;
|
|
21
|
-
const a =
|
|
21
|
+
const a = j(), o = i.state, [c, w] = t.useState(!1), I = t.useCallback((e) => {
|
|
22
22
|
w(!e.expanded);
|
|
23
23
|
}, []), u = [
|
|
24
24
|
{
|
|
25
25
|
value: "top",
|
|
26
|
-
text: a.toLanguageString(
|
|
26
|
+
text: a.toLanguageString(q, l.formatLegendPositionTop)
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
value: "bottom",
|
|
30
|
-
text: a.toLanguageString(
|
|
30
|
+
text: a.toLanguageString(G, l.formatLegendPositionBottom)
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
value: "left",
|
|
34
|
-
text: a.toLanguageString(
|
|
34
|
+
text: a.toLanguageString(H, l.formatLegendPositionLeft)
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
value: "right",
|
|
38
|
-
text: a.toLanguageString(
|
|
38
|
+
text: a.toLanguageString(J, l.formatLegendPositionRight)
|
|
39
39
|
}
|
|
40
40
|
], k = (e) => {
|
|
41
41
|
i.onStateChange(r(o, m.legendVisible, e.value));
|
|
@@ -55,16 +55,16 @@ const ue = (i) => {
|
|
|
55
55
|
K,
|
|
56
56
|
{
|
|
57
57
|
style: { maxWidth: "576px" },
|
|
58
|
-
title: a.toLanguageString(
|
|
58
|
+
title: a.toLanguageString(O, l.formatLegend),
|
|
59
59
|
expanded: c,
|
|
60
60
|
tabIndex: 0,
|
|
61
61
|
onAction: I
|
|
62
62
|
},
|
|
63
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
|
-
|
|
64
|
+
Q,
|
|
65
65
|
l.formatLegendShowLegend
|
|
66
66
|
)), /* @__PURE__ */ t.createElement(
|
|
67
|
-
|
|
67
|
+
M,
|
|
68
68
|
{
|
|
69
69
|
id: "show-legend",
|
|
70
70
|
checked: (S = o.legend) == null ? void 0 : S.visible,
|
|
@@ -76,7 +76,7 @@ const ue = (i) => {
|
|
|
76
76
|
className: "k-col-span-2",
|
|
77
77
|
editorId: "legendLabelsFont",
|
|
78
78
|
labelText: a.toLanguageString(
|
|
79
|
-
|
|
79
|
+
U,
|
|
80
80
|
l.formatLegendFont
|
|
81
81
|
)
|
|
82
82
|
},
|
|
@@ -88,7 +88,7 @@ const ue = (i) => {
|
|
|
88
88
|
textField: "text",
|
|
89
89
|
dataItemKey: "value",
|
|
90
90
|
placeholder: a.toLanguageString(
|
|
91
|
-
|
|
91
|
+
X,
|
|
92
92
|
l.formatLegendFontPlaceholder
|
|
93
93
|
),
|
|
94
94
|
value: E.find(
|
|
@@ -108,7 +108,7 @@ const ue = (i) => {
|
|
|
108
108
|
{
|
|
109
109
|
editorId: "legendLabelsSize",
|
|
110
110
|
labelText: a.toLanguageString(
|
|
111
|
-
|
|
111
|
+
Y,
|
|
112
112
|
l.formatLegendSize
|
|
113
113
|
)
|
|
114
114
|
},
|
|
@@ -120,7 +120,7 @@ const ue = (i) => {
|
|
|
120
120
|
textField: "text",
|
|
121
121
|
dataItemKey: "value",
|
|
122
122
|
placeholder: a.toLanguageString(
|
|
123
|
-
|
|
123
|
+
Z,
|
|
124
124
|
l.formatLegendSizePlaceholder
|
|
125
125
|
),
|
|
126
126
|
value: z.find(
|
|
@@ -140,12 +140,12 @@ const ue = (i) => {
|
|
|
140
140
|
{
|
|
141
141
|
editorId: "legendLabelsColor",
|
|
142
142
|
labelText: a.toLanguageString(
|
|
143
|
-
|
|
143
|
+
_,
|
|
144
144
|
l.formatLegendColor
|
|
145
145
|
)
|
|
146
146
|
},
|
|
147
147
|
/* @__PURE__ */ t.createElement(
|
|
148
|
-
|
|
148
|
+
W,
|
|
149
149
|
{
|
|
150
150
|
id: "legendLabelsColor",
|
|
151
151
|
value: ((p = (b = o.legend) == null ? void 0 : b.labels) == null ? void 0 : p.color) || "",
|
|
@@ -185,5 +185,5 @@ const ue = (i) => {
|
|
|
185
185
|
);
|
|
186
186
|
};
|
|
187
187
|
export {
|
|
188
|
-
|
|
188
|
+
ce as LegendPanel
|
|
189
189
|
};
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as React } from 'react';
|
|
9
8
|
import { ChartWizardPanelProps } from '../../types/ChartWizardPanelProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
10
|
interface SeriesPanelProps extends ChartWizardPanelProps {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -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 F=require("react"),C=require("@progress/kendo-react-layout"),q=require("@progress/kendo-react-form"),d=require("../FormField.js"),v=require("@progress/kendo-react-inputs"),l=require("../../utils.js"),n=require("../../messages.js"),P=require("@progress/kendo-react-intl"),T=require("@progress/kendo-react-dropdowns"),w=require("@progress/kendo-react-animation");function R(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const i in o)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>o[i]})}}return t.default=o,Object.freeze(t)}const a=R(F),D=o=>{var g,p,f,b,y;const[t,i]=a.useState(""),r=P.useLocalization(),s=o.state,u=s.seriesType,E=typeof((g=s.series[0])==null?void 0:g.stack)=="object"?(p=s.series[0])==null?void 0:p.stack.type:!1,[S,h]=a.useState(!1),k=a.useCallback(e=>{h(!e.expanded)},[]),x=e=>{t&&o.onStateChange(l.updateState(s,l.ActionTypes.seriesColor,{seriesName:t,color:e.value}))},L=e=>{o.onStateChange(l.updateState(s,l.ActionTypes.seriesLabel,{seriesName:t,all:!t,visible:e.value}))},m={name:r.toLanguageString(n.formatSeriesAllSeries,n.messages.formatSeriesAllSeries)},A=e=>{const c=e.target.value.name;i(c===m.name?"":c)};return a.useEffect(()=>{i("")},[u,E]),a.createElement(C.ExpansionPanel,{style:{maxWidth:"576px"},title:r.toLanguageString(n.formatSeries,n.messages.formatSeries),expanded:S,tabIndex:0,onAction:k},a.createElement(w.Reveal,null,S&&a.createElement(C.ExpansionPanelContent,null,a.createElement(q.FormElement,{onKeyDown:l.stopPropagation},a.createElement(d.FormField,{editorId:"apply-to-series",labelText:r.toLanguageString(n.formatSeriesApplyTo,n.messages.formatSeriesApplyTo)},a.createElement(T.DropDownList,{id:"apply-to-series",data:s.series,textField:"name",dataItemKey:"name",defaultItem:m,disabled:!l.isCategorical(u),value:s.series.find(e=>e.name===t)||m,onChange:A,...l.dropdownlistCommonProps})),a.createElement(d.FormField,{editorId:"seriesColor",labelText:r.toLanguageString(n.formatSeriesColor,n.messages.formatSeriesColor)},a.createElement(v.ColorPicker,{id:"seriesColor",value:t?(f=s.series.find(e=>e.name===t))==null?void 0:f.color:"",onChange:x,disabled:!t,view:"gradient",fillMode:"outline"})),a.createElement(d.FormField,null,a.createElement(v.Checkbox,{label:r.toLanguageString(n.formatSeriesShowLabels,n.messages.formatSeriesShowLabels),checked:t?(y=(b=s.series.find(e=>e.name===t))==null?void 0:b.labels)==null?void 0:y.visible:s.series.every(e=>{var c;return(c=e.labels)==null?void 0:c.visible}),onChange:L}))))))};exports.SeriesPanel=D;
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import t from "react";
|
|
8
|
+
import * as t from "react";
|
|
9
9
|
import { ExpansionPanel as k, ExpansionPanelContent as w } from "@progress/kendo-react-layout";
|
|
10
10
|
import { FormElement as T } from "@progress/kendo-react-form";
|
|
11
11
|
import { FormField as m } from "../FormField.mjs";
|
|
12
12
|
import { ColorPicker as P, Checkbox as I } from "@progress/kendo-react-inputs";
|
|
13
13
|
import { stopPropagation as D, dropdownlistCommonProps as F, isCategorical as z, updateState as b, ActionTypes as v } from "../../utils.mjs";
|
|
14
|
-
import { formatSeriesAllSeries as K, messages as i, formatSeries as N, formatSeriesApplyTo as R, formatSeriesColor as
|
|
15
|
-
import { useLocalization as
|
|
16
|
-
import { DropDownList as
|
|
17
|
-
import { Reveal as
|
|
14
|
+
import { formatSeriesAllSeries as K, messages as i, formatSeries as N, formatSeriesApplyTo as R, formatSeriesColor as j, formatSeriesShowLabels as M } from "../../messages.mjs";
|
|
15
|
+
import { useLocalization as W } from "@progress/kendo-react-intl";
|
|
16
|
+
import { DropDownList as q } from "@progress/kendo-react-dropdowns";
|
|
17
|
+
import { Reveal as B } from "@progress/kendo-react-animation";
|
|
18
18
|
const Z = (n) => {
|
|
19
|
-
var
|
|
20
|
-
const [a, c] = t.useState(""), r =
|
|
19
|
+
var p, f, g, u, C;
|
|
20
|
+
const [a, c] = t.useState(""), r = W(), o = n.state, S = o.seriesType, E = typeof ((p = o.series[0]) == null ? void 0 : p.stack) == "object" ? (f = o.series[0]) == null ? void 0 : f.stack.type : !1, [d, h] = t.useState(!1), x = t.useCallback((e) => {
|
|
21
21
|
h(!e.expanded);
|
|
22
22
|
}, []), y = (e) => {
|
|
23
23
|
a && n.onStateChange(
|
|
@@ -39,16 +39,16 @@ const Z = (n) => {
|
|
|
39
39
|
};
|
|
40
40
|
return t.useEffect(() => {
|
|
41
41
|
c("");
|
|
42
|
-
}, [
|
|
42
|
+
}, [S, E]), /* @__PURE__ */ t.createElement(
|
|
43
43
|
k,
|
|
44
44
|
{
|
|
45
45
|
style: { maxWidth: "576px" },
|
|
46
46
|
title: r.toLanguageString(N, i.formatSeries),
|
|
47
|
-
expanded:
|
|
47
|
+
expanded: d,
|
|
48
48
|
tabIndex: 0,
|
|
49
49
|
onAction: x
|
|
50
50
|
},
|
|
51
|
-
/* @__PURE__ */ t.createElement(
|
|
51
|
+
/* @__PURE__ */ t.createElement(B, null, d && /* @__PURE__ */ t.createElement(w, null, /* @__PURE__ */ t.createElement(T, { onKeyDown: D }, /* @__PURE__ */ t.createElement(
|
|
52
52
|
m,
|
|
53
53
|
{
|
|
54
54
|
editorId: "apply-to-series",
|
|
@@ -58,14 +58,14 @@ const Z = (n) => {
|
|
|
58
58
|
)
|
|
59
59
|
},
|
|
60
60
|
/* @__PURE__ */ t.createElement(
|
|
61
|
-
|
|
61
|
+
q,
|
|
62
62
|
{
|
|
63
63
|
id: "apply-to-series",
|
|
64
64
|
data: o.series,
|
|
65
65
|
textField: "name",
|
|
66
66
|
dataItemKey: "name",
|
|
67
67
|
defaultItem: l,
|
|
68
|
-
disabled: !z(
|
|
68
|
+
disabled: !z(S),
|
|
69
69
|
value: o.series.find((e) => e.name === a) || l,
|
|
70
70
|
onChange: A,
|
|
71
71
|
...F
|
|
@@ -75,7 +75,7 @@ const Z = (n) => {
|
|
|
75
75
|
m,
|
|
76
76
|
{
|
|
77
77
|
editorId: "seriesColor",
|
|
78
|
-
labelText: r.toLanguageString(
|
|
78
|
+
labelText: r.toLanguageString(j, i.formatSeriesColor)
|
|
79
79
|
},
|
|
80
80
|
/* @__PURE__ */ t.createElement(
|
|
81
81
|
P,
|
|
@@ -92,7 +92,7 @@ const Z = (n) => {
|
|
|
92
92
|
I,
|
|
93
93
|
{
|
|
94
94
|
label: r.toLanguageString(
|
|
95
|
-
|
|
95
|
+
M,
|
|
96
96
|
i.formatSeriesShowLabels
|
|
97
97
|
),
|
|
98
98
|
checked: a ? (C = (u = o.series.find((e) => e.name === a)) == null ? void 0 : u.labels) == null ? void 0 : C.visible : o.series.every((e) => {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as React } from 'react';
|
|
9
8
|
import { ChartWizardPanelProps } from '../../types/ChartWizardPanelProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
10
|
interface ValueAxisPanelProps extends ChartWizardPanelProps {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -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 j=require("react"),E=require("@progress/kendo-react-layout"),B=require("@progress/kendo-react-form"),y=require("../FormFieldSet.js"),m=require("../FormField.js"),x=require("@progress/kendo-react-inputs"),e=require("../../utils.js"),a=require("../../messages.js"),M=require("@progress/kendo-react-intl"),_=require("@progress/kendo-react-animation"),g=require("@progress/kendo-react-dropdowns");function Y(i){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const s in i)if(s!=="default"){const d=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(o,s,d.get?d:{enumerable:!0,get:()=>i[s]})}}return o.default=i,Object.freeze(o)}const l=Y(j),W=i=>{var v,b,F,L,S,V,C,T,p,h;const o=M.useLocalization(),s=i.state,d=s.seriesType,c={text:o.toLanguageString(a.formatValueAxisLabelsFormatText,a.messages.formatValueAxisLabelsFormatText),value:""},A=[{value:"n0",text:o.toLanguageString(a.formatValueAxisLabelsFormatNumber,a.messages.formatValueAxisLabelsFormatNumber)},{value:"c0",text:o.toLanguageString(a.formatValueAxisLabelsFormatCurrency,a.messages.formatValueAxisLabelsFormatCurrency)},{value:"p0",text:o.toLanguageString(a.formatValueAxisLabelsFormatPercent,a.messages.formatValueAxisLabelsFormatPercent)}],[f,z]=l.useState(!1),P=l.useCallback(t=>{z(!t.expanded)},[]),I=t=>{i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisTitleText,t.target.value))},k=t=>{const n=t.target.value||e.nullItem;e.ensureValue(n)&&i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisTitleFontSize,n.value))},R=t=>{const n=t.target.value||e.nullItem;i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisTitleFontName,n.value))},N=t=>{i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisTitleColor,t.value))},w=t=>{const n=t.target.value||e.nullItem;e.ensureValue(n)&&i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisLabelsFontSize,n.value))},q=t=>{const n=t.target.value||e.nullItem;i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisLabelsFontName,n.value))},D=t=>{i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisLabelsColor,t.value))},K=t=>{i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisLabelsRotation,t.target.value))},O=t=>{const n=t.target.value;i.onStateChange(e.updateState(s,e.ActionTypes.valueAxisLabelsFormat,n.value))};return l.createElement(E.ExpansionPanel,{style:{maxWidth:"576px"},title:d==="scatter"?o.toLanguageString(a.formatYAxis,a.messages.formatYAxis):o.toLanguageString(a.formatValueAxis,a.messages.formatValueAxis),expanded:f,tabIndex:0,onAction:P},l.createElement(_.Reveal,null,f&&l.createElement(E.ExpansionPanelContent,null,l.createElement(B.FormElement,{onKeyDown:e.stopPropagation},l.createElement(y.FormFieldSet,{legend:o.toLanguageString(a.formatValueAxisTitle,a.messages.formatValueAxisTitle)},l.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},l.createElement(m.FormField,{className:"k-col-span-2"},l.createElement(x.Input,{placeholder:o.toLanguageString(a.formatValueAxisTitlePlaceholder,a.messages.formatValueAxisTitlePlaceholder),value:((b=(v=s.valueAxis[0])==null?void 0:v.title)==null?void 0:b.text)||"",onChange:I})),l.createElement(m.FormField,{className:"k-col-span-2",editorId:"valueAxisTitleFont",labelText:o.toLanguageString(a.formatValueAxisTitleFont,a.messages.formatValueAxisTitleFont)},l.createElement(g.ComboBox,{id:"valueAxisTitleFont",data:e.fontNames,textField:"text",dataItemKey:"value",itemRender:e.itemRender,placeholder:o.toLanguageString(a.formatValueAxisTitleFontPlaceholder,a.messages.formatValueAxisTitleFontPlaceholder),value:e.fontNames.find(t=>{var n,r,u;return t.value===((u=e.parseFont(((r=(n=s.valueAxis[0])==null?void 0:n.title)==null?void 0:r.font)||""))==null?void 0:u.name)})||e.nullItem,onChange:R,...e.dropdownlistCommonProps})),l.createElement(m.FormField,{editorId:"valueAxisTitleFontSize",labelText:o.toLanguageString(a.formatValueAxisTitleSize,a.messages.formatValueAxisTitleSize)},l.createElement(g.ComboBox,{id:"valueAxisTitleFontSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:o.toLanguageString(a.formatValueAxisTitleSizePlaceholder,a.messages.formatValueAxisTitleSizePlaceholder),value:e.fontSizes.find(t=>{var n,r,u;return t.value===((u=e.parseFont(((r=(n=s.valueAxis[0])==null?void 0:n.title)==null?void 0:r.font)||""))==null?void 0:u.size)})||e.nullItem,onChange:k,allowCustom:!0,...e.dropdownlistCommonProps})),l.createElement(m.FormField,{editorId:"valueAxisTitleColor",labelText:o.toLanguageString(a.formatValueAxisTitleColor,a.messages.formatValueAxisTitleColor)},l.createElement(x.ColorPicker,{id:"valueAxisTitleColor",view:"gradient",value:((L=(F=s.valueAxis[0])==null?void 0:F.title)==null?void 0:L.color)||"",onChange:N,fillMode:"outline"})))),l.createElement(y.FormFieldSet,{legend:o.toLanguageString(a.formatValueAxisLabels,a.messages.formatValueAxisLabels)},l.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},l.createElement(m.FormField,{className:"k-col-span-2",editorId:"valueAxisLabelsFormat",labelText:o.toLanguageString(a.formatValueAxisLabelsFormat,a.messages.formatValueAxisLabelsFormat)},l.createElement(g.DropDownList,{id:"valueAxisLabelsFormat",data:A,textField:"text",dataItemKey:"value",defaultItem:c,value:A.find(t=>{var n,r;return t.value===((r=(n=s.valueAxis[0])==null?void 0:n.labels)==null?void 0:r.format)})||c,onChange:O,...e.dropdownlistCommonProps})),l.createElement(m.FormField,{className:"k-col-span-2",editorId:"valueAxisLabelsFont",labelText:o.toLanguageString(a.formatValueAxisLabelsFont,a.messages.formatValueAxisLabelsFont)},l.createElement(g.ComboBox,{id:"valueAxisLabelsFont",data:e.fontNames,textField:"text",dataItemKey:"value",placeholder:o.toLanguageString(a.formatValueAxisLabelsFontPlaceholder,a.messages.formatValueAxisLabelsFontPlaceholder),value:e.fontNames.find(t=>{var n,r,u;return t.value===((u=e.parseFont(((r=(n=s.valueAxis[0])==null?void 0:n.labels)==null?void 0:r.font)||""))==null?void 0:u.name)})||e.nullItem,onChange:q,itemRender:e.itemRender,...e.dropdownlistCommonProps})),l.createElement(m.FormField,{editorId:"valueAxisLabelsFontSize",labelText:o.toLanguageString(a.formatValueAxisLabelsSize,a.messages.formatValueAxisLabelsSize)},l.createElement(g.ComboBox,{id:"valueAxisLabelsFontSize",data:e.fontSizes,textField:"text",dataItemKey:"value",placeholder:o.toLanguageString(a.formatValueAxisLabelsSizePlaceholder,a.messages.formatValueAxisLabelsSizePlaceholder),value:e.fontSizes.find(t=>{var n,r,u;return t.value===((u=e.parseFont(((r=(n=s.valueAxis[0])==null?void 0:n.labels)==null?void 0:r.font)||""))==null?void 0:u.size)})||e.nullItem,onChange:w,allowCustom:!0,...e.dropdownlistCommonProps})),l.createElement(m.FormField,{editorId:"valueAxisLabelsColor",labelText:o.toLanguageString(a.formatValueAxisLabelsColor,a.messages.formatValueAxisLabelsColor)},l.createElement(x.ColorPicker,{id:"valueAxisLabelsColor",view:"gradient",value:((V=(S=s.valueAxis[0])==null?void 0:S.labels)==null?void 0:V.color)||"",onChange:D,fillMode:"outline"})),l.createElement(m.FormField,{editorId:"valueAxisLabelsRotation",labelText:o.toLanguageString(a.formatValueAxisLabelsRotation,a.messages.formatValueAxisLabelsRotation)},l.createElement(x.NumericTextBox,{id:"valueAxisLabelsRotation",value:typeof((T=(C=s.valueAxis[0])==null?void 0:C.labels)==null?void 0:T.rotation)=="number"?(h=(p=s.valueAxis[0])==null?void 0:p.labels)==null?void 0:h.rotation:null,placeholder:o.toLanguageString(a.formatValueAxisLabelsRotationAuto,a.messages.formatValueAxisLabelsRotationAuto),onChange:K,fillMode:"outline",min:-360,max:360,step:1}))))))))};exports.ValueAxisPanel=W;
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import a from "react";
|
|
9
|
-
import { ExpansionPanel as
|
|
10
|
-
import { FormElement as
|
|
8
|
+
import * as a from "react";
|
|
9
|
+
import { ExpansionPanel as O, ExpansionPanelContent as Q } from "@progress/kendo-react-layout";
|
|
10
|
+
import { FormElement as U } from "@progress/kendo-react-form";
|
|
11
11
|
import { FormFieldSet as N } from "../FormFieldSet.mjs";
|
|
12
12
|
import { FormField as u } from "../FormField.mjs";
|
|
13
|
-
import { Input as
|
|
14
|
-
import { stopPropagation as
|
|
15
|
-
import { formatValueAxisLabelsFormatText as $, messages as o, formatValueAxisLabelsFormatNumber as ee, formatValueAxisLabelsFormatCurrency as ae, formatValueAxisLabelsFormatPercent as te, formatYAxis as le, formatValueAxis as oe, formatValueAxisTitle as ie, formatValueAxisTitlePlaceholder as ne, formatValueAxisTitleFont as
|
|
13
|
+
import { Input as X, ColorPicker as y, NumericTextBox as Z } from "@progress/kendo-react-inputs";
|
|
14
|
+
import { stopPropagation as _, dropdownlistCommonProps as A, nullItem as g, itemRender as k, fontNames as c, parseFont as d, fontSizes as f, updateState as m, ActionTypes as x, ensureValue as R } from "../../utils.mjs";
|
|
15
|
+
import { formatValueAxisLabelsFormatText as $, messages as o, formatValueAxisLabelsFormatNumber as ee, formatValueAxisLabelsFormatCurrency as ae, formatValueAxisLabelsFormatPercent as te, formatYAxis as le, formatValueAxis as oe, formatValueAxisTitle as ie, formatValueAxisTitlePlaceholder as ne, formatValueAxisTitleFont as se, formatValueAxisTitleFontPlaceholder as re, formatValueAxisTitleSize as ue, formatValueAxisTitleSizePlaceholder as me, formatValueAxisTitleColor as xe, formatValueAxisLabels as ge, formatValueAxisLabelsFormat as Ae, formatValueAxisLabelsFont as ce, formatValueAxisLabelsFontPlaceholder as de, formatValueAxisLabelsSize as fe, formatValueAxisLabelsSizePlaceholder as ve, formatValueAxisLabelsColor as Le, formatValueAxisLabelsRotation as be, formatValueAxisLabelsRotationAuto as Ve } from "../../messages.mjs";
|
|
16
16
|
import { useLocalization as Se } from "@progress/kendo-react-intl";
|
|
17
17
|
import { Reveal as Fe } from "@progress/kendo-react-animation";
|
|
18
18
|
import { ComboBox as v, DropDownList as Ce } from "@progress/kendo-react-dropdowns";
|
|
19
|
-
const
|
|
19
|
+
const Re = (r) => {
|
|
20
20
|
var S, F, C, h, T, E, p, z, P, I;
|
|
21
|
-
const l = Se(), i =
|
|
21
|
+
const l = Se(), i = r.state, w = i.seriesType, L = {
|
|
22
22
|
text: l.toLanguageString($, o.formatValueAxisLabelsFormatText),
|
|
23
23
|
value: ""
|
|
24
24
|
}, b = [
|
|
@@ -46,31 +46,31 @@ const we = (s) => {
|
|
|
46
46
|
], [V, K] = a.useState(!1), D = a.useCallback((e) => {
|
|
47
47
|
K(!e.expanded);
|
|
48
48
|
}, []), M = (e) => {
|
|
49
|
-
|
|
49
|
+
r.onStateChange(m(i, x.valueAxisTitleText, e.target.value));
|
|
50
50
|
}, B = (e) => {
|
|
51
51
|
const t = e.target.value || g;
|
|
52
|
-
R(t) &&
|
|
52
|
+
R(t) && r.onStateChange(m(i, x.valueAxisTitleFontSize, t.value));
|
|
53
53
|
}, Y = (e) => {
|
|
54
54
|
const t = e.target.value || g;
|
|
55
|
-
|
|
56
|
-
}, _ = (e) => {
|
|
57
|
-
s.onStateChange(m(i, x.valueAxisTitleColor, e.value));
|
|
55
|
+
r.onStateChange(m(i, x.valueAxisTitleFontName, t.value));
|
|
58
56
|
}, W = (e) => {
|
|
59
|
-
|
|
60
|
-
R(t) && s.onStateChange(m(i, x.valueAxisLabelsFontSize, t.value));
|
|
57
|
+
r.onStateChange(m(i, x.valueAxisTitleColor, e.value));
|
|
61
58
|
}, j = (e) => {
|
|
62
59
|
const t = e.target.value || g;
|
|
63
|
-
|
|
60
|
+
R(t) && r.onStateChange(m(i, x.valueAxisLabelsFontSize, t.value));
|
|
64
61
|
}, q = (e) => {
|
|
65
|
-
|
|
62
|
+
const t = e.target.value || g;
|
|
63
|
+
r.onStateChange(m(i, x.valueAxisLabelsFontName, t.value));
|
|
66
64
|
}, G = (e) => {
|
|
67
|
-
|
|
65
|
+
r.onStateChange(m(i, x.valueAxisLabelsColor, e.value));
|
|
68
66
|
}, H = (e) => {
|
|
67
|
+
r.onStateChange(m(i, x.valueAxisLabelsRotation, e.target.value));
|
|
68
|
+
}, J = (e) => {
|
|
69
69
|
const t = e.target.value;
|
|
70
|
-
|
|
70
|
+
r.onStateChange(m(i, x.valueAxisLabelsFormat, t.value));
|
|
71
71
|
};
|
|
72
72
|
return /* @__PURE__ */ a.createElement(
|
|
73
|
-
|
|
73
|
+
O,
|
|
74
74
|
{
|
|
75
75
|
style: { maxWidth: "576px" },
|
|
76
76
|
title: w === "scatter" ? l.toLanguageString(le, o.formatYAxis) : l.toLanguageString(oe, o.formatValueAxis),
|
|
@@ -78,7 +78,7 @@ const we = (s) => {
|
|
|
78
78
|
tabIndex: 0,
|
|
79
79
|
onAction: D
|
|
80
80
|
},
|
|
81
|
-
/* @__PURE__ */ a.createElement(Fe, null, V && /* @__PURE__ */ a.createElement(
|
|
81
|
+
/* @__PURE__ */ a.createElement(Fe, null, V && /* @__PURE__ */ a.createElement(Q, null, /* @__PURE__ */ a.createElement(U, { onKeyDown: _ }, /* @__PURE__ */ a.createElement(
|
|
82
82
|
N,
|
|
83
83
|
{
|
|
84
84
|
legend: l.toLanguageString(
|
|
@@ -87,7 +87,7 @@ const we = (s) => {
|
|
|
87
87
|
)
|
|
88
88
|
},
|
|
89
89
|
/* @__PURE__ */ a.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ a.createElement(u, { className: "k-col-span-2" }, /* @__PURE__ */ a.createElement(
|
|
90
|
-
|
|
90
|
+
X,
|
|
91
91
|
{
|
|
92
92
|
placeholder: l.toLanguageString(
|
|
93
93
|
ne,
|
|
@@ -102,7 +102,7 @@ const we = (s) => {
|
|
|
102
102
|
className: "k-col-span-2",
|
|
103
103
|
editorId: "valueAxisTitleFont",
|
|
104
104
|
labelText: l.toLanguageString(
|
|
105
|
-
|
|
105
|
+
se,
|
|
106
106
|
o.formatValueAxisTitleFont
|
|
107
107
|
)
|
|
108
108
|
},
|
|
@@ -110,18 +110,18 @@ const we = (s) => {
|
|
|
110
110
|
v,
|
|
111
111
|
{
|
|
112
112
|
id: "valueAxisTitleFont",
|
|
113
|
-
data:
|
|
113
|
+
data: c,
|
|
114
114
|
textField: "text",
|
|
115
115
|
dataItemKey: "value",
|
|
116
116
|
itemRender: k,
|
|
117
117
|
placeholder: l.toLanguageString(
|
|
118
|
-
|
|
118
|
+
re,
|
|
119
119
|
o.formatValueAxisTitleFontPlaceholder
|
|
120
120
|
),
|
|
121
|
-
value:
|
|
121
|
+
value: c.find(
|
|
122
122
|
(e) => {
|
|
123
|
-
var t, n,
|
|
124
|
-
return e.value === ((
|
|
123
|
+
var t, n, s;
|
|
124
|
+
return e.value === ((s = d(((n = (t = i.valueAxis[0]) == null ? void 0 : t.title) == null ? void 0 : n.font) || "")) == null ? void 0 : s.name);
|
|
125
125
|
}
|
|
126
126
|
) || g,
|
|
127
127
|
onChange: Y,
|
|
@@ -150,8 +150,8 @@ const we = (s) => {
|
|
|
150
150
|
),
|
|
151
151
|
value: f.find(
|
|
152
152
|
(e) => {
|
|
153
|
-
var t, n,
|
|
154
|
-
return e.value === ((
|
|
153
|
+
var t, n, s;
|
|
154
|
+
return e.value === ((s = d(((n = (t = i.valueAxis[0]) == null ? void 0 : t.title) == null ? void 0 : n.font) || "")) == null ? void 0 : s.size);
|
|
155
155
|
}
|
|
156
156
|
) || g,
|
|
157
157
|
onChange: B,
|
|
@@ -174,7 +174,7 @@ const we = (s) => {
|
|
|
174
174
|
id: "valueAxisTitleColor",
|
|
175
175
|
view: "gradient",
|
|
176
176
|
value: ((h = (C = i.valueAxis[0]) == null ? void 0 : C.title) == null ? void 0 : h.color) || "",
|
|
177
|
-
onChange:
|
|
177
|
+
onChange: W,
|
|
178
178
|
fillMode: "outline"
|
|
179
179
|
}
|
|
180
180
|
)
|
|
@@ -211,7 +211,7 @@ const we = (s) => {
|
|
|
211
211
|
return e.value === ((n = (t = i.valueAxis[0]) == null ? void 0 : t.labels) == null ? void 0 : n.format);
|
|
212
212
|
}
|
|
213
213
|
) || L,
|
|
214
|
-
onChange:
|
|
214
|
+
onChange: J,
|
|
215
215
|
...A
|
|
216
216
|
}
|
|
217
217
|
)
|
|
@@ -221,7 +221,7 @@ const we = (s) => {
|
|
|
221
221
|
className: "k-col-span-2",
|
|
222
222
|
editorId: "valueAxisLabelsFont",
|
|
223
223
|
labelText: l.toLanguageString(
|
|
224
|
-
|
|
224
|
+
ce,
|
|
225
225
|
o.formatValueAxisLabelsFont
|
|
226
226
|
)
|
|
227
227
|
},
|
|
@@ -229,20 +229,20 @@ const we = (s) => {
|
|
|
229
229
|
v,
|
|
230
230
|
{
|
|
231
231
|
id: "valueAxisLabelsFont",
|
|
232
|
-
data:
|
|
232
|
+
data: c,
|
|
233
233
|
textField: "text",
|
|
234
234
|
dataItemKey: "value",
|
|
235
235
|
placeholder: l.toLanguageString(
|
|
236
|
-
|
|
236
|
+
de,
|
|
237
237
|
o.formatValueAxisLabelsFontPlaceholder
|
|
238
238
|
),
|
|
239
|
-
value:
|
|
239
|
+
value: c.find(
|
|
240
240
|
(e) => {
|
|
241
|
-
var t, n,
|
|
242
|
-
return e.value === ((
|
|
241
|
+
var t, n, s;
|
|
242
|
+
return e.value === ((s = d(((n = (t = i.valueAxis[0]) == null ? void 0 : t.labels) == null ? void 0 : n.font) || "")) == null ? void 0 : s.name);
|
|
243
243
|
}
|
|
244
244
|
) || g,
|
|
245
|
-
onChange:
|
|
245
|
+
onChange: q,
|
|
246
246
|
itemRender: k,
|
|
247
247
|
...A
|
|
248
248
|
}
|
|
@@ -269,11 +269,11 @@ const we = (s) => {
|
|
|
269
269
|
),
|
|
270
270
|
value: f.find(
|
|
271
271
|
(e) => {
|
|
272
|
-
var t, n,
|
|
273
|
-
return e.value === ((
|
|
272
|
+
var t, n, s;
|
|
273
|
+
return e.value === ((s = d(((n = (t = i.valueAxis[0]) == null ? void 0 : t.labels) == null ? void 0 : n.font) || "")) == null ? void 0 : s.size);
|
|
274
274
|
}
|
|
275
275
|
) || g,
|
|
276
|
-
onChange:
|
|
276
|
+
onChange: j,
|
|
277
277
|
allowCustom: !0,
|
|
278
278
|
...A
|
|
279
279
|
}
|
|
@@ -293,7 +293,7 @@ const we = (s) => {
|
|
|
293
293
|
id: "valueAxisLabelsColor",
|
|
294
294
|
view: "gradient",
|
|
295
295
|
value: ((E = (T = i.valueAxis[0]) == null ? void 0 : T.labels) == null ? void 0 : E.color) || "",
|
|
296
|
-
onChange:
|
|
296
|
+
onChange: G,
|
|
297
297
|
fillMode: "outline"
|
|
298
298
|
}
|
|
299
299
|
)
|
|
@@ -307,7 +307,7 @@ const we = (s) => {
|
|
|
307
307
|
)
|
|
308
308
|
},
|
|
309
309
|
/* @__PURE__ */ a.createElement(
|
|
310
|
-
|
|
310
|
+
Z,
|
|
311
311
|
{
|
|
312
312
|
id: "valueAxisLabelsRotation",
|
|
313
313
|
value: typeof ((z = (p = i.valueAxis[0]) == null ? void 0 : p.labels) == null ? void 0 : z.rotation) == "number" ? (I = (P = i.valueAxis[0]) == null ? void 0 : P.labels) == null ? void 0 : I.rotation : null,
|
|
@@ -315,7 +315,7 @@ const we = (s) => {
|
|
|
315
315
|
Ve,
|
|
316
316
|
o.formatValueAxisLabelsRotationAuto
|
|
317
317
|
),
|
|
318
|
-
onChange:
|
|
318
|
+
onChange: H,
|
|
319
319
|
fillMode: "outline",
|
|
320
320
|
min: -360,
|
|
321
321
|
max: 360,
|
|
@@ -327,5 +327,5 @@ const we = (s) => {
|
|
|
327
327
|
);
|
|
328
328
|
};
|
|
329
329
|
export {
|
|
330
|
-
|
|
330
|
+
Re as ValueAxisPanel
|
|
331
331
|
};
|