vue-data-ui 2.6.26 → 2.6.28
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-B01A8Nli.js → Arrow-CAjJ853A.js} +1 -1
- package/dist/{Arrow-lIQGLPKB.cjs → Arrow-DAyQKLcK.cjs} +1 -1
- package/dist/{BaseIcon-CA4E8VvP.cjs → BaseIcon-BI3eFhr1.cjs} +1 -1
- package/dist/{BaseIcon-Bc9e5u1l.js → BaseIcon-h1prcupB.js} +1 -1
- package/dist/{DataTable-DfRIIBwi.js → DataTable-BT1MSIYm.js} +2 -2
- package/dist/{DataTable-CXOVBVg-.cjs → DataTable-r2HNsyUX.cjs} +1 -1
- package/dist/{Legend-eSu88vQu.js → Legend-Bi_ML4Pn.js} +2 -2
- package/dist/{Legend-D6N4Tx6z.cjs → Legend-Bpt6RBG8.cjs} +1 -1
- package/dist/{PackageVersion-CkZZ1O_f.cjs → PackageVersion-BV7LcPDV.cjs} +1 -1
- package/dist/{PackageVersion-DuKFN8zj.js → PackageVersion-J4TBr3Rf.js} +1 -1
- package/dist/{PenAndPaper-D6TE0NXU.js → PenAndPaper-CZ-9vnJd.js} +3 -3
- package/dist/{PenAndPaper-OD8yUtcf.cjs → PenAndPaper-DP7fHf74.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-C9k8Yq5O.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DTVlE6RY.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DN-wEXd4.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-q8a9FDTk.js} +3 -3
- package/dist/{Shape-ETmlN0t6.cjs → Shape-B1cFbBnY.cjs} +1 -1
- package/dist/{Shape-D0NWlW84.js → Shape-DKT9Kqk7.js} +1 -1
- package/dist/{Slicer-DOS9E5CE.js → Slicer-DB-NAuJL.js} +2 -2
- package/dist/{Slicer-Cj0HBfiz.cjs → Slicer-RU1fvaGI.cjs} +1 -1
- package/dist/{Title-BKxz9gY3.js → Title-B47pulul.js} +1 -1
- package/dist/{Title-DkB64UXq.cjs → Title-DjxAodUf.cjs} +1 -1
- package/dist/{Tooltip-CFdxdcrD.cjs → Tooltip-ogV3t9Et.cjs} +1 -1
- package/dist/{Tooltip-DJhKmW8q.js → Tooltip-v3_dMNKi.js} +1 -1
- package/dist/index-0ZojJ1mH.cjs +9 -0
- package/dist/{index-CuTBHfav.js → index-4RRlWcLr.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-YdBGulzK.js → useNestedProp-CPc3u5vP.js} +1 -1
- package/dist/{useNestedProp-DjxHSNja.cjs → useNestedProp-OY09Srif.cjs} +1 -1
- package/dist/{usePrinter-BPAAQHlr.cjs → usePrinter-DDgV-g0v.cjs} +1 -1
- package/dist/{usePrinter-CdGgoEbU.js → usePrinter-FdlD3Leg.js} +1 -1
- package/dist/{vue-data-ui-DADT2HRu.cjs → vue-data-ui-BSNSO6yu.cjs} +1 -1
- package/dist/{vue-data-ui-CMbKOX7r.js → vue-data-ui-BmgimpbQ.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-DXKBBDeq.js → vue-ui-3d-bar-0-nrP5n6.js} +9 -9
- package/dist/{vue-ui-3d-bar-OZLUu61Z.cjs → vue-ui-3d-bar-BGI5KJpt.cjs} +1 -1
- package/dist/{vue-ui-accordion-C2sI_ZUV.cjs → vue-ui-accordion-BboUGt-9.cjs} +1 -1
- package/dist/{vue-ui-accordion-D0cMMd6H.js → vue-ui-accordion-I9YX633w.js} +3 -3
- package/dist/{vue-ui-age-pyramid-PEyZtWKm.js → vue-ui-age-pyramid-C6NmpTMr.js} +10 -10
- package/dist/{vue-ui-age-pyramid-B9kKFKSK.cjs → vue-ui-age-pyramid-DN_KJekA.cjs} +1 -1
- package/dist/{vue-ui-annotator-l5d_1HyN.js → vue-ui-annotator-DStzhwzU.js} +1 -1
- package/dist/{vue-ui-annotator-3RpXzm7k.cjs → vue-ui-annotator-L-f_1hLT.cjs} +1 -1
- package/dist/{vue-ui-bullet-CYlYGiwc.cjs → vue-ui-bullet-BCNaSp3O.cjs} +1 -1
- package/dist/{vue-ui-bullet-C5gYKGpy.js → vue-ui-bullet-Dq2MsuyN.js} +8 -8
- package/dist/{vue-ui-candlestick-Dp7eph2a.js → vue-ui-candlestick-9iTYHhad.js} +11 -11
- package/dist/{vue-ui-candlestick-D9DcIIM1.cjs → vue-ui-candlestick-hg6BYKYF.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CbtryrwI.cjs → vue-ui-carousel-table-CaMRToS_.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CjP9DEaw.js → vue-ui-carousel-table-D3GqEHvK.js} +4 -4
- package/dist/{vue-ui-chestnut-DPlSlyH5.js → vue-ui-chestnut-Dl_TQF-L.js} +8 -8
- package/dist/{vue-ui-chestnut-BziSZX1t.cjs → vue-ui-chestnut-ViGzV_gH.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-mqqta6I2.cjs → vue-ui-circle-pack-CDF6Vpt6.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CHMiynqO.js → vue-ui-circle-pack-CzgQYWZS.js} +9 -9
- package/dist/{vue-ui-cursor-CN3kPTtK.cjs → vue-ui-cursor-B6B1RIBj.cjs} +1 -1
- package/dist/{vue-ui-cursor-B0QjE_DV.js → vue-ui-cursor-Cd2gEBSb.js} +2 -2
- package/dist/{vue-ui-dashboard-CVCg32Ue.cjs → vue-ui-dashboard-CJpCmlsb.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B6ONJTFj.js → vue-ui-dashboard-CQ0t86PU.js} +2 -2
- package/dist/{vue-ui-digits-BTY55X9_.cjs → vue-ui-digits--Uo-UP39.cjs} +1 -1
- package/dist/{vue-ui-digits-FOTo8rUp.js → vue-ui-digits-De_0njxV.js} +2 -2
- package/dist/{vue-ui-donut-BemVEPw5.js → vue-ui-donut-CpJ4w6x_.js} +12 -12
- package/dist/{vue-ui-donut-DLGyZzQi.cjs → vue-ui-donut-eRo_Rcn7.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BniUhzq-.js → vue-ui-donut-evolution-BNcCQB_7.js} +11 -11
- package/dist/{vue-ui-donut-evolution-D_mhGDxS.cjs → vue-ui-donut-evolution-C4ggQb2r.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CCH82j5J.js → vue-ui-dumbbell-B3sk0RXg.js} +10 -10
- package/dist/{vue-ui-dumbbell-DpK3wvc9.cjs → vue-ui-dumbbell-C9IjXewZ.cjs} +1 -1
- package/dist/{vue-ui-flow-CYDayEz1.cjs → vue-ui-flow-BuDDlyI4.cjs} +1 -1
- package/dist/{vue-ui-flow-7j79Jse0.js → vue-ui-flow-g7pN_Y8S.js} +9 -9
- package/dist/{vue-ui-funnel-D4E3aOSG.js → vue-ui-funnel-BG4S2tkJ.js} +9 -9
- package/dist/{vue-ui-funnel-RqVa5bfO.cjs → vue-ui-funnel-DgcymfFg.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C2KNvyde.cjs → vue-ui-galaxy-B1XpQCbj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BzGG8k--.js → vue-ui-galaxy-DZyXCGNE.js} +11 -11
- package/dist/{vue-ui-gauge-DDnePaar.js → vue-ui-gauge-C5XEkmG7.js} +7 -7
- package/dist/{vue-ui-gauge-Cr46aJbl.cjs → vue-ui-gauge-sup8MraV.cjs} +1 -1
- package/dist/{vue-ui-gizmo-VCicRRNY.cjs → vue-ui-gizmo-Con0HdYV.cjs} +1 -1
- package/dist/{vue-ui-gizmo-B-IdbdLQ.js → vue-ui-gizmo-DnbVyXdl.js} +3 -3
- package/dist/{vue-ui-heatmap-CwhG7HA1.cjs → vue-ui-heatmap-CMEjJp25.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B1rP_UvU.js → vue-ui-heatmap-JSiKvLGN.js} +10 -10
- package/dist/{vue-ui-history-plot-D9n37PlK.js → vue-ui-history-plot-DX5bxrQE.js} +11 -11
- package/dist/{vue-ui-history-plot-B2CrmZ4U.cjs → vue-ui-history-plot-LSny6C9i.cjs} +1 -1
- package/dist/{vue-ui-kpi-BKoHnuh9.js → vue-ui-kpi-D5hjTCaA.js} +3 -3
- package/dist/{vue-ui-kpi-BPtIUk35.cjs → vue-ui-kpi-Dn-ifyxf.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DtoiCLwz.cjs → vue-ui-mini-loader-Dav_SSSQ.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BhWPRM3v.js → vue-ui-mini-loader-QaFKK0A0.js} +2 -2
- package/dist/{vue-ui-molecule-0iZCPldw.cjs → vue-ui-molecule-BB1J8Dbo.cjs} +1 -1
- package/dist/{vue-ui-molecule-CoVQtGa7.js → vue-ui-molecule-BLbSDPvP.js} +10 -10
- package/dist/{vue-ui-mood-radar-D0cgoB3L.cjs → vue-ui-mood-radar-2i9AMp4M.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CJCkKOg6.js → vue-ui-mood-radar-DALxGShD.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DTIFWwgw.cjs → vue-ui-nested-donuts-BNE1i3hX.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DPU_gAqn.js → vue-ui-nested-donuts-CrwpbYj1.js} +11 -11
- package/dist/{vue-ui-onion-B0ycWbku.js → vue-ui-onion-CCAFH42D.js} +11 -11
- package/dist/{vue-ui-onion-BT0Ze5tQ.cjs → vue-ui-onion-Dg11ctuw.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CJ4z3x6Z.cjs → vue-ui-parallel-coordinate-plot-BEVOsDtM.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DCVaUXnP.js → vue-ui-parallel-coordinate-plot-v8Ynm3w5.js} +12 -12
- package/dist/{vue-ui-quadrant-ADOiyUbM.cjs → vue-ui-quadrant--F_ZyLFk.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Bu9R5wbL.js → vue-ui-quadrant-HwNbrGMQ.js} +12 -12
- package/dist/{vue-ui-quick-chart-D85QJsOS.js → vue-ui-quick-chart-CVfXiwBs.js} +9 -9
- package/dist/{vue-ui-quick-chart-C-IgD2jG.cjs → vue-ui-quick-chart-DQdiHpqZ.cjs} +1 -1
- package/dist/{vue-ui-radar-Yax-IAKc.cjs → vue-ui-radar-BAp4IGrw.cjs} +1 -1
- package/dist/{vue-ui-radar-BLD4B6Iy.js → vue-ui-radar-DpBICEaV.js} +12 -12
- package/dist/{vue-ui-rating-D-aY2He_.js → vue-ui-rating-Bjmj2p6V.js} +2 -2
- package/dist/{vue-ui-rating-CWljcjJb.cjs → vue-ui-rating-D72lzAno.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-z6_96bXn.cjs → vue-ui-relation-circle-C9hr45P6.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CbfADhnt.js → vue-ui-relation-circle-CWpiwvyP.js} +7 -7
- package/dist/{vue-ui-rings-CNPqQbDm.cjs → vue-ui-rings-BhZWnXiZ.cjs} +1 -1
- package/dist/{vue-ui-rings-C2x4CbEf.js → vue-ui-rings-Cp0F0mSk.js} +12 -12
- package/dist/{vue-ui-scatter-CCxXZ_g2.js → vue-ui-scatter-BJrYQZAa.js} +12 -12
- package/dist/{vue-ui-scatter-CEqbes00.cjs → vue-ui-scatter-BWk3QtZv.cjs} +1 -1
- package/dist/{vue-ui-screenshot-meUhU_hT.js → vue-ui-screenshot-R5QLfXl9.js} +1 -1
- package/dist/{vue-ui-screenshot-Bu6uH3rp.cjs → vue-ui-screenshot-sXfihBWk.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CcUFTtI6.js → vue-ui-skeleton-Txytd5FS.js} +3 -3
- package/dist/{vue-ui-skeleton-1eDMCfCO.cjs → vue-ui-skeleton-raZOriRn.cjs} +1 -1
- package/dist/{vue-ui-smiley-CZ2oBYzs.cjs → vue-ui-smiley-BWIjNtsk.cjs} +1 -1
- package/dist/{vue-ui-smiley-DZHetTKE.js → vue-ui-smiley-Dcyf6FLr.js} +2 -2
- package/dist/{vue-ui-spark-trend-VSELt8Nw.js → vue-ui-spark-trend-1CYZEhc-.js} +5 -5
- package/dist/{vue-ui-spark-trend-Cyf3OnEA.cjs → vue-ui-spark-trend-DO9LbfKP.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C3P0JRBt.cjs → vue-ui-sparkbar-BydU6AYL.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Dg_BQwqX.js → vue-ui-sparkbar-_ImT_rmQ.js} +4 -4
- package/dist/{vue-ui-sparkgauge-qQiFDw3N.cjs → vue-ui-sparkgauge-CP1tnMln.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BavP6Ole.js → vue-ui-sparkgauge-DwVjglhg.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-a94AQs4F.js → vue-ui-sparkhistogram-BsaYQmh9.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CKzO2iWU.cjs → vue-ui-sparkhistogram-DUi7rP7a.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C0oAuGCy.cjs → vue-ui-sparkline-CMURk8mO.cjs} +1 -1
- package/dist/{vue-ui-sparkline-IbHgQ77C.js → vue-ui-sparkline-DmePoZxQ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-EBUDRKtZ.js → vue-ui-sparkstackbar-B83LJYrz.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-97HDKUwi.cjs → vue-ui-sparkstackbar-DIsWXCPJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-C13PP0dg.cjs → vue-ui-stackbar-CUmbJBQz.cjs} +1 -1
- package/dist/{vue-ui-stackbar-AOUoxsq4.js → vue-ui-stackbar-D7ayfpLF.js} +13 -13
- package/dist/{vue-ui-strip-plot-DWeZ3O_4.js → vue-ui-strip-plot-Co4JPPsu.js} +11 -11
- package/dist/{vue-ui-strip-plot-AignQPMK.cjs → vue-ui-strip-plot-D4VJAtJv.cjs} +1 -1
- package/dist/{vue-ui-table-QJiNs26-.js → vue-ui-table-CqBuNHeX.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Bzg_U-SJ.cjs → vue-ui-table-heatmap-B8V6IJRD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-puZtMYbT.js → vue-ui-table-heatmap-CcVjIvRn.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DjXLFfW2.js → vue-ui-table-sparkline-A52CEigV.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CSFwQ-t_.cjs → vue-ui-table-sparkline-DqNoUFXf.cjs} +1 -1
- package/dist/{vue-ui-table-LHqAw3kj.cjs → vue-ui-table-vBPVOVdW.cjs} +1 -1
- package/dist/{vue-ui-thermometer-POGAfb6R.js → vue-ui-thermometer-CZwzbH4U.js} +7 -7
- package/dist/{vue-ui-thermometer-DSSUevzu.cjs → vue-ui-thermometer-s-VfsY-H.cjs} +1 -1
- package/dist/{vue-ui-timer-D0963OD-.js → vue-ui-timer-CtLLA8zf.js} +5 -5
- package/dist/{vue-ui-timer-DjUsUfzP.cjs → vue-ui-timer-xBfXaHH4.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DXUrMZ7T.js → vue-ui-tiremarks-DAf44W2K.js} +7 -7
- package/dist/{vue-ui-tiremarks-C_0AHsKi.cjs → vue-ui-tiremarks-gIdzqyuY.cjs} +1 -1
- package/dist/{vue-ui-treemap-CUvGKwEs.js → vue-ui-treemap-aeR4rGYE.js} +11 -11
- package/dist/{vue-ui-treemap-B8Sgeetq.cjs → vue-ui-treemap-ux_WLWjB.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CCa0uTe1.js → vue-ui-vertical-bar-BVxrBq8G.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Cg6sLkdj.cjs → vue-ui-vertical-bar-D4XQjiLY.cjs} +1 -1
- package/dist/{vue-ui-waffle-qEyd5OiZ.cjs → vue-ui-waffle-lSlfXn1P.cjs} +1 -1
- package/dist/{vue-ui-waffle-C10atPU7.js → vue-ui-waffle-o1EM500w.js} +12 -12
- package/dist/{vue-ui-wheel-B-xkw7-m.js → vue-ui-wheel-CU_OW9-2.js} +7 -7
- package/dist/{vue-ui-wheel-DUaoTdNN.cjs → vue-ui-wheel-lEiHpMDb.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B98OKu54.cjs → vue-ui-word-cloud-BhbV09xg.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CtDZc_V9.js → vue-ui-word-cloud-DKlJ3x7X.js} +10 -10
- package/dist/{vue-ui-xy-UADM7lRZ.js → vue-ui-xy-CsFUNXKI.js} +147 -140
- package/dist/vue-ui-xy-DdSlwQAQ.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-hICyyv_N.cjs → vue-ui-xy-canvas-Dow767yO.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BxWIqetr.js → vue-ui-xy-canvas-DxpbUfTQ.js} +12 -12
- package/package.json +1 -1
- package/dist/index-DmC7JfWg.cjs +0 -9
- package/dist/vue-ui-xy-BTIKZk4i.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),ge=require("./BaseIcon-CA4E8VvP.cjs"),K=require("./useResponsive-N8jl0-aC.cjs"),h=require("./index-DmC7JfWg.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-BI3eFhr1.cjs"),K=require("./useResponsive-N8jl0-aC.cjs"),h=require("./index-0ZojJ1mH.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,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-CPc3u5vP.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-OY09Srif.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-0ZojJ1mH.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-4RRlWcLr.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) {
|