vue-data-ui 2.6.25 → 2.6.27
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-C7jouDTU.cjs → Arrow-CChyrfjt.cjs} +1 -1
- package/dist/{Arrow-DY4Ssjiu.js → Arrow-CHXZhVTe.js} +1 -1
- package/dist/{BaseIcon-BuAwREjP.js → BaseIcon-B2NGtTKw.js} +1 -1
- package/dist/{BaseIcon-am1OQxQp.cjs → BaseIcon-DFBOAQtA.cjs} +1 -1
- package/dist/{DataTable-BVJXAnu7.cjs → DataTable-Byw5diyo.cjs} +1 -1
- package/dist/{DataTable-B27j6RCg.js → DataTable-CsVlKV_b.js} +2 -2
- package/dist/{Legend-O-IFf7KZ.js → Legend-D9yoEEFS.js} +2 -2
- package/dist/{Legend-C2CPFecb.cjs → Legend-DXZ1SEB4.cjs} +1 -1
- package/dist/{PackageVersion-BHVpNKZt.cjs → PackageVersion-CkZZ1O_f.cjs} +1 -1
- package/dist/{PackageVersion-DxRakkrR.js → PackageVersion-DuKFN8zj.js} +1 -1
- package/dist/{PenAndPaper-CYdSTkY3.cjs → PenAndPaper-CCISmaF4.cjs} +1 -1
- package/dist/{PenAndPaper-DyhAUR45.js → PenAndPaper-miw4fZWP.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-BX8WrCBJ.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-6o5i0FF1.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-BSabg_r-.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DrCSj3_o.cjs} +1 -1
- package/dist/{Shape-DKJ9PQpe.cjs → Shape-B9vIBFjb.cjs} +1 -1
- package/dist/{Shape-CgB8m0UC.js → Shape-wxGrDLa2.js} +1 -1
- package/dist/{Slicer-Chb7KyBU.cjs → Slicer-BppEj_gm.cjs} +1 -1
- package/dist/{Slicer-BLfsehKp.js → Slicer-CYeEtD2A.js} +2 -2
- package/dist/{Title-BaIsiL9s.cjs → Title-J0zilijE.cjs} +1 -1
- package/dist/{Title-BWQE5A3F.js → Title-SvGfFxd0.js} +1 -1
- package/dist/{Tooltip-BEXIevjG.cjs → Tooltip-B3qjUlBg.cjs} +1 -1
- package/dist/{Tooltip-CBjipbQ3.js → Tooltip-DobAFgUS.js} +1 -1
- package/dist/index-BYGiASHP.cjs +9 -0
- package/dist/{index-FAUTLicn.js → index-KnT6sCk3.js} +3 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-Cm_lYQF5.js → useNestedProp-C58pZChx.js} +1 -1
- package/dist/{useNestedProp-Dol19fhO.cjs → useNestedProp-DtjjNlbm.cjs} +1 -1
- package/dist/{usePrinter-B1K9RAcP.js → usePrinter-BMTbK98y.js} +1 -1
- package/dist/{usePrinter-B6Zu5Sm_.cjs → usePrinter-BNP686uC.cjs} +1 -1
- package/dist/{vue-data-ui-lGcBiKIj.js → vue-data-ui-DPfxs1NG.js} +61 -61
- package/dist/{vue-data-ui-BXLqCHjy.cjs → vue-data-ui-DfY2plzb.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-xSRsaQqT.js → vue-ui-3d-bar-CsXb5kNN.js} +9 -9
- package/dist/{vue-ui-3d-bar-CoUAckJg.cjs → vue-ui-3d-bar-DkM_KFYn.cjs} +1 -1
- package/dist/{vue-ui-accordion-BMhkqaLv.cjs → vue-ui-accordion-KL1QlKX4.cjs} +1 -1
- package/dist/{vue-ui-accordion-BwlQLF7x.js → vue-ui-accordion-mb3fG5mO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D3n04cgH.js → vue-ui-age-pyramid-JVpnanhX.js} +10 -10
- package/dist/{vue-ui-age-pyramid-_35JpBQO.cjs → vue-ui-age-pyramid-o9lDHYRC.cjs} +1 -1
- package/dist/{vue-ui-annotator-DbG7CQvp.js → vue-ui-annotator-BE53nSRk.js} +1 -1
- package/dist/{vue-ui-annotator-2XNHN3RX.cjs → vue-ui-annotator-Dv9R9AZd.cjs} +1 -1
- package/dist/{vue-ui-bullet-BSIvurPZ.cjs → vue-ui-bullet-CqIJebnb.cjs} +1 -1
- package/dist/{vue-ui-bullet-4jHw7jDw.js → vue-ui-bullet-DTJRfs0W.js} +8 -8
- package/dist/{vue-ui-candlestick-jFvpEWJN.js → vue-ui-candlestick-CvN5dXb8.js} +11 -11
- package/dist/{vue-ui-candlestick-DrteVC29.cjs → vue-ui-candlestick-D9StYnly.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DsEuSqdz.cjs → vue-ui-carousel-table-CJgC0bsa.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DxYCPX6N.js → vue-ui-carousel-table-C_Du0OJl.js} +4 -4
- package/dist/{vue-ui-chestnut-CwSCJy8s.js → vue-ui-chestnut-DrBG08AQ.js} +8 -8
- package/dist/{vue-ui-chestnut-D9kJkpt6.cjs → vue-ui-chestnut-eL4QUsSh.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BvTZmVOB.js → vue-ui-circle-pack-BQtK78wc.js} +9 -9
- package/dist/{vue-ui-circle-pack-vp9QVh5H.cjs → vue-ui-circle-pack-ByTETRaV.cjs} +1 -1
- package/dist/{vue-ui-cursor-DmMpMrq4.cjs → vue-ui-cursor-CGMIOJf0.cjs} +1 -1
- package/dist/{vue-ui-cursor-C1GfOYrp.js → vue-ui-cursor-xD1Tdk-Z.js} +2 -2
- package/dist/{vue-ui-dashboard-CJ_z92Lv.cjs → vue-ui-dashboard-BBmDgB2R.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DdujbM8p.js → vue-ui-dashboard-CwRxjnLz.js} +2 -2
- package/dist/{vue-ui-digits-BC14cZyl.cjs → vue-ui-digits-HBzfvNqJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BC5Kltkw.js → vue-ui-digits-Za2atvi0.js} +2 -2
- package/dist/{vue-ui-donut-Dld36hpk.js → vue-ui-donut-CY-Ri8hO.js} +12 -12
- package/dist/{vue-ui-donut-xUb4zIf_.cjs → vue-ui-donut-PMbPEsi-.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DfqS0zkK.cjs → vue-ui-donut-evolution-Bz71q48v.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D723AUZZ.js → vue-ui-donut-evolution-h9dIxYX-.js} +11 -11
- package/dist/{vue-ui-dumbbell-D4pGWW__.js → vue-ui-dumbbell-BYo_816p.js} +10 -10
- package/dist/{vue-ui-dumbbell-3cgoS8fX.cjs → vue-ui-dumbbell-BhMfZzyR.cjs} +1 -1
- package/dist/{vue-ui-flow-BxKWtKwR.cjs → vue-ui-flow-BVMI08gu.cjs} +1 -1
- package/dist/{vue-ui-flow-9qXxff67.js → vue-ui-flow-sROhIAoF.js} +9 -9
- package/dist/{vue-ui-funnel-DN0ueU2W.js → vue-ui-funnel-B0-6Ohp6.js} +9 -9
- package/dist/{vue-ui-funnel-B6FrzsxQ.cjs → vue-ui-funnel-FjjWshAy.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CSFLSBby.cjs → vue-ui-galaxy-DwBLJ_ud.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BdXD3oDT.js → vue-ui-galaxy-a73Wv_D9.js} +11 -11
- package/dist/{vue-ui-gauge-6NwvNJP4.cjs → vue-ui-gauge-BFsd6hZB.cjs} +1 -1
- package/dist/{vue-ui-gauge-DkkKsbfZ.js → vue-ui-gauge-D71MHsHI.js} +7 -7
- package/dist/{vue-ui-gizmo-DqmXY_Qo.js → vue-ui-gizmo-BhBHAkTu.js} +3 -3
- package/dist/{vue-ui-gizmo-BJT4zaLO.cjs → vue-ui-gizmo-H7CRW_B1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DHMInkBJ.cjs → vue-ui-heatmap-DTHF8Wnw.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dnt4eiyX.js → vue-ui-heatmap-pB5l7X1i.js} +10 -10
- package/dist/{vue-ui-history-plot-ucrqdhpZ.js → vue-ui-history-plot-BdpLONh8.js} +11 -11
- package/dist/{vue-ui-history-plot-DKaJPmzE.cjs → vue-ui-history-plot-CWor5BkY.cjs} +1 -1
- package/dist/{vue-ui-kpi-CAmeMoHy.js → vue-ui-kpi-CDU2UdYZ.js} +3 -3
- package/dist/{vue-ui-kpi-BTsLWUKm.cjs → vue-ui-kpi-DLN9UTi9.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CyKX5yrM.js → vue-ui-mini-loader-D0nRZeUQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-C09WMeXB.cjs → vue-ui-mini-loader-eZubk-59.cjs} +1 -1
- package/dist/{vue-ui-molecule-CxsHhrJT.cjs → vue-ui-molecule-BIrr5biv.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bsyasuu6.js → vue-ui-molecule-CVwa7je_.js} +10 -10
- package/dist/{vue-ui-mood-radar-QfZ6yJN7.js → vue-ui-mood-radar-259F_TGi.js} +11 -11
- package/dist/{vue-ui-mood-radar-YZGFxJF-.cjs → vue-ui-mood-radar-Xwyyay9J.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CmCmSfl8.cjs → vue-ui-nested-donuts-BnFkovqB.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-C0U-7hb4.js → vue-ui-nested-donuts-CEbRPLqg.js} +11 -11
- package/dist/{vue-ui-onion-DzYMVij9.cjs → vue-ui-onion-C4YGHPyl.cjs} +1 -1
- package/dist/{vue-ui-onion-zycytoPg.js → vue-ui-onion-DTCFbg0S.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-C_FGMyWY.cjs → vue-ui-parallel-coordinate-plot-BbTlJU53.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-XKSz-hxU.js → vue-ui-parallel-coordinate-plot-Br1aduNj.js} +12 -12
- package/dist/{vue-ui-quadrant-CIJn7hXx.js → vue-ui-quadrant-BIS8ODgU.js} +12 -12
- package/dist/{vue-ui-quadrant-DCsWzPTS.cjs → vue-ui-quadrant-DgQYL-Gw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-2BHSrMyQ.js → vue-ui-quick-chart-BDbWfjBw.js} +9 -9
- package/dist/{vue-ui-quick-chart-cSK61pz0.cjs → vue-ui-quick-chart-yUmVs4oO.cjs} +1 -1
- package/dist/{vue-ui-radar-389oJi1T.js → vue-ui-radar-C-k3pIyW.js} +12 -12
- package/dist/{vue-ui-radar-FhAYOGk3.cjs → vue-ui-radar-mhl13Wrd.cjs} +1 -1
- package/dist/{vue-ui-rating-qt9wK6uC.cjs → vue-ui-rating-C6kJnYvS.cjs} +1 -1
- package/dist/{vue-ui-rating-DZvBURFa.js → vue-ui-rating-CIhWXY70.js} +2 -2
- package/dist/{vue-ui-relation-circle-BUO4fVO1.cjs → vue-ui-relation-circle-0gNlkYk7.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BdilNcKA.js → vue-ui-relation-circle-pkH3-y2p.js} +7 -7
- package/dist/{vue-ui-rings-Bm989ICB.cjs → vue-ui-rings-CV9yd0Ug.cjs} +1 -1
- package/dist/{vue-ui-rings-DnCLjHPS.js → vue-ui-rings-DDrCUaRz.js} +12 -12
- package/dist/{vue-ui-scatter-D5MEN-6H.cjs → vue-ui-scatter-BNBEA9aJ.cjs} +1 -1
- package/dist/{vue-ui-scatter-CGXyyM-H.js → vue-ui-scatter-CnsqbO3Z.js} +12 -12
- package/dist/{vue-ui-screenshot-D1eIWwBt.cjs → vue-ui-screenshot-Bn92LBO0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DnUwUGSI.js → vue-ui-screenshot-DvKtaZRj.js} +1 -1
- package/dist/{vue-ui-skeleton-YENgeeHe.js → vue-ui-skeleton-BLEWRF9c.js} +3 -3
- package/dist/{vue-ui-skeleton-Gp2n1f_9.cjs → vue-ui-skeleton-Cp7xQivG.cjs} +1 -1
- package/dist/{vue-ui-smiley-BZjspOIF.cjs → vue-ui-smiley-C2mcRykY.cjs} +1 -1
- package/dist/{vue-ui-smiley-DuO4Zw_W.js → vue-ui-smiley-CItAN3kt.js} +2 -2
- package/dist/{vue-ui-spark-trend-CplK8nFr.js → vue-ui-spark-trend-Av2htm-a.js} +5 -5
- package/dist/{vue-ui-spark-trend-CPQF8b6J.cjs → vue-ui-spark-trend-QCX1L9sT.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-vJkaiuvK.js → vue-ui-sparkbar-DlHEIr5y.js} +4 -4
- package/dist/{vue-ui-sparkbar-BXQdJUyz.cjs → vue-ui-sparkbar-yx3IrEbr.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Xl6N2hST.js → vue-ui-sparkgauge-0TLHJqm0.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B26sO2f5.cjs → vue-ui-sparkgauge-IKjgedtT.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-nD3QgfzT.js → vue-ui-sparkhistogram-DSsT7LNX.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CeUah66u.cjs → vue-ui-sparkhistogram-qQeJmfXa.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CGvsNeVR.cjs → vue-ui-sparkline-CFHhOskK.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BLp-NckE.js → vue-ui-sparkline-CFTe1quQ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Csd8qo37.js → vue-ui-sparkstackbar-BItz67Xe.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CLwkK8Mg.cjs → vue-ui-sparkstackbar-DiWo6prF.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BPFgWY8b.js → vue-ui-stackbar-DTZqWNNO.js} +13 -13
- package/dist/{vue-ui-stackbar-CJUHAClW.cjs → vue-ui-stackbar-Hpi0jRyt.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-4Qescqmt.cjs → vue-ui-strip-plot-C4yxTha0.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Bt63m8EN.js → vue-ui-strip-plot-Cx2FeTty.js} +11 -11
- package/dist/{vue-ui-table-ByJvMvOj.js → vue-ui-table-Bix1j1fJ.js} +1 -1
- package/dist/{vue-ui-table-DR2OPfca.cjs → vue-ui-table-CJNbNcGy.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-cfWys5YJ.js → vue-ui-table-heatmap-ChJcwy7O.js} +4 -4
- package/dist/{vue-ui-table-heatmap-4Gr4lGRV.cjs → vue-ui-table-heatmap-DurTtOqy.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BVFKrJ-Q.js → vue-ui-table-sparkline-BAFEMARQ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CiDF_cJa.cjs → vue-ui-table-sparkline-BtHmcSN6.cjs} +1 -1
- package/dist/{vue-ui-thermometer-EJ5tVF27.js → vue-ui-thermometer-BFyVVOwQ.js} +7 -7
- package/dist/{vue-ui-thermometer-DFzBZLBb.cjs → vue-ui-thermometer-Drjrf95Z.cjs} +1 -1
- package/dist/{vue-ui-timer-BCcErbUU.cjs → vue-ui-timer-DDOk0OTr.cjs} +1 -1
- package/dist/{vue-ui-timer-CvU5rBo8.js → vue-ui-timer-OSLT_1m8.js} +5 -5
- package/dist/{vue-ui-tiremarks-CNQh1XRX.js → vue-ui-tiremarks-KpITx0tF.js} +7 -7
- package/dist/{vue-ui-tiremarks-BVWIcVE_.cjs → vue-ui-tiremarks-QsuYkqiG.cjs} +1 -1
- package/dist/{vue-ui-treemap-DdUIlVAK.js → vue-ui-treemap-BaBGqaku.js} +11 -11
- package/dist/{vue-ui-treemap-BQRUX_YT.cjs → vue-ui-treemap-Cy9Dzxff.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CAZizMrX.js → vue-ui-vertical-bar-Co3wvtzE.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DVpfoeXk.cjs → vue-ui-vertical-bar-FZQr77nT.cjs} +1 -1
- package/dist/{vue-ui-waffle-EqrIAKHf.cjs → vue-ui-waffle-Cn6kiy1l.cjs} +1 -1
- package/dist/{vue-ui-waffle-7ZWSIKAR.js → vue-ui-waffle-DhnLmJ45.js} +12 -12
- package/dist/{vue-ui-wheel-Bw2DLaYl.cjs → vue-ui-wheel-BPTvUaom.cjs} +1 -1
- package/dist/{vue-ui-wheel-CRlTAU58.js → vue-ui-wheel-DXT33l3Q.js} +7 -7
- package/dist/{vue-ui-word-cloud-DvGiOpFq.cjs → vue-ui-word-cloud-BK6GChwj.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C_kRDeLO.js → vue-ui-word-cloud-CXuEH53W.js} +10 -10
- package/dist/vue-ui-xy-BIWpE650.cjs +3 -0
- package/dist/{vue-ui-xy-DQ-qp0dO.js → vue-ui-xy-DBoMUbad.js} +19 -21
- package/dist/{vue-ui-xy-canvas-DdtRNvwT.js → vue-ui-xy-canvas-BkkC46-q.js} +12 -12
- package/dist/{vue-ui-xy-canvas-C0mmWzxx.cjs → vue-ui-xy-canvas-ZREDvUHG.cjs} +1 -1
- package/package.json +2 -2
- package/dist/index-Dd05yTUd.cjs +0 -9
- package/dist/vue-ui-xy-BerHAf3P.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),ge=require("./BaseIcon-am1OQxQp.cjs"),K=require("./useResponsive-N8jl0-aC.cjs"),h=require("./index-Dd05yTUd.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},xe={key:0,style:{width:"100%",position:"relative"}},be={key:0,class:"minimap",style:{width:"100%"}},ke=["xmlns","viewBox"],we=["id"],Se=["stop-color"],Ne=["d","stroke"],Ce=["x","width","height","fill","rx"],Ee=["d","fill"],Be=["x","width","height","rx","fill"],Me=["x","width","height","fill","rx"],Re=["d","fill"],$e=["d","stroke"],Ve=["cx","cy","stroke","fill"],Le=["cx","cy","stroke","fill"],ze=["x1","x2","y2","stroke"],De=["x","height","width","onMouseenter"],Te=["min","max"],Pe=["min","max"],Fe={__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:Q,emit:Y}){e.useCssVars(l=>({"5f3498b1":ee.value,"11abbdb6":p.value,57330254:le.value,"51413b56":n.selectColor,"70c09a63":te.value}));const t=n,c=e.ref(null),u=e.ref(t.min),r=e.ref(t.max),k=e.computed(()=>!!t.minimap.length),C=e.ref(h.createUid()),_=e.computed(()=>t.refreshEndPoint===null?t.max:t.refreshEndPoint),f=Y,g=e.computed(()=>{const l=t.max-t.min,a=(u.value-t.min)/l*100,o=(r.value-t.min)/l*100;return{left:`${a}%`,width:`${o-a}%`,background:t.selectColor,tooltipLeft:`calc(${a}% - ${A.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${H.value?N.value:N.value/2}px)`,arrowLeft:!A.value,arrowRight:!H.value}}),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-t.min)/(t.max-t.min))-P.value/2<0:!1),H=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-t.min)/(t.max-t.min))+N.value/2>c.value.getBoundingClientRect().width:!1),ee=e.computed(()=>t.inputColor),te=e.computed(()=>t.background),le=e.computed(()=>`${t.selectColor}33`),p=e.computed(()=>t.borderColor),I=e.computed(()=>{let l=[];for(let a=0;a<t.minimap.length;a+=1)l.push(a);return l});function W(){f("reset")}function ae(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),f("update:start",Number(u.value))}function ne(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),f("update:end",Number(r.value))}e.watch(()=>t.min,l=>{Number(u.value)<Number(l)&&(u.value=Number(l)),Number(r.value)<Number(l)&&(r.value=Number(l))}),e.watch(()=>t.max,l=>{Number(u.value)>Number(l)&&(u.value=Number(l)),Number(r.value)>Number(l)&&(r.value=Number(l))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const l=K.throttle(()=>{const{width:a,height:o}=K.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(l),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>t.minimap.length?i.value.width/t.minimap.length:0),m=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),a=Math.min(...t.minimap)-10,o=l-(a>0?0:a),d=t.minimap.map((ve,he)=>{const fe=ve-a;return{x:i.value.width/t.minimap.length*he+s.value/2,y:i.value.height-fe/o*(i.value.height*.9)}}),y=t.smoothMinimap?h.createSmoothPath(d):h.createStraightPath(d),F=[...d].slice(t.valueStart,t.valueEnd),me=t.smoothMinimap?h.createSmoothPath(F):h.createStraightPath(F);return{fullSet:y,selectionSet:me,sliced:F,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/t.max)-s.value})),w=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{w.value=l+t.valueStart},{immediate:!0});function oe(l){w.value=l,l>=t.valueStart&&l<t.valueEnd&&f("trapMouse",l-t.valueStart)}const ie=e.ref(0),B=e.ref(null),M=e.ref(null);function R(l){u.value=l,B.value&&(B.value.value=l),f("update:start",Number(u.value))}function $(l){r.value=l,M.value&&(M.value.value=l),f("update:end",Number(r.value))}const V=e.computed(()=>t.valueEnd-t.valueStart),L=e.ref(!1);let z=e.ref(null);const ue=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(t.max-t.min):20),re=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(t.max-t.min)*V.value),se=e.ref(2.5),X=e.computed(()=>{const l=c.value.getBoundingClientRect().width-48;return Math.ceil((t.max-t.min)/((l-re.value)/se.value))}),q=l=>{if(b.value=!0,!t.enableSelectionDrag)return;const a=l.type==="touchstart";if((a?l.targetTouches[0].target:l.target).classList.contains("range-handle"))return;L.value=!0,z.value=a?l.targetTouches[0].clientX:l.clientX;const d=a?de:U,y=a?ce:j;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",y)};function U(l){O(l.clientX)}function de(l){c.value.contains(l.target)&&(l.target.classList.contains("range-handle")||(l.preventDefault(),O(l.targetTouches[0].clientX)))}function O(l){if(!L.value)return;const a=l-z.value;if(Math.abs(a)>ue.value){if(a>0){if(Number(r.value)+1<=t.max){const o=Math.min(t.max,Number(r.value)+X.value);$(o),R(o-V.value)}}else if(Number(u.value)-1>=t.min){const o=Math.max(0,Number(u.value)-X.value);R(o),$(o+V.value)}z.value=l}}function j(){G("mousemove","mouseup")}function ce(){G("touchmove","touchend")}function G(l,a){L.value=!1,window.removeEventListener(l,U),window.removeEventListener(a,j)}const x=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function Z(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}return e.onUpdated(()=>{Z(),J()}),e.watch(()=>t.labelLeft,()=>{e.nextTick(Z)},{deep:!0}),e.watch(()=>t.labelRight,()=>{e.nextTick(J)},{deep:!0}),Q({setStartValue:R,setEndValue:$}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[9]||(a[9]=o=>b.value=!1)},[e.createElementVNode("div",ye,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==_.value?(e.openBlock(),e.createElementBlock("div",xe,[n.useResetSlot?e.renderSlot(l.$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(ge.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[7]||(a[7]=o=>b.value=!0),onMouseleave:a[8]||(a[8]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",be,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(h.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,Se),a[10]||(a[10]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,we)]),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,Ne),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,Ce),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,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,rx:n.minimapSelectionRadius,fill:p.value},null,8,Be),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,Me),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,Re),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,$e),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,Ve),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,Le),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(I.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,ze)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.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?x.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=y=>x.value=!0),onMouseup:a[1]||(a[1]=y=>x.value=!1),onMouseenter:y=>oe(o),onMouseleave:a[2]||(a[2]=y=>{w.value=null,f("trapMouse",null)})},null,44,De))),256))],8,ke))])):e.createCommentVNode("",!0),a[11]||(a[11]=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=>x.value=!0),onMouseup:a[4]||(a[4]=o=>x.value=!1),style:e.normalizeStyle({...g.value,cursor:x.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${ie.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:ae},null,42,Te)),[[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[6]||(a[6]=o=>r.value=o),onInput:ne},null,42,Pe)),[[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(h.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`})},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(h.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},Ae=pe._export_sfc(Fe,[["__scopeId","data-v-a64f4070"]]);exports.Slicer=Ae;
|
|
1
|
+
"use strict";const e=require("vue"),ge=require("./BaseIcon-DFBOAQtA.cjs"),K=require("./useResponsive-N8jl0-aC.cjs"),h=require("./index-BYGiASHP.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},xe={key:0,style:{width:"100%",position:"relative"}},be={key:0,class:"minimap",style:{width:"100%"}},ke=["xmlns","viewBox"],we=["id"],Se=["stop-color"],Ne=["d","stroke"],Ce=["x","width","height","fill","rx"],Ee=["d","fill"],Be=["x","width","height","rx","fill"],Me=["x","width","height","fill","rx"],Re=["d","fill"],$e=["d","stroke"],Ve=["cx","cy","stroke","fill"],Le=["cx","cy","stroke","fill"],ze=["x1","x2","y2","stroke"],De=["x","height","width","onMouseenter"],Te=["min","max"],Pe=["min","max"],Fe={__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:Q,emit:Y}){e.useCssVars(l=>({"5f3498b1":ee.value,"11abbdb6":p.value,57330254:le.value,"51413b56":n.selectColor,"70c09a63":te.value}));const t=n,c=e.ref(null),u=e.ref(t.min),r=e.ref(t.max),k=e.computed(()=>!!t.minimap.length),C=e.ref(h.createUid()),_=e.computed(()=>t.refreshEndPoint===null?t.max:t.refreshEndPoint),f=Y,g=e.computed(()=>{const l=t.max-t.min,a=(u.value-t.min)/l*100,o=(r.value-t.min)/l*100;return{left:`${a}%`,width:`${o-a}%`,background:t.selectColor,tooltipLeft:`calc(${a}% - ${A.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${H.value?N.value:N.value/2}px)`,arrowLeft:!A.value,arrowRight:!H.value}}),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-t.min)/(t.max-t.min))-P.value/2<0:!1),H=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-t.min)/(t.max-t.min))+N.value/2>c.value.getBoundingClientRect().width:!1),ee=e.computed(()=>t.inputColor),te=e.computed(()=>t.background),le=e.computed(()=>`${t.selectColor}33`),p=e.computed(()=>t.borderColor),I=e.computed(()=>{let l=[];for(let a=0;a<t.minimap.length;a+=1)l.push(a);return l});function W(){f("reset")}function ae(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),f("update:start",Number(u.value))}function ne(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),f("update:end",Number(r.value))}e.watch(()=>t.min,l=>{Number(u.value)<Number(l)&&(u.value=Number(l)),Number(r.value)<Number(l)&&(r.value=Number(l))}),e.watch(()=>t.max,l=>{Number(u.value)>Number(l)&&(u.value=Number(l)),Number(r.value)>Number(l)&&(r.value=Number(l))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const l=K.throttle(()=>{const{width:a,height:o}=K.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(l),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>t.minimap.length?i.value.width/t.minimap.length:0),m=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),a=Math.min(...t.minimap)-10,o=l-(a>0?0:a),d=t.minimap.map((ve,he)=>{const fe=ve-a;return{x:i.value.width/t.minimap.length*he+s.value/2,y:i.value.height-fe/o*(i.value.height*.9)}}),y=t.smoothMinimap?h.createSmoothPath(d):h.createStraightPath(d),F=[...d].slice(t.valueStart,t.valueEnd),me=t.smoothMinimap?h.createSmoothPath(F):h.createStraightPath(F);return{fullSet:y,selectionSet:me,sliced:F,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/t.max)-s.value})),w=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{w.value=l+t.valueStart},{immediate:!0});function oe(l){w.value=l,l>=t.valueStart&&l<t.valueEnd&&f("trapMouse",l-t.valueStart)}const ie=e.ref(0),B=e.ref(null),M=e.ref(null);function R(l){u.value=l,B.value&&(B.value.value=l),f("update:start",Number(u.value))}function $(l){r.value=l,M.value&&(M.value.value=l),f("update:end",Number(r.value))}const V=e.computed(()=>t.valueEnd-t.valueStart),L=e.ref(!1);let z=e.ref(null);const ue=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(t.max-t.min):20),re=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(t.max-t.min)*V.value),se=e.ref(2.5),X=e.computed(()=>{const l=c.value.getBoundingClientRect().width-48;return Math.ceil((t.max-t.min)/((l-re.value)/se.value))}),q=l=>{if(b.value=!0,!t.enableSelectionDrag)return;const a=l.type==="touchstart";if((a?l.targetTouches[0].target:l.target).classList.contains("range-handle"))return;L.value=!0,z.value=a?l.targetTouches[0].clientX:l.clientX;const d=a?de:U,y=a?ce:j;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",y)};function U(l){O(l.clientX)}function de(l){c.value.contains(l.target)&&(l.target.classList.contains("range-handle")||(l.preventDefault(),O(l.targetTouches[0].clientX)))}function O(l){if(!L.value)return;const a=l-z.value;if(Math.abs(a)>ue.value){if(a>0){if(Number(r.value)+1<=t.max){const o=Math.min(t.max,Number(r.value)+X.value);$(o),R(o-V.value)}}else if(Number(u.value)-1>=t.min){const o=Math.max(0,Number(u.value)-X.value);R(o),$(o+V.value)}z.value=l}}function j(){G("mousemove","mouseup")}function ce(){G("touchmove","touchend")}function G(l,a){L.value=!1,window.removeEventListener(l,U),window.removeEventListener(a,j)}const x=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function Z(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}return e.onUpdated(()=>{Z(),J()}),e.watch(()=>t.labelLeft,()=>{e.nextTick(Z)},{deep:!0}),e.watch(()=>t.labelRight,()=>{e.nextTick(J)},{deep:!0}),Q({setStartValue:R,setEndValue:$}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[9]||(a[9]=o=>b.value=!1)},[e.createElementVNode("div",ye,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==_.value?(e.openBlock(),e.createElementBlock("div",xe,[n.useResetSlot?e.renderSlot(l.$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(ge.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[7]||(a[7]=o=>b.value=!0),onMouseleave:a[8]||(a[8]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",be,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(h.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,Se),a[10]||(a[10]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,we)]),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,Ne),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,Ce),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,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,rx:n.minimapSelectionRadius,fill:p.value},null,8,Be),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,Me),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,Re),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,$e),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,Ve),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,Le),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(I.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,ze)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.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?x.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=y=>x.value=!0),onMouseup:a[1]||(a[1]=y=>x.value=!1),onMouseenter:y=>oe(o),onMouseleave:a[2]||(a[2]=y=>{w.value=null,f("trapMouse",null)})},null,44,De))),256))],8,ke))])):e.createCommentVNode("",!0),a[11]||(a[11]=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=>x.value=!0),onMouseup:a[4]||(a[4]=o=>x.value=!1),style:e.normalizeStyle({...g.value,cursor:x.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${ie.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:ae},null,42,Te)),[[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[6]||(a[6]=o=>r.value=o),onInput:ne},null,42,Pe)),[[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(h.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`})},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(h.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},Ae=pe._export_sfc(Fe,[["__scopeId","data-v-a64f4070"]]);exports.Slicer=Ae;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as De, computed as s, ref as u, watch as $, onMounted as Te, onBeforeUnmount as Pe, onUpdated as Ae, nextTick as ne, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as b, renderSlot as Fe, normalizeStyle as N, createVNode as Ie, withDirectives as ie, unref as G, Fragment as ue, renderList as oe, normalizeClass as L, vModelText as re, toDisplayString as se } from "vue";
|
|
2
|
-
import ze from "./BaseIcon-
|
|
2
|
+
import ze from "./BaseIcon-B2NGtTKw.js";
|
|
3
3
|
import { t as He, u as Ve } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
-
import { c as We, S as de, R as ve, X as Xe, G as me } from "./index-
|
|
4
|
+
import { c as We, S as de, R as ve, X as Xe, G as me } from "./index-KnT6sCk3.js";
|
|
5
5
|
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Oe = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./useNestedProp-DtjjNlbm.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 { 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-C58pZChx.js";
|
|
3
3
|
const x = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./index-BYGiASHP.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-KnT6sCk3.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) {
|