vue-data-ui 2.3.89 → 2.3.91
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-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
- package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
- package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
- package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
- package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
- package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
- package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
- package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
- package/dist/PackageVersion-D9PU8glB.js +10 -0
- package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
- package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
- package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
- package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
- package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
- package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
- package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
- package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
- package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
- package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
- package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
- package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
- package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
- package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
- package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
- package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
- package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
- package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
- package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
- package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
- package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
- package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
- package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
- package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
- package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
- package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
- package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
- package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
- package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
- package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
- package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
- package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
- package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
- package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
- package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
- package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
- package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
- package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
- package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
- package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
- package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
- package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
- package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
- package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
- package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
- package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
- package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
- package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
- package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
- package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
- package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
- package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
- package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
- package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
- package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
- package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
- package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
- package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
- package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
- package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
- package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
- package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
- package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
- package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
- package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
- package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
- package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
- package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
- package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
- package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
- package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
- package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
- package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
- package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
- package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
- package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
- package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
- package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
- package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
- package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
- package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
- package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
- package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
- package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
- package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
- package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
- package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
- package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
- package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
- package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
- package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
- package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
- package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
- package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
- package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
- package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
- package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
- package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
- package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
- package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
- package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
- package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
- package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
- package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
- package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
- package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
- package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
- package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
- package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
- package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
- package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
- package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
- package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
- package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
- package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
- package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
- package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
- package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
- package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
- package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
- package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
- package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
- package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
- package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
- package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
- package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
- package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
- package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
- package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
- package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
- package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
- package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
- package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
- package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
- package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
- package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
- package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BhH89oF0.cjs"),R=require("./useResponsive-B3TrDDIG.cjs"),le=require("./Title-Bg_BK11V.cjs"),W=require("./usePrinter-B8jr_V3b.cjs"),ae=require("./DataTable-CnkdsvIo.cjs"),oe=require("./vue-ui-skeleton-Cf89QIhl.cjs"),re=require("./Legend-BQJV6Xk4.cjs"),se=require("./vue-ui-accordion-Bzq1iTL2.cjs"),U=require("./useNestedProp-m8IH8hWW.cjs"),ne=require("./PackageVersion-LdLhc8hQ.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],ie=["xmlns","viewBox"],de={key:0},ve=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],he={key:1},ye=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],me=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],fe={key:2},be=["x","y","font-size","fill","font-weight"],ge=["x","y","font-size","fill"],pe={key:3},ke=["x","y","font-size","fill","font-weight"],_e=["id"],xe=["stop-color"],Ce=["stop-color"],we=["stop-color"],Be=["id"],Ne=["stop-color"],Ee=["stop-color"],Le=["stop-color"],$e=["id"],Ve=["stop-color"],Se=["stop-color"],ze=["id"],Xe=["stop-color"],Pe=["stop-color"],Ae={key:0},Te=["d","fill"],De={key:1},Fe=["x","y","height","width","fill"],Me=["cx","cy","r","fill","stroke","stroke-width"],Ge=["cx","cy","r","fill","stroke","stroke-width"],Ie={key:2},Oe=["x","y","fill","font-size"],He={key:3},qe=["x","y","fill","font-size"],Re={key:3,class:"vue-data-ui-watermark"},We=["xmlns","height","width"],Ue=["fill"],je=["innerHTML"],Ye={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(j,{expose:Y,emit:Je}){const y=j,{vue_ui_dumbbell:Z}=s.useConfig(),b=e.computed({get(){return!!y.dataset&&y.dataset.length},set(a){return a}}),d=e.ref(s.createUid()),L=e.ref(0),k=e.ref(null),$=e.ref(null),V=e.ref(null),S=e.ref(0),z=e.ref(0),X=e.ref(0),t=e.computed({get:()=>P(),set:a=>a});function P(){const a=U.useNestedProp({userConfig:y.config,defaultConfig:Z});return a.theme?{...U.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||y.config,defaultConfig:a})}:a}e.watch(()=>y.config,a=>{t.value=P(),A(),S.value+=1,z.value+=1,X.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width},{deep:!0}),e.watch(()=>y.dataset,a=>{I()},{deep:!0});const _=e.ref(null);e.onMounted(()=>{A()});function A(){if(s.objectIsEmpty(y.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):y.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=R.throttle(()=>{const{width:n,height:l}=R.useResponsive({chart:k.value,title:t.value.style.chart.title.text?$.value:null,legend:t.value.style.chart.legend.show?V.value:null});g.value=n,i.value=l/y.dataset.length,v.value=C()});_.value=new ResizeObserver(a),_.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{_.value&&_.value.disconnect()});const{isPrinting:T,isImaging:D,generatePdf:F,generateImage:M}=W.usePrinter({elementId:`dumbbell_${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell"}),x=e.ref({showTable:t.value.table.show}),m=e.computed(()=>y.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),N=e.computed(()=>({max:Math.max(...m.value.flatMap(a=>[a.start,a.end])),min:Math.min(...m.value.flatMap(a=>[a.start,a.end]))})),c=e.computed(()=>s.calculateNiceScale(N.value.min<0?N.value.min:0,N.value.max,t.value.style.chart.grid.scaleSteps)),i=e.ref(t.value.style.chart.rowHeight),g=e.ref(t.value.style.chart.width),o=e.computed(()=>{const a=i.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*y.dataset.length,r=c.value.ticks.length*(g.value/c.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:g.value,height:a*y.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:r}});function C(){return m.value.map((a,n)=>{const l=o.value.left+(a.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,r=o.value.left+(a.end+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,u=l+(r-l)/2;return{...a,startX:l,endX:r,centerX:u,y:o.value.top+n*i.value+i.value/2,endVal:a.start}})}const v=e.ref([]),G=e.ref(null),J=e.computed(()=>m.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{I()});function I(){v.value=C();let a=v.value.map(l=>l.start).reduce((l,r)=>l+r,0);function n(){const l=m.value.map(r=>r.end-r.start);a>=J.value?(cancelAnimationFrame(G.value),v.value=C()):(v.value=v.value.map((r,u)=>{r.endVal+=l[u]*(t.value.animationSpeed/100);const h=o.value.left+(r.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,B=o.value.left+(r.endVal+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,E=h+(B-h)/2;return{...r,startX:h,endX:B,centerX:E,y:o.value.top+u*i.value+i.value/2,endVal:r.endVal}}),a=v.value.map(r=>r.endVal).reduce((r,u)=>r+u,0),G.value=requestAnimationFrame(n))}t.value.useAnimation?n():v.value=C()}const O=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor}]),K=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=v.value.map(l=>({name:l.name})),n=v.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=f.value.head.map((u,h)=>{const B=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[h].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),E=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[h].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),te=s.dataLabel({v:100*(f.value.body[h].end/f.value.body[h].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:u.name},B,E,te]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function H(){e.nextTick(()=>{const a=f.value.head.map((r,u)=>[[r.name],[f.value.body[u].start],[f.value.body[u].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const p=e.ref(!1);function Q(a){p.value=a,L.value+=1}function ee(){return v.value}function q(){x.value.showTable=!x.value.showTable}return Y({getData:ee,generatePdf:F,generateCsv:H,generateImage:M,toggleTable:q}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:k,class:e.normalizeClass(`vue-ui-dumbbell ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`dumbbell_${d.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:$,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(le._sfc_main,{key:`title_${S.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(D),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:p.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,onToggleFullscreen:Q,onGeneratePdf:e.unref(F),onGenerateCsv:H,onGenerateImage:e.unref(M),onToggleTable:q},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.value}),viewBox:`0 0 ${o.value.absoluteWidth<=0?10:o.value.absoluteWidth} ${o.value.absoluteHeight<=0?10:o.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ne._sfc_main),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left+r*o.value.width/(c.value.ticks.length-1),x2:o.value.left+r*o.value.width/(c.value.ticks.length-1),y1:o.value.top,y2:o.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,ve))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left,x2:o.value.right,y1:o.value.top+r*i.value,y2:o.value.top+r*i.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,ye))),256)),e.createElementVNode("line",{x1:o.value.left,x2:o.value.right,y1:o.value.bottom,y2:o.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,me)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*i.value+(t.value.style.chart.labels.yAxisLabels.showProgression?i.value/3:i.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,be))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*i.value+i.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,ge))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left+r*(o.value.width/(c.value.ticks.length-1)),y:o.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:r})),9,ke))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,xe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,Ce),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,we)],8,_e),e.createElementVNode("radialGradient",{id:`end_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Ne),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,Ee),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Le)],8,Be)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Se)],8,$e),e.createElementVNode("linearGradient",{id:`grad_negative_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Pe)],8,ze)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",Ae,[e.createElementVNode("path",{d:`M
|
|
2
|
+
${l.startX},${l.y+t.value.style.chart.plots.radius/2}
|
|
3
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
4
|
+
${l.endX},${l.y+t.value.style.chart.plots.radius/2}
|
|
5
|
+
L ${l.endX},${l.y-t.value.style.chart.plots.radius/2}
|
|
6
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
7
|
+
${l.startX},${l.y-t.value.style.chart.plots.radius/2}
|
|
8
|
+
Z
|
|
9
|
+
`,fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,Te)])):(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("rect",{x:l.endX>l.startX?l.startX:l.endX,y:l.y-t.value.style.chart.plots.link.strokeWidth/2,height:t.value.style.chart.plots.link.strokeWidth,width:Math.abs(l.endX-l.startX),fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,Fe)])),e.createElementVNode("circle",{cx:l.startX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Me),e.createElementVNode("circle",{cx:l.endX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Ge),t.value.style.chart.labels.startLabels.show?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.startX,y:o.value.top+(h+1)*i.value-t.value.style.chart.labels.startLabels.fontSize/3+t.value.style.chart.labels.startLabels.offsetY,fill:t.value.style.chart.labels.startLabels.useStartColor?t.value.style.chart.plots.startColor:t.value.style.chart.labels.startLabels.color,"font-size":t.value.style.chart.labels.startLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.start,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.start,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.startLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Oe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.labels.endLabels.show?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.endX,y:o.value.top+h*i.value+t.value.style.chart.labels.endLabels.fontSize+t.value.style.chart.labels.endLabels.offsetY,fill:t.value.style.chart.labels.endLabels.useEndColor?t.value.style.chart.plots.endColor:t.value.style.chart.labels.endLabels.color,"font-size":t.value.style.chart.labels.endLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.end,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.end,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.endLabels.rounding}),{datapoint:u,seriesIndex:h})),9,qe))),256))])):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,ie)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Re,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:4,config:{type:"dumbbell",style:{backgroundColor:t.value.style.chart.backgroundColor,dumbbell:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:V},[t.value.style.chart.legend.show&&b.value?(e.openBlock(),e.createBlock(re.Legend,{key:`legend_${X.value}`,legendSet:O.value,config:K.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:4px;font-size:${t.value.style.chart.legend.fontSize}px`)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:"0 0 20 20",height:t.value.style.chart.legend.fontSize,width:t.value.style.chart.legend.fontSize},[e.createElementVNode("circle",{cx:10,cy:10,r:9,fill:l.color},null,8,Ue)],8,We)),e.createTextVNode(" "+e.toDisplayString(l.name),1)],4)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:O.value},void 0,!0)],512),b.value?(e.openBlock(),e.createBlock(se.default,{key:5,hideDetails:"",config:{open:x.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ae.DataTable,{key:`table_${z.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>x.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,je)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ce))}},Ze=ue._export_sfc(Ye,[["__scopeId","data-v-2df541ce"]]);exports.default=Ze;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { computed as p, ref as y, watch as oe, onMounted as re, onBeforeUnmount as Le, openBlock as o, createElementBlock as r, normalizeClass as ne, normalizeStyle as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import { u as ge } from "./useNestedProp-
|
|
11
|
-
import { _ as
|
|
12
|
-
|
|
1
|
+
import { computed as p, ref as y, watch as oe, onMounted as re, onBeforeUnmount as Le, openBlock as o, createElementBlock as r, normalizeClass as ne, normalizeStyle as V, createBlock as S, createCommentVNode as g, unref as d, createSlots as ze, withCtx as _, renderSlot as C, normalizeProps as ue, guardReactiveProps as ie, createVNode as Xe, Fragment as w, renderList as $, createElementVNode as n, toDisplayString as L, createTextVNode as ce, nextTick as Se } from "vue";
|
|
2
|
+
import { u as Ne, c as de, t as Ae, o as Te, e as ve, g as Pe, v as he, C as Ge, f as z, X as ye, i as E, l as be, h as fe, q as De, r as Ie } from "./index-mBy4elhB.js";
|
|
3
|
+
import { t as Me, u as Fe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Oe } from "./Title-CECK1w9L.js";
|
|
5
|
+
import { u as Ve, U as Ee } from "./usePrinter-Ck-yukK2.js";
|
|
6
|
+
import { D as He } from "./DataTable-BKc3r3k3.js";
|
|
7
|
+
import We from "./vue-ui-skeleton-DDhwPZd_.js";
|
|
8
|
+
import { L as Re } from "./Legend-WNL92WSx.js";
|
|
9
|
+
import Be from "./vue-ui-accordion-dyF20BlD.js";
|
|
10
|
+
import { u as ge } from "./useNestedProp-BrIRtQj1.js";
|
|
11
|
+
import { _ as Ue } from "./PackageVersion-D9PU8glB.js";
|
|
12
|
+
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const qe = ["id"], Ye = ["xmlns", "viewBox"], Ze = { key: 0 }, Je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ke = { key: 1 }, Qe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], tt = { key: 2 }, lt = ["x", "y", "font-size", "fill", "font-weight"], at = ["x", "y", "font-size", "fill"], st = { key: 3 }, ot = ["x", "y", "font-size", "fill", "font-weight"], rt = ["id"], nt = ["stop-color"], ut = ["stop-color"], it = ["stop-color"], ct = ["id"], dt = ["stop-color"], vt = ["stop-color"], ht = ["stop-color"], yt = ["id"], bt = ["stop-color"], ft = ["stop-color"], gt = ["id"], mt = ["stop-color"], pt = ["stop-color"], _t = { key: 0 }, xt = ["d", "fill"], kt = { key: 1 }, Ct = ["x", "y", "height", "width", "fill"], wt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Lt = { key: 2 }, zt = ["x", "y", "fill", "font-size"], Xt = { key: 3 }, St = ["x", "y", "fill", "font-size"], Nt = {
|
|
13
14
|
key: 3,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, At = ["xmlns", "height", "width"], Tt = ["fill"], Pt = ["innerHTML"], Gt = {
|
|
16
17
|
__name: "vue-ui-dumbbell",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,8 +30,8 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectDatapoint"],
|
|
32
|
-
setup(me, { expose: pe, emit:
|
|
33
|
-
const m = me, { vue_ui_dumbbell: _e } =
|
|
33
|
+
setup(me, { expose: pe, emit: Dt }) {
|
|
34
|
+
const m = me, { vue_ui_dumbbell: _e } = Ne(), X = p({
|
|
34
35
|
get() {
|
|
35
36
|
return !!m.dataset && m.dataset.length;
|
|
36
37
|
},
|
|
@@ -54,7 +55,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
54
55
|
} : l;
|
|
55
56
|
}
|
|
56
57
|
oe(() => m.config, (l) => {
|
|
57
|
-
e.value = q(), Y(), B.value += 1, U.value += 1, j.value += 1, v.value = e.value.style.chart.rowHeight,
|
|
58
|
+
e.value = q(), Y(), B.value += 1, U.value += 1, j.value += 1, v.value = e.value.style.chart.rowHeight, N.value = e.value.style.chart.width;
|
|
58
59
|
}, { deep: !0 }), oe(() => m.dataset, (l) => {
|
|
59
60
|
te();
|
|
60
61
|
}, { deep: !0 });
|
|
@@ -63,11 +64,11 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
63
64
|
Y();
|
|
64
65
|
});
|
|
65
66
|
function Y() {
|
|
66
|
-
if (
|
|
67
|
+
if (Te(m.dataset) ? ve({
|
|
67
68
|
componentName: "VueUiDumbbell",
|
|
68
69
|
type: "dataset"
|
|
69
70
|
}) : m.dataset.forEach((l, u) => {
|
|
70
|
-
|
|
71
|
+
Pe({
|
|
71
72
|
datasetObject: l,
|
|
72
73
|
requiredAttributes: ["name", "start", "end"]
|
|
73
74
|
}).forEach((t) => {
|
|
@@ -79,13 +80,13 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
79
80
|
});
|
|
80
81
|
});
|
|
81
82
|
}), e.value.responsive) {
|
|
82
|
-
const l =
|
|
83
|
-
const { width: u, height: t } =
|
|
83
|
+
const l = Me(() => {
|
|
84
|
+
const { width: u, height: t } = Fe({
|
|
84
85
|
chart: T.value,
|
|
85
86
|
title: e.value.style.chart.title.text ? W.value : null,
|
|
86
87
|
legend: e.value.style.chart.legend.show ? R.value : null
|
|
87
88
|
});
|
|
88
|
-
|
|
89
|
+
N.value = u, v.value = t / m.dataset.length, b.value = D();
|
|
89
90
|
});
|
|
90
91
|
P.value = new ResizeObserver(l), P.value.observe(T.value.parentNode);
|
|
91
92
|
}
|
|
@@ -93,7 +94,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
93
94
|
Le(() => {
|
|
94
95
|
P.value && P.value.disconnect();
|
|
95
96
|
});
|
|
96
|
-
const { isPrinting: Z, isImaging: J, generatePdf: K, generateImage: Q } =
|
|
97
|
+
const { isPrinting: Z, isImaging: J, generatePdf: K, generateImage: Q } = Ve({
|
|
97
98
|
elementId: `dumbbell_${h.value}`,
|
|
98
99
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
99
100
|
}), G = y({
|
|
@@ -106,14 +107,14 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
106
107
|
}))), F = p(() => ({
|
|
107
108
|
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
108
109
|
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
109
|
-
})), c = p(() =>
|
|
110
|
-
const l = v.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right +
|
|
110
|
+
})), c = p(() => Ge(F.value.min < 0 ? F.value.min : 0, F.value.max, e.value.style.chart.grid.scaleSteps)), v = y(e.value.style.chart.rowHeight), N = y(e.value.style.chart.width), a = p(() => {
|
|
111
|
+
const l = v.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + N.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * m.dataset.length, s = c.value.ticks.length * (N.value / c.value.ticks.length);
|
|
111
112
|
return {
|
|
112
113
|
left: e.value.style.chart.padding.left,
|
|
113
114
|
right: u - e.value.style.chart.padding.right,
|
|
114
115
|
top: e.value.style.chart.padding.top,
|
|
115
116
|
bottom: t - e.value.style.chart.padding.bottom,
|
|
116
|
-
width:
|
|
117
|
+
width: N.value,
|
|
117
118
|
height: l * m.dataset.length,
|
|
118
119
|
rowHeight: l,
|
|
119
120
|
absoluteHeight: t,
|
|
@@ -231,16 +232,16 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
231
232
|
};
|
|
232
233
|
});
|
|
233
234
|
function ae() {
|
|
234
|
-
|
|
235
|
+
Se(() => {
|
|
235
236
|
const l = k.value.head.map((s, i) => [[
|
|
236
237
|
s.name
|
|
237
|
-
], [k.value.body[i].start], [k.value.body[i].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t =
|
|
238
|
-
|
|
238
|
+
], [k.value.body[i].start], [k.value.body[i].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = De(u);
|
|
239
|
+
Ie({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
239
240
|
});
|
|
240
241
|
}
|
|
241
|
-
const
|
|
242
|
+
const A = y(!1);
|
|
242
243
|
function Ce(l) {
|
|
243
|
-
|
|
244
|
+
A.value = l, H.value += 1;
|
|
244
245
|
}
|
|
245
246
|
function we() {
|
|
246
247
|
return b.value;
|
|
@@ -257,8 +258,8 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
257
258
|
}), (l, u) => (o(), r("div", {
|
|
258
259
|
ref_key: "dumbbellChart",
|
|
259
260
|
ref: T,
|
|
260
|
-
class: ne(`vue-ui-dumbbell ${
|
|
261
|
-
style:
|
|
261
|
+
class: ne(`vue-ui-dumbbell ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
262
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
262
263
|
id: `dumbbell_${h.value}`
|
|
263
264
|
}, [
|
|
264
265
|
e.value.style.chart.title.text ? (o(), r("div", {
|
|
@@ -267,7 +268,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
267
268
|
ref: W,
|
|
268
269
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
269
270
|
}, [
|
|
270
|
-
(o(), S(
|
|
271
|
+
(o(), S(Oe, {
|
|
271
272
|
key: `title_${B.value}`,
|
|
272
273
|
config: {
|
|
273
274
|
title: {
|
|
@@ -294,7 +295,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
294
295
|
hasImg: e.value.userOptions.buttons.img,
|
|
295
296
|
hasTable: e.value.userOptions.buttons.table,
|
|
296
297
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
297
|
-
isFullscreen:
|
|
298
|
+
isFullscreen: A.value,
|
|
298
299
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
299
300
|
chartElement: T.value,
|
|
300
301
|
position: e.value.userOptions.position,
|
|
@@ -343,11 +344,12 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
343
344
|
X.value ? (o(), r("svg", {
|
|
344
345
|
key: 2,
|
|
345
346
|
xmlns: d(ye),
|
|
346
|
-
class: ne({ "vue-data-ui-fullscreen--on":
|
|
347
|
+
class: ne({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
347
348
|
viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
|
|
348
|
-
style:
|
|
349
|
+
style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
349
350
|
}, [
|
|
350
|
-
|
|
351
|
+
Xe(Ue),
|
|
352
|
+
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", Ze, [
|
|
351
353
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("line", {
|
|
352
354
|
x1: a.value.left + s * a.value.width / (c.value.ticks.length - 1),
|
|
353
355
|
x2: a.value.left + s * a.value.width / (c.value.ticks.length - 1),
|
|
@@ -356,9 +358,9 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
356
358
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
357
359
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
358
360
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
359
|
-
}, null, 8,
|
|
361
|
+
}, null, 8, Je))), 256))
|
|
360
362
|
])) : g("", !0),
|
|
361
|
-
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g",
|
|
363
|
+
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", Ke, [
|
|
362
364
|
(o(!0), r(w, null, $(x.value, (t, s) => (o(), r("line", {
|
|
363
365
|
x1: a.value.left,
|
|
364
366
|
x2: a.value.right,
|
|
@@ -367,7 +369,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
367
369
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
368
370
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
369
371
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
370
|
-
}, null, 8,
|
|
372
|
+
}, null, 8, Qe))), 256)),
|
|
371
373
|
n("line", {
|
|
372
374
|
x1: a.value.left,
|
|
373
375
|
x2: a.value.right,
|
|
@@ -376,9 +378,9 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
376
378
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
377
379
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
378
380
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
379
|
-
}, null, 8,
|
|
381
|
+
}, null, 8, et)
|
|
380
382
|
])) : g("", !0),
|
|
381
|
-
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g",
|
|
383
|
+
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", tt, [
|
|
382
384
|
(o(!0), r(w, null, $(x.value, (t, s) => (o(), r("text", {
|
|
383
385
|
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
384
386
|
y: a.value.top + s * v.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? v.value / 3 : v.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -386,7 +388,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
386
388
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
387
389
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
388
390
|
"text-anchor": "end"
|
|
389
|
-
}, L(t.name), 9,
|
|
391
|
+
}, L(t.name), 9, lt))), 256)),
|
|
390
392
|
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(w, { key: 0 }, $(x.value, (t, s) => (o(), r("text", {
|
|
391
393
|
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
392
394
|
y: a.value.top + s * v.value + v.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -397,9 +399,9 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
397
399
|
v: 100 * (t.end / t.start - 1),
|
|
398
400
|
s: "%",
|
|
399
401
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
400
|
-
})), 9,
|
|
402
|
+
})), 9, at))), 256)) : g("", !0)
|
|
401
403
|
])) : g("", !0),
|
|
402
|
-
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g",
|
|
404
|
+
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", st, [
|
|
403
405
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("text", {
|
|
404
406
|
x: a.value.left + s * (a.value.width / (c.value.ticks.length - 1)),
|
|
405
407
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
@@ -407,7 +409,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
407
409
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
408
410
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
409
411
|
"text-anchor": "middle"
|
|
410
|
-
}, L(d(
|
|
412
|
+
}, L(d(E)(
|
|
411
413
|
e.value.style.chart.labels.formatter,
|
|
412
414
|
t,
|
|
413
415
|
d(z)({
|
|
@@ -417,7 +419,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
417
419
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
418
420
|
}),
|
|
419
421
|
{ datapoint: t, seriesIndex: s }
|
|
420
|
-
)), 9,
|
|
422
|
+
)), 9, ot))), 256))
|
|
421
423
|
])) : g("", !0),
|
|
422
424
|
n("defs", null, [
|
|
423
425
|
n("radialGradient", {
|
|
@@ -427,16 +429,16 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
427
429
|
n("stop", {
|
|
428
430
|
offset: "10%",
|
|
429
431
|
"stop-color": d(be)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
430
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, nt),
|
|
431
433
|
n("stop", {
|
|
432
434
|
offset: "90%",
|
|
433
435
|
"stop-color": d(fe)(e.value.style.chart.plots.startColor, 0.1)
|
|
434
|
-
}, null, 8,
|
|
436
|
+
}, null, 8, ut),
|
|
435
437
|
n("stop", {
|
|
436
438
|
offset: "100%",
|
|
437
439
|
"stop-color": e.value.style.chart.plots.startColor
|
|
438
|
-
}, null, 8,
|
|
439
|
-
], 8,
|
|
440
|
+
}, null, 8, it)
|
|
441
|
+
], 8, rt),
|
|
440
442
|
n("radialGradient", {
|
|
441
443
|
id: `end_grad_${h.value}`,
|
|
442
444
|
fy: "30%"
|
|
@@ -444,16 +446,16 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
444
446
|
n("stop", {
|
|
445
447
|
offset: "10%",
|
|
446
448
|
"stop-color": d(be)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
447
|
-
}, null, 8,
|
|
449
|
+
}, null, 8, dt),
|
|
448
450
|
n("stop", {
|
|
449
451
|
offset: "90%",
|
|
450
452
|
"stop-color": d(fe)(e.value.style.chart.plots.endColor, 0.1)
|
|
451
|
-
}, null, 8,
|
|
453
|
+
}, null, 8, vt),
|
|
452
454
|
n("stop", {
|
|
453
455
|
offset: "100%",
|
|
454
456
|
"stop-color": e.value.style.chart.plots.endColor
|
|
455
|
-
}, null, 8,
|
|
456
|
-
], 8,
|
|
457
|
+
}, null, 8, ht)
|
|
458
|
+
], 8, ct)
|
|
457
459
|
]),
|
|
458
460
|
(o(!0), r(w, null, $(b.value, (t, s) => (o(), r("g", null, [
|
|
459
461
|
n("defs", null, [
|
|
@@ -467,12 +469,12 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
467
469
|
n("stop", {
|
|
468
470
|
offset: "0%",
|
|
469
471
|
"stop-color": e.value.style.chart.plots.startColor
|
|
470
|
-
}, null, 8,
|
|
472
|
+
}, null, 8, bt),
|
|
471
473
|
n("stop", {
|
|
472
474
|
offset: "100%",
|
|
473
475
|
"stop-color": e.value.style.chart.plots.endColor
|
|
474
|
-
}, null, 8,
|
|
475
|
-
], 8,
|
|
476
|
+
}, null, 8, ft)
|
|
477
|
+
], 8, yt),
|
|
476
478
|
n("linearGradient", {
|
|
477
479
|
id: `grad_negative_${h.value}`,
|
|
478
480
|
x1: "0%",
|
|
@@ -483,14 +485,14 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
483
485
|
n("stop", {
|
|
484
486
|
offset: "0%",
|
|
485
487
|
"stop-color": e.value.style.chart.plots.endColor
|
|
486
|
-
}, null, 8,
|
|
488
|
+
}, null, 8, mt),
|
|
487
489
|
n("stop", {
|
|
488
490
|
offset: "100%",
|
|
489
491
|
"stop-color": e.value.style.chart.plots.startColor
|
|
490
|
-
}, null, 8,
|
|
491
|
-
], 8,
|
|
492
|
+
}, null, 8, pt)
|
|
493
|
+
], 8, gt)
|
|
492
494
|
]),
|
|
493
|
-
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g",
|
|
495
|
+
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", _t, [
|
|
494
496
|
n("path", {
|
|
495
497
|
d: `M
|
|
496
498
|
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
@@ -502,15 +504,15 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
502
504
|
Z
|
|
503
505
|
`,
|
|
504
506
|
fill: t.endX > t.startX ? `url(#grad_positive_${h.value})` : `url(#grad_negative_${h.value})`
|
|
505
|
-
}, null, 8,
|
|
506
|
-
])) : (o(), r("g",
|
|
507
|
+
}, null, 8, xt)
|
|
508
|
+
])) : (o(), r("g", kt, [
|
|
507
509
|
n("rect", {
|
|
508
510
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
509
511
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
510
512
|
height: e.value.style.chart.plots.link.strokeWidth,
|
|
511
513
|
width: Math.abs(t.endX - t.startX),
|
|
512
514
|
fill: t.endX > t.startX ? `url(#grad_positive_${h.value})` : `url(#grad_negative_${h.value})`
|
|
513
|
-
}, null, 8,
|
|
515
|
+
}, null, 8, Ct)
|
|
514
516
|
])),
|
|
515
517
|
n("circle", {
|
|
516
518
|
cx: t.startX,
|
|
@@ -519,7 +521,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
519
521
|
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${h.value})` : e.value.style.chart.plots.startColor,
|
|
520
522
|
stroke: e.value.style.chart.plots.stroke,
|
|
521
523
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
522
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, wt),
|
|
523
525
|
n("circle", {
|
|
524
526
|
cx: t.endX,
|
|
525
527
|
cy: t.y,
|
|
@@ -527,15 +529,15 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
527
529
|
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${h.value})` : e.value.style.chart.plots.endColor,
|
|
528
530
|
stroke: e.value.style.chart.plots.stroke,
|
|
529
531
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
530
|
-
}, null, 8,
|
|
531
|
-
e.value.style.chart.labels.startLabels.show ? (o(), r("g",
|
|
532
|
+
}, null, 8, $t),
|
|
533
|
+
e.value.style.chart.labels.startLabels.show ? (o(), r("g", Lt, [
|
|
532
534
|
(o(!0), r(w, null, $(b.value, (i, f) => (o(), r("text", {
|
|
533
535
|
x: i.startX,
|
|
534
536
|
y: a.value.top + (f + 1) * v.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
535
537
|
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
536
538
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
537
539
|
"text-anchor": "middle"
|
|
538
|
-
}, L(d(
|
|
540
|
+
}, L(d(E)(
|
|
539
541
|
e.value.style.chart.labels.formatter,
|
|
540
542
|
i.start,
|
|
541
543
|
d(z)({
|
|
@@ -545,16 +547,16 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
545
547
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
546
548
|
}),
|
|
547
549
|
{ datapoint: i, seriesIndex: f }
|
|
548
|
-
)), 9,
|
|
550
|
+
)), 9, zt))), 256))
|
|
549
551
|
])) : g("", !0),
|
|
550
|
-
e.value.style.chart.labels.endLabels.show ? (o(), r("g",
|
|
552
|
+
e.value.style.chart.labels.endLabels.show ? (o(), r("g", Xt, [
|
|
551
553
|
(o(!0), r(w, null, $(b.value, (i, f) => (o(), r("text", {
|
|
552
554
|
x: i.endX,
|
|
553
555
|
y: a.value.top + f * v.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
554
556
|
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
555
557
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
556
558
|
"text-anchor": "middle"
|
|
557
|
-
}, L(d(
|
|
559
|
+
}, L(d(E)(
|
|
558
560
|
e.value.style.chart.labels.formatter,
|
|
559
561
|
i.end,
|
|
560
562
|
d(z)({
|
|
@@ -564,15 +566,15 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
564
566
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
565
567
|
}),
|
|
566
568
|
{ datapoint: i, seriesIndex: f }
|
|
567
|
-
)), 9,
|
|
569
|
+
)), 9, St))), 256))
|
|
568
570
|
])) : g("", !0)
|
|
569
571
|
]))), 256)),
|
|
570
572
|
C(l.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
571
|
-
], 14,
|
|
572
|
-
l.$slots.watermark ? (o(), r("div",
|
|
573
|
+
], 14, Ye)) : g("", !0),
|
|
574
|
+
l.$slots.watermark ? (o(), r("div", Nt, [
|
|
573
575
|
C(l.$slots, "watermark", ue(ie({ isPrinting: d(Z) || d(J) })), void 0, !0)
|
|
574
576
|
])) : g("", !0),
|
|
575
|
-
X.value ? g("", !0) : (o(), S(
|
|
577
|
+
X.value ? g("", !0) : (o(), S(We, {
|
|
576
578
|
key: 4,
|
|
577
579
|
config: {
|
|
578
580
|
type: "dumbbell",
|
|
@@ -588,14 +590,14 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
588
590
|
ref_key: "chartLegend",
|
|
589
591
|
ref: R
|
|
590
592
|
}, [
|
|
591
|
-
e.value.style.chart.legend.show && X.value ? (o(), S(
|
|
593
|
+
e.value.style.chart.legend.show && X.value ? (o(), S(Re, {
|
|
592
594
|
key: `legend_${j.value}`,
|
|
593
595
|
legendSet: le.value,
|
|
594
596
|
config: ke.value
|
|
595
597
|
}, {
|
|
596
598
|
item: _(({ legend: t }) => [
|
|
597
599
|
n("div", {
|
|
598
|
-
style:
|
|
600
|
+
style: V(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
599
601
|
}, [
|
|
600
602
|
(o(), r("svg", {
|
|
601
603
|
xmlns: d(ye),
|
|
@@ -608,8 +610,8 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
608
610
|
cy: 10,
|
|
609
611
|
r: 9,
|
|
610
612
|
fill: t.color
|
|
611
|
-
}, null, 8,
|
|
612
|
-
], 8,
|
|
613
|
+
}, null, 8, Tt)
|
|
614
|
+
], 8, At)),
|
|
613
615
|
ce(" " + L(t.name), 1)
|
|
614
616
|
], 4)
|
|
615
617
|
]),
|
|
@@ -619,7 +621,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
619
621
|
legend: le.value
|
|
620
622
|
}, void 0, !0)
|
|
621
623
|
], 512),
|
|
622
|
-
X.value ? (o(), S(
|
|
624
|
+
X.value ? (o(), S(Be, {
|
|
623
625
|
key: 5,
|
|
624
626
|
hideDetails: "",
|
|
625
627
|
config: {
|
|
@@ -636,7 +638,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
636
638
|
}
|
|
637
639
|
}, {
|
|
638
640
|
content: _(() => [
|
|
639
|
-
(o(), S(
|
|
641
|
+
(o(), S(He, {
|
|
640
642
|
key: `table_${U.value}`,
|
|
641
643
|
colNames: I.value.colNames,
|
|
642
644
|
head: I.value.head,
|
|
@@ -649,7 +651,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
649
651
|
n("div", {
|
|
650
652
|
innerHTML: t,
|
|
651
653
|
style: { display: "flex", "align-items": "center" }
|
|
652
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, Pt)
|
|
653
655
|
]),
|
|
654
656
|
td: _(({ td: t }) => [
|
|
655
657
|
ce(L(t.name || t), 1)
|
|
@@ -659,9 +661,9 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
659
661
|
]),
|
|
660
662
|
_: 1
|
|
661
663
|
}, 8, ["config"])) : g("", !0)
|
|
662
|
-
], 14,
|
|
664
|
+
], 14, qe));
|
|
663
665
|
}
|
|
664
|
-
},
|
|
666
|
+
}, qt = /* @__PURE__ */ je(Gt, [["__scopeId", "data-v-2df541ce"]]);
|
|
665
667
|
export {
|
|
666
|
-
|
|
668
|
+
qt as default
|
|
667
669
|
};
|