@progress/kendo-react-charts 9.0.0-develop.7 → 9.0.0-develop.9
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/ChartNoDataOverlay.js +8 -0
- package/ChartNoDataOverlay.mjs +20 -0
- package/dist/cdn/js/kendo-react-charts.js +1 -1
- package/index.d.mts +24 -0
- package/index.d.ts +24 -0
- package/index.js +1 -1
- package/index.mjs +213 -211
- package/messages.js +8 -0
- package/messages.mjs +15 -0
- package/package-metadata.mjs +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-common"),n=require("./messages.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=u(l),c=e=>{const t=s.useLocalization();return o.createElement("div",{className:i.classNames("k-chart-overlay",e.className),style:{display:"none",...e.style}},o.createElement("div",{className:"k-no-data"},e.children===void 0?t.toLanguageString(n.nodata,n.messages[n.nodata]):e.children))};c.displayName="ChartNoDataOverlay";exports.ChartNoDataOverlay=c;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import { useLocalization as l } from "@progress/kendo-react-intl";
|
|
11
|
+
import { classNames as r } from "@progress/kendo-react-common";
|
|
12
|
+
import { nodata as t, messages as s } from "./messages.mjs";
|
|
13
|
+
const i = (a) => {
|
|
14
|
+
const o = l();
|
|
15
|
+
return /* @__PURE__ */ e.createElement("div", { className: r("k-chart-overlay", a.className), style: { display: "none", ...a.style } }, /* @__PURE__ */ e.createElement("div", { className: "k-no-data" }, a.children === void 0 ? o.toLanguageString(t, s[t]) : a.children));
|
|
16
|
+
};
|
|
17
|
+
i.displayName = "ChartNoDataOverlay";
|
|
18
|
+
export {
|
|
19
|
+
i as ChartNoDataOverlay
|
|
20
|
+
};
|
|
@@ -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("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-charts"),require("@progress/kendo-react-common"),require("@progress/kendo-react-popup"),require("@progress/kendo-react-layout"),require("@progress/kendo-svg-icons")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-intl","@progress/kendo-charts","@progress/kendo-react-common","@progress/kendo-react-popup","@progress/kendo-react-layout","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactCharts={},e.React,e.PropTypes,e.KendoReactIntl,e.KendoCharts,e.KendoReactCommon,e.KendoReactPopup,e.KendoReactLayout,e.KendoSvgIcons)}(this,(function(e,t,r,s,a,n,o,i,l){"use strict";function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var h=c(t);function d(e,t){let r=e;for(;r&&r!==t;)r=r.parentNode;return!!r}function p(e,t,r,s){const a=e[t];if(a&&Array.isArray(a))for(const e of a)if(!e.type||e.type!==s)return new Error(`${r} children should be Array of type ${s.displayName}.`);return null}const u=e=>void 0!==e&&!e;let m=class{constructor(e){this.target=e}},v=class extends m{constructor(e,t){super(t),this.axis=e.axis,this.dataItem=e.dataItem,this.index=e.index,this.text=e.text,this.value=e.value}},y=class extends m{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},g=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},C=class extends m{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},f=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},b=class extends m{constructor(e,t){super(t),this.value=e.value,this.point=e.point,this.series=e.series,this.currentState=e.currentState,this.nextState=e.nextState}},x=class extends y{constructor(e,t){super(t),this.series=e.series,this.seriesIndex=e.seriesIndex,this.pointIndex=e.pointIndex,this.text=e.text}preventDefault(){super.preventDefault()}},S=class extends y{constructor(e,t){super(t),this.series=e.series,this.seriesIndex=e.seriesIndex,this.pointIndex=e.pointIndex,this.text=e.text}preventDefault(){super.preventDefault()}},E=class extends m{constructor(e,t){super(t),this.from=e.from,this.to=e.to}},k=class extends m{constructor(e,t){super(t),this.category=e.category,this.dataItem=e.dataItem,this.series=e.series,this.value=e.value,this.visual=e.visual}},I=class extends m{constructor(e,t){super(t),this.category=e.category,this.dataItem=e.dataItem,this.series=e.series,this.value=e.value,this.visual=e.visual}},w=class extends m{constructor(e,t){super(t),this.category=e.category,this.nativeEvent=e.originalEvent,this.value=e.value,this.x=e.x,this.y=e.y}},N=class extends m{constructor(e,t){super(t),this.category=e.category,this.nativeEvent=e.originalEvent,this.value=e.value,this.x=e.x,this.y=e.y}},_=class extends m{constructor(e,t){super(t)}},D=class extends y{constructor(e,t){super(t),this.axis=e.axis,this.from=e.from,this.to=e.to}},T=class extends m{constructor(e,t){super(t),this.axis=e.axis,this.from=e.from,this.to=e.to}},A=class extends y{constructor(e,t){super(t),this.axis=e.axis,this.from=e.from,this.to=e.to}},K=class extends m{constructor(e,t){super(t),this.category=e.category,this.dataItem=e.dataItem,this.nativeEvent=e.originalEvent,this.percentage=e.percentage,this.point=e.point,this.series=e.series,this.stackValue=e.stackValue,this.value=e.value}},O=class extends y{constructor(e,t){super(t),this.category=e.category,this.categoryPoints=e.categoryPoints,this.dataItem=e.dataItem,this.nativeEvent=e.originalEvent,this.percentage=e.percentage,this.point=e.point,this.series=e.series,this.stackValue=e.stackValue,this.value=e.value}},L=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.delta=e.delta,this.nativeEvent=e.originalEvent}},R=class extends m{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},P=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}};const F={axisLabelClick:v,drag:g,dragEnd:C,dragStart:f,drilldownEvent:b,legendItemHover:x,legendItemClick:S,legendItemLeave:class extends y{constructor(e,t){super(t),this.series=e.series,this.seriesIndex=e.seriesIndex,this.pointIndex=e.pointIndex,this.text=e.text}preventDefault(){super.preventDefault()}},navigatorFilter:E,noteClick:k,noteHover:I,plotAreaClick:w,plotAreaHover:N,render:_,select:D,selectEnd:T,selectStart:A,seriesClick:K,seriesHover:O,zoom:L,zoomEnd:R,zoomStart:P};let q=class{constructor(e,t){this.sender=e,this.syntheticEvent=t}};function j(e,t){return new q(e,t)}const V=e=>`${e.fontWeight} ${e.fontSize} ${e.fontFamily}`,H=e=>window.getComputedStyle(e).backgroundColor,M=`\n <div class="k-var--primary"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n ${(()=>{let e='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n';for(let t=0;t<30;t++)e+=`\n <div class="k-var--series-${t+1}"></div>`;return e})()}\n </div>\n`;class U{constructor(e){this.store=e}setStyle(e,t){this.store.dispatch({type:"set",payload:{field:e,value:t}})}setColors(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color"),this.mapColor("subtitle.color","normal-text-color");const e=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(e)||(this.setStyle("seriesDefaults.area.opacity",e),this.setStyle("seriesDefaults.radarArea.opacity",e),this.setStyle("seriesDefaults.verticalArea.opacity",e),this.setStyle("seriesDefaults.labels.opacity",e)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}setFonts(){const e=V(this.queryStyle("chart-font")),t=V(this.queryStyle("chart-title-font")),r=V(this.queryStyle("chart-pane-title-font")),s=V(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",s),this.setStyle("axisDefaults.notes.label.font",e),this.setStyle("axisDefaults.title.font",e),this.setStyle("legend.labels.font",e),this.setStyle("seriesDefaults.labels.font",s),this.setStyle("seriesDefaults.notes.label.font",e),this.setStyle("title.font",t),this.setStyle("subtitle.font",r),this.setStyle("paneDefaults.title.font",r)}setSeriesColors(){const e=this.element,t=[].slice.call(e.querySelectorAll(".k-var--series div")),r=H(e.querySelector(".k-var--series-unset")),s=t.reduce(((e,t)=>{const s=(e=>{const t=e.match(/series-([a-z])$/);if(null!==t)return(e=>e.toLowerCase().charCodeAt(0)-97)(t[1]);const r=e.split("--series-")[1];return parseInt(r,10)-1})(t.className),a=H(t);return a!==r&&(e[s]=a),e}),[]);this.setStyle("seriesColors",s)}mapColor(e,t){this.setStyle(e,this.queryStyle(t).backgroundColor)}queryStyle(e){const t=this.element;return window.getComputedStyle(t.querySelector(`.k-var--${e}`))}setInactiveOpacity(e,t){const r=parseFloat(this.queryStyle(t).opacity);!isNaN(r)&&r<1&&e.forEach((e=>this.setStyle(`seriesDefaults.${e}.highlight.inactiveOpacity`,r)))}}const z=e=>{let t,r,s=[];const a=a=>{t=e(t,a),n.canUseDOM&&(window.clearTimeout(r),r=window.setTimeout((()=>s.forEach((e=>e()))),16.666666666666668))};return a({}),{getState:()=>t,dispatch:a,subscribe:e=>(s.push(e),()=>s=s.filter((t=>t!==e)))}},B=(e,t)=>t.chartCollectionIdxKey?X.collectionConfigurationItem(e,t):t.chartKey?X.configurationItem(e,t):{},$=(e,t)=>{if(!t.type)return{};switch(t.type){case"set":return X.themeItem(e,t);case"push":return Object.assign(e,t.payload);default:return e}},W=(e,t)=>{if(!t.type)return[];switch(t.type){case"add":return[...e,t.payload];case"remove":return e.filter((e=>e!==t.payload));default:return e}},X={configurationItem:(e,t)=>Object.assign(e,{[t.chartKey]:t.payload}),collectionConfigurationItem(e,t){let r=!1;const[s,a]=t.chartCollectionIdxKey.split("_"),n=e[s].map(((e,s)=>parseInt(a,10)===s?(r=!0,t.payload):e));return!1===r&&n.splice(parseInt(a,10),0,t.payload),Object.assign(e,{[s]:n})},themeItem(e,t){let r={};const s=Object.assign(r,e),{field:a,value:n}=t.payload,o=a.split(".");let i=o.shift();for(;o.length>0;)r=r[i]=r[i]||{},i=o.shift();return r[i]=n,s}};let Y=class{constructor(e,t){this.value=e.value,this.category=e.category,this.categoryIndex=e.categoryIx,this.series=e.series,this.dataItem=e.dataItem,this.percentage=e.percentage,this.runningTotal=e.runningTotal,this.total=e.total,this.low=e.low,this.high=e.high,this.xLow=e.xLow,this.xHigh=e.xHigh,this.yLow=e.yLow,this.yHigh=e.yHigh,this.point=e,this.format=((e.options||{}).tooltip||{}).format||t}get formattedValue(){return this.format?this.point.formatValue(this.format):String(this.value)}};const Z=e=>{const{categoryText:t,colorMarker:r,colspan:s,nameColumn:a,points:n}=e;return h.createElement("table",null,h.createElement("thead",null,h.createElement("tr",null,h.createElement("th",{colSpan:s},t))),h.createElement("tbody",null,n.map(((e,t)=>h.createElement("tr",{key:t},r&&h.createElement("td",null,h.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:e.series.color}})),a&&h.createElement("td",null,e.series.name),h.createElement("td",{dangerouslySetInnerHTML:{__html:e.formattedValue}}))))))},G=h.createContext(null);G.displayName="ChartContext";const J={horizontal:"fit",vertical:"fit"},Q="k-chart-tooltip",ee=class extends h.Component{constructor(e,t){super(e,t),this.context=null,this.element=null,this.onChartMouseLeave=e=>{const{syntheticEvent:t}=e;return!!d(t.relatedTarget,this.element)},this.onMouseLeave=e=>{const t=j(this,e);this.context.childrenObserver.trigger("onMouseLeave",t)&&e.preventDefault()},this.popupRef=e=>{this.element=e;const t=e&&e.closest(".k-animation-container");t&&(t.style.transition="initial")},this.chartObserver=new a.InstanceObserver(this,{onMouseLeave:"onChartMouseLeave"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupShown:e,popupAlign:t,popupOffset:r,popupStyles:s,popupContent:a,className:n}=this.props,i=[Q,n].join(" ").trim();return h.createElement(o.Popup,{animate:!1,popupAlign:t,offset:r,show:e,collision:J,className:"k-chart-tooltip-wrapper"},h.createElement("div",{className:i,style:s,onMouseLeave:this.onMouseLeave,ref:this.popupRef},a()))}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})}};ee.contextType=G;let te=ee;const re=class extends h.Component{constructor(){super(...arguments),this.context=null,this.state={popupShown:!1},this.chartObserver=null}componentDidMount(){this.chartObserver=new a.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupContext:e,shared:t,className:r,...s}=this.state,a=this.state.popupShown?()=>{const r=this.findRenderFunction();if(t)return null!==r?r(e):h.createElement(Z,{...e});const s=e.point,a=this.findRenderFunctionByIndex(s.series.index);return null!==a?a(e):null!==r?r(e):h.createElement("span",{dangerouslySetInnerHTML:{__html:e.point.formattedValue}})}:Function.prototype,o=n.classNames({"k-chart-shared-tooltip":t,"k-chart-tooltip-inverse":!!r});return h.createElement(te,{...s,popupContent:a,className:o})}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})}onShowTooltip(e){const{anchor:t,style:r,shared:s,className:a,crosshair:n}=e;let o;n||(o=s?this.createSharedTooltipContext(e):this.createTooltipContext(e),this.setState({popupShown:!0,popupAlign:t.align,popupOffset:t.point,popupContext:o,popupStyles:r,className:a,shared:s}))}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}createSharedTooltipContext(e){const{points:t,categoryText:r}=e,s=t.filter((e=>void 0!==e.series.name)).length>0,a=e.series.length>1;let n=1;return s&&n++,a&&n++,{categoryText:r,colorMarker:a,colspan:n,nameColumn:s,points:e.points.map((t=>new Y(t,e.format)))}}createTooltipContext(e){const{point:t,format:r}=e;return{point:new Y(t,r)}}findRenderFunctionByIndex(e){const t=this.context.optionsStore.getState().series;return void 0!==t&&Array.isArray(t)&&void 0!==t[e]&&t[e].hasOwnProperty("tooltip")&&t[e].tooltip.hasOwnProperty("render")?t[e].tooltip.render:null}findRenderFunction(){const e=this.context.optionsStore.getState().tooltip;return void 0!==e&&e.hasOwnProperty("render")?e.render:null}};re.contextType=G;let se=re;const ae=e=>e.children;ae.displayName="Container";const ne=class extends h.Component{constructor(e,t){super(e,t),this.context=null,this.state={popupShown:!1},this.chartObserver=new a.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupContend:e,className:t,...r}=this.state,s=this.state.popupShown?()=>e:Function.prototype,a=n.classNames({"k-chart-crosshair-tooltip":!0,"k-chart-tooltip-inverse":!!t});return h.createElement(te,{...r,popupContent:s,className:a})}componentWillUnmount(){var e;null==(e=this.context)||e.observersStore.dispatch({type:"remove",payload:this.chartObserver})}onShowTooltip(e){const{anchor:t,style:r,className:s,crosshair:a,axisName:n,axisIndex:o,value:i}=e,{name:l,index:c}=this.props;a&&n===l&&o===c&&this.setState({popupShown:!0,popupAlign:t.align,popupOffset:t.point,popupContend:i,popupStyles:r,className:s})}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}};ne.contextType=G;let oe=ne;const ie=["categoryAxis","valueAxis","xAxis","yAxis"];function le(e){const t={};for(let r=0;r<ie.length;r++){const s=ce(e,ie[r]);for(let e=0;e<s.length;e++){const r=s[e];t[r.name+r.index]=r}}return t}function ce(e,t){const r=[];if(e[t]){const s=[].concat(e[t]);for(let e=0;e<s.length;e++){const a=(s[e].crosshair||{}).tooltip;a&&a.visible&&r.push({index:e,name:t})}}return r}const he=class extends h.Component{constructor(){super(...arguments),this.context=null,this.state={tooltips:{}},this.storeUnsubscriber=Function.prototype,this.subscriber=()=>{var e;this.setState({tooltips:le(null==(e=this.context)?void 0:e.optionsStore.getState())})}}componentDidMount(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)}render(){const{tooltips:e}=this.state,t=Object.keys(e).map((t=>h.createElement(oe,{...e[t],key:t})));return h.createElement(ae,null,t)}componentWillUnmount(){this.storeUnsubscriber()}};he.contextType=G;let de=he;const pe={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},ue=class extends h.Component{constructor(e){super(e),this.chartInstance=null,this.surface=null,this._element=null,this.optionsStore={},this.optionsUnsubscriber=Function.prototype,this.themeStore={},this.themeUnsubscriber=Function.prototype,this.observersStore={},this.suppressTransitions=!1,this.showLicenseWatermark=!1,this.onRender=e=>{null!==this.chartInstance&&(this.surface=e.sender.surface,this.trigger("render",e))},this.onDrilldown=e=>{var t;const{series:r}=this.optionsStore.getState(),s=r.find((t=>t.name===e.series.name));if(!s.drilldownSeriesFactory)return!0;const a="onDrilldown";if(this.props.hasOwnProperty(a)){const r={seriesName:s.name,drilldownValue:e.value},n=[...(null==(t=this.props.drilldownState)?void 0:t.steps)||[],r],o=this.props.getTarget(),i={...e,currentState:this.props.drilldownState,nextState:{steps:n}},l=new b(i,o);this.props[a].call(void 0,l)}return!0},this.onLegendItemClick=e=>{if(null!==this.chartInstance)if(this.props.onLegendItemClick)this.trigger("legendItemClick",e);else{const{series:t}=this.optionsStore.getState();if(!t)return;let r={};const{seriesIndex:s,pointIndex:a}=e,n=t[s];if(void 0===a)r=Object.assign({},n,{visible:u(n.visible)});else{const e=n.pointVisibility=n.pointVisibility||[];e[a]=u(e[a]),r=Object.assign({},n)}this.optionsStore.dispatch({chartCollectionIdxKey:`series_${s}`,payload:r}),this.suppressTransitions=!0}},this.onWindowResize=()=>{null!==this.chartInstance&&this.chartInstance.resize()},this.onChartMouseLeave=e=>{const t=j(this,e);this.triggerDomEvent("onMouseLeave",t)?e.preventDefault():null!==this.chartInstance&&this.chartInstance.hideElements()},this.onChildMouseLeave=e=>{const{syntheticEvent:t}=e;return this.chartInstance&&!d(t.relatedTarget,this.element)&&this.chartInstance.hideElements(),!1},n.validatePackage(pe),this.showLicenseWatermark=n.shouldShowValidationUI(pe),this.optionsStore=z(B),this.observersStore=z(W),this.childrenObserver=new a.InstanceObserver(this,{onMouseLeave:"onChildMouseLeave"}),this.state={optionsStore:this.optionsStore,observersStore:this.observersStore,childrenObserver:this.childrenObserver,drilldownState:{steps:[]}},this.themeStore=z($),this.chartObserver=new a.InstanceObserver(this,{render:"onRender",legendItemClick:"onLegendItemClick",drilldown:"onDrilldown"})}get element(){return this._element}static getDerivedStateFromProps(e,t){return{...t,drilldownState:e.drilldownState||[]}}componentDidMount(){var e;const t=(null==(e=this._element)?void 0:e.ownerDocument)||document;((e,t,r)=>{const s=new U(e);if(void 0===r)return void e.dispatch({type:"push",payload:a.chartBaseTheme()});const n=s.element=r.createElement("div");n.style.display="none",n.innerHTML=M,r.body.appendChild(n);try{e.dispatch({type:"push",payload:a.chartBaseTheme()}),s.setColors(),s.setFonts(),s.setSeriesColors()}finally{r.body.removeChild(s.element),delete s.element,t()}})(this.themeStore,this.instantiateCoreChart.bind(this),t),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this)),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)}componentWillUnmount(){this.optionsUnsubscriber(),this.themeUnsubscriber(),null!==this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),window.removeEventListener("resize",this.onWindowResize)}componentDidUpdate(e){const{dir:t,children:r,...a}=this.props;if(null!==this.chartInstance){const r=s.provideIntlService(this),n=this.chartInstance.chartService,o=r.locale!==n._intlService.locale,i=Object.entries(e).filter((e=>"dir"!==e[0]&&"children"!==e[0])).some((e=>{const[t,r]=e;return!(a.hasOwnProperty(t)&&a[t]===r)}));o&&(this.chartInstance.chartService._intlService=r,this.chartInstance.chartService.format._intlService=r,i||this.chartInstance.noTransitionsRedraw()),i&&this.refresh(),e.dir!==t&&this.chartInstance.setDirection(this.getDirection(t))}}render(){const{style:e={},className:t,wrapper:r,children:s}=this.props,a=Object.assign({},e,{position:"relative"}),o=h.createElement(r,{className:t,style:a,key:"chartElement"},h.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:e=>this._element=e,className:"k-chart-surface"},s),h.createElement(h.Fragment,null,this.showLicenseWatermark&&h.createElement(n.WatermarkOverlay,null)));return h.createElement(G.Provider,{value:this.state},h.createElement(se,{key:"seriesTooltip"}),h.createElement(de,{key:"crosshairTooltips"}),o)}getDirection(e){return"rtl"===(void 0!==e?e:n.canUseDOM&&window.getComputedStyle(this.element).direction||"ltr")}getChartOptions(){const{renderAs:e,pannable:t,zoomable:r,paneDefaults:s,panes:a,transitions:n,seriesColors:o,seriesDefaults:i,axisDefaults:l,deriveOptionsFromParent:c}=this.props;let h={};return void 0!==e&&(h.renderAs=e),void 0!==t&&(h.pannable=t),void 0!==r&&(h.zoomable=r),void 0!==s&&(h.paneDefaults=s),void 0!==a&&(h.panes=a),void 0!==n&&(h.transitions=n),void 0!==o&&(h.seriesColors=o),void 0!==i&&(h.seriesDefaults=i),void 0!==l&&(h.axisDefaults=l),h=Object.assign(h,this.optionsStore.getState()),c&&(h=c(h)),h}refresh(){if(null!==this.chartInstance){const e=this.themeStore.getState(),t=this.getChartOptions(),r=t.transitions;this.suppressTransitions&&(t.transitions=!1),this.props.onRefresh?this.props.onRefresh.call(void 0,t,e,this.chartInstance):this.chartInstance.setOptions(t,e),this.suppressTransitions&&(t.transitions=r,this.suppressTransitions=!1)}}instantiateCoreChart(){const{dir:e,chartConstructor:t}=this.props,r=this.getChartOptions();this.chartInstance=new t(this.element,r,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:s.provideIntlService(this),observer:this.chartObserver,sender:this})}trigger(e,t){const r=function(e,t,r){if(F[e])return new F[e](t,r)}(e,t,this.props.getTarget()),s="on"+e.charAt(0).toUpperCase()+e.slice(1),a=this.observersStore.getState();let n=!1;for(let r=0;r<a.length;r++)a[r].trigger(e,t)&&(n=!0);return!1===n&&r&&this.props.hasOwnProperty(s)?(this.props[s].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):n}requiresHandlers(e){for(let t=0;t<e.length;t++){const r=e[t],s="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(s))return!0}return!1}triggerDomEvent(e,t){const r=this.observersStore.getState();let s=!1;for(let a=0;a<r.length;a++)r[a].trigger(e,t)&&(s=!0);return s}};ue.propTypes={dir:r.string,renderAs:r.oneOf(["svg","canvas"])},ue.defaultProps={renderAs:"svg"};let me=ue;s.registerForIntl(me);const ve=class extends h.Component{constructor(e,t){super(e,t),this.context=null,this.state={donutCenterStyles:null},this.chartObserver=new a.InstanceObserver(this,{render:"onRender"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{render:e}=this.props,{donutCenterStyles:t}=this.state;let r=null;return e&&t&&(r=h.createElement("div",{className:"k-chart-donut-center",style:t},h.createElement(e,null))),r}onRender(e){var t;const r=null==(t=this.context)?void 0:t.optionsStore.getState().series,s=Array.isArray(r)?r[0]:null,a=e.sender._plotArea.charts;if(!s||"donut"!==s.type||0===a[0].points.length)return;const n=a[0].points[0].sector,o=n.innerRadius,i=n.center.y-o,l=n.center.x-o,c=2*o;this.setState({donutCenterStyles:{height:c,left:l,top:i,width:c}})}};ve.contextType=G;let ye=ve,ge=class extends h.Component{constructor(){super(...arguments),this._baseChart=null,this.getTarget=()=>this}get chartInstance(){return null!==this._baseChart?this._baseChart.chartInstance:null}get surface(){return null!==this._baseChart?this._baseChart.surface:null}get element(){return null!==this._baseChart?this._baseChart.element:null}render(){const{donutCenterRender:e,children:t,className:r,...s}=this.props;return h.createElement(me,{...s,ref:e=>this._baseChart=e,chartConstructor:a.Chart,getTarget:this.getTarget,wrapper:"div",className:n.classNames("k-chart k-widget",r)},t,h.createElement(ye,{render:e}))}},Ce=class extends h.Component{constructor(){super(...arguments),this._baseChart=null,this.deriveOptionsFromParent=e=>{const{type:t,data:r}=this.props,s=Object.assign({},e,{type:t,data:r});return a.Sparkline.normalizeOptions(s)},this.getTarget=()=>this}get chartInstance(){return null!==this._baseChart?this._baseChart.chartInstance:null}get surface(){return null!==this._baseChart?this._baseChart.surface:null}get element(){return null!==this._baseChart?this._baseChart.element:null}render(){const{children:e,type:t,className:r,...s}=this.props;return h.createElement(me,{...s,ref:e=>this._baseChart=e,chartConstructor:a.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:n.classNames("k-sparkline k-widget",r)},e)}};const fe={autoBindElements:!0,liveDrag:!1,partialRedraw:!0};let be=class extends h.Component{constructor(){super(...arguments),this._baseChart=null,this.deriveOptionsFromParent=e=>{const t=Object.assign({},e.navigator||{},fe);return Object.assign({},e,{navigator:t})},this.onRefresh=(e,t,r)=>{this.props.partialRedraw?(r.applyOptions(e),r.bindCategories(),r.navigator.redrawSlaves()):r.setOptions(e,t)},this.getTarget=()=>this}get chartInstance(){return null!==this._baseChart?this._baseChart.chartInstance:null}get surface(){return null!==this._baseChart?this._baseChart.surface:null}get element(){return null!==this._baseChart?this._baseChart.element:null}render(){const{children:e,className:t,...r}=this.props;return h.createElement(me,{...r,ref:e=>this._baseChart=e,chartConstructor:a.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:n.classNames("k-stockchart k-widget",t)},e)}};const xe=class extends h.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore}renderChildren(e,t){const{children:r}=e.props,{_chartKey:s,_parentStore:a}=this.props,n={...e.props,_chartCollectionIdxKey:`${s}_${t}`,_parentStore:a};return h.cloneElement(e,n,r)}render(){const{_chartKey:e,_parentStore:t,children:r}=this.props;return(t||this.optionsStore).dispatch({chartKey:e,payload:[]}),h.Children.map(r,((e,t)=>h.isValidElement(e)?this.renderChildren(e,t):e))}};xe.contextType=G;let Se=xe;const Ee=class extends h.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore,this.childStore=z(B)}render(){const{children:e}=this.props;return void 0!==e?h.Children.map(e,(e=>h.isValidElement(e)?this.renderChildren(e):e)):null}componentDidMount(){this.dispatch()}componentDidUpdate(){this.dispatch()}dispatch(){const{_chartKey:e,_chartCollectionIdxKey:t,_parentStore:r,children:s,...a}=this.props;(r||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:t,payload:Object.assign({},a,this.childStore.getState())})}renderChildren(e){const{children:t}=e.props,r={...e.props,_parentStore:this.childStore};return h.cloneElement(e,r,t)}};Ee.contextType=G;let ke=Ee,Ie=class{constructor(e){this.currentState=e.currentState,this.nextState=e.nextState}};const we=h.forwardRef(((e,t)=>{const r=h.useRef(null),s=h.useRef(null),a={valueField:_e.valueField,textField:_e.textField,iconField:_e.iconField,iconClassField:_e.iconClassField,...e};h.useImperativeHandle(r,(()=>({element:s.current,props:a}))),h.useImperativeHandle(t,(()=>r.current));let o=[{id:"0",...e.rootItem||{text:"Home",icon:h.createElement(n.SvgIcon,{icon:l.homeIcon,style:{marginInlineEnd:"4px"}})}}];e.drilldownState&&(o=[...o,...e.drilldownState.steps.map(((e,t)=>({id:(t+1).toString(),text:e.drilldownValue})))]);const c={...a,data:o};return h.createElement("div",null,h.createElement(i.Breadcrumb,{...c,onItemSelect:t=>{var r;const s="onDrilldownStateChange";if(e.hasOwnProperty(s)){const a=o.findIndex((e=>e.id===t.id)),n={steps:((null==(r=e.drilldownState)?void 0:r.steps)||[]).slice(0,a)},i=new Ie({currentState:e.drilldownState,nextState:n});e[s].call(void 0,i)}}}))})),Ne={id:r.string,style:r.object,className:r.string,breadcrumbOrderedList:r.elementType,breadcrumbListItem:r.elementType,breadcrumbDelimiter:r.elementType,breadcrumbLink:r.elementType,dir:r.oneOf(["ltr","rtl"]),disabled:r.bool,valueField:r.string,textField:r.string,iconField:r.string,iconClassField:r.string,onItemSelect:r.func,ariaLabel:r.string,onDrilldownStateChange:r.func,drilldownState:r.shape({steps:r.array}),rootItem:r.object},_e={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass",data:[]};we.displayName="KendoReactChartBreadcrumb",we.propTypes=Ne;const De=e=>h.createElement(ke,{...e,_chartKey:"title"});De.displayName="ChartAxisDefaultsTitle";const Te=e=>h.createElement(ke,{...e,_chartKey:"labels"});Te.displayName="ChartAxisDefaultsLabels";const Ae=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"});Ae.displayName="ChartAxisDefaultsCrosshair";const Ke=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"});Ke.displayName="ChartAxisDefaultsCrosshairTooltip";const Oe=e=>h.createElement(ke,{...e,_chartKey:"title"});Oe.displayName="ChartCategoryAxisTitle";const Le=e=>h.createElement(ke,{...e,_chartKey:"title"});Le.displayName="ChartPaneDefaultsTitle";const Re=e=>h.createElement(ke,{...e,_chartKey:"item"});Re.displayName="ChartLegendItem";const Pe=e=>h.createElement(ke,{...e,_chartKey:"title"});Pe.displayName="ChartLegendTitle";const Fe=e=>h.createElement(ke,{...e,_chartKey:"inactiveItems"});Fe.displayName="ChartLegendInactiveItems";const qe=e=>h.createElement(ke,{...e,_chartKey:"title"});qe.displayName="ChartValueAxisTitle";const je=e=>h.createElement(ke,{...e,_chartKey:"title"});je.displayName="ChartXAxisTitle";const Ve=e=>h.createElement(ke,{...e,_chartKey:"title"});Ve.displayName="ChartYAxisTitle";const He=e=>h.createElement(ke,{...e,_chartKey:"categoryAxis"});He.displayName="ChartNavigatorCategoryAxis";const Me=e=>h.createElement(ke,{...e,_chartKey:"pane"});Me.displayName="ChartNavigatorPane";const Ue=e=>h.createElement(ke,{...e});Ue.displayName="ChartNavigatorSeriesItem";const ze=e=>h.createElement(Se,{...e,_chartKey:"series"});ze.propTypes={children:function(e,t,r){return p(e,t,r,Ue)}};const Be=e=>h.createElement(ke,{...e,_chartKey:"chartArea"});Be.displayName="ChartArea";const $e=e=>h.createElement(ke,{...e});$e.displayName="ChartCategoryAxisItem";const We=e=>h.createElement(Se,{...e,_chartKey:"categoryAxis"});We.propTypes={children:function(e,t,r){return p(e,t,r,$e)}},We.displayName="ChartCategoryAxis";const Xe=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"legend"});Xe.displayName="ChartLegend";const Ye=e=>h.createElement(ke,{visible:!0,position:"bottom",...e,_chartKey:"navigator"});Ye.displayName="ChartNavigator";const Ze=e=>h.createElement(ke,{...e});Ze.displayName="ChartPane";const Ge=e=>h.createElement(ke,{...e,_chartKey:"paneDefaults"});Ge.displayName="ChartPaneDefaults";const Je=e=>h.createElement(Se,{...e,_chartKey:"panes"});Je.propTypes={children:function(e,t,r){return p(e,t,r,Ze)}};const Qe=e=>{let t=e=>h.createElement(h.Fragment,null);e.drilldownSeriesFactory&&(t=e.drilldownSeriesFactory);const r=t=>{var r,s;return t&&(null==(s=null==(r=t.drilldownState)?void 0:r.steps)?void 0:s.find((({seriesName:t})=>t===e.name)))};return h.createElement(G.Consumer,null,(s=>r(s)?h.createElement(t,{_chartCollectionIdxKey:e._chartCollectionIdxKey,drilldownValue:r(s).drilldownValue}):h.createElement(ke,{...e})))};Qe.displayName="ChartSeriesItem";const et=e=>h.createElement(Se,{...e,_chartKey:"series"});et.propTypes={children:function(e,t,r){return p(e,t,r,Qe)}},et.displayName="ChartSeries";const tt=e=>h.createElement(ke,{...e,_chartKey:"subtitle"});tt.displayName="ChartSubtitle";const rt=e=>h.createElement(ke,{...e,_chartKey:"title"});rt.displayName="ChartTitle";const st=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"});st.displayName="ChartTooltip";const at=e=>h.createElement(ke,{...e});at.displayName="ChartValueAxisItem";const nt=e=>h.createElement(Se,{...e,_chartKey:"valueAxis"});nt.propTypes={children:function(e,t,r){return p(e,t,r,at)}},nt.displayName="ChartValueAxis";const ot=e=>h.createElement(ke,{...e});ot.displayName="ChartXAxisItem";const it=e=>h.createElement(Se,{...e,_chartKey:"xAxis"});it.prototype={children:function(e,t,r){return p(e,t,r,ot)}},it.displayName="ChartXAxis";const lt=e=>h.createElement(ke,{...e});lt.displayName="ChartYAxisItem";const ct=e=>h.createElement(Se,{...e,_chartKey:"yAxis"});ct.propTypes={children:function(e,t,r){return p(e,t,r,lt)}},ct.displayName="ChartYAxis";const ht=e=>`${e.fontWeight} ${e.fontSize} ${e.fontFamily}`,dt=e=>window.getComputedStyle(e).backgroundColor,pt=`\n <div class="k-var--background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--kendo-color-subtle"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n </div>\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n ${(()=>{let e='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n';for(let t=0;t<30;t++)e+=`\n <div class="k-var--series-${t+1}"></div>`;return e})()}\n </div>\n`;let ut=class{constructor(e){this.store=e}setStyle(e,t){const r=e.split(".");let s=this.store;r.forEach(((e,t,r)=>{t<r.length-1&&(s=s[e]=s[e]||{})}));const a=r.pop();a&&(s[a]=t)}setColors(){this.mapColor("labels.color","normal-text-color"),this.mapColor("labels.stroke.color","background");this.element.querySelector(".k-var--kendo-color-subtle").style.color="var(--kendo-color-subtle)",this.mapColor("links.color","kendo-color-subtle","color"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("title.color","normal-text-color")}setFonts(){const e=ht(this.queryStyle("chart-title-font")),t=ht(this.queryStyle("chart-font"));this.setStyle("title.font",e),this.setStyle("labels.font",t),this.setStyle("legend.labels.font",t)}setNodeColors(){const e=this.element;if(!e)return;const t=[].slice.call(e.querySelectorAll(".k-var--series div")),r=dt(e.querySelector(".k-var--series-unset")),s=t.reduce(((e,t)=>{const s=(e=>{const t=e.match(/series-([a-z])$/);if(null!==t)return(e=>e.toLowerCase().charCodeAt(0)-97)(t[1]);const r=e.split("--series-")[1];return parseInt(r,10)-1})(t.className),a=dt(t);return a!==r&&(e[s]=a),e}),[]);this.setStyle("nodeColors",s)}mapColor(e,t,r="backgroundColor"){this.setStyle(e,this.queryStyle(t)[r])}queryStyle(e){const t=this.element;return window.getComputedStyle(t.querySelector(`.k-var--${e}`))}};const mt=(e,t)=>{const r={nodeColors:[]},s=new ut(r),a=s.element=e.createElement("div");a.style.display="none",a.innerHTML=pt,e.body.appendChild(a);try{s.setColors(),s.setFonts(),s.setNodeColors()}finally{e.body.removeChild(s.element),s.element=null,t(r)}},vt=r.exact({left:r.number,top:r.number}),yt={left:r.number,right:r.number},gt={...yt,top:r.number,bottom:r.number},Ct=r.oneOfType([r.number,r.exact(gt)]),ft=Ct,bt=r.exact({width:r.number,color:r.string,opacity:r.number,dashType:r.string}),xt={visible:r.bool,font:r.string,color:r.string,opacity:r.number,align:r.oneOf(["left","right","center"]),position:r.oneOf(["inside","before","after"]),padding:ft,margin:r.exact(yt),border:bt,offset:vt},St={color:r.string,opacity:r.number,offset:vt,padding:r.number,width:r.number},Et={colorType:r.oneOf(["static","source","target"]),color:r.string,opacity:r.number,highlight:r.exact({opacity:r.number,inactiveOpacity:r.number})},kt=r.exact({text:r.string,...xt}),It=r.exact({id:r.oneOfType([r.string,r.number]).isRequired,label:kt.isRequired,...St}),wt=r.exact({sourceId:r.oneOfType([r.string,r.number]).isRequired,targetId:r.oneOfType([r.string,r.number]).isRequired,value:r.number.isRequired,...Et}),Nt={data:r.exact({nodes:r.arrayOf(It.isRequired).isRequired,links:r.arrayOf(wt.isRequired).isRequired}).isRequired,links:r.exact(Et),nodes:r.exact(St),labels:r.exact(xt),legend:r.exact({align:r.oneOf(["start","center","end"]),background:r.string,border:bt,height:r.number,labels:r.object,margin:Ct,offsetX:r.number,offsetY:r.number,orientation:r.oneOf(["vertical","horizontal"]),padding:ft,position:r.oneOf(["top","bottom","left","right","custom"]),reverse:r.bool,visible:r.bool,width:r.number,item:r.object,title:r.object}),title:r.exact({align:r.oneOf(["center","left","right"]),background:r.string,border:bt,color:r.string,font:r.string,margin:Ct,padding:ft,position:r.oneOf(["top","bottom"]),text:r.string,visible:r.bool}),tooltip:r.exact({visible:r.bool,offset:r.number,followPointer:r.bool,delay:r.number,linkComponent:r.any,nodeComponent:r.any}),className:r.string,style:r.object,dir:r.string,disableAutoLayout:r.bool,disableKeyboardNavigation:r.bool,onNodeEnter:r.func,onNodeLeave:r.func,onLinkEnter:r.func,onLinkLeave:r.func,onNodeClick:r.func,onLinkClick:r.func},_t="sankey.tooltipUnitFormat",Dt={[_t]:"({0} units)"},Tt=e=>{const{Content:t,dir:r,offset:s,event:{tooltipData:a,dataItem:n,nodeValue:o}}=e,i=h.useRef(null);return h.useEffect((()=>{const e=i.current;if(!a||!e)return;const t=e.offsetWidth,r=e.offsetHeight,n={...a.popupOffset},o=a.popupAlign;n.left+="left"===o.horizontal?s:-1*s,"right"===o.horizontal&&(n.left-=t),"bottom"===o.vertical?n.top-=r+s:n.top+=s,e.style.left=`${n.left}px`,e.style.top=`${n.top}px`,e.style.visibility=""}),[a]),h.createElement("div",{ref:i,style:{visibility:"hidden"},dir:r,className:"k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip"},h.createElement("div",{className:"k-tooltip-content"},h.createElement(t,{dir:r,dataItem:n,nodeValue:o})))},At={display:"flex",alignItems:"center"},Kt=e=>h.createElement("div",{style:{width:15,height:15,backgroundColor:e.color,display:"inline-flex",marginLeft:3}}),Ot=e=>h.createElement("span",{style:{margin:"0 3px"}},e.children),Lt=e=>s.useInternationalization().format(s.useLocalization().toLanguageString(_t,Dt[_t]),[e||0]),Rt=e=>{const{color:t,label:r}=e.dataItem;return h.createElement("div",{style:At,className:"k-tooltip-content"},h.createElement(Kt,{color:t}),h.createElement(Ot,null,r.text),h.createElement(Ot,null,Lt(e.nodeValue)))},Pt=e=>{const{source:t,target:r,value:s}=e.dataItem,a="rtl"===e.dir?l.arrowLeftIcon:l.arrowRightIcon;return h.createElement("div",{style:At},h.createElement(Kt,{color:t.color}),h.createElement(Ot,null,t.label.text),h.createElement(n.IconWrap,{icon:a,name:a.name}),h.createElement(Kt,{color:r.color}),h.createElement(Ot,null,r.label.text),h.createElement(Ot,null,Lt(s)))},Ft=12,qt={offset:Ft,visible:!0},jt=["nodeEnter","nodeLeave","linkEnter","linkLeave","nodeClick","linkClick"],Vt=h.forwardRef(((e,t)=>{n.validatePackage(pe);const r=h.useRef(null),s=h.useRef(null),o=n.useRtl(r,e.dir,[e.dir,r.current]),i=h.useRef(null),{data:l,links:c,nodes:d,labels:p,title:u,legend:m,tooltip:v=qt,disableAutoLayout:y,disableKeyboardNavigation:g}=e,C=h.useRef();C.current=e;const[f,b]=h.useState(null),x=h.useCallback((e=>{const{visible:t,offset:r=Ft,nodeComponent:s=Rt,linkComponent:a=Pt}={...qt,...v};if(t){const t={event:e,offset:r,dir:o,Content:"node"===e.targetType?s:a};b(t)}}),[v,o]),S=h.useCallback((()=>{b(null)}),[]),E=h.useCallback(((e,t)=>{const r=C.current[e];if(r){const e={...t,nativeEvent:t.originalEvent,target:i.current};r.call(void 0,e)}}),[]);return h.useEffect((()=>{const e={data:l,links:c,nodes:d,labels:p,title:u,legend:m,disableAutoLayout:y,disableKeyboardNavigation:g,rtl:"rtl"===o,tooltip:{...qt,...v}};return s.current?s.current.setOptions(e):n.canUseDOM&&r.current&&mt(r.current.ownerDocument,(t=>{s.current=new a.Sankey(r.current,e,t),((e,t)=>{e&&(e.unbind(),jt.forEach((r=>{t[r]&&e.bind(r,t[r])})))})(s.current,{nodeEnter:e=>{E("onNodeEnter",e)},nodeLeave:e=>{E("onNodeLeave",e)},linkEnter:e=>{E("onLinkEnter",e)},linkLeave:e=>{E("onLinkLeave",e)},nodeClick:e=>{E("onNodeClick",e)},linkClick:e=>{E("onLinkClick",e)}}),s.current.bind("tooltipShow",x),s.current.bind("tooltipHide",S)})),()=>{s.current&&(s.current.destroy(),s.current=null)}}),[l,c,d,p,u,m,y,g,o,v,S,x,E]),h.useImperativeHandle(i,(()=>({get element(){return r.current},exportVisual:e=>s.current.exportVisual(e),props:e})),[]),h.useImperativeHandle(t,(()=>i.current)),h.createElement(h.Fragment,null,h.createElement("div",{ref:r,className:e.className,style:e.style,dir:o}),f&&h.createElement(Tt,{...f}))}));Vt.propTypes=Nt,Vt.displayName="KendoReactSankey";const Ht=a.createSankeyData;e.AxisLabelClickEvent=v,e.Chart=ge,e.ChartArea=Be,e.ChartAxisDefaults=e=>h.createElement(ke,{...e,_chartKey:"axisDefaults"}),e.ChartAxisDefaultsCrosshair=Ae,e.ChartAxisDefaultsCrosshairTooltip=Ke,e.ChartAxisDefaultsLabels=Te,e.ChartAxisDefaultsTitle=De,e.ChartBreadcrumb=we,e.ChartCategoryAxis=We,e.ChartCategoryAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartCategoryAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartCategoryAxisItem=$e,e.ChartCategoryAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartCategoryAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartCategoryAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartCategoryAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartCategoryAxisRangeLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"rangeLabels"}),e.ChartCategoryAxisTitle=Oe,e.ChartLegend=Xe,e.ChartLegendInactiveItems=Fe,e.ChartLegendItem=Re,e.ChartLegendTitle=Pe,e.ChartNavigator=Ye,e.ChartNavigatorCategoryAxis=He,e.ChartNavigatorHint=e=>h.createElement(ke,{...e,_chartKey:"hint"}),e.ChartNavigatorPane=Me,e.ChartNavigatorSelect=e=>h.createElement(ke,{...e,_chartKey:"select"}),e.ChartNavigatorSeries=ze,e.ChartNavigatorSeriesItem=Ue,e.ChartPane=Ze,e.ChartPaneDefaults=Ge,e.ChartPaneDefaultsTitle=Le,e.ChartPanes=Je,e.ChartPlotArea=e=>h.createElement(ke,{...e,_chartKey:"plotArea"}),e.ChartSeries=et,e.ChartSeriesDefaults=e=>h.createElement(ke,{...e,_chartKey:"seriesDefaults"}),e.ChartSeriesErrorBars=e=>h.createElement(ke,{...e,_chartKey:"errorBars"}),e.ChartSeriesExtremes=e=>h.createElement(ke,{...e,_chartKey:"extremes"}),e.ChartSeriesHighlight=e=>h.createElement(ke,{...e,_chartKey:"highlight"}),e.ChartSeriesItem=Qe,e.ChartSeriesItemOutliers=e=>h.createElement(ke,{...e,_chartKey:"outliers"}),e.ChartSeriesItemTooltip=e=>h.createElement(ke,{...e,_chartKey:"tooltip"}),e.ChartSeriesLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartSeriesLabelsFrom=e=>h.createElement(ke,{...e,_chartKey:"from"}),e.ChartSeriesLabelsTo=e=>h.createElement(ke,{...e,_chartKey:"to"}),e.ChartSeriesMarkers=e=>h.createElement(ke,{...e,_chartKey:"markers"}),e.ChartSeriesNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartSeriesNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartSeriesNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartSubtitle=tt,e.ChartTitle=rt,e.ChartTooltip=st,e.ChartValueAxis=nt,e.ChartValueAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartValueAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartValueAxisItem=at,e.ChartValueAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartValueAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartValueAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartValueAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartValueAxisTitle=qe,e.ChartXAxis=it,e.ChartXAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartXAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartXAxisItem=ot,e.ChartXAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartXAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartXAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartXAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartXAxisTitle=je,e.ChartYAxis=ct,e.ChartYAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartYAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartYAxisItem=lt,e.ChartYAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartYAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartYAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartYAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartYAxisTitle=Ve,e.ChartZoomable=e=>h.createElement(ke,{...e,_chartKey:"zoomable"}),e.CollectionConfigurationComponent=Se,e.ConfigurationComponent=ke,e.CrosshairTooltip=oe,e.CrosshairTooltipContainer=de,e.DonutCenter=ye,e.DragEndEvent=C,e.DragEvent=g,e.DragStartEvent=f,e.DrilldownEvent=b,e.DrilldownStateChangeEvent=Ie,e.LegendItemClickEvent=S,e.LegendItemHoverEvent=x,e.NavigatorFilterEvent=E,e.NoteClickEvent=k,e.NoteHoverEvent=I,e.PlotAreaClickEvent=w,e.PlotAreaHoverEvent=N,e.RenderEvent=_,e.Sankey=Vt,e.SelectEndEvent=T,e.SelectEvent=D,e.SelectStartEvent=A,e.SeriesClickEvent=K,e.SeriesHoverEvent=O,e.SeriesTooltip=se,e.SharedTooltipContent=Z,e.Sparkline=Ce,e.StockChart=be,e.TooltipPoint=Y,e.TooltipPopup=te,e.ZoomEndEvent=R,e.ZoomEvent=L,e.ZoomStartEvent=P,e.createSankeyData=Ht,e.exportVisual=(e,t={})=>{if(e&&null!==e.chartInstance)return e.chartInstance.exportVisual(t)},e.findAxisByName=(e,t)=>{if(e&&null!==e.chartInstance)return e.chartInstance.findAxisByName(t)},e.findPaneByIndex=(e,t)=>{if(e&&null!==e.chartInstance)return e.chartInstance.findPaneByIndex(t)},e.findPaneByName=(e,t)=>{if(e&&null!==e.chartInstance)return e.chartInstance.findPaneByName(t)}}));
|
|
8
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types"),require("@progress/kendo-react-intl"),require("@progress/kendo-charts"),require("@progress/kendo-react-common"),require("@progress/kendo-react-popup"),require("@progress/kendo-react-layout"),require("@progress/kendo-svg-icons")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-intl","@progress/kendo-charts","@progress/kendo-react-common","@progress/kendo-react-popup","@progress/kendo-react-layout","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactCharts={},e.React,e.PropTypes,e.KendoReactIntl,e.KendoCharts,e.KendoReactCommon,e.KendoReactPopup,e.KendoReactLayout,e.KendoSvgIcons)}(this,(function(e,t,r,s,a,n,o,i,l){"use strict";function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var h=c(t);function d(e,t){let r=e;for(;r&&r!==t;)r=r.parentNode;return!!r}function p(e,t,r,s){const a=e[t];if(a&&Array.isArray(a))for(const e of a)if(!e.type||e.type!==s)return new Error(`${r} children should be Array of type ${s.displayName}.`);return null}const u=e=>void 0!==e&&!e;let m=class{constructor(e){this.target=e}},v=class extends m{constructor(e,t){super(t),this.axis=e.axis,this.dataItem=e.dataItem,this.index=e.index,this.text=e.text,this.value=e.value}},y=class extends m{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},g=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},C=class extends m{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},f=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},b=class extends m{constructor(e,t){super(t),this.value=e.value,this.point=e.point,this.series=e.series,this.currentState=e.currentState,this.nextState=e.nextState}},x=class extends y{constructor(e,t){super(t),this.series=e.series,this.seriesIndex=e.seriesIndex,this.pointIndex=e.pointIndex,this.text=e.text}preventDefault(){super.preventDefault()}},S=class extends y{constructor(e,t){super(t),this.series=e.series,this.seriesIndex=e.seriesIndex,this.pointIndex=e.pointIndex,this.text=e.text}preventDefault(){super.preventDefault()}},E=class extends m{constructor(e,t){super(t),this.from=e.from,this.to=e.to}},k=class extends m{constructor(e,t){super(t),this.category=e.category,this.dataItem=e.dataItem,this.series=e.series,this.value=e.value,this.visual=e.visual}},I=class extends m{constructor(e,t){super(t),this.category=e.category,this.dataItem=e.dataItem,this.series=e.series,this.value=e.value,this.visual=e.visual}},w=class extends m{constructor(e,t){super(t),this.category=e.category,this.nativeEvent=e.originalEvent,this.value=e.value,this.x=e.x,this.y=e.y}},N=class extends m{constructor(e,t){super(t),this.category=e.category,this.nativeEvent=e.originalEvent,this.value=e.value,this.x=e.x,this.y=e.y}},_=class extends m{constructor(e,t){super(t)}},D=class extends y{constructor(e,t){super(t),this.axis=e.axis,this.from=e.from,this.to=e.to}},T=class extends m{constructor(e,t){super(t),this.axis=e.axis,this.from=e.from,this.to=e.to}},A=class extends y{constructor(e,t){super(t),this.axis=e.axis,this.from=e.from,this.to=e.to}},O=class extends m{constructor(e,t){super(t),this.category=e.category,this.dataItem=e.dataItem,this.nativeEvent=e.originalEvent,this.percentage=e.percentage,this.point=e.point,this.series=e.series,this.stackValue=e.stackValue,this.value=e.value}},K=class extends y{constructor(e,t){super(t),this.category=e.category,this.categoryPoints=e.categoryPoints,this.dataItem=e.dataItem,this.nativeEvent=e.originalEvent,this.percentage=e.percentage,this.point=e.point,this.series=e.series,this.stackValue=e.stackValue,this.value=e.value}},L=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.delta=e.delta,this.nativeEvent=e.originalEvent}},R=class extends m{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}},P=class extends y{constructor(e,t){super(t),this.axisRanges=e.axisRanges,this.nativeEvent=e.originalEvent}};const F={axisLabelClick:v,drag:g,dragEnd:C,dragStart:f,drilldownEvent:b,legendItemHover:x,legendItemClick:S,legendItemLeave:class extends y{constructor(e,t){super(t),this.series=e.series,this.seriesIndex=e.seriesIndex,this.pointIndex=e.pointIndex,this.text=e.text}preventDefault(){super.preventDefault()}},navigatorFilter:E,noteClick:k,noteHover:I,plotAreaClick:w,plotAreaHover:N,render:_,select:D,selectEnd:T,selectStart:A,seriesClick:O,seriesHover:K,zoom:L,zoomEnd:R,zoomStart:P};let q=class{constructor(e,t){this.sender=e,this.syntheticEvent=t}};function j(e,t){return new q(e,t)}const V=e=>`${e.fontWeight} ${e.fontSize} ${e.fontFamily}`,H=e=>window.getComputedStyle(e).backgroundColor,M=`\n <div class="k-var--primary"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n ${(()=>{let e='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n';for(let t=0;t<30;t++)e+=`\n <div class="k-var--series-${t+1}"></div>`;return e})()}\n </div>\n`;class z{constructor(e){this.store=e}setStyle(e,t){this.store.dispatch({type:"set",payload:{field:e,value:t}})}setColors(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color"),this.mapColor("subtitle.color","normal-text-color");const e=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(e)||(this.setStyle("seriesDefaults.area.opacity",e),this.setStyle("seriesDefaults.radarArea.opacity",e),this.setStyle("seriesDefaults.verticalArea.opacity",e),this.setStyle("seriesDefaults.labels.opacity",e)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}setFonts(){const e=V(this.queryStyle("chart-font")),t=V(this.queryStyle("chart-title-font")),r=V(this.queryStyle("chart-pane-title-font")),s=V(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",s),this.setStyle("axisDefaults.notes.label.font",e),this.setStyle("axisDefaults.title.font",e),this.setStyle("legend.labels.font",e),this.setStyle("seriesDefaults.labels.font",s),this.setStyle("seriesDefaults.notes.label.font",e),this.setStyle("title.font",t),this.setStyle("subtitle.font",r),this.setStyle("paneDefaults.title.font",r)}setSeriesColors(){const e=this.element,t=[].slice.call(e.querySelectorAll(".k-var--series div")),r=H(e.querySelector(".k-var--series-unset")),s=t.reduce(((e,t)=>{const s=(e=>{const t=e.match(/series-([a-z])$/);if(null!==t)return(e=>e.toLowerCase().charCodeAt(0)-97)(t[1]);const r=e.split("--series-")[1];return parseInt(r,10)-1})(t.className),a=H(t);return a!==r&&(e[s]=a),e}),[]);this.setStyle("seriesColors",s)}mapColor(e,t){this.setStyle(e,this.queryStyle(t).backgroundColor)}queryStyle(e){const t=this.element;return window.getComputedStyle(t.querySelector(`.k-var--${e}`))}setInactiveOpacity(e,t){const r=parseFloat(this.queryStyle(t).opacity);!isNaN(r)&&r<1&&e.forEach((e=>this.setStyle(`seriesDefaults.${e}.highlight.inactiveOpacity`,r)))}}const U=e=>{let t,r,s=[];const a=a=>{t=e(t,a),n.canUseDOM&&(window.clearTimeout(r),r=window.setTimeout((()=>s.forEach((e=>e()))),16.666666666666668))};return a({}),{getState:()=>t,dispatch:a,subscribe:e=>(s.push(e),()=>s=s.filter((t=>t!==e)))}},B=(e,t)=>t.chartCollectionIdxKey?X.collectionConfigurationItem(e,t):t.chartKey?X.configurationItem(e,t):{},$=(e,t)=>{if(!t.type)return{};switch(t.type){case"set":return X.themeItem(e,t);case"push":return Object.assign(e,t.payload);default:return e}},W=(e,t)=>{if(!t.type)return[];switch(t.type){case"add":return[...e,t.payload];case"remove":return e.filter((e=>e!==t.payload));default:return e}},X={configurationItem:(e,t)=>Object.assign(e,{[t.chartKey]:t.payload}),collectionConfigurationItem(e,t){let r=!1;const[s,a]=t.chartCollectionIdxKey.split("_"),n=e[s].map(((e,s)=>parseInt(a,10)===s?(r=!0,t.payload):e));return!1===r&&n.splice(parseInt(a,10),0,t.payload),Object.assign(e,{[s]:n})},themeItem(e,t){let r={};const s=Object.assign(r,e),{field:a,value:n}=t.payload,o=a.split(".");let i=o.shift();for(;o.length>0;)r=r[i]=r[i]||{},i=o.shift();return r[i]=n,s}};let Y=class{constructor(e,t){this.value=e.value,this.category=e.category,this.categoryIndex=e.categoryIx,this.series=e.series,this.dataItem=e.dataItem,this.percentage=e.percentage,this.runningTotal=e.runningTotal,this.total=e.total,this.low=e.low,this.high=e.high,this.xLow=e.xLow,this.xHigh=e.xHigh,this.yLow=e.yLow,this.yHigh=e.yHigh,this.point=e,this.format=((e.options||{}).tooltip||{}).format||t}get formattedValue(){return this.format?this.point.formatValue(this.format):String(this.value)}};const Z=e=>{const{categoryText:t,colorMarker:r,colspan:s,nameColumn:a,points:n}=e;return h.createElement("table",null,h.createElement("thead",null,h.createElement("tr",null,h.createElement("th",{colSpan:s},t))),h.createElement("tbody",null,n.map(((e,t)=>h.createElement("tr",{key:t},r&&h.createElement("td",null,h.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:e.series.color}})),a&&h.createElement("td",null,e.series.name),h.createElement("td",{dangerouslySetInnerHTML:{__html:e.formattedValue}}))))))},G=h.createContext(null);G.displayName="ChartContext";const J={horizontal:"fit",vertical:"fit"},Q="k-chart-tooltip",ee=class extends h.Component{constructor(e,t){super(e,t),this.context=null,this.element=null,this.onChartMouseLeave=e=>{const{syntheticEvent:t}=e;return!!d(t.relatedTarget,this.element)},this.onMouseLeave=e=>{const t=j(this,e);this.context.childrenObserver.trigger("onMouseLeave",t)&&e.preventDefault()},this.popupRef=e=>{this.element=e;const t=e&&e.closest(".k-animation-container");t&&(t.style.transition="initial")},this.chartObserver=new a.InstanceObserver(this,{onMouseLeave:"onChartMouseLeave"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupShown:e,popupAlign:t,popupOffset:r,popupStyles:s,popupContent:a,className:n}=this.props,i=[Q,n].join(" ").trim();return h.createElement(o.Popup,{animate:!1,popupAlign:t,offset:r,show:e,collision:J,className:"k-chart-tooltip-wrapper"},h.createElement("div",{className:i,style:s,onMouseLeave:this.onMouseLeave,ref:this.popupRef},a()))}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})}};ee.contextType=G;let te=ee;const re=class extends h.Component{constructor(){super(...arguments),this.context=null,this.state={popupShown:!1},this.chartObserver=null}componentDidMount(){this.chartObserver=new a.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupContext:e,shared:t,className:r,...s}=this.state,a=this.state.popupShown?()=>{const r=this.findRenderFunction();if(t)return null!==r?r(e):h.createElement(Z,{...e});const s=e.point,a=this.findRenderFunctionByIndex(s.series.index);return null!==a?a(e):null!==r?r(e):h.createElement("span",{dangerouslySetInnerHTML:{__html:e.point.formattedValue}})}:Function.prototype,o=n.classNames({"k-chart-shared-tooltip":t,"k-chart-tooltip-inverse":!!r});return h.createElement(te,{...s,popupContent:a,className:o})}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})}onShowTooltip(e){const{anchor:t,style:r,shared:s,className:a,crosshair:n}=e;let o;n||(o=s?this.createSharedTooltipContext(e):this.createTooltipContext(e),this.setState({popupShown:!0,popupAlign:t.align,popupOffset:t.point,popupContext:o,popupStyles:r,className:a,shared:s}))}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}createSharedTooltipContext(e){const{points:t,categoryText:r}=e,s=t.filter((e=>void 0!==e.series.name)).length>0,a=e.series.length>1;let n=1;return s&&n++,a&&n++,{categoryText:r,colorMarker:a,colspan:n,nameColumn:s,points:e.points.map((t=>new Y(t,e.format)))}}createTooltipContext(e){const{point:t,format:r}=e;return{point:new Y(t,r)}}findRenderFunctionByIndex(e){const t=this.context.optionsStore.getState().series;return void 0!==t&&Array.isArray(t)&&void 0!==t[e]&&t[e].hasOwnProperty("tooltip")&&t[e].tooltip.hasOwnProperty("render")?t[e].tooltip.render:null}findRenderFunction(){const e=this.context.optionsStore.getState().tooltip;return void 0!==e&&e.hasOwnProperty("render")?e.render:null}};re.contextType=G;let se=re;const ae=e=>e.children;ae.displayName="Container";const ne=class extends h.Component{constructor(e,t){super(e,t),this.context=null,this.state={popupShown:!1},this.chartObserver=new a.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupContend:e,className:t,...r}=this.state,s=this.state.popupShown?()=>e:Function.prototype,a=n.classNames({"k-chart-crosshair-tooltip":!0,"k-chart-tooltip-inverse":!!t});return h.createElement(te,{...r,popupContent:s,className:a})}componentWillUnmount(){var e;null==(e=this.context)||e.observersStore.dispatch({type:"remove",payload:this.chartObserver})}onShowTooltip(e){const{anchor:t,style:r,className:s,crosshair:a,axisName:n,axisIndex:o,value:i}=e,{name:l,index:c}=this.props;a&&n===l&&o===c&&this.setState({popupShown:!0,popupAlign:t.align,popupOffset:t.point,popupContend:i,popupStyles:r,className:s})}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}};ne.contextType=G;let oe=ne;const ie=["categoryAxis","valueAxis","xAxis","yAxis"];function le(e){const t={};for(let r=0;r<ie.length;r++){const s=ce(e,ie[r]);for(let e=0;e<s.length;e++){const r=s[e];t[r.name+r.index]=r}}return t}function ce(e,t){const r=[];if(e[t]){const s=[].concat(e[t]);for(let e=0;e<s.length;e++){const a=(s[e].crosshair||{}).tooltip;a&&a.visible&&r.push({index:e,name:t})}}return r}const he=class extends h.Component{constructor(){super(...arguments),this.context=null,this.state={tooltips:{}},this.storeUnsubscriber=Function.prototype,this.subscriber=()=>{var e;this.setState({tooltips:le(null==(e=this.context)?void 0:e.optionsStore.getState())})}}componentDidMount(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)}render(){const{tooltips:e}=this.state,t=Object.keys(e).map((t=>h.createElement(oe,{...e[t],key:t})));return h.createElement(ae,null,t)}componentWillUnmount(){this.storeUnsubscriber()}};he.contextType=G;let de=he;const pe={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},ue=class extends h.Component{constructor(e){super(e),this.chartInstance=null,this.surface=null,this._element=null,this.optionsStore={},this.optionsUnsubscriber=Function.prototype,this.themeStore={},this.themeUnsubscriber=Function.prototype,this.observersStore={},this.suppressTransitions=!1,this.showLicenseWatermark=!1,this.onRender=e=>{null!==this.chartInstance&&(this.surface=e.sender.surface,this.trigger("render",e))},this.onDrilldown=e=>{var t;const{series:r}=this.optionsStore.getState(),s=r.find((t=>t.name===e.series.name));if(!s.drilldownSeriesFactory)return!0;const a="onDrilldown";if(this.props.hasOwnProperty(a)){const r={seriesName:s.name,drilldownValue:e.value},n=[...(null==(t=this.props.drilldownState)?void 0:t.steps)||[],r],o=this.props.getTarget(),i={...e,currentState:this.props.drilldownState,nextState:{steps:n}},l=new b(i,o);this.props[a].call(void 0,l)}return!0},this.onLegendItemClick=e=>{if(null!==this.chartInstance)if(this.props.onLegendItemClick)this.trigger("legendItemClick",e);else{const{series:t}=this.optionsStore.getState();if(!t)return;let r={};const{seriesIndex:s,pointIndex:a}=e,n=t[s];if(void 0===a)r=Object.assign({},n,{visible:u(n.visible)});else{const e=n.pointVisibility=n.pointVisibility||[];e[a]=u(e[a]),r=Object.assign({},n)}this.optionsStore.dispatch({chartCollectionIdxKey:`series_${s}`,payload:r}),this.suppressTransitions=!0}},this.onWindowResize=()=>{null!==this.chartInstance&&this.chartInstance.resize()},this.onChartMouseLeave=e=>{const t=j(this,e);this.triggerDomEvent("onMouseLeave",t)?e.preventDefault():null!==this.chartInstance&&this.chartInstance.hideElements()},this.onChildMouseLeave=e=>{const{syntheticEvent:t}=e;return this.chartInstance&&!d(t.relatedTarget,this.element)&&this.chartInstance.hideElements(),!1},n.validatePackage(pe),this.showLicenseWatermark=n.shouldShowValidationUI(pe),this.optionsStore=U(B),this.observersStore=U(W),this.childrenObserver=new a.InstanceObserver(this,{onMouseLeave:"onChildMouseLeave"}),this.state={optionsStore:this.optionsStore,observersStore:this.observersStore,childrenObserver:this.childrenObserver,drilldownState:{steps:[]}},this.themeStore=U($),this.chartObserver=new a.InstanceObserver(this,{render:"onRender",legendItemClick:"onLegendItemClick",drilldown:"onDrilldown"})}get element(){return this._element}static getDerivedStateFromProps(e,t){return{...t,drilldownState:e.drilldownState||[]}}componentDidMount(){var e;const t=(null==(e=this._element)?void 0:e.ownerDocument)||document;((e,t,r)=>{const s=new z(e);if(void 0===r)return void e.dispatch({type:"push",payload:a.chartBaseTheme()});const n=s.element=r.createElement("div");n.style.display="none",n.innerHTML=M,r.body.appendChild(n);try{e.dispatch({type:"push",payload:a.chartBaseTheme()}),s.setColors(),s.setFonts(),s.setSeriesColors()}finally{r.body.removeChild(s.element),delete s.element,t()}})(this.themeStore,this.instantiateCoreChart.bind(this),t),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this)),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)}componentWillUnmount(){this.optionsUnsubscriber(),this.themeUnsubscriber(),null!==this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),window.removeEventListener("resize",this.onWindowResize)}componentDidUpdate(e){const{dir:t,children:r,...a}=this.props;if(null!==this.chartInstance){const r=s.provideIntlService(this),n=this.chartInstance.chartService,o=r.locale!==n._intlService.locale,i=Object.entries(e).filter((e=>"dir"!==e[0]&&"children"!==e[0])).some((e=>{const[t,r]=e;return!(a.hasOwnProperty(t)&&a[t]===r)}));o&&(this.chartInstance.chartService._intlService=r,this.chartInstance.chartService.format._intlService=r,i||this.chartInstance.noTransitionsRedraw()),i&&this.refresh(),e.dir!==t&&this.chartInstance.setDirection(this.getDirection(t))}}render(){const{style:e={},className:t,wrapper:r,children:s}=this.props,a=Object.assign({},e,{position:"relative"}),o=h.createElement(r,{className:t,style:a,key:"chartElement"},h.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:e=>this._element=e,className:"k-chart-surface"},s),h.createElement(h.Fragment,null,this.showLicenseWatermark&&h.createElement(n.WatermarkOverlay,null)));return h.createElement(G.Provider,{value:this.state},h.createElement(se,{key:"seriesTooltip"}),h.createElement(de,{key:"crosshairTooltips"}),o)}getDirection(e){return"rtl"===(void 0!==e?e:n.canUseDOM&&window.getComputedStyle(this.element).direction||"ltr")}getChartOptions(){const{renderAs:e,pannable:t,zoomable:r,paneDefaults:s,panes:a,transitions:n,seriesColors:o,seriesDefaults:i,axisDefaults:l,deriveOptionsFromParent:c}=this.props;let h={};return void 0!==e&&(h.renderAs=e),void 0!==t&&(h.pannable=t),void 0!==r&&(h.zoomable=r),void 0!==s&&(h.paneDefaults=s),void 0!==a&&(h.panes=a),void 0!==n&&(h.transitions=n),void 0!==o&&(h.seriesColors=o),void 0!==i&&(h.seriesDefaults=i),void 0!==l&&(h.axisDefaults=l),h=Object.assign(h,this.optionsStore.getState()),c&&(h=c(h)),h}refresh(){if(null!==this.chartInstance){const e=this.themeStore.getState(),t=this.getChartOptions(),r=t.transitions;this.suppressTransitions&&(t.transitions=!1),this.props.onRefresh?this.props.onRefresh.call(void 0,t,e,this.chartInstance):this.chartInstance.setOptions(t,e),this.suppressTransitions&&(t.transitions=r,this.suppressTransitions=!1)}}instantiateCoreChart(){const{dir:e,chartConstructor:t}=this.props,r=this.getChartOptions();this.chartInstance=new t(this.element,r,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:s.provideIntlService(this),observer:this.chartObserver,sender:this})}trigger(e,t){const r=function(e,t,r){if(F[e])return new F[e](t,r)}(e,t,this.props.getTarget()),s="on"+e.charAt(0).toUpperCase()+e.slice(1),a=this.observersStore.getState();let n=!1;for(let r=0;r<a.length;r++)a[r].trigger(e,t)&&(n=!0);return!1===n&&r&&this.props.hasOwnProperty(s)?(this.props[s].call(void 0,r),r.isDefaultPrevented&&r.isDefaultPrevented()):n}requiresHandlers(e){for(let t=0;t<e.length;t++){const r=e[t],s="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(s))return!0}return!1}triggerDomEvent(e,t){const r=this.observersStore.getState();let s=!1;for(let a=0;a<r.length;a++)r[a].trigger(e,t)&&(s=!0);return s}};ue.propTypes={dir:r.string,renderAs:r.oneOf(["svg","canvas"])},ue.defaultProps={renderAs:"svg"};let me=ue;s.registerForIntl(me);const ve=class extends h.Component{constructor(e,t){super(e,t),this.context=null,this.state={donutCenterStyles:null},this.chartObserver=new a.InstanceObserver(this,{render:"onRender"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{render:e}=this.props,{donutCenterStyles:t}=this.state;let r=null;return e&&t&&(r=h.createElement("div",{className:"k-chart-donut-center",style:t},h.createElement(e,null))),r}onRender(e){var t;const r=null==(t=this.context)?void 0:t.optionsStore.getState().series,s=Array.isArray(r)?r[0]:null,a=e.sender._plotArea.charts;if(!s||"donut"!==s.type||0===a[0].points.length)return;const n=a[0].points[0].sector,o=n.innerRadius,i=n.center.y-o,l=n.center.x-o,c=2*o;this.setState({donutCenterStyles:{height:c,left:l,top:i,width:c}})}};ve.contextType=G;let ye=ve,ge=class extends h.Component{constructor(){super(...arguments),this._baseChart=null,this.getTarget=()=>this}get chartInstance(){return null!==this._baseChart?this._baseChart.chartInstance:null}get surface(){return null!==this._baseChart?this._baseChart.surface:null}get element(){return null!==this._baseChart?this._baseChart.element:null}render(){const{donutCenterRender:e,children:t,className:r,...s}=this.props;return h.createElement(me,{...s,ref:e=>this._baseChart=e,chartConstructor:a.Chart,getTarget:this.getTarget,wrapper:"div",className:n.classNames("k-chart k-widget",r)},t,h.createElement(ye,{render:e}))}},Ce=class extends h.Component{constructor(){super(...arguments),this._baseChart=null,this.deriveOptionsFromParent=e=>{const{type:t,data:r}=this.props,s=Object.assign({},e,{type:t,data:r});return a.Sparkline.normalizeOptions(s)},this.getTarget=()=>this}get chartInstance(){return null!==this._baseChart?this._baseChart.chartInstance:null}get surface(){return null!==this._baseChart?this._baseChart.surface:null}get element(){return null!==this._baseChart?this._baseChart.element:null}render(){const{children:e,type:t,className:r,...s}=this.props;return h.createElement(me,{...s,ref:e=>this._baseChart=e,chartConstructor:a.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:n.classNames("k-sparkline k-widget",r)},e)}};const fe={autoBindElements:!0,liveDrag:!1,partialRedraw:!0};let be=class extends h.Component{constructor(){super(...arguments),this._baseChart=null,this.deriveOptionsFromParent=e=>{const t=Object.assign({},e.navigator||{},fe);return Object.assign({},e,{navigator:t})},this.onRefresh=(e,t,r)=>{this.props.partialRedraw?(r.applyOptions(e),r.bindCategories(),r.navigator.redrawSlaves()):r.setOptions(e,t)},this.getTarget=()=>this}get chartInstance(){return null!==this._baseChart?this._baseChart.chartInstance:null}get surface(){return null!==this._baseChart?this._baseChart.surface:null}get element(){return null!==this._baseChart?this._baseChart.element:null}render(){const{children:e,className:t,...r}=this.props;return h.createElement(me,{...r,ref:e=>this._baseChart=e,chartConstructor:a.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:n.classNames("k-stockchart k-widget",t)},e)}};const xe=class extends h.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore}renderChildren(e,t){const{children:r}=e.props,{_chartKey:s,_parentStore:a}=this.props,n={...e.props,_chartCollectionIdxKey:`${s}_${t}`,_parentStore:a};return h.cloneElement(e,n,r)}render(){const{_chartKey:e,_parentStore:t,children:r}=this.props;return(t||this.optionsStore).dispatch({chartKey:e,payload:[]}),h.Children.map(r,((e,t)=>h.isValidElement(e)?this.renderChildren(e,t):e))}};xe.contextType=G;let Se=xe;const Ee=class extends h.Component{constructor(e,t){super(e,t),this.optionsStore=t.optionsStore,this.childStore=U(B)}render(){const{children:e}=this.props;return void 0!==e?h.Children.map(e,(e=>h.isValidElement(e)?this.renderChildren(e):e)):null}componentDidMount(){this.dispatch()}componentDidUpdate(){this.dispatch()}dispatch(){const{_chartKey:e,_chartCollectionIdxKey:t,_parentStore:r,children:s,...a}=this.props;(r||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:t,payload:Object.assign({},a,this.childStore.getState())})}renderChildren(e){const{children:t}=e.props,r={...e.props,_parentStore:this.childStore};return h.cloneElement(e,r,t)}};Ee.contextType=G;let ke=Ee,Ie=class{constructor(e){this.currentState=e.currentState,this.nextState=e.nextState}};const we=h.forwardRef(((e,t)=>{const r=h.useRef(null),s=h.useRef(null),a={valueField:_e.valueField,textField:_e.textField,iconField:_e.iconField,iconClassField:_e.iconClassField,...e};h.useImperativeHandle(r,(()=>({element:s.current,props:a}))),h.useImperativeHandle(t,(()=>r.current));let o=[{id:"0",...e.rootItem||{text:"Home",icon:h.createElement(n.SvgIcon,{icon:l.homeIcon,style:{marginInlineEnd:"4px"}})}}];e.drilldownState&&(o=[...o,...e.drilldownState.steps.map(((e,t)=>({id:(t+1).toString(),text:e.drilldownValue})))]);const c={...a,data:o};return h.createElement("div",null,h.createElement(i.Breadcrumb,{...c,onItemSelect:t=>{var r;const s="onDrilldownStateChange";if(e.hasOwnProperty(s)){const a=o.findIndex((e=>e.id===t.id)),n={steps:((null==(r=e.drilldownState)?void 0:r.steps)||[]).slice(0,a)},i=new Ie({currentState:e.drilldownState,nextState:n});e[s].call(void 0,i)}}}))})),Ne={id:r.string,style:r.object,className:r.string,breadcrumbOrderedList:r.elementType,breadcrumbListItem:r.elementType,breadcrumbDelimiter:r.elementType,breadcrumbLink:r.elementType,dir:r.oneOf(["ltr","rtl"]),disabled:r.bool,valueField:r.string,textField:r.string,iconField:r.string,iconClassField:r.string,onItemSelect:r.func,ariaLabel:r.string,onDrilldownStateChange:r.func,drilldownState:r.shape({steps:r.array}),rootItem:r.object},_e={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass",data:[]};we.displayName="KendoReactChartBreadcrumb",we.propTypes=Ne;const De="charts.nodata",Te={[De]:"No data available."},Ae=e=>{const t=s.useLocalization();return h.createElement("div",{className:n.classNames("k-chart-overlay",e.className),style:{display:"none",...e.style}},h.createElement("div",{className:"k-no-data"},void 0===e.children?t.toLanguageString(De,Te[De]):e.children))};Ae.displayName="ChartNoDataOverlay";const Oe=e=>h.createElement(ke,{...e,_chartKey:"title"});Oe.displayName="ChartAxisDefaultsTitle";const Ke=e=>h.createElement(ke,{...e,_chartKey:"labels"});Ke.displayName="ChartAxisDefaultsLabels";const Le=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"});Le.displayName="ChartAxisDefaultsCrosshair";const Re=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"});Re.displayName="ChartAxisDefaultsCrosshairTooltip";const Pe=e=>h.createElement(ke,{...e,_chartKey:"title"});Pe.displayName="ChartCategoryAxisTitle";const Fe=e=>h.createElement(ke,{...e,_chartKey:"title"});Fe.displayName="ChartPaneDefaultsTitle";const qe=e=>h.createElement(ke,{...e,_chartKey:"item"});qe.displayName="ChartLegendItem";const je=e=>h.createElement(ke,{...e,_chartKey:"title"});je.displayName="ChartLegendTitle";const Ve=e=>h.createElement(ke,{...e,_chartKey:"inactiveItems"});Ve.displayName="ChartLegendInactiveItems";const He=e=>h.createElement(ke,{...e,_chartKey:"title"});He.displayName="ChartValueAxisTitle";const Me=e=>h.createElement(ke,{...e,_chartKey:"title"});Me.displayName="ChartXAxisTitle";const ze=e=>h.createElement(ke,{...e,_chartKey:"title"});ze.displayName="ChartYAxisTitle";const Ue=e=>h.createElement(ke,{...e,_chartKey:"categoryAxis"});Ue.displayName="ChartNavigatorCategoryAxis";const Be=e=>h.createElement(ke,{...e,_chartKey:"pane"});Be.displayName="ChartNavigatorPane";const $e=e=>h.createElement(ke,{...e});$e.displayName="ChartNavigatorSeriesItem";const We=e=>h.createElement(Se,{...e,_chartKey:"series"});We.propTypes={children:function(e,t,r){return p(e,t,r,$e)}};const Xe=e=>h.createElement(ke,{...e,_chartKey:"chartArea"});Xe.displayName="ChartArea";const Ye=e=>h.createElement(ke,{...e});Ye.displayName="ChartCategoryAxisItem";const Ze=e=>h.createElement(Se,{...e,_chartKey:"categoryAxis"});Ze.propTypes={children:function(e,t,r){return p(e,t,r,Ye)}},Ze.displayName="ChartCategoryAxis";const Ge=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"legend"});Ge.displayName="ChartLegend";const Je=e=>h.createElement(ke,{visible:!0,position:"bottom",...e,_chartKey:"navigator"});Je.displayName="ChartNavigator";const Qe=e=>h.createElement(ke,{...e});Qe.displayName="ChartPane";const et=e=>h.createElement(ke,{...e,_chartKey:"paneDefaults"});et.displayName="ChartPaneDefaults";const tt=e=>h.createElement(Se,{...e,_chartKey:"panes"});tt.propTypes={children:function(e,t,r){return p(e,t,r,Qe)}};const rt=e=>{let t=e=>h.createElement(h.Fragment,null);e.drilldownSeriesFactory&&(t=e.drilldownSeriesFactory);const r=t=>{var r,s;return t&&(null==(s=null==(r=t.drilldownState)?void 0:r.steps)?void 0:s.find((({seriesName:t})=>t===e.name)))};return h.createElement(G.Consumer,null,(s=>r(s)?h.createElement(t,{_chartCollectionIdxKey:e._chartCollectionIdxKey,drilldownValue:r(s).drilldownValue}):h.createElement(ke,{...e})))};rt.displayName="ChartSeriesItem";const st=e=>h.createElement(Se,{...e,_chartKey:"series"});st.propTypes={children:function(e,t,r){return p(e,t,r,rt)}},st.displayName="ChartSeries";const at=e=>h.createElement(ke,{...e,_chartKey:"subtitle"});at.displayName="ChartSubtitle";const nt=e=>h.createElement(ke,{...e,_chartKey:"title"});nt.displayName="ChartTitle";const ot=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"});ot.displayName="ChartTooltip";const it=e=>h.createElement(ke,{...e});it.displayName="ChartValueAxisItem";const lt=e=>h.createElement(Se,{...e,_chartKey:"valueAxis"});lt.propTypes={children:function(e,t,r){return p(e,t,r,it)}},lt.displayName="ChartValueAxis";const ct=e=>h.createElement(ke,{...e});ct.displayName="ChartXAxisItem";const ht=e=>h.createElement(Se,{...e,_chartKey:"xAxis"});ht.prototype={children:function(e,t,r){return p(e,t,r,ct)}},ht.displayName="ChartXAxis";const dt=e=>h.createElement(ke,{...e});dt.displayName="ChartYAxisItem";const pt=e=>h.createElement(Se,{...e,_chartKey:"yAxis"});pt.propTypes={children:function(e,t,r){return p(e,t,r,dt)}},pt.displayName="ChartYAxis";const ut=e=>`${e.fontWeight} ${e.fontSize} ${e.fontFamily}`,mt=e=>window.getComputedStyle(e).backgroundColor,vt=`\n <div class="k-var--background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--kendo-color-subtle"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n </div>\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n ${(()=>{let e='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n';for(let t=0;t<30;t++)e+=`\n <div class="k-var--series-${t+1}"></div>`;return e})()}\n </div>\n`;let yt=class{constructor(e){this.store=e}setStyle(e,t){const r=e.split(".");let s=this.store;r.forEach(((e,t,r)=>{t<r.length-1&&(s=s[e]=s[e]||{})}));const a=r.pop();a&&(s[a]=t)}setColors(){this.mapColor("labels.color","normal-text-color"),this.mapColor("labels.stroke.color","background");this.element.querySelector(".k-var--kendo-color-subtle").style.color="var(--kendo-color-subtle)",this.mapColor("links.color","kendo-color-subtle","color"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("title.color","normal-text-color")}setFonts(){const e=ut(this.queryStyle("chart-title-font")),t=ut(this.queryStyle("chart-font"));this.setStyle("title.font",e),this.setStyle("labels.font",t),this.setStyle("legend.labels.font",t)}setNodeColors(){const e=this.element;if(!e)return;const t=[].slice.call(e.querySelectorAll(".k-var--series div")),r=mt(e.querySelector(".k-var--series-unset")),s=t.reduce(((e,t)=>{const s=(e=>{const t=e.match(/series-([a-z])$/);if(null!==t)return(e=>e.toLowerCase().charCodeAt(0)-97)(t[1]);const r=e.split("--series-")[1];return parseInt(r,10)-1})(t.className),a=mt(t);return a!==r&&(e[s]=a),e}),[]);this.setStyle("nodeColors",s)}mapColor(e,t,r="backgroundColor"){this.setStyle(e,this.queryStyle(t)[r])}queryStyle(e){const t=this.element;return window.getComputedStyle(t.querySelector(`.k-var--${e}`))}};const gt=(e,t)=>{const r={nodeColors:[]},s=new yt(r),a=s.element=e.createElement("div");a.style.display="none",a.innerHTML=vt,e.body.appendChild(a);try{s.setColors(),s.setFonts(),s.setNodeColors()}finally{e.body.removeChild(s.element),s.element=null,t(r)}},Ct=r.exact({left:r.number,top:r.number}),ft={left:r.number,right:r.number},bt={...ft,top:r.number,bottom:r.number},xt=r.oneOfType([r.number,r.exact(bt)]),St=xt,Et=r.exact({width:r.number,color:r.string,opacity:r.number,dashType:r.string}),kt={visible:r.bool,font:r.string,color:r.string,opacity:r.number,align:r.oneOf(["left","right","center"]),position:r.oneOf(["inside","before","after"]),padding:St,margin:r.exact(ft),border:Et,offset:Ct},It={color:r.string,opacity:r.number,offset:Ct,padding:r.number,width:r.number},wt={colorType:r.oneOf(["static","source","target"]),color:r.string,opacity:r.number,highlight:r.exact({opacity:r.number,inactiveOpacity:r.number})},Nt=r.exact({text:r.string,...kt}),_t=r.exact({id:r.oneOfType([r.string,r.number]).isRequired,label:Nt.isRequired,...It}),Dt=r.exact({sourceId:r.oneOfType([r.string,r.number]).isRequired,targetId:r.oneOfType([r.string,r.number]).isRequired,value:r.number.isRequired,...wt}),Tt={data:r.exact({nodes:r.arrayOf(_t.isRequired).isRequired,links:r.arrayOf(Dt.isRequired).isRequired}).isRequired,links:r.exact(wt),nodes:r.exact(It),labels:r.exact(kt),legend:r.exact({align:r.oneOf(["start","center","end"]),background:r.string,border:Et,height:r.number,labels:r.object,margin:xt,offsetX:r.number,offsetY:r.number,orientation:r.oneOf(["vertical","horizontal"]),padding:St,position:r.oneOf(["top","bottom","left","right","custom"]),reverse:r.bool,visible:r.bool,width:r.number,item:r.object,title:r.object}),title:r.exact({align:r.oneOf(["center","left","right"]),background:r.string,border:Et,color:r.string,font:r.string,margin:xt,padding:St,position:r.oneOf(["top","bottom"]),text:r.string,visible:r.bool}),tooltip:r.exact({visible:r.bool,offset:r.number,followPointer:r.bool,delay:r.number,linkComponent:r.any,nodeComponent:r.any}),className:r.string,style:r.object,dir:r.string,disableAutoLayout:r.bool,disableKeyboardNavigation:r.bool,onNodeEnter:r.func,onNodeLeave:r.func,onLinkEnter:r.func,onLinkLeave:r.func,onNodeClick:r.func,onLinkClick:r.func},At="sankey.tooltipUnitFormat",Ot={[At]:"({0} units)"},Kt=e=>{const{Content:t,dir:r,offset:s,event:{tooltipData:a,dataItem:n,nodeValue:o}}=e,i=h.useRef(null);return h.useEffect((()=>{const e=i.current;if(!a||!e)return;const t=e.offsetWidth,r=e.offsetHeight,n={...a.popupOffset},o=a.popupAlign;n.left+="left"===o.horizontal?s:-1*s,"right"===o.horizontal&&(n.left-=t),"bottom"===o.vertical?n.top-=r+s:n.top+=s,e.style.left=`${n.left}px`,e.style.top=`${n.top}px`,e.style.visibility=""}),[a]),h.createElement("div",{ref:i,style:{visibility:"hidden"},dir:r,className:"k-tooltip k-sankey-tooltip k-chart-tooltip k-chart-shared-tooltip"},h.createElement("div",{className:"k-tooltip-content"},h.createElement(t,{dir:r,dataItem:n,nodeValue:o})))},Lt={display:"flex",alignItems:"center"},Rt=e=>h.createElement("div",{style:{width:15,height:15,backgroundColor:e.color,display:"inline-flex",marginLeft:3}}),Pt=e=>h.createElement("span",{style:{margin:"0 3px"}},e.children),Ft=e=>s.useInternationalization().format(s.useLocalization().toLanguageString(At,Ot[At]),[e||0]),qt=e=>{const{color:t,label:r}=e.dataItem;return h.createElement("div",{style:Lt,className:"k-tooltip-content"},h.createElement(Rt,{color:t}),h.createElement(Pt,null,r.text),h.createElement(Pt,null,Ft(e.nodeValue)))},jt=e=>{const{source:t,target:r,value:s}=e.dataItem,a="rtl"===e.dir?l.arrowLeftIcon:l.arrowRightIcon;return h.createElement("div",{style:Lt},h.createElement(Rt,{color:t.color}),h.createElement(Pt,null,t.label.text),h.createElement(n.IconWrap,{icon:a,name:a.name}),h.createElement(Rt,{color:r.color}),h.createElement(Pt,null,r.label.text),h.createElement(Pt,null,Ft(s)))},Vt=12,Ht={offset:Vt,visible:!0},Mt=["nodeEnter","nodeLeave","linkEnter","linkLeave","nodeClick","linkClick"],zt=h.forwardRef(((e,t)=>{n.validatePackage(pe);const r=h.useRef(null),s=h.useRef(null),o=n.useRtl(r,e.dir,[e.dir,r.current]),i=h.useRef(null),{data:l,links:c,nodes:d,labels:p,title:u,legend:m,tooltip:v=Ht,disableAutoLayout:y,disableKeyboardNavigation:g}=e,C=h.useRef();C.current=e;const[f,b]=h.useState(null),x=h.useCallback((e=>{const{visible:t,offset:r=Vt,nodeComponent:s=qt,linkComponent:a=jt}={...Ht,...v};if(t){const t={event:e,offset:r,dir:o,Content:"node"===e.targetType?s:a};b(t)}}),[v,o]),S=h.useCallback((()=>{b(null)}),[]),E=h.useCallback(((e,t)=>{const r=C.current[e];if(r){const e={...t,nativeEvent:t.originalEvent,target:i.current};r.call(void 0,e)}}),[]);return h.useEffect((()=>{const e={data:l,links:c,nodes:d,labels:p,title:u,legend:m,disableAutoLayout:y,disableKeyboardNavigation:g,rtl:"rtl"===o,tooltip:{...Ht,...v}};return s.current?s.current.setOptions(e):n.canUseDOM&&r.current&>(r.current.ownerDocument,(t=>{s.current=new a.Sankey(r.current,e,t),((e,t)=>{e&&(e.unbind(),Mt.forEach((r=>{t[r]&&e.bind(r,t[r])})))})(s.current,{nodeEnter:e=>{E("onNodeEnter",e)},nodeLeave:e=>{E("onNodeLeave",e)},linkEnter:e=>{E("onLinkEnter",e)},linkLeave:e=>{E("onLinkLeave",e)},nodeClick:e=>{E("onNodeClick",e)},linkClick:e=>{E("onLinkClick",e)}}),s.current.bind("tooltipShow",x),s.current.bind("tooltipHide",S)})),()=>{s.current&&(s.current.destroy(),s.current=null)}}),[l,c,d,p,u,m,y,g,o,v,S,x,E]),h.useImperativeHandle(i,(()=>({get element(){return r.current},exportVisual:e=>s.current.exportVisual(e),props:e})),[]),h.useImperativeHandle(t,(()=>i.current)),h.createElement(h.Fragment,null,h.createElement("div",{ref:r,className:e.className,style:e.style,dir:o}),f&&h.createElement(Kt,{...f}))}));zt.propTypes=Tt,zt.displayName="KendoReactSankey";const Ut=a.createSankeyData;e.AxisLabelClickEvent=v,e.Chart=ge,e.ChartArea=Xe,e.ChartAxisDefaults=e=>h.createElement(ke,{...e,_chartKey:"axisDefaults"}),e.ChartAxisDefaultsCrosshair=Le,e.ChartAxisDefaultsCrosshairTooltip=Re,e.ChartAxisDefaultsLabels=Ke,e.ChartAxisDefaultsTitle=Oe,e.ChartBreadcrumb=we,e.ChartCategoryAxis=Ze,e.ChartCategoryAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartCategoryAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartCategoryAxisItem=Ye,e.ChartCategoryAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartCategoryAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartCategoryAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartCategoryAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartCategoryAxisRangeLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"rangeLabels"}),e.ChartCategoryAxisTitle=Pe,e.ChartLegend=Ge,e.ChartLegendInactiveItems=Ve,e.ChartLegendItem=qe,e.ChartLegendTitle=je,e.ChartNavigator=Je,e.ChartNavigatorCategoryAxis=Ue,e.ChartNavigatorHint=e=>h.createElement(ke,{...e,_chartKey:"hint"}),e.ChartNavigatorPane=Be,e.ChartNavigatorSelect=e=>h.createElement(ke,{...e,_chartKey:"select"}),e.ChartNavigatorSeries=We,e.ChartNavigatorSeriesItem=$e,e.ChartNoDataOverlay=Ae,e.ChartPane=Qe,e.ChartPaneDefaults=et,e.ChartPaneDefaultsTitle=Fe,e.ChartPanes=tt,e.ChartPlotArea=e=>h.createElement(ke,{...e,_chartKey:"plotArea"}),e.ChartSeries=st,e.ChartSeriesDefaults=e=>h.createElement(ke,{...e,_chartKey:"seriesDefaults"}),e.ChartSeriesErrorBars=e=>h.createElement(ke,{...e,_chartKey:"errorBars"}),e.ChartSeriesExtremes=e=>h.createElement(ke,{...e,_chartKey:"extremes"}),e.ChartSeriesHighlight=e=>h.createElement(ke,{...e,_chartKey:"highlight"}),e.ChartSeriesItem=rt,e.ChartSeriesItemOutliers=e=>h.createElement(ke,{...e,_chartKey:"outliers"}),e.ChartSeriesItemTooltip=e=>h.createElement(ke,{...e,_chartKey:"tooltip"}),e.ChartSeriesLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartSeriesLabelsFrom=e=>h.createElement(ke,{...e,_chartKey:"from"}),e.ChartSeriesLabelsTo=e=>h.createElement(ke,{...e,_chartKey:"to"}),e.ChartSeriesMarkers=e=>h.createElement(ke,{...e,_chartKey:"markers"}),e.ChartSeriesNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartSeriesNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartSeriesNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartSubtitle=at,e.ChartTitle=nt,e.ChartTooltip=ot,e.ChartValueAxis=lt,e.ChartValueAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartValueAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartValueAxisItem=it,e.ChartValueAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartValueAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartValueAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartValueAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartValueAxisTitle=He,e.ChartXAxis=ht,e.ChartXAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartXAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartXAxisItem=ct,e.ChartXAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartXAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartXAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartXAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartXAxisTitle=Me,e.ChartYAxis=pt,e.ChartYAxisCrosshair=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"crosshair"}),e.ChartYAxisCrosshairTooltip=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"tooltip"}),e.ChartYAxisItem=dt,e.ChartYAxisLabels=e=>h.createElement(ke,{visible:!0,...e,_chartKey:"labels"}),e.ChartYAxisNotes=e=>h.createElement(ke,{...e,_chartKey:"notes"}),e.ChartYAxisNotesIcon=e=>h.createElement(ke,{...e,_chartKey:"icon"}),e.ChartYAxisNotesLabel=e=>h.createElement(ke,{...e,_chartKey:"label"}),e.ChartYAxisTitle=ze,e.ChartZoomable=e=>h.createElement(ke,{...e,_chartKey:"zoomable"}),e.CollectionConfigurationComponent=Se,e.ConfigurationComponent=ke,e.CrosshairTooltip=oe,e.CrosshairTooltipContainer=de,e.DonutCenter=ye,e.DragEndEvent=C,e.DragEvent=g,e.DragStartEvent=f,e.DrilldownEvent=b,e.DrilldownStateChangeEvent=Ie,e.LegendItemClickEvent=S,e.LegendItemHoverEvent=x,e.NavigatorFilterEvent=E,e.NoteClickEvent=k,e.NoteHoverEvent=I,e.PlotAreaClickEvent=w,e.PlotAreaHoverEvent=N,e.RenderEvent=_,e.Sankey=zt,e.SelectEndEvent=T,e.SelectEvent=D,e.SelectStartEvent=A,e.SeriesClickEvent=O,e.SeriesHoverEvent=K,e.SeriesTooltip=se,e.SharedTooltipContent=Z,e.Sparkline=Ce,e.StockChart=be,e.TooltipPoint=Y,e.TooltipPopup=te,e.ZoomEndEvent=R,e.ZoomEvent=L,e.ZoomStartEvent=P,e.createSankeyData=Ut,e.exportVisual=(e,t={})=>{if(e&&null!==e.chartInstance)return e.chartInstance.exportVisual(t)},e.findAxisByName=(e,t)=>{if(e&&null!==e.chartInstance)return e.chartInstance.findAxisByName(t)},e.findPaneByIndex=(e,t)=>{if(e&&null!==e.chartInstance)return e.chartInstance.findPaneByIndex(t)},e.findPaneByName=(e,t)=>{if(e&&null!==e.chartInstance)return e.chartInstance.findPaneByName(t)}}));
|
package/index.d.mts
CHANGED
|
@@ -2063,6 +2063,30 @@ export declare interface ChartNavigatorSeriesProps {
|
|
|
2063
2063
|
children?: React_2.ReactNode;
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* The KendoReact `ChartNoDataOverlay` component. The component is used to display an overlay with a message when the Chart has no data, no series, or all series are empty.
|
|
2068
|
+
* The overlay will be automatically cleared if the series receive data.
|
|
2069
|
+
*/
|
|
2070
|
+
export declare const ChartNoDataOverlay: React_2.FunctionComponent<any>;
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* The props of the `ChartNoDataOverlay` component.
|
|
2074
|
+
*/
|
|
2075
|
+
export declare interface ChartNoDataOverlayProps {
|
|
2076
|
+
/**
|
|
2077
|
+
* The styles that are applied to the component.
|
|
2078
|
+
*/
|
|
2079
|
+
style?: React_2.CSSProperties;
|
|
2080
|
+
/**
|
|
2081
|
+
* Sets additional CSS classes to the component.
|
|
2082
|
+
*/
|
|
2083
|
+
className?: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* The content of the overlay. If not set, the default message will be displayed.
|
|
2086
|
+
*/
|
|
2087
|
+
children?: React_2.ReactNode;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2066
2090
|
export declare const ChartPane: React_2.FunctionComponent<ChartPaneProps>;
|
|
2067
2091
|
|
|
2068
2092
|
export declare const ChartPaneDefaults: React_2.FunctionComponent<ChartPaneDefaultsProps>;
|
package/index.d.ts
CHANGED
|
@@ -2063,6 +2063,30 @@ export declare interface ChartNavigatorSeriesProps {
|
|
|
2063
2063
|
children?: React_2.ReactNode;
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* The KendoReact `ChartNoDataOverlay` component. The component is used to display an overlay with a message when the Chart has no data, no series, or all series are empty.
|
|
2068
|
+
* The overlay will be automatically cleared if the series receive data.
|
|
2069
|
+
*/
|
|
2070
|
+
export declare const ChartNoDataOverlay: React_2.FunctionComponent<any>;
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* The props of the `ChartNoDataOverlay` component.
|
|
2074
|
+
*/
|
|
2075
|
+
export declare interface ChartNoDataOverlayProps {
|
|
2076
|
+
/**
|
|
2077
|
+
* The styles that are applied to the component.
|
|
2078
|
+
*/
|
|
2079
|
+
style?: React_2.CSSProperties;
|
|
2080
|
+
/**
|
|
2081
|
+
* Sets additional CSS classes to the component.
|
|
2082
|
+
*/
|
|
2083
|
+
className?: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* The content of the overlay. If not set, the default message will be displayed.
|
|
2086
|
+
*/
|
|
2087
|
+
children?: React_2.ReactNode;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2066
2090
|
export declare const ChartPane: React_2.FunctionComponent<ChartPaneProps>;
|
|
2067
2091
|
|
|
2068
2092
|
export declare const ChartPaneDefaults: React_2.FunctionComponent<ChartPaneDefaultsProps>;
|
package/index.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 r=require("./Chart.js"),t=require("./Sparkline.js"),i=require("./StockChart.js"),s=require("./components/base/CollectionConfigurationComponent.js"),a=require("./components/base/ConfigurationComponent.js"),o=require("./DonutCenter.js"),n=require("./tooltip/Point.js"),C=require("./tooltip/Series.js"),l=require("./tooltip/Crosshair.js"),h=require("./tooltip/Popup.js"),u=require("./tooltip/SharedTooltipContent.js"),c=require("./tooltip/CrosshairContainer.js"),q=require("./ChartBreadcrumb.js"),e=require("./methods/index.js"),A=require("./components/axis-defaults/Title.js"),x=require("./components/axis-defaults/Labels.js"),v=require("./components/axis-defaults/Crosshair.js"),g=require("./components/axis-defaults/CrosshairTooltip.js"),S=require("./components/category-axis-item/Crosshair.js"),E=require("./components/category-axis-item/CrosshairTooltip.js"),N=require("./components/category-axis-item/Title.js"),m=require("./components/category-axis-item/Labels.js"),T=require("./components/category-axis-item/Notes.js"),L=require("./components/category-axis-item/NotesIcon.js"),b=require("./components/category-axis-item/NotesLabel.js"),d=require("./components/category-axis-item/RangeLabels.js"),p=require("./components/pane-defaults/Title.js"),I=require("./components/legend/Item.js"),$=require("./components/legend/Title.js"),y=require("./components/legend/InactiveItems.js"),D=require("./components/series-item/Tooltip.js"),f=require("./components/series-item/Outliers.js"),P=require("./components/series-item/Notes.js"),k=require("./components/series-item/Markers.js"),V=require("./components/series-item/Labels.js"),X=require("./components/series-item/Highlight.js"),Y=require("./components/series-item/Extremes.js"),H=require("./components/series-item/ErrorBars.js"),B=require("./components/series-item/LabelsFrom.js"),Z=require("./components/series-item/LabelsTo.js"),w=require("./components/series-item/NotesLabel.js"),F=require("./components/series-item/NotesIcon.js"),R=require("./components/value-axis-item/Crosshair.js"),M=require("./components/value-axis-item/CrosshairTooltip.js"),O=require("./components/value-axis-item/Title.js"),z=require("./components/value-axis-item/Labels.js"),j=require("./components/value-axis-item/Notes.js"),G=require("./components/value-axis-item/NotesIcon.js"),J=require("./components/value-axis-item/NotesLabel.js"),K=require("./components/x-axis-item/Crosshair.js"),Q=require("./components/x-axis-item/CrosshairTooltip.js"),U=require("./components/x-axis-item/Title.js"),W=require("./components/x-axis-item/Labels.js"),_=require("./components/x-axis-item/Notes.js"),ee=require("./components/x-axis-item/NotesIcon.js"),re=require("./components/x-axis-item/NotesLabel.js"),te=require("./components/y-axis-item/Crosshair.js"),ie=require("./components/y-axis-item/CrosshairTooltip.js"),se=require("./components/y-axis-item/Title.js"),ae=require("./components/y-axis-item/Labels.js"),oe=require("./components/y-axis-item/Notes.js"),ne=require("./components/y-axis-item/NotesIcon.js"),Ce=require("./components/y-axis-item/NotesLabel.js"),le=require("./components/navigator/CategoryAxis.js"),he=require("./components/navigator/Hint.js"),ue=require("./components/navigator/Pane.js"),ce=require("./components/navigator/Select.js"),qe=require("./components/navigator/Series.js"),Ae=require("./components/navigator/SeriesItem.js"),xe=require("./components/ChartArea.js"),ve=require("./components/AxisDefaults.js"),ge=require("./components/CategoryAxis.js"),Se=require("./components/CategoryAxisItem.js"),Ee=require("./components/Legend.js"),Ne=require("./components/Navigator.js"),me=require("./components/Pane.js"),Te=require("./components/PaneDefaults.js"),Le=require("./components/Panes.js"),be=require("./components/PlotArea.js"),de=require("./components/Series.js"),pe=require("./components/SeriesDefaults.js"),Ie=require("./components/SeriesItem.js"),$e=require("./components/Subtitle.js"),ye=require("./components/Title.js"),De=require("./components/Tooltip.js"),fe=require("./components/ValueAxis.js"),Pe=require("./components/ValueAxisItem.js"),ke=require("./components/XAxis.js"),Ve=require("./components/XAxisItem.js"),Xe=require("./components/YAxis.js"),Ye=require("./components/YAxisItem.js"),He=require("./components/Zoomable.js"),Be=require("./events/axis-label-click-event.js"),Ze=require("./events/drag-end-event.js"),we=require("./events/drag-event.js"),Fe=require("./events/drag-start-event.js"),Re=require("./events/drilldown-event.js"),Me=require("./events/drilldown-state-change-event.js"),Oe=require("./events/legend-item-click-event.js"),ze=require("./events/legend-item-hover-event.js"),je=require("./events/navigator-filter-event.js"),Ge=require("./events/note-click-event.js"),Je=require("./events/note-hover-event.js"),Ke=require("./events/plot-area-click-event.js"),Qe=require("./events/plot-area-hover-event.js"),Ue=require("./events/render-event.js"),We=require("./events/select-end-event.js"),_e=require("./events/select-event.js"),er=require("./events/select-start-event.js"),rr=require("./events/series-click-event.js"),tr=require("./events/series-hover-event.js"),ir=require("./events/zoom-end-event.js"),sr=require("./events/zoom-event.js"),ar=require("./events/zoom-start-event.js"),or=require("./sankey/Sankey.js"),nr=require("./sankey/utils.js");exports.Chart=r.Chart;exports.Sparkline=t.Sparkline;exports.StockChart=i.StockChart;exports.CollectionConfigurationComponent=s.CollectionConfigurationComponent;exports.ConfigurationComponent=a.ConfigurationComponent;exports.DonutCenter=o.DonutCenter;exports.TooltipPoint=n.TooltipPoint;exports.SeriesTooltip=C.SeriesTooltip;exports.CrosshairTooltip=l.CrosshairTooltip;exports.TooltipPopup=h.TooltipPopup;exports.SharedTooltipContent=u.SharedTooltipContent;exports.CrosshairTooltipContainer=c.CrosshairTooltipContainer;exports.ChartBreadcrumb=q.ChartBreadcrumb;exports.exportVisual=e.exportVisual;exports.findAxisByName=e.findAxisByName;exports.findPaneByIndex=e.findPaneByIndex;exports.findPaneByName=e.findPaneByName;exports.ChartAxisDefaultsTitle=A.ChartAxisDefaultsTitle;exports.ChartAxisDefaultsLabels=x.ChartAxisDefaultsLabels;exports.ChartAxisDefaultsCrosshair=v.ChartAxisDefaultsCrosshair;exports.ChartAxisDefaultsCrosshairTooltip=g.ChartAxisDefaultsCrosshairTooltip;exports.ChartCategoryAxisCrosshair=S.ChartCategoryAxisCrosshair;exports.ChartCategoryAxisCrosshairTooltip=E.ChartCategoryAxisCrosshairTooltip;exports.ChartCategoryAxisTitle=N.ChartCategoryAxisTitle;exports.ChartCategoryAxisLabels=m.ChartCategoryAxisLabels;exports.ChartCategoryAxisNotes=T.ChartCategoryAxisNotes;exports.ChartCategoryAxisNotesIcon=L.ChartCategoryAxisNotesIcon;exports.ChartCategoryAxisNotesLabel=b.ChartCategoryAxisNotesLabel;exports.ChartCategoryAxisRangeLabels=d.ChartCategoryAxisRangeLabels;exports.ChartPaneDefaultsTitle=p.ChartPaneDefaultsTitle;exports.ChartLegendItem=I.ChartLegendItem;exports.ChartLegendTitle=$.ChartLegendTitle;exports.ChartLegendInactiveItems=y.ChartLegendInactiveItems;exports.ChartSeriesItemTooltip=D.ChartSeriesItemTooltip;exports.ChartSeriesItemOutliers=f.ChartSeriesItemOutliers;exports.ChartSeriesNotes=P.ChartSeriesNotes;exports.ChartSeriesMarkers=k.ChartSeriesMarkers;exports.ChartSeriesLabels=V.ChartSeriesLabels;exports.ChartSeriesHighlight=X.ChartSeriesHighlight;exports.ChartSeriesExtremes=Y.ChartSeriesExtremes;exports.ChartSeriesErrorBars=H.ChartSeriesErrorBars;exports.ChartSeriesLabelsFrom=B.ChartSeriesLabelsFrom;exports.ChartSeriesLabelsTo=Z.ChartSeriesLabelsTo;exports.ChartSeriesNotesLabel=w.ChartSeriesNotesLabel;exports.ChartSeriesNotesIcon=F.ChartSeriesNotesIcon;exports.ChartValueAxisCrosshair=R.ChartValueAxisCrosshair;exports.ChartValueAxisCrosshairTooltip=M.ChartValueAxisCrosshairTooltip;exports.ChartValueAxisTitle=O.ChartValueAxisTitle;exports.ChartValueAxisLabels=z.ChartValueAxisLabels;exports.ChartValueAxisNotes=j.ChartValueAxisNotes;exports.ChartValueAxisNotesIcon=G.ChartValueAxisNotesIcon;exports.ChartValueAxisNotesLabel=J.ChartValueAxisNotesLabel;exports.ChartXAxisCrosshair=K.ChartXAxisCrosshair;exports.ChartXAxisCrosshairTooltip=Q.ChartXAxisCrosshairTooltip;exports.ChartXAxisTitle=U.ChartXAxisTitle;exports.ChartXAxisLabels=W.ChartXAxisLabels;exports.ChartXAxisNotes=_.ChartXAxisNotes;exports.ChartXAxisNotesIcon=ee.ChartXAxisNotesIcon;exports.ChartXAxisNotesLabel=re.ChartXAxisNotesLabel;exports.ChartYAxisCrosshair=te.ChartYAxisCrosshair;exports.ChartYAxisCrosshairTooltip=ie.ChartYAxisCrosshairTooltip;exports.ChartYAxisTitle=se.ChartYAxisTitle;exports.ChartYAxisLabels=ae.ChartYAxisLabels;exports.ChartYAxisNotes=oe.ChartYAxisNotes;exports.ChartYAxisNotesIcon=ne.ChartYAxisNotesIcon;exports.ChartYAxisNotesLabel=Ce.ChartYAxisNotesLabel;exports.ChartNavigatorCategoryAxis=le.ChartNavigatorCategoryAxis;exports.ChartNavigatorHint=he.ChartNavigatorHint;exports.ChartNavigatorPane=ue.ChartNavigatorPane;exports.ChartNavigatorSelect=ce.ChartNavigatorSelect;exports.ChartNavigatorSeries=qe.ChartNavigatorSeries;exports.ChartNavigatorSeriesItem=Ae.ChartNavigatorSeriesItem;exports.ChartArea=xe.ChartArea;exports.ChartAxisDefaults=ve.ChartAxisDefaults;exports.ChartCategoryAxis=ge.ChartCategoryAxis;exports.ChartCategoryAxisItem=Se.ChartCategoryAxisItem;exports.ChartLegend=Ee.ChartLegend;exports.ChartNavigator=Ne.ChartNavigator;exports.ChartPane=me.ChartPane;exports.ChartPaneDefaults=Te.ChartPaneDefaults;exports.ChartPanes=Le.ChartPanes;exports.ChartPlotArea=be.ChartPlotArea;exports.ChartSeries=de.ChartSeries;exports.ChartSeriesDefaults=pe.ChartSeriesDefaults;exports.ChartSeriesItem=Ie.ChartSeriesItem;exports.ChartSubtitle=$e.ChartSubtitle;exports.ChartTitle=ye.ChartTitle;exports.ChartTooltip=De.ChartTooltip;exports.ChartValueAxis=fe.ChartValueAxis;exports.ChartValueAxisItem=Pe.ChartValueAxisItem;exports.ChartXAxis=ke.ChartXAxis;exports.ChartXAxisItem=Ve.ChartXAxisItem;exports.ChartYAxis=Xe.ChartYAxis;exports.ChartYAxisItem=Ye.ChartYAxisItem;exports.ChartZoomable=He.ChartZoomable;exports.AxisLabelClickEvent=Be.AxisLabelClickEvent;exports.DragEndEvent=Ze.DragEndEvent;exports.DragEvent=we.DragEvent;exports.DragStartEvent=Fe.DragStartEvent;exports.DrilldownEvent=Re.DrilldownEvent;exports.DrilldownStateChangeEvent=Me.DrilldownStateChangeEvent;exports.LegendItemClickEvent=Oe.LegendItemClickEvent;exports.LegendItemHoverEvent=ze.LegendItemHoverEvent;exports.NavigatorFilterEvent=je.NavigatorFilterEvent;exports.NoteClickEvent=Ge.NoteClickEvent;exports.NoteHoverEvent=Je.NoteHoverEvent;exports.PlotAreaClickEvent=Ke.PlotAreaClickEvent;exports.PlotAreaHoverEvent=Qe.PlotAreaHoverEvent;exports.RenderEvent=Ue.RenderEvent;exports.SelectEndEvent=We.SelectEndEvent;exports.SelectEvent=_e.SelectEvent;exports.SelectStartEvent=er.SelectStartEvent;exports.SeriesClickEvent=rr.SeriesClickEvent;exports.SeriesHoverEvent=tr.SeriesHoverEvent;exports.ZoomEndEvent=ir.ZoomEndEvent;exports.ZoomEvent=sr.ZoomEvent;exports.ZoomStartEvent=ar.ZoomStartEvent;exports.Sankey=or.Sankey;exports.createSankeyData=nr.createSankeyData;
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Chart.js"),t=require("./Sparkline.js"),a=require("./StockChart.js"),i=require("./components/base/CollectionConfigurationComponent.js"),s=require("./components/base/ConfigurationComponent.js"),o=require("./DonutCenter.js"),n=require("./tooltip/Point.js"),C=require("./tooltip/Series.js"),l=require("./tooltip/Crosshair.js"),h=require("./tooltip/Popup.js"),u=require("./tooltip/SharedTooltipContent.js"),c=require("./tooltip/CrosshairContainer.js"),q=require("./ChartBreadcrumb.js"),A=require("./ChartNoDataOverlay.js"),e=require("./methods/index.js"),x=require("./components/axis-defaults/Title.js"),v=require("./components/axis-defaults/Labels.js"),g=require("./components/axis-defaults/Crosshair.js"),S=require("./components/axis-defaults/CrosshairTooltip.js"),E=require("./components/category-axis-item/Crosshair.js"),N=require("./components/category-axis-item/CrosshairTooltip.js"),m=require("./components/category-axis-item/Title.js"),T=require("./components/category-axis-item/Labels.js"),L=require("./components/category-axis-item/Notes.js"),b=require("./components/category-axis-item/NotesIcon.js"),d=require("./components/category-axis-item/NotesLabel.js"),p=require("./components/category-axis-item/RangeLabels.js"),I=require("./components/pane-defaults/Title.js"),y=require("./components/legend/Item.js"),$=require("./components/legend/Title.js"),D=require("./components/legend/InactiveItems.js"),f=require("./components/series-item/Tooltip.js"),P=require("./components/series-item/Outliers.js"),k=require("./components/series-item/Notes.js"),V=require("./components/series-item/Markers.js"),X=require("./components/series-item/Labels.js"),Y=require("./components/series-item/Highlight.js"),H=require("./components/series-item/Extremes.js"),B=require("./components/series-item/ErrorBars.js"),Z=require("./components/series-item/LabelsFrom.js"),O=require("./components/series-item/LabelsTo.js"),w=require("./components/series-item/NotesLabel.js"),F=require("./components/series-item/NotesIcon.js"),R=require("./components/value-axis-item/Crosshair.js"),M=require("./components/value-axis-item/CrosshairTooltip.js"),z=require("./components/value-axis-item/Title.js"),j=require("./components/value-axis-item/Labels.js"),G=require("./components/value-axis-item/Notes.js"),J=require("./components/value-axis-item/NotesIcon.js"),K=require("./components/value-axis-item/NotesLabel.js"),Q=require("./components/x-axis-item/Crosshair.js"),U=require("./components/x-axis-item/CrosshairTooltip.js"),W=require("./components/x-axis-item/Title.js"),_=require("./components/x-axis-item/Labels.js"),ee=require("./components/x-axis-item/Notes.js"),re=require("./components/x-axis-item/NotesIcon.js"),te=require("./components/x-axis-item/NotesLabel.js"),ae=require("./components/y-axis-item/Crosshair.js"),ie=require("./components/y-axis-item/CrosshairTooltip.js"),se=require("./components/y-axis-item/Title.js"),oe=require("./components/y-axis-item/Labels.js"),ne=require("./components/y-axis-item/Notes.js"),Ce=require("./components/y-axis-item/NotesIcon.js"),le=require("./components/y-axis-item/NotesLabel.js"),he=require("./components/navigator/CategoryAxis.js"),ue=require("./components/navigator/Hint.js"),ce=require("./components/navigator/Pane.js"),qe=require("./components/navigator/Select.js"),Ae=require("./components/navigator/Series.js"),xe=require("./components/navigator/SeriesItem.js"),ve=require("./components/ChartArea.js"),ge=require("./components/AxisDefaults.js"),Se=require("./components/CategoryAxis.js"),Ee=require("./components/CategoryAxisItem.js"),Ne=require("./components/Legend.js"),me=require("./components/Navigator.js"),Te=require("./components/Pane.js"),Le=require("./components/PaneDefaults.js"),be=require("./components/Panes.js"),de=require("./components/PlotArea.js"),pe=require("./components/Series.js"),Ie=require("./components/SeriesDefaults.js"),ye=require("./components/SeriesItem.js"),$e=require("./components/Subtitle.js"),De=require("./components/Title.js"),fe=require("./components/Tooltip.js"),Pe=require("./components/ValueAxis.js"),ke=require("./components/ValueAxisItem.js"),Ve=require("./components/XAxis.js"),Xe=require("./components/XAxisItem.js"),Ye=require("./components/YAxis.js"),He=require("./components/YAxisItem.js"),Be=require("./components/Zoomable.js"),Ze=require("./events/axis-label-click-event.js"),Oe=require("./events/drag-end-event.js"),we=require("./events/drag-event.js"),Fe=require("./events/drag-start-event.js"),Re=require("./events/drilldown-event.js"),Me=require("./events/drilldown-state-change-event.js"),ze=require("./events/legend-item-click-event.js"),je=require("./events/legend-item-hover-event.js"),Ge=require("./events/navigator-filter-event.js"),Je=require("./events/note-click-event.js"),Ke=require("./events/note-hover-event.js"),Qe=require("./events/plot-area-click-event.js"),Ue=require("./events/plot-area-hover-event.js"),We=require("./events/render-event.js"),_e=require("./events/select-end-event.js"),er=require("./events/select-event.js"),rr=require("./events/select-start-event.js"),tr=require("./events/series-click-event.js"),ar=require("./events/series-hover-event.js"),ir=require("./events/zoom-end-event.js"),sr=require("./events/zoom-event.js"),or=require("./events/zoom-start-event.js"),nr=require("./sankey/Sankey.js"),Cr=require("./sankey/utils.js");exports.Chart=r.Chart;exports.Sparkline=t.Sparkline;exports.StockChart=a.StockChart;exports.CollectionConfigurationComponent=i.CollectionConfigurationComponent;exports.ConfigurationComponent=s.ConfigurationComponent;exports.DonutCenter=o.DonutCenter;exports.TooltipPoint=n.TooltipPoint;exports.SeriesTooltip=C.SeriesTooltip;exports.CrosshairTooltip=l.CrosshairTooltip;exports.TooltipPopup=h.TooltipPopup;exports.SharedTooltipContent=u.SharedTooltipContent;exports.CrosshairTooltipContainer=c.CrosshairTooltipContainer;exports.ChartBreadcrumb=q.ChartBreadcrumb;exports.ChartNoDataOverlay=A.ChartNoDataOverlay;exports.exportVisual=e.exportVisual;exports.findAxisByName=e.findAxisByName;exports.findPaneByIndex=e.findPaneByIndex;exports.findPaneByName=e.findPaneByName;exports.ChartAxisDefaultsTitle=x.ChartAxisDefaultsTitle;exports.ChartAxisDefaultsLabels=v.ChartAxisDefaultsLabels;exports.ChartAxisDefaultsCrosshair=g.ChartAxisDefaultsCrosshair;exports.ChartAxisDefaultsCrosshairTooltip=S.ChartAxisDefaultsCrosshairTooltip;exports.ChartCategoryAxisCrosshair=E.ChartCategoryAxisCrosshair;exports.ChartCategoryAxisCrosshairTooltip=N.ChartCategoryAxisCrosshairTooltip;exports.ChartCategoryAxisTitle=m.ChartCategoryAxisTitle;exports.ChartCategoryAxisLabels=T.ChartCategoryAxisLabels;exports.ChartCategoryAxisNotes=L.ChartCategoryAxisNotes;exports.ChartCategoryAxisNotesIcon=b.ChartCategoryAxisNotesIcon;exports.ChartCategoryAxisNotesLabel=d.ChartCategoryAxisNotesLabel;exports.ChartCategoryAxisRangeLabels=p.ChartCategoryAxisRangeLabels;exports.ChartPaneDefaultsTitle=I.ChartPaneDefaultsTitle;exports.ChartLegendItem=y.ChartLegendItem;exports.ChartLegendTitle=$.ChartLegendTitle;exports.ChartLegendInactiveItems=D.ChartLegendInactiveItems;exports.ChartSeriesItemTooltip=f.ChartSeriesItemTooltip;exports.ChartSeriesItemOutliers=P.ChartSeriesItemOutliers;exports.ChartSeriesNotes=k.ChartSeriesNotes;exports.ChartSeriesMarkers=V.ChartSeriesMarkers;exports.ChartSeriesLabels=X.ChartSeriesLabels;exports.ChartSeriesHighlight=Y.ChartSeriesHighlight;exports.ChartSeriesExtremes=H.ChartSeriesExtremes;exports.ChartSeriesErrorBars=B.ChartSeriesErrorBars;exports.ChartSeriesLabelsFrom=Z.ChartSeriesLabelsFrom;exports.ChartSeriesLabelsTo=O.ChartSeriesLabelsTo;exports.ChartSeriesNotesLabel=w.ChartSeriesNotesLabel;exports.ChartSeriesNotesIcon=F.ChartSeriesNotesIcon;exports.ChartValueAxisCrosshair=R.ChartValueAxisCrosshair;exports.ChartValueAxisCrosshairTooltip=M.ChartValueAxisCrosshairTooltip;exports.ChartValueAxisTitle=z.ChartValueAxisTitle;exports.ChartValueAxisLabels=j.ChartValueAxisLabels;exports.ChartValueAxisNotes=G.ChartValueAxisNotes;exports.ChartValueAxisNotesIcon=J.ChartValueAxisNotesIcon;exports.ChartValueAxisNotesLabel=K.ChartValueAxisNotesLabel;exports.ChartXAxisCrosshair=Q.ChartXAxisCrosshair;exports.ChartXAxisCrosshairTooltip=U.ChartXAxisCrosshairTooltip;exports.ChartXAxisTitle=W.ChartXAxisTitle;exports.ChartXAxisLabels=_.ChartXAxisLabels;exports.ChartXAxisNotes=ee.ChartXAxisNotes;exports.ChartXAxisNotesIcon=re.ChartXAxisNotesIcon;exports.ChartXAxisNotesLabel=te.ChartXAxisNotesLabel;exports.ChartYAxisCrosshair=ae.ChartYAxisCrosshair;exports.ChartYAxisCrosshairTooltip=ie.ChartYAxisCrosshairTooltip;exports.ChartYAxisTitle=se.ChartYAxisTitle;exports.ChartYAxisLabels=oe.ChartYAxisLabels;exports.ChartYAxisNotes=ne.ChartYAxisNotes;exports.ChartYAxisNotesIcon=Ce.ChartYAxisNotesIcon;exports.ChartYAxisNotesLabel=le.ChartYAxisNotesLabel;exports.ChartNavigatorCategoryAxis=he.ChartNavigatorCategoryAxis;exports.ChartNavigatorHint=ue.ChartNavigatorHint;exports.ChartNavigatorPane=ce.ChartNavigatorPane;exports.ChartNavigatorSelect=qe.ChartNavigatorSelect;exports.ChartNavigatorSeries=Ae.ChartNavigatorSeries;exports.ChartNavigatorSeriesItem=xe.ChartNavigatorSeriesItem;exports.ChartArea=ve.ChartArea;exports.ChartAxisDefaults=ge.ChartAxisDefaults;exports.ChartCategoryAxis=Se.ChartCategoryAxis;exports.ChartCategoryAxisItem=Ee.ChartCategoryAxisItem;exports.ChartLegend=Ne.ChartLegend;exports.ChartNavigator=me.ChartNavigator;exports.ChartPane=Te.ChartPane;exports.ChartPaneDefaults=Le.ChartPaneDefaults;exports.ChartPanes=be.ChartPanes;exports.ChartPlotArea=de.ChartPlotArea;exports.ChartSeries=pe.ChartSeries;exports.ChartSeriesDefaults=Ie.ChartSeriesDefaults;exports.ChartSeriesItem=ye.ChartSeriesItem;exports.ChartSubtitle=$e.ChartSubtitle;exports.ChartTitle=De.ChartTitle;exports.ChartTooltip=fe.ChartTooltip;exports.ChartValueAxis=Pe.ChartValueAxis;exports.ChartValueAxisItem=ke.ChartValueAxisItem;exports.ChartXAxis=Ve.ChartXAxis;exports.ChartXAxisItem=Xe.ChartXAxisItem;exports.ChartYAxis=Ye.ChartYAxis;exports.ChartYAxisItem=He.ChartYAxisItem;exports.ChartZoomable=Be.ChartZoomable;exports.AxisLabelClickEvent=Ze.AxisLabelClickEvent;exports.DragEndEvent=Oe.DragEndEvent;exports.DragEvent=we.DragEvent;exports.DragStartEvent=Fe.DragStartEvent;exports.DrilldownEvent=Re.DrilldownEvent;exports.DrilldownStateChangeEvent=Me.DrilldownStateChangeEvent;exports.LegendItemClickEvent=ze.LegendItemClickEvent;exports.LegendItemHoverEvent=je.LegendItemHoverEvent;exports.NavigatorFilterEvent=Ge.NavigatorFilterEvent;exports.NoteClickEvent=Je.NoteClickEvent;exports.NoteHoverEvent=Ke.NoteHoverEvent;exports.PlotAreaClickEvent=Qe.PlotAreaClickEvent;exports.PlotAreaHoverEvent=Ue.PlotAreaHoverEvent;exports.RenderEvent=We.RenderEvent;exports.SelectEndEvent=_e.SelectEndEvent;exports.SelectEvent=er.SelectEvent;exports.SelectStartEvent=rr.SelectStartEvent;exports.SeriesClickEvent=tr.SeriesClickEvent;exports.SeriesHoverEvent=ar.SeriesHoverEvent;exports.ZoomEndEvent=ir.ZoomEndEvent;exports.ZoomEvent=sr.ZoomEvent;exports.ZoomStartEvent=or.ZoomStartEvent;exports.Sankey=nr.Sankey;exports.createSankeyData=Cr.createSankeyData;
|
package/index.mjs
CHANGED
|
@@ -15,231 +15,233 @@ import { DonutCenter as h } from "./DonutCenter.mjs";
|
|
|
15
15
|
import { TooltipPoint as n } from "./tooltip/Point.mjs";
|
|
16
16
|
import { SeriesTooltip as v } from "./tooltip/Series.mjs";
|
|
17
17
|
import { CrosshairTooltip as S } from "./tooltip/Crosshair.mjs";
|
|
18
|
-
import { TooltipPopup as
|
|
18
|
+
import { TooltipPopup as E } from "./tooltip/Popup.mjs";
|
|
19
19
|
import { SharedTooltipContent as T } from "./tooltip/SharedTooltipContent.mjs";
|
|
20
20
|
import { CrosshairTooltipContainer as c } from "./tooltip/CrosshairContainer.mjs";
|
|
21
21
|
import { ChartBreadcrumb as b } from "./ChartBreadcrumb.mjs";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
22
|
+
import { ChartNoDataOverlay as y } from "./ChartNoDataOverlay.mjs";
|
|
23
|
+
import { exportVisual as P, findAxisByName as k, findPaneByIndex as V, findPaneByName as X } from "./methods/index.mjs";
|
|
24
|
+
import { ChartAxisDefaultsTitle as H } from "./components/axis-defaults/Title.mjs";
|
|
25
|
+
import { ChartAxisDefaultsLabels as Z } from "./components/axis-defaults/Labels.mjs";
|
|
26
|
+
import { ChartAxisDefaultsCrosshair as F } from "./components/axis-defaults/Crosshair.mjs";
|
|
27
|
+
import { ChartAxisDefaultsCrosshairTooltip as R } from "./components/axis-defaults/CrosshairTooltip.mjs";
|
|
28
|
+
import { ChartCategoryAxisCrosshair as j } from "./components/category-axis-item/Crosshair.mjs";
|
|
29
|
+
import { ChartCategoryAxisCrosshairTooltip as z } from "./components/category-axis-item/CrosshairTooltip.mjs";
|
|
30
|
+
import { ChartCategoryAxisTitle as J } from "./components/category-axis-item/Title.mjs";
|
|
31
|
+
import { ChartCategoryAxisLabels as Q } from "./components/category-axis-item/Labels.mjs";
|
|
32
|
+
import { ChartCategoryAxisNotes as W } from "./components/category-axis-item/Notes.mjs";
|
|
33
|
+
import { ChartCategoryAxisNotesIcon as $ } from "./components/category-axis-item/NotesIcon.mjs";
|
|
34
|
+
import { ChartCategoryAxisNotesLabel as or } from "./components/category-axis-item/NotesLabel.mjs";
|
|
35
|
+
import { ChartCategoryAxisRangeLabels as er } from "./components/category-axis-item/RangeLabels.mjs";
|
|
36
|
+
import { ChartPaneDefaultsTitle as xr } from "./components/pane-defaults/Title.mjs";
|
|
37
|
+
import { ChartLegendItem as pr } from "./components/legend/Item.mjs";
|
|
38
|
+
import { ChartLegendTitle as fr } from "./components/legend/Title.mjs";
|
|
39
|
+
import { ChartLegendInactiveItems as Cr } from "./components/legend/InactiveItems.mjs";
|
|
40
|
+
import { ChartSeriesItemTooltip as lr } from "./components/series-item/Tooltip.mjs";
|
|
41
|
+
import { ChartSeriesItemOutliers as Ar } from "./components/series-item/Outliers.mjs";
|
|
42
|
+
import { ChartSeriesNotes as gr } from "./components/series-item/Notes.mjs";
|
|
43
|
+
import { ChartSeriesMarkers as Nr } from "./components/series-item/Markers.mjs";
|
|
44
|
+
import { ChartSeriesLabels as ur } from "./components/series-item/Labels.mjs";
|
|
45
|
+
import { ChartSeriesHighlight as Lr } from "./components/series-item/Highlight.mjs";
|
|
46
|
+
import { ChartSeriesExtremes as Ir } from "./components/series-item/Extremes.mjs";
|
|
47
|
+
import { ChartSeriesErrorBars as dr } from "./components/series-item/ErrorBars.mjs";
|
|
48
|
+
import { ChartSeriesLabelsFrom as Dr } from "./components/series-item/LabelsFrom.mjs";
|
|
49
|
+
import { ChartSeriesLabelsTo as kr } from "./components/series-item/LabelsTo.mjs";
|
|
50
|
+
import { ChartSeriesNotesLabel as Xr } from "./components/series-item/NotesLabel.mjs";
|
|
51
|
+
import { ChartSeriesNotesIcon as Hr } from "./components/series-item/NotesIcon.mjs";
|
|
52
|
+
import { ChartValueAxisCrosshair as Zr } from "./components/value-axis-item/Crosshair.mjs";
|
|
53
|
+
import { ChartValueAxisCrosshairTooltip as Fr } from "./components/value-axis-item/CrosshairTooltip.mjs";
|
|
54
|
+
import { ChartValueAxisTitle as Rr } from "./components/value-axis-item/Title.mjs";
|
|
55
|
+
import { ChartValueAxisLabels as jr } from "./components/value-axis-item/Labels.mjs";
|
|
56
|
+
import { ChartValueAxisNotes as zr } from "./components/value-axis-item/Notes.mjs";
|
|
57
|
+
import { ChartValueAxisNotesIcon as Jr } from "./components/value-axis-item/NotesIcon.mjs";
|
|
58
|
+
import { ChartValueAxisNotesLabel as Qr } from "./components/value-axis-item/NotesLabel.mjs";
|
|
59
|
+
import { ChartXAxisCrosshair as Wr } from "./components/x-axis-item/Crosshair.mjs";
|
|
60
|
+
import { ChartXAxisCrosshairTooltip as $r } from "./components/x-axis-item/CrosshairTooltip.mjs";
|
|
61
|
+
import { ChartXAxisTitle as oo } from "./components/x-axis-item/Title.mjs";
|
|
62
|
+
import { ChartXAxisLabels as eo } from "./components/x-axis-item/Labels.mjs";
|
|
63
|
+
import { ChartXAxisNotes as xo } from "./components/x-axis-item/Notes.mjs";
|
|
64
|
+
import { ChartXAxisNotesIcon as po } from "./components/x-axis-item/NotesIcon.mjs";
|
|
65
|
+
import { ChartXAxisNotesLabel as fo } from "./components/x-axis-item/NotesLabel.mjs";
|
|
66
|
+
import { ChartYAxisCrosshair as Co } from "./components/y-axis-item/Crosshair.mjs";
|
|
67
|
+
import { ChartYAxisCrosshairTooltip as lo } from "./components/y-axis-item/CrosshairTooltip.mjs";
|
|
68
|
+
import { ChartYAxisTitle as Ao } from "./components/y-axis-item/Title.mjs";
|
|
69
|
+
import { ChartYAxisLabels as go } from "./components/y-axis-item/Labels.mjs";
|
|
70
|
+
import { ChartYAxisNotes as No } from "./components/y-axis-item/Notes.mjs";
|
|
71
|
+
import { ChartYAxisNotesIcon as uo } from "./components/y-axis-item/NotesIcon.mjs";
|
|
72
|
+
import { ChartYAxisNotesLabel as Lo } from "./components/y-axis-item/NotesLabel.mjs";
|
|
73
|
+
import { ChartNavigatorCategoryAxis as Io } from "./components/navigator/CategoryAxis.mjs";
|
|
74
|
+
import { ChartNavigatorHint as yo } from "./components/navigator/Hint.mjs";
|
|
75
|
+
import { ChartNavigatorPane as Po } from "./components/navigator/Pane.mjs";
|
|
76
|
+
import { ChartNavigatorSelect as Vo } from "./components/navigator/Select.mjs";
|
|
77
|
+
import { ChartNavigatorSeries as Yo } from "./components/navigator/Series.mjs";
|
|
78
|
+
import { ChartNavigatorSeriesItem as Bo } from "./components/navigator/SeriesItem.mjs";
|
|
79
|
+
import { ChartArea as wo } from "./components/ChartArea.mjs";
|
|
80
|
+
import { ChartAxisDefaults as Oo } from "./components/AxisDefaults.mjs";
|
|
81
|
+
import { ChartCategoryAxis as Mo } from "./components/CategoryAxis.mjs";
|
|
82
|
+
import { ChartCategoryAxisItem as qo } from "./components/CategoryAxisItem.mjs";
|
|
83
|
+
import { ChartLegend as Go } from "./components/Legend.mjs";
|
|
84
|
+
import { ChartNavigator as Ko } from "./components/Navigator.mjs";
|
|
85
|
+
import { ChartPane as Uo } from "./components/Pane.mjs";
|
|
86
|
+
import { ChartPaneDefaults as _o } from "./components/PaneDefaults.mjs";
|
|
87
|
+
import { ChartPanes as rt } from "./components/Panes.mjs";
|
|
88
|
+
import { ChartPlotArea as tt } from "./components/PlotArea.mjs";
|
|
89
|
+
import { ChartSeries as at } from "./components/Series.mjs";
|
|
90
|
+
import { ChartSeriesDefaults as mt } from "./components/SeriesDefaults.mjs";
|
|
91
|
+
import { ChartSeriesItem as it } from "./components/SeriesItem.mjs";
|
|
92
|
+
import { ChartSubtitle as st } from "./components/Subtitle.mjs";
|
|
93
|
+
import { ChartTitle as ht } from "./components/Title.mjs";
|
|
94
|
+
import { ChartTooltip as nt } from "./components/Tooltip.mjs";
|
|
95
|
+
import { ChartValueAxis as vt } from "./components/ValueAxis.mjs";
|
|
96
|
+
import { ChartValueAxisItem as St } from "./components/ValueAxisItem.mjs";
|
|
97
|
+
import { ChartXAxis as Et } from "./components/XAxis.mjs";
|
|
98
|
+
import { ChartXAxisItem as Tt } from "./components/XAxisItem.mjs";
|
|
99
|
+
import { ChartYAxis as ct } from "./components/YAxis.mjs";
|
|
100
|
+
import { ChartYAxisItem as bt } from "./components/YAxisItem.mjs";
|
|
101
|
+
import { ChartZoomable as yt } from "./components/Zoomable.mjs";
|
|
102
|
+
import { AxisLabelClickEvent as Pt } from "./events/axis-label-click-event.mjs";
|
|
103
|
+
import { DragEndEvent as Vt } from "./events/drag-end-event.mjs";
|
|
104
|
+
import { DragEvent as Yt } from "./events/drag-event.mjs";
|
|
105
|
+
import { DragStartEvent as Bt } from "./events/drag-start-event.mjs";
|
|
106
|
+
import { DrilldownEvent as wt } from "./events/drilldown-event.mjs";
|
|
107
|
+
import { DrilldownStateChangeEvent as Ot } from "./events/drilldown-state-change-event.mjs";
|
|
108
|
+
import { LegendItemClickEvent as Mt } from "./events/legend-item-click-event.mjs";
|
|
109
|
+
import { LegendItemHoverEvent as qt } from "./events/legend-item-hover-event.mjs";
|
|
110
|
+
import { NavigatorFilterEvent as Gt } from "./events/navigator-filter-event.mjs";
|
|
111
|
+
import { NoteClickEvent as Kt } from "./events/note-click-event.mjs";
|
|
112
|
+
import { NoteHoverEvent as Ut } from "./events/note-hover-event.mjs";
|
|
113
|
+
import { PlotAreaClickEvent as _t } from "./events/plot-area-click-event.mjs";
|
|
114
|
+
import { PlotAreaHoverEvent as re } from "./events/plot-area-hover-event.mjs";
|
|
115
|
+
import { RenderEvent as te } from "./events/render-event.mjs";
|
|
116
|
+
import { SelectEndEvent as ae } from "./events/select-end-event.mjs";
|
|
117
|
+
import { SelectEvent as me } from "./events/select-event.mjs";
|
|
118
|
+
import { SelectStartEvent as ie } from "./events/select-start-event.mjs";
|
|
119
|
+
import { SeriesClickEvent as se } from "./events/series-click-event.mjs";
|
|
120
|
+
import { SeriesHoverEvent as he } from "./events/series-hover-event.mjs";
|
|
121
|
+
import { ZoomEndEvent as ne } from "./events/zoom-end-event.mjs";
|
|
122
|
+
import { ZoomEvent as ve } from "./events/zoom-event.mjs";
|
|
123
|
+
import { ZoomStartEvent as Se } from "./events/zoom-start-event.mjs";
|
|
124
|
+
import { Sankey as Ee } from "./sankey/Sankey.mjs";
|
|
125
|
+
import { createSankeyData as Te } from "./sankey/utils.mjs";
|
|
125
126
|
export {
|
|
126
|
-
|
|
127
|
+
Pt as AxisLabelClickEvent,
|
|
127
128
|
t as Chart,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
wo as ChartArea,
|
|
130
|
+
Oo as ChartAxisDefaults,
|
|
131
|
+
F as ChartAxisDefaultsCrosshair,
|
|
132
|
+
R as ChartAxisDefaultsCrosshairTooltip,
|
|
133
|
+
Z as ChartAxisDefaultsLabels,
|
|
134
|
+
H as ChartAxisDefaultsTitle,
|
|
134
135
|
b as ChartBreadcrumb,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Uo as
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
rt as
|
|
161
|
-
tt as
|
|
162
|
-
at as
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Dr as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
st as
|
|
178
|
-
ht as
|
|
179
|
-
nt as
|
|
180
|
-
|
|
181
|
-
Zr as
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
jr as
|
|
185
|
-
zr as
|
|
186
|
-
Jr as
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
Wr as
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
eo as
|
|
194
|
-
xo as
|
|
195
|
-
po as
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Co as
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
go as
|
|
203
|
-
|
|
204
|
-
uo as
|
|
205
|
-
|
|
206
|
-
|
|
136
|
+
Mo as ChartCategoryAxis,
|
|
137
|
+
j as ChartCategoryAxisCrosshair,
|
|
138
|
+
z as ChartCategoryAxisCrosshairTooltip,
|
|
139
|
+
qo as ChartCategoryAxisItem,
|
|
140
|
+
Q as ChartCategoryAxisLabels,
|
|
141
|
+
W as ChartCategoryAxisNotes,
|
|
142
|
+
$ as ChartCategoryAxisNotesIcon,
|
|
143
|
+
or as ChartCategoryAxisNotesLabel,
|
|
144
|
+
er as ChartCategoryAxisRangeLabels,
|
|
145
|
+
J as ChartCategoryAxisTitle,
|
|
146
|
+
Go as ChartLegend,
|
|
147
|
+
Cr as ChartLegendInactiveItems,
|
|
148
|
+
pr as ChartLegendItem,
|
|
149
|
+
fr as ChartLegendTitle,
|
|
150
|
+
Ko as ChartNavigator,
|
|
151
|
+
Io as ChartNavigatorCategoryAxis,
|
|
152
|
+
yo as ChartNavigatorHint,
|
|
153
|
+
Po as ChartNavigatorPane,
|
|
154
|
+
Vo as ChartNavigatorSelect,
|
|
155
|
+
Yo as ChartNavigatorSeries,
|
|
156
|
+
Bo as ChartNavigatorSeriesItem,
|
|
157
|
+
y as ChartNoDataOverlay,
|
|
158
|
+
Uo as ChartPane,
|
|
159
|
+
_o as ChartPaneDefaults,
|
|
160
|
+
xr as ChartPaneDefaultsTitle,
|
|
161
|
+
rt as ChartPanes,
|
|
162
|
+
tt as ChartPlotArea,
|
|
163
|
+
at as ChartSeries,
|
|
164
|
+
mt as ChartSeriesDefaults,
|
|
165
|
+
dr as ChartSeriesErrorBars,
|
|
166
|
+
Ir as ChartSeriesExtremes,
|
|
167
|
+
Lr as ChartSeriesHighlight,
|
|
168
|
+
it as ChartSeriesItem,
|
|
169
|
+
Ar as ChartSeriesItemOutliers,
|
|
170
|
+
lr as ChartSeriesItemTooltip,
|
|
171
|
+
ur as ChartSeriesLabels,
|
|
172
|
+
Dr as ChartSeriesLabelsFrom,
|
|
173
|
+
kr as ChartSeriesLabelsTo,
|
|
174
|
+
Nr as ChartSeriesMarkers,
|
|
175
|
+
gr as ChartSeriesNotes,
|
|
176
|
+
Hr as ChartSeriesNotesIcon,
|
|
177
|
+
Xr as ChartSeriesNotesLabel,
|
|
178
|
+
st as ChartSubtitle,
|
|
179
|
+
ht as ChartTitle,
|
|
180
|
+
nt as ChartTooltip,
|
|
181
|
+
vt as ChartValueAxis,
|
|
182
|
+
Zr as ChartValueAxisCrosshair,
|
|
183
|
+
Fr as ChartValueAxisCrosshairTooltip,
|
|
184
|
+
St as ChartValueAxisItem,
|
|
185
|
+
jr as ChartValueAxisLabels,
|
|
186
|
+
zr as ChartValueAxisNotes,
|
|
187
|
+
Jr as ChartValueAxisNotesIcon,
|
|
188
|
+
Qr as ChartValueAxisNotesLabel,
|
|
189
|
+
Rr as ChartValueAxisTitle,
|
|
190
|
+
Et as ChartXAxis,
|
|
191
|
+
Wr as ChartXAxisCrosshair,
|
|
192
|
+
$r as ChartXAxisCrosshairTooltip,
|
|
193
|
+
Tt as ChartXAxisItem,
|
|
194
|
+
eo as ChartXAxisLabels,
|
|
195
|
+
xo as ChartXAxisNotes,
|
|
196
|
+
po as ChartXAxisNotesIcon,
|
|
197
|
+
fo as ChartXAxisNotesLabel,
|
|
198
|
+
oo as ChartXAxisTitle,
|
|
199
|
+
ct as ChartYAxis,
|
|
200
|
+
Co as ChartYAxisCrosshair,
|
|
201
|
+
lo as ChartYAxisCrosshairTooltip,
|
|
202
|
+
bt as ChartYAxisItem,
|
|
203
|
+
go as ChartYAxisLabels,
|
|
204
|
+
No as ChartYAxisNotes,
|
|
205
|
+
uo as ChartYAxisNotesIcon,
|
|
206
|
+
Lo as ChartYAxisNotesLabel,
|
|
207
|
+
Ao as ChartYAxisTitle,
|
|
208
|
+
yt as ChartZoomable,
|
|
207
209
|
i as CollectionConfigurationComponent,
|
|
208
210
|
s as ConfigurationComponent,
|
|
209
211
|
S as CrosshairTooltip,
|
|
210
212
|
c as CrosshairTooltipContainer,
|
|
211
213
|
h as DonutCenter,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
214
|
+
Vt as DragEndEvent,
|
|
215
|
+
Yt as DragEvent,
|
|
216
|
+
Bt as DragStartEvent,
|
|
217
|
+
wt as DrilldownEvent,
|
|
218
|
+
Ot as DrilldownStateChangeEvent,
|
|
219
|
+
Mt as LegendItemClickEvent,
|
|
220
|
+
qt as LegendItemHoverEvent,
|
|
221
|
+
Gt as NavigatorFilterEvent,
|
|
222
|
+
Kt as NoteClickEvent,
|
|
223
|
+
Ut as NoteHoverEvent,
|
|
224
|
+
_t as PlotAreaClickEvent,
|
|
225
|
+
re as PlotAreaHoverEvent,
|
|
226
|
+
te as RenderEvent,
|
|
227
|
+
Ee as Sankey,
|
|
228
|
+
ae as SelectEndEvent,
|
|
229
|
+
me as SelectEvent,
|
|
230
|
+
ie as SelectStartEvent,
|
|
231
|
+
se as SeriesClickEvent,
|
|
232
|
+
he as SeriesHoverEvent,
|
|
231
233
|
v as SeriesTooltip,
|
|
232
234
|
T as SharedTooltipContent,
|
|
233
235
|
a as Sparkline,
|
|
234
236
|
m as StockChart,
|
|
235
237
|
n as TooltipPoint,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
238
|
+
E as TooltipPopup,
|
|
239
|
+
ne as ZoomEndEvent,
|
|
240
|
+
ve as ZoomEvent,
|
|
241
|
+
Se as ZoomStartEvent,
|
|
242
|
+
Te as createSankeyData,
|
|
243
|
+
P as exportVisual,
|
|
244
|
+
k as findAxisByName,
|
|
245
|
+
V as findPaneByIndex,
|
|
246
|
+
X as findPaneByName
|
|
245
247
|
};
|
package/messages.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a="charts.nodata",e={[a]:"No data available."};exports.messages=e;exports.nodata=a;
|
package/messages.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const a = "charts.nodata", t = {
|
|
10
|
+
[a]: "No data available."
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
t as messages,
|
|
14
|
+
a as nodata
|
|
15
|
+
};
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-charts",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1730208464,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-charts",
|
|
3
|
-
"version": "9.0.0-develop.
|
|
3
|
+
"version": "9.0.0-develop.9",
|
|
4
4
|
"description": "React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@progress/kendo-drawing": "^1.21.
|
|
25
|
+
"@progress/kendo-drawing": "^1.21.1",
|
|
26
26
|
"@progress/kendo-licensing": "^1.3.4",
|
|
27
|
-
"@progress/kendo-react-common": "9.0.0-develop.
|
|
28
|
-
"@progress/kendo-react-intl": "9.0.0-develop.
|
|
29
|
-
"@progress/kendo-react-layout": "9.0.0-develop.
|
|
30
|
-
"@progress/kendo-react-popup": "9.0.0-develop.
|
|
27
|
+
"@progress/kendo-react-common": "9.0.0-develop.9",
|
|
28
|
+
"@progress/kendo-react-intl": "9.0.0-develop.9",
|
|
29
|
+
"@progress/kendo-react-layout": "9.0.0-develop.9",
|
|
30
|
+
"@progress/kendo-react-popup": "9.0.0-develop.9",
|
|
31
31
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
32
32
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
33
33
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@progress/kendo-charts": "2.6.
|
|
36
|
+
"@progress/kendo-charts": "2.6.1",
|
|
37
37
|
"prop-types": "^15.6.0"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|