@progress/kendo-react-chart-wizard 8.3.0-develop.1 → 8.3.0-develop.11
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/ChartWizard.js +1 -1
- package/ChartWizard.mjs +550 -521
- package/SeriesGrid.js +1 -1
- package/SeriesGrid.mjs +20 -20
- package/chart-wizard-state.js +1 -1
- package/chart-wizard-state.mjs +117 -101
- package/dist/cdn/js/kendo-react-chart-wizard.js +1 -1
- package/grid-integration/get-grid-selected-rows.js +1 -1
- package/grid-integration/get-grid-selected-rows.mjs +18 -16
- package/index.d.mts +17 -1
- package/index.d.ts +17 -1
- package/messages.js +1 -1
- package/messages.mjs +196 -196
- package/package.json +15 -15
|
@@ -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
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-react-dialogs"),require("@progress/kendo-react-charts"),require("@progress/kendo-react-layout"),require("@progress/kendo-react-buttons"),require("@progress/kendo-svg-icons"),require("@progress/kendo-react-animation"),require("@progress/kendo-react-dropdowns"),require("@progress/kendo-react-grid"),require("@progress/kendo-react-intl"),require("@progress/kendo-react-common"),require("@progress/kendo-react-inputs"),require("@progress/kendo-react-labels"),require("@progress/kendo-react-form"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-react-dialogs","@progress/kendo-react-charts","@progress/kendo-react-layout","@progress/kendo-react-buttons","@progress/kendo-svg-icons","@progress/kendo-react-animation","@progress/kendo-react-dropdowns","@progress/kendo-react-grid","@progress/kendo-react-intl","@progress/kendo-react-common","@progress/kendo-react-inputs","@progress/kendo-react-labels","@progress/kendo-react-form","@progress/kendo-drawing","@progress/kendo-file-saver"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactChartWizard={},e.React,e.KendoReactDialogs,e.KendoReactCharts,e.KendoReactLayout,e.KendoReactButtons,e.KendoSvgIcons,e.KendoReactAnimation,e.KendoReactDropdowns,e.KendoReactGrid,e.KendoReactIntl,e.KendoReactCommon,e.KendoReactInputs,e.KendoReactLabels,e.KendoReactForm,e.KendoDrawing,e.KendoFileSaver)}(this,(function(e,t,a,l,r,n,o,i,s,c,d,u,g,m,v,x,p){"use strict";function b(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var h=b(t);const f=h.createContext({onRemove:e=>{},count:0}),C=e=>{const{onRemove:t,count:a}=h.useContext(f);return h.createElement("td",{...e.tdProps},h.createElement(n.Button,{type:"button",onClick:()=>{t.call(void 0,e.dataItem.id)},icon:"trash",svgIcon:o.trashIcon,fillMode:"flat",disabled:a<2}))},y=h.createContext({reorder:()=>{},dragStart:()=>{}}),A=e=>{const t=h.useContext(y);return h.createElement("td",{...e.tdProps,onDragOver:a=>{t.reorder.call(void 0,e.dataItem),a.preventDefault(),a.dataTransfer.dropEffect="copy"}},h.createElement("span",{draggable:!0,style:{cursor:"move"},onDragStart:a=>{t.dragStart.call(void 0,e.dataItem),a.dataTransfer.setData("dragging","")}},h.createElement(u.IconWrap,{icon:o.reorderIcon,name:"reorder"})))},E=h.createContext({enterEdit:(e,t)=>{},exitEdit:(e,t)=>{}}),k=e=>{const{enterEdit:t}=h.useContext(E);return h.createElement("td",{...e.tdProps,onClick:()=>{t(e.dataItem,e.field)}},e.children)},S=e=>"delete"===e.field?h.createElement(C,{...e}):"reorder"===e.field?h.createElement(A,{...e}):"name"===e.field?h.createElement(k,{...e}):null,L=e=>{const t=h.useRef(null),{exitEdit:a}=h.useContext(E);return h.useEffect((()=>{var e;const a=null==(e=t.current)?void 0:e.querySelector("input");null==a||a.focus()}),[]),h.createElement("td",{...e.tdProps,ref:t,onBlur:()=>{a(e.dataItem,e.field)},onKeyDown:t=>{"Enter"===t.key||"Escape"===t.key?(t.stopPropagation(),a(e.dataItem,e.field)):" "===t.key&&t.stopPropagation()}},e.children)},z=()=>null,T="chartWizard.window.title",F="chartWizard.export.button",I="chartWizard.exportPDF.button",W="chartWizard.exportSVG.button",N="chartWizard.exportPNG.button",P="chartWizard.tab.chart",w="chartWizard.tab.data",R="chartWizard.tab.format",B="chartWizard.chart.barChart",D="chartWizard.chart.barChart.bar",M="chartWizard.chart.barChart.stackedBar",K="chartWizard.chart.barChart.100%stackedBar",O="chartWizard.chart.pieChart",G="chartWizard.chart.pieChart.pie",q="chartWizard.chart.columnChart",V="chartWizard.chart.columnChart.column",j="chartWizard.chart.columnChart.stackedColumn",H="chartWizard.chart.columnChart.100%stackedColumn",X="chartWizard.chart.lineChart",Y="chartWizard.chart.lineChart.line",$="chartWizard.chart.lineChart.stackedLine",U="chartWizard.chart.lineChart.100%stackedLine",J="chartWizard.chart.scatterChart",Q="chartWizard.chart.scatterChart.scatter",Z="chartWizard.data.configuration",_="chartWizard.data.configuration.categoryAxis",ee="chartWizard.data.configuration.xAxis",te="chartWizard.data.configuration.valueAxis",ae="chartWizard.data.configuration.series",le="chartWizard.data.configuration.series.add",re="chartWizard.format.chartArea",ne="chartWizard.format.chartArea.margins",oe="chartWizard.format.chartArea.margins.auto",ie="chartWizard.format.chartArea.margins.left",se="chartWizard.format.chartArea.margins.right",ce="chartWizard.format.chartArea.margins.top",de="chartWizard.format.chartArea.margins.bottom",ue="chartWizard.format.chartArea.background",ge="chartWizard.format.chartArea.background.color",me="chartWizard.format.title",ve="chartWizard.format.title.applyTo",xe="chartWizard.format.title.chartTitle",pe="chartWizard.format.title.chartSubtitle",be="chartWizard.format.title.label",he="chartWizard.format.title.font",fe="chartWizard.format.title.fontPlaceholder",Ce="chartWizard.format.title.size",ye="chartWizard.format.title.sizePlaceholder",Ae="chartWizard.format.title.color",Ee="chartWizard.format.series",ke="chartWizard.format.series.applyTo",Se="chartWizard.format.series.allSeries",Le="chartWizard.format.series.color",ze="chartWizard.format.series.showLabels",Te="chartWizard.format.legend",Fe="chartWizard.format.legend.showLegend",Ie="chartWizard.format.legend.font",We="chartWizard.format.legend.fontPlaceholder",Ne="chartWizard.format.legend.size",Pe="chartWizard.format.legend.sizePlaceholder",we="chartWizard.format.legend.color",Re="chartWizard.format.legend.position",Be="chartWizard.format.legend.position.top",De="chartWizard.format.legend.position.bottom",Me="chartWizard.format.legend.position.left",Ke="chartWizard.format.legend.position.right",Oe="chartWizard.format.categoryAxis",Ge="chartWizard.format.xAxis",qe="chartWizard.format.categoryAxis.title",Ve="chartWizard.format.categoryAxis.title.placeholder",je="chartWizard.format.categoryAxis.title.font",He="chartWizard.format.categoryAxis.title.fontPlaceholder",Xe="chartWizard.format.categoryAxis.title.size",Ye="chartWizard.format.categoryAxis.title.sizePlaceholder",$e="chartWizard.format.categoryAxis.title.color",Ue="chartWizard.format.categoryAxis.labels",Je="chartWizard.format.categoryAxis.labels.font",Qe="chartWizard.format.categoryAxis.labels.fontPlaceholder",Ze="chartWizard.format.categoryAxis.labels.size",_e="chartWizard.format.categoryAxis.labels.sizePlaceholder",et="chartWizard.format.categoryAxis.labels.color",tt="chartWizard.format.categoryAxis.labels.rotation",at="chartWizard.format.categoryAxis.labels.rotation.auto",lt="chartWizard.format.categoryAxis.labels.reverseOrder",rt="chartWizard.format.valueAxis",nt="chartWizard.format.yAxis",ot="chartWizard.format.valueAxis.title",it="chartWizard.format.valueAxis.title.placeholder",st="chartWizard.format.valueAxis.title.font",ct="chartWizard.format.valueAxis.title.fontPlaceholder",dt="chartWizard.format.valueAxis.title.size",ut="chartWizard.format.valueAxis.title.sizePlaceholder",gt="chartWizard.format.valueAxis.title.color",mt="chartWizard.format.valueAxis.labels",vt="chartWizard.format.valueAxis.labelFormat",xt="chartWizard.format.valueAxis.labelFormat.text",pt="chartWizard.format.valueAxis.labelFormat.number",bt="chartWizard.format.valueAxis.labelFormat.currency",ht="chartWizard.format.valueAxis.labelFormat.percent",ft="chartWizard.format.valueAxis.labels.font",Ct="chartWizard.format.valueAxis.labels.fontPlaceholder",yt="chartWizard.format.valueAxis.labels.size",At="chartWizard.format.valueAxis.labels.sizePlaceholder",Et="chartWizard.format.valueAxis.labels.color",kt="chartWizard.format.valueAxis.labels.rotation",St="chartWizard.format.valueAxis.labels.rotation.auto",Lt={[T]:"Chart Preview",[F]:"Export",[I]:"PDF File",[W]:"SVG File",[N]:"PNG File",[P]:"Chart",[w]:"Data",[R]:"Format",[B]:"Bar Chart",[D]:"Bar",[M]:"Stacked Bar",[K]:"100% Stacked Bar",[O]:"Pie Chart",[G]:"Pie",[q]:"Column Chart",[V]:"Column",[j]:"Stacked Column",[H]:"100% Stacked Column",[X]:"Line Chart",[Y]:"Line",[$]:"Stacked Line",[U]:"100% Stacked Line",[J]:"Scatter Chart",[Q]:"Scatter",[Z]:"Configuration",[_]:"Category Axis",[ee]:"X Axis",[te]:"Value Axis",[ae]:"Series",[le]:"Add",[re]:"Chart Area",[ne]:"Margins",[oe]:"Auto",[ie]:"Left",[se]:"Right",[ce]:"Top",[de]:"Bottom",[ue]:"Background",[ge]:"Color",[me]:"Title",[ve]:"Apply to",[xe]:"Chart Title",[pe]:"Chart Subtitle",[be]:"Title",[he]:"Font",[fe]:"(inherited font)",[Ce]:"Size",[ye]:"px",[Ae]:"Color",[Ee]:"Series",[ke]:"Apply to",[Se]:"All Series",[Le]:"Color",[ze]:"Show Labels",[Te]:"Legend",[Fe]:"Show Legend",[Ie]:"Font",[We]:"(inherited font)",[Ne]:"Size",[Pe]:"px",[we]:"Color",[Re]:"Position",[Be]:"Top",[De]:"Bottom",[Me]:"Left",[Ke]:"Right",[Oe]:"Category Axis",[Ge]:"X Axis",[qe]:"Title",[Ve]:"Axis Title",[je]:"Font",[He]:"(inherited font)",[Xe]:"Size",[Ye]:"px",[$e]:"Color",[Ue]:"Labels",[Je]:"Font",[Qe]:"(inherited font)",[Ze]:"Size",[_e]:"px",[et]:"Color",[tt]:"Rotation",[at]:"Auto",[lt]:"Reverse Order",[rt]:"Value Axis",[nt]:"Y Axis",[ot]:"Title",[it]:"Axis Title",[st]:"Font",[ct]:"(inherited font)",[dt]:"Size",[ut]:"px",[gt]:"Color",[mt]:"Labels",[vt]:"Label Format",[xt]:"Text",[pt]:"Number",[bt]:"Currency",[ht]:"Percent",[ft]:"Font",[Ct]:"(inherited font)",[yt]:"Size",[At]:"px",[Et]:"Color",[kt]:"Rotation",[St]:"Auto"},zt="inEdit",Tt=e=>{const[a,l]=t.useState(null);return t.createElement(f.Provider,{value:{onRemove:t=>{const a=e.data.filter((e=>e.id!==t));e.onChange.call(void 0,a)},count:e.data.length}},t.createElement(y.Provider,{value:{reorder:t=>{if(a===t)return;const l=e.data.slice(),r=l.findIndex((e=>e===a)),n=l.findIndex((e=>e===t));l.splice(r,1),l.splice(n,0,a||l[0]),e.onChange.call(void 0,l)},dragStart:e=>{l(e)}}},t.createElement(E.Provider,{value:{enterEdit:(t,a)=>{const l=e.data.map((e=>({...e,[zt]:e.id===t.id?a:void 0})));e.onChange.call(void 0,l)},exitEdit:()=>{const t=e.data.map((e=>({...e,[zt]:void 0})));e.onChange.call(void 0,t)}}},t.createElement(c.Grid,{className:"k-series-grid",style:{width:"100%"},size:"medium",data:e.data,dataItemKey:"id",onItemChange:t=>{const a=t.field||"",l=e.data.map((e=>e.id===t.dataItem.id?{...e,[a]:t.value}:e));e.onChange.call(void 0,l)},scrollable:"none",editField:zt,cells:{headerCell:z,data:S,edit:{text:L,boolean:L,numeric:L,date:L}}},t.createElement(c.GridToolbar,null,t.createElement(n.Button,{type:"button",className:"k-toolbar-button",fillMode:"flat",onClick:()=>{const t=e.initialData.find((t=>!e.data.find((e=>e.id===t.id))));t&&e.onChange.call(void 0,[...e.data,t])},disabled:e.data.length===e.initialData.length,svgIcon:o.plusIcon,icon:"plus"},d.useLocalization().toLanguageString(le,Lt[le]))),t.createElement(c.GridColumn,{field:"reorder",width:"40px",editable:!1}),t.createElement(c.GridColumn,{field:"name",title:"Name"}),t.createElement(c.GridColumn,{field:"delete",width:"40px",editable:!1})))))};var Ft=(e=>(e[e.seriesType=0]="seriesType",e[e.stacked=1]="stacked",e[e.categoryAxisX=2]="categoryAxisX",e[e.valueAxisY=3]="valueAxisY",e[e.seriesChange=4]="seriesChange",e[e.areaMarginLeft=5]="areaMarginLeft",e[e.areaMarginRight=6]="areaMarginRight",e[e.areaMarginTop=7]="areaMarginTop",e[e.areaMarginBottom=8]="areaMarginBottom",e[e.areaBackground=9]="areaBackground",e[e.titleText=10]="titleText",e[e.titleFontName=11]="titleFontName",e[e.titleFontSize=12]="titleFontSize",e[e.titleColor=13]="titleColor",e[e.subtitleText=14]="subtitleText",e[e.subtitleFontName=15]="subtitleFontName",e[e.subtitleFontSize=16]="subtitleFontSize",e[e.subtitleColor=17]="subtitleColor",e[e.seriesColor=18]="seriesColor",e[e.seriesLabel=19]="seriesLabel",e[e.legendVisible=20]="legendVisible",e[e.legendFontName=21]="legendFontName",e[e.legendFontSize=22]="legendFontSize",e[e.legendColor=23]="legendColor",e[e.legendPosition=24]="legendPosition",e[e.categoryAxisTitleText=25]="categoryAxisTitleText",e[e.categoryAxisTitleFontName=26]="categoryAxisTitleFontName",e[e.categoryAxisTitleFontSize=27]="categoryAxisTitleFontSize",e[e.categoryAxisTitleColor=28]="categoryAxisTitleColor",e[e.categoryAxisLabelsFontName=29]="categoryAxisLabelsFontName",e[e.categoryAxisLabelsFontSize=30]="categoryAxisLabelsFontSize",e[e.categoryAxisLabelsColor=31]="categoryAxisLabelsColor",e[e.categoryAxisLabelsRotation=32]="categoryAxisLabelsRotation",e[e.categoryAxisReverseOrder=33]="categoryAxisReverseOrder",e[e.valueAxisTitleText=34]="valueAxisTitleText",e[e.valueAxisTitleFontName=35]="valueAxisTitleFontName",e[e.valueAxisTitleFontSize=36]="valueAxisTitleFontSize",e[e.valueAxisTitleColor=37]="valueAxisTitleColor",e[e.valueAxisLabelsFormat=38]="valueAxisLabelsFormat",e[e.valueAxisLabelsFontName=39]="valueAxisLabelsFontName",e[e.valueAxisLabelsFontSize=40]="valueAxisLabelsFontSize",e[e.valueAxisLabelsColor=41]="valueAxisLabelsColor",e[e.valueAxisLabelsRotation=42]="valueAxisLabelsRotation",e))(Ft||{});const It=[{text:"16",value:"16px"},{text:"20",value:"20px"},{text:"24",value:"24px"},{text:"48",value:"48px"},{text:"60",value:"60px"},{text:"96",value:"96px"}],Wt=[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],Nt="line",Pt="scatter",wt=["column","bar",Nt,Pt],Rt={type:Nt,width:0},Bt=e=>e&&wt.includes(e),Dt=["string","date","number"],Mt=["number"],Kt={bar:[{axisType:"category",types:Dt},{axisType:"value",types:Mt}],column:[{axisType:"category",types:Dt},{axisType:"value",types:Mt}],line:[{axisType:"category",types:Dt},{axisType:"value",types:Mt}],pie:[{axisType:"category",types:Dt},{axisType:"value",types:Mt,count:1}],scatter:[{axisType:"category",types:Dt},{axisType:"value",types:Mt}]},Ot=(e,t)=>`${t||""} ${e||""}`.trim(),Gt=e=>{const t=(e||"").indexOf(" ");return{size:null==e?void 0:e.substring(0,t),name:null==e?void 0:e.substring(t+1)}},qt=(e,t,a)=>{const{size:l}=Gt(a);return e?Ot(e,l||t):""},Vt=(e,t,a)=>{const{name:l}=Gt(a);return e?Ot(l||t,e):""},jt=(e,t)=>{const a=[],l=e[0].slice();t.types.forEach((e=>{l.forEach(((t,l)=>{typeof t.value===e&&a.push(l)}))}));const r=a.findIndex((t=>{const a=e.map((e=>e[t].value));return new Set(a).size===a.length}));return Math.max(r,0)},Ht=(e,t)=>{const a=[],l=e[0].slice();return t.forEach((e=>{e.types.forEach((e=>{l.forEach(((t,l)=>{typeof t.value===e&&a.push(l)}))}))})),a},Xt=()=>structuredClone({columns:[],data:[],series:[],initialSeries:[],categoryAxis:[],valueAxis:[{labels:{visible:!0}}],area:{margin:{left:void 0,right:void 0,top:void 0,bottom:void 0}},stack:!1}),Yt=(e,t,a)=>{const l=Xt();l.seriesType=t,l.data=e;const r=Kt[t];if(!r)return l;const n=e[0].slice();l.columns=e[0].map((e=>String(e.field)));const o=r.find((e=>"category"===e.axisType));let i=-1;o&&(i=null!=a&&a.categoryAxis?l.columns.indexOf(null==a?void 0:a.categoryAxis):jt(e,o));const s=r.filter((e=>"value"===e.axisType));let c=Ht(e,s);c.includes(i)&&(c=c.filter((e=>e!==i)));const d=[];c.forEach((a=>{const l=n[a],r=[];e.forEach((e=>{r.push(e[a].value)})),d.push({name:l.field,type:t,data:r,stack:!1,labels:{visible:!1},...t===Pt?Rt:{}})}));const u=i>-1?e.map((e=>String(e[i].value))):[];return d.length&&(l.series=d.map(((e,t)=>({...e,id:t}))),l.initialSeries=structuredClone(l.series)),u.length&&(l.categoryAxis=[{categories:u,labels:{visible:!0,rotation:"auto"}}],l.categoryField=l.columns[i]),l.legend={visible:!0},l.title={text:void 0},l.subtitle={text:void 0},l},$t=(e,t,a)=>{const l=Xt();l.seriesType=t,l.data=e;const r=Kt[t];if(!r)return l;const n=e[0].map((e=>e.field)),o=r.find((e=>"category"===e.axisType));let i=-1;o&&(i=null!=a&&a.categoryAxis?n.indexOf(null==a?void 0:a.categoryAxis):jt(e,o));const s=r.filter((e=>"value"===e.axisType));let c=[];c=null!=a&&a.valueAxis?[n.indexOf(a.valueAxis)]:Ht(e,s),c.includes(i)&&c.length>1&&(c=c.filter((e=>e!==i))),"number"==typeof s[0].count&&(c=c.slice(0,s[0].count));const d=i>-1?e.map((e=>String(e[i].value))):[],u=[];return e.forEach((e=>{const t={};c.forEach((a=>{const l=e[a];t[l.field]=l.value,t[e[i].field]=e[i].value})),u.push(t)})),l.columns=n,l.categoryAxis=[{categories:d,title:{text:""}}],l.series=[{id:0,data:u,type:t,name:n[i],labels:{visible:!0},categoryField:n[i],field:n[c[0]]}],l.categoryField=n[i],l.valueField=n[c[0]],l.initialSeries=structuredClone(l.series),l},Ut=e=>null!=e,Jt=(e,t,a)=>{const l=Qt(e,(null==a?void 0:a.seriesType)||t);return void 0!==(null==a?void 0:a.stack)?_t(l,1,a.stack):l},Qt=(e,t)=>(Bt(t)?Yt:$t)(e,t),Zt=(e,t)=>{if(t.legend=e.legend,t.area=e.area,t.title=e.title,t.subtitle=e.subtitle,t.series.length===e.series.length)for(let a=0;a<t.series.length;a++)t.series[a].color=e.series[a].color,t.series[a].labels=e.series[a].labels;return e.series.every((e=>{var t;return null==(t=e.labels)?void 0:t.visible}))&&Bt(t.seriesType)&&Bt(e.seriesType)&&t.series.forEach((e=>{e.labels=e.labels||{},e.labels.visible=!0})),t},_t=(e,t,a)=>{var l,r,n,o,i,s,c,d,u,g,m,v,x,p,b,h,f,C,y,A,E,k,S,L,z,T,F,I,W,N,P,w,R;const B={...e};switch(t){case 0:return Qt(B.data,a);case 1:return B.series=B.series.map((e=>({...e,stack:a}))),B;case 2:if(B.seriesType&&Bt(B.seriesType)){const e=Yt(B.data,B.seriesType,{categoryAxis:a});return Zt(B,e)}if("pie"===B.seriesType){const e=$t(B.data,B.seriesType,{categoryAxis:a});return Zt(B,e)}return B;case 3:if("pie"===B.seriesType){const e=$t(B.data,B.seriesType,{categoryAxis:B.categoryField,valueAxis:a});return Zt(B,e)}return B;case 4:return B.series=a,B;case 5:return B.area={...B.area,margin:{...(null==(l=B.area)?void 0:l.margin)||{},left:a}},B;case 6:return B.area={...B.area,margin:{...(null==(r=B.area)?void 0:r.margin)||{},right:a}},B;case 7:return B.area={...B.area,margin:{...(null==(n=B.area)?void 0:n.margin)||{},top:a}},B;case 8:return B.area={...B.area,margin:{...(null==(o=B.area)?void 0:o.margin)||{},bottom:a}},B;case 9:return B.area={...B.area,background:a},B;case 10:return B.title={...B.title,text:a},B;case 11:return B.title={...B.title,font:qt(a,It[0].value,null==(i=B.title)?void 0:i.font)},B;case 12:return B.title={...B.title,font:Vt(a,Wt[0].value,null==(s=B.title)?void 0:s.font)},B;case 13:return B.title={...B.title,color:a},B;case 14:return B.subtitle={...B.subtitle,text:a},B;case 15:return B.subtitle={...B.subtitle,font:qt(a,It[0].value,null==(c=B.subtitle)?void 0:c.font)},B;case 16:return B.subtitle={...B.subtitle,font:Vt(a,Wt[0].value,null==(d=B.subtitle)?void 0:d.font)},B;case 17:return B.subtitle={...B.subtitle,color:a},B;case 18:return B.series=B.series.map((e=>({...e,color:a.seriesName===e.name?a.color:e.color}))),B;case 19:return B.series=B.series.map((e=>a.all||a.seriesName===e.name?{...e,labels:{visible:a.visible}}:e)),B;case 20:return B.legend={...B.legend,visible:a},B;case 21:return B.legend={...B.legend,labels:{...null==(u=B.legend)?void 0:u.labels,font:qt(a,It[0].value,null==(m=null==(g=B.legend)?void 0:g.labels)?void 0:m.font)}},B;case 22:return B.legend={...B.legend,labels:{...null==(v=B.legend)?void 0:v.labels,font:Vt(a,Wt[0].value,null==(p=null==(x=B.legend)?void 0:x.labels)?void 0:p.font)}},B;case 23:return B.legend={...B.legend,labels:{...null==(b=B.legend)?void 0:b.labels,color:a}},B;case 24:return B.legend={...B.legend,position:a},B;case 25:return B.categoryAxis=null==(h=B.categoryAxis)?void 0:h.map((e=>({...e,title:{...e.title,text:a}}))),B;case 26:return B.categoryAxis=null==(f=B.categoryAxis)?void 0:f.map((e=>{var t;return{...e,title:{...e.title,font:qt(a,It[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 27:return B.categoryAxis=null==(C=B.categoryAxis)?void 0:C.map((e=>{var t;return{...e,title:{...e.title,font:Vt(a,Wt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 28:return B.categoryAxis=null==(y=B.categoryAxis)?void 0:y.map((e=>({...e,title:{...e.title,color:a}}))),B;case 29:return B.categoryAxis=null==(A=B.categoryAxis)?void 0:A.map((e=>{var t;return{...e,labels:{...e.labels,font:qt(a,It[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 30:return B.categoryAxis=null==(E=B.categoryAxis)?void 0:E.map((e=>{var t;return{...e,labels:{...e.labels,font:Vt(a,Wt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 31:return B.categoryAxis=null==(k=B.categoryAxis)?void 0:k.map((e=>({...e,labels:{...e.labels,color:a}}))),B;case 32:{const e=Ut(a)?a:"auto";return B.categoryAxis=null==(S=B.categoryAxis)?void 0:S.map((t=>({...t,labels:{...t.labels,rotation:e}}))),B}case 33:return B.categoryAxis=null==(L=B.categoryAxis)?void 0:L.map((e=>({...e,reverse:a}))),B;case 34:return B.valueAxis&&0!==B.valueAxis.length?B.valueAxis=null==(z=B.valueAxis)?void 0:z.map((e=>({...e,title:{...e.title,text:a}}))):B.valueAxis=[{title:{text:a}}],B;case 35:return B.valueAxis=null==(T=B.valueAxis)?void 0:T.map((e=>{var t;return{...e,title:{...e.title,font:qt(a,It[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 36:return B.valueAxis=null==(F=B.valueAxis)?void 0:F.map((e=>{var t;return{...e,title:{...e.title,font:Vt(a,Wt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 37:return B.valueAxis=null==(I=B.valueAxis)?void 0:I.map((e=>({...e,title:{...e.title,color:a}}))),B;case 38:return B.valueAxis=null==(W=B.valueAxis)?void 0:W.map((e=>({...e,labels:{...e.labels,format:a}}))),B;case 39:return B.valueAxis=null==(N=B.valueAxis)?void 0:N.map((e=>{var t;return{...e,labels:{...e.labels,font:qt(a,It[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 40:return B.valueAxis=null==(P=B.valueAxis)?void 0:P.map((e=>{var t;return{...e,labels:{...e.labels,font:Vt(a,Wt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 41:return B.valueAxis=null==(w=B.valueAxis)?void 0:w.map((e=>({...e,labels:{...e.labels,color:a}}))),B;case 42:{const e=Ut(a)?a:"auto";return B.valueAxis=null==(R=B.valueAxis)?void 0:R.map((t=>({...t,labels:{...t.labels,rotation:e}}))),B}default:return B}};class ea{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class ta extends ea{constructor(e,t){super(),this.chart=e,this.exportOptions=t}}const aa="chart",la={paperSize:"A4",margin:"1cm"},ra={width:800,height:600},na=e=>{const t=l.exportVisual(e.chart),a=e.exportOptions;t&&x.exportPDF(t,a.pdf).then((e=>p.saveAs(e,a.fileName+".pdf")))},oa=e=>{const t=l.exportVisual(e.chart),a=e.exportOptions;t&&x.exportSVG(t).then((e=>p.saveAs(e,a.fileName+".svg")))},ia=e=>{const t=e.exportOptions,a=l.exportVisual(e.chart,t.image);a&&x.exportImage(a,t.image).then((e=>p.saveAs(e,t.fileName+".png")))},sa=e=>h.createElement("fieldset",{className:"k-form-fieldset"},e.legend&&h.createElement("legend",{className:"k-form-legend"},e.legend),e.children),ca=e=>h.createElement(v.FieldWrapper,{className:e.className},e.labelText&&e.editorId&&h.createElement(m.Label,{className:"k-form-label",editorId:e.editorId},e.labelText),h.createElement("div",{className:"k-form-field-wrap"},e.children)),da={value:null,text:""},ua=(e,t)=>t.dataItem.style?h.cloneElement(e,e.props,h.createElement("span",{style:t.dataItem.style},e.props.children)):e,ga=e=>h.createElement("div",{className:u.classNames("k-icon-text-wrapper",{"k-selected":e.selected}),onClick:e.onClick},h.createElement("div",{className:"k-icon-background-area",tabIndex:0},h.createElement(u.IconWrap,{name:e.iconName,icon:e.icon,size:"xlarge",className:"k-svg-i-chart-bar-clustered"})),e.children),ma={fillMode:"outline",popupSettings:{animate:!1}},va={type:"normal"},xa={type:"100%"};function pa(e){const{grid:t,data:a,selectedState:l,dataItemKey:r}=e;if(!t)return[];const n=c.leafColumns(t.columns||[]),o=u.getter(r),i=u.getter("field"),s=u.getter("title"),d=new Map(a.map((e=>[String(o(e)),e]))),g=new Map(Array.from(d.keys()).map(((e,t)=>[e,t]))),m=Object.keys(l).sort(((e,t)=>(g.get(e)||0)-(g.get(t)||0))),v=[];return m.forEach((e=>{let t=l[e];if(t){!0===t&&(t=Array.from({length:n.length},((e,t)=>t)));const a=t.map((e=>({title:s(n[e]),field:i(n[e])})));v.push({dataItem:d.get(e),dataColumns:a})}})),v}function ba(e){const t=[];return e.forEach((e=>{const{dataItem:a,dataColumns:l}=e,r=[];l.forEach((e=>{r.push({field:e.title||e.field,value:u.getter(e.field)(a)})})),t.push(r)})),t}e.ActionTypes=Ft,e.ChartWizard=e=>{var t,c,u,x,p,b,f,C,y,A,E,k,S,L,z,le,zt,Nt,Pt,wt,Rt,Dt,Mt,Kt,Ot,qt,Vt,jt,Ht,Xt,Yt,$t,Ut,ea,pa,ba,ha,fa,Ca,ya,Aa;const Ea=d.useLocalization(),ka=[{value:"chartTitle",text:Ea.toLanguageString(xe,Lt[xe])},{value:"chartSubtitle",text:Ea.toLanguageString(pe,Lt[pe])}],Sa=[{value:"top",text:Ea.toLanguageString(Be,Lt[Be])},{value:"bottom",text:Ea.toLanguageString(De,Lt[De])},{value:"left",text:Ea.toLanguageString(Me,Lt[Me])},{value:"right",text:Ea.toLanguageString(Ke,Lt[Ke])}],La={name:Ea.toLanguageString(Se,Lt[Se])},za={text:Ea.toLanguageString(xt,Lt[xt]),value:""},Ta=[{value:"n0",text:Ea.toLanguageString(pt,Lt[pt])},{value:"c0",text:Ea.toLanguageString(bt,Lt[bt])},{value:"p0",text:Ea.toLanguageString(ht,Lt[ht])}],Fa=h.useRef(null),Ia=h.useCallback((t=>{var a;if(Fa.current){const l=new ta(Fa.current,((e={})=>({fileName:e.fileName||aa,pdf:{...la,...e.pdf},image:{...ra,...e.image}}))(e.exportOptions));null==(a=e.onExport)||a.call(e,l),l.isDefaultPrevented()||t.item.exportHandler.call(void 0,l)}}),[e.exportOptions]),[Wa,Na]=h.useState({width:700,height:550}),[Pa,wa]=h.useState("DEFAULT"),Ra=h.useCallback((e=>{Na({width:e.width,height:e.height})}),[]),Ba=h.useCallback((e=>{wa(e.state)}),[]),[Da,Ma]=h.useState([{collapsible:!1},{size:"300px",collapsible:!1}]),Ka=h.useCallback((e=>{Ma(e.newState)}),[]),[Oa,Ga]=h.useState(!0),qa=h.useCallback((e=>{Ga(!e.expanded)}),[]),[Va,ja]=h.useState(!0),Ha=h.useCallback((e=>{ja(!e.expanded)}),[]),[Xa,Ya]=h.useState(!0),$a=h.useCallback((e=>{Ya(!e.expanded)}),[]),[Ua,Ja]=h.useState(!0),Qa=h.useCallback((e=>{Ja(!e.expanded)}),[]),[Za,_a]=h.useState(!0),el=h.useCallback((e=>{_a(!e.expanded)}),[]),[tl,al]=h.useState(!0),ll=h.useCallback((e=>{al(!e.expanded)}),[]),[rl,nl]=h.useState(!0),ol=h.useCallback((e=>{nl(!e.expanded)}),[]),[il,sl]=h.useState(!0),cl=h.useCallback((e=>{sl(!e.expanded)}),[]),[dl,ul]=h.useState(!0),gl=h.useCallback((e=>{ul(!e.expanded)}),[]),[ml,vl]=h.useState(!0),xl=h.useCallback((e=>{vl(!e.expanded)}),[]),[pl,bl]=h.useState(!0),hl=h.useCallback((e=>{bl(!e.expanded)}),[]),[fl,Cl]=h.useState(!0),yl=h.useCallback((e=>{Cl(!e.expanded)}),[]),[Al,El]=h.useState(0),kl=h.useCallback((e=>{El(e.selected)}),[]),[Sl,Ll]=h.useState(Jt(e.data,"bar",e.defaultState)),[zl,Tl]=h.useState(""),Fl=h.useCallback((e=>{const t=e.target.value.name;Tl(t===La.name?"":t)}),[]),Il=h.useCallback((()=>{Ll(Zt(Sl,Qt(e.data,"bar"))),Tl("")}),[Sl,e.data]),Wl=h.useCallback((()=>{const t=Zt(Sl,Qt(e.data,"bar"));Ll(_t(t,Ft.stacked,va)),Tl("")}),[Sl,e.data]),Nl=h.useCallback((()=>{const t=Zt(Sl,Qt(e.data,"bar"));Ll(_t(t,Ft.stacked,xa)),Tl("")}),[Sl,e.data]),Pl=h.useCallback((()=>{Ll(Zt(Sl,Qt(e.data,"column"))),Tl("")}),[Sl,e.data]),wl=h.useCallback((()=>{const t=Zt(Sl,Qt(e.data,"column"));Ll(_t(t,Ft.stacked,va)),Tl("")}),[Sl,e.data]),Rl=h.useCallback((()=>{const t=Zt(Sl,Qt(e.data,"column"));Ll(_t(t,Ft.stacked,xa)),Tl("")}),[Sl,e.data]),Bl=h.useCallback((()=>{Ll(Zt(Sl,Qt(e.data,"line"))),Tl("")}),[Sl,e.data]),Dl=h.useCallback((()=>{const t=Zt(Sl,Qt(e.data,"line"));Ll(_t(t,Ft.stacked,va)),Tl("")}),[Sl,e.data]),Ml=h.useCallback((()=>{const t=Zt(Sl,Qt(e.data,"line"));Ll(_t(t,Ft.stacked,xa)),Tl("")}),[Sl,e.data]),Kl=h.useCallback((()=>{Ll(Zt(Sl,Qt(e.data,"pie"))),Tl("")}),[Sl,e.data]),Ol=h.useCallback((()=>{Ll(Zt(Sl,Qt(e.data,"scatter"))),Tl("")}),[Sl,e.data]),Gl=h.useCallback((e=>{Ll(_t(Sl,Ft.categoryAxisX,e.target.value))}),[Sl]),ql=h.useCallback((e=>{Ll(_t(Sl,Ft.seriesChange,e))}),[Sl]),Vl=h.useCallback((e=>{Ll(_t(Sl,Ft.valueAxisY,e.target.value))}),[Sl]),jl=h.useCallback((e=>{Ll(_t(Sl,Ft.areaMarginLeft,e.target.value))}),[Sl]),Hl=h.useCallback((e=>{Ll(_t(Sl,Ft.areaMarginRight,e.target.value))}),[Sl]),Xl=h.useCallback((e=>{Ll(_t(Sl,Ft.areaMarginTop,e.target.value))}),[Sl]),Yl=h.useCallback((e=>{Ll(_t(Sl,Ft.areaMarginBottom,e.target.value))}),[Sl]),$l=Sl.area.margin,Ul=h.useCallback((e=>{Ll(_t(Sl,Ft.areaBackground,e.value))}),[Sl]),[Jl,Ql]=h.useState(ka[0]),Zl=h.useCallback((e=>{Ql(e.target.value)}),[]),_l=h.useCallback((e=>{const t=Jl.value===ka[0].value?Ft.titleText:Ft.subtitleText;Ll(_t(Sl,t,e.target.value))}),[Sl,Jl]),er=h.useCallback((e=>{const t=Jl.value===ka[0].value?Ft.titleFontName:Ft.subtitleFontName,a=e.target.value||da;Ll(_t(Sl,t,a.value))}),[Sl,Jl]),tr=h.useCallback((e=>{const t=Jl.value===ka[0].value?Ft.titleFontSize:Ft.subtitleFontSize,a=e.target.value||da;Ll(_t(Sl,t,a.value))}),[Sl,Jl]),ar=h.useCallback((e=>{const t=Jl.value===ka[0].value?Ft.titleColor:Ft.subtitleColor;Ll(_t(Sl,t,e.value))}),[Sl,Jl]),lr=(Jl.value===ka[0].value?Sl.title:Sl.subtitle)||{text:"",font:"",color:""},rr=h.useCallback((e=>{zl&&Ll(_t(Sl,Ft.seriesColor,{seriesName:zl,color:e.value}))}),[Sl,zl]),nr=h.useCallback((e=>{Ll(_t(Sl,Ft.seriesLabel,{seriesName:zl,all:!zl,visible:e.value}))}),[Sl,zl]),or=h.useCallback((e=>{Ll(_t(Sl,Ft.legendVisible,e.value))}),[Sl]),ir=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.legendFontSize,t.value))}),[Sl]),sr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.legendFontName,t.value))}),[Sl]),cr=h.useCallback((e=>{Ll(_t(Sl,Ft.legendColor,e.value))}),[Sl]),dr=h.useCallback((e=>{const t=e.target.value;Ll(_t(Sl,Ft.legendPosition,t.value))}),[Sl]),ur=h.useCallback((e=>{Ll(_t(Sl,Ft.categoryAxisTitleText,e.target.value))}),[Sl]),gr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.categoryAxisTitleFontSize,t.value))}),[Sl]),mr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.categoryAxisTitleFontName,t.value))}),[Sl]),vr=h.useCallback((e=>{Ll(_t(Sl,Ft.categoryAxisTitleColor,e.value))}),[Sl]),xr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.categoryAxisLabelsFontSize,t.value))}),[Sl]),pr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.categoryAxisLabelsFontName,t.value))}),[Sl]),br=h.useCallback((e=>{Ll(_t(Sl,Ft.categoryAxisLabelsColor,e.value))}),[Sl]),hr=h.useCallback((e=>{Ll(_t(Sl,Ft.categoryAxisLabelsRotation,e.target.value))}),[Sl]),fr=h.useCallback((e=>{Ll(_t(Sl,Ft.categoryAxisReverseOrder,e.value))}),[Sl]),Cr=h.useCallback((e=>{Ll(_t(Sl,Ft.valueAxisTitleText,e.target.value))}),[Sl]),yr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.valueAxisTitleFontSize,t.value))}),[Sl]),Ar=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.valueAxisTitleFontName,t.value))}),[Sl]),Er=h.useCallback((e=>{Ll(_t(Sl,Ft.valueAxisTitleColor,e.value))}),[Sl]),kr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.valueAxisLabelsFontSize,t.value))}),[Sl]),Sr=h.useCallback((e=>{const t=e.target.value||da;Ll(_t(Sl,Ft.valueAxisLabelsFontName,t.value))}),[Sl]),Lr=h.useCallback((e=>{Ll(_t(Sl,Ft.valueAxisLabelsColor,e.value))}),[Sl]),zr=h.useCallback((e=>{Ll(_t(Sl,Ft.valueAxisLabelsRotation,e.target.value))}),[Sl]),Tr=h.useCallback((e=>{const t=e.target.value;Ll(_t(Sl,Ft.valueAxisLabelsFormat,t.value))}),[Sl]),Fr=Sl.seriesType,Ir="object"==typeof(null==(t=Sl.series[0])?void 0:t.stack)&&(null==(c=Sl.series[0])?void 0:c.stack),Wr=!1===Ir,Nr=Ir&&"normal"===Ir.type,Pr=Ir&&"100%"===Ir.type;return h.createElement(a.Window,{title:Ea.toLanguageString(T,Lt[T]),className:"k-chart-wizard",modal:!0,resizable:!0,minimizeButton:()=>null,onClose:e.onClose,onResize:Ra,stage:Pa,onStageChange:Ba,...Wa},h.createElement(r.Splitter,{panes:Da,onChange:Ka,className:"k-chart-wizard-splitter"},h.createElement("div",{className:"k-chart-wizard-preview-pane k-pane"},h.createElement("div",{className:"k-preview-pane-header"},h.createElement(n.DropDownButton,{text:Ea.toLanguageString(F,Lt[F]),fillMode:"flat",svgIcon:o.exportIcon,icon:"export",onItemClick:Ia,items:[{svgIcon:o.filePdfIcon,icon:"file-pdf",exportHandler:na,text:Ea.toLanguageString(I,Lt[I])},{svgIcon:o.fileIcon,icon:"file",exportHandler:oa,text:Ea.toLanguageString(W,Lt[W])},{svgIcon:o.fileImageIcon,icon:"file-image",exportHandler:ia,text:Ea.toLanguageString(N,Lt[N])}]})),h.createElement("div",{className:"k-preview-pane-content",style:{height:"calc(100% - 50px)"}},h.createElement(l.Chart,{style:{width:"100%",height:"100%"},transitions:!1,ref:Fa},h.createElement(l.ChartTitle,{text:null==(u=Sl.title)?void 0:u.text,font:null==(x=Sl.title)?void 0:x.font,color:(null==(p=Sl.title)?void 0:p.color)||"#000"}),h.createElement(l.ChartSubtitle,{text:null==(b=Sl.subtitle)?void 0:b.text,font:null==(f=Sl.subtitle)?void 0:f.font,color:(null==(C=Sl.subtitle)?void 0:C.color)||"#000"}),h.createElement(l.ChartArea,{background:null==(y=Sl.area)?void 0:y.background,margin:$l}),Sl.categoryAxis&&h.createElement(l.ChartCategoryAxis,null,Sl.categoryAxis.map(((e,t)=>h.createElement(l.ChartCategoryAxisItem,{key:t,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})))),Sl.valueAxis&&h.createElement(l.ChartValueAxis,null,Sl.valueAxis.map(((e,t)=>h.createElement(l.ChartValueAxisItem,{key:t,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}})))),h.createElement(l.ChartSeries,null,Sl.series.map(((e,t)=>h.createElement(l.ChartSeriesItem,{key:String(e.name)+t,...e})))),h.createElement(l.ChartXAxis,null,Sl.categoryAxis.map(((e,t)=>h.createElement(l.ChartXAxisItem,{key:t,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,format:e.labels.format,rotation:e.labels.rotation}})))),h.createElement(l.ChartYAxis,null,Sl.valueAxis.map(((e,t)=>h.createElement(l.ChartYAxisItem,{key:t,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}})))),h.createElement(l.ChartLegend,{visible:null==(A=Sl.legend)?void 0:A.visible,position:null==(E=Sl.legend)?void 0:E.position,labels:{color:(null==(S=null==(k=Sl.legend)?void 0:k.labels)?void 0:S.color)||void 0,font:(null==(z=null==(L=Sl.legend)?void 0:L.labels)?void 0:z.font)||void 0}})))),h.createElement("div",{className:"k-chart-wizard-property-pane k-pane k-pane-static"},h.createElement(r.TabStrip,{selected:Al,onSelect:kl,animation:!1},h.createElement(r.TabStripTab,{title:Ea.toLanguageString(P,Lt[P])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(B,Lt[B]),expanded:Oa,tabIndex:0,onAction:qa},h.createElement(i.Reveal,null,Oa&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(ga,{selected:"bar"===Fr&&Wr,onClick:Il,icon:o.chartBarClusteredIcon,iconName:"chart-bar-clustered"},Ea.toLanguageString(D,Lt[D])),h.createElement(ga,{selected:"bar"===Fr&&Nr,onClick:Wl,icon:o.chartBarStackedIcon,iconName:"chart-bar-stacked"},Ea.toLanguageString(M,Lt[M])),h.createElement(ga,{selected:"bar"===Fr&&Pr,onClick:Nl,icon:o.chartBarStacked100Icon,iconName:"chart-bar-stacked100"},Ea.toLanguageString(K,Lt[K])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(O,Lt[O]),expanded:Va,tabIndex:0,onAction:Ha},h.createElement(i.Reveal,null,Va&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(ga,{selected:"pie"===Fr,onClick:Kl,icon:o.chartPieIcon,iconName:"chart-pie"},Ea.toLanguageString(G,Lt[G])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(q,Lt[q]),expanded:Xa,tabIndex:0,onAction:$a},h.createElement(i.Reveal,null,Xa&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(ga,{selected:"column"===Fr&&Wr,onClick:Pl,icon:o.chartColumnClusteredIcon,iconName:"chart-column-clustered"},Ea.toLanguageString(V,Lt[V])),h.createElement(ga,{selected:"column"===Fr&&Nr,onClick:wl,icon:o.chartColumnStackedIcon,iconName:"chart-column-stacked"},Ea.toLanguageString(j,Lt[j])),h.createElement(ga,{selected:"column"===Fr&&Pr,onClick:Rl,icon:o.chartColumnStacked100Icon,iconName:"chart-column-stacked100"},Ea.toLanguageString(H,Lt[H])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(X,Lt[X]),expanded:Ua,tabIndex:0,onAction:Qa},h.createElement(i.Reveal,null,Ua&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(ga,{selected:"line"===Fr&&Wr,onClick:Bl,icon:o.chartLineIcon,iconName:"chart-line"},Ea.toLanguageString(Y,Lt[Y])),h.createElement(ga,{selected:"line"===Fr&&Nr,onClick:Dl,icon:o.chartLineStackedIcon,iconName:"chart-line-stacked"},Ea.toLanguageString($,Lt[$])),h.createElement(ga,{selected:"line"===Fr&&Pr,onClick:Ml,icon:o.chartLineStacked100Icon,iconName:"chart-line-stacked100"},Ea.toLanguageString(U,Lt[U])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(J,Lt[J]),expanded:Za,tabIndex:0,onAction:el},h.createElement(i.Reveal,null,Za&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(ga,{selected:"scatter"===Fr,onClick:Ol,icon:o.chartScatterIcon,iconName:"chart-scatter"},Ea.toLanguageString(Q,Lt[Q])))))))),h.createElement(r.TabStripTab,{title:Ea.toLanguageString(w,Lt[w])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(Z,Lt[Z]),expanded:tl,tabIndex:0,onAction:ll},h.createElement(i.Reveal,null,tl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(sa,{legend:"scatter"===Fr?Ea.toLanguageString(ee,Lt[ee]):Ea.toLanguageString(_,Lt[_])},h.createElement(s.DropDownList,{data:Sl.columns||[],value:Sl.categoryField,onChange:Gl,...ma})),Bt(Fr)&&h.createElement(sa,{legend:Ea.toLanguageString(ae,Lt[ae])},h.createElement(Tt,{data:Sl.series,initialData:Sl.initialSeries,onChange:ql})),"pie"===Fr&&h.createElement(sa,{legend:Ea.toLanguageString(te,Lt[te])},h.createElement(s.DropDownList,{data:Sl.columns||[],value:Sl.valueField||"",...ma,onChange:Vl})))))))),h.createElement(r.TabStripTab,{title:Ea.toLanguageString(R,Lt[R])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(re,Lt[re]),expanded:rl,tabIndex:0,onAction:ol},h.createElement(i.Reveal,null,rl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(sa,{legend:Ea.toLanguageString(ne,Lt[ne])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ca,{labelText:Ea.toLanguageString(ie,Lt[ie]),editorId:"left"},h.createElement(g.NumericTextBox,{id:"left",value:void 0!==$l.left?$l.left:null,onChange:jl,placeholder:Ea.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(ca,{labelText:Ea.toLanguageString(se,Lt[se]),editorId:"right"},h.createElement(g.NumericTextBox,{id:"right",value:void 0!==$l.right?$l.right:null,onChange:Hl,placeholder:Ea.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(ca,{labelText:Ea.toLanguageString(ce,Lt[ce]),editorId:"top"},h.createElement(g.NumericTextBox,{id:"top",value:void 0!==$l.top?$l.top:null,onChange:Xl,placeholder:Ea.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(ca,{labelText:Ea.toLanguageString(de,Lt[de]),editorId:"bottom"},h.createElement(g.NumericTextBox,{id:"bottom",value:void 0!==$l.bottom?$l.bottom:null,onChange:Yl,placeholder:Ea.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})))),h.createElement(sa,{legend:Ea.toLanguageString(ue,Lt[ue])},h.createElement(ca,{labelText:Ea.toLanguageString(ge,Lt[ge]),editorId:"background"},h.createElement(g.ColorPicker,{id:"background",value:(null==(le=Sl.area)?void 0:le.background)||"",onChange:Ul,view:"gradient",fillMode:"outline"}))))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(me,Lt[me]),expanded:il,tabIndex:0,onAction:cl},h.createElement(i.Reveal,null,il&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ca,{className:"k-col-span-2",editorId:"apply-to-title",labelText:Ea.toLanguageString(ve,Lt[ve])},h.createElement(s.DropDownList,{id:"apply-to-title",data:ka,textField:"text",dataItemKey:"value",value:ka.find((e=>e.value===Jl.value)),onChange:Zl,...ma})),h.createElement(ca,{className:"k-col-span-2",editorId:"titleText",labelText:Ea.toLanguageString(be,Lt[be])},h.createElement(g.Input,{id:"titleText",placeholder:Jl.value===ka[0].value?ka[0].text:ka[1].text,value:lr.text,onChange:_l,onKeyDown:e=>e.stopPropagation()})),h.createElement(ca,{className:"k-col-span-2",editorId:"titleFont",labelText:Ea.toLanguageString(he,Lt[he])},h.createElement(s.ComboBox,{id:"titleFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(fe,Lt[fe]),value:Wt.find((e=>e.value===Gt(lr.font).name))||da,onChange:er,itemRender:ua,...ma})),h.createElement(ca,{editorId:"titleFontSize",labelText:Ea.toLanguageString(Ce,Lt[Ce])},h.createElement(s.ComboBox,{id:"titleFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(ye,Lt[ye]),value:It.find((e=>e.value===Gt(lr.font).size))||da,onChange:tr,itemRender:ua,...ma})),h.createElement(ca,{editorId:"titleColor",labelText:Ea.toLanguageString(Ae,Lt[Ae])},h.createElement(g.ColorPicker,{id:"titleColor",value:lr.color||"",onChange:ar,view:"gradient",fillMode:"outline"}))))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(Ee,Lt[Ee]),expanded:dl,tabIndex:0,onAction:gl},h.createElement(i.Reveal,null,dl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(ca,{editorId:"apply-to-series",labelText:Ea.toLanguageString(ke,Lt[ke])},h.createElement(s.DropDownList,{id:"apply-to-series",data:Sl.series,textField:"name",dataItemKey:"name",defaultItem:La,disabled:!Bt(Fr),value:Sl.series.find((e=>e.name===zl))||La,onChange:Fl,...ma})),h.createElement(ca,{editorId:"seriesColor",labelText:Ea.toLanguageString(Le,Lt[Le])},h.createElement(g.ColorPicker,{id:"seriesColor",value:zl?null==(zt=Sl.series.find((e=>e.name===zl)))?void 0:zt.color:"",onChange:rr,disabled:!zl,view:"gradient",fillMode:"outline"})),h.createElement(ca,null,h.createElement(g.Checkbox,{label:Ea.toLanguageString(ze,Lt[ze]),checked:zl?null==(Pt=null==(Nt=Sl.series.find((e=>e.name===zl)))?void 0:Nt.labels)?void 0:Pt.visible:Sl.series.every((e=>{var t;return null==(t=e.labels)?void 0:t.visible})),onChange:nr})))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(Te,Lt[Te]),expanded:ml,tabIndex:0,onAction:xl},h.createElement(i.Reveal,null,ml&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(m.Label,{editorId:"show-legend"},Ea.toLanguageString(Fe,Lt[Fe])),h.createElement(g.Switch,{id:"show-legend",checked:null==(wt=Sl.legend)?void 0:wt.visible,onChange:or}),h.createElement(ca,{className:"k-col-span-2",editorId:"legendLabelsFont",labelText:Ea.toLanguageString(Ie,Lt[Ie])},h.createElement(s.ComboBox,{id:"legendLabelsFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(We,Lt[We]),value:Wt.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=Sl.legend)?void 0:t.labels)?void 0:a.font)||""))?void 0:l.name)}))||da,onChange:sr,itemRender:ua,disabled:!1===(null==(Rt=Sl.legend)?void 0:Rt.visible),...ma})),h.createElement(ca,{editorId:"legendLabelsSize",labelText:Ea.toLanguageString(Ne,Lt[Ne])},h.createElement(s.ComboBox,{id:"legendLabelsSize",data:It,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Pe,Lt[Pe]),value:It.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=Sl.legend)?void 0:t.labels)?void 0:a.font)||""))?void 0:l.size)}))||da,onChange:ir,disabled:!1===(null==(Dt=Sl.legend)?void 0:Dt.visible),...ma})),h.createElement(ca,{editorId:"legendLabelsColor",labelText:Ea.toLanguageString(we,Lt[we])},h.createElement(g.ColorPicker,{id:"legendLabelsColor",value:(null==(Kt=null==(Mt=Sl.legend)?void 0:Mt.labels)?void 0:Kt.color)||"",onChange:cr,disabled:!1===(null==(Ot=Sl.legend)?void 0:Ot.visible),view:"gradient",fillMode:"outline"})),h.createElement(ca,{className:"k-col-span-2",editorId:"legendPosition",labelText:Ea.toLanguageString(Re,Lt[Re])},h.createElement(s.DropDownList,{id:"legendPosition",data:Sa,textField:"text",dataItemKey:"value",value:Sa.find((e=>{var t;return e.value===(null==(t=Sl.legend)?void 0:t.position)})),onChange:dr,disabled:!1===(null==(qt=Sl.legend)?void 0:qt.visible),...ma}))))))),"pie"!==Fr&&h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:"scatter"===Fr?Ea.toLanguageString(Ge,Lt[Ge]):Ea.toLanguageString(Oe,Lt[Oe]),expanded:pl,tabIndex:0,onAction:hl},h.createElement(i.Reveal,null,pl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(sa,{legend:Ea.toLanguageString(qe,Lt[qe])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ca,{className:"k-col-span-2"},h.createElement(g.Input,{placeholder:Ea.toLanguageString(Ve,Lt[Ve]),value:(null==(Vt=Sl.categoryAxis[0].title)?void 0:Vt.text)||"",onChange:ur,onKeyDown:e=>e.stopPropagation()})),h.createElement(ca,{className:"k-col-span-2",editorId:"categoryAxisTitleFont",labelText:Ea.toLanguageString(je,Lt[je])},h.createElement(s.ComboBox,{id:"categoryAxisTitleFont",data:Wt,textField:"text",dataItemKey:"value",itemRender:ua,placeholder:Ea.toLanguageString(He,Lt[He]),value:Wt.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=Sl.categoryAxis[0].title)?void 0:t.font)||""))?void 0:a.name)}))||da,onChange:mr,...ma})),h.createElement(ca,{editorId:"categoryAxisTitleFontSize",labelText:Ea.toLanguageString(Xe,Lt[Xe])},h.createElement(s.ComboBox,{id:"categoryAxisTitleFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Ye,Lt[Ye]),value:It.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=Sl.categoryAxis[0].title)?void 0:t.font)||""))?void 0:a.size)}))||da,onChange:gr,...ma})),h.createElement(ca,{editorId:"categoryAxisTitleColor",labelText:Ea.toLanguageString($e,Lt[$e])},h.createElement(g.ColorPicker,{id:"categoryAxisTitleColor",view:"gradient",value:(null==(jt=Sl.categoryAxis[0].title)?void 0:jt.color)||"",onChange:vr,fillMode:"outline"})))),h.createElement(sa,{legend:Ea.toLanguageString(Ue,Lt[Ue])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ca,{className:"k-col-span-2",editorId:"categoryAxisLabelsFont",labelText:Ea.toLanguageString(Je,Lt[Je])},h.createElement(s.ComboBox,{id:"categoryAxisLabelsFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Qe,Lt[Qe]),value:Wt.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=Sl.categoryAxis[0].labels)?void 0:t.font)||""))?void 0:a.name)}))||da,onChange:pr,itemRender:ua,...ma})),h.createElement(ca,{editorId:"categoryAxisLabelsFontSize",labelText:Ea.toLanguageString(Ze,Lt[Ze])},h.createElement(s.ComboBox,{id:"categoryAxisLabelsFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(_e,Lt[_e]),value:It.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=Sl.categoryAxis[0].labels)?void 0:t.font)||""))?void 0:a.size)}))||da,onChange:xr,...ma})),h.createElement(ca,{editorId:"categoryAxisLabelsColor",labelText:Ea.toLanguageString(et,Lt[et])},h.createElement(g.ColorPicker,{id:"categoryAxisLabelsColor",view:"gradient",value:(null==(Ht=Sl.categoryAxis[0].labels)?void 0:Ht.color)||"",onChange:br,fillMode:"outline"})),h.createElement(ca,{editorId:"categoryAxisLabelsRotation",labelText:Ea.toLanguageString(tt,Lt[tt])},h.createElement(g.NumericTextBox,{id:"categoryAxisLabelsRotation",value:"number"==typeof(null==(Xt=Sl.categoryAxis[0].labels)?void 0:Xt.rotation)?null==(Yt=Sl.categoryAxis[0].labels)?void 0:Yt.rotation:null,placeholder:Ea.toLanguageString(at,Lt[at]),onChange:hr,fillMode:"outline",min:-360,max:360,step:1})),h.createElement(ca,{className:"k-col-span-2"},h.createElement(g.Checkbox,{label:Ea.toLanguageString(lt,Lt[lt]),checked:Sl.categoryAxis[0].reverse||!1,onChange:fr})))))))),"pie"!==Fr&&h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:"scatter"===Fr?Ea.toLanguageString(nt,Lt[nt]):Ea.toLanguageString(rt,Lt[rt]),expanded:fl,tabIndex:0,onAction:yl},h.createElement(i.Reveal,null,fl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(sa,{legend:Ea.toLanguageString(ot,Lt[ot])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ca,{className:"k-col-span-2"},h.createElement(g.Input,{placeholder:Ea.toLanguageString(it,Lt[it]),value:(null==(Ut=null==($t=Sl.valueAxis[0])?void 0:$t.title)?void 0:Ut.text)||"",onChange:Cr,onKeyDown:e=>e.stopPropagation()})),h.createElement(ca,{className:"k-col-span-2",editorId:"valueAxisTitleFont",labelText:Ea.toLanguageString(st,Lt[st])},h.createElement(s.ComboBox,{id:"valueAxisTitleFont",data:Wt,textField:"text",dataItemKey:"value",itemRender:ua,placeholder:Ea.toLanguageString(ct,Lt[ct]),value:Wt.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.title)?void 0:a.font)||""))?void 0:l.name)}))||da,onChange:Ar,...ma})),h.createElement(ca,{editorId:"valueAxisTitleFontSize",labelText:Ea.toLanguageString(dt,Lt[dt])},h.createElement(s.ComboBox,{id:"valueAxisTitleFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(ut,Lt[ut]),value:It.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.title)?void 0:a.font)||""))?void 0:l.size)}))||da,onChange:yr,...ma})),h.createElement(ca,{editorId:"valueAxisTitleColor",labelText:Ea.toLanguageString(gt,Lt[gt])},h.createElement(g.ColorPicker,{id:"valueAxisTitleColor",view:"gradient",value:(null==(pa=null==(ea=Sl.valueAxis[0])?void 0:ea.title)?void 0:pa.color)||"",onChange:Er,fillMode:"outline"})))),h.createElement(sa,{legend:Ea.toLanguageString(mt,Lt[mt])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ca,{className:"k-col-span-2",editorId:"valueAxisLabelsFormat",labelText:Ea.toLanguageString(vt,Lt[vt])},h.createElement(s.DropDownList,{id:"valueAxisLabelsFormat",data:Ta,textField:"text",dataItemKey:"value",defaultItem:za,value:Ta.find((e=>{var t,a;return e.value===(null==(a=null==(t=Sl.valueAxis[0])?void 0:t.labels)?void 0:a.format)}))||za,onChange:Tr,...ma})),h.createElement(ca,{className:"k-col-span-2",editorId:"valueAxisLabelsFont",labelText:Ea.toLanguageString(ft,Lt[ft])},h.createElement(s.ComboBox,{id:"valueAxisLabelsFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Ct,Lt[Ct]),value:Wt.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.labels)?void 0:a.font)||""))?void 0:l.name)}))||da,onChange:Sr,itemRender:ua,...ma})),h.createElement(ca,{editorId:"valueAxisLabelsFontSize",labelText:Ea.toLanguageString(yt,Lt[yt])},h.createElement(s.ComboBox,{id:"valueAxisLabelsFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(At,Lt[At]),value:It.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.labels)?void 0:a.font)||""))?void 0:l.size)}))||da,onChange:kr,...ma})),h.createElement(ca,{editorId:"valueAxisLabelsColor",labelText:Ea.toLanguageString(Et,Lt[Et])},h.createElement(g.ColorPicker,{id:"valueAxisLabelsColor",view:"gradient",value:(null==(ha=null==(ba=Sl.valueAxis[0])?void 0:ba.labels)?void 0:ha.color)||"",onChange:Lr,fillMode:"outline"})),h.createElement(ca,{editorId:"valueAxisLabelsRotation",labelText:Ea.toLanguageString(kt,Lt[kt])},h.createElement(g.NumericTextBox,{id:"valueAxisLabelsRotation",value:"number"==typeof(null==(Ca=null==(fa=Sl.valueAxis[0])?void 0:fa.labels)?void 0:Ca.rotation)?null==(Aa=null==(ya=Sl.valueAxis[0])?void 0:ya.labels)?void 0:Aa.rotation:null,placeholder:Ea.toLanguageString(St,Lt[St]),onChange:zr,fillMode:"outline",min:-360,max:360,step:1}))))))))))))))},e.createInitialState=Jt,e.createState=Qt,e.fontNames=Wt,e.fontSizes=It,e.getGridSelectedRows=pa,e.getWizardDataFromDataRows=ba,e.getWizardDataFromGridSelection=e=>ba(pa(e)),e.isCategorical=Bt,e.mergeStates=Zt,e.parseFont=Gt,e.updateState=_t}));
|
|
8
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-react-dialogs"),require("@progress/kendo-react-charts"),require("@progress/kendo-react-layout"),require("@progress/kendo-react-buttons"),require("@progress/kendo-svg-icons"),require("@progress/kendo-react-animation"),require("@progress/kendo-react-dropdowns"),require("@progress/kendo-react-grid"),require("@progress/kendo-react-intl"),require("@progress/kendo-react-common"),require("@progress/kendo-react-inputs"),require("@progress/kendo-react-labels"),require("@progress/kendo-react-form"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-react-dialogs","@progress/kendo-react-charts","@progress/kendo-react-layout","@progress/kendo-react-buttons","@progress/kendo-svg-icons","@progress/kendo-react-animation","@progress/kendo-react-dropdowns","@progress/kendo-react-grid","@progress/kendo-react-intl","@progress/kendo-react-common","@progress/kendo-react-inputs","@progress/kendo-react-labels","@progress/kendo-react-form","@progress/kendo-drawing","@progress/kendo-file-saver"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactChartWizard={},e.React,e.KendoReactDialogs,e.KendoReactCharts,e.KendoReactLayout,e.KendoReactButtons,e.KendoSvgIcons,e.KendoReactAnimation,e.KendoReactDropdowns,e.KendoReactGrid,e.KendoReactIntl,e.KendoReactCommon,e.KendoReactInputs,e.KendoReactLabels,e.KendoReactForm,e.KendoDrawing,e.KendoFileSaver)}(this,(function(e,t,a,l,r,n,o,i,s,c,d,u,g,m,x,v,p){"use strict";function b(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var h=b(t);const f=h.createContext({onRemove:e=>{},count:0}),C=e=>{const{onRemove:t,count:a}=h.useContext(f);return h.createElement("td",{...e.tdProps},h.createElement(n.Button,{type:"button",onClick:()=>{t.call(void 0,e.dataItem.id)},icon:"trash",svgIcon:o.trashIcon,fillMode:"flat",disabled:a<2}))},y=h.createContext({reorder:()=>{},dragStart:()=>{}}),A=e=>{const t=h.useContext(y);return h.createElement("td",{...e.tdProps,onDragOver:a=>{t.reorder.call(void 0,e.dataItem),a.preventDefault(),a.dataTransfer.dropEffect="copy"}},h.createElement("span",{draggable:!0,style:{cursor:"move"},onDragStart:a=>{t.dragStart.call(void 0,e.dataItem),a.dataTransfer.setData("dragging","")}},h.createElement(u.IconWrap,{icon:o.reorderIcon,name:"reorder"})))},E=h.createContext({enterEdit:(e,t)=>{},exitEdit:(e,t)=>{}}),k=e=>{const{enterEdit:t}=h.useContext(E);return h.createElement("td",{...e.tdProps,onClick:()=>{t(e.dataItem,e.field)}},e.children)},S=e=>"delete"===e.field?h.createElement(C,{...e}):"reorder"===e.field?h.createElement(A,{...e}):"name"===e.field?h.createElement(k,{...e}):null,L=e=>{const t=h.useRef(null),{exitEdit:a}=h.useContext(E);return h.useEffect((()=>{var e;const a=null==(e=t.current)?void 0:e.querySelector("input");null==a||a.focus()}),[]),h.createElement("td",{...e.tdProps,ref:t,onBlur:()=>{a(e.dataItem,e.field)},onKeyDown:t=>{"Enter"===t.key||"Escape"===t.key?(t.stopPropagation(),a(e.dataItem,e.field)):" "===t.key&&t.stopPropagation()}},e.children)},z=()=>null,T="chartWizard.window.title",F="chartWizard.export.button",I="chartWizard.exportPDF.button",W="chartWizard.exportSVG.button",N="chartWizard.exportPNG.button",w="chartWizard.tab.chart",P="chartWizard.tab.data",R="chartWizard.tab.format",B="chartWizard.chart.barChart.expandText",M="chartWizard.chart.barChart.bar",D="chartWizard.chart.barChart.stackedBar",K="chartWizard.chart.barChart.100%stackedBar",O="chartWizard.chart.pieChart.expandText",G="chartWizard.chart.pieChart.pie",q="chartWizard.chart.columnChart.expandText",V="chartWizard.chart.columnChart.column",H="chartWizard.chart.columnChart.stackedColumn",j="chartWizard.chart.columnChart.100%stackedColumn",X="chartWizard.chart.lineChart.expandText",Y="chartWizard.chart.lineChart.line",$="chartWizard.chart.lineChart.stackedLine",U="chartWizard.chart.lineChart.100%stackedLine",J="chartWizard.chart.scatterChart.expandText",Q="chartWizard.chart.scatterChart.scatter",Z="chartWizard.data.configuration.expandText",_="chartWizard.data.configuration.categoryAxis",ee="chartWizard.data.configuration.xAxis",te="chartWizard.data.configuration.valueAxis",ae="chartWizard.data.configuration.series.title",le="chartWizard.data.configuration.series.add",re="chartWizard.format.chartArea.expandText",ne="chartWizard.format.chartArea.margins",oe="chartWizard.format.chartArea.margins.auto",ie="chartWizard.format.chartArea.margins.left",se="chartWizard.format.chartArea.margins.right",ce="chartWizard.format.chartArea.margins.top",de="chartWizard.format.chartArea.margins.bottom",ue="chartWizard.format.chartArea.background",ge="chartWizard.format.chartArea.background.color",me="chartWizard.format.title.expandText",xe="chartWizard.format.title.applyTo",ve="chartWizard.format.title.chartTitle",pe="chartWizard.format.title.chartSubtitle",be="chartWizard.format.title.label",he="chartWizard.format.title.font",fe="chartWizard.format.title.fontPlaceholder",Ce="chartWizard.format.title.size",ye="chartWizard.format.title.sizePlaceholder",Ae="chartWizard.format.title.color",Ee="chartWizard.format.series.expandText",ke="chartWizard.format.series.applyTo",Se="chartWizard.format.series.allSeries",Le="chartWizard.format.series.color",ze="chartWizard.format.series.showLabels",Te="chartWizard.format.legend.expandText",Fe="chartWizard.format.legend.showLegend",Ie="chartWizard.format.legend.font",We="chartWizard.format.legend.fontPlaceholder",Ne="chartWizard.format.legend.size",we="chartWizard.format.legend.sizePlaceholder",Pe="chartWizard.format.legend.color",Re="chartWizard.format.legend.position",Be="chartWizard.format.legend.position.top",Me="chartWizard.format.legend.position.bottom",De="chartWizard.format.legend.position.left",Ke="chartWizard.format.legend.position.right",Oe="chartWizard.format.categoryAxis.expandText",Ge="chartWizard.format.xAxis.expandText",qe="chartWizard.format.categoryAxis.title.expandText",Ve="chartWizard.format.categoryAxis.title.placeholder",He="chartWizard.format.categoryAxis.title.font",je="chartWizard.format.categoryAxis.title.fontPlaceholder",Xe="chartWizard.format.categoryAxis.title.size",Ye="chartWizard.format.categoryAxis.title.sizePlaceholder",$e="chartWizard.format.categoryAxis.title.color",Ue="chartWizard.format.categoryAxis.labels.text",Je="chartWizard.format.categoryAxis.labels.font",Qe="chartWizard.format.categoryAxis.labels.fontPlaceholder",Ze="chartWizard.format.categoryAxis.labels.size",_e="chartWizard.format.categoryAxis.labels.sizePlaceholder",et="chartWizard.format.categoryAxis.labels.color",tt="chartWizard.format.categoryAxis.labels.rotation.text",at="chartWizard.format.categoryAxis.labels.rotation.auto",lt="chartWizard.format.categoryAxis.labels.reverseOrder",rt="chartWizard.format.valueAxis.expandText",nt="chartWizard.format.yAxis.expandText",ot="chartWizard.format.valueAxis.title.text",it="chartWizard.format.valueAxis.title.placeholder",st="chartWizard.format.valueAxis.title.font",ct="chartWizard.format.valueAxis.title.fontPlaceholder",dt="chartWizard.format.valueAxis.title.size",ut="chartWizard.format.valueAxis.title.sizePlaceholder",gt="chartWizard.format.valueAxis.title.color",mt="chartWizard.format.valueAxis.labels.text",xt="chartWizard.format.valueAxis.labelFormat",vt="chartWizard.format.valueAxis.labelFormat.text",pt="chartWizard.format.valueAxis.labelFormat.number",bt="chartWizard.format.valueAxis.labelFormat.currency",ht="chartWizard.format.valueAxis.labelFormat.percent",ft="chartWizard.format.valueAxis.labels.font",Ct="chartWizard.format.valueAxis.labels.fontPlaceholder",yt="chartWizard.format.valueAxis.labels.size",At="chartWizard.format.valueAxis.labels.sizePlaceholder",Et="chartWizard.format.valueAxis.labels.color",kt="chartWizard.format.valueAxis.labels.rotation.text",St="chartWizard.format.valueAxis.labels.rotation.auto",Lt={[T]:"Chart Preview",[F]:"Export",[I]:"PDF File",[W]:"SVG File",[N]:"PNG File",[w]:"Chart",[P]:"Data",[R]:"Format",[B]:"Bar Chart",[M]:"Bar",[D]:"Stacked Bar",[K]:"100% Stacked Bar",[O]:"Pie Chart",[G]:"Pie",[q]:"Column Chart",[V]:"Column",[H]:"Stacked Column",[j]:"100% Stacked Column",[X]:"Line Chart",[Y]:"Line",[$]:"Stacked Line",[U]:"100% Stacked Line",[J]:"Scatter Chart",[Q]:"Scatter",[Z]:"Configuration",[_]:"Category Axis",[ee]:"X Axis",[te]:"Value Axis",[ae]:"Series",[le]:"Add",[re]:"Chart Area",[ne]:"Margins",[oe]:"Auto",[ie]:"Left",[se]:"Right",[ce]:"Top",[de]:"Bottom",[ue]:"Background",[ge]:"Color",[me]:"Title",[xe]:"Apply to",[ve]:"Chart Title",[pe]:"Chart Subtitle",[be]:"Title",[he]:"Font",[fe]:"(inherited font)",[Ce]:"Size",[ye]:"px",[Ae]:"Color",[Ee]:"Series",[ke]:"Apply to",[Se]:"All Series",[Le]:"Color",[ze]:"Show Labels",[Te]:"Legend",[Fe]:"Show Legend",[Ie]:"Font",[We]:"(inherited font)",[Ne]:"Size",[we]:"px",[Pe]:"Color",[Re]:"Position",[Be]:"Top",[Me]:"Bottom",[De]:"Left",[Ke]:"Right",[Oe]:"Category Axis",[Ge]:"X Axis",[qe]:"Title",[Ve]:"Axis Title",[He]:"Font",[je]:"(inherited font)",[Xe]:"Size",[Ye]:"px",[$e]:"Color",[Ue]:"Labels",[Je]:"Font",[Qe]:"(inherited font)",[Ze]:"Size",[_e]:"px",[et]:"Color",[tt]:"Rotation",[at]:"Auto",[lt]:"Reverse Order",[rt]:"Value Axis",[nt]:"Y Axis",[ot]:"Title",[it]:"Axis Title",[st]:"Font",[ct]:"(inherited font)",[dt]:"Size",[ut]:"px",[gt]:"Color",[mt]:"Labels",[xt]:"Label Format",[vt]:"Text",[pt]:"Number",[bt]:"Currency",[ht]:"Percent",[ft]:"Font",[Ct]:"(inherited font)",[yt]:"Size",[At]:"px",[Et]:"Color",[kt]:"Rotation",[St]:"Auto"},zt="inEdit",Tt=e=>{const[a,l]=t.useState(null);return t.createElement(f.Provider,{value:{onRemove:t=>{const a=e.data.filter((e=>e.id!==t));e.onChange.call(void 0,a)},count:e.data.length}},t.createElement(y.Provider,{value:{reorder:t=>{if(a===t)return;const l=e.data.slice(),r=l.findIndex((e=>e===a)),n=l.findIndex((e=>e===t));l.splice(r,1),l.splice(n,0,a||l[0]),e.onChange.call(void 0,l)},dragStart:e=>{l(e)}}},t.createElement(E.Provider,{value:{enterEdit:(t,a)=>{const l=e.data.map((e=>({...e,[zt]:e.id===t.id?a:void 0})));e.onChange.call(void 0,l)},exitEdit:()=>{const t=e.data.map((e=>({...e,[zt]:void 0})));e.onChange.call(void 0,t)}}},t.createElement(c.Grid,{className:"k-series-grid",style:{width:"100%"},size:"medium",data:e.data,dataItemKey:"id",onItemChange:t=>{const a=t.field||"",l=e.data.map((e=>e.id===t.dataItem.id?{...e,[a]:t.value}:e));e.onChange.call(void 0,l)},scrollable:"none",editField:zt,cells:{headerCell:z,data:S,edit:{text:L,boolean:L,numeric:L,date:L}}},t.createElement(c.GridToolbar,null,t.createElement(n.Button,{type:"button",className:"k-toolbar-button",fillMode:"flat",onClick:()=>{const t=e.initialData.find((t=>!e.data.find((e=>e.id===t.id))));t&&e.onChange.call(void 0,[...e.data,t])},disabled:e.data.length===e.initialData.length,svgIcon:o.plusIcon,icon:"plus"},d.useLocalization().toLanguageString(le,Lt[le]))),t.createElement(c.GridColumn,{field:"reorder",width:"40px",editable:!1}),t.createElement(c.GridColumn,{field:"name",title:"Name"}),t.createElement(c.GridColumn,{field:"delete",width:"40px",editable:!1})))))};var Ft=(e=>(e[e.seriesType=0]="seriesType",e[e.stacked=1]="stacked",e[e.categoryAxisX=2]="categoryAxisX",e[e.valueAxisY=3]="valueAxisY",e[e.seriesChange=4]="seriesChange",e[e.areaMarginLeft=5]="areaMarginLeft",e[e.areaMarginRight=6]="areaMarginRight",e[e.areaMarginTop=7]="areaMarginTop",e[e.areaMarginBottom=8]="areaMarginBottom",e[e.areaBackground=9]="areaBackground",e[e.titleText=10]="titleText",e[e.titleFontName=11]="titleFontName",e[e.titleFontSize=12]="titleFontSize",e[e.titleColor=13]="titleColor",e[e.subtitleText=14]="subtitleText",e[e.subtitleFontName=15]="subtitleFontName",e[e.subtitleFontSize=16]="subtitleFontSize",e[e.subtitleColor=17]="subtitleColor",e[e.seriesColor=18]="seriesColor",e[e.seriesLabel=19]="seriesLabel",e[e.legendVisible=20]="legendVisible",e[e.legendFontName=21]="legendFontName",e[e.legendFontSize=22]="legendFontSize",e[e.legendColor=23]="legendColor",e[e.legendPosition=24]="legendPosition",e[e.categoryAxisTitleText=25]="categoryAxisTitleText",e[e.categoryAxisTitleFontName=26]="categoryAxisTitleFontName",e[e.categoryAxisTitleFontSize=27]="categoryAxisTitleFontSize",e[e.categoryAxisTitleColor=28]="categoryAxisTitleColor",e[e.categoryAxisLabelsFontName=29]="categoryAxisLabelsFontName",e[e.categoryAxisLabelsFontSize=30]="categoryAxisLabelsFontSize",e[e.categoryAxisLabelsColor=31]="categoryAxisLabelsColor",e[e.categoryAxisLabelsRotation=32]="categoryAxisLabelsRotation",e[e.categoryAxisReverseOrder=33]="categoryAxisReverseOrder",e[e.valueAxisTitleText=34]="valueAxisTitleText",e[e.valueAxisTitleFontName=35]="valueAxisTitleFontName",e[e.valueAxisTitleFontSize=36]="valueAxisTitleFontSize",e[e.valueAxisTitleColor=37]="valueAxisTitleColor",e[e.valueAxisLabelsFormat=38]="valueAxisLabelsFormat",e[e.valueAxisLabelsFontName=39]="valueAxisLabelsFontName",e[e.valueAxisLabelsFontSize=40]="valueAxisLabelsFontSize",e[e.valueAxisLabelsColor=41]="valueAxisLabelsColor",e[e.valueAxisLabelsRotation=42]="valueAxisLabelsRotation",e))(Ft||{});const It=[{text:"8",value:"8px"},{text:"10",value:"10px"},{text:"12",value:"12px"},{text:"14",value:"14px"},{text:"16",value:"16px"},{text:"20",value:"20px"},{text:"24",value:"24px"},{text:"48",value:"48px"},{text:"60",value:"60px"},{text:"96",value:"96px"}],Wt=[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],Nt="line",wt="scatter",Pt=["column","bar",Nt,wt],Rt={type:Nt,width:0},Bt=e=>e&&Pt.includes(e),Mt=["string","date","number"],Dt=["number"],Kt={bar:[{axisType:"category",types:Mt},{axisType:"value",types:Dt}],column:[{axisType:"category",types:Mt},{axisType:"value",types:Dt}],line:[{axisType:"category",types:Mt},{axisType:"value",types:Dt}],pie:[{axisType:"category",types:Mt},{axisType:"value",types:Dt,count:1}],scatter:[{axisType:"category",types:Mt},{axisType:"value",types:Dt}]},Ot=(e,t)=>`${t||""} ${e||""}`.trim(),Gt=e=>{const t=(e||"").indexOf(" ");return{size:null==e?void 0:e.substring(0,t),name:null==e?void 0:e.substring(t+1)}},qt=(e,t,a)=>{const{size:l}=Gt(a);return e?Ot(e,l||t):""},Vt=(e,t,a)=>{const{name:l}=Gt(a);return e?Ot(l||t,e):""},Ht=e=>null!=e,jt=e=>{const t=structuredClone(e[0]);return t.forEach(((t,a)=>{if(!Ht(t.value))for(let l=0;l<e.length;l++){const r=e[l][a].value;if(Ht(r)){t.value=r;break}}})),t},Xt=(e,t)=>{const a=[],l=jt(e);t.types.forEach((e=>{l.forEach(((t,l)=>{typeof t.value===e&&a.push(l)}))}));const r=a.findIndex((t=>{const a=e.map((e=>e[t].value));return new Set(a).size===a.length}));return Math.max(r,0)},Yt=(e,t)=>{const a=[],l=jt(e);return t.forEach((e=>{e.types.forEach((e=>{l.forEach(((t,l)=>{typeof t.value===e&&a.push(l)}))}))})),a},$t=()=>structuredClone({columns:[],data:[],series:[],initialSeries:[],categoryAxis:[],valueAxis:[{labels:{visible:!0}}],area:{margin:{left:void 0,right:void 0,top:void 0,bottom:void 0}},stack:!1}),Ut=(e,t,a)=>{const l=$t();l.seriesType=t,l.data=e;const r=Kt[t];if(!r)return l;const n=e[0].slice();l.columns=e[0].map((e=>String(e.field)));const o=r.find((e=>"category"===e.axisType));let i=-1;o&&(i=null!=a&&a.categoryAxis?l.columns.indexOf(null==a?void 0:a.categoryAxis):Xt(e,o));const s=r.filter((e=>"value"===e.axisType));let c=Yt(e,s);c.includes(i)&&(c.length>1?c=c.filter((e=>e!==i)):i=-1);const d=[];c.forEach((a=>{const l=n[a],r=[];e.forEach((e=>{r.push(e[a].value)})),d.push({name:l.field,type:t,data:r,stack:!1,labels:{visible:!1},...t===wt?Rt:{}})}));const u=i>-1?e.map((e=>String(Ht(e[i].value)?e[i].value:" "))):[];return d.length&&(l.series=d.map(((e,t)=>({...e,id:t}))),l.initialSeries=structuredClone(l.series)),l.categoryAxis=[{categories:u,labels:{visible:!0,rotation:"auto"}}],l.categoryField=l.columns[i],l.legend={visible:!0},l.title={text:void 0},l.subtitle={text:void 0},l},Jt=(e,t,a)=>{const l=$t();l.seriesType=t,l.data=e;const r=Kt[t];if(!r)return l;const n=e[0].map((e=>e.field)),o=r.find((e=>"category"===e.axisType));let i=-1;o&&(i=null!=a&&a.categoryAxis?n.indexOf(null==a?void 0:a.categoryAxis):Xt(e,o));const s=r.filter((e=>"value"===e.axisType));let c=[];c=null!=a&&a.valueAxis?[n.indexOf(a.valueAxis)]:Yt(e,s),c.includes(i)&&c.length>1&&(c=c.filter((e=>e!==i))),"number"==typeof s[0].count&&(c=c.slice(0,s[0].count));const d=i>-1?e.map((e=>String(e[i].value))):[],u=[];return e.forEach((e=>{const t={};c.forEach((a=>{const l=e[a];t[l.field]=l.value||0,t[e[i].field]=e[i].value||" "})),u.push(t)})),l.columns=n,l.categoryAxis=[{categories:d,title:{text:""}}],l.series=[{id:0,data:u,type:t,name:n[i],labels:{visible:!0},categoryField:n[i],field:n[c[0]]}],l.categoryField=n[i],l.valueField=n[c[0]],l.initialSeries=structuredClone(l.series),l},Qt=(e,t,a)=>{const l=Zt(e,(null==a?void 0:a.seriesType)||t);return void 0!==(null==a?void 0:a.stack)?ea(l,1,a.stack):l},Zt=(e,t)=>(Bt(t)?Ut:Jt)(e,t),_t=(e,t)=>{if(t.legend=e.legend,t.area=e.area,t.title=e.title,t.subtitle=e.subtitle,t.series.length===e.series.length)for(let a=0;a<t.series.length;a++)t.series[a].color=e.series[a].color,t.series[a].labels=e.series[a].labels;return e.series.every((e=>{var t;return null==(t=e.labels)?void 0:t.visible}))&&Bt(t.seriesType)&&Bt(e.seriesType)&&t.series.forEach((e=>{e.labels=e.labels||{},e.labels.visible=!0})),t},ea=(e,t,a)=>{var l,r,n,o,i,s,c,d,u,g,m,x,v,p,b,h,f,C,y,A,E,k,S,L,z,T,F,I,W,N,w,P,R;const B={...e};switch(t){case 0:return Zt(B.data,a);case 1:return B.series=B.series.map((e=>({...e,stack:a}))),B;case 2:if(B.seriesType&&Bt(B.seriesType)){const e=Ut(B.data,B.seriesType,{categoryAxis:a});return _t(B,e)}if("pie"===B.seriesType){const e=Jt(B.data,B.seriesType,{categoryAxis:a});return _t(B,e)}return B;case 3:if("pie"===B.seriesType){const e=Jt(B.data,B.seriesType,{categoryAxis:B.categoryField,valueAxis:a});return _t(B,e)}return B;case 4:return B.series=a,B;case 5:return B.area={...B.area,margin:{...(null==(l=B.area)?void 0:l.margin)||{},left:a}},B;case 6:return B.area={...B.area,margin:{...(null==(r=B.area)?void 0:r.margin)||{},right:a}},B;case 7:return B.area={...B.area,margin:{...(null==(n=B.area)?void 0:n.margin)||{},top:a}},B;case 8:return B.area={...B.area,margin:{...(null==(o=B.area)?void 0:o.margin)||{},bottom:a}},B;case 9:return B.area={...B.area,background:a},B;case 10:return B.title={...B.title,text:a},B;case 11:return B.title={...B.title,font:qt(a,It[0].value,null==(i=B.title)?void 0:i.font)},B;case 12:return B.title={...B.title,font:Vt(a,Wt[0].value,null==(s=B.title)?void 0:s.font)},B;case 13:return B.title={...B.title,color:a},B;case 14:return B.subtitle={...B.subtitle,text:a},B;case 15:return B.subtitle={...B.subtitle,font:qt(a,It[0].value,null==(c=B.subtitle)?void 0:c.font)},B;case 16:return B.subtitle={...B.subtitle,font:Vt(a,Wt[0].value,null==(d=B.subtitle)?void 0:d.font)},B;case 17:return B.subtitle={...B.subtitle,color:a},B;case 18:return B.series=B.series.map((e=>({...e,color:a.seriesName===e.name?a.color:e.color}))),B;case 19:return B.series=B.series.map((e=>a.all||a.seriesName===e.name?{...e,labels:{visible:a.visible}}:e)),B;case 20:return B.legend={...B.legend,visible:a},B;case 21:return B.legend={...B.legend,labels:{...null==(u=B.legend)?void 0:u.labels,font:qt(a,It[0].value,null==(m=null==(g=B.legend)?void 0:g.labels)?void 0:m.font)}},B;case 22:return B.legend={...B.legend,labels:{...null==(x=B.legend)?void 0:x.labels,font:Vt(a,Wt[0].value,null==(p=null==(v=B.legend)?void 0:v.labels)?void 0:p.font)}},B;case 23:return B.legend={...B.legend,labels:{...null==(b=B.legend)?void 0:b.labels,color:a}},B;case 24:return B.legend={...B.legend,position:a},B;case 25:return B.categoryAxis=null==(h=B.categoryAxis)?void 0:h.map((e=>({...e,title:{...e.title,text:a}}))),B;case 26:return B.categoryAxis=null==(f=B.categoryAxis)?void 0:f.map((e=>{var t;return{...e,title:{...e.title,font:qt(a,It[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 27:return B.categoryAxis=null==(C=B.categoryAxis)?void 0:C.map((e=>{var t;return{...e,title:{...e.title,font:Vt(a,Wt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 28:return B.categoryAxis=null==(y=B.categoryAxis)?void 0:y.map((e=>({...e,title:{...e.title,color:a}}))),B;case 29:return B.categoryAxis=null==(A=B.categoryAxis)?void 0:A.map((e=>{var t;return{...e,labels:{...e.labels,font:qt(a,It[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 30:return B.categoryAxis=null==(E=B.categoryAxis)?void 0:E.map((e=>{var t;return{...e,labels:{...e.labels,font:Vt(a,Wt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 31:return B.categoryAxis=null==(k=B.categoryAxis)?void 0:k.map((e=>({...e,labels:{...e.labels,color:a}}))),B;case 32:{const e=Ht(a)?a:"auto";return B.categoryAxis=null==(S=B.categoryAxis)?void 0:S.map((t=>({...t,labels:{...t.labels,rotation:e}}))),B}case 33:return B.categoryAxis=null==(L=B.categoryAxis)?void 0:L.map((e=>({...e,reverse:a}))),B;case 34:return B.valueAxis&&0!==B.valueAxis.length?B.valueAxis=null==(z=B.valueAxis)?void 0:z.map((e=>({...e,title:{...e.title,text:a}}))):B.valueAxis=[{title:{text:a}}],B;case 35:return B.valueAxis=null==(T=B.valueAxis)?void 0:T.map((e=>{var t;return{...e,title:{...e.title,font:qt(a,It[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 36:return B.valueAxis=null==(F=B.valueAxis)?void 0:F.map((e=>{var t;return{...e,title:{...e.title,font:Vt(a,Wt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 37:return B.valueAxis=null==(I=B.valueAxis)?void 0:I.map((e=>({...e,title:{...e.title,color:a}}))),B;case 38:return B.valueAxis=null==(W=B.valueAxis)?void 0:W.map((e=>({...e,labels:{...e.labels,format:a}}))),B;case 39:return B.valueAxis=null==(N=B.valueAxis)?void 0:N.map((e=>{var t;return{...e,labels:{...e.labels,font:qt(a,It[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 40:return B.valueAxis=null==(w=B.valueAxis)?void 0:w.map((e=>{var t;return{...e,labels:{...e.labels,font:Vt(a,Wt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 41:return B.valueAxis=null==(P=B.valueAxis)?void 0:P.map((e=>({...e,labels:{...e.labels,color:a}}))),B;case 42:{const e=Ht(a)?a:"auto";return B.valueAxis=null==(R=B.valueAxis)?void 0:R.map((t=>({...t,labels:{...t.labels,rotation:e}}))),B}default:return B}};class ta{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}let aa=class extends ta{constructor(e,t){super(),this.chart=e,this.exportOptions=t}};const la="chart",ra={paperSize:"A4",margin:"1cm"},na={width:800,height:600},oa=e=>{const t=l.exportVisual(e.chart),a=e.exportOptions;t&&v.exportPDF(t,a.pdf).then((e=>p.saveAs(e,a.fileName+".pdf")))},ia=e=>{const t=l.exportVisual(e.chart),a=e.exportOptions;t&&v.exportSVG(t).then((e=>p.saveAs(e,a.fileName+".svg")))},sa=e=>{const t=e.exportOptions,a=l.exportVisual(e.chart,t.image);a&&v.exportImage(a,t.image).then((e=>p.saveAs(e,t.fileName+".png")))},ca=e=>h.createElement("fieldset",{className:"k-form-fieldset"},e.legend&&h.createElement("legend",{className:"k-form-legend"},e.legend),e.children),da=e=>{e.stopPropagation()},ua=e=>h.createElement(x.FieldWrapper,{className:e.className},e.labelText&&e.editorId&&h.createElement(m.Label,{className:"k-form-label",editorId:e.editorId},e.labelText),h.createElement("div",{className:"k-form-field-wrap",onKeyDown:da},e.children)),ga={value:null,text:""},ma=/^\d+$/,xa=(e,t)=>t.dataItem.style?h.cloneElement(e,e.props,h.createElement("span",{style:t.dataItem.style},e.props.children)):e,va=e=>{if(""===e.text)return!0;if(void 0===e.value){if(!ma.test(e.text))return!1;e.value=e.text+"px"}return It.find((t=>t.value===e.value))||(It.push(e),It.sort(((e,t)=>parseInt(e.text,10)-parseInt(t.text,10)))),!0},pa=e=>h.createElement("div",{className:u.classNames("k-icon-text-wrapper",{"k-selected":e.selected}),onClick:e.onClick},h.createElement("div",{className:"k-icon-background-area",tabIndex:0},h.createElement(u.IconWrap,{name:e.iconName,icon:e.icon,size:"xlarge",className:"k-svg-i-chart-bar-clustered"})),e.children),ba={fillMode:"outline",popupSettings:{animate:!1}},ha={type:"normal"},fa={type:"100%"},Ca=h.forwardRef(((e,t)=>{var c,u,v,p,b,f,C,y,A,E,k,S,L,z,le,zt,Nt,wt,Pt,Rt,Mt,Dt,Kt,Ot,qt,Vt,Ht,jt,Xt,Yt,$t,Ut,Jt,ta,da,ma,Ca,ya,Aa,Ea,ka;const Sa=d.useLocalization(),La=[{value:"chartTitle",text:Sa.toLanguageString(ve,Lt[ve])},{value:"chartSubtitle",text:Sa.toLanguageString(pe,Lt[pe])}],za=[{value:"top",text:Sa.toLanguageString(Be,Lt[Be])},{value:"bottom",text:Sa.toLanguageString(Me,Lt[Me])},{value:"left",text:Sa.toLanguageString(De,Lt[De])},{value:"right",text:Sa.toLanguageString(Ke,Lt[Ke])}],Ta={name:Sa.toLanguageString(Se,Lt[Se])},Fa={text:Sa.toLanguageString(vt,Lt[vt]),value:""},Ia=[{value:"n0",text:Sa.toLanguageString(pt,Lt[pt])},{value:"c0",text:Sa.toLanguageString(bt,Lt[bt])},{value:"p0",text:Sa.toLanguageString(ht,Lt[ht])}],Wa=h.useRef(null),Na=h.useCallback((t=>{var a;if(Wa.current){const l=new aa(Wa.current,((e={})=>({fileName:e.fileName||la,pdf:{...ra,...e.pdf},image:{...na,...e.image}}))(e.exportOptions));null==(a=e.onExport)||a.call(e,l),l.isDefaultPrevented()||t.item.exportHandler.call(void 0,l)}}),[e.exportOptions]),[wa,Pa]=h.useState({width:700,height:550}),[Ra,Ba]=h.useState("DEFAULT"),Ma=h.useCallback((e=>{Pa({width:e.width,height:e.height})}),[]),Da=h.useCallback((e=>{Ba(e.state)}),[]),[Ka,Oa]=h.useState([{collapsible:!1},{size:"300px",collapsible:!1}]),Ga=h.useCallback((e=>{Oa(e.newState)}),[]),[qa,Va]=h.useState(!0),Ha=h.useCallback((e=>{Va(!e.expanded)}),[]),[ja,Xa]=h.useState(!0),Ya=h.useCallback((e=>{Xa(!e.expanded)}),[]),[$a,Ua]=h.useState(!0),Ja=h.useCallback((e=>{Ua(!e.expanded)}),[]),[Qa,Za]=h.useState(!0),_a=h.useCallback((e=>{Za(!e.expanded)}),[]),[el,tl]=h.useState(!0),al=h.useCallback((e=>{tl(!e.expanded)}),[]),[ll,rl]=h.useState(!0),nl=h.useCallback((e=>{rl(!e.expanded)}),[]),[ol,il]=h.useState(!1),sl=h.useCallback((e=>{il(!e.expanded)}),[]),[cl,dl]=h.useState(!1),ul=h.useCallback((e=>{dl(!e.expanded)}),[]),[gl,ml]=h.useState(!1),xl=h.useCallback((e=>{ml(!e.expanded)}),[]),[vl,pl]=h.useState(!1),bl=h.useCallback((e=>{pl(!e.expanded)}),[]),[hl,fl]=h.useState(!1),Cl=h.useCallback((e=>{fl(!e.expanded)}),[]),[yl,Al]=h.useState(!1),El=h.useCallback((e=>{Al(!e.expanded)}),[]),[kl,Sl]=h.useState(0),Ll=h.useCallback((e=>{Sl(e.selected)}),[]),[zl,Tl]=h.useState(Qt(e.data,"bar",e.defaultState)),Fl=h.useRef(zl);Fl.current=zl;const Il=h.useCallback((()=>({get chart(){return Wa.current},get state(){return Fl.current}})),[]);h.useImperativeHandle(t,Il);const[Wl,Nl]=h.useState(""),wl=h.useCallback((e=>{const t=e.target.value.name;Nl(t===Ta.name?"":t)}),[]),Pl=h.useCallback((()=>{Tl(_t(zl,Zt(e.data,"bar"))),Nl("")}),[zl,e.data]),Rl=h.useCallback((()=>{const t=_t(zl,Zt(e.data,"bar"));Tl(ea(t,Ft.stacked,ha)),Nl("")}),[zl,e.data]),Bl=h.useCallback((()=>{const t=_t(zl,Zt(e.data,"bar"));Tl(ea(t,Ft.stacked,fa)),Nl("")}),[zl,e.data]),Ml=h.useCallback((()=>{Tl(_t(zl,Zt(e.data,"column"))),Nl("")}),[zl,e.data]),Dl=h.useCallback((()=>{const t=_t(zl,Zt(e.data,"column"));Tl(ea(t,Ft.stacked,ha)),Nl("")}),[zl,e.data]),Kl=h.useCallback((()=>{const t=_t(zl,Zt(e.data,"column"));Tl(ea(t,Ft.stacked,fa)),Nl("")}),[zl,e.data]),Ol=h.useCallback((()=>{Tl(_t(zl,Zt(e.data,"line"))),Nl("")}),[zl,e.data]),Gl=h.useCallback((()=>{const t=_t(zl,Zt(e.data,"line"));Tl(ea(t,Ft.stacked,ha)),Nl("")}),[zl,e.data]),ql=h.useCallback((()=>{const t=_t(zl,Zt(e.data,"line"));Tl(ea(t,Ft.stacked,fa)),Nl("")}),[zl,e.data]),Vl=h.useCallback((()=>{Tl(_t(zl,Zt(e.data,"pie"))),Nl("")}),[zl,e.data]),Hl=h.useCallback((()=>{Tl(_t(zl,Zt(e.data,"scatter"))),Nl("")}),[zl,e.data]),jl=h.useCallback((e=>{Tl(ea(zl,Ft.categoryAxisX,e.target.value))}),[zl]),Xl=h.useCallback((e=>{Tl(ea(zl,Ft.seriesChange,e))}),[zl]),Yl=h.useCallback((e=>{Tl(ea(zl,Ft.valueAxisY,e.target.value))}),[zl]),$l=h.useCallback((e=>{Tl(ea(zl,Ft.areaMarginLeft,e.target.value))}),[zl]),Ul=h.useCallback((e=>{Tl(ea(zl,Ft.areaMarginRight,e.target.value))}),[zl]),Jl=h.useCallback((e=>{Tl(ea(zl,Ft.areaMarginTop,e.target.value))}),[zl]),Ql=h.useCallback((e=>{Tl(ea(zl,Ft.areaMarginBottom,e.target.value))}),[zl]),Zl=zl.area.margin,_l=h.useCallback((e=>{Tl(ea(zl,Ft.areaBackground,e.value))}),[zl]),[er,tr]=h.useState(La[0]),ar=h.useCallback((e=>{tr(e.target.value)}),[]),lr=h.useCallback((e=>{const t=er.value===La[0].value?Ft.titleText:Ft.subtitleText;Tl(ea(zl,t,e.target.value))}),[zl,er]),rr=h.useCallback((e=>{const t=er.value===La[0].value?Ft.titleFontName:Ft.subtitleFontName,a=e.target.value||ga;Tl(ea(zl,t,a.value))}),[zl,er]),nr=h.useCallback((e=>{const t=er.value===La[0].value?Ft.titleFontSize:Ft.subtitleFontSize,a=e.target.value||ga;va(a)&&Tl(ea(zl,t,a.value))}),[zl,er]),or=h.useCallback((e=>{const t=er.value===La[0].value?Ft.titleColor:Ft.subtitleColor;Tl(ea(zl,t,e.value))}),[zl,er]),ir=(er.value===La[0].value?zl.title:zl.subtitle)||{text:"",font:"",color:""},sr=h.useCallback((e=>{Wl&&Tl(ea(zl,Ft.seriesColor,{seriesName:Wl,color:e.value}))}),[zl,Wl]),cr=h.useCallback((e=>{Tl(ea(zl,Ft.seriesLabel,{seriesName:Wl,all:!Wl,visible:e.value}))}),[zl,Wl]),dr=h.useCallback((e=>{Tl(ea(zl,Ft.legendVisible,e.value))}),[zl]),ur=h.useCallback((e=>{const t=e.target.value||ga;va(t)&&Tl(ea(zl,Ft.legendFontSize,t.value))}),[zl]),gr=h.useCallback((e=>{const t=e.target.value||ga;Tl(ea(zl,Ft.legendFontName,t.value))}),[zl]),mr=h.useCallback((e=>{Tl(ea(zl,Ft.legendColor,e.value))}),[zl]),xr=h.useCallback((e=>{const t=e.target.value;Tl(ea(zl,Ft.legendPosition,t.value))}),[zl]),vr=h.useCallback((e=>{Tl(ea(zl,Ft.categoryAxisTitleText,e.target.value))}),[zl]),pr=h.useCallback((e=>{const t=e.target.value||ga;va(t)&&Tl(ea(zl,Ft.categoryAxisTitleFontSize,t.value))}),[zl]),br=h.useCallback((e=>{const t=e.target.value||ga;Tl(ea(zl,Ft.categoryAxisTitleFontName,t.value))}),[zl]),hr=h.useCallback((e=>{Tl(ea(zl,Ft.categoryAxisTitleColor,e.value))}),[zl]),fr=h.useCallback((e=>{const t=e.target.value||ga;va(t)&&Tl(ea(zl,Ft.categoryAxisLabelsFontSize,t.value))}),[zl]),Cr=h.useCallback((e=>{const t=e.target.value||ga;Tl(ea(zl,Ft.categoryAxisLabelsFontName,t.value))}),[zl]),yr=h.useCallback((e=>{Tl(ea(zl,Ft.categoryAxisLabelsColor,e.value))}),[zl]),Ar=h.useCallback((e=>{Tl(ea(zl,Ft.categoryAxisLabelsRotation,e.target.value))}),[zl]),Er=h.useCallback((e=>{Tl(ea(zl,Ft.categoryAxisReverseOrder,e.value))}),[zl]),kr=h.useCallback((e=>{Tl(ea(zl,Ft.valueAxisTitleText,e.target.value))}),[zl]),Sr=h.useCallback((e=>{const t=e.target.value||ga;va(t)&&Tl(ea(zl,Ft.valueAxisTitleFontSize,t.value))}),[zl]),Lr=h.useCallback((e=>{const t=e.target.value||ga;Tl(ea(zl,Ft.valueAxisTitleFontName,t.value))}),[zl]),zr=h.useCallback((e=>{Tl(ea(zl,Ft.valueAxisTitleColor,e.value))}),[zl]),Tr=h.useCallback((e=>{const t=e.target.value||ga;va(t)&&Tl(ea(zl,Ft.valueAxisLabelsFontSize,t.value))}),[zl]),Fr=h.useCallback((e=>{const t=e.target.value||ga;Tl(ea(zl,Ft.valueAxisLabelsFontName,t.value))}),[zl]),Ir=h.useCallback((e=>{Tl(ea(zl,Ft.valueAxisLabelsColor,e.value))}),[zl]),Wr=h.useCallback((e=>{Tl(ea(zl,Ft.valueAxisLabelsRotation,e.target.value))}),[zl]),Nr=h.useCallback((e=>{const t=e.target.value;Tl(ea(zl,Ft.valueAxisLabelsFormat,t.value))}),[zl]),wr=zl.seriesType,Pr="object"==typeof(null==(c=zl.series[0])?void 0:c.stack)&&(null==(u=zl.series[0])?void 0:u.stack),Rr=!1===Pr,Br=Pr&&"normal"===Pr.type,Mr=Pr&&"100%"===Pr.type;return h.createElement(a.Window,{title:Sa.toLanguageString(T,Lt[T]),className:"k-chart-wizard",modal:!0,resizable:!0,minimizeButton:()=>null,onClose:e.onClose,onResize:Ma,stage:Ra,onStageChange:Da,...wa},h.createElement(r.Splitter,{panes:Ka,onChange:Ga,className:"k-chart-wizard-splitter"},h.createElement("div",{className:"k-chart-wizard-preview-pane k-pane"},h.createElement("div",{className:"k-preview-pane-header"},h.createElement(n.DropDownButton,{text:Sa.toLanguageString(F,Lt[F]),fillMode:"flat",svgIcon:o.exportIcon,icon:"export",onItemClick:Na,items:[{svgIcon:o.filePdfIcon,icon:"file-pdf",exportHandler:oa,text:Sa.toLanguageString(I,Lt[I])},{svgIcon:o.fileIcon,icon:"file",exportHandler:ia,text:Sa.toLanguageString(W,Lt[W])},{svgIcon:o.fileImageIcon,icon:"file-image",exportHandler:sa,text:Sa.toLanguageString(N,Lt[N])}]})),h.createElement("div",{className:"k-preview-pane-content",style:{height:"calc(100% - 50px)"}},h.createElement(l.Chart,{style:{width:"100%",height:"100%"},transitions:!1,ref:Wa},h.createElement(l.ChartTitle,{text:null==(v=zl.title)?void 0:v.text,font:null==(p=zl.title)?void 0:p.font,color:(null==(b=zl.title)?void 0:b.color)||"#000"}),h.createElement(l.ChartSubtitle,{text:null==(f=zl.subtitle)?void 0:f.text,font:null==(C=zl.subtitle)?void 0:C.font,color:(null==(y=zl.subtitle)?void 0:y.color)||"#000"}),h.createElement(l.ChartArea,{background:null==(A=zl.area)?void 0:A.background,margin:Zl}),zl.categoryAxis&&h.createElement(l.ChartCategoryAxis,null,zl.categoryAxis.map(((e,t)=>h.createElement(l.ChartCategoryAxisItem,{key:t,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})))),zl.valueAxis&&h.createElement(l.ChartValueAxis,null,zl.valueAxis.map(((e,t)=>h.createElement(l.ChartValueAxisItem,{key:t,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}})))),h.createElement(l.ChartSeries,null,zl.series.map(((e,t)=>h.createElement(l.ChartSeriesItem,{key:String(e.name)+t,...e})))),h.createElement(l.ChartXAxis,null,zl.categoryAxis.map(((e,t)=>h.createElement(l.ChartXAxisItem,{key:t,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,format:e.labels.format,rotation:e.labels.rotation}})))),h.createElement(l.ChartYAxis,null,zl.valueAxis.map(((e,t)=>h.createElement(l.ChartYAxisItem,{key:t,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}})))),h.createElement(l.ChartLegend,{visible:null==(E=zl.legend)?void 0:E.visible,position:null==(k=zl.legend)?void 0:k.position,labels:{color:(null==(L=null==(S=zl.legend)?void 0:S.labels)?void 0:L.color)||void 0,font:(null==(le=null==(z=zl.legend)?void 0:z.labels)?void 0:le.font)||void 0}})))),h.createElement("div",{className:"k-chart-wizard-property-pane k-pane k-pane-static"},h.createElement(r.TabStrip,{selected:kl,onSelect:Ll,animation:!1},h.createElement(r.TabStripTab,{title:Sa.toLanguageString(w,Lt[w])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(B,Lt[B]),expanded:qa,tabIndex:0,onAction:Ha},h.createElement(i.Reveal,null,qa&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(pa,{selected:"bar"===wr&&Rr,onClick:Pl,icon:o.chartBarClusteredIcon,iconName:"chart-bar-clustered"},Sa.toLanguageString(M,Lt[M])),h.createElement(pa,{selected:"bar"===wr&&Br,onClick:Rl,icon:o.chartBarStackedIcon,iconName:"chart-bar-stacked"},Sa.toLanguageString(D,Lt[D])),h.createElement(pa,{selected:"bar"===wr&&Mr,onClick:Bl,icon:o.chartBarStacked100Icon,iconName:"chart-bar-stacked100"},Sa.toLanguageString(K,Lt[K])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(O,Lt[O]),expanded:ja,tabIndex:0,onAction:Ya},h.createElement(i.Reveal,null,ja&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(pa,{selected:"pie"===wr,onClick:Vl,icon:o.chartPieIcon,iconName:"chart-pie"},Sa.toLanguageString(G,Lt[G])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(q,Lt[q]),expanded:$a,tabIndex:0,onAction:Ja},h.createElement(i.Reveal,null,$a&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(pa,{selected:"column"===wr&&Rr,onClick:Ml,icon:o.chartColumnClusteredIcon,iconName:"chart-column-clustered"},Sa.toLanguageString(V,Lt[V])),h.createElement(pa,{selected:"column"===wr&&Br,onClick:Dl,icon:o.chartColumnStackedIcon,iconName:"chart-column-stacked"},Sa.toLanguageString(H,Lt[H])),h.createElement(pa,{selected:"column"===wr&&Mr,onClick:Kl,icon:o.chartColumnStacked100Icon,iconName:"chart-column-stacked100"},Sa.toLanguageString(j,Lt[j])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(X,Lt[X]),expanded:Qa,tabIndex:0,onAction:_a},h.createElement(i.Reveal,null,Qa&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(pa,{selected:"line"===wr&&Rr,onClick:Ol,icon:o.chartLineIcon,iconName:"chart-line"},Sa.toLanguageString(Y,Lt[Y])),h.createElement(pa,{selected:"line"===wr&&Br,onClick:Gl,icon:o.chartLineStackedIcon,iconName:"chart-line-stacked"},Sa.toLanguageString($,Lt[$])),h.createElement(pa,{selected:"line"===wr&&Mr,onClick:ql,icon:o.chartLineStacked100Icon,iconName:"chart-line-stacked100"},Sa.toLanguageString(U,Lt[U])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(J,Lt[J]),expanded:el,tabIndex:0,onAction:al},h.createElement(i.Reveal,null,el&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(pa,{selected:"scatter"===wr,onClick:Hl,icon:o.chartScatterIcon,iconName:"chart-scatter"},Sa.toLanguageString(Q,Lt[Q])))))))),h.createElement(r.TabStripTab,{title:Sa.toLanguageString(P,Lt[P])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(Z,Lt[Z]),expanded:ll,tabIndex:0,onAction:nl},h.createElement(i.Reveal,null,ll&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement(ca,{legend:"scatter"===wr?Sa.toLanguageString(ee,Lt[ee]):Sa.toLanguageString(_,Lt[_])},h.createElement(s.DropDownList,{data:zl.columns||[],value:zl.categoryField,onChange:jl,...ba})),Bt(wr)&&h.createElement(ca,{legend:Sa.toLanguageString(ae,Lt[ae])},h.createElement(Tt,{data:zl.series,initialData:zl.initialSeries,onChange:Xl})),"pie"===wr&&h.createElement(ca,{legend:Sa.toLanguageString(te,Lt[te])},h.createElement(s.DropDownList,{data:zl.columns||[],value:zl.valueField||"",...ba,onChange:Yl})))))))),h.createElement(r.TabStripTab,{title:Sa.toLanguageString(R,Lt[R])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(re,Lt[re]),expanded:ol,tabIndex:0,onAction:sl},h.createElement(i.Reveal,null,ol&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement(ca,{legend:Sa.toLanguageString(ne,Lt[ne])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ua,{labelText:Sa.toLanguageString(ie,Lt[ie]),editorId:"left"},h.createElement(g.NumericTextBox,{id:"left",value:void 0!==Zl.left?Zl.left:null,onChange:$l,placeholder:Sa.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(ua,{labelText:Sa.toLanguageString(se,Lt[se]),editorId:"right"},h.createElement(g.NumericTextBox,{id:"right",value:void 0!==Zl.right?Zl.right:null,onChange:Ul,placeholder:Sa.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(ua,{labelText:Sa.toLanguageString(ce,Lt[ce]),editorId:"top"},h.createElement(g.NumericTextBox,{id:"top",value:void 0!==Zl.top?Zl.top:null,onChange:Jl,placeholder:Sa.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(ua,{labelText:Sa.toLanguageString(de,Lt[de]),editorId:"bottom"},h.createElement(g.NumericTextBox,{id:"bottom",value:void 0!==Zl.bottom?Zl.bottom:null,onChange:Ql,placeholder:Sa.toLanguageString(oe,Lt[oe]),min:0,max:1e3,step:1,fillMode:"outline"})))),h.createElement(ca,{legend:Sa.toLanguageString(ue,Lt[ue])},h.createElement(ua,{labelText:Sa.toLanguageString(ge,Lt[ge]),editorId:"background"},h.createElement(g.ColorPicker,{id:"background",value:(null==(zt=zl.area)?void 0:zt.background)||"",onChange:_l,view:"gradient",fillMode:"outline"}))))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(me,Lt[me]),expanded:cl,tabIndex:0,onAction:ul},h.createElement(i.Reveal,null,cl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ua,{className:"k-col-span-2",editorId:"apply-to-title",labelText:Sa.toLanguageString(xe,Lt[xe])},h.createElement(s.DropDownList,{id:"apply-to-title",data:La,textField:"text",dataItemKey:"value",value:La.find((e=>e.value===er.value)),onChange:ar,...ba})),h.createElement(ua,{className:"k-col-span-2",editorId:"titleText",labelText:Sa.toLanguageString(be,Lt[be])},h.createElement(g.Input,{id:"titleText",placeholder:er.value===La[0].value?La[0].text:La[1].text,value:ir.text,onChange:lr})),h.createElement(ua,{className:"k-col-span-2",editorId:"titleFont",labelText:Sa.toLanguageString(he,Lt[he])},h.createElement(s.ComboBox,{id:"titleFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(fe,Lt[fe]),value:Wt.find((e=>e.value===Gt(ir.font).name))||ga,onChange:rr,itemRender:xa,...ba})),h.createElement(ua,{editorId:"titleFontSize",labelText:Sa.toLanguageString(Ce,Lt[Ce])},h.createElement(s.ComboBox,{id:"titleFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(ye,Lt[ye]),value:It.find((e=>e.value===Gt(ir.font).size))||ga,onChange:nr,itemRender:xa,allowCustom:!0,...ba})),h.createElement(ua,{editorId:"titleColor",labelText:Sa.toLanguageString(Ae,Lt[Ae])},h.createElement(g.ColorPicker,{id:"titleColor",value:ir.color||"",onChange:or,view:"gradient",fillMode:"outline"}))))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(Ee,Lt[Ee]),expanded:gl,tabIndex:0,onAction:xl},h.createElement(i.Reveal,null,gl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement(ua,{editorId:"apply-to-series",labelText:Sa.toLanguageString(ke,Lt[ke])},h.createElement(s.DropDownList,{id:"apply-to-series",data:zl.series,textField:"name",dataItemKey:"name",defaultItem:Ta,disabled:!Bt(wr),value:zl.series.find((e=>e.name===Wl))||Ta,onChange:wl,...ba})),h.createElement(ua,{editorId:"seriesColor",labelText:Sa.toLanguageString(Le,Lt[Le])},h.createElement(g.ColorPicker,{id:"seriesColor",value:Wl?null==(Nt=zl.series.find((e=>e.name===Wl)))?void 0:Nt.color:"",onChange:sr,disabled:!Wl,view:"gradient",fillMode:"outline"})),h.createElement(ua,null,h.createElement(g.Checkbox,{label:Sa.toLanguageString(ze,Lt[ze]),checked:Wl?null==(Pt=null==(wt=zl.series.find((e=>e.name===Wl)))?void 0:wt.labels)?void 0:Pt.visible:zl.series.every((e=>{var t;return null==(t=e.labels)?void 0:t.visible})),onChange:cr})))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Sa.toLanguageString(Te,Lt[Te]),expanded:vl,tabIndex:0,onAction:bl},h.createElement(i.Reveal,null,vl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(m.Label,{editorId:"show-legend"},Sa.toLanguageString(Fe,Lt[Fe])),h.createElement(g.Switch,{id:"show-legend",checked:null==(Rt=zl.legend)?void 0:Rt.visible,onChange:dr}),h.createElement(ua,{className:"k-col-span-2",editorId:"legendLabelsFont",labelText:Sa.toLanguageString(Ie,Lt[Ie])},h.createElement(s.ComboBox,{id:"legendLabelsFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(We,Lt[We]),value:Wt.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=zl.legend)?void 0:t.labels)?void 0:a.font)||""))?void 0:l.name)}))||ga,onChange:gr,itemRender:xa,disabled:!1===(null==(Mt=zl.legend)?void 0:Mt.visible),...ba})),h.createElement(ua,{editorId:"legendLabelsSize",labelText:Sa.toLanguageString(Ne,Lt[Ne])},h.createElement(s.ComboBox,{id:"legendLabelsSize",data:It,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(we,Lt[we]),value:It.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=zl.legend)?void 0:t.labels)?void 0:a.font)||""))?void 0:l.size)}))||ga,onChange:ur,disabled:!1===(null==(Dt=zl.legend)?void 0:Dt.visible),allowCustom:!0,...ba})),h.createElement(ua,{editorId:"legendLabelsColor",labelText:Sa.toLanguageString(Pe,Lt[Pe])},h.createElement(g.ColorPicker,{id:"legendLabelsColor",value:(null==(Ot=null==(Kt=zl.legend)?void 0:Kt.labels)?void 0:Ot.color)||"",onChange:mr,disabled:!1===(null==(qt=zl.legend)?void 0:qt.visible),view:"gradient",fillMode:"outline"})),h.createElement(ua,{className:"k-col-span-2",editorId:"legendPosition",labelText:Sa.toLanguageString(Re,Lt[Re])},h.createElement(s.DropDownList,{id:"legendPosition",data:za,textField:"text",dataItemKey:"value",value:za.find((e=>{var t;return e.value===(null==(t=zl.legend)?void 0:t.position)})),onChange:xr,disabled:!1===(null==(Vt=zl.legend)?void 0:Vt.visible),...ba}))))))),"pie"!==wr&&h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:"scatter"===wr?Sa.toLanguageString(Ge,Lt[Ge]):Sa.toLanguageString(Oe,Lt[Oe]),expanded:hl,tabIndex:0,onAction:Cl},h.createElement(i.Reveal,null,hl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement(ca,{legend:Sa.toLanguageString(qe,Lt[qe])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ua,{className:"k-col-span-2"},h.createElement(g.Input,{placeholder:Sa.toLanguageString(Ve,Lt[Ve]),value:(null==(Ht=zl.categoryAxis[0].title)?void 0:Ht.text)||"",onChange:vr})),h.createElement(ua,{className:"k-col-span-2",editorId:"categoryAxisTitleFont",labelText:Sa.toLanguageString(He,Lt[He])},h.createElement(s.ComboBox,{id:"categoryAxisTitleFont",data:Wt,textField:"text",dataItemKey:"value",itemRender:xa,placeholder:Sa.toLanguageString(je,Lt[je]),value:Wt.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=zl.categoryAxis[0].title)?void 0:t.font)||""))?void 0:a.name)}))||ga,onChange:br,...ba})),h.createElement(ua,{editorId:"categoryAxisTitleFontSize",labelText:Sa.toLanguageString(Xe,Lt[Xe])},h.createElement(s.ComboBox,{id:"categoryAxisTitleFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(Ye,Lt[Ye]),value:It.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=zl.categoryAxis[0].title)?void 0:t.font)||""))?void 0:a.size)}))||ga,onChange:pr,allowCustom:!0,...ba})),h.createElement(ua,{editorId:"categoryAxisTitleColor",labelText:Sa.toLanguageString($e,Lt[$e])},h.createElement(g.ColorPicker,{id:"categoryAxisTitleColor",view:"gradient",value:(null==(jt=zl.categoryAxis[0].title)?void 0:jt.color)||"",onChange:hr,fillMode:"outline"})))),h.createElement(ca,{legend:Sa.toLanguageString(Ue,Lt[Ue])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ua,{className:"k-col-span-2",editorId:"categoryAxisLabelsFont",labelText:Sa.toLanguageString(Je,Lt[Je])},h.createElement(s.ComboBox,{id:"categoryAxisLabelsFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(Qe,Lt[Qe]),value:Wt.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=zl.categoryAxis[0].labels)?void 0:t.font)||""))?void 0:a.name)}))||ga,onChange:Cr,itemRender:xa,...ba})),h.createElement(ua,{editorId:"categoryAxisLabelsFontSize",labelText:Sa.toLanguageString(Ze,Lt[Ze])},h.createElement(s.ComboBox,{id:"categoryAxisLabelsFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(_e,Lt[_e]),value:It.find((e=>{var t,a;return e.value===(null==(a=Gt((null==(t=zl.categoryAxis[0].labels)?void 0:t.font)||""))?void 0:a.size)}))||ga,onChange:fr,allowCustom:!0,...ba})),h.createElement(ua,{editorId:"categoryAxisLabelsColor",labelText:Sa.toLanguageString(et,Lt[et])},h.createElement(g.ColorPicker,{id:"categoryAxisLabelsColor",view:"gradient",value:(null==(Xt=zl.categoryAxis[0].labels)?void 0:Xt.color)||"",onChange:yr,fillMode:"outline"})),h.createElement(ua,{editorId:"categoryAxisLabelsRotation",labelText:Sa.toLanguageString(tt,Lt[tt])},h.createElement(g.NumericTextBox,{id:"categoryAxisLabelsRotation",value:"number"==typeof(null==(Yt=zl.categoryAxis[0].labels)?void 0:Yt.rotation)?null==($t=zl.categoryAxis[0].labels)?void 0:$t.rotation:null,placeholder:Sa.toLanguageString(at,Lt[at]),onChange:Ar,fillMode:"outline",min:-360,max:360,step:1})),h.createElement(ua,{className:"k-col-span-2"},h.createElement(g.Checkbox,{label:Sa.toLanguageString(lt,Lt[lt]),checked:zl.categoryAxis[0].reverse||!1,onChange:Er})))))))),"pie"!==wr&&h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:"scatter"===wr?Sa.toLanguageString(nt,Lt[nt]):Sa.toLanguageString(rt,Lt[rt]),expanded:yl,tabIndex:0,onAction:El},h.createElement(i.Reveal,null,yl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(x.FormElement,null,h.createElement(ca,{legend:Sa.toLanguageString(ot,Lt[ot])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ua,{className:"k-col-span-2"},h.createElement(g.Input,{placeholder:Sa.toLanguageString(it,Lt[it]),value:(null==(Jt=null==(Ut=zl.valueAxis[0])?void 0:Ut.title)?void 0:Jt.text)||"",onChange:kr})),h.createElement(ua,{className:"k-col-span-2",editorId:"valueAxisTitleFont",labelText:Sa.toLanguageString(st,Lt[st])},h.createElement(s.ComboBox,{id:"valueAxisTitleFont",data:Wt,textField:"text",dataItemKey:"value",itemRender:xa,placeholder:Sa.toLanguageString(ct,Lt[ct]),value:Wt.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=zl.valueAxis[0])?void 0:t.title)?void 0:a.font)||""))?void 0:l.name)}))||ga,onChange:Lr,...ba})),h.createElement(ua,{editorId:"valueAxisTitleFontSize",labelText:Sa.toLanguageString(dt,Lt[dt])},h.createElement(s.ComboBox,{id:"valueAxisTitleFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(ut,Lt[ut]),value:It.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=zl.valueAxis[0])?void 0:t.title)?void 0:a.font)||""))?void 0:l.size)}))||ga,onChange:Sr,allowCustom:!0,...ba})),h.createElement(ua,{editorId:"valueAxisTitleColor",labelText:Sa.toLanguageString(gt,Lt[gt])},h.createElement(g.ColorPicker,{id:"valueAxisTitleColor",view:"gradient",value:(null==(da=null==(ta=zl.valueAxis[0])?void 0:ta.title)?void 0:da.color)||"",onChange:zr,fillMode:"outline"})))),h.createElement(ca,{legend:Sa.toLanguageString(mt,Lt[mt])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(ua,{className:"k-col-span-2",editorId:"valueAxisLabelsFormat",labelText:Sa.toLanguageString(xt,Lt[xt])},h.createElement(s.DropDownList,{id:"valueAxisLabelsFormat",data:Ia,textField:"text",dataItemKey:"value",defaultItem:Fa,value:Ia.find((e=>{var t,a;return e.value===(null==(a=null==(t=zl.valueAxis[0])?void 0:t.labels)?void 0:a.format)}))||Fa,onChange:Nr,...ba})),h.createElement(ua,{className:"k-col-span-2",editorId:"valueAxisLabelsFont",labelText:Sa.toLanguageString(ft,Lt[ft])},h.createElement(s.ComboBox,{id:"valueAxisLabelsFont",data:Wt,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(Ct,Lt[Ct]),value:Wt.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=zl.valueAxis[0])?void 0:t.labels)?void 0:a.font)||""))?void 0:l.name)}))||ga,onChange:Fr,itemRender:xa,...ba})),h.createElement(ua,{editorId:"valueAxisLabelsFontSize",labelText:Sa.toLanguageString(yt,Lt[yt])},h.createElement(s.ComboBox,{id:"valueAxisLabelsFontSize",data:It,textField:"text",dataItemKey:"value",placeholder:Sa.toLanguageString(At,Lt[At]),value:It.find((e=>{var t,a,l;return e.value===(null==(l=Gt((null==(a=null==(t=zl.valueAxis[0])?void 0:t.labels)?void 0:a.font)||""))?void 0:l.size)}))||ga,onChange:Tr,allowCustom:!0,...ba})),h.createElement(ua,{editorId:"valueAxisLabelsColor",labelText:Sa.toLanguageString(Et,Lt[Et])},h.createElement(g.ColorPicker,{id:"valueAxisLabelsColor",view:"gradient",value:(null==(Ca=null==(ma=zl.valueAxis[0])?void 0:ma.labels)?void 0:Ca.color)||"",onChange:Ir,fillMode:"outline"})),h.createElement(ua,{editorId:"valueAxisLabelsRotation",labelText:Sa.toLanguageString(kt,Lt[kt])},h.createElement(g.NumericTextBox,{id:"valueAxisLabelsRotation",value:"number"==typeof(null==(Aa=null==(ya=zl.valueAxis[0])?void 0:ya.labels)?void 0:Aa.rotation)?null==(ka=null==(Ea=zl.valueAxis[0])?void 0:Ea.labels)?void 0:ka.rotation:null,placeholder:Sa.toLanguageString(St,Lt[St]),onChange:Wr,fillMode:"outline",min:-360,max:360,step:1}))))))))))))))}));function ya(e){const{grid:t,data:a,selectedState:l,dataItemKey:r}=e;if(!t)return[];const n=c.leafColumns(t.columns||[]),o=u.getter(r),i=u.getter("field"),s=u.getter("title"),d=new Map(a.map((e=>[String(o(e)),e]))),g=new Map(Array.from(d.keys()).map(((e,t)=>[e,t]))),m=Object.keys(l).sort(((e,t)=>(g.get(e)||0)-(g.get(t)||0))),x=[];return m.forEach((e=>{let t=l[e];if(t){!0===t&&(t=Array.from({length:n.length},((e,t)=>t)));const a=t.slice();a.sort(((e,t)=>e-t));const l=a.map((e=>({title:s(n[e]),field:i(n[e])})));x.push({dataItem:d.get(e),dataColumns:l})}})),x}function Aa(e){const t=[];return e.forEach((e=>{const{dataItem:a,dataColumns:l}=e,r=[];l.forEach((e=>{r.push({field:e.title||e.field,value:u.getter(e.field)(a)})})),t.push(r)})),t}Ca.displayName="ChartWizard";e.ActionTypes=Ft,e.ChartWizard=Ca,e.createInitialState=Qt,e.createState=Zt,e.fontNames=Wt,e.fontSizes=It,e.getGridSelectedRows=ya,e.getWizardDataFromDataRows=Aa,e.getWizardDataFromGridSelection=e=>Aa(ya(e)),e.isCategorical=Bt,e.mergeStates=_t,e.parseFont=Gt,e.updateState=ea}));
|
|
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-react-common"),h=require("@progress/kendo-react-grid");function w(g){const{grid:c,data:m,selectedState:a,dataItemKey:f}=g;if(!c)return[];const o=h.leafColumns(c.columns||[]),S=n.getter(f),p=n.getter("field"),y=n.getter("title"),l=new Map(m.map(e=>[String(S(e)),e])),d=new Map(Array.from(l.keys()).map((e,t)=>[e,t])),G=Object.keys(a).sort((e,t)=>(d.get(e)||0)-(d.get(t)||0)),i=[];return G.forEach(e=>{let t=a[e];if(t){t===!0&&(t=Array.from({length:o.length},(r,s)=>s));const u=t.slice();u.sort((r,s)=>r-s);const k=u.map(r=>({title:y(o[r]),field:p(o[r])}));i.push({dataItem:l.get(e),dataColumns:k})}}),i}exports.getGridSelectedRows=w;
|
|
@@ -6,27 +6,29 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import { getter as
|
|
10
|
-
import { leafColumns as
|
|
11
|
-
function M(
|
|
12
|
-
const { grid:
|
|
13
|
-
if (!
|
|
9
|
+
import { getter as n } from "@progress/kendo-react-common";
|
|
10
|
+
import { leafColumns as k } from "@progress/kendo-react-grid";
|
|
11
|
+
function M(f) {
|
|
12
|
+
const { grid: a, data: u, selectedState: c, dataItemKey: p } = f;
|
|
13
|
+
if (!a)
|
|
14
14
|
return [];
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
let e =
|
|
15
|
+
const s = k(a.columns || []), g = n(p), y = n("field"), S = n("title"), l = new Map(u.map((t) => [String(g(t)), t])), d = new Map(Array.from(l.keys()).map((t, e) => [t, e])), h = Object.keys(c).sort((t, e) => (d.get(t) || 0) - (d.get(e) || 0)), i = [];
|
|
16
|
+
return h.forEach((t) => {
|
|
17
|
+
let e = c[t];
|
|
18
18
|
if (e) {
|
|
19
|
-
e === !0 && (e = Array.from({ length:
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
e === !0 && (e = Array.from({ length: s.length }, (r, o) => o));
|
|
20
|
+
const m = e.slice();
|
|
21
|
+
m.sort((r, o) => r - o);
|
|
22
|
+
const G = m.map((r) => ({
|
|
23
|
+
title: S(s[r]),
|
|
24
|
+
field: y(s[r])
|
|
23
25
|
}));
|
|
24
|
-
|
|
25
|
-
dataItem:
|
|
26
|
-
dataColumns:
|
|
26
|
+
i.push({
|
|
27
|
+
dataItem: l.get(t),
|
|
28
|
+
dataColumns: G
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
|
-
}),
|
|
31
|
+
}), i;
|
|
30
32
|
}
|
|
31
33
|
export {
|
|
32
34
|
M as getGridSelectedRows
|
package/index.d.mts
CHANGED
|
@@ -74,7 +74,7 @@ export declare enum ActionTypes {
|
|
|
74
74
|
/**
|
|
75
75
|
* The KendoReact ChartWizard component.
|
|
76
76
|
*/
|
|
77
|
-
export declare const ChartWizard: React_2.
|
|
77
|
+
export declare const ChartWizard: React_2.ForwardRefExoticComponent<ChartWizardProps & React_2.RefAttributes<ChartWizardHandle | null>>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Describes a single data cell for the Chart Wizard.
|
|
@@ -101,6 +101,22 @@ export declare type ChartWizardDataRow = ChartWizardDataCell[];
|
|
|
101
101
|
export declare interface ChartWizardDefaultState extends Pick<ChartWizardState, 'stack' | 'seriesType'> {
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Represents the `ref` object of the `ChartWizard` component.
|
|
106
|
+
**/
|
|
107
|
+
export declare interface ChartWizardHandle {
|
|
108
|
+
/**
|
|
109
|
+
* The Chart instance.
|
|
110
|
+
*/
|
|
111
|
+
chart: Chart | null;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*
|
|
115
|
+
* The current state of the ChartWizard.
|
|
116
|
+
*/
|
|
117
|
+
state: ChartWizardState;
|
|
118
|
+
}
|
|
119
|
+
|
|
104
120
|
/**
|
|
105
121
|
* The props of the KendoReact ChartWizard component.
|
|
106
122
|
*/
|
package/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare enum ActionTypes {
|
|
|
74
74
|
/**
|
|
75
75
|
* The KendoReact ChartWizard component.
|
|
76
76
|
*/
|
|
77
|
-
export declare const ChartWizard: React_2.
|
|
77
|
+
export declare const ChartWizard: React_2.ForwardRefExoticComponent<ChartWizardProps & React_2.RefAttributes<ChartWizardHandle | null>>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Describes a single data cell for the Chart Wizard.
|
|
@@ -101,6 +101,22 @@ export declare type ChartWizardDataRow = ChartWizardDataCell[];
|
|
|
101
101
|
export declare interface ChartWizardDefaultState extends Pick<ChartWizardState, 'stack' | 'seriesType'> {
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Represents the `ref` object of the `ChartWizard` component.
|
|
106
|
+
**/
|
|
107
|
+
export declare interface ChartWizardHandle {
|
|
108
|
+
/**
|
|
109
|
+
* The Chart instance.
|
|
110
|
+
*/
|
|
111
|
+
chart: Chart | null;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*
|
|
115
|
+
* The current state of the ChartWizard.
|
|
116
|
+
*/
|
|
117
|
+
state: ChartWizardState;
|
|
118
|
+
}
|
|
119
|
+
|
|
104
120
|
/**
|
|
105
121
|
* The props of the KendoReact ChartWizard component.
|
|
106
122
|
*/
|
package/messages.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a="chartWizard.window.title",r="chartWizard.export.button",t="chartWizard.exportPDF.button",i="chartWizard.exportSVG.button",o="chartWizard.exportPNG.button",e="chartWizard.tab.chart",c="chartWizard.tab.data",h="chartWizard.tab.format",d="chartWizard.chart.barChart",l="chartWizard.chart.barChart.bar",s="chartWizard.chart.barChart.stackedBar",n="chartWizard.chart.barChart.100%stackedBar",z="chartWizard.chart.pieChart",W="chartWizard.chart.pieChart.pie",m="chartWizard.chart.columnChart",C="chartWizard.chart.columnChart.column",F="chartWizard.chart.columnChart.stackedColumn",A="chartWizard.chart.columnChart.100%stackedColumn",x="chartWizard.chart.lineChart",u="chartWizard.chart.lineChart.line",g="chartWizard.chart.lineChart.stackedLine",f="chartWizard.chart.lineChart.100%stackedLine",b="chartWizard.chart.scatterChart",L="chartWizard.chart.scatterChart.scatter",S="chartWizard.data.configuration",T="chartWizard.data.configuration.categoryAxis",P="chartWizard.data.configuration.xAxis",y="chartWizard.data.configuration.valueAxis",p="chartWizard.data.configuration.series",V="chartWizard.data.configuration.series.add",B="chartWizard.format.chartArea",k="chartWizard.format.chartArea.margins",v="chartWizard.format.chartArea.margins.auto",D="chartWizard.format.chartArea.margins.left",R="chartWizard.format.chartArea.margins.right",M="chartWizard.format.chartArea.margins.top",w="chartWizard.format.chartArea.margins.bottom",E="chartWizard.format.chartArea.background",G="chartWizard.format.chartArea.background.color",N="chartWizard.format.title",X="chartWizard.format.title.applyTo",O="chartWizard.format.title.chartTitle",Y="chartWizard.format.title.chartSubtitle",j="chartWizard.format.title.label",q="chartWizard.format.title.font",H="chartWizard.format.title.fontPlaceholder",I="chartWizard.format.title.size",J="chartWizard.format.title.sizePlaceholder",K="chartWizard.format.title.color",Q="chartWizard.format.series",U="chartWizard.format.series.applyTo",Z="chartWizard.format.series.allSeries",_="chartWizard.format.series.color",$="chartWizard.format.series.showLabels",aa="chartWizard.format.legend",ra="chartWizard.format.legend.showLegend",ta="chartWizard.format.legend.font",ia="chartWizard.format.legend.fontPlaceholder",oa="chartWizard.format.legend.size",ea="chartWizard.format.legend.sizePlaceholder",ca="chartWizard.format.legend.color",ha="chartWizard.format.legend.position",da="chartWizard.format.legend.position.top",la="chartWizard.format.legend.position.bottom",sa="chartWizard.format.legend.position.left",na="chartWizard.format.legend.position.right",za="chartWizard.format.categoryAxis",Wa="chartWizard.format.xAxis",ma="chartWizard.format.categoryAxis.title",Ca="chartWizard.format.categoryAxis.title.placeholder",Fa="chartWizard.format.categoryAxis.title.font",Aa="chartWizard.format.categoryAxis.title.fontPlaceholder",xa="chartWizard.format.categoryAxis.title.size",ua="chartWizard.format.categoryAxis.title.sizePlaceholder",ga="chartWizard.format.categoryAxis.title.color",fa="chartWizard.format.categoryAxis.labels",ba="chartWizard.format.categoryAxis.labels.font",La="chartWizard.format.categoryAxis.labels.fontPlaceholder",Sa="chartWizard.format.categoryAxis.labels.size",Ta="chartWizard.format.categoryAxis.labels.sizePlaceholder",Pa="chartWizard.format.categoryAxis.labels.color",ya="chartWizard.format.categoryAxis.labels.rotation",pa="chartWizard.format.categoryAxis.labels.rotation.auto",Va="chartWizard.format.categoryAxis.labels.reverseOrder",Ba="chartWizard.format.valueAxis",ka="chartWizard.format.yAxis",va="chartWizard.format.valueAxis.title",Da="chartWizard.format.valueAxis.title.placeholder",Ra="chartWizard.format.valueAxis.title.font",Ma="chartWizard.format.valueAxis.title.fontPlaceholder",wa="chartWizard.format.valueAxis.title.size",Ea="chartWizard.format.valueAxis.title.sizePlaceholder",Ga="chartWizard.format.valueAxis.title.color",Na="chartWizard.format.valueAxis.labels",Xa="chartWizard.format.valueAxis.labelFormat",Oa="chartWizard.format.valueAxis.labelFormat.text",Ya="chartWizard.format.valueAxis.labelFormat.number",ja="chartWizard.format.valueAxis.labelFormat.currency",qa="chartWizard.format.valueAxis.labelFormat.percent",Ha="chartWizard.format.valueAxis.labels.font",Ia="chartWizard.format.valueAxis.labels.fontPlaceholder",Ja="chartWizard.format.valueAxis.labels.size",Ka="chartWizard.format.valueAxis.labels.sizePlaceholder",Qa="chartWizard.format.valueAxis.labels.color",Ua="chartWizard.format.valueAxis.labels.rotation",Za="chartWizard.format.valueAxis.labels.rotation.auto",_a={[a]:"Chart Preview",[r]:"Export",[t]:"PDF File",[i]:"SVG File",[o]:"PNG File",[e]:"Chart",[c]:"Data",[h]:"Format",[d]:"Bar Chart",[l]:"Bar",[s]:"Stacked Bar",[n]:"100% Stacked Bar",[z]:"Pie Chart",[W]:"Pie",[m]:"Column Chart",[C]:"Column",[F]:"Stacked Column",[A]:"100% Stacked Column",[x]:"Line Chart",[u]:"Line",[g]:"Stacked Line",[f]:"100% Stacked Line",[b]:"Scatter Chart",[L]:"Scatter",[S]:"Configuration",[T]:"Category Axis",[P]:"X Axis",[y]:"Value Axis",[p]:"Series",[V]:"Add",[B]:"Chart Area",[k]:"Margins",[v]:"Auto",[D]:"Left",[R]:"Right",[M]:"Top",[w]:"Bottom",[E]:"Background",[G]:"Color",[N]:"Title",[X]:"Apply to",[O]:"Chart Title",[Y]:"Chart Subtitle",[j]:"Title",[q]:"Font",[H]:"(inherited font)",[I]:"Size",[J]:"px",[K]:"Color",[Q]:"Series",[U]:"Apply to",[Z]:"All Series",[_]:"Color",[$]:"Show Labels",[aa]:"Legend",[ra]:"Show Legend",[ta]:"Font",[ia]:"(inherited font)",[oa]:"Size",[ea]:"px",[ca]:"Color",[ha]:"Position",[da]:"Top",[la]:"Bottom",[sa]:"Left",[na]:"Right",[za]:"Category Axis",[Wa]:"X Axis",[ma]:"Title",[Ca]:"Axis Title",[Fa]:"Font",[Aa]:"(inherited font)",[xa]:"Size",[ua]:"px",[ga]:"Color",[fa]:"Labels",[ba]:"Font",[La]:"(inherited font)",[Sa]:"Size",[Ta]:"px",[Pa]:"Color",[ya]:"Rotation",[pa]:"Auto",[Va]:"Reverse Order",[Ba]:"Value Axis",[ka]:"Y Axis",[va]:"Title",[Da]:"Axis Title",[Ra]:"Font",[Ma]:"(inherited font)",[wa]:"Size",[Ea]:"px",[Ga]:"Color",[Na]:"Labels",[Xa]:"Label Format",[Oa]:"Text",[Ya]:"Number",[ja]:"Currency",[qa]:"Percent",[Ha]:"Font",[Ia]:"(inherited font)",[Ja]:"Size",[Ka]:"px",[Qa]:"Color",[Ua]:"Rotation",[Za]:"Auto"};exports.chartWizardChartBarChart=d;exports.chartWizardChartBarChart100StackedBar=n;exports.chartWizardChartBarChartBar=l;exports.chartWizardChartBarChartStackedBar=s;exports.chartWizardChartColumnChart=m;exports.chartWizardChartColumnChart100StackedColumn=A;exports.chartWizardChartColumnChartColumn=C;exports.chartWizardChartColumnChartStackedColumn=F;exports.chartWizardChartLineChart=x;exports.chartWizardChartLineChart100StackedLine=f;exports.chartWizardChartLineChartLine=u;exports.chartWizardChartLineChartStackedLine=g;exports.chartWizardChartPieChart=z;exports.chartWizardChartPieChartPie=W;exports.chartWizardChartScatterChart=b;exports.chartWizardChartScatterChartScatter=L;exports.chartWizardDataConfiguration=S;exports.chartWizardDataConfigurationCategoryAxis=T;exports.chartWizardDataConfigurationSeries=p;exports.chartWizardDataConfigurationSeriesAdd=V;exports.chartWizardDataConfigurationValueAxis=y;exports.chartWizardDataConfigurationXAxis=P;exports.chartWizardExportButton=r;exports.chartWizardExportPDFButton=t;exports.chartWizardExportPNGButton=o;exports.chartWizardExportSVGButton=i;exports.chartWizardFormatCategoryAxis=za;exports.chartWizardFormatCategoryAxisLabels=fa;exports.chartWizardFormatCategoryAxisLabelsColor=Pa;exports.chartWizardFormatCategoryAxisLabelsFont=ba;exports.chartWizardFormatCategoryAxisLabelsFontPlaceholder=La;exports.chartWizardFormatCategoryAxisLabelsReverseOrder=Va;exports.chartWizardFormatCategoryAxisLabelsRotation=ya;exports.chartWizardFormatCategoryAxisLabelsRotationAuto=pa;exports.chartWizardFormatCategoryAxisLabelsSize=Sa;exports.chartWizardFormatCategoryAxisLabelsSizePlaceholder=Ta;exports.chartWizardFormatCategoryAxisTitle=ma;exports.chartWizardFormatCategoryAxisTitleColor=ga;exports.chartWizardFormatCategoryAxisTitleFont=Fa;exports.chartWizardFormatCategoryAxisTitleFontPlaceholder=Aa;exports.chartWizardFormatCategoryAxisTitlePlaceholder=Ca;exports.chartWizardFormatCategoryAxisTitleSize=xa;exports.chartWizardFormatCategoryAxisTitleSizePlaceholder=ua;exports.chartWizardFormatChartArea=B;exports.chartWizardFormatChartAreaBackground=E;exports.chartWizardFormatChartAreaBackgroundColor=G;exports.chartWizardFormatChartAreaMargins=k;exports.chartWizardFormatChartAreaMarginsAuto=v;exports.chartWizardFormatChartAreaMarginsBottom=w;exports.chartWizardFormatChartAreaMarginsLeft=D;exports.chartWizardFormatChartAreaMarginsRight=R;exports.chartWizardFormatChartAreaMarginsTop=M;exports.chartWizardFormatLegend=aa;exports.chartWizardFormatLegendColor=ca;exports.chartWizardFormatLegendFont=ta;exports.chartWizardFormatLegendFontPlaceholder=ia;exports.chartWizardFormatLegendPosition=ha;exports.chartWizardFormatLegendPositionBottom=la;exports.chartWizardFormatLegendPositionLeft=sa;exports.chartWizardFormatLegendPositionRight=na;exports.chartWizardFormatLegendPositionTop=da;exports.chartWizardFormatLegendShowLegend=ra;exports.chartWizardFormatLegendSize=oa;exports.chartWizardFormatLegendSizePlaceholder=ea;exports.chartWizardFormatSeries=Q;exports.chartWizardFormatSeriesAllSeries=Z;exports.chartWizardFormatSeriesApplyTo=U;exports.chartWizardFormatSeriesColor=_;exports.chartWizardFormatSeriesShowLabels=$;exports.chartWizardFormatTitle=N;exports.chartWizardFormatTitleApplyTo=X;exports.chartWizardFormatTitleChartSubtitle=Y;exports.chartWizardFormatTitleChartTitle=O;exports.chartWizardFormatTitleColor=K;exports.chartWizardFormatTitleFont=q;exports.chartWizardFormatTitleFontPlaceholder=H;exports.chartWizardFormatTitleLabel=j;exports.chartWizardFormatTitleSize=I;exports.chartWizardFormatTitleSizePlaceholder=J;exports.chartWizardFormatValueAxis=Ba;exports.chartWizardFormatValueAxisLabels=Na;exports.chartWizardFormatValueAxisLabelsColor=Qa;exports.chartWizardFormatValueAxisLabelsFont=Ha;exports.chartWizardFormatValueAxisLabelsFontPlaceholder=Ia;exports.chartWizardFormatValueAxisLabelsFormat=Xa;exports.chartWizardFormatValueAxisLabelsFormatCurrency=ja;exports.chartWizardFormatValueAxisLabelsFormatNumber=Ya;exports.chartWizardFormatValueAxisLabelsFormatPercent=qa;exports.chartWizardFormatValueAxisLabelsFormatText=Oa;exports.chartWizardFormatValueAxisLabelsRotation=Ua;exports.chartWizardFormatValueAxisLabelsRotationAuto=Za;exports.chartWizardFormatValueAxisLabelsSize=Ja;exports.chartWizardFormatValueAxisLabelsSizePlaceholder=Ka;exports.chartWizardFormatValueAxisTitle=va;exports.chartWizardFormatValueAxisTitleColor=Ga;exports.chartWizardFormatValueAxisTitleFont=Ra;exports.chartWizardFormatValueAxisTitleFontPlaceholder=Ma;exports.chartWizardFormatValueAxisTitlePlaceholder=Da;exports.chartWizardFormatValueAxisTitleSize=wa;exports.chartWizardFormatValueAxisTitleSizePlaceholder=Ea;exports.chartWizardFormatXAxis=Wa;exports.chartWizardFormatYAxis=ka;exports.chartWizardTabChart=e;exports.chartWizardTabData=c;exports.chartWizardTabFormat=h;exports.chartWizardWindowTitle=a;exports.messages=_a;
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="chartWizard.window.title",a="chartWizard.export.button",r="chartWizard.exportPDF.button",o="chartWizard.exportSVG.button",e="chartWizard.exportPNG.button",i="chartWizard.tab.chart",l="chartWizard.tab.data",s="chartWizard.tab.format",c="chartWizard.chart.barChart.expandText",n="chartWizard.chart.barChart.bar",m="chartWizard.chart.barChart.stackedBar",h="chartWizard.chart.barChart.100%stackedBar",f="chartWizard.chart.pieChart.expandText",d="chartWizard.chart.pieChart.pie",x="chartWizard.chart.columnChart.expandText",A="chartWizard.chart.columnChart.column",C="chartWizard.chart.columnChart.stackedColumn",u="chartWizard.chart.columnChart.100%stackedColumn",g="chartWizard.chart.lineChart.expandText",z="chartWizard.chart.lineChart.line",b="chartWizard.chart.lineChart.stackedLine",W="chartWizard.chart.lineChart.100%stackedLine",L="chartWizard.chart.scatterChart.expandText",T="chartWizard.chart.scatterChart.scatter",S="chartWizard.data.configuration.expandText",p="chartWizard.data.configuration.categoryAxis",y="chartWizard.data.configuration.xAxis",P="chartWizard.data.configuration.valueAxis",F="chartWizard.data.configuration.series.title",V="chartWizard.data.configuration.series.add",k="chartWizard.format.chartArea.expandText",B="chartWizard.format.chartArea.margins",v="chartWizard.format.chartArea.margins.auto",R="chartWizard.format.chartArea.margins.left",w="chartWizard.format.chartArea.margins.right",M="chartWizard.format.chartArea.margins.top",G="chartWizard.format.chartArea.margins.bottom",D="chartWizard.format.chartArea.background",N="chartWizard.format.chartArea.background.color",X="chartWizard.format.title.expandText",O="chartWizard.format.title.applyTo",Y="chartWizard.format.title.chartTitle",j="chartWizard.format.title.chartSubtitle",E="chartWizard.format.title.label",q="chartWizard.format.title.font",H="chartWizard.format.title.fontPlaceholder",I="chartWizard.format.title.size",J="chartWizard.format.title.sizePlaceholder",K="chartWizard.format.title.color",Q="chartWizard.format.series.expandText",U="chartWizard.format.series.applyTo",Z="chartWizard.format.series.allSeries",_="chartWizard.format.series.color",$="chartWizard.format.series.showLabels",tt="chartWizard.format.legend.expandText",at="chartWizard.format.legend.showLegend",rt="chartWizard.format.legend.font",ot="chartWizard.format.legend.fontPlaceholder",et="chartWizard.format.legend.size",it="chartWizard.format.legend.sizePlaceholder",lt="chartWizard.format.legend.color",st="chartWizard.format.legend.position",ct="chartWizard.format.legend.position.top",nt="chartWizard.format.legend.position.bottom",mt="chartWizard.format.legend.position.left",ht="chartWizard.format.legend.position.right",ft="chartWizard.format.categoryAxis.expandText",dt="chartWizard.format.xAxis.expandText",xt="chartWizard.format.categoryAxis.title.expandText",At="chartWizard.format.categoryAxis.title.placeholder",Ct="chartWizard.format.categoryAxis.title.font",ut="chartWizard.format.categoryAxis.title.fontPlaceholder",gt="chartWizard.format.categoryAxis.title.size",zt="chartWizard.format.categoryAxis.title.sizePlaceholder",bt="chartWizard.format.categoryAxis.title.color",Wt="chartWizard.format.categoryAxis.labels.text",Lt="chartWizard.format.categoryAxis.labels.font",Tt="chartWizard.format.categoryAxis.labels.fontPlaceholder",St="chartWizard.format.categoryAxis.labels.size",pt="chartWizard.format.categoryAxis.labels.sizePlaceholder",yt="chartWizard.format.categoryAxis.labels.color",Pt="chartWizard.format.categoryAxis.labels.rotation.text",Ft="chartWizard.format.categoryAxis.labels.rotation.auto",Vt="chartWizard.format.categoryAxis.labels.reverseOrder",kt="chartWizard.format.valueAxis.expandText",Bt="chartWizard.format.yAxis.expandText",vt="chartWizard.format.valueAxis.title.text",Rt="chartWizard.format.valueAxis.title.placeholder",wt="chartWizard.format.valueAxis.title.font",Mt="chartWizard.format.valueAxis.title.fontPlaceholder",Gt="chartWizard.format.valueAxis.title.size",Dt="chartWizard.format.valueAxis.title.sizePlaceholder",Nt="chartWizard.format.valueAxis.title.color",Xt="chartWizard.format.valueAxis.labels.text",Ot="chartWizard.format.valueAxis.labelFormat",Yt="chartWizard.format.valueAxis.labelFormat.text",jt="chartWizard.format.valueAxis.labelFormat.number",Et="chartWizard.format.valueAxis.labelFormat.currency",qt="chartWizard.format.valueAxis.labelFormat.percent",Ht="chartWizard.format.valueAxis.labels.font",It="chartWizard.format.valueAxis.labels.fontPlaceholder",Jt="chartWizard.format.valueAxis.labels.size",Kt="chartWizard.format.valueAxis.labels.sizePlaceholder",Qt="chartWizard.format.valueAxis.labels.color",Ut="chartWizard.format.valueAxis.labels.rotation.text",Zt="chartWizard.format.valueAxis.labels.rotation.auto",_t={[t]:"Chart Preview",[a]:"Export",[r]:"PDF File",[o]:"SVG File",[e]:"PNG File",[i]:"Chart",[l]:"Data",[s]:"Format",[c]:"Bar Chart",[n]:"Bar",[m]:"Stacked Bar",[h]:"100% Stacked Bar",[f]:"Pie Chart",[d]:"Pie",[x]:"Column Chart",[A]:"Column",[C]:"Stacked Column",[u]:"100% Stacked Column",[g]:"Line Chart",[z]:"Line",[b]:"Stacked Line",[W]:"100% Stacked Line",[L]:"Scatter Chart",[T]:"Scatter",[S]:"Configuration",[p]:"Category Axis",[y]:"X Axis",[P]:"Value Axis",[F]:"Series",[V]:"Add",[k]:"Chart Area",[B]:"Margins",[v]:"Auto",[R]:"Left",[w]:"Right",[M]:"Top",[G]:"Bottom",[D]:"Background",[N]:"Color",[X]:"Title",[O]:"Apply to",[Y]:"Chart Title",[j]:"Chart Subtitle",[E]:"Title",[q]:"Font",[H]:"(inherited font)",[I]:"Size",[J]:"px",[K]:"Color",[Q]:"Series",[U]:"Apply to",[Z]:"All Series",[_]:"Color",[$]:"Show Labels",[tt]:"Legend",[at]:"Show Legend",[rt]:"Font",[ot]:"(inherited font)",[et]:"Size",[it]:"px",[lt]:"Color",[st]:"Position",[ct]:"Top",[nt]:"Bottom",[mt]:"Left",[ht]:"Right",[ft]:"Category Axis",[dt]:"X Axis",[xt]:"Title",[At]:"Axis Title",[Ct]:"Font",[ut]:"(inherited font)",[gt]:"Size",[zt]:"px",[bt]:"Color",[Wt]:"Labels",[Lt]:"Font",[Tt]:"(inherited font)",[St]:"Size",[pt]:"px",[yt]:"Color",[Pt]:"Rotation",[Ft]:"Auto",[Vt]:"Reverse Order",[kt]:"Value Axis",[Bt]:"Y Axis",[vt]:"Title",[Rt]:"Axis Title",[wt]:"Font",[Mt]:"(inherited font)",[Gt]:"Size",[Dt]:"px",[Nt]:"Color",[Xt]:"Labels",[Ot]:"Label Format",[Yt]:"Text",[jt]:"Number",[Et]:"Currency",[qt]:"Percent",[Ht]:"Font",[It]:"(inherited font)",[Jt]:"Size",[Kt]:"px",[Qt]:"Color",[Ut]:"Rotation",[Zt]:"Auto"};exports.barChart=c;exports.barChart100StackedBar=h;exports.barChartBar=n;exports.barChartStackedBar=m;exports.columnChart=x;exports.columnChart100StackedColumn=u;exports.columnChartColumn=A;exports.columnChartStackedColumn=C;exports.configuration=S;exports.configurationCategoryAxis=p;exports.configurationSeries=F;exports.configurationSeriesAdd=V;exports.configurationValueAxis=P;exports.configurationXAxis=y;exports.exportButton=a;exports.exportPDFButton=r;exports.exportPNGButton=e;exports.exportSVGButton=o;exports.formatCategoryAxis=ft;exports.formatCategoryAxisLabels=Wt;exports.formatCategoryAxisLabelsColor=yt;exports.formatCategoryAxisLabelsFont=Lt;exports.formatCategoryAxisLabelsFontPlaceholder=Tt;exports.formatCategoryAxisLabelsReverseOrder=Vt;exports.formatCategoryAxisLabelsRotation=Pt;exports.formatCategoryAxisLabelsRotationAuto=Ft;exports.formatCategoryAxisLabelsSize=St;exports.formatCategoryAxisLabelsSizePlaceholder=pt;exports.formatCategoryAxisTitle=xt;exports.formatCategoryAxisTitleColor=bt;exports.formatCategoryAxisTitleFont=Ct;exports.formatCategoryAxisTitleFontPlaceholder=ut;exports.formatCategoryAxisTitlePlaceholder=At;exports.formatCategoryAxisTitleSize=gt;exports.formatCategoryAxisTitleSizePlaceholder=zt;exports.formatChartArea=k;exports.formatChartAreaBackground=D;exports.formatChartAreaBackgroundColor=N;exports.formatChartAreaMargins=B;exports.formatChartAreaMarginsAuto=v;exports.formatChartAreaMarginsBottom=G;exports.formatChartAreaMarginsLeft=R;exports.formatChartAreaMarginsRight=w;exports.formatChartAreaMarginsTop=M;exports.formatLegend=tt;exports.formatLegendColor=lt;exports.formatLegendFont=rt;exports.formatLegendFontPlaceholder=ot;exports.formatLegendPosition=st;exports.formatLegendPositionBottom=nt;exports.formatLegendPositionLeft=mt;exports.formatLegendPositionRight=ht;exports.formatLegendPositionTop=ct;exports.formatLegendShowLegend=at;exports.formatLegendSize=et;exports.formatLegendSizePlaceholder=it;exports.formatSeries=Q;exports.formatSeriesAllSeries=Z;exports.formatSeriesApplyTo=U;exports.formatSeriesColor=_;exports.formatSeriesShowLabels=$;exports.formatTitle=X;exports.formatTitleApplyTo=O;exports.formatTitleChartSubtitle=j;exports.formatTitleChartTitle=Y;exports.formatTitleColor=K;exports.formatTitleFont=q;exports.formatTitleFontPlaceholder=H;exports.formatTitleLabel=E;exports.formatTitleSize=I;exports.formatTitleSizePlaceholder=J;exports.formatValueAxis=kt;exports.formatValueAxisLabels=Xt;exports.formatValueAxisLabelsColor=Qt;exports.formatValueAxisLabelsFont=Ht;exports.formatValueAxisLabelsFontPlaceholder=It;exports.formatValueAxisLabelsFormat=Ot;exports.formatValueAxisLabelsFormatCurrency=Et;exports.formatValueAxisLabelsFormatNumber=jt;exports.formatValueAxisLabelsFormatPercent=qt;exports.formatValueAxisLabelsFormatText=Yt;exports.formatValueAxisLabelsRotation=Ut;exports.formatValueAxisLabelsRotationAuto=Zt;exports.formatValueAxisLabelsSize=Jt;exports.formatValueAxisLabelsSizePlaceholder=Kt;exports.formatValueAxisTitle=vt;exports.formatValueAxisTitleColor=Nt;exports.formatValueAxisTitleFont=wt;exports.formatValueAxisTitleFontPlaceholder=Mt;exports.formatValueAxisTitlePlaceholder=Rt;exports.formatValueAxisTitleSize=Gt;exports.formatValueAxisTitleSizePlaceholder=Dt;exports.formatXAxis=dt;exports.formatYAxis=Bt;exports.lineChart=g;exports.lineChart100StackedLine=W;exports.lineChartLine=z;exports.lineChartStackedLine=b;exports.messages=_t;exports.pieChart=f;exports.pieChartPie=d;exports.scatterChart=L;exports.scatterChartScatter=T;exports.tabChart=i;exports.tabData=l;exports.tabFormat=s;exports.windowTitle=t;
|