vue-data-ui 2.6.52-beta.0 → 2.6.52-beta.1
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-BrgzjEu9.js → Arrow-I48MZsS9.js} +1 -1
- package/dist/{Arrow-i892KlJJ.cjs → Arrow-kIFF7ZYV.cjs} +1 -1
- package/dist/{BaseIcon-OIGwOnCM.cjs → BaseIcon-BOQVvTGG.cjs} +1 -1
- package/dist/{BaseIcon-1Kh1hniD.js → BaseIcon-CFB6fPTZ.js} +1 -1
- package/dist/{ColorPicker-C5fe9E7-.cjs → ColorPicker-Dsyn6kHE.cjs} +1 -1
- package/dist/{ColorPicker-Cxeiob9V.js → ColorPicker-oHlXqJ1s.js} +3 -3
- package/dist/{DataTable-C4Zf4XLF.js → DataTable-DGdwXWsw.js} +2 -2
- package/dist/{DataTable-DJyyRRlW.cjs → DataTable-mQHJFe7I.cjs} +1 -1
- package/dist/{Legend-1pyX_J1z.js → Legend-1Ck4SMAf.js} +2 -2
- package/dist/{Legend-Dx4tku_Q.cjs → Legend-DTO9ZsCn.cjs} +1 -1
- package/dist/PackageVersion-Bjsb4wZp.cjs +1 -0
- package/dist/{PackageVersion-BPpaTwrM.js → PackageVersion-BvgxXhNs.js} +3 -3
- package/dist/{PenAndPaper-B21RAf9P.js → PenAndPaper-Ck-AwE4Q.js} +3 -3
- package/dist/{PenAndPaper-C0I2pjPq.cjs → PenAndPaper-D7jbmI-E.cjs} +1 -1
- package/dist/{Shape-Bn0OAR4-.cjs → Shape-CJaW8bX9.cjs} +1 -1
- package/dist/{Shape-BrtnGizi.js → Shape-CPCH8j2H.js} +1 -1
- package/dist/{Slicer-BrIoq1c-.cjs → Slicer-CC32--YM.cjs} +1 -1
- package/dist/{Slicer-BeRcAG--.js → Slicer-DNZDQslR.js} +2 -2
- package/dist/{Title-rbJs8Cs3.js → Title-B_6aT-6J.js} +1 -1
- package/dist/{Title-CcW9kRtT.cjs → Title-cUV-IKQY.cjs} +1 -1
- package/dist/{Tooltip-DZGBhn8l.js → Tooltip-Ue-AAjZt.js} +1 -1
- package/dist/{Tooltip-BzDUupFB.cjs → Tooltip-WSVLbzMX.cjs} +1 -1
- package/dist/dom-to-png-9admCVmW.cjs +1 -0
- package/dist/dom-to-png-Bt7F5Nv1.js +128 -0
- package/dist/{img-DN4K4BLQ.cjs → img-11TFQm4X.cjs} +1 -1
- package/dist/{img-hntVQbmL.js → img-UIozzgIR.js} +1 -1
- package/dist/{index-DYjLUPYr.js → index-BkzHk-mH.js} +1 -1
- package/dist/{index-CuIvJLJx.cjs → index-CSxlyqJ7.cjs} +1 -1
- package/dist/{pdf-BwewXrne.js → pdf-BRtlQnE2.js} +1 -1
- package/dist/{pdf-ClzzT4YP.cjs → pdf-Cs21Kg1k.cjs} +1 -1
- package/dist/{useNestedProp-B3OcLUMU.cjs → useNestedProp-BMWO2CO2.cjs} +1 -1
- package/dist/{useNestedProp-DPpLpUNG.js → useNestedProp-K8B9GMrW.js} +1 -1
- package/dist/{usePrinter-BwwdT1Uh.cjs → usePrinter-BYER6sQ7.cjs} +1 -1
- package/dist/{usePrinter-GOjH1UQd.js → usePrinter-zF7SO-jf.js} +3 -3
- package/dist/{vue-data-ui-CgYIT4l6.js → vue-data-ui-BMg9P9Ko.js} +60 -60
- package/dist/{vue-data-ui-XSn3UFqP.cjs → vue-data-ui-YsV6liep.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-d2lzwwD0.cjs → vue-ui-3d-bar-BrwW8AgR.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BFA4GviN.js → vue-ui-3d-bar-DSzHyy5V.js} +9 -9
- package/dist/{vue-ui-accordion-zFcofzrb.js → vue-ui-accordion-BISaJ4se.js} +3 -3
- package/dist/{vue-ui-accordion-ZlcsLKVn.cjs → vue-ui-accordion-PlYDvxUG.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BrS-QXEl.cjs → vue-ui-age-pyramid-BqoBtF0a.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-HYnV6m7j.js → vue-ui-age-pyramid-C3FyApR-.js} +10 -10
- package/dist/{vue-ui-annotator-DpcBNv4G.cjs → vue-ui-annotator-BtSw5RTy.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bnl6xoGx.js → vue-ui-annotator-DpgKrG5x.js} +2 -2
- package/dist/{vue-ui-bullet-CUg-Tqm5.cjs → vue-ui-bullet-CGi-_8Ex.cjs} +1 -1
- package/dist/{vue-ui-bullet-BMAoQg9X.js → vue-ui-bullet-DbcQ3wBe.js} +8 -8
- package/dist/{vue-ui-candlestick-BB_TlvHs.cjs → vue-ui-candlestick-BH8jTbOQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D99-OMzs.js → vue-ui-candlestick-tRVF3zq2.js} +11 -11
- package/dist/{vue-ui-carousel-table-BLMby8AI.cjs → vue-ui-carousel-table-BWCwHbxI.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cj28UhyG.js → vue-ui-carousel-table-D8sL6coX.js} +4 -4
- package/dist/{vue-ui-chestnut-CK_b_ta8.cjs → vue-ui-chestnut-CpTCDjC9.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BcHI2rpx.js → vue-ui-chestnut-CroVLVsl.js} +8 -8
- package/dist/{vue-ui-circle-pack-BYhg53UE.js → vue-ui-circle-pack-B2tf5UQ1.js} +9 -9
- package/dist/{vue-ui-circle-pack-ClzkEDGg.cjs → vue-ui-circle-pack-C3wA6hOc.cjs} +1 -1
- package/dist/{vue-ui-cursor-DkcChdeb.js → vue-ui-cursor-96gSvyiC.js} +2 -2
- package/dist/{vue-ui-cursor-B3u3ldcD.cjs → vue-ui-cursor-DL-bISlq.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Nt0DdH9L.cjs → vue-ui-dashboard-BUdFapPP.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BdnlFgl5.js → vue-ui-dashboard-Dp5jRRt4.js} +3 -3
- package/dist/{vue-ui-digits-D_BKH_j3.js → vue-ui-digits-BezGWOAR.js} +2 -2
- package/dist/{vue-ui-digits-LJ5NoBDi.cjs → vue-ui-digits-XY3jIcLV.cjs} +1 -1
- package/dist/{vue-ui-donut-kRhrhvjt.cjs → vue-ui-donut-BdsK9pBW.cjs} +1 -1
- package/dist/{vue-ui-donut-DKIAm-ME.js → vue-ui-donut-CIe8gApD.js} +12 -12
- package/dist/{vue-ui-donut-evolution-BtnTa4le.cjs → vue-ui-donut-evolution-Dv7fyWwE.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-B_aFgOze.js → vue-ui-donut-evolution-Ii8EmOJK.js} +11 -11
- package/dist/{vue-ui-dumbbell-jzYimGnw.js → vue-ui-dumbbell-CR60USAn.js} +10 -10
- package/dist/{vue-ui-dumbbell-BFYVlYa4.cjs → vue-ui-dumbbell-DJ3wkIdL.cjs} +1 -1
- package/dist/{vue-ui-flow-BuXSGu-i.cjs → vue-ui-flow-3clUbPLS.cjs} +1 -1
- package/dist/{vue-ui-flow-CqihZo8O.js → vue-ui-flow-xiil6BiJ.js} +9 -9
- package/dist/{vue-ui-funnel-CpaBBSbU.cjs → vue-ui-funnel-BAkm-e1r.cjs} +1 -1
- package/dist/{vue-ui-funnel-B9OFgkeR.js → vue-ui-funnel-B_C8XDGt.js} +9 -9
- package/dist/{vue-ui-galaxy-BCQr-U2u.cjs → vue-ui-galaxy-CcW4rvCT.cjs} +1 -1
- package/dist/{vue-ui-galaxy-FOIZdAZe.js → vue-ui-galaxy-CyaoeQSJ.js} +11 -11
- package/dist/{vue-ui-gauge-kZxueLp8.cjs → vue-ui-gauge-BSB-sjTl.cjs} +1 -1
- package/dist/{vue-ui-gauge-B42XWwB2.js → vue-ui-gauge-DQKc53lU.js} +7 -7
- package/dist/{vue-ui-gizmo-DNzFp5mg.js → vue-ui-gizmo-CpfXe7sK.js} +3 -3
- package/dist/{vue-ui-gizmo-DtQnmFnB.cjs → vue-ui-gizmo-DGbdinaX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DwTkeSCE.cjs → vue-ui-heatmap-CCmoyf1C.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CBahWBfm.js → vue-ui-heatmap-DMHGF1P2.js} +10 -10
- package/dist/{vue-ui-history-plot-BLZfokqh.cjs → vue-ui-history-plot-DEyodaqF.cjs} +1 -1
- package/dist/{vue-ui-history-plot-JF7Cxj70.js → vue-ui-history-plot-nEHSahCX.js} +11 -11
- package/dist/{vue-ui-kpi-Dd7_MpTH.js → vue-ui-kpi-mOUIJEXy.js} +3 -3
- package/dist/{vue-ui-kpi-DgYNzLPE.cjs → vue-ui-kpi-pREkpkrt.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CYlUH9YB.js → vue-ui-mini-loader-BC28g1xw.js} +2 -2
- package/dist/{vue-ui-mini-loader-AnEvVAeN.cjs → vue-ui-mini-loader-DBEfeiv2.cjs} +1 -1
- package/dist/{vue-ui-molecule-CwjSX0qp.js → vue-ui-molecule-DL4vsgin.js} +11 -11
- package/dist/{vue-ui-molecule-DenzPBhZ.cjs → vue-ui-molecule-P-E8liNf.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B_ZdNRq7.js → vue-ui-mood-radar-ucZjBaMd.js} +11 -11
- package/dist/{vue-ui-mood-radar-oZi1r3t2.cjs → vue-ui-mood-radar-vFL9b0RB.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-u6o7Mo5w.js → vue-ui-nested-donuts-BoNxqHBv.js} +11 -11
- package/dist/{vue-ui-nested-donuts-1iw0Uhgn.cjs → vue-ui-nested-donuts-WOIeKM41.cjs} +1 -1
- package/dist/{vue-ui-onion-BIgB8q-o.js → vue-ui-onion-BK6_uToF.js} +11 -11
- package/dist/{vue-ui-onion-nSs841wa.cjs → vue-ui-onion-D-RVPykW.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CLZbLwv6.cjs → vue-ui-parallel-coordinate-plot-BtYgR4eK.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CzdztQbb.js → vue-ui-parallel-coordinate-plot-C-skJdiu.js} +12 -12
- package/dist/{vue-ui-quadrant-DVJk4jVY.cjs → vue-ui-quadrant-DK3JBMd_.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Dqj0kKDK.js → vue-ui-quadrant-DwKSro9l.js} +12 -12
- package/dist/{vue-ui-quick-chart-DseczpPU.cjs → vue-ui-quick-chart-CZcqcglo.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-C16V9Aae.js → vue-ui-quick-chart-RoCE-7bx.js} +9 -9
- package/dist/{vue-ui-radar-Db7iB_Qj.js → vue-ui-radar-DsJu_WF9.js} +12 -12
- package/dist/{vue-ui-radar-BAeIHJpy.cjs → vue-ui-radar-k50yck9x.cjs} +1 -1
- package/dist/{vue-ui-rating-JEdFnT3W.js → vue-ui-rating-BiTJkogW.js} +2 -2
- package/dist/{vue-ui-rating-D0Dx6ZXa.cjs → vue-ui-rating-DqNYM80G.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DQna8U5y.cjs → vue-ui-relation-circle-B3g0MhAd.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-gakSZ4S6.js → vue-ui-relation-circle-CXAwYlII.js} +7 -7
- package/dist/{vue-ui-rings-DtRyfbLl.cjs → vue-ui-rings-BLb7r3Vs.cjs} +1 -1
- package/dist/{vue-ui-rings-D5n6DT_A.js → vue-ui-rings-Oof8uK1q.js} +12 -12
- package/dist/{vue-ui-scatter-PREHAey0.js → vue-ui-scatter-D2aNkZYy.js} +12 -12
- package/dist/{vue-ui-scatter-Bi6D12HK.cjs → vue-ui-scatter-Dso8zcQ-.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B3iHjtI-.cjs → vue-ui-skeleton-CG-VHaCK.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bvgys0sE.js → vue-ui-skeleton-DxHXl65y.js} +3 -3
- package/dist/{vue-ui-smiley-CPZZHQxU.cjs → vue-ui-smiley-B1s0Pz0I.cjs} +1 -1
- package/dist/{vue-ui-smiley-Bbz2pMRt.js → vue-ui-smiley-B8Oar29S.js} +2 -2
- package/dist/{vue-ui-spark-trend-OSzSYi-e.js → vue-ui-spark-trend-C28svcHz.js} +5 -5
- package/dist/{vue-ui-spark-trend-BQJgJLH1.cjs → vue-ui-spark-trend-Ckz2Ct-0.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CMXau9-B.cjs → vue-ui-sparkbar-s2eymivO.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CTBKE2AF.js → vue-ui-sparkbar-zR50kBP5.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cut-q8bg.js → vue-ui-sparkgauge-BHykT4UY.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DXGiSj1v.cjs → vue-ui-sparkgauge-DVnrILJy.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-D0JFcRmB.cjs → vue-ui-sparkhistogram-CAjWW3AJ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bc9284wI.js → vue-ui-sparkhistogram-DbO2SI38.js} +5 -5
- package/dist/{vue-ui-sparkline-BjuntN3v.cjs → vue-ui-sparkline-C-RM0mDc.cjs} +1 -1
- package/dist/{vue-ui-sparkline-JtLdV2lv.js → vue-ui-sparkline-DZMLTb2s.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Dnb7y-aL.js → vue-ui-sparkstackbar-HA1vQs01.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-UHMiNIcM.cjs → vue-ui-sparkstackbar-X7aKVG4D.cjs} +1 -1
- package/dist/{vue-ui-stackbar-B3tfGGNG.cjs → vue-ui-stackbar-CGL_gUOb.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Do4pbvT_.js → vue-ui-stackbar-CxnUlGuM.js} +13 -13
- package/dist/{vue-ui-strip-plot-BL_QIbRg.cjs → vue-ui-strip-plot-BdV8E2mU.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DpEyBQVy.js → vue-ui-strip-plot-D8rkli8L.js} +11 -11
- package/dist/{vue-ui-table-Bo6YTb5z.cjs → vue-ui-table-C91BPx4E.cjs} +1 -1
- package/dist/{vue-ui-table-DOy0Vino.js → vue-ui-table-DElTWwyP.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BEyXNXkX.cjs → vue-ui-table-heatmap-B9BrmNF4.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BBtNwXmc.js → vue-ui-table-heatmap-CE0NipCw.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CgMtPPVk.js → vue-ui-table-sparkline-BXTmILTU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CjOt6yUn.cjs → vue-ui-table-sparkline-CjRvXelB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-mxQsDV23.js → vue-ui-thermometer-C6i-p0hg.js} +7 -7
- package/dist/{vue-ui-thermometer-DDzJGu-3.cjs → vue-ui-thermometer-CP1LDoqq.cjs} +1 -1
- package/dist/{vue-ui-timer-BoHc9W-g.cjs → vue-ui-timer-Cgfs3wKV.cjs} +1 -1
- package/dist/{vue-ui-timer-py5C5kre.js → vue-ui-timer-l3Wc-x8d.js} +5 -5
- package/dist/{vue-ui-tiremarks-DfzjVsQy.cjs → vue-ui-tiremarks-BmIfZyJk.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-cOumsgMp.js → vue-ui-tiremarks-D_5DNlgH.js} +7 -7
- package/dist/{vue-ui-treemap-BapuAvm_.cjs → vue-ui-treemap-BjIi-bzk.cjs} +1 -1
- package/dist/{vue-ui-treemap-D52gL3aO.js → vue-ui-treemap-vRqafziK.js} +12 -12
- package/dist/{vue-ui-vertical-bar-tUOVTrhe.cjs → vue-ui-vertical-bar-0lou3eUl.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B7xGhcol.js → vue-ui-vertical-bar-ZkFfYNVT.js} +12 -12
- package/dist/{vue-ui-waffle-Dl3103a6.js → vue-ui-waffle-B4sJZZwD.js} +12 -12
- package/dist/{vue-ui-waffle-D_eTTi3G.cjs → vue-ui-waffle-BPVMcyHO.cjs} +1 -1
- package/dist/{vue-ui-wheel-j5qr7c2B.js → vue-ui-wheel-BVVPh7ke.js} +7 -7
- package/dist/{vue-ui-wheel-BF-ixbP0.cjs → vue-ui-wheel-DWfsxrSb.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DzhX3V-T.cjs → vue-ui-word-cloud-CynGL0Rl.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CDCHlEtX.js → vue-ui-word-cloud-D4297p4B.js} +10 -10
- package/dist/{vue-ui-xy-DXp678aj.cjs → vue-ui-xy-CJ_nzjCC.cjs} +2 -2
- package/dist/{vue-ui-xy-Cqd9LwBJ.js → vue-ui-xy-KwmX3h7W.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DfYwxC06.cjs → vue-ui-xy-canvas-BYoUyBzb.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-byW5VmrH.js → vue-ui-xy-canvas-B_ZxmLAx.js} +12 -12
- package/package.json +1 -1
- package/dist/PackageVersion-Di08b2vs.cjs +0 -1
- package/dist/dom-to-png-BpstRczV.cjs +0 -1
- package/dist/dom-to-png-DFDQ3B5I.js +0 -119
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),xe=require("./BaseIcon-OIGwOnCM.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-CuIvJLJx.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
|
|
1
|
+
"use strict";const e=require("vue"),xe=require("./BaseIcon-BOQVvTGG.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-CSxlyqJ7.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
|
|
2
|
-
import Ve from "./BaseIcon-
|
|
2
|
+
import Ve from "./BaseIcon-CFB6fPTZ.js";
|
|
3
3
|
import { t as We, u as Xe } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-
|
|
4
|
+
import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-BkzHk-mH.js";
|
|
5
5
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Ge = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
|
|
2
|
-
import { u as c } from "./useNestedProp-
|
|
2
|
+
import { u as c } from "./useNestedProp-K8B9GMrW.js";
|
|
3
3
|
const x = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./useNestedProp-BMWO2CO2.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(i){const n=i,t=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"atom-title",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).title.color};font-size:${e.unref(t).title.fontSize}px;font-weight:${e.unref(t).title.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).title.text),5),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"atom-subtitle",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).subtitle.text),5)):e.createCommentVNode("",!0),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},[e.renderSlot(l.$slots,"default")],4)):e.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as a, onMounted as b, onUnmounted as h, computed as p, createBlock as g, openBlock as v, Teleport as x, createElementBlock as S, createCommentVNode as k, normalizeStyle as $, normalizeClass as C, renderSlot as c, createElementVNode as B } from "vue";
|
|
2
|
-
import { s as F } from "./index-
|
|
2
|
+
import { s as F } from "./index-BkzHk-mH.js";
|
|
3
3
|
function w({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: u = 24, blockShiftY: s = !1 }) {
|
|
4
4
|
const l = a(0), f = a(u);
|
|
5
5
|
if (e && o) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./index-CSxlyqJ7.cjs");function y({tooltip:e,chart:l,clientPosition:o,positionPreference:u="center",defaultOffsetY:a=24,blockShiftY:f=!1}){const n=t.ref(0),s=t.ref(a);if(e&&l){const{width:r,height:c}=e.getBoundingClientRect(),{right:i,left:d,bottom:v}=l.getBoundingClientRect();u==="center"&&(o.x+r/2>i?n.value=-r+(i-o.x):o.x-r/2<d?n.value=-r+(r-(o.x-d)):n.value=-r/2),u==="right"&&(o.x+r>i?n.value=-r+(i-o.x):n.value=0),u==="left"&&(o.x<d+r?n.value=-r+(r-(o.x-d)):n.value=-r),o.y+c>v&&!f&&(s.value=-c-a)}return{top:o.y+s.value,left:o.x+n.value}}function b(e,l,o){t.onMounted(()=>e.addEventListener(l,o)),t.onUnmounted(()=>e.removeEventListener(l,o))}function m(){const e=t.ref(0),l=t.ref(0);return b(window,"mousemove",o=>{e.value=o.clientX,l.value=o.clientY}),{x:e,y:l}}const h=["aria-hidden"],g=["innerHTML"],x={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24},blockShiftY:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1}},setup(e){const l=e,o=t.ref(null),u=t.ref(m(l.parent)),a=t.computed(()=>y({tooltip:o.value,chart:l.parent,clientPosition:u.value,positionPreference:l.position,defaultOffsetY:l.offsetY,blockShiftY:l.blockShiftY})),f=t.computed(()=>p.setOpacity(l.backgroundColor,l.backgroundOpacity));return(n,s)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.isFullscreen?e.parent:"body"},[e.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"tooltip",ref:o,role:"tooltip","aria-hidden":!e.show,"aria-live":"polite",class:t.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:t.normalizeStyle(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};z-index:2147483647;`)},[t.renderSlot(n.$slots,"tooltip-before"),t.renderSlot(n.$slots,"default"),t.createElementVNode("div",{innerHTML:e.content},null,8,g),t.renderSlot(n.$slots,"tooltip-after")],14,h)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const x=require("./index-CSxlyqJ7.cjs");async function $(e){const n=e.querySelectorAll("img"),o=[];n.forEach(t=>{t.src&&!t.src.startsWith("data:")&&o.push(new Promise(r=>{const a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){try{const s=document.createElement("canvas");s.width=a.naturalWidth,s.height=a.naturalHeight,s.getContext("2d").drawImage(a,0,0),t.src=s.toDataURL()}catch{}r()},a.onerror=function(){r()},a.src=t.src}))}),await Promise.all(o)}function I(e){e.querySelectorAll("[data-dom-to-png-ignore]").forEach(o=>{o.parentNode&&o.parentNode.removeChild(o)})}function b(e,n,o){const t=window.getComputedStyle(n);let r={},a=e.getAttribute("style");typeof a!="string"&&(a=""),a.split(";").forEach(i=>{if(typeof i=="string"&&i.trim()){const[d,f]=i.split(":");d&&f!==void 0&&(r[d.trim()]=f.trim())}});for(let i=0;i<t.length;i+=1){const d=t[i],f=t.getPropertyValue(d);r[d]=f}r.overflow="visible",r["overflow-x"]="visible",r["overflow-y"]="visible";const s=n.getBoundingClientRect();s.width>0&&(r.width=s.width+"px");const p=Math.max(n.scrollHeight,s.height);p>0&&(r.height=p+"px"),o&&(r["font-family"]=o);let w="";for(const i in r)w+=`${i}:${r[i]};`;e.setAttribute("style",w);const l=e.children||[],h=n.children||[];for(let i=0;i<l.length;i++)l[i].nodeType===1&&h[i]&&b(l[i],h[i],o)}function L(e,n){e.querySelectorAll("text").forEach(t=>{t.setAttribute("font-family",n),t.style.fontFamily=n})}function N(e){const n=new TextEncoder().encode(e);let o="";return n.forEach(t=>o+=String.fromCharCode(t)),btoa(o)}function P(e,n,o){let r=new XMLSerializer().serializeToString(e);r.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(r=r.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const a=window.btoa(unescape(encodeURIComponent(r))),s=new window.Image;return s.src=`data:image/svg+xml;base64,${a}`,new Promise((p,w)=>{s.onload=function(){const l=document.createElement("canvas");l.width=n,l.height=o,l.getContext("2d").drawImage(s,0,0,n,o),p(l.toDataURL("image/png",1))},s.onerror=l=>w(l)})}function C(e){if(e.nodeType!==1)return;const n=window.getComputedStyle(e);let o="";for(let t=0;t<n.length;t++){const r=n[t];o+=`${r}:${n.getPropertyValue(r)};`}e.setAttribute("style",o);for(let t=0;t<e.children.length;t++)C(e.children[t])}async function T({container:e,scale:n=2}){if(!e)throw new Error("No container provided");await document.fonts.ready;const o=window.getComputedStyle(e).fontFamily,t=e.cloneNode(!0),r=t.querySelectorAll("canvas"),a=e.querySelectorAll("canvas");for(let m=0;m<a.length;m+=1){const c=a[m],g=r[m];if(c&&g){const u=document.createElement("img");u.src=c.toDataURL("image/png"),u.width=c.width,u.height=c.height,u.style.width=c.style.width||c.width+"px",u.style.height=c.style.height||c.height+"px",g.replaceWith(u)}}const s=e.querySelector("svg[aria-label]");if(s){const m=s.getBoundingClientRect(),c=m.width,g=m.height;C(s),L(s,o);const u=Math.round(c*n),E=Math.round(g*n),M=await P(s,u,E),S=t.querySelector("svg[aria-label]");if(S){const y=document.createElement("img");y.src=M,y.width=c,y.height=g,y.style.width=c+"px",y.style.height=g+"px",S.parentNode.replaceChild(y,S)}}b(t,e,o),I(t),await $(t);const{width:p,height:w}=e.getBoundingClientRect(),l=Math.round(Math.max(t.scrollWidth,p)*n),h=Math.round(Math.max(t.scrollHeight,w)*1.01*n),i=document.createElementNS(x.XMLNS,"svg");i.setAttribute("viewBox",`0 0 ${l} ${h}`),i.setAttribute("width",l),i.setAttribute("height",h),i.setAttribute("style",`font-family:${o};`);const d=document.createElementNS(x.XMLNS,"foreignObject");d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",l),d.setAttribute("height",h),d.setAttribute("style",`font-family:${o};`),t.style.transform=`scale(${n})`,t.style.transformOrigin="top left",t.style.width=p+"px",t.style.height=w+"px",t.style.background=window.getComputedStyle(e).backgroundColor,d.appendChild(t),i.appendChild(d);const f=new XMLSerializer().serializeToString(i),A=N(f),v=new window.Image;return v.crossOrigin="anonymous",v.src=`data:image/svg+xml;base64,${A}`,new Promise((m,c)=>{v.onload=function(){try{const g=document.createElement("canvas");g.width=l,g.height=h,g.getContext("2d").drawImage(v,0,0,l,h),m(g.toDataURL("image/png",1))}catch(g){c("Failed to draw SVG on canvas: "+g)}},v.onerror=function(){c("Failed to load SVG image for conversion")}})}exports.domToPng=T;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { X as x } from "./index-BkzHk-mH.js";
|
|
2
|
+
async function $(e) {
|
|
3
|
+
const n = e.querySelectorAll("img"), o = [];
|
|
4
|
+
n.forEach((t) => {
|
|
5
|
+
t.src && !t.src.startsWith("data:") && o.push(
|
|
6
|
+
new Promise((r) => {
|
|
7
|
+
const a = new window.Image();
|
|
8
|
+
a.crossOrigin = "anonymous", a.onload = function() {
|
|
9
|
+
try {
|
|
10
|
+
const s = document.createElement("canvas");
|
|
11
|
+
s.width = a.naturalWidth, s.height = a.naturalHeight, s.getContext("2d").drawImage(a, 0, 0), t.src = s.toDataURL();
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
r();
|
|
15
|
+
}, a.onerror = function() {
|
|
16
|
+
r();
|
|
17
|
+
}, a.src = t.src;
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
}), await Promise.all(o);
|
|
21
|
+
}
|
|
22
|
+
function I(e) {
|
|
23
|
+
e.querySelectorAll("[data-dom-to-png-ignore]").forEach((o) => {
|
|
24
|
+
o.parentNode && o.parentNode.removeChild(o);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function b(e, n, o) {
|
|
28
|
+
const t = window.getComputedStyle(n);
|
|
29
|
+
let r = {}, a = e.getAttribute("style");
|
|
30
|
+
typeof a != "string" && (a = ""), a.split(";").forEach((i) => {
|
|
31
|
+
if (typeof i == "string" && i.trim()) {
|
|
32
|
+
const [d, w] = i.split(":");
|
|
33
|
+
d && w !== void 0 && (r[d.trim()] = w.trim());
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
for (let i = 0; i < t.length; i += 1) {
|
|
37
|
+
const d = t[i], w = t.getPropertyValue(d);
|
|
38
|
+
r[d] = w;
|
|
39
|
+
}
|
|
40
|
+
r.overflow = "visible", r["overflow-x"] = "visible", r["overflow-y"] = "visible";
|
|
41
|
+
const s = n.getBoundingClientRect();
|
|
42
|
+
s.width > 0 && (r.width = s.width + "px");
|
|
43
|
+
const p = Math.max(n.scrollHeight, s.height);
|
|
44
|
+
p > 0 && (r.height = p + "px"), o && (r["font-family"] = o);
|
|
45
|
+
let f = "";
|
|
46
|
+
for (const i in r)
|
|
47
|
+
f += `${i}:${r[i]};`;
|
|
48
|
+
e.setAttribute("style", f);
|
|
49
|
+
const l = e.children || [], h = n.children || [];
|
|
50
|
+
for (let i = 0; i < l.length; i++)
|
|
51
|
+
l[i].nodeType === 1 && h[i] && b(l[i], h[i], o);
|
|
52
|
+
}
|
|
53
|
+
function L(e, n) {
|
|
54
|
+
e.querySelectorAll("text").forEach((t) => {
|
|
55
|
+
t.setAttribute("font-family", n), t.style.fontFamily = n;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function D(e) {
|
|
59
|
+
const n = new TextEncoder().encode(e);
|
|
60
|
+
let o = "";
|
|
61
|
+
return n.forEach((t) => o += String.fromCharCode(t)), btoa(o);
|
|
62
|
+
}
|
|
63
|
+
function N(e, n, o) {
|
|
64
|
+
let r = new XMLSerializer().serializeToString(e);
|
|
65
|
+
r.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (r = r.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"'));
|
|
66
|
+
const a = window.btoa(unescape(encodeURIComponent(r))), s = new window.Image();
|
|
67
|
+
return s.src = `data:image/svg+xml;base64,${a}`, new Promise((p, f) => {
|
|
68
|
+
s.onload = function() {
|
|
69
|
+
const l = document.createElement("canvas");
|
|
70
|
+
l.width = n, l.height = o, l.getContext("2d").drawImage(s, 0, 0, n, o), p(l.toDataURL("image/png", 1));
|
|
71
|
+
}, s.onerror = (l) => f(l);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function C(e) {
|
|
75
|
+
if (e.nodeType !== 1) return;
|
|
76
|
+
const n = window.getComputedStyle(e);
|
|
77
|
+
let o = "";
|
|
78
|
+
for (let t = 0; t < n.length; t++) {
|
|
79
|
+
const r = n[t];
|
|
80
|
+
o += `${r}:${n.getPropertyValue(r)};`;
|
|
81
|
+
}
|
|
82
|
+
e.setAttribute("style", o);
|
|
83
|
+
for (let t = 0; t < e.children.length; t++)
|
|
84
|
+
C(e.children[t]);
|
|
85
|
+
}
|
|
86
|
+
async function R({ container: e, scale: n = 2 }) {
|
|
87
|
+
if (!e) throw new Error("No container provided");
|
|
88
|
+
await document.fonts.ready;
|
|
89
|
+
const o = window.getComputedStyle(e).fontFamily, t = e.cloneNode(!0), r = t.querySelectorAll("canvas"), a = e.querySelectorAll("canvas");
|
|
90
|
+
for (let m = 0; m < a.length; m += 1) {
|
|
91
|
+
const c = a[m], g = r[m];
|
|
92
|
+
if (c && g) {
|
|
93
|
+
const u = document.createElement("img");
|
|
94
|
+
u.src = c.toDataURL("image/png"), u.width = c.width, u.height = c.height, u.style.width = c.style.width || c.width + "px", u.style.height = c.style.height || c.height + "px", g.replaceWith(u);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const s = e.querySelector("svg[aria-label]");
|
|
98
|
+
if (s) {
|
|
99
|
+
const m = s.getBoundingClientRect(), c = m.width, g = m.height;
|
|
100
|
+
C(s), L(s, o);
|
|
101
|
+
const u = Math.round(c * n), E = Math.round(g * n), M = await N(s, u, E), S = t.querySelector("svg[aria-label]");
|
|
102
|
+
if (S) {
|
|
103
|
+
const y = document.createElement("img");
|
|
104
|
+
y.src = M, y.width = c, y.height = g, y.style.width = c + "px", y.style.height = g + "px", S.parentNode.replaceChild(y, S);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
b(t, e, o), I(t), await $(t);
|
|
108
|
+
const { width: p, height: f } = e.getBoundingClientRect(), l = Math.round(Math.max(t.scrollWidth, p) * n), h = Math.round(Math.max(t.scrollHeight, f) * 1.01 * n), i = document.createElementNS(x, "svg");
|
|
109
|
+
i.setAttribute("viewBox", `0 0 ${l} ${h}`), i.setAttribute("width", l), i.setAttribute("height", h), i.setAttribute("style", `font-family:${o};`);
|
|
110
|
+
const d = document.createElementNS(x, "foreignObject");
|
|
111
|
+
d.setAttribute("x", 0), d.setAttribute("y", 0), d.setAttribute("width", l), d.setAttribute("height", h), d.setAttribute("style", `font-family:${o};`), t.style.transform = `scale(${n})`, t.style.transformOrigin = "top left", t.style.width = p + "px", t.style.height = f + "px", t.style.background = window.getComputedStyle(e).backgroundColor, d.appendChild(t), i.appendChild(d);
|
|
112
|
+
const w = new XMLSerializer().serializeToString(i), A = D(w), v = new window.Image();
|
|
113
|
+
return v.crossOrigin = "anonymous", v.src = `data:image/svg+xml;base64,${A}`, new Promise((m, c) => {
|
|
114
|
+
v.onload = function() {
|
|
115
|
+
try {
|
|
116
|
+
const g = document.createElement("canvas");
|
|
117
|
+
g.width = l, g.height = h, g.getContext("2d").drawImage(v, 0, 0, l, h), m(g.toDataURL("image/png", 1));
|
|
118
|
+
} catch (g) {
|
|
119
|
+
c("Failed to draw SVG on canvas: " + g);
|
|
120
|
+
}
|
|
121
|
+
}, v.onerror = function() {
|
|
122
|
+
c("Failed to load SVG image for conversion");
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
R as d
|
|
128
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-9admCVmW.cjs");async function d({domElement:r,fileName:n,format:t="png",scale:c=2}){if(!r)return Promise.reject("No element provided");if(t==="svg"){const o=converter.convertToImg({container:r,scale:c});if(!o)return Promise.reject("Could not create SVG image");const e=document.createElement("a");return e.href=o.src,e.download=`${n}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e),Promise.resolve()}try{const o=await i.domToPng({container:r,scale:c}),e=document.createElement("a");e.href=o,e.download=`${n}.${t}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(o){throw console.error("Error generating image:",o),o}}exports.default=d;
|
|
@@ -6528,7 +6528,7 @@ function we(o, l) {
|
|
|
6528
6528
|
const r = O(o);
|
|
6529
6529
|
return bt(r, l);
|
|
6530
6530
|
}
|
|
6531
|
-
const Le = C(() => import("./Arrow-
|
|
6531
|
+
const Le = C(() => import("./Arrow-I48MZsS9.js")), Se = C(() => import("./vue-data-ui-BMg9P9Ko.js")), ve = C(() => import("./vue-ui-3d-bar-DSzHyy5V.js")), _e = C(() => import("./vue-ui-accordion-BISaJ4se.js")), ze = C(() => import("./vue-ui-age-pyramid-C3FyApR-.js")), Re = C(() => import("./vue-ui-annotator-DpgKrG5x.js")), Oe = C(() => import("./vue-ui-candlestick-tRVF3zq2.js")), Te = C(() => import("./vue-ui-chestnut-CroVLVsl.js")), Pe = C(() => import("./vue-ui-cursor-96gSvyiC.js")), Ne = C(() => import("./vue-ui-dashboard-Dp5jRRt4.js")), Me = C(() => import("./vue-ui-digits-BezGWOAR.js")), Ve = C(() => import("./vue-ui-donut-CIe8gApD.js")), Ie = C(() => import("./vue-ui-donut-evolution-Ii8EmOJK.js")), We = C(() => import("./vue-ui-dumbbell-CR60USAn.js")), Ue = C(() => import("./vue-ui-flow-xiil6BiJ.js")), Ge = C(() => import("./vue-ui-galaxy-CyaoeQSJ.js")), Ye = C(() => import("./vue-ui-gauge-DQKc53lU.js")), He = C(() => import("./vue-ui-heatmap-DMHGF1P2.js")), $e = C(() => import("./BaseIcon-CFB6fPTZ.js")), Xe = C(() => import("./vue-ui-kpi-mOUIJEXy.js")), Ke = C(() => import("./vue-ui-mini-loader-BC28g1xw.js")), je = C(() => import("./vue-ui-molecule-DL4vsgin.js")), qe = C(() => import("./vue-ui-mood-radar-ucZjBaMd.js")), Qe = C(() => import("./vue-ui-nested-donuts-BoNxqHBv.js")), Ze = C(() => import("./vue-ui-onion-BK6_uToF.js")), Je = C(() => import("./vue-ui-parallel-coordinate-plot-C-skJdiu.js")), ol = C(() => import("./vue-ui-quadrant-DwKSro9l.js")), rl = C(() => import("./vue-ui-quick-chart-RoCE-7bx.js")), tl = C(() => import("./vue-ui-radar-DsJu_WF9.js")), el = C(() => import("./vue-ui-rating-BiTJkogW.js")), ll = C(() => import("./vue-ui-relation-circle-CXAwYlII.js")), al = C(() => import("./vue-ui-rings-Oof8uK1q.js")), cl = C(() => import("./vue-ui-scatter-D2aNkZYy.js")), nl = C(() => import("./vue-ui-skeleton-DxHXl65y.js")), sl = C(() => import("./vue-ui-smiley-B8Oar29S.js")), il = C(() => import("./vue-ui-sparkhistogram-DbO2SI38.js")), ul = C(() => import("./vue-ui-sparkstackbar-HA1vQs01.js")), dl = C(() => import("./vue-ui-spark-trend-C28svcHz.js")), bl = C(() => import("./vue-ui-sparkbar-zR50kBP5.js")), fl = C(() => import("./vue-ui-sparkgauge-BHykT4UY.js")), gl = C(() => import("./vue-ui-sparkline-DZMLTb2s.js")), Al = C(() => import("./vue-ui-strip-plot-D8rkli8L.js")), Cl = C(() => import("./vue-ui-table-DElTWwyP.js")), hl = C(() => import("./vue-ui-table-heatmap-CE0NipCw.js")), Fl = C(() => import("./vue-ui-table-sparkline-BXTmILTU.js")), kl = C(() => import("./vue-ui-thermometer-C6i-p0hg.js")), El = C(() => import("./vue-ui-timer-l3Wc-x8d.js")), pl = C(() => import("./vue-ui-tiremarks-D_5DNlgH.js")), Dl = C(() => import("./vue-ui-treemap-vRqafziK.js")), Bl = C(() => import("./vue-ui-vertical-bar-ZkFfYNVT.js")), yl = C(() => import("./vue-ui-waffle-B4sJZZwD.js")), ml = C(() => import("./vue-ui-wheel-BVVPh7ke.js")), xl = C(() => import("./vue-ui-word-cloud-D4297p4B.js")), wl = C(() => import("./vue-ui-xy-KwmX3h7W.js")), Ll = C(() => import("./vue-ui-xy-canvas-B_ZxmLAx.js")), Sl = C(() => import("./vue-ui-carousel-table-D8sL6coX.js")), vl = C(() => import("./vue-ui-gizmo-CpfXe7sK.js")), _l = C(() => import("./vue-ui-stackbar-CxnUlGuM.js")), zl = C(() => import("./vue-ui-bullet-DbcQ3wBe.js")), Rl = C(() => import("./vue-ui-funnel-B_C8XDGt.js")), Ol = C(() => import("./vue-ui-history-plot-nEHSahCX.js")), Tl = C(() => import("./vue-ui-pattern-DsYgSZWn.js")), Pl = C(() => import("./vue-ui-circle-pack-B2tf5UQ1.js"));
|
|
6532
6532
|
export {
|
|
6533
6533
|
Ee as $,
|
|
6534
6534
|
nt as A,
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
L ${D} ${g}
|
|
7
7
|
A ${s} ${s} 0 0 1 ${k} ${p}
|
|
8
8
|
Z
|
|
9
|
-
`.trim(),middlePoint:{x:h,y:m}}})}function kt({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c);let s=0,b=0;for(const f of u)s+=f.x,b+=f.y;s/=u.length,b/=u.length;let d=-1,t=n;for(let f=i;f<c;f+=1){const A=Math.abs((o[n].x-s)*(o[f].y-o[n].y)-(o[n].x-o[f].x)*(b-o[n].y));A>d&&(d=A,t=f)}e.push(o[t]),n=t}return e.push(o[o.length-1]),e}function Ft({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c),s=u.reduce((t,f)=>t+f,0)/u.length;let b=-1,d=n;for(let t=i;t<c;t+=1){const f=Math.abs((o[n]-s)*(t-n));f>b&&(b=f,d=t)}e.push(o[d]),n=d}return e.push(o[o.length-1]),e}function Et({data:o,threshold:l,key:e="value"}){if(l>=o.length||l<3)return o;const a=[],n=(o.length-2)/(l-2);let r=0;a.push(o[r]);for(let i=0;i<l-2;i+=1){const c=Math.floor((i+1)*n)+1,u=Math.min(Math.floor((i+2)*n)+1,o.length),s=o.slice(c,u),b=s.reduce((f,A)=>f+A[e],0)/s.length;let d=-1,t=r;for(let f=c;f<u;f+=1){const A=Math.abs((o[r][e]-b)*(f-r));A>d&&(d=A,t=f)}a.push(o[t]),r=t}return a.push(o[o.length-1]),a}function pt({radius:o,centerX:l,centerY:e,percentage:a}){a=Math.max(0,Math.min(1,a));const n=a*Math.PI,r=l-o,i=e,c=l-o*Math.cos(n),u=e-o*Math.sin(n);return`M ${l},${e} L ${r},${i} A ${o},${o} 0 0 1 ${c},${u} Z`.trim()}function Dt({svgElement:o,x:l,y:e,offsetY:a=0,element:n}){if(!o||!n)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),c=o.getBoundingClientRect(),u=n.getBoundingClientRect();let s=0,b=0;return i.x-u.width/2<c.left?s=0:i.x+u.width>c.right?s=-u.width:s=-u.width/2,i.y-a-u.height<c.top?b=a:b=-u.height-a,{top:i.y+b,left:i.x+s}}function Bt({svgElement:o,x:l,y:e,element:a,position:n}){if(!o||!a)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),{height:c,width:u}=a.getBoundingClientRect();let s=n==="right"?0:-u,b=-(c/2);return{top:i.y+b,left:i.x+s}}function V(o){if(o===null||typeof o!="object")return o;if(o instanceof Date)return new Date(o.getTime());if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const e=new Map;for(const[a,n]of o.entries())e.set(a,V(n));return e}if(o instanceof Set){const e=new Set;for(const a of o.values())e.add(V(a));return e}if(Array.isArray(o))return o.map(e=>V(e));const l={};for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&(l[e]=V(o[e]));return l}function mt(o,l){const e=R(o);return no(e,l)}function yt(o,l){const e=R(o);return co(e,l)}function xt(o,l){const e=R(o);return lo(e,l)}const wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Arrow-i892KlJJ.cjs"))),Lt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-XSn3UFqP.cjs"))),vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-d2lzwwD0.cjs"))),St=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-ZlcsLKVn.cjs"))),_t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-BrS-QXEl.cjs"))),Pt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-DpcBNv4G.cjs"))),zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-BB_TlvHs.cjs"))),Rt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CK_b_ta8.cjs"))),Ot=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-B3u3ldcD.cjs"))),Tt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-Nt0DdH9L.cjs"))),Vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-LJ5NoBDi.cjs"))),Nt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-kRhrhvjt.cjs"))),Mt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BtnTa4le.cjs"))),Ut=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-BFYVlYa4.cjs"))),It=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-BuXSGu-i.cjs"))),Wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-BCQr-U2u.cjs"))),Gt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-kZxueLp8.cjs"))),Ht=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-DwTkeSCE.cjs"))),Yt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BaseIcon-OIGwOnCM.cjs"))),$t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-DgYNzLPE.cjs"))),Xt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-AnEvVAeN.cjs"))),qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-DenzPBhZ.cjs"))),Kt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-oZi1r3t2.cjs"))),jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-1iw0Uhgn.cjs"))),Qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-nSs841wa.cjs"))),Zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-CLZbLwv6.cjs"))),Jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DVJk4jVY.cjs"))),ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-DseczpPU.cjs"))),el=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-BAeIHJpy.cjs"))),rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-D0Dx6ZXa.cjs"))),tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-DQna8U5y.cjs"))),ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-DtRyfbLl.cjs"))),al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-Bi6D12HK.cjs"))),nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-B3iHjtI-.cjs"))),cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-CPZZHQxU.cjs"))),sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-D0JFcRmB.cjs"))),il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-UHMiNIcM.cjs"))),ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-BQJgJLH1.cjs"))),dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-CMXau9-B.cjs"))),bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DXGiSj1v.cjs"))),fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-BjuntN3v.cjs"))),Al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-BL_QIbRg.cjs"))),gl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-Bo6YTb5z.cjs"))),Cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BEyXNXkX.cjs"))),hl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-CjOt6yUn.cjs"))),kl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-DDzJGu-3.cjs"))),Fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-BoHc9W-g.cjs"))),El=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-DfzjVsQy.cjs"))),pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BapuAvm_.cjs"))),Dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-tUOVTrhe.cjs"))),Bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-D_eTTi3G.cjs"))),ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BF-ixbP0.cjs"))),yl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-DzhX3V-T.cjs"))),xl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-DXp678aj.cjs"))),wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-DfYwxC06.cjs"))),Ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-BLMby8AI.cjs"))),vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-DtQnmFnB.cjs"))),Sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-B3tfGGNG.cjs"))),_l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-CUg-Tqm5.cjs"))),Pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-CpaBBSbU.cjs"))),zl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-BLZfokqh.cjs"))),Rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-pattern-CT3p_iOg.cjs"))),Ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-ClzkEDGg.cjs")));exports.Arrow=wt;exports.VueDataUi=Lt;exports.VueUi3dBar=vt;exports.VueUiAccordion=St;exports.VueUiAgePyramid=_t;exports.VueUiAnnotator=Pt;exports.VueUiBullet=_l;exports.VueUiCandlestick=zt;exports.VueUiCarouselTable=Ll;exports.VueUiChestnut=Rt;exports.VueUiCirclePack=Ol;exports.VueUiCursor=Ot;exports.VueUiDashboard=Tt;exports.VueUiDigits=Vt;exports.VueUiDonut=Nt;exports.VueUiDonutEvolution=Mt;exports.VueUiDumbbell=Ut;exports.VueUiFlow=It;exports.VueUiFunnel=Pl;exports.VueUiGalaxy=Wt;exports.VueUiGauge=Gt;exports.VueUiGizmo=vl;exports.VueUiHeatmap=Ht;exports.VueUiHistoryPlot=zl;exports.VueUiIcon=Yt;exports.VueUiKpi=$t;exports.VueUiMiniLoader=Xt;exports.VueUiMolecule=qt;exports.VueUiMoodRadar=Kt;exports.VueUiNestedDonuts=jt;exports.VueUiOnion=Qt;exports.VueUiParallelCoordinatePlot=Zt;exports.VueUiPattern=Rl;exports.VueUiQuadrant=Jt;exports.VueUiQuickChart=ol;exports.VueUiRadar=el;exports.VueUiRating=rl;exports.VueUiRelationCircle=tl;exports.VueUiRings=ll;exports.VueUiScatter=al;exports.VueUiSkeleton=nl;exports.VueUiSmiley=cl;exports.VueUiSparkHistogram=sl;exports.VueUiSparkStackbar=il;exports.VueUiSparkTrend=ul;exports.VueUiSparkbar=dl;exports.VueUiSparkgauge=bl;exports.VueUiSparkline=fl;exports.VueUiStackbar=Sl;exports.VueUiStripPlot=Al;exports.VueUiTable=gl;exports.VueUiTableHeatmap=Cl;exports.VueUiTableSparkline=hl;exports.VueUiThermometer=kl;exports.VueUiTimer=Fl;exports.VueUiTiremarks=El;exports.VueUiTreemap=pl;exports.VueUiVerticalBar=Dl;exports.VueUiWaffle=Bl;exports.VueUiWheel=ml;exports.VueUiWordCloud=yl;exports.VueUiXy=xl;exports.VueUiXyCanvas=wl;exports.XMLNS=tt;exports.abbreviate=qr;exports.adaptColorToBackground=wr;exports.applyDataLabel=ft;exports.assignStackRatios=st;exports.calcLinearProgression=Lr;exports.calcMarkerOffsetX=O;exports.calcMarkerOffsetY=T;exports.calcMedian=Sr;exports.calcNutArrowPath=Vr;exports.calcTrend=lt;exports.calculateNiceScale=Hr;exports.calculateNiceScaleWithExactExtremes=Yr;exports.canShowValue=Mr;exports.checkNaN=F;exports.closestDecimal=Nr;exports.convertColorToHex=R;exports.convertConfigColors=ao;exports.convertCustomPalette=nt;exports.createCsvContent=Gr;exports.createHalfCircleArc=pt;exports.createPolarAreas=ht;exports.createPolygonPath=Br;exports.createSmoothPath=Pr;exports.createSmoothPathVertical=zr;exports.createSpiralPath=ot;exports.createStar=yr;exports.createStraightPath=_r;exports.createTSpans=at;exports.createUid=Rr;exports.createWordCloudDatasetFromPlainText=ct;exports.darkenColor=yt;exports.darkenHexColor=co;exports.dataLabel=Xr;exports.deepClone=V;exports.downloadCsv=Wr;exports.error=Zr;exports.forceValidValue=Fr;exports.functionReturnsString=jr;exports.getMissingDatasetAttributes=et;exports.getPalette=Er;exports.getPathLengthFromCoordinates=it;exports.getThemeConfig=nr;exports.getVueDataUiConfig=Ae;exports.giftWrap=xr;exports.hasDeepProperty=At;exports.interpolateColorHex=$r;exports.isFunction=Kr;exports.isSafeValue=kr;exports.isValidUserValue=I;exports.largestTriangleThreeBuckets=kt;exports.largestTriangleThreeBucketsArray=Ft;exports.largestTriangleThreeBucketsArrayObjects=Et;exports.lightenColor=mt;exports.lightenHexColor=no;exports.makeDonut=Ar;exports.makePath=Ir;exports.objectIsEmpty=Qr;exports.offsetFromCenterPoint=Or;exports.opacity=U;exports.palette=to;exports.placeHTMLElementAtSVGCoordinates=Dt;exports.placeXYTag=Bt;exports.sanitizeArray=gt;exports.setOpacity=Ct;exports.shiftColorHue=xt;exports.shiftHue=lo;exports.sumByAttribute=Ur;exports.sumSeries=dt;exports.themePalettes=P;exports.themes=eo;exports.translateSize=ut;exports.treeShake=ro;exports.useConfig=oo;
|
|
9
|
+
`.trim(),middlePoint:{x:h,y:m}}})}function kt({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c);let s=0,b=0;for(const f of u)s+=f.x,b+=f.y;s/=u.length,b/=u.length;let d=-1,t=n;for(let f=i;f<c;f+=1){const A=Math.abs((o[n].x-s)*(o[f].y-o[n].y)-(o[n].x-o[f].x)*(b-o[n].y));A>d&&(d=A,t=f)}e.push(o[t]),n=t}return e.push(o[o.length-1]),e}function Ft({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const i=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(i,c),s=u.reduce((t,f)=>t+f,0)/u.length;let b=-1,d=n;for(let t=i;t<c;t+=1){const f=Math.abs((o[n]-s)*(t-n));f>b&&(b=f,d=t)}e.push(o[d]),n=d}return e.push(o[o.length-1]),e}function Et({data:o,threshold:l,key:e="value"}){if(l>=o.length||l<3)return o;const a=[],n=(o.length-2)/(l-2);let r=0;a.push(o[r]);for(let i=0;i<l-2;i+=1){const c=Math.floor((i+1)*n)+1,u=Math.min(Math.floor((i+2)*n)+1,o.length),s=o.slice(c,u),b=s.reduce((f,A)=>f+A[e],0)/s.length;let d=-1,t=r;for(let f=c;f<u;f+=1){const A=Math.abs((o[r][e]-b)*(f-r));A>d&&(d=A,t=f)}a.push(o[t]),r=t}return a.push(o[o.length-1]),a}function pt({radius:o,centerX:l,centerY:e,percentage:a}){a=Math.max(0,Math.min(1,a));const n=a*Math.PI,r=l-o,i=e,c=l-o*Math.cos(n),u=e-o*Math.sin(n);return`M ${l},${e} L ${r},${i} A ${o},${o} 0 0 1 ${c},${u} Z`.trim()}function Dt({svgElement:o,x:l,y:e,offsetY:a=0,element:n}){if(!o||!n)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),c=o.getBoundingClientRect(),u=n.getBoundingClientRect();let s=0,b=0;return i.x-u.width/2<c.left?s=0:i.x+u.width>c.right?s=-u.width:s=-u.width/2,i.y-a-u.height<c.top?b=a:b=-u.height-a,{top:i.y+b,left:i.x+s}}function Bt({svgElement:o,x:l,y:e,element:a,position:n}){if(!o||!a)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const i=r.matrixTransform(o.getScreenCTM()),{height:c,width:u}=a.getBoundingClientRect();let s=n==="right"?0:-u,b=-(c/2);return{top:i.y+b,left:i.x+s}}function V(o){if(o===null||typeof o!="object")return o;if(o instanceof Date)return new Date(o.getTime());if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const e=new Map;for(const[a,n]of o.entries())e.set(a,V(n));return e}if(o instanceof Set){const e=new Set;for(const a of o.values())e.add(V(a));return e}if(Array.isArray(o))return o.map(e=>V(e));const l={};for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&(l[e]=V(o[e]));return l}function mt(o,l){const e=R(o);return no(e,l)}function yt(o,l){const e=R(o);return co(e,l)}function xt(o,l){const e=R(o);return lo(e,l)}const wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Arrow-kIFF7ZYV.cjs"))),Lt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-YsV6liep.cjs"))),vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-BrwW8AgR.cjs"))),St=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-PlYDvxUG.cjs"))),_t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-BqoBtF0a.cjs"))),Pt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-BtSw5RTy.cjs"))),zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-BH8jTbOQ.cjs"))),Rt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CpTCDjC9.cjs"))),Ot=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-DL-bISlq.cjs"))),Tt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BUdFapPP.cjs"))),Vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-XY3jIcLV.cjs"))),Nt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-BdsK9pBW.cjs"))),Mt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-Dv7fyWwE.cjs"))),Ut=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-DJ3wkIdL.cjs"))),It=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-3clUbPLS.cjs"))),Wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-CcW4rvCT.cjs"))),Gt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-BSB-sjTl.cjs"))),Ht=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-CCmoyf1C.cjs"))),Yt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BaseIcon-BOQVvTGG.cjs"))),$t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-pREkpkrt.cjs"))),Xt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DBEfeiv2.cjs"))),qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-P-E8liNf.cjs"))),Kt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-vFL9b0RB.cjs"))),jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-WOIeKM41.cjs"))),Qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-D-RVPykW.cjs"))),Zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BtYgR4eK.cjs"))),Jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DK3JBMd_.cjs"))),ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-CZcqcglo.cjs"))),el=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-k50yck9x.cjs"))),rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-DqNYM80G.cjs"))),tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-B3g0MhAd.cjs"))),ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-BLb7r3Vs.cjs"))),al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-Dso8zcQ-.cjs"))),nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-CG-VHaCK.cjs"))),cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-B1s0Pz0I.cjs"))),sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-CAjWW3AJ.cjs"))),il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-X7aKVG4D.cjs"))),ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-Ckz2Ct-0.cjs"))),dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-s2eymivO.cjs"))),bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DVnrILJy.cjs"))),fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-C-RM0mDc.cjs"))),Al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-BdV8E2mU.cjs"))),gl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-C91BPx4E.cjs"))),Cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-B9BrmNF4.cjs"))),hl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-CjRvXelB.cjs"))),kl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-CP1LDoqq.cjs"))),Fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-Cgfs3wKV.cjs"))),El=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-BmIfZyJk.cjs"))),pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BjIi-bzk.cjs"))),Dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-0lou3eUl.cjs"))),Bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-BPVMcyHO.cjs"))),ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-DWfsxrSb.cjs"))),yl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-CynGL0Rl.cjs"))),xl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-CJ_nzjCC.cjs"))),wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-BYoUyBzb.cjs"))),Ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-BWCwHbxI.cjs"))),vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-DGbdinaX.cjs"))),Sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-CGL_gUOb.cjs"))),_l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-CGi-_8Ex.cjs"))),Pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-BAkm-e1r.cjs"))),zl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-DEyodaqF.cjs"))),Rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-pattern-CT3p_iOg.cjs"))),Ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-C3wA6hOc.cjs")));exports.Arrow=wt;exports.VueDataUi=Lt;exports.VueUi3dBar=vt;exports.VueUiAccordion=St;exports.VueUiAgePyramid=_t;exports.VueUiAnnotator=Pt;exports.VueUiBullet=_l;exports.VueUiCandlestick=zt;exports.VueUiCarouselTable=Ll;exports.VueUiChestnut=Rt;exports.VueUiCirclePack=Ol;exports.VueUiCursor=Ot;exports.VueUiDashboard=Tt;exports.VueUiDigits=Vt;exports.VueUiDonut=Nt;exports.VueUiDonutEvolution=Mt;exports.VueUiDumbbell=Ut;exports.VueUiFlow=It;exports.VueUiFunnel=Pl;exports.VueUiGalaxy=Wt;exports.VueUiGauge=Gt;exports.VueUiGizmo=vl;exports.VueUiHeatmap=Ht;exports.VueUiHistoryPlot=zl;exports.VueUiIcon=Yt;exports.VueUiKpi=$t;exports.VueUiMiniLoader=Xt;exports.VueUiMolecule=qt;exports.VueUiMoodRadar=Kt;exports.VueUiNestedDonuts=jt;exports.VueUiOnion=Qt;exports.VueUiParallelCoordinatePlot=Zt;exports.VueUiPattern=Rl;exports.VueUiQuadrant=Jt;exports.VueUiQuickChart=ol;exports.VueUiRadar=el;exports.VueUiRating=rl;exports.VueUiRelationCircle=tl;exports.VueUiRings=ll;exports.VueUiScatter=al;exports.VueUiSkeleton=nl;exports.VueUiSmiley=cl;exports.VueUiSparkHistogram=sl;exports.VueUiSparkStackbar=il;exports.VueUiSparkTrend=ul;exports.VueUiSparkbar=dl;exports.VueUiSparkgauge=bl;exports.VueUiSparkline=fl;exports.VueUiStackbar=Sl;exports.VueUiStripPlot=Al;exports.VueUiTable=gl;exports.VueUiTableHeatmap=Cl;exports.VueUiTableSparkline=hl;exports.VueUiThermometer=kl;exports.VueUiTimer=Fl;exports.VueUiTiremarks=El;exports.VueUiTreemap=pl;exports.VueUiVerticalBar=Dl;exports.VueUiWaffle=Bl;exports.VueUiWheel=ml;exports.VueUiWordCloud=yl;exports.VueUiXy=xl;exports.VueUiXyCanvas=wl;exports.XMLNS=tt;exports.abbreviate=qr;exports.adaptColorToBackground=wr;exports.applyDataLabel=ft;exports.assignStackRatios=st;exports.calcLinearProgression=Lr;exports.calcMarkerOffsetX=O;exports.calcMarkerOffsetY=T;exports.calcMedian=Sr;exports.calcNutArrowPath=Vr;exports.calcTrend=lt;exports.calculateNiceScale=Hr;exports.calculateNiceScaleWithExactExtremes=Yr;exports.canShowValue=Mr;exports.checkNaN=F;exports.closestDecimal=Nr;exports.convertColorToHex=R;exports.convertConfigColors=ao;exports.convertCustomPalette=nt;exports.createCsvContent=Gr;exports.createHalfCircleArc=pt;exports.createPolarAreas=ht;exports.createPolygonPath=Br;exports.createSmoothPath=Pr;exports.createSmoothPathVertical=zr;exports.createSpiralPath=ot;exports.createStar=yr;exports.createStraightPath=_r;exports.createTSpans=at;exports.createUid=Rr;exports.createWordCloudDatasetFromPlainText=ct;exports.darkenColor=yt;exports.darkenHexColor=co;exports.dataLabel=Xr;exports.deepClone=V;exports.downloadCsv=Wr;exports.error=Zr;exports.forceValidValue=Fr;exports.functionReturnsString=jr;exports.getMissingDatasetAttributes=et;exports.getPalette=Er;exports.getPathLengthFromCoordinates=it;exports.getThemeConfig=nr;exports.getVueDataUiConfig=Ae;exports.giftWrap=xr;exports.hasDeepProperty=At;exports.interpolateColorHex=$r;exports.isFunction=Kr;exports.isSafeValue=kr;exports.isValidUserValue=I;exports.largestTriangleThreeBuckets=kt;exports.largestTriangleThreeBucketsArray=Ft;exports.largestTriangleThreeBucketsArrayObjects=Et;exports.lightenColor=mt;exports.lightenHexColor=no;exports.makeDonut=Ar;exports.makePath=Ir;exports.objectIsEmpty=Qr;exports.offsetFromCenterPoint=Or;exports.opacity=U;exports.palette=to;exports.placeHTMLElementAtSVGCoordinates=Dt;exports.placeXYTag=Bt;exports.sanitizeArray=gt;exports.setOpacity=Ct;exports.shiftColorHue=xt;exports.shiftHue=lo;exports.sumByAttribute=Ur;exports.sumSeries=dt;exports.themePalettes=P;exports.themes=eo;exports.translateSize=ut;exports.treeShake=ro;exports.useConfig=oo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as p } from "./jspdf.es.min-t_OLULUR.js";
|
|
2
|
-
import { d as u } from "./dom-to-png-
|
|
2
|
+
import { d as u } from "./dom-to-png-Bt7F5Nv1.js";
|
|
3
3
|
async function I({ domElement: d, fileName: m, scale: f = 2, options: P = {} }) {
|
|
4
4
|
if (!d) return Promise.reject("No domElement provided");
|
|
5
5
|
const t = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-9admCVmW.cjs");async function P({domElement:d,fileName:l,scale:m=2,options:H={}}){if(!d)return Promise.reject("No domElement provided");const t={width:595.28,height:841.89},a=await p.domToPng({container:d,scale:m});return await new Promise((f,u)=>{const e=new window.Image;e.onload=function(){const i=e.naturalWidth,r=e.naturalHeight;let g=t.width,s=t.width/i*r;const o=new w.E("","pt","a4");let c=0,n=r;const h=i/t.width*t.height;if(n<h)o.addImage(a,"PNG",0,0,g,s,"","FAST");else for(;n>0;)o.addImage(a,"PNG",0,c,g,s,"","FAST"),n-=h,c-=t.height,n>0&&o.addPage();o.save(`${l}.pdf`),f()},e.onerror=i=>u("Failed to load image for PDF: "+i),e.src=a})}exports.default=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-CSxlyqJ7.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"),a=require("./BaseIcon-OIGwOnCM.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__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"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX: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(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX: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:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$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"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.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:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$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"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.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:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$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"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.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=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$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"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.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=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$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"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.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:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$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"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.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:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$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"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.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:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$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"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.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=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.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=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(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"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-2b85c189"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-ClzzT4YP.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-DN4K4BLQ.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./BaseIcon-BOQVvTGG.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__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"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX: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(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX: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:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$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"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.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:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$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"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.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:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$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"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.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=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$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"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.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=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$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"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.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:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$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"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.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:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$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"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.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:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$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"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.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=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.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=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(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"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-2b85c189"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-Cs21Kg1k.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-11TFQm4X.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as i, openBlock as t, normalizeStyle as d, createElementVNode as V, withKeys as Z, withModifiers as p, renderSlot as c, normalizeProps as E, guardReactiveProps as _, createVNode as ee, normalizeClass as y, createCommentVNode as u, Fragment as h, createBlock as f, toDisplayString as $, mergeProps as P, unref as te } from "vue";
|
|
2
|
-
import a from "./BaseIcon-
|
|
2
|
+
import a from "./BaseIcon-CFB6fPTZ.js";
|
|
3
3
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const ne = {
|
|
5
5
|
beforeMount(e, C) {
|
|
@@ -536,7 +536,7 @@ function ve({
|
|
|
536
536
|
!r || S.value || (S.value = !0, clearTimeout(B.value), B.value = setTimeout(async () => {
|
|
537
537
|
if (r)
|
|
538
538
|
try {
|
|
539
|
-
const { default: v } = await import("./pdf-
|
|
539
|
+
const { default: v } = await import("./pdf-BRtlQnE2.js");
|
|
540
540
|
await v({
|
|
541
541
|
domElement: document.getElementById(e),
|
|
542
542
|
fileName: C,
|
|
@@ -553,7 +553,7 @@ function ve({
|
|
|
553
553
|
!r || A.value || (A.value = !0, clearTimeout(B.value), B.value = setTimeout(async () => {
|
|
554
554
|
if (r)
|
|
555
555
|
try {
|
|
556
|
-
const { default: v } = await import("./img-
|
|
556
|
+
const { default: v } = await import("./img-UIozzgIR.js");
|
|
557
557
|
await v({
|
|
558
558
|
domElement: document.getElementById(e),
|
|
559
559
|
fileName: C,
|