vue-data-ui 2.3.2 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Arrow-B6gJebT9.js +101 -0
- package/dist/Arrow-C5yj6zwY.cjs +1 -0
- package/dist/BaseIcon-7_g11dRj.js +174 -0
- package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
- package/dist/DataTable-CwaOlAsy.js +127 -0
- package/dist/DataTable-Rm9II-m2.cjs +1 -0
- package/dist/Legend-CxvJTjEm.js +62 -0
- package/dist/Legend-D59FIuMs.cjs +1 -0
- package/dist/Shape-CVItL3vh.cjs +1 -0
- package/dist/Shape-CjLV0scA.js +107 -0
- package/dist/Slicer-Bxg5niHl.js +156 -0
- package/dist/Slicer-Cdss5Rus.cjs +1 -0
- package/dist/Title-2iks1ziC.js +46 -0
- package/dist/Title-Bb-A5OSV.cjs +1 -0
- package/dist/Tooltip-C3phqKuU.js +94 -0
- package/dist/Tooltip-C_UE6y-E.cjs +1 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
- package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
- package/dist/index-p5gfZSvB.cjs +4 -0
- package/dist/index-uOtklCCx.js +10268 -0
- package/dist/{index.es-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
- package/dist/{index.es-w_iDpZ-o.cjs → index.es-uyeSCnWE.cjs} +1 -1
- package/dist/jspdf.es.min-C660YX78.js +8038 -0
- package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
- package/dist/pdf-97UbtKC2.js +44 -0
- package/dist/pdf-Cz3729tZ.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/useNestedProp-2kIU-7On.cjs +1 -0
- package/dist/useNestedProp-BgWkUab_.js +13 -0
- package/dist/usePrinter-B6xQCyL-.js +464 -0
- package/dist/usePrinter-fZlsJid8.cjs +1 -0
- package/dist/useResponsive-B3TrDDIG.cjs +1 -0
- package/dist/useResponsive-NZB-WLRF.js +187 -0
- package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
- package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +62 -61
- package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
- package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
- package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
- package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
- package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
- package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
- package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
- package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
- package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
- package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
- package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
- package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
- package/dist/vue-ui-cursor-C96IChA3.js +229 -0
- package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
- package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
- package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
- package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
- package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
- package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
- package/dist/vue-ui-donut-B9iXisHK.js +743 -0
- package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
- package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
- package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
- package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
- package/dist/vue-ui-flow-BTivYoGd.js +454 -0
- package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
- package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
- package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
- package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
- package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
- package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
- package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
- package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
- package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
- package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
- package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
- package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
- package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
- package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
- package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
- package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
- package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
- package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
- package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
- package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
- package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
- package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
- package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
- package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
- package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
- package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
- package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
- package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
- package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
- package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
- package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
- package/dist/vue-ui-rings-CsUngX_F.js +510 -0
- package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
- package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
- package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
- package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
- package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
- package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
- package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
- package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
- package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
- package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
- package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
- package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
- package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
- package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
- package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
- package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
- package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
- package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
- package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
- package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
- package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
- package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
- package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
- package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
- package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
- package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
- package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
- package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
- package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
- package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
- package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
- package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
- package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
- package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
- package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
- package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
- package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
- package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
- package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
- package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
- package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
- package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
- package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
- package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
- package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
- package/package.json +1 -1
- package/dist/index-C6KVJkgd.cjs +0 -843
- package/dist/index-bDBuMYfe.js +0 -57303
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./index-p5gfZSvB.cjs"),X=require("./useResponsive-B3TrDDIG.cjs"),ye=require("./Title-Bb-A5OSV.cjs"),Y=require("./usePrinter-fZlsJid8.cjs"),he=require("./Tooltip-C_UE6y-E.cjs"),pe=require("./DataTable-Rm9II-m2.cjs"),ge=require("./vue-ui-skeleton-sjfOtCZr.cjs"),fe=require("./Slicer-Cdss5Rus.cjs"),me=require("./vue-ui-accordion-C_pwrAJl.cjs"),J=require("./useNestedProp-2kIU-7On.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],be=["xmlns","viewBox"],we={key:0},Ce=["id"],$e=["stop-color"],Ne=["stop-color"],_e=["stop-color"],Be=["id"],Se=["stop-color"],Ve=["stop-color"],Ee=["stop-color"],ze={key:0},Te=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Ae={key:1},Le=["x1","x2","y1","y2","stroke","stroke-width"],Re=["x","y","font-size","fill","font-weight"],Pe={key:2},Ie=["transform","text-anchor","font-size","fill","font-weight"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Me={key:0},Ue=["cx","cy","r","fill"],De=["cx","cy","r","fill"],qe={key:1},We=["x1","x2","y1","y2","stroke","stroke-width"],Ge=["x1","x2","y1","y2","stroke","stroke-width"],He=["x","y","height","width","fill","rx"],je=["x","y","height","width","fill","rx","stroke","stroke-width"],Xe=["x","y","height","width","fill","onMouseover"],Ye=["innerHTML"],Je={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(g,{expose:K}){const h=g,{vue_ui_candlestick:Q}=i.useConfig(),m=t.computed(()=>!!h.dataset&&h.dataset.length),y=t.ref(i.createUid()),Z=t.ref(null),_=t.ref(!1),B=t.ref(""),S=t.ref(void 0),T=t.ref(0),F=t.ref(0),x=t.ref(null),A=t.ref(null),L=t.ref(null),R=t.ref(null),e=t.computed(()=>{const o=J.useNestedProp({userConfig:h.config,defaultConfig:Q});return o.theme?{...J.useNestedProp({userConfig:i.themes.vue_ui_candlestick[o.theme]||h.config,defaultConfig:o})}:o}),r=t.ref({height:e.value.style.height,width:e.value.style.width,xAxisFontSize:e.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:e.value.style.layout.grid.yAxis.dataLabels.fontSize}),b=t.ref(null);t.onMounted(()=>{if(i.objectIsEmpty(h.dataset)&&i.error({componentName:"VueUiCandlestick",type:"dataset"}),e.value.responsive){const o=X.throttle(()=>{const{width:u,height:l}=X.useResponsive({chart:x.value,title:e.value.style.title.text?A.value:null,slicer:R.value,legend:L.value});r.value.width=u,r.value.height=l,r.value.xAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),r.value.yAxisFontSize=i.translateSize({relator:Math.min(u,l),adjuster:e.value.style.width,source:e.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});b.value=new ResizeObserver(o),b.value.observe(x.value.parentNode)}}),t.onBeforeUnmount(()=>{b.value&&b.value.disconnect()});const{isPrinting:ee,isImaging:te,generatePdf:P,generateImage:I}=Y.usePrinter({elementId:`vue-ui-candlestick_${y.value}`,fileName:e.value.style.title.text||"vue-ui-candlestick"}),p=t.ref({showTable:e.value.table.show,showTooltip:e.value.style.tooltip.show}),s=t.computed(()=>{const{top:o,right:u,bottom:l,left:a}=e.value.style.layout.padding;return{top:o,right:r.value.width-u,left:a,bottom:r.value.height-l,width:r.value.width-a-u,height:r.value.height-o-l}}),V=t.computed(()=>h.dataset.length),d=t.ref({start:0,end:V.value}),O=t.computed(()=>h.dataset.slice(d.value.start,d.value.end)),E=t.computed(()=>(h.dataset.forEach((o,u)=>{[null,void 0].includes(o[0])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:u}),[null,void 0].includes(o[1])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:u}),[null,void 0].includes(o[2])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:u}),[null,void 0].includes(o[3])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:u}),[null,void 0].includes(o[4])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:u}),[null,void 0].includes(o[5])&&i.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:u})}),O.value.map(o=>({period:o[0],open:o[1],high:o[2],low:o[3],last:o[4],volume:o[5]})))),n=t.computed(()=>s.value.width/O.value.length),M=t.computed(()=>({max:Math.max(...E.value.map(o=>o.high)),min:0})),f=t.computed(()=>i.calculateNiceScale(M.value.min,M.value.max,e.value.style.layout.grid.yAxis.dataLabels.steps));function w(o,u){return{...o,x:s.value.left+u*n.value+n.value/2,y:s.value.top+(1-o/f.value.max)*s.value.height,value:o}}const c=t.computed(()=>E.value.map((o,u)=>{const l=w(o.open,u),a=w(o.high,u),v=w(o.low,u),$=w(o.last,u),N=o.last>o.open;return{period:o.period,open:l,high:a,low:v,last:$,volume:o.volume,isBullish:N}}));function le(o){return o/f.value.max}const oe=t.computed(()=>f.value.ticks.map(o=>({y:s.value.bottom-s.value.height*le(o),value:o}))),ae=t.computed(()=>E.value.map(o=>o.period)),z=t.ref(null);function ue(o,u){S.value=o,z.value={datapoint:u,seriesIndex:o,series:c.value,config:e.value};const l=e.value.style.tooltip.customFormat;if(i.isFunction(l)&&i.functionReturnsString(()=>l({seriesIndex:o,datapoint:u,series:c.value,config:e.value})))B.value=l({seriesIndex:o,datapoint:u,series:c.value,config:e.value});else if(e.value.style.tooltip.show){let a="";const{period:v,open:$,high:N,low:W,last:G,volume:H,isBullish:j}=c.value[o],{period:Qe,open:ne,high:re,low:de,last:ce,volume:ve}=e.value.translations;a+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius*3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
2
|
+
fill="${e.value.style.layout.candle.gradient.show?j?`url(#bullish_gradient_${y.value})`:`url(#bearish_gradient_${y.value})`:j?e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.colors.bearish}"/></svg>${v}</div>`,a+=`${ve} : <b>${isNaN(H)?"-":Number(H.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`,a+=`<div>${ne}: <b>${e.value.style.tooltip.prefix} ${isNaN($.value)?"-":Number($.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${re}: <b>${e.value.style.tooltip.prefix} ${isNaN(N.value)?"-":Number(N.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${de}: <b>${e.value.style.tooltip.prefix} ${isNaN(W.value)?"-":Number(W.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+=`<div>${ce}: <b>${e.value.style.tooltip.prefix} ${isNaN(G.value)?"-":Number(G.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`,a+="</div>",B.value=`<div style="text-align:right">${a}</div>`}_.value=!0}function ie(){d.value={start:0,end:V.value},F.value+=1}function U(){t.nextTick(()=>{const o=[e.value.translations.period,e.value.translations.open,e.value.translations.high,e.value.translations.low,e.value.translations.last,e.value.translations.volume],u=c.value.map(v=>[v.period,v.open.value,v.high.value,v.low.value,v.last.value,v.volume]),l=[[e.value.style.title.text],[e.value.style.title.subtitle.text],[[""],[""],[""]]].concat([o]).concat(u),a=i.createCsvContent(l);i.downloadCsv({csvContent:a,title:e.value.style.title.text||"vue-ui-candlestick"})})}const C=t.computed(()=>{const o=c.value.map(a=>[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius*3}" fill="${e.value.style.layout.candle.gradient.show?a.isBullish?`url(#bullish_gradient_${y.value}`:`url(#bearish_gradient_${y.value})`:a.isBullish?e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,`${e.value.table.td.prefix} ${isNaN(a.open.value)?"-":Number(a.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.high.value)?"-":Number(a.high.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.low.value)?"-":Number(a.low.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${e.value.table.td.prefix} ${isNaN(a.last.value)?"-":Number(a.last.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,`${isNaN(a.volume)?"-":a.volume.toLocaleString()}`]),u={th:{backgroundColor:e.value.table.th.backgroundColor,color:e.value.table.th.color,outline:e.value.table.th.outline},td:{backgroundColor:e.value.table.td.backgroundColor,color:e.value.table.td.color,outline:e.value.table.td.outline},breakpoint:e.value.table.responsiveBreakpoint},l=[e.value.translations.period,e.value.translations.open,e.value.translations.high,e.value.translations.low,e.value.translations.last,e.value.translations.volume];return{head:l,body:o,config:u,colNames:l}}),k=t.ref(!1);function se(o){k.value=o,T.value+=1}function D(){p.value.showTable=!p.value.showTable}function q(){p.value.showTooltip=!p.value.showTooltip}return K({generatePdf:P,generateCsv:U,generateImage:I,toggleTable:D,toggleTooltip:q}),(o,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"candlestickChart",ref:x,class:t.normalizeClass(`vue-ui-candlestick ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${e.value.useCssAnimation?"":"vue-ui-dna"}`),style:t.normalizeStyle(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;${e.value.style.title.text?"":"padding-top:36px"};background:${e.value.style.backgroundColor}; ${e.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${y.value}`},[e.value.style.title.text?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:t.normalizeStyle(`width:100%;background:${e.value.style.backgroundColor}`)},[t.createVNode(ye._sfc_main,{config:{title:{cy:"candlestick-div-title",...e.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...e.value.style.title.subtitle}}},null,8,["config"])],4)):t.createCommentVNode("",!0),e.value.userOptions.show&&m.value?(t.openBlock(),t.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${T.value}`,backgroundColor:e.value.style.backgroundColor,color:e.value.style.color,isImaging:t.unref(te),isPrinting:t.unref(ee),uid:y.value,hasTooltip:e.value.userOptions.buttons.tooltip&&e.value.style.tooltip.show,hasPdf:e.value.userOptions.buttons.pdf,hasImg:e.value.userOptions.buttons.img,hasXls:e.value.userOptions.buttons.csv,hasTable:e.value.userOptions.buttons.table,hasFullscreen:e.value.userOptions.buttons.fullscreen,isFullscreen:k.value,isTooltip:p.value.showTooltip,titles:{...e.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:se,onGeneratePdf:t.unref(P),onGenerateCsv:U,onGenerateImage:t.unref(I),onToggleTable:D,onToggleTooltip:q},t.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[t.renderSlot(o.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:t.unref(i.XMLNS),class:t.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:t.normalizeStyle(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)},[c.value.length>0?(t.openBlock(),t.createElementBlock("g",we,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`bearish_gradient_${y.value}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.candle.colors.bearish},null,8,$e),t.createElementVNode("stop",{offset:"50%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,Ne),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bearish,.05)}66`},null,8,_e)],8,Ce),t.createElementVNode("linearGradient",{id:`bullish_gradient_${y.value}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.value.style.layout.candle.colors.bullish},null,8,Se),t.createElementVNode("stop",{offset:"50%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,Ve),t.createElementVNode("stop",{offset:"100%","stop-color":`${t.unref(i.shiftHue)(e.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Ee)],8,Be)]),e.value.style.layout.grid.show?(t.openBlock(),t.createElementBlock("g",ze,[t.createElementVNode("line",{x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Te),t.createElementVNode("line",{x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Fe)])):t.createCommentVNode("",!0),e.value.style.layout.grid.yAxis.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(oe.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[l.value>=f.value.min&&l.value<=f.value.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:s.value.left,x2:s.value.left-5,y1:l.y,y2:l.y,stroke:e.value.style.layout.grid.stroke,"stroke-width":e.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Le)):t.createCommentVNode("",!0),l.value>=f.value.min&&l.value<=f.value.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.value.left-8+e.value.style.layout.grid.yAxis.dataLabels.offsetX,y:l.y+r.value.yAxisFontSize/3,"font-size":r.value.yAxisFontSize,"text-anchor":"end",fill:e.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":e.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},t.toDisplayString(e.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+t.toDisplayString(t.unref(i.canShowValue)(l.value)?l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+t.toDisplayString(e.value.style.layout.grid.yAxis.dataLabels.suffix),9,Re)):t.createCommentVNode("",!0)]))),256))])):t.createCommentVNode("",!0),e.value.style.layout.grid.xAxis.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Pe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ae.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("text",{transform:`translate(${s.value.left+n.value*a+n.value/2}, ${s.value.bottom+r.value.xAxisFontSize*2+e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":e.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":e.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":r.value.xAxisFontSize,fill:e.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":e.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},t.toDisplayString(l),9,Ie)]))),256))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:l.open.x,x2:l.open.x,y1:l.high.y,y2:l.low.y,stroke:e.value.style.layout.wick.stroke,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,Oe),e.value.style.layout.wick.extremity.shape==="circle"?(t.openBlock(),t.createElementBlock("g",Me,[t.createElementVNode("circle",{cx:l.high.x,cy:l.high.y,r:e.value.style.layout.wick.extremity.size==="auto"?n.value/20:e.value.style.layout.wick.extremity.size,fill:e.value.style.layout.wick.extremity.color},null,8,Ue),t.createElementVNode("circle",{cx:l.low.x,cy:l.low.y,r:e.value.style.layout.wick.extremity.size==="auto"?n.value/20:e.value.style.layout.wick.extremity.size,fill:e.value.style.layout.wick.extremity.color},null,8,De)])):t.createCommentVNode("",!0),e.value.style.layout.wick.extremity.shape==="line"?(t.openBlock(),t.createElementBlock("g",qe,[t.createElementVNode("line",{x1:l.high.x-(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,x2:l.high.x+(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,y1:l.high.y,y2:l.high.y,stroke:e.value.style.layout.wick.extremity.color,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,We),t.createElementVNode("line",{x1:l.low.x-(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,x2:l.low.x+(e.value.style.layout.wick.extremity.size==="auto"?n.value*e.value.style.layout.candle.widthRatio:e.value.style.layout.wick.extremity.size)/2,y1:l.low.y,y2:l.low.y,stroke:e.value.style.layout.wick.extremity.color,"stroke-width":e.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,Ge)])):t.createCommentVNode("",!0)]))),256))]),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:l.open.x-n.value/2+n.value*(1-e.value.style.layout.candle.widthRatio)/2,y:l.isBullish?l.last.y:l.open.y,height:Math.abs(l.last.y-l.open.y)<=0?1e-4:Math.abs(l.last.y-l.open.y),width:n.value*e.value.style.layout.candle.widthRatio<=0?1e-4:n.value*e.value.style.layout.candle.widthRatio,fill:e.value.style.layout.candle.gradient.underlayer,rx:e.value.style.layout.candle.borderRadius,stroke:"none"},null,8,He))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:l.open.x-n.value/2+n.value*(1-e.value.style.layout.candle.widthRatio)/2,y:l.isBullish?l.last.y:l.open.y,height:Math.abs(l.last.y-l.open.y)<=0?1e-4:Math.abs(l.last.y-l.open.y),width:n.value*e.value.style.layout.candle.widthRatio<=0?1e-4:n.value*e.value.style.layout.candle.widthRatio,fill:l.isBullish?e.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${y.value})`:e.value.style.layout.candle.colors.bullish:e.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${y.value})`:e.value.style.layout.candle.colors.bearish,rx:e.value.style.layout.candle.borderRadius,stroke:e.value.style.layout.candle.stroke,"stroke-width":e.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,je))),256))]),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(l,a)=>(t.openBlock(),t.createElementBlock("rect",{x:s.value.left+a*n.value,y:s.value.top,height:s.value.height<=0?1e-4:s.value.height,width:n.value<=0?1e-4:n.value,fill:S.value===a?`${e.value.style.layout.selector.color}${t.unref(i.opacity)[e.value.style.layout.selector.opacity]}`:"transparent",onMouseover:v=>ue(a,l),onMouseleave:u[0]||(u[0]=v=>{S.value=void 0,_.value=!1})},null,40,Xe))),256))])])):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"svg",{svg:r.value},void 0,!0)],14,be)):t.createCommentVNode("",!0),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(ge.default,{key:3,config:{type:"candlesticks",style:{backgroundColor:e.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),e.value.style.zoom.show&&m.value?(t.openBlock(),t.createElementBlock("div",{key:4,ref_key:"chartSlicer",ref:R},[(t.openBlock(),t.createBlock(fe.Slicer,{key:`slicer_${F.value}`,background:e.value.style.zoom.color,borderColor:e.value.style.backgroundColor,fontSize:e.value.style.zoom.fontSize,useResetSlot:e.value.style.zoom.useResetSlot,labelLeft:g.dataset[d.value.start]?g.dataset[d.value.start][0]:g.dataset[0][0],labelRight:g.dataset[d.value.end-1]?g.dataset[d.value.end-1][0]:g.dataset.at(-1)[0],textColor:e.value.style.color,inputColor:e.value.style.zoom.color,selectColor:e.value.style.zoom.highlightColor,max:V.value,min:0,valueStart:d.value.start,valueEnd:d.value.end,start:d.value.start,"onUpdate:start":u[1]||(u[1]=l=>d.value.start=l),end:d.value.end,"onUpdate:end":u[2]||(u[2]=l=>d.value.end=l),onReset:ie},{"reset-action":t.withCtx(({reset:l})=>[t.renderSlot(o.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end"]))],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"chartLegend",ref:L},[t.renderSlot(o.$slots,"legend",{legend:c.value},void 0,!0)],512),t.createVNode(he._sfc_main,{show:p.value.showTooltip&&_.value,backgroundColor:e.value.style.tooltip.backgroundColor,color:e.value.style.tooltip.color,borderRadius:e.value.style.tooltip.borderRadius,borderColor:e.value.style.tooltip.borderColor,borderWidth:e.value.style.tooltip.borderWidth,fontSize:e.value.style.tooltip.fontSize,backgroundOpacity:e.value.style.tooltip.backgroundOpacity,parent:x.value,content:B.value,isCustom:e.value.style.tooltip.customFormat&&typeof e.value.style.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(o.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...z.value})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(o.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...z.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","parent","content","isCustom"]),m.value?(t.openBlock(),t.createBlock(me.default,{key:5,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color},head:{backgroundColor:e.value.style.backgroundColor,color:e.value.style.color}}},{content:t.withCtx(()=>[t.createVNode(pe.DataTable,{colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.value.config,title:`${e.value.style.title.text}${e.value.style.title.subtitle.text?` : ${e.value.style.title.subtitle.text}`:""}`,onClose:u[3]||(u[3]=l=>p.value.showTable=!1)},{th:t.withCtx(({th:l})=>[t.createTextVNode(t.toDisplayString(l),1)]),td:t.withCtx(({td:l})=>[t.createElementVNode("div",{innerHTML:l},null,8,Ye)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):t.createCommentVNode("",!0)],14,ke))}},Ke=xe._export_sfc(Je,[["__scopeId","data-v-0ed64fca"]]);exports.default=Ke;
|