vue-data-ui 2.3.90 → 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-C_Fnn6al.js → Arrow-CHTslrAF.js} +1 -1
- package/dist/{Arrow-D1pymKl6.cjs → Arrow-DpuaFuue.cjs} +1 -1
- package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-DfaCNBgc.js} +1 -1
- package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
- package/dist/{DataTable-Cmbf3abv.js → DataTable-BKc3r3k3.js} +2 -2
- package/dist/{DataTable-cOEA6Z37.cjs → DataTable-CnkdsvIo.cjs} +1 -1
- package/dist/{Legend-XqP6-7Ac.cjs → Legend-BQJV6Xk4.cjs} +1 -1
- package/dist/{Legend-CCq0mNRg.js → Legend-WNL92WSx.js} +1 -1
- package/dist/PackageVersion-D9PU8glB.js +10 -0
- package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
- package/dist/{Shape-B51JGReT.cjs → Shape-CgW0V2Og.cjs} +1 -1
- package/dist/{Shape-BNocET8E.js → Shape-DPvoEBm9.js} +1 -1
- package/dist/{Slicer-BKszZXjM.js → Slicer-DE9nFM_c.js} +2 -2
- package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-Dma3nlzi.cjs} +1 -1
- package/dist/{Title-BaR4XyXa.cjs → Title-Bg_BK11V.cjs} +1 -1
- package/dist/{Title-DlBwa3-X.js → Title-CECK1w9L.js} +1 -1
- package/dist/{Tooltip-w32n-8sY.js → Tooltip-Ci3AprCm.js} +1 -1
- package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
- package/dist/{index-B8EMsnjU.cjs → index-BhH89oF0.cjs} +1 -1
- package/dist/{index-DQl1TFXa.js → index-mBy4elhB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-BrIRtQj1.js} +1 -1
- package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
- package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
- package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Ck-yukK2.js} +1 -1
- package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
- package/dist/{vue-data-ui-Byrb_Y3k.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-CM_usP2U.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
- package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
- package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-dyF20BlD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
- package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
- package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
- package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
- package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
- package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
- package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
- package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
- package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
- package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
- package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
- package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
- package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
- package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-DZJI0YuX.js} +2 -2
- package/dist/{vue-ui-donut-B3yDJvZI.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-CzBvVRKG.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
- package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
- package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
- package/dist/{vue-ui-flow-DAOKURA6.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-B86BK1JM.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
- package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BEludqYn.js} +56 -54
- package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
- package/dist/{vue-ui-gizmo-CFIBlG4V.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-ZkmD9EAg.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
- package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
- package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-zr721ux9.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
- package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
- package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
- package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-J_dI9m_i.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-CtqU4xxu.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-BMo0Ye54.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-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
- package/dist/{vue-ui-quadrant-BrRasVaj.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-uH33UIjX.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
- package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
- package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
- package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
- package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-DuRLpMwk.js} +2 -2
- package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
- package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
- package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
- package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
- package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
- package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
- package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
- package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
- package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
- package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
- package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
- package/dist/{vue-ui-smiley-2EoxEmXW.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-DjNPMOkN.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
- package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
- package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
- package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DVXxA6ji.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-CH89kcaa.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
- package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-BS9I8en7.js} +46 -44
- package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
- package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
- package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
- package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
- package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
- package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
- package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-Dtfv71zG.js} +1 -1
- package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
- package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
- package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
- package/dist/{vue-ui-timer-B8jW8M60.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-riEfve5q.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
- package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
- package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
- package/dist/{vue-ui-vertical-bar-CxRBvHZy.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-B8G4i5WH.js → vue-ui-waffle-wikAjwZY.js} +72 -70
- package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
- package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
- package/dist/{vue-ui-word-cloud-dMBTVGVk.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-iUQyB_PL.js → vue-ui-xy-CUjllUSv.js} +507 -504
- package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
- package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
- package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
- package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
- package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
- package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
- package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
- package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
- package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
- package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
- package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
- package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
- package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
- package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
- package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
- package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
- package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
- package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
- package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
- package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
- package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
- package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
- package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
- package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
- package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
- package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
- package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
- package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
- package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
- package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
- package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
- package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
- package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
- package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-BhH89oF0.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=require("./BaseIcon-CnFXP_n9.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P={beforeMount(t,u){t.clickOutsideEvent=function(a){t===a.target||t.contains(a.target)||u.value(a)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},O=["title","onClick","onKeypress"],L=["data-open"],w={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const a=t;function k(){u("generatePdf")}function d(){u("generateCsv")}function v(){u("generateImage")}const g=e.ref(!1);function b(){g.value=!g.value,u("toggleTable")}const r=e.ref(!1),p=e.ref(!0);function $(){f.value=window.innerWidth>600,r.value=!r.value,r.value&&(p.value=!1)}function z(){a.isPrinting||a.isImaging||(r.value=!1)}function V(){r.value&&z()}const y=e.ref(a.isLabelActive);function N(){y.value=!y.value,u("toggleLabels")}const m=e.ref(a.isAnimation);function S(){m.value=!m.value,u("toggleAnimation")}function T(){u("toggleSort")}const B=e.ref(a.isStacked);function M(){B.value=!B.value,u("toggleStack")}const C=e.ref(a.isTooltip);function F(){C.value=!C.value,u("toggleTooltip")}const c=e.ref(!1);function h(n){a.chartElement&&(n==="in"?(c.value=!0,a.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(c.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function E(n){document.fullscreenElement?c.value=!0:c.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",E)});const f=e.ref(window.innerWidth>600),l=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(n,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${c.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${c.value?"12px":"0"}`:`left:${c.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:r.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers($,["stop"]),onKeypress:e.withKeys($,["enter"])},[e.createVNode(s.default,{name:r.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],44,O),e.createElementVNode("div",{"data-open":r.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[0]||(o[0]=i=>l.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>l.value.tooltip=!1)},[n.$slots.optionTooltip?e.renderSlot(n.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[C.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.tooltip&&!n.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&l.value.tooltip,"button-info-right-visible":t.position==="right"&&l.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:k,onMouseenter:o[2]||(o[2]=i=>l.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>l.value.pdf=!1)},[n.$slots.optionPdf?e.renderSlot(n.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(s.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.pdf&&!n.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.pdf,"button-info-left-visible":t.position==="left"&&l.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[4]||(o[4]=i=>l.value.csv=!0),onMouseout:o[5]||(o[5]=i=>l.value.csv=!1)},[n.$slots.optionCsv?e.renderSlot(n.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),f.value&&t.titles.csv&&!n.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.csv,"button-info-left-visible":t.position==="left"&&l.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>l.value.img=!0),onMouseout:o[7]||(o[7]=i=>l.value.img=!1)},[n.$slots.optionImg?e.renderSlot(n.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(s.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.img&&!n.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.img,"button-info-left-visible":t.position==="left"&&l.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:b,onMouseenter:o[8]||(o[8]=i=>l.value.table=!0),onMouseout:o[9]||(o[9]=i=>l.value.table=!1)},[n.$slots.optionTable?e.renderSlot(n.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),f.value&&t.titles.table&&!n.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.table,"button-info-left-visible":t.position==="left"&&l.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:N,onMouseenter:o[10]||(o[10]=i=>l.value.labels=!0),onMouseout:o[11]||(o[11]=i=>l.value.labels=!1)},[n.$slots.optionLabels?e.renderSlot(n.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),f.value&&t.titles.labels&&!n.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.labels,"button-info-left-visible":t.position==="left"&&l.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:T,onMouseenter:o[12]||(o[12]=i=>l.value.sort=!0),onMouseout:o[13]||(o[13]=i=>l.value.sort=!1)},[n.$slots.optionSort?e.renderSlot(n.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),f.value&&t.titles.sort&&!n.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.sort,"button-info-left-visible":t.position==="left"&&l.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[14]||(o[14]=i=>l.value.stack=!0),onMouseout:o[15]||(o[15]=i=>l.value.stack=!1)},[n.$slots.optionStack?e.renderSlot(n.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.stack&&!n.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.stack,"button-info-left-visible":t.position==="left"&&l.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>l.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>l.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>h(c.value?"out":"in"))},[n.$slots.optionFullscreen?e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:h,isFullscreen:c.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.fullscreen&&!n.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.fullscreen,"button-info-left-visible":t.position==="left"&&l.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>l.value.animation=!0),onMouseout:o[20]||(o[20]=i=>l.value.animation=!1),onClick:S},[n.$slots.optionAnimation?e.renderSlot(n.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:S,isAnimated:m.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.fullscreen&&!n.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.animation,"button-info-left-visible":t.position==="left"&&l.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,L)],4)),[[e.unref(P),V]])}},A=I._export_sfc(w,[["__scopeId","data-v-202b6e85"]]);function D({elementId:t,fileName:u,canPrint:a=!0}){const k=e.ref(!1),d=e.ref(!1),v=e.ref(null);async function g(){!a||k.value||(k.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(a)try{const{default:r}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await r({domElement:document.getElementById(t),fileName:u})}catch(r){console.error("Error generating PDF:",r)}finally{k.value=!1}},100))}async function b(){!a||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(a)try{const{default:r}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await r({domElement:document.getElementById(t),fileName:u,format:"png"})}catch(r){console.error("Error generating image:",r)}finally{d.value=!1}},100))}return{generatePdf:g,generateImage:b,isPrinting:k,isImaging:d}}exports.UserOptions=A;exports.usePrinter=D;
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./BaseIcon-JWGtHqTA.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P={beforeMount(t,u){t.clickOutsideEvent=function(a){t===a.target||t.contains(a.target)||u.value(a)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},O=["title","onClick","onKeypress"],L=["data-open"],w={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const a=t;function k(){u("generatePdf")}function d(){u("generateCsv")}function v(){u("generateImage")}const g=e.ref(!1);function b(){g.value=!g.value,u("toggleTable")}const r=e.ref(!1),p=e.ref(!0);function $(){f.value=window.innerWidth>600,r.value=!r.value,r.value&&(p.value=!1)}function z(){a.isPrinting||a.isImaging||(r.value=!1)}function V(){r.value&&z()}const y=e.ref(a.isLabelActive);function N(){y.value=!y.value,u("toggleLabels")}const m=e.ref(a.isAnimation);function S(){m.value=!m.value,u("toggleAnimation")}function T(){u("toggleSort")}const B=e.ref(a.isStacked);function M(){B.value=!B.value,u("toggleStack")}const C=e.ref(a.isTooltip);function F(){C.value=!C.value,u("toggleTooltip")}const c=e.ref(!1);function h(n){a.chartElement&&(n==="in"?(c.value=!0,a.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(c.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function E(n){document.fullscreenElement?c.value=!0:c.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",E)});const f=e.ref(window.innerWidth>600),l=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(n,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${c.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${c.value?"12px":"0"}`:`left:${c.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:r.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers($,["stop"]),onKeypress:e.withKeys($,["enter"])},[e.createVNode(s.default,{name:r.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],44,O),e.createElementVNode("div",{"data-open":r.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[0]||(o[0]=i=>l.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>l.value.tooltip=!1)},[n.$slots.optionTooltip?e.renderSlot(n.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[C.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.tooltip&&!n.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&l.value.tooltip,"button-info-right-visible":t.position==="right"&&l.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:k,onMouseenter:o[2]||(o[2]=i=>l.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>l.value.pdf=!1)},[n.$slots.optionPdf?e.renderSlot(n.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(s.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.pdf&&!n.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.pdf,"button-info-left-visible":t.position==="left"&&l.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[4]||(o[4]=i=>l.value.csv=!0),onMouseout:o[5]||(o[5]=i=>l.value.csv=!1)},[n.$slots.optionCsv?e.renderSlot(n.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),f.value&&t.titles.csv&&!n.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.csv,"button-info-left-visible":t.position==="left"&&l.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>l.value.img=!0),onMouseout:o[7]||(o[7]=i=>l.value.img=!1)},[n.$slots.optionImg?e.renderSlot(n.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(s.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.img&&!n.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.img,"button-info-left-visible":t.position==="left"&&l.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:b,onMouseenter:o[8]||(o[8]=i=>l.value.table=!0),onMouseout:o[9]||(o[9]=i=>l.value.table=!1)},[n.$slots.optionTable?e.renderSlot(n.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),f.value&&t.titles.table&&!n.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.table,"button-info-left-visible":t.position==="left"&&l.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:N,onMouseenter:o[10]||(o[10]=i=>l.value.labels=!0),onMouseout:o[11]||(o[11]=i=>l.value.labels=!1)},[n.$slots.optionLabels?e.renderSlot(n.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),f.value&&t.titles.labels&&!n.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.labels,"button-info-left-visible":t.position==="left"&&l.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:T,onMouseenter:o[12]||(o[12]=i=>l.value.sort=!0),onMouseout:o[13]||(o[13]=i=>l.value.sort=!1)},[n.$slots.optionSort?e.renderSlot(n.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),f.value&&t.titles.sort&&!n.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.sort,"button-info-left-visible":t.position==="left"&&l.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[14]||(o[14]=i=>l.value.stack=!0),onMouseout:o[15]||(o[15]=i=>l.value.stack=!1)},[n.$slots.optionStack?e.renderSlot(n.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.stack&&!n.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.stack,"button-info-left-visible":t.position==="left"&&l.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>l.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>l.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>h(c.value?"out":"in"))},[n.$slots.optionFullscreen?e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:h,isFullscreen:c.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.fullscreen&&!n.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.fullscreen,"button-info-left-visible":t.position==="left"&&l.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>l.value.animation=!0),onMouseout:o[20]||(o[20]=i=>l.value.animation=!1),onClick:S},[n.$slots.optionAnimation?e.renderSlot(n.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:S,isAnimated:m.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.fullscreen&&!n.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.animation,"button-info-left-visible":t.position==="left"&&l.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,L)],4)),[[e.unref(P),V]])}},A=I._export_sfc(w,[["__scopeId","data-v-202b6e85"]]);function D({elementId:t,fileName:u,canPrint:a=!0}){const k=e.ref(!1),d=e.ref(!1),v=e.ref(null);async function g(){!a||k.value||(k.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(a)try{const{default:r}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await r({domElement:document.getElementById(t),fileName:u})}catch(r){console.error("Error generating PDF:",r)}finally{k.value=!1}},100))}async function b(){!a||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(a)try{const{default:r}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await r({domElement:document.getElementById(t),fileName:u,format:"png"})}catch(r){console.error("Error generating image:",r)}finally{d.value=!1}},100))}return{generatePdf:g,generateImage:b,isPrinting:k,isImaging:d}}exports.UserOptions=A;exports.usePrinter=D;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, onMounted as q, onBeforeUnmount as H, withDirectives as G, openBlock as t, createElementBlock as i, normalizeStyle as d, createElementVNode as z, withModifiers as J, withKeys as Q, createVNode as R, normalizeClass as y, renderSlot as m, Fragment as B, createBlock as g, toDisplayString as $, createCommentVNode as s, normalizeProps as D, mergeProps as U, unref as Y } from "vue";
|
|
2
|
-
import r from "./BaseIcon-
|
|
2
|
+
import r from "./BaseIcon-DfaCNBgc.js";
|
|
3
3
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const p = {
|
|
5
5
|
beforeMount(e, f) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./BaseIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./BaseIcon-JWGtHqTA.cjs"),Q={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},$={style:{width:"36px"}},z={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap"],setup(I,{expose:B,emit:E}){const i=I,{component:H,dataset:O,config:N}=e.toRefs(i),a={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-C9a-AsIX.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-DDPU8QV8.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-B9HxrEVE.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-DbbbJa-d.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-rsWP_sXY.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-Cf8TYbAr.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-BBho1-xO.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-D4WpeX9W.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BVnSrr-b.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-CGn5nkD5.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-Bz-OSNOJ.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-BtUvE7rK.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-CEAGjnkj.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DBFAzGb2.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-DltNL0kV.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-CQkF2Rp1.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-vHr23QlH.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-B6ZrryDW.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DPPXilUd.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-DpzjMFZD.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-DYcT_LS-.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-BMrPtD2n.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-CkYl3uce.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-Cjie2D-t.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-BCFym6go.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-Cf89QIhl.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-DMA6fgGr.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-CKrbBVKQ.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DfWLtFYS.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-wHJ-8zVV.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-DElVaalm.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-tZa2IYHP.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-B9dc0l0k.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-BVnGb-lu.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-A3Xxn5Ly.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-BTlJcW4v.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-Cv_mHK8H.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-ZgJq3_CI.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-BpeGEjCl.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BlgfdULS.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-FHLTc7xG.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-DUQEHohs.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-Bzq1iTL2.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-1gG267X0.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-wY14Z-Vd.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-Btj_H6fa.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-hRy6QRHK.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-BQKiB9yH.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-sNzfl_Tq.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-BJUnRVuf.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-DfMNmttZ.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-DltmIdrq.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-CCWGcKb7.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-CZZB7YgY.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-rOa0atA9.cjs")))},M={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"]},u=e.computed(()=>!a[i.component]),F=e.computed(()=>a[i.component]||null),t=e.ref(null),G=e.computed(()=>{const o=M[i.component]||[],n={};return o.includes("config")&&(n.config=N.value),o.includes("dataset")&&(n.dataset=O.value),n}),c=e.ref(()=>null),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),S=e.ref(()=>null),k=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),L=e.ref(()=>null),_=e.ref(()=>null),x=e.ref(()=>null);e.onMounted(()=>{if(u.value)throw new Error(`
|
|
2
2
|
|
|
3
3
|
Vue Data UI exception:
|
|
4
4
|
The provided component "${i.component}" does not exist. Check the spelling.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as q, defineAsyncComponent as t, computed as c, ref as o, onMounted as J, watch as B, shallowReactive as Y, openBlock as O, createElementBlock as Z, createElementVNode as R, createVNode as w, createTextVNode as ee, toDisplayString as te, unref as oe, createBlock as ie, resolveDynamicComponent as ae, mergeProps as ne, toHandlers as re, createSlots as le, renderList as se, withCtx as ue, renderSlot as ce, normalizeProps as ge, guardReactiveProps as pe } from "vue";
|
|
2
|
-
import me from "./BaseIcon-
|
|
2
|
+
import me from "./BaseIcon-DfaCNBgc.js";
|
|
3
3
|
const de = {
|
|
4
4
|
key: 0,
|
|
5
5
|
style: { width: "100%", display: "flex", gap: "6px", "align-items": "center", color: "#FF0000" }
|
|
@@ -36,62 +36,62 @@ const de = {
|
|
|
36
36
|
],
|
|
37
37
|
setup(N, { expose: F, emit: G }) {
|
|
38
38
|
const n = N, { component: M, dataset: W, config: X } = q(n), s = {
|
|
39
|
-
VueUi3dBar: t(() => import("./vue-ui-3d-bar-
|
|
40
|
-
VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-
|
|
41
|
-
VueUiAnnotator: t(() => import("./vue-ui-annotator-
|
|
42
|
-
VueUiCandlestick: t(() => import("./vue-ui-candlestick-
|
|
43
|
-
VueUiChestnut: t(() => import("./vue-ui-chestnut-
|
|
44
|
-
VueUiDashboard: t(() => import("./vue-ui-dashboard-
|
|
45
|
-
VueUiDigits: t(() => import("./vue-ui-digits-
|
|
46
|
-
VueUiDonut: t(() => import("./vue-ui-donut-
|
|
47
|
-
VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-
|
|
48
|
-
VueUiGalaxy: t(() => import("./vue-ui-galaxy-
|
|
49
|
-
VueUiGauge: t(() => import("./vue-ui-gauge-
|
|
50
|
-
VueUiHeatmap: t(() => import("./vue-ui-heatmap-
|
|
51
|
-
VueUiKpi: t(() => import("./vue-ui-kpi-
|
|
52
|
-
VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-
|
|
53
|
-
VueUiMolecule: t(() => import("./vue-ui-molecule-
|
|
54
|
-
VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-
|
|
55
|
-
VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-
|
|
56
|
-
VueUiOnion: t(() => import("./vue-ui-onion-
|
|
57
|
-
VueUiQuadrant: t(() => import("./vue-ui-quadrant-
|
|
58
|
-
VueUiRadar: t(() => import("./vue-ui-radar-
|
|
59
|
-
VueUiRating: t(() => import("./vue-ui-rating-
|
|
60
|
-
VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-
|
|
61
|
-
VueUiRings: t(() => import("./vue-ui-rings-
|
|
62
|
-
VueUiScatter: t(() => import("./vue-ui-scatter-
|
|
63
|
-
VueUiScreenshot: t(() => import("./vue-ui-screenshot-
|
|
64
|
-
VueUiSkeleton: t(() => import("./vue-ui-skeleton-
|
|
65
|
-
VueUiSmiley: t(() => import("./vue-ui-smiley-
|
|
66
|
-
VueUiSparkbar: t(() => import("./vue-ui-sparkbar-
|
|
67
|
-
VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-
|
|
68
|
-
VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-
|
|
69
|
-
VueUiSparkline: t(() => import("./vue-ui-sparkline-
|
|
70
|
-
VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-
|
|
71
|
-
VueUiTable: t(() => import("./vue-ui-table-
|
|
72
|
-
VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-
|
|
73
|
-
VueUiThermometer: t(() => import("./vue-ui-thermometer-
|
|
74
|
-
VueUiTiremarks: t(() => import("./vue-ui-tiremarks-
|
|
75
|
-
VueUiTreemap: t(() => import("./vue-ui-treemap-
|
|
76
|
-
VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-
|
|
77
|
-
VueUiWaffle: t(() => import("./vue-ui-waffle-
|
|
78
|
-
VueUiWheel: t(() => import("./vue-ui-wheel-
|
|
79
|
-
VueUiXy: t(() => import("./vue-ui-xy-
|
|
80
|
-
VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-
|
|
81
|
-
VueUiAccordion: t(() => import("./vue-ui-accordion-
|
|
82
|
-
VueUiQuickChart: t(() => import("./vue-ui-quick-chart-
|
|
83
|
-
VueUiCursor: t(() => import("./vue-ui-cursor-
|
|
84
|
-
VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-
|
|
85
|
-
VueUiStripPlot: t(() => import("./vue-ui-strip-plot-
|
|
86
|
-
VueUiDumbbell: t(() => import("./vue-ui-dumbbell-
|
|
87
|
-
VueUiWordCloud: t(() => import("./vue-ui-word-cloud-
|
|
88
|
-
VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-
|
|
89
|
-
VueUiFlow: t(() => import("./vue-ui-flow-
|
|
90
|
-
VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-
|
|
91
|
-
VueUiTimer: t(() => import("./vue-ui-timer-
|
|
92
|
-
VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-
|
|
93
|
-
VueUiGizmo: t(() => import("./vue-ui-gizmo-
|
|
94
|
-
VueUiStackbar: t(() => import("./vue-ui-stackbar-
|
|
39
|
+
VueUi3dBar: t(() => import("./vue-ui-3d-bar-Cv-56A3m.js")),
|
|
40
|
+
VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-BqsDR6uw.js")),
|
|
41
|
+
VueUiAnnotator: t(() => import("./vue-ui-annotator-CkJsRR0r.js")),
|
|
42
|
+
VueUiCandlestick: t(() => import("./vue-ui-candlestick-B8eYA2g0.js")),
|
|
43
|
+
VueUiChestnut: t(() => import("./vue-ui-chestnut-DI-N69Ad.js")),
|
|
44
|
+
VueUiDashboard: t(() => import("./vue-ui-dashboard-CiG3kXLl.js")),
|
|
45
|
+
VueUiDigits: t(() => import("./vue-ui-digits-DZJI0YuX.js")),
|
|
46
|
+
VueUiDonut: t(() => import("./vue-ui-donut-CBG9ECp8.js")),
|
|
47
|
+
VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-BtTiBfLb.js")),
|
|
48
|
+
VueUiGalaxy: t(() => import("./vue-ui-galaxy-xI38Kf-S.js")),
|
|
49
|
+
VueUiGauge: t(() => import("./vue-ui-gauge-BEludqYn.js")),
|
|
50
|
+
VueUiHeatmap: t(() => import("./vue-ui-heatmap-mywZXUV8.js")),
|
|
51
|
+
VueUiKpi: t(() => import("./vue-ui-kpi-zr721ux9.js")),
|
|
52
|
+
VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-9zyuKIpT.js")),
|
|
53
|
+
VueUiMolecule: t(() => import("./vue-ui-molecule-Bv_ppQig.js")),
|
|
54
|
+
VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-CIK2Xohn.js")),
|
|
55
|
+
VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-f-cMx3iQ.js")),
|
|
56
|
+
VueUiOnion: t(() => import("./vue-ui-onion-CmUXelhy.js")),
|
|
57
|
+
VueUiQuadrant: t(() => import("./vue-ui-quadrant-DNT_0fTL.js")),
|
|
58
|
+
VueUiRadar: t(() => import("./vue-ui-radar-CfCHXIYJ.js")),
|
|
59
|
+
VueUiRating: t(() => import("./vue-ui-rating-DuRLpMwk.js")),
|
|
60
|
+
VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-WmZMKqHL.js")),
|
|
61
|
+
VueUiRings: t(() => import("./vue-ui-rings-Ce0Z_osd.js")),
|
|
62
|
+
VueUiScatter: t(() => import("./vue-ui-scatter-DY9EpoGP.js")),
|
|
63
|
+
VueUiScreenshot: t(() => import("./vue-ui-screenshot-lQLJHBQ2.js")),
|
|
64
|
+
VueUiSkeleton: t(() => import("./vue-ui-skeleton-DDhwPZd_.js")),
|
|
65
|
+
VueUiSmiley: t(() => import("./vue-ui-smiley-xxMwBT9c.js")),
|
|
66
|
+
VueUiSparkbar: t(() => import("./vue-ui-sparkbar-Btk6snt4.js")),
|
|
67
|
+
VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-DKJtFTSv.js")),
|
|
68
|
+
VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-JRLlw9EX.js")),
|
|
69
|
+
VueUiSparkline: t(() => import("./vue-ui-sparkline-tBF9iaNm.js")),
|
|
70
|
+
VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-BS9I8en7.js")),
|
|
71
|
+
VueUiTable: t(() => import("./vue-ui-table-Dtfv71zG.js")),
|
|
72
|
+
VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-BeunspIj.js")),
|
|
73
|
+
VueUiThermometer: t(() => import("./vue-ui-thermometer-Cb9ALBj_.js")),
|
|
74
|
+
VueUiTiremarks: t(() => import("./vue-ui-tiremarks-Bse3PMGV.js")),
|
|
75
|
+
VueUiTreemap: t(() => import("./vue-ui-treemap-D8fjVYq0.js")),
|
|
76
|
+
VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-BVldPT8k.js")),
|
|
77
|
+
VueUiWaffle: t(() => import("./vue-ui-waffle-wikAjwZY.js")),
|
|
78
|
+
VueUiWheel: t(() => import("./vue-ui-wheel-D5qyBs0Y.js")),
|
|
79
|
+
VueUiXy: t(() => import("./vue-ui-xy-CUjllUSv.js")),
|
|
80
|
+
VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-BMl-sP5Q.js")),
|
|
81
|
+
VueUiAccordion: t(() => import("./vue-ui-accordion-dyF20BlD.js")),
|
|
82
|
+
VueUiQuickChart: t(() => import("./vue-ui-quick-chart-T6C0BTyw.js")),
|
|
83
|
+
VueUiCursor: t(() => import("./vue-ui-cursor-BUzJk1oC.js")),
|
|
84
|
+
VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-CLHTqp94.js")),
|
|
85
|
+
VueUiStripPlot: t(() => import("./vue-ui-strip-plot-BOkfg5vB.js")),
|
|
86
|
+
VueUiDumbbell: t(() => import("./vue-ui-dumbbell-DlEN2c_X.js")),
|
|
87
|
+
VueUiWordCloud: t(() => import("./vue-ui-word-cloud-Bcdl2iE-.js")),
|
|
88
|
+
VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-BkOlPU8e.js")),
|
|
89
|
+
VueUiFlow: t(() => import("./vue-ui-flow-CXqGztWj.js")),
|
|
90
|
+
VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-h9dS2u_k.js")),
|
|
91
|
+
VueUiTimer: t(() => import("./vue-ui-timer-2PRDq1w6.js")),
|
|
92
|
+
VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-BCiTg3Ok.js")),
|
|
93
|
+
VueUiGizmo: t(() => import("./vue-ui-gizmo-BB28OTr1.js")),
|
|
94
|
+
VueUiStackbar: t(() => import("./vue-ui-stackbar-UiX8q4yL.js"))
|
|
95
95
|
}, Q = {
|
|
96
96
|
VueUi3dBar: ["config", "dataset"],
|
|
97
97
|
VueUiAgePyramid: ["config", "dataset"],
|
package/dist/vue-data-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-BhH89oF0.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiScreenshot=e.VueUiScreenshot;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { a3 as s, a4 as u, a5 as V, a6 as U, a7 as r, a8 as t, a9 as o, aX as l, aa as n, ab as d, ac as m, ad as p, ae as S, af as c, ag as g, ah as k, ai as C, aj as b, aY as T, ak as D, al as h, am as P, an as f, ao as y, ap as R, aq as A, ar as W, as as x, at as G, au as H, av as M, aw as v, ax as w, ay as B, az as F, aA as Q, aB as X, aC as z, aD as E, aE as I, aF as K, aG as L, aH as N, aI as O, aZ as Y, aJ as j, aK as q, aL as J, aM as Z, aN as _, aO as $, aP as aa, aQ as ea, aR as ia, aS as sa, aT as ua, aU as Va, aV as Ua, aW as ra, Y as ta, a_ as oa, a$ as la, b0 as na } from "./index-
|
|
2
|
+
import { a3 as s, a4 as u, a5 as V, a6 as U, a7 as r, a8 as t, a9 as o, aX as l, aa as n, ab as d, ac as m, ad as p, ae as S, af as c, ag as g, ah as k, ai as C, aj as b, aY as T, ak as D, al as h, am as P, an as f, ao as y, ap as R, aq as A, ar as W, as as x, at as G, au as H, av as M, aw as v, ax as w, ay as B, az as F, aA as Q, aB as X, aC as z, aD as E, aE as I, aF as K, aG as L, aH as N, aI as O, aZ as Y, aJ as j, aK as q, aL as J, aM as Z, aN as _, aO as $, aP as aa, aQ as ea, aR as ia, aS as sa, aT as ua, aU as Va, aV as Ua, aW as ra, Y as ta, a_ as oa, a$ as la, b0 as na } from "./index-mBy4elhB.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|
|
5
5
|
u as VueDataUi,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BhH89oF0.cjs"),de=require("./Title-Bg_BK11V.cjs"),Q=require("./usePrinter-B8jr_V3b.cjs"),he=require("./vue-ui-skeleton-Cf89QIhl.cjs"),ve=require("./DataTable-CnkdsvIo.cjs"),pe=require("./vue-ui-accordion-Bzq1iTL2.cjs"),ee=require("./useNestedProp-m8IH8hWW.cjs"),fe=require("./PackageVersion-LdLhc8hQ.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=N=>(e.pushScopeId("data-v-8a60c7c5"),N=N(),e.popScopeId(),N),me=["id"],ye={key:0,style:"width:100%;background:transparent"},ge=["xmlns","viewBox"],$e=["id"],_e=["stop-color"],Be=["stop-color"],xe=["id"],be=["stop-color"],Ee=["stop-color"],Ce=["id"],we=["stop-color"],Ne=["stop-color"],Ve=["id"],Fe=["stop-color"],Se=["stop-color"],Me=["stop-color"],Pe={key:0},Le=["id"],Oe=["stop-color"],De=["stop-color"],ze=["id"],Te=["stop-color"],je=["stop-color"],Ie=["id"],We=["stop-color"],Ge=["stop-color"],He=["id"],Ae=L(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),qe=L(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),Ue=[Ae,qe],Xe=["x","y","font-size","font-weight","fill"],Re=["x","y"],Ze=["d","stroke"],Ye=["d","stroke"],Je={key:3},Ke={key:0},Qe=["stroke-dasharray","d","stroke","stroke-width"],et=["stroke-dasharray","d","stroke","stroke-width"],tt=["stroke-dasharray","d","stroke","stroke-width"],lt=["stroke-dasharray","d","stroke","stroke-width"],ot={key:1},at=["d","stroke","stroke-width","fill"],nt=["d","stroke","stroke-width","fill"],rt=["d","stroke","stroke-width","fill"],st={key:2},ut=["d","fill","onMouseenter","onClick"],it=["d","fill","onMouseenter","onClick"],ct=["d","fill","onMouseenter","onClick"],dt=["d","onMouseenter","onClick"],ht=["d"],vt=["d","stroke"],pt=["onClick"],ft=["stroke","d"],kt=["cx","cy","fill","stroke"],mt=["x","y","width","height"],yt={key:1},gt=["d","stroke"],$t=["d","fill","stroke"],_t=["id"],Bt=["stop-color"],xt=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),bt=["stop-color"],Et=["cx","cy","fill"],Ct=["cx","cy","fill"],wt={key:0},Nt=["text-anchor","x","y","fill","font-size"],Vt=["text-anchor","x","y","fill","font-size"],Ft={key:2},St=["d","fill","stroke"],Mt={key:4},Pt={key:0},Lt=["stroke-dasharray","d","stroke","stroke-width"],Ot=["stroke-dasharray","d","stroke","stroke-width"],Dt=["stroke-dasharray","d","stroke","stroke-width"],zt=["stroke-dasharray","d","stroke","stroke-width"],Tt=["d","stroke","stroke-width","fill"],jt=["d","stroke","stroke-width","fill"],It={key:1},Wt=["onClick"],Gt=["id"],Ht=["stop-color"],At=["stop-color"],qt=["id"],Ut=["stop-color"],Xt=["stop-color"],Rt=["stop-color"],Zt=["stop-color"],Yt=["stop-color"],Jt=["onMouseenter","onClick","d","fill"],Kt=["onMouseenter","onClick","d"],Qt=["onMouseenter","onClick","d","fill"],el=["onClick"],tl=["stroke","d"],ll=["cx","cy","fill","stroke"],ol=["x","y","width","height"],al={key:1},nl=["d","stroke"],rl=["d","fill","stroke"],sl=["id"],ul=["stop-color"],il=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),cl=["stop-color"],dl=["cx","cy","fill"],hl=["cx","cy","fill"],vl={key:0},pl=["text-anchor","x","y","fill","font-size"],fl=["text-anchor","x","y","fill","font-size"],kl={key:2},ml=["d","fill","stroke"],yl={key:3,class:"vue-data-ui-watermark"},gl=["innerHTML"],$l={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:te,emit:F}){const f=N,{vue_ui_3d_bar:le}=r.useConfig(),S=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(r.createUid()),oe=e.ref(null),z=e.ref(null),b=e.ref(!1),T=e.ref(0),j=e.ref(0),l=e.computed({get:()=>I(),set:s=>s});function I(){const s=ee.useNestedProp({userConfig:f.config,defaultConfig:le});return s.theme?{...ee.useNestedProp({userConfig:r.themes.vue_ui_3d_bar[s.theme]||f.config,defaultConfig:s}),customPalette:r.themePalettes[s.theme]||r.palette}:s}e.watch(()=>f.config,s=>{l.value=I(),q(),T.value+=1,j.value+=1},{deep:!0});const{isPrinting:W,isImaging:G,generatePdf:H,generateImage:A}=Q.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),ae=e.computed(()=>r.convertCustomPalette(l.value.customPalette)),M=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),a=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const s=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),n=f.dataset.series.map((o,u)=>({...o,id:r.createUid(),proportion:(o.value||0)/s,color:r.convertColorToHex(o.color)||ae.value[u]||r.palette[u]||r.palette[u%r.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<n.length;o+=1)t.push({...n[o],fill:ne(c,n[o].proportion,n[o].breakdown,n[o].color)}),c+=n[o].proportion;return t}return null}),B=e.computed(()=>({right:`M${a.value.width/2},${a.value.top} ${a.value.width-a.value.right}, ${a.value.top+a.value.perspective} ${a.value.width-a.value.right},${a.value.height-a.value.bottom-a.value.perspective} ${a.value.width/2},${a.value.height-a.value.bottom}`,left:`M${a.value.width/2},${a.value.top} ${a.value.left},${a.value.top+a.value.perspective} ${a.value.left},${a.value.height-a.value.bottom-a.value.perspective} ${a.value.width/2},${a.value.height-a.value.bottom}`,side:`M${a.value.width/2},${a.value.height-a.value.bottom} ${a.value.width/2},${a.value.top+a.value.perspective*2}`,topSides:`M${a.value.left},${a.value.top+a.value.perspective} ${a.value.width/2},${a.value.top+a.value.perspective*2} ${a.value.width-a.value.right},${a.value.top+a.value.perspective}`,tubeTop:`M${a.value.left},${a.value.top+a.value.perspective} C ${a.value.left},${a.value.top-a.value.perspective/3} ${a.value.width-a.value.right},${a.value.top-a.value.perspective/3} ${a.value.width-a.value.right},${a.value.top+a.value.perspective} C ${a.value.width-a.value.right},${a.value.top+a.value.perspective*2.3} ${a.value.left},${a.value.top+a.value.perspective*2.3} ${a.value.left},${a.value.top+a.value.perspective}`,tubeLeft:`M${a.value.left},${a.value.top+a.value.perspective} ${a.value.left},${a.value.height-a.value.bottom-a.value.perspective}`,tubeRight:`M${a.value.width-a.value.right},${a.value.top+a.value.perspective} ${a.value.width-a.value.right},${a.value.height-a.value.bottom-a.value.perspective}`,tubeBottom:`M${a.value.width-a.value.right},${a.value.height-a.value.bottom-a.value.perspective} C ${a.value.width-a.value.right},${a.value.height} ${a.value.left},${a.value.height} ${a.value.left},${a.value.height-a.value.bottom-a.value.perspective}`})),C=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{q();let s=0,n=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){C.value+=n+s,s+=t,C.value<f.dataset.percentage?requestAnimationFrame(c):C.value=f.dataset.percentage}l.value.style.chart.animation.use&&(C.value=0,c())});function q(){r.objectIsEmpty(f.dataset)?r.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((s,n)=>{r.getMissingDatasetAttributes({datasetObject:s,requiredAttributes:["name","value"]}).forEach(t=>{r.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:n})}),s.breakdown&&s.breakdown.forEach((t,c)=>{r.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{r.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${n} - ${c}`})})})}):r.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(s=>{r.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:s})})}function ne(s,n,t,c){const o=a.value.height-a.value.bottom-a.value.top-a.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=a.value,d=p+o*s,D=i-d-v-o*n/2,ue=D>a.value.height/2?"top":"bottom",Z=64,ie=!!t;let Y=null,J=null;return ie&&(t=t.map((K,ce)=>({...K,value:K.value||0,color:r.lightenHexColor(c,ce/t.length)})),Y=r.makeDonut({series:t},u+a.value.absoluteWidth/4-14,ue==="top"?D-Z:D+Z,28,28,1.99999,2,1,360,105.25,14),J=r.makeDonut({series:t},u-y+20,i-d-v-o*n/2,6,6,1.99999,2,1,360,105.25,6)),{donut:Y,miniDonut:J,sidePointer:{x:u-y,y:i-d-v-o*n/2,topY:i-d-v-o*n,height:o*n},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*n,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*n} ${u-y},${i-d-v-o*n} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*n} ${h}, ${i-d-v-o*n} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*n} ${u/2},${i-d-o*n} ${u-y},${i-d-v-o*n}`,liningTopShade:`M${h},${i-d-v-o*n-.5} ${u/2},${i-d-o*n-.5} ${u-y},${i-d-v-o*n-.5}`,top:`M${u/2},${i-d-o*n} ${h},${i-d-v-o*n} ${u/2},${i-d-v*2-o*n} ${u-y},${i-d-v-o*n} Z`,tubeTop:`M${h},${i-d-o*n-v} C ${h},${i-d-o*n-v*2.5} ${u-y},${i-d-o*n-v*2.5} ${u-y},${i-d-o*n-v} C ${u-y},${i-d-o*n+v/2} ${h},${i-d-o*n+v/2} ${h},${i-d-o*n-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
|
+
${h},${i-d-o*n-v}
|
|
3
|
+
C ${h},${i-d-o*n+v/2}
|
|
4
|
+
${u-y},${i-d-o*n+v/2}
|
|
5
|
+
${u-y},${i-d-o*n-v}
|
|
6
|
+
L${u-y},${i-d-v}
|
|
7
|
+
C
|
|
8
|
+
${u-y},${i-d+v/2}
|
|
9
|
+
${h},${i-d+v/2}
|
|
10
|
+
${h},${i-d-v}Z`}}const V=e.computed(()=>{const s=C.value/100,n=a.value.height-a.value.bottom-a.value.top-a.value.perspective*2,{width:t,height:c,bottom:o,right:u,left:i,perspective:p}=a.value,h=o+n*0;return{right:`M${t/2},${c-h} ${t/2},${c-h-n*s} ${t-u},${c-h-p-n*s} ${t-u},${c-h-p}Z`,left:`M${t/2},${c-h} ${t/2},${c-h-n*s} ${i}, ${c-h-p-n*s} ${i},${c-h-p}Z`,top:`M${t/2},${c-h-n*s} ${i},${c-h-p-n*s} ${t/2},${c-h-p*2-n*s} ${t-u},${c-h-p-n*s} Z`,tubeTop:`M${i},${c-h-n*s-p} C ${i},${c-h-n*s-p*2.5} ${t-u},${c-h-n*s-p*2.5} ${t-u},${c-h-n*s-p} C ${t-u},${c-h-n*s+p/2} ${i},${c-h-n*s+p/2} ${i},${c-h-n*s-p}`,tubeBody:`M
|
|
11
|
+
${i},${c-h-n*s-p}
|
|
12
|
+
C ${i},${c-h-n*s+p/2}
|
|
13
|
+
${t-u},${c-h-n*s+p/2}
|
|
14
|
+
${t-u},${c-h-n*s-p}
|
|
15
|
+
L${t-u},${c-p*1.5}
|
|
16
|
+
C
|
|
17
|
+
${t-u},${c}
|
|
18
|
+
${i},${c}
|
|
19
|
+
${i},${c-h-p}Z`}}),m=e.ref(null);function _(s,n=!1){F("selectDatapoint",s),n||(m.value=s.id),n&&b.value&&(b.value=!1),n&&!b.value&&(b.value=!0)}function E(){b.value||(m.value=null)}function w(s,n,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(s.value/c)?0:s.value/c*100,u=isNaN(s.value/U(n))?0:s.value/U(n)*100;return t?u:o.toFixed(0)+"%"}function U(s){return[...s].map(n=>n.value).reduce((n,t)=>n+t,0)}const O=e.ref(!1);function re(s){O.value=s}function se(){return $.value?g.value:f.dataset.percentage}const x=e.computed(()=>{if($.value){const s=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:r.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),n=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:s,body:n}}else return null});function X(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const s=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),n=x.value.head.map((o,u)=>[[o.name],[x.value.body[u]],[isNaN(x.value.body[u]/s)?"-":x.value.body[u]/s*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(n),c=r.createCsvContent(t);r.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const P=e.computed(()=>{const s=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),n=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:l.value.style.chart.legend.prefix,v:s,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=x.value.head.map((u,i)=>{const p=r.dataLabel({p:l.value.style.chart.legend.prefix,v:x.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(x.value.body[i]/s)?"-":r.dataLabel({v:x.value.body[i]/s*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:n,body:t,config:c}});function R(){M.value.showTable=!M.value.showTable}return te({generateCsv:X,generatePdf:H,generateImage:A,getData:se,toggleTable:R}),(s,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:z,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`},[l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${T.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(Q.UserOptions,{key:1,ref_key:"details",ref:oe,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(W),isImaging:e.unref(G),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:z.value,position:l.value.userOptions.position,onToggleFullscreen:re,onGeneratePdf:e.unref(H),onGenerateCsv:X,onGenerateImage:e.unref(A),onToggleTable:R},e.createSlots({_:2},[s.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,s.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,s.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,s.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,s.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(s.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),viewBox:`0 0 ${a.value.absoluteWidth} ${a.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Be)],8,$e),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Ee)],8,xe),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Ne)],8,Ce),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Fe),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.bar.color,40)},null,8,Me)],8,Ve)]),$.value?(e.openBlock(),e.createElementBlock("defs",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.5),80)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,De)],8,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.color,80)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.5),100)},null,8,je)],8,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.5),100)},null,8,We),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.color,80)},null,8,Ge)],8,Ie))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},Ue,8,He)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:1,x:a.value.width/2,y:a.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(r.dataLabel)({v:C.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,Xe)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("g",{key:2,onClick:n[0]||(n[0]=t=>{b.value=!1,m.value=null}),"data-html2canvas-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:a.value.width/2-6,y:a.value.top-20,height:12,width:12,fill:"transparent"},null,8,Re),e.createElementVNode("path",{d:`M${a.value.width/2-6},${a.value.top-20} ${a.value.width/2+6},${a.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,Ze),e.createElementVNode("path",{d:`M${a.value.width/2+6},${a.value.top-20} ${a.value.width/2-6},${a.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,Ye)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",Je,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",Ke,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Qe),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,et),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,tt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,lt)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("path",{d:V.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,at),e.createElementVNode("path",{d:V.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,nt),e.createElementVNode("path",{d:V.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,rt)])),$.value?(e.openBlock(),e.createElementBlock("g",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,ut),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,it),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,ct),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E},null,40,dt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,ht)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,ft),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,kt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:a.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(r.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,mt)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,gt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,$t))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Bt),xt,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,bt)],8,_t)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,Et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,Ct))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",wt,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Nt),e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,Vt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,St))),256))])):e.createCommentVNode("",!0)],12,pt))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",Mt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",Pt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Lt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Ot),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Dt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,zt),e.createElementVNode("path",{d:V.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,Tt),e.createElementVNode("path",{d:V.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,jt)])),$.value?(e.openBlock(),e.createElementBlock("g",It,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.5),80)},null,8,Ht),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.1),80)},null,8,At)],8,Gt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,Ut),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.7),100)},null,8,Xt),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(r.setOpacity)(e.unref(r.darkenHexColor)(t.color,.5),100)},null,8,Rt),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(r.setOpacity)(t.color,80)},null,8,Zt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.lightenHexColor)(t.color,.7),100)},null,8,Yt)],8,qt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,Jt),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,Kt)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:E,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,Qt)],12,Wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,tl),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,ll)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:a.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(r.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,ol)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",al,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,nl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,rl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,ul),il,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,cl)],8,sl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,dl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,hl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",vl,[e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(r.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,pl),e.createElementVNode("text",{"text-anchor":e.unref(r.calcMarkerOffsetX)(o).anchor,x:e.unref(r.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(r.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,fl)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",kl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,ml))),256))])):e.createCommentVNode("",!0)],12,el))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"svg",{svg:a.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),s.$slots.watermark?(e.openBlock(),e.createElementBlock("div",yl,[e.renderSlot(s.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(W)||e.unref(G)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:4,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),S.value&&$.value?(e.openBlock(),e.createBlock(pe.default,{key:5,hideDetails:"",config:{open:M.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ve.DataTable,{key:`table_${j.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=t=>M.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,gl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,me))}},_l=ke._export_sfc($l,[["__scopeId","data-v-8a60c7c5"]]);exports.default=_l;
|