@progress/kendo-react-chart-wizard 8.3.0-develop.9 → 8.3.0

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