vue-data-ui 2.8.2-beta.0 → 2.9.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-CRkagNj_.cjs → Arrow-DBSKlyuZ.cjs} +1 -1
- package/dist/{Arrow-COsmVQGg.js → Arrow-DxiNdL6e.js} +1 -1
- package/dist/{BaseIcon-Dmcf856A.js → BaseIcon-BKDVlUe1.js} +1 -1
- package/dist/{BaseIcon-B4pcy-8f.cjs → BaseIcon-CW6J6gnf.cjs} +1 -1
- package/dist/{ColorPicker-C9SFkHn3.cjs → ColorPicker-CbtRyGDZ.cjs} +1 -1
- package/dist/{ColorPicker-BQSP45oM.js → ColorPicker-D8apVA4b.js} +3 -3
- package/dist/{DataTable-B1yJapRL.js → DataTable-BLzRsaTP.js} +2 -2
- package/dist/{DataTable-Bjx5Ccho.cjs → DataTable-C4Tmq-GN.cjs} +1 -1
- package/dist/{Legend-BjHoFybL.cjs → Legend-Ba4cZCTR.cjs} +1 -1
- package/dist/{Legend--YhaiVet.js → Legend-CWUUq_ib.js} +2 -2
- package/dist/{PackageVersion-_-duZr_B.cjs → PackageVersion-D9ZGAmxE.cjs} +1 -1
- package/dist/{PackageVersion-BwGV13wg.js → PackageVersion-Df-Zkqak.js} +1 -1
- package/dist/{PenAndPaper-BLqBmiek.cjs → PenAndPaper-BrdU6rPh.cjs} +1 -1
- package/dist/{PenAndPaper-BwOppffl.js → PenAndPaper-KD1nMXSe.js} +3 -3
- package/dist/{Shape-Dg-hzjV4.js → Shape-78pS45zk.js} +1 -1
- package/dist/{Shape-Cbao7HSz.cjs → Shape-DURmYrFG.cjs} +1 -1
- package/dist/{Slicer-B4Mbf7CA.cjs → Slicer-BloKOWd3.cjs} +1 -1
- package/dist/{Slicer-XYuzh148.js → Slicer-y8vaGoCd.js} +2 -2
- package/dist/{Title-D08zl5ev.js → Title-BYSI6SIw.js} +1 -1
- package/dist/{Title-CF40M_nk.cjs → Title-D8SuO6n9.cjs} +1 -1
- package/dist/{Tooltip-CupB-l8u.cjs → Tooltip-CeZCzEPv.cjs} +1 -1
- package/dist/{Tooltip-BXmEpCan.js → Tooltip-JIRECaYz.js} +1 -1
- package/dist/{dom-to-png-CHSv0xMW.cjs → dom-to-png-CCRTiusl.cjs} +1 -1
- package/dist/{dom-to-png-B2070iQl.js → dom-to-png-bb_03bY-.js} +1 -1
- package/dist/{img-BtO99VMK.js → img-BYRHwXEf.js} +1 -1
- package/dist/{img-BR_cEhe8.cjs → img-CjCRZQX0.cjs} +1 -1
- package/dist/{index-DmMaSSqc.js → index-CAwMqJV_.js} +3 -2
- package/dist/index-DcZ9kvVv.cjs +9 -0
- package/dist/{pdf-Bc4mkqYX.js → pdf-Bwn-dfFb.js} +1 -1
- package/dist/{pdf-D6x7WEvy.cjs → pdf-KuF6xfec.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useNestedProp-B47aFTkT.js → useNestedProp-Cz7LmW3s.js} +1 -1
- package/dist/{useNestedProp-wDhEx7x9.cjs → useNestedProp-ZhoVxBcG.cjs} +1 -1
- package/dist/{usePrinter-06EDG1PE.cjs → usePrinter-C1qPxOHD.cjs} +1 -1
- package/dist/{usePrinter-1GlKtPCq.js → usePrinter-DHKfrDmo.js} +3 -3
- package/dist/{vue-data-ui-Dx4piIh9.cjs → vue-data-ui-7VLuLU4H.cjs} +1 -1
- package/dist/{vue-data-ui-CDFtEOu4.js → vue-data-ui-CFtDQE3V.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DLMD2SZo.cjs → vue-ui-3d-bar-CYYpBrtG.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DeixcN8U.js → vue-ui-3d-bar-k0Git1Pq.js} +9 -9
- package/dist/{vue-ui-accordion-QdoZquMy.js → vue-ui-accordion-CcRRCMkf.js} +3 -3
- package/dist/{vue-ui-accordion-DcFabpGO.cjs → vue-ui-accordion-DorW8oh2.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-2y2FFtHU.js → vue-ui-age-pyramid-9kkROy_r.js} +10 -10
- package/dist/{vue-ui-age-pyramid-B8jim3J5.cjs → vue-ui-age-pyramid-pUS0s7B8.cjs} +1 -1
- package/dist/{vue-ui-annotator-CfEp5EPK.cjs → vue-ui-annotator-BZ_BHy2Q.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGIvKHlF.js → vue-ui-annotator-FKopwSkW.js} +2 -2
- package/dist/{vue-ui-bullet-sk8TiDAx.cjs → vue-ui-bullet-BcI-jK2y.cjs} +1 -1
- package/dist/{vue-ui-bullet-DtC5tbBO.js → vue-ui-bullet-CspHQ8jB.js} +8 -8
- package/dist/{vue-ui-candlestick-aZW1FkBk.js → vue-ui-candlestick-CN5VHRBg.js} +11 -11
- package/dist/{vue-ui-candlestick-Bp1X8rCI.cjs → vue-ui-candlestick-CR6StZqP.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cyg9E2_P.cjs → vue-ui-carousel-table-CiPfLckk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DEkz5mlG.js → vue-ui-carousel-table-D_3ydvpR.js} +4 -4
- package/dist/{vue-ui-chestnut-Dt3E_CqF.js → vue-ui-chestnut-BRuIJqNh.js} +8 -8
- package/dist/{vue-ui-chestnut-Dc8BR4Fp.cjs → vue-ui-chestnut-QfhFkiLJ.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-POZYcUlI.js → vue-ui-circle-pack-1CXvHP9p.js} +9 -9
- package/dist/{vue-ui-circle-pack-LTgaNsYK.cjs → vue-ui-circle-pack-D7AqKIS-.cjs} +1 -1
- package/dist/{vue-ui-cursor-C3N9zUA7.cjs → vue-ui-cursor-C5WOQl59.cjs} +1 -1
- package/dist/{vue-ui-cursor-DK5VB3D0.js → vue-ui-cursor-CKsKMgzV.js} +2 -2
- package/dist/{vue-ui-dashboard-BEbiVgOQ.cjs → vue-ui-dashboard-D88XqH4c.cjs} +1 -1
- package/dist/{vue-ui-dashboard-jqW1Xxpz.js → vue-ui-dashboard-Dq3-yg8G.js} +62 -62
- package/dist/{vue-ui-digits-Bcx-kLHo.js → vue-ui-digits-HezeODJE.js} +2 -2
- package/dist/{vue-ui-digits-BXZmcW0S.cjs → vue-ui-digits-qa84Wna1.cjs} +1 -1
- package/dist/{vue-ui-donut-OvjOLwRW.js → vue-ui-donut-D12Ei_jq.js} +12 -12
- package/dist/{vue-ui-donut-C3CUnPIO.cjs → vue-ui-donut-DJkbQXse.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Bx8FunVF.cjs → vue-ui-donut-evolution-Cm9Gd92e.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-TsbcmiBs.js → vue-ui-donut-evolution-DvfQAv1S.js} +11 -11
- package/dist/{vue-ui-dumbbell-CHcPo7vY.js → vue-ui-dumbbell-BU0SOzc8.js} +10 -10
- package/dist/{vue-ui-dumbbell-CezLEwpL.cjs → vue-ui-dumbbell-C4l9niG7.cjs} +1 -1
- package/dist/{vue-ui-flow-C0qwgT75.cjs → vue-ui-flow-5m2LR5pX.cjs} +1 -1
- package/dist/{vue-ui-flow-BMNYBEJh.js → vue-ui-flow-CGbd6Xcb.js} +9 -9
- package/dist/{vue-ui-funnel-Ct3GgY7y.cjs → vue-ui-funnel-BAdZKjBy.cjs} +1 -1
- package/dist/{vue-ui-funnel-uz_CQDJI.js → vue-ui-funnel-D0EzBNTr.js} +9 -9
- package/dist/{vue-ui-galaxy-Cx51n6hM.cjs → vue-ui-galaxy-BuD_JSoE.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DawYn5OS.js → vue-ui-galaxy-DVwT65K1.js} +11 -11
- package/dist/{vue-ui-gauge-CcQP3sPy.js → vue-ui-gauge-CatpKoES.js} +7 -7
- package/dist/{vue-ui-gauge-CACfaNHg.cjs → vue-ui-gauge-CbAmz0iE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CjsP-8Li.cjs → vue-ui-gizmo-DRgv_quU.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CtfaITb7.js → vue-ui-gizmo-iGcNMjbS.js} +3 -3
- package/dist/{vue-ui-heatmap-DrtdWgC5.cjs → vue-ui-heatmap-C4kF0PoS.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C9k81DDp.js → vue-ui-heatmap-CVjsCIVt.js} +10 -10
- package/dist/{vue-ui-history-plot-Cz4rOch3.cjs → vue-ui-history-plot-CBpWg7UL.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BWuqP7cL.js → vue-ui-history-plot-DQBmYHrd.js} +11 -11
- package/dist/{vue-ui-kpi-DPwY24JT.js → vue-ui-kpi-DPyAY3_7.js} +3 -3
- package/dist/{vue-ui-kpi-sHiuWUD6.cjs → vue-ui-kpi-DuYCYzTy.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CWXeBzw9.js → vue-ui-mini-loader-BKijTcOs.js} +2 -2
- package/dist/{vue-ui-mini-loader-OuKZN9HN.cjs → vue-ui-mini-loader-lBibmKWx.cjs} +1 -1
- package/dist/{vue-ui-molecule-oHkRoNBr.cjs → vue-ui-molecule-C4-8R_Er.cjs} +1 -1
- package/dist/{vue-ui-molecule-BxWIQrOy.js → vue-ui-molecule-D3QvQVWw.js} +11 -11
- package/dist/{vue-ui-mood-radar-DCxDtpf3.cjs → vue-ui-mood-radar-DK5yeEWd.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cd7HI8bj.js → vue-ui-mood-radar-DOk--TCC.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CXFtb1M0.cjs → vue-ui-nested-donuts-B6sw2ZS8.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BoXT5OAw.js → vue-ui-nested-donuts-B9pGx8Mn.js} +11 -11
- package/dist/{vue-ui-onion-Dxss5Mnb.js → vue-ui-onion-BukoiqxG.js} +11 -11
- package/dist/{vue-ui-onion-DYgInDb8.cjs → vue-ui-onion-VP4XUU6u.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-C-K9WUQq.js → vue-ui-parallel-coordinate-plot-BCsSmYN_.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-Bs7704DX.cjs → vue-ui-parallel-coordinate-plot-D37UlUK5.cjs} +1 -1
- package/dist/{vue-ui-quadrant-ol8blyLN.js → vue-ui-quadrant-CQ5DTNaI.js} +12 -12
- package/dist/{vue-ui-quadrant-CgBI3znD.cjs → vue-ui-quadrant-CoF95Xv-.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Ds8vvott.cjs → vue-ui-quick-chart-BNdIerij.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BoPihMU7.js → vue-ui-quick-chart-DiX4Rfcs.js} +9 -9
- package/dist/{vue-ui-radar-BYikeYez.js → vue-ui-radar-BjnW-poa.js} +12 -12
- package/dist/{vue-ui-radar-Bq9yv1Nz.cjs → vue-ui-radar-s69kdz9l.cjs} +1 -1
- package/dist/{vue-ui-rating-CIgPOsF9.cjs → vue-ui-rating-C_YdJ8v1.cjs} +1 -1
- package/dist/{vue-ui-rating-CS87Hplo.js → vue-ui-rating-CpbyNDqw.js} +2 -2
- package/dist/{vue-ui-relation-circle-B1_IFEQE.js → vue-ui-relation-circle-DZTMYJ4b.js} +7 -7
- package/dist/{vue-ui-relation-circle-DYB4yUiA.cjs → vue-ui-relation-circle-mEe_naOS.cjs} +1 -1
- package/dist/{vue-ui-rings-Doe8Q28H.cjs → vue-ui-rings-Bp8YRG4U.cjs} +1 -1
- package/dist/{vue-ui-rings-BnNg87-v.js → vue-ui-rings-EA1BKMWV.js} +12 -12
- package/dist/{vue-ui-scatter-CKRjkm-h.cjs → vue-ui-scatter-BNY2kCo3.cjs} +1 -1
- package/dist/{vue-ui-scatter-CXwmuMIU.js → vue-ui-scatter-DWapZLlh.js} +12 -12
- package/dist/{vue-ui-skeleton-8OZ9rJXh.js → vue-ui-skeleton-B2jz_Rfv.js} +3 -3
- package/dist/{vue-ui-skeleton-5g5yLLM4.cjs → vue-ui-skeleton-faVa3jQs.cjs} +1 -1
- package/dist/{vue-ui-smiley-CzqaH8_8.js → vue-ui-smiley-D62FdclW.js} +2 -2
- package/dist/{vue-ui-smiley-CqN-vQye.cjs → vue-ui-smiley-UpMWQTZi.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-yVxR7PiI.cjs → vue-ui-spark-trend-B5QVd56T.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DK6gOZHz.js → vue-ui-spark-trend-BP7k791o.js} +5 -5
- package/dist/{vue-ui-sparkbar-BKOe_Cee.js → vue-ui-sparkbar-C5gO6kAD.js} +4 -4
- package/dist/{vue-ui-sparkbar-rR2c2FDd.cjs → vue-ui-sparkbar-NBk7a_wP.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C7OYH1Fs.cjs → vue-ui-sparkgauge-Bx4BYgQ3.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-RN8tIAc9.js → vue-ui-sparkgauge-DV7cRouC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-__Vd5tky.cjs → vue-ui-sparkhistogram-C704ceB9.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Zzy9jGiy.js → vue-ui-sparkhistogram-CAwg98NM.js} +5 -5
- package/dist/{vue-ui-sparkline-DDWOEIzY.cjs → vue-ui-sparkline-C6-4dTVt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-liB_Hmaq.js → vue-ui-sparkline-CxB3Eyb-.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-BrpeJTzl.cjs → vue-ui-sparkstackbar-B9NvGHOA.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-COJVT609.js → vue-ui-sparkstackbar-C6jdGUxH.js} +5 -5
- package/dist/{vue-ui-stackbar-B8f8IS8C.js → vue-ui-stackbar-CoJOyKqg.js} +13 -13
- package/dist/{vue-ui-stackbar-DtHaJXGD.cjs → vue-ui-stackbar-DlgU9dFi.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dp816JKq.cjs → vue-ui-strip-plot-CykLBKIN.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CVKQziT5.js → vue-ui-strip-plot-WjTQOggP.js} +11 -11
- package/dist/{vue-ui-table-D1Kid804.js → vue-ui-table-1Zxn3K9e.js} +1 -1
- package/dist/{vue-ui-table-CwRXfETT.cjs → vue-ui-table-DD-ys5Yf.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Do-ARjlq.cjs → vue-ui-table-heatmap-BCHOsmmn.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-COLSO8dn.js → vue-ui-table-heatmap-DV2T_h6Y.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CKETpujG.js → vue-ui-table-sparkline-DSHGi7w-.js} +5 -5
- package/dist/{vue-ui-table-sparkline-nTd1T2Nq.cjs → vue-ui-table-sparkline-DySzcg74.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BZyDvYE0.cjs → vue-ui-thermometer-CEA7WA0G.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DiCuDyU3.js → vue-ui-thermometer-Dv-99pJQ.js} +7 -7
- package/dist/{vue-ui-timer-CkfRiOdo.cjs → vue-ui-timer-8C6_VzNW.cjs} +1 -1
- package/dist/{vue-ui-timer-DULQQyad.js → vue-ui-timer-CarxDlRB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CxSfMNfB.js → vue-ui-tiremarks-NqC3DuR3.js} +7 -7
- package/dist/{vue-ui-tiremarks-D_-IhOIM.cjs → vue-ui-tiremarks-nNNtLVMU.cjs} +1 -1
- package/dist/{vue-ui-treemap-Bom01mr7.cjs → vue-ui-treemap-CsrEKIPG.cjs} +1 -1
- package/dist/{vue-ui-treemap-uNR6Swq2.js → vue-ui-treemap-J3NCHj8b.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BCyVbfNP.cjs → vue-ui-vertical-bar-DZr9Wt48.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B-HEGjmy.js → vue-ui-vertical-bar-dKI7UMgc.js} +12 -12
- package/dist/{vue-ui-waffle-CI6IaCpT.js → vue-ui-waffle-BYKDGfGI.js} +12 -12
- package/dist/{vue-ui-waffle-B6zy86qy.cjs → vue-ui-waffle-VAjxd7NN.cjs} +1 -1
- package/dist/{vue-ui-wheel-B_ZTQj8n.js → vue-ui-wheel-DAZeFO31.js} +7 -7
- package/dist/{vue-ui-wheel-DZfrwJOK.cjs → vue-ui-wheel-XE7N7xMK.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B7KEJYTm.cjs → vue-ui-word-cloud-BO2f2m-j.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B8Da_fNw.js → vue-ui-word-cloud-Ds4VBdgV.js} +10 -10
- package/dist/vue-ui-world-B1p_qoEF.js +929 -0
- package/dist/vue-ui-world-CHpmGKxs.cjs +19 -0
- package/dist/{vue-ui-xy-CZvUtKRw.js → vue-ui-xy-BrhoXHDm.js} +16 -16
- package/dist/{vue-ui-xy-DBRrNTNO.cjs → vue-ui-xy-CYsUciH6.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CuKeAw-R.cjs → vue-ui-xy-canvas-0ryFSxU4.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BZFEUjUp.js → vue-ui-xy-canvas-BpUxHeN-.js} +12 -12
- package/package.json +1 -1
- package/dist/index-CRA3TjQQ.cjs +0 -9
- package/dist/vue-ui-world-BRaOylAI.js +0 -908
- package/dist/vue-ui-world-B_tKcYOS.cjs +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),xe=require("./BaseIcon-B4pcy-8f.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-CRA3TjQQ.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-CW6J6gnf.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-DcZ9kvVv.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-BKDVlUe1.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-CAwMqJV_.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-Cz7LmW3s.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-ZhoVxBcG.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 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./index-DcZ9kvVv.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;
|
|
@@ -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-CAwMqJV_.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,3 +1,3 @@
|
|
|
1
|
-
"use strict";const x=require("./index-
|
|
1
|
+
"use strict";const x=require("./index-DcZ9kvVv.cjs");async function A(n){const i=n.querySelectorAll("img"),o=Array.from(i).map(t=>new Promise(s=>{if(!t.src||t.src.startsWith("data:"))return s();if(t.complete&&t.naturalWidth!==0){try{const e=document.createElement("canvas");e.width=t.naturalWidth,e.height=t.naturalHeight,e.getContext("2d").drawImage(t,0,0),t.src=e.toDataURL()}catch{}return s()}const a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){try{const e=document.createElement("canvas");e.width=a.naturalWidth,e.height=a.naturalHeight,e.getContext("2d").drawImage(a,0,0),t.src=e.toDataURL()}catch{}s()},a.onerror=function(){s()},a.src=t.src}));await Promise.all(o)}function T(n){n.querySelectorAll("[data-dom-to-png-ignore]").forEach(o=>{o.remove()})}function v(n,i,o){const t=window.getComputedStyle(i),s=i.getBoundingClientRect(),a=t.display.includes("flex");let e={},c=n.getAttribute("style");typeof c!="string"&&(c=""),c.split(";").forEach(r=>{if(typeof r=="string"&&r.trim()){const[d,m]=r.split(":");d&&m!==void 0&&(e[d.trim()]=m.trim())}});for(let r=0;r<t.length;r+=1){const d=t[r],m=t.getPropertyValue(d);e[d]=m}e.color=t.color,e["background-color"]=t.backgroundColor;let l=t.fontFamily||o||"";(!l||l.trim()===""||l==="inherit"||l==="initial"||l.toLowerCase().startsWith("system-ui")||l.toLowerCase()==="sans-serif"||l.toLowerCase()==="serif"||l.toLowerCase()==="monospace")&&(l="Helvetica, Arial, sans-serif"),e["font-family"]=l,e["font-size"]=t.fontSize,e["font-weight"]=t.fontWeight,(a||t.display.includes("grid")||["inline-block","absolute","fixed"].includes(t.position))&&(s.width>0&&(e.width=s.width+"px"),s.height>0&&(e.height=s.height+"px")),a&&t.flexWrap==="nowrap"&&(e["white-space"]="nowrap"),["box-sizing","padding","margin","border"].forEach(r=>{e[r]=t.getPropertyValue(r)}),e.overflow="visible",e["overflow-x"]="visible",e["overflow-y"]="visible";let u="";for(const r in e)u+=`${r}:${e[r]};`;n.setAttribute("style",u);const g=n.children||[],y=i.children||[];for(let r=0;r<g.length;r++)g[r].nodeType===1&&y[r]&&v(g[r],y[r],l)}function I(n,i){n.querySelectorAll("text").forEach(t=>{t.setAttribute("font-family",i),t.style.fontFamily=i})}function E(n){const i=new TextEncoder().encode(n);let o="";return i.forEach(t=>o+=String.fromCharCode(t)),btoa(o)}function $(n,i,o){let s=new XMLSerializer().serializeToString(n);s.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(s=s.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const a=window.btoa(unescape(encodeURIComponent(s))),e=new window.Image;return e.src=`data:image/svg+xml;base64,${a}`,new Promise((c,l)=>{e.onload=function(){const u=document.createElement("canvas");u.width=i,u.height=o,u.getContext("2d").drawImage(e,0,0,i,o),c(u.toDataURL("image/png",1))},e.onerror=u=>l(u)})}function O(n){if(n.nodeType!==1)return;const i=window.getComputedStyle(n);let o="";for(let t=0;t<i.length;t++){const s=i[t];o+=`${s}:${i.getPropertyValue(s)};`}n.setAttribute("style",o);for(let t=0;t<n.children.length;t++)O(n.children[t])}function M(){const n=[];for(const i of document.styleSheets)try{const o=i.cssRules;if(!o)continue;for(const t of o)(typeof CSSFontFaceRule<"u"&&t instanceof CSSFontFaceRule||t.cssText.trim().startsWith("@font-face"))&&n.push(t.cssText)}catch{continue}return n}function W(n){const i=M();if(!i.length)return;const o=document.createElement("style");o.setAttribute("type","text/css"),o.textContent=i.join(`
|
|
2
2
|
`);const t=n.querySelector("defs")||document.createElementNS(x.XMLNS,"defs");t.appendChild(o),n.querySelector("defs")||n.insertBefore(t,n.firstChild)}function P(n,i){const o=n.querySelectorAll("foreignObject"),t=i.querySelectorAll("foreignObject");o.forEach((s,a)=>{const e=t[a];if(!e)return;function c(l,u){if(!l||!u)return;if(l.nodeType===1&&u.nodeType===1){const r=window.getComputedStyle(u);let d="";for(let m=0;m<r.length;m++){const C=r[m];d+=`${C}:${r.getPropertyValue(C)};`}l.setAttribute("style",d)}const g=l.children||[],y=u.children||[];for(let r=0;r<g.length;r++)c(g[r],y[r])}c(s,e)})}function z(n){n.querySelectorAll("foreignObject").forEach(o=>{let t="";const s=Array.from(o.querySelectorAll("*"));if(s.length!==0){for(const a of document.styleSheets){let e;try{e=a.cssRules}catch{continue}if(e){for(const c of e)if(!(typeof CSSStyleRule<"u"&&!(c instanceof CSSStyleRule)))try{s.some(l=>l.matches(c.selectorText))&&(t+=c.cssText+`
|
|
3
3
|
`)}catch{continue}}}if(t){const a=document.createElement("style");a.textContent=t,o.insertBefore(a,o.firstChild)}}})}function H(n){n.querySelectorAll("foreignObject").forEach(o=>{const t=o.firstElementChild;t&&t.tagName.toLowerCase()!=="svg"&&t.setAttribute("xmlns","http://www.w3.org/1999/xhtml")})}function D(n,i){const o=n.querySelectorAll("foreignObject"),t=i.querySelectorAll("foreignObject");o.forEach((s,a)=>{const e=t[a];if(!s||!e)return;const c=s.firstElementChild,l=e.firstElementChild;c&&l&&R(c,l)})}function R(n,i){if(n.nodeType!==1||!i)return;v(n,i);const o=n.children||[],t=i.children||[];for(let s=0;s<o.length;s++)R(o[s],t[s])}function F(n,i){const o=Array.from(i.querySelectorAll("img"));n.querySelectorAll("img").forEach(t=>{const s=t.getAttribute("src"),a=o.find(e=>e.getAttribute("src")===s);if(a){const e=window.getComputedStyle(a);let c="";for(let l=0;l<e.length;l++){const u=e[l];c+=`${u}:${e.getPropertyValue(u)};`}t.setAttribute("style",c)}})}async function U({container:n,scale:i=2}){if(!n)throw new Error("No container provided");await document.fonts.ready;let o=window.getComputedStyle(n).fontFamily||"Helvetica";o.toLowerCase().includes("helvetica")||(o+=", Helvetica");const t=n.cloneNode(!0),s=t.querySelectorAll("canvas"),a=n.querySelectorAll("canvas");for(let p=0;p<a.length;p+=1){const f=a[p],h=s[p];if(f&&h){const w=document.createElement("img");w.src=f.toDataURL("image/png"),w.width=f.width,w.height=f.height,w.style.width=f.style.width||f.width+"px",w.style.height=f.style.height||f.height+"px",h.replaceWith(w)}}const e=n.querySelector("svg[aria-label]"),c=t.querySelector("svg[aria-label]");if(e&&c){H(c),z(c),P(c,e),D(c,e),O(c),I(c,o),F(c,e),await A(c);const p=e.getBoundingClientRect(),f=p.width,h=p.height,w=Math.round(f*i),q=Math.round(h*i),L=await $(c,w,q),S=document.createElement("img");S.src=L,S.width=f,S.height=h,S.style.width=f+"px",S.style.height=h+"px",c.parentNode.replaceChild(S,c)}v(t,n,o),F(t,n),T(t),await A(t);const{width:l,height:u}=n.getBoundingClientRect(),g=Math.round(Math.max(t.scrollWidth,l)*i),y=Math.round(Math.max(t.scrollHeight,u)*1.01*i),r=document.createElementNS(x.XMLNS,"svg");r.setAttribute("viewBox",`0 0 ${g} ${y}`),r.setAttribute("width",g),r.setAttribute("height",y),r.setAttribute("style",`font-family:${o};`);const d=document.createElementNS(x.XMLNS,"foreignObject");d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",g),d.setAttribute("height",y),d.setAttribute("style",`font-family:${o};`),t.style.transform=`scale(${i})`,t.style.transformOrigin="top left",t.style.width=l+"px",t.style.height=u+"px",t.style.background=window.getComputedStyle(n).backgroundColor,d.appendChild(t),W(r),r.appendChild(d);const C=new XMLSerializer().serializeToString(r),j=E(C),b=new window.Image;return b.crossOrigin="anonymous",b.src=`data:image/svg+xml;base64,${j}`,new Promise((p,f)=>{b.onload=function(){try{const h=document.createElement("canvas");h.width=g,h.height=y,h.getContext("2d").drawImage(b,0,0,g,y),p(h.toDataURL("image/png",1))}catch(h){f("Failed to draw SVG on canvas: "+h)}},b.onerror=function(){f("Failed to load SVG image for conversion")}})}exports.domToPng=U;
|
|
@@ -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-CCRTiusl.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;
|
|
@@ -5130,7 +5130,8 @@ function sr() {
|
|
|
5130
5130
|
min: "#E0E0E0",
|
|
5131
5131
|
max: null
|
|
5132
5132
|
// defaults to palette[0] if kept null
|
|
5133
|
-
}
|
|
5133
|
+
},
|
|
5134
|
+
showTaiwanAsPartOfChina: !1
|
|
5134
5135
|
},
|
|
5135
5136
|
tooltip: {
|
|
5136
5137
|
...D,
|
|
@@ -6715,7 +6716,7 @@ function Pe(o, l) {
|
|
|
6715
6716
|
const r = O(o);
|
|
6716
6717
|
return gt(r, l);
|
|
6717
6718
|
}
|
|
6718
|
-
const Te = C(() => import("./Arrow-
|
|
6719
|
+
const Te = C(() => import("./Arrow-DxiNdL6e.js")), Me = C(() => import("./vue-data-ui-CFtDQE3V.js")), Ve = C(() => import("./vue-ui-3d-bar-k0Git1Pq.js")), Ie = C(() => import("./vue-ui-accordion-CcRRCMkf.js")), We = C(() => import("./vue-ui-age-pyramid-9kkROy_r.js")), $e = C(() => import("./vue-ui-annotator-FKopwSkW.js")), Ue = C(() => import("./vue-ui-candlestick-CN5VHRBg.js")), Ye = C(() => import("./vue-ui-chestnut-BRuIJqNh.js")), Ge = C(() => import("./vue-ui-cursor-CKsKMgzV.js")), He = C(() => import("./vue-ui-dashboard-Dq3-yg8G.js")), Xe = C(() => import("./vue-ui-digits-HezeODJE.js")), Ke = C(() => import("./vue-ui-donut-D12Ei_jq.js")), je = C(() => import("./vue-ui-donut-evolution-DvfQAv1S.js")), qe = C(() => import("./vue-ui-dumbbell-BU0SOzc8.js")), Qe = C(() => import("./vue-ui-flow-CGbd6Xcb.js")), Ze = C(() => import("./vue-ui-galaxy-DVwT65K1.js")), Je = C(() => import("./vue-ui-gauge-CatpKoES.js")), ol = C(() => import("./vue-ui-heatmap-CVjsCIVt.js")), rl = C(() => import("./BaseIcon-BKDVlUe1.js")), tl = C(() => import("./vue-ui-kpi-DPyAY3_7.js")), el = C(() => import("./vue-ui-mini-loader-BKijTcOs.js")), ll = C(() => import("./vue-ui-molecule-D3QvQVWw.js")), al = C(() => import("./vue-ui-mood-radar-DOk--TCC.js")), cl = C(() => import("./vue-ui-nested-donuts-B9pGx8Mn.js")), nl = C(() => import("./vue-ui-onion-BukoiqxG.js")), sl = C(() => import("./vue-ui-parallel-coordinate-plot-BCsSmYN_.js")), il = C(() => import("./vue-ui-quadrant-CQ5DTNaI.js")), ul = C(() => import("./vue-ui-quick-chart-DiX4Rfcs.js")), dl = C(() => import("./vue-ui-radar-BjnW-poa.js")), bl = C(() => import("./vue-ui-rating-CpbyNDqw.js")), fl = C(() => import("./vue-ui-relation-circle-DZTMYJ4b.js")), gl = C(() => import("./vue-ui-rings-EA1BKMWV.js")), Al = C(() => import("./vue-ui-scatter-DWapZLlh.js")), Cl = C(() => import("./vue-ui-skeleton-B2jz_Rfv.js")), hl = C(() => import("./vue-ui-smiley-D62FdclW.js")), Fl = C(() => import("./vue-ui-sparkhistogram-CAwg98NM.js")), kl = C(() => import("./vue-ui-sparkstackbar-C6jdGUxH.js")), El = C(() => import("./vue-ui-spark-trend-BP7k791o.js")), pl = C(() => import("./vue-ui-sparkbar-C5gO6kAD.js")), Dl = C(() => import("./vue-ui-sparkgauge-DV7cRouC.js")), Bl = C(() => import("./vue-ui-sparkline-CxB3Eyb-.js")), yl = C(() => import("./vue-ui-strip-plot-WjTQOggP.js")), ml = C(() => import("./vue-ui-table-1Zxn3K9e.js")), xl = C(() => import("./vue-ui-table-heatmap-DV2T_h6Y.js")), wl = C(() => import("./vue-ui-table-sparkline-DSHGi7w-.js")), Ll = C(() => import("./vue-ui-thermometer-Dv-99pJQ.js")), Sl = C(() => import("./vue-ui-timer-CarxDlRB.js")), vl = C(() => import("./vue-ui-tiremarks-NqC3DuR3.js")), _l = C(() => import("./vue-ui-treemap-J3NCHj8b.js")), zl = C(() => import("./vue-ui-vertical-bar-dKI7UMgc.js")), Rl = C(() => import("./vue-ui-waffle-BYKDGfGI.js")), Ol = C(() => import("./vue-ui-wheel-DAZeFO31.js")), Nl = C(() => import("./vue-ui-word-cloud-Ds4VBdgV.js")), Pl = C(() => import("./vue-ui-xy-BrhoXHDm.js")), Tl = C(() => import("./vue-ui-xy-canvas-BpUxHeN-.js")), Ml = C(() => import("./vue-ui-carousel-table-D_3ydvpR.js")), Vl = C(() => import("./vue-ui-gizmo-iGcNMjbS.js")), Il = C(() => import("./vue-ui-stackbar-CoJOyKqg.js")), Wl = C(() => import("./vue-ui-bullet-CspHQ8jB.js")), $l = C(() => import("./vue-ui-funnel-D0EzBNTr.js")), Ul = C(() => import("./vue-ui-history-plot-DQBmYHrd.js")), Yl = C(() => import("./vue-ui-pattern-DsYgSZWn.js")), Gl = C(() => import("./vue-ui-circle-pack-1CXvHP9p.js")), Hl = C(() => import("./vue-ui-world-B1p_qoEF.js"));
|
|
6719
6720
|
export {
|
|
6720
6721
|
Be as $,
|
|
6721
6722
|
it as A,
|