@progress/kendo-react-chart-wizard 14.2.1-develop.2 → 14.2.1-develop.4
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,9 +5,9 @@
|
|
|
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 { ChartWizardState } from '@progress/kendo-charts';
|
|
10
9
|
import { Chart } from '@progress/kendo-react-charts';
|
|
10
|
+
import * as React from 'react';
|
|
11
11
|
interface ChartComponentProps {
|
|
12
12
|
state: ChartWizardState;
|
|
13
13
|
}
|
|
@@ -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 v=require("react"),o=require("@progress/kendo-react-charts");function A(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}return n.default=r,Object.freeze(n)}const l=A(v),E=l.forwardRef((r,n)=>{var a,i,s,m,b,f,u,g,d,C,h,p,y;const t=r.state;return l.createElement(o.Chart,{style:{width:"100%",height:"100%"},transitions:!1,ref:n},l.createElement(o.ChartTitle,{text:(a=t.title)==null?void 0:a.text,font:(i=t.title)==null?void 0:i.font,color:((s=t.title)==null?void 0:s.color)||"#000"}),l.createElement(o.ChartSubtitle,{text:(m=t.subtitle)==null?void 0:m.text,font:(b=t.subtitle)==null?void 0:b.font,color:((f=t.subtitle)==null?void 0:f.color)||"#000"}),l.createElement(o.ChartArea,{background:(u=t.area)==null?void 0:u.background,margin:t.area.margin}),t.categoryAxis&&l.createElement(o.ChartCategoryAxis,null,t.categoryAxis.map((e,c)=>l.createElement(o.ChartCategoryAxisItem,{key:c,categories:e.categories,title:e.title&&{text:e.title.text,font:e.title.font,color:e.title.color},labels:e.labels&&{font:e.labels.font,color:e.labels.color,rotation:e.labels.rotation},reverse:e.reverse}))),t.valueAxis&&l.createElement(o.ChartValueAxis,null,t.valueAxis.map((e,c)=>l.createElement(o.ChartValueAxisItem,{key:c,title:e.title&&{text:e.title.text,font:e.title.font,color:e.title.color},labels:e.labels&&{format:e.labels.format,font:e.labels.font,color:e.labels.color,rotation:e.labels.rotation}}))),l.createElement(o.ChartSeries,null,t.series.map((e,c)=>l.createElement(o.ChartSeriesItem,{key:String(e.name)+c,...e}))),l.createElement(o.ChartLegend,{visible:(g=t.legend)==null?void 0:g.visible,position:(d=t.legend)==null?void 0:d.position,labels:{color:((h=(C=t.legend)==null?void 0:C.labels)==null?void 0:h.color)||void 0,font:((y=(p=t.legend)==null?void 0:p.labels)==null?void 0:y.font)||void 0}}))});E.displayName="ChartComponent";exports.ChartComponent=E;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import l from "react";
|
|
9
|
-
import { Chart as E, ChartTitle as y, ChartSubtitle as A, ChartArea as v, ChartCategoryAxis as k, ChartCategoryAxisItem as S, ChartValueAxis as I, ChartValueAxisItem as w, ChartSeries as R, ChartSeriesItem as V, ChartLegend as
|
|
10
|
-
const
|
|
8
|
+
import * as l from "react";
|
|
9
|
+
import { Chart as E, ChartTitle as y, ChartSubtitle as A, ChartArea as v, ChartCategoryAxis as k, ChartCategoryAxisItem as S, ChartValueAxis as I, ChartValueAxisItem as w, ChartSeries as R, ChartSeriesItem as V, ChartLegend as L } from "@progress/kendo-react-charts";
|
|
10
|
+
const N = l.forwardRef((d, p) => {
|
|
11
11
|
var r, a, n, i, c, m, s, b, f, g, C, h, u;
|
|
12
12
|
const t = d.state;
|
|
13
13
|
return /* @__PURE__ */ l.createElement(E, { style: { width: "100%", height: "100%" }, transitions: !1, ref: p }, /* @__PURE__ */ l.createElement(y, { text: (r = t.title) == null ? void 0 : r.text, font: (a = t.title) == null ? void 0 : a.font, color: ((n = t.title) == null ? void 0 : n.color) || "#000" }), /* @__PURE__ */ l.createElement(
|
|
@@ -51,7 +51,7 @@ const L = l.forwardRef((d, p) => {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
))), /* @__PURE__ */ l.createElement(R, null, t.series.map((e, o) => /* @__PURE__ */ l.createElement(V, { key: String(e.name) + o, ...e }))), /* @__PURE__ */ l.createElement(
|
|
54
|
-
|
|
54
|
+
L,
|
|
55
55
|
{
|
|
56
56
|
visible: (b = t.legend) == null ? void 0 : b.visible,
|
|
57
57
|
position: (f = t.legend) == null ? void 0 : f.position,
|
|
@@ -62,7 +62,7 @@ const L = l.forwardRef((d, p) => {
|
|
|
62
62
|
}
|
|
63
63
|
));
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
N.displayName = "ChartComponent";
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
N as ChartComponent
|
|
68
68
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as React from 'react';
|
|
9
9
|
interface FormFieldProps {
|
|
10
10
|
labelText?: string;
|
|
11
11
|
editorId?: string;
|
package/components/FormField.js
CHANGED
|
@@ -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 n=require("react"),c=require("@progress/kendo-react-form"),o=require("@progress/kendo-react-labels"),i=require("../utils.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=d(n),s=e=>a.createElement(c.FieldWrapper,{className:e.className},e.labelText&&e.editorId&&a.createElement(o.Label,{className:"k-form-label",editorId:e.editorId},e.labelText),a.createElement("div",{className:"k-form-field-wrap",onKeyDown:i.stopPropagation},e.children));exports.FormField=s;
|
package/components/FormField.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import { FieldWrapper as
|
|
8
|
+
import * as a from "react";
|
|
9
|
+
import { FieldWrapper as t } from "@progress/kendo-react-form";
|
|
10
10
|
import { Label as r } from "@progress/kendo-react-labels";
|
|
11
11
|
import { stopPropagation as l } from "../utils.mjs";
|
|
12
|
-
const
|
|
12
|
+
const d = (e) => /* @__PURE__ */ a.createElement(t, { className: e.className }, e.labelText && e.editorId && /* @__PURE__ */ a.createElement(r, { className: "k-form-label", editorId: e.editorId }, e.labelText), /* @__PURE__ */ a.createElement("div", { className: "k-form-field-wrap", onKeyDown: l }, e.children));
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
d as FormField
|
|
15
15
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as React from 'react';
|
|
9
9
|
interface FormFieldSetProps {
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
legend?: string;
|
|
@@ -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 c=require("react");function a(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 l=a(c),o=e=>l.createElement("fieldset",{className:"k-form-fieldset"},e.legend&&l.createElement("legend",{className:"k-form-legend"},e.legend),e.children);exports.FormFieldSet=o;
|
|
@@ -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 l from "react";
|
|
9
|
-
const
|
|
8
|
+
import * as l from "react";
|
|
9
|
+
const t = (e) => /* @__PURE__ */ l.createElement("fieldset", { className: "k-form-fieldset" }, e.legend && /* @__PURE__ */ l.createElement("legend", { className: "k-form-legend" }, e.legend), e.children);
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as FormFieldSet
|
|
12
12
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as React from 'react';
|
|
9
9
|
interface SeriesGridProps {
|
|
10
10
|
data: any[];
|
|
11
11
|
initialData: any[];
|
package/components/SeriesGrid.js
CHANGED
|
@@ -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 D=require("react"),x=require("@progress/kendo-react-buttons"),u=require("@progress/kendo-react-grid"),I=require("@progress/kendo-react-intl"),k=require("@progress/kendo-svg-icons"),d=require("./SeriesGridCells.js"),G=require("../messages.js"),q=require("@progress/kendo-charts");function y(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const a=y(D),{messages:R}=q.ChartWizardCommon,w=e=>{const[s,r]=a.useState({}),[o,m]=a.useState(null),f=t=>{if(o===t)return;const n=e.data.slice(),i=n.findIndex(c=>c===o),l=n.findIndex(c=>c===t);n.splice(i,1),n.splice(l,0,o||n[0]),e.onChange.call(void 0,n)},g=t=>{m(t)},C=()=>{const t=e.initialData.find(n=>!e.data.find(i=>i.id===n.id));t&&e.onChange.call(void 0,[...e.data,t])},S=t=>{r(n=>({...n,[t.id]:!0}))},b=t=>{r(n=>Object.keys(n).reduce((i,l)=>{if(l===t.id){const c={...n};return delete c[l],c}return i},{}))},E=t=>{const n=t.field||"",i=e.data.map(l=>l.id===t.dataItem.id?{...l,[n]:t.value}:l);e.onChange.call(void 0,i)},h=t=>{const n=e.data.filter(i=>i.id!==t);e.onChange.call(void 0,n)},v=t=>{r(t.edit)};return a.createElement(d.RemoveSeriesContext.Provider,{value:{onRemove:h,count:e.data.length}},a.createElement(d.ReorderContext.Provider,{value:{reorder:f,dragStart:g}},a.createElement(d.SeriesEditContext.Provider,{value:{enterEdit:S,exitEdit:b}},a.createElement(u.Grid,{className:"k-series-grid",style:{width:"100%"},size:"medium",data:e.data,dataItemKey:"id",onItemChange:E,scrollable:"none",editable:!0,cells:{headerCell:d.SeriesHeaderCell,data:d.SeriesDataCell,edit:{text:d.SeriesDataEditCell,boolean:d.SeriesDataEditCell,numeric:d.SeriesDataEditCell,date:d.SeriesDataEditCell}},edit:s,onEditChange:v},a.createElement(u.GridToolbar,null,a.createElement(x.Button,{type:"button",className:"k-toolbar-button",fillMode:"flat",onClick:C,disabled:e.data.length===e.initialData.length,svgIcon:k.plusIcon,icon:"plus"},I.useLocalization().toLanguageString(G.configurationSeriesAdd,R.configurationSeriesAdd))),a.createElement(u.GridColumn,{field:"reorder",width:"40px",editable:!1}),a.createElement(u.GridColumn,{field:"name",title:"Name"}),a.createElement(u.GridColumn,{field:"delete",width:"40px",editable:!1})))))};exports.SeriesGrid=w;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import n from "react";
|
|
8
|
+
import * as n from "react";
|
|
9
9
|
import { Button as b } from "@progress/kendo-react-buttons";
|
|
10
10
|
import { Grid as I, GridToolbar as D, GridColumn as s } from "@progress/kendo-react-grid";
|
|
11
11
|
import { useLocalization as w } from "@progress/kendo-react-intl";
|
|
@@ -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 { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import * as React from 'react';
|
|
10
10
|
interface SeriesTypeButtonProps {
|
|
11
11
|
selected?: boolean;
|
|
12
12
|
onClick: () => void;
|
|
@@ -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 o=require("react"),r=require("@progress/kendo-react-common");function l(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const n=l(o),i=e=>{const c=n.useCallback(t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),e.onClick.call(void 0))},[e.onClick]);return n.createElement("div",{className:r.classNames("k-icon-text-wrapper",{"k-selected":e.selected}),onClick:e.onClick},n.createElement("div",{className:"k-icon-background-area",tabIndex:0,onKeyDown:c},n.createElement(r.IconWrap,{name:e.iconName,icon:e.icon,size:"xlarge",className:"k-svg-i-chart-bar-clustered"})),e.children)};exports.SeriesTypeButton=i;
|
|
@@ -5,16 +5,16 @@
|
|
|
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 { classNames as
|
|
10
|
-
const
|
|
11
|
-
const
|
|
8
|
+
import * as a from "react";
|
|
9
|
+
import { classNames as t, IconWrap as l } from "@progress/kendo-react-common";
|
|
10
|
+
const r = (e) => {
|
|
11
|
+
const n = a.useCallback(
|
|
12
12
|
(c) => {
|
|
13
13
|
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), e.onClick.call(void 0));
|
|
14
14
|
},
|
|
15
15
|
[e.onClick]
|
|
16
16
|
);
|
|
17
|
-
return /* @__PURE__ */ a.createElement("div", { className:
|
|
17
|
+
return /* @__PURE__ */ a.createElement("div", { className: t("k-icon-text-wrapper", { "k-selected": e.selected }), onClick: e.onClick }, /* @__PURE__ */ a.createElement("div", { className: "k-icon-background-area", tabIndex: 0, onKeyDown: n }, /* @__PURE__ */ a.createElement(
|
|
18
18
|
l,
|
|
19
19
|
{
|
|
20
20
|
name: e.iconName,
|
|
@@ -25,5 +25,5 @@ const o = (e) => {
|
|
|
25
25
|
)), e.children);
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
r as SeriesTypeButton
|
|
29
29
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as React from 'react';
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
@@ -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 o=require("react"),a=require("../utils.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=c(o),i=e=>s.createElement("div",{className:"k-chart-types-wrapper",onKeyDown:a.stopPropagation},e.children);exports.SeriesTypesWrap=i;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import r from "react";
|
|
8
|
+
import * as r from "react";
|
|
9
9
|
import { stopPropagation as t } from "../utils.mjs";
|
|
10
|
-
const
|
|
10
|
+
const a = (e) => /* @__PURE__ */ r.createElement("div", { className: "k-chart-types-wrapper", onKeyDown: t }, e.children);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
a as SeriesTypesWrap
|
|
13
13
|
};
|
|
@@ -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 CategoryAxisPanelProps 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 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;
|
|
@@ -5,18 +5,18 @@
|
|
|
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";
|
|
9
|
-
import { ExpansionPanel as X, ExpansionPanelContent as
|
|
10
|
-
import { FormElement as
|
|
8
|
+
import * as e from "react";
|
|
9
|
+
import { ExpansionPanel as X, ExpansionPanelContent as D } from "@progress/kendo-react-layout";
|
|
10
|
+
import { FormElement as V } from "@progress/kendo-react-form";
|
|
11
11
|
import { FormFieldSet as T } from "../FormFieldSet.mjs";
|
|
12
12
|
import { FormField as s } from "../FormField.mjs";
|
|
13
|
-
import { Input as
|
|
14
|
-
import { updateState as g, ActionTypes as c, nullItem as m, ensureValue as F, stopPropagation as
|
|
15
|
-
import { formatXAxis as
|
|
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";
|
|
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
17
|
import { Reveal as me } from "@progress/kendo-react-animation";
|
|
18
18
|
import { ComboBox as A } from "@progress/kendo-react-dropdowns";
|
|
19
|
-
const
|
|
19
|
+
const he = (n) => {
|
|
20
20
|
var f, b, L, S, h;
|
|
21
21
|
const l = ce(), t = n.state, k = t.seriesType, [u, p] = e.useState(!1), z = e.useCallback((a) => {
|
|
22
22
|
p(!a.expanded);
|
|
@@ -74,24 +74,24 @@ const Te = (n) => {
|
|
|
74
74
|
X,
|
|
75
75
|
{
|
|
76
76
|
style: { maxWidth: "576px" },
|
|
77
|
-
title: k === "scatter" ? l.toLanguageString(
|
|
77
|
+
title: k === "scatter" ? l.toLanguageString(H, r.formatXAxis) : l.toLanguageString(J, r.formatCategoryAxis),
|
|
78
78
|
expanded: u,
|
|
79
79
|
tabIndex: 0,
|
|
80
80
|
onAction: z
|
|
81
81
|
},
|
|
82
|
-
/* @__PURE__ */ e.createElement(me, null, u && /* @__PURE__ */ e.createElement(
|
|
82
|
+
/* @__PURE__ */ e.createElement(me, null, u && /* @__PURE__ */ e.createElement(D, null, /* @__PURE__ */ e.createElement(V, { onKeyDown: G }, /* @__PURE__ */ e.createElement(
|
|
83
83
|
T,
|
|
84
84
|
{
|
|
85
85
|
legend: l.toLanguageString(
|
|
86
|
-
|
|
86
|
+
Q,
|
|
87
87
|
r.formatCategoryAxisTitle
|
|
88
88
|
)
|
|
89
89
|
},
|
|
90
90
|
/* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(s, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
|
|
91
|
-
|
|
91
|
+
W,
|
|
92
92
|
{
|
|
93
93
|
placeholder: l.toLanguageString(
|
|
94
|
-
|
|
94
|
+
U,
|
|
95
95
|
r.formatCategoryAxisTitlePlaceholder
|
|
96
96
|
),
|
|
97
97
|
value: ((f = t.categoryAxis[0].title) == null ? void 0 : f.text) || "",
|
|
@@ -103,7 +103,7 @@ const Te = (n) => {
|
|
|
103
103
|
className: "k-col-span-2",
|
|
104
104
|
editorId: "categoryAxisTitleFont",
|
|
105
105
|
labelText: l.toLanguageString(
|
|
106
|
-
|
|
106
|
+
Y,
|
|
107
107
|
r.formatCategoryAxisTitleFont
|
|
108
108
|
)
|
|
109
109
|
},
|
|
@@ -116,7 +116,7 @@ const Te = (n) => {
|
|
|
116
116
|
dataItemKey: "value",
|
|
117
117
|
itemRender: E,
|
|
118
118
|
placeholder: l.toLanguageString(
|
|
119
|
-
|
|
119
|
+
Z,
|
|
120
120
|
r.formatCategoryAxisTitleFontPlaceholder
|
|
121
121
|
),
|
|
122
122
|
value: C.find(
|
|
@@ -134,7 +134,7 @@ const Te = (n) => {
|
|
|
134
134
|
{
|
|
135
135
|
editorId: "categoryAxisTitleFontSize",
|
|
136
136
|
labelText: l.toLanguageString(
|
|
137
|
-
|
|
137
|
+
_,
|
|
138
138
|
r.formatCategoryAxisTitleSize
|
|
139
139
|
)
|
|
140
140
|
},
|
|
@@ -280,7 +280,7 @@ const Te = (n) => {
|
|
|
280
280
|
)
|
|
281
281
|
},
|
|
282
282
|
/* @__PURE__ */ e.createElement(
|
|
283
|
-
|
|
283
|
+
j,
|
|
284
284
|
{
|
|
285
285
|
id: "categoryAxisLabelsRotation",
|
|
286
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,
|
|
@@ -296,7 +296,7 @@ const Te = (n) => {
|
|
|
296
296
|
}
|
|
297
297
|
)
|
|
298
298
|
), /* @__PURE__ */ e.createElement(s, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
|
|
299
|
-
|
|
299
|
+
q,
|
|
300
300
|
{
|
|
301
301
|
label: l.toLanguageString(
|
|
302
302
|
ge,
|
|
@@ -310,5 +310,5 @@ const Te = (n) => {
|
|
|
310
310
|
);
|
|
311
311
|
};
|
|
312
312
|
export {
|
|
313
|
-
|
|
313
|
+
he as CategoryAxisPanel
|
|
314
314
|
};
|
|
@@ -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 ChartAreaPanelProps 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 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;
|
|
@@ -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 a from "react";
|
|
8
|
+
import * as a from "react";
|
|
9
9
|
import { ExpansionPanel as k, ExpansionPanelContent as S } from "@progress/kendo-react-layout";
|
|
10
10
|
import { FormElement as b } from "@progress/kendo-react-form";
|
|
11
11
|
import { FormFieldSet as C } from "../FormFieldSet.mjs";
|
|
12
12
|
import { FormField as g } from "../FormField.mjs";
|
|
13
13
|
import { NumericTextBox as u, ColorPicker as v } from "@progress/kendo-react-inputs";
|
|
14
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
|
|
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";
|
|
16
16
|
import { useLocalization as z } from "@progress/kendo-react-intl";
|
|
17
17
|
import { Reveal as N } from "@progress/kendo-react-animation";
|
|
18
18
|
const Q = (l) => {
|
|
19
19
|
var h;
|
|
20
|
-
const e = z(), t = l.state, [
|
|
20
|
+
const e = z(), t = l.state, [d, s] = a.useState(!1), f = a.useCallback((o) => {
|
|
21
21
|
s(!o.expanded);
|
|
22
22
|
}, []), A = a.useCallback(
|
|
23
23
|
(o) => {
|
|
@@ -50,11 +50,11 @@ const Q = (l) => {
|
|
|
50
50
|
{
|
|
51
51
|
style: { maxWidth: "576px" },
|
|
52
52
|
title: e.toLanguageString(B, r.formatChartArea),
|
|
53
|
-
expanded:
|
|
53
|
+
expanded: d,
|
|
54
54
|
tabIndex: 0,
|
|
55
55
|
onAction: f
|
|
56
56
|
},
|
|
57
|
-
/* @__PURE__ */ a.createElement(N, null,
|
|
57
|
+
/* @__PURE__ */ a.createElement(N, null, d && /* @__PURE__ */ a.createElement(S, null, /* @__PURE__ */ a.createElement(b, { onKeyDown: L }, /* @__PURE__ */ a.createElement(
|
|
58
58
|
C,
|
|
59
59
|
{
|
|
60
60
|
legend: e.toLanguageString(
|
|
@@ -78,7 +78,7 @@ const Q = (l) => {
|
|
|
78
78
|
value: n.left !== void 0 ? n.left : null,
|
|
79
79
|
onChange: A,
|
|
80
80
|
placeholder: e.toLanguageString(
|
|
81
|
-
|
|
81
|
+
c,
|
|
82
82
|
r.formatChartAreaMarginsAuto
|
|
83
83
|
),
|
|
84
84
|
min: 0,
|
|
@@ -103,7 +103,7 @@ const Q = (l) => {
|
|
|
103
103
|
value: n.right !== void 0 ? n.right : null,
|
|
104
104
|
onChange: p,
|
|
105
105
|
placeholder: e.toLanguageString(
|
|
106
|
-
|
|
106
|
+
c,
|
|
107
107
|
r.formatChartAreaMarginsAuto
|
|
108
108
|
),
|
|
109
109
|
min: 0,
|
|
@@ -128,7 +128,7 @@ const Q = (l) => {
|
|
|
128
128
|
value: n.top !== void 0 ? n.top : null,
|
|
129
129
|
onChange: M,
|
|
130
130
|
placeholder: e.toLanguageString(
|
|
131
|
-
|
|
131
|
+
c,
|
|
132
132
|
r.formatChartAreaMarginsAuto
|
|
133
133
|
),
|
|
134
134
|
min: 0,
|
|
@@ -153,7 +153,7 @@ const Q = (l) => {
|
|
|
153
153
|
value: n.bottom !== void 0 ? n.bottom : null,
|
|
154
154
|
onChange: x,
|
|
155
155
|
placeholder: e.toLanguageString(
|
|
156
|
-
|
|
156
|
+
c,
|
|
157
157
|
r.formatChartAreaMarginsAuto
|
|
158
158
|
),
|
|
159
159
|
min: 0,
|
|
@@ -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 ConfigurationPanelProps 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"),x=require("@progress/kendo-react-form"),u=require("@progress/kendo-react-layout"),a=require("../../utils.js"),c=require("../FormFieldSet.js"),y=require("@progress/kendo-react-intl"),o=require("../../messages.js"),g=require("@progress/kendo-react-dropdowns"),A=require("../SeriesGrid.js"),E=require("@progress/kendo-react-animation");function b(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return i.default=n,Object.freeze(i)}const t=b(f),F=n=>{const i=y.useLocalization(),e=n.state,s=e.seriesType,[l,d]=t.useState(!0),m=t.useCallback(r=>{d(!r.expanded)},[]),p=t.useCallback(r=>{n.onStateChange(a.updateState(e,a.ActionTypes.categoryAxisX,r.target.value))},[e]),C=t.useCallback(r=>{n.onStateChange(a.updateState(e,a.ActionTypes.seriesChange,r))},[e]),S=t.useCallback(r=>{n.onStateChange(a.updateState(e,a.ActionTypes.valueAxisY,r.target.value))},[e]);return t.createElement(u.ExpansionPanel,{style:{maxWidth:"576px"},title:i.toLanguageString(o.configuration,o.messages.configuration),expanded:l,tabIndex:0,onAction:m},t.createElement(E.Reveal,null,l&&t.createElement(u.ExpansionPanelContent,null,t.createElement(x.FormElement,{onKeyDown:a.stopPropagation},t.createElement(c.FormFieldSet,{legend:s==="scatter"?i.toLanguageString(o.configurationXAxis,o.messages.configurationXAxis):i.toLanguageString(o.configurationCategoryAxis,o.messages.configurationCategoryAxis)},t.createElement(g.DropDownList,{data:e.columns||[],value:e.categoryField,onChange:p,...a.dropdownlistCommonProps})),a.isCategorical(s)&&t.createElement(c.FormFieldSet,{legend:i.toLanguageString(o.configurationSeries,o.messages.configurationSeries)},t.createElement(A.SeriesGrid,{data:e.series,initialData:e.initialSeries,onChange:C})),s==="pie"&&t.createElement(c.FormFieldSet,{legend:i.toLanguageString(o.configurationValueAxis,o.messages.configurationValueAxis)},t.createElement(g.DropDownList,{data:e.columns||[],value:e.valueField||"",...a.dropdownlistCommonProps,onChange:S}))))))};exports.ConfigurationPanel=F;
|