vue-data-ui 2.6.28 → 2.6.30
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-CAjJ853A.js → Arrow-BRX5QREB.js} +1 -1
- package/dist/{Arrow-DAyQKLcK.cjs → Arrow-P-MV7QP4.cjs} +1 -1
- package/dist/{BaseIcon-h1prcupB.js → BaseIcon-C4DFWCPQ.js} +1 -1
- package/dist/{BaseIcon-BI3eFhr1.cjs → BaseIcon-D6N5NtS_.cjs} +1 -1
- package/dist/{DataTable-r2HNsyUX.cjs → DataTable-BQev_mkM.cjs} +1 -1
- package/dist/{DataTable-BT1MSIYm.js → DataTable-CtmSPqq3.js} +2 -2
- package/dist/{Legend-Bpt6RBG8.cjs → Legend-BWGGSzzL.cjs} +1 -1
- package/dist/{Legend-Bi_ML4Pn.js → Legend-CnjPrxu7.js} +2 -2
- package/dist/{PackageVersion-J4TBr3Rf.js → PackageVersion-BqivyRli.js} +1 -1
- package/dist/{PackageVersion-BV7LcPDV.cjs → PackageVersion-nCHRrr8B.cjs} +1 -1
- package/dist/{PenAndPaper-CZ-9vnJd.js → PenAndPaper-CkSxK8EU.js} +3 -3
- package/dist/{PenAndPaper-DP7fHf74.cjs → PenAndPaper-DnAMv6UG.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DTVlE6RY.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-Ct4MZLWW.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-q8a9FDTk.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-CvYiOyf0.js} +3 -3
- package/dist/{Shape-B1cFbBnY.cjs → Shape-B6FwaN9w.cjs} +1 -1
- package/dist/{Shape-DKT9Kqk7.js → Shape-cqkzw4S8.js} +1 -1
- package/dist/{Slicer-DB-NAuJL.js → Slicer-DKa09VYX.js} +2 -2
- package/dist/{Slicer-RU1fvaGI.cjs → Slicer-DNdHNpQI.cjs} +1 -1
- package/dist/{Title-B47pulul.js → Title-B2U8Vwbr.js} +1 -1
- package/dist/{Title-DjxAodUf.cjs → Title-BTVFor-3.cjs} +1 -1
- package/dist/{Tooltip-ogV3t9Et.cjs → Tooltip-BAREkrGW.cjs} +1 -1
- package/dist/{Tooltip-v3_dMNKi.js → Tooltip-BoEfXPUr.js} +1 -1
- package/dist/{index-4RRlWcLr.js → index-DE2bSxF0.js} +3 -2
- package/dist/index-rvnEQA3z.cjs +9 -0
- package/dist/llms.txt +232 -0
- 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-CPc3u5vP.js → useNestedProp-BHQyCZVK.js} +1 -1
- package/dist/{useNestedProp-OY09Srif.cjs → useNestedProp-CO_r2Hl_.cjs} +1 -1
- package/dist/{usePrinter-DDgV-g0v.cjs → usePrinter-CgDYkKfY.cjs} +1 -1
- package/dist/{usePrinter-FdlD3Leg.js → usePrinter-I_7yI4nF.js} +1 -1
- package/dist/{vue-data-ui-BmgimpbQ.js → vue-data-ui-B7ugrnFy.js} +61 -61
- package/dist/{vue-data-ui-BSNSO6yu.cjs → vue-data-ui-iYl-xVMm.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-0-nrP5n6.js → vue-ui-3d-bar-DMUqZWxd.js} +9 -9
- package/dist/{vue-ui-3d-bar-BGI5KJpt.cjs → vue-ui-3d-bar-DR6Ja85o.cjs} +1 -1
- package/dist/{vue-ui-accordion-I9YX633w.js → vue-ui-accordion-CAYrK0AD.js} +3 -3
- package/dist/{vue-ui-accordion-BboUGt-9.cjs → vue-ui-accordion-DSWAoyYy.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C6NmpTMr.js → vue-ui-age-pyramid-DNzvCd0F.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DN_KJekA.cjs → vue-ui-age-pyramid-DeP3lyDF.cjs} +1 -1
- package/dist/{vue-ui-annotator-DStzhwzU.js → vue-ui-annotator-BAdmhVtS.js} +1 -1
- package/dist/{vue-ui-annotator-L-f_1hLT.cjs → vue-ui-annotator-BmOIg-Ft.cjs} +1 -1
- package/dist/{vue-ui-bullet-BCNaSp3O.cjs → vue-ui-bullet-CA8DrZNY.cjs} +1 -1
- package/dist/{vue-ui-bullet-Dq2MsuyN.js → vue-ui-bullet-DMYIXQFC.js} +8 -8
- package/dist/{vue-ui-candlestick-9iTYHhad.js → vue-ui-candlestick-ChL6Hz8x.js} +11 -11
- package/dist/{vue-ui-candlestick-hg6BYKYF.cjs → vue-ui-candlestick-mMCn6J9b.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CaMRToS_.cjs → vue-ui-carousel-table-BpjBdxQg.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D3GqEHvK.js → vue-ui-carousel-table-CoYO6jw3.js} +4 -4
- package/dist/{vue-ui-chestnut-Dl_TQF-L.js → vue-ui-chestnut-CsvNioev.js} +8 -8
- package/dist/{vue-ui-chestnut-ViGzV_gH.cjs → vue-ui-chestnut-DWz1CQ42.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CzgQYWZS.js → vue-ui-circle-pack-C6xn7Wea.js} +9 -9
- package/dist/{vue-ui-circle-pack-CDF6Vpt6.cjs → vue-ui-circle-pack-okahjhJZ.cjs} +1 -1
- package/dist/{vue-ui-cursor-Cd2gEBSb.js → vue-ui-cursor-BBBQuZ4O.js} +2 -2
- package/dist/{vue-ui-cursor-B6B1RIBj.cjs → vue-ui-cursor-Cc_ltPTZ.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CJpCmlsb.cjs → vue-ui-dashboard-Cbg-Nrjo.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CQ0t86PU.js → vue-ui-dashboard-DQwLolfb.js} +2 -2
- package/dist/{vue-ui-digits--Uo-UP39.cjs → vue-ui-digits--alL40K7.cjs} +1 -1
- package/dist/{vue-ui-digits-De_0njxV.js → vue-ui-digits-Cz26Uc8Y.js} +2 -2
- package/dist/{vue-ui-donut-eRo_Rcn7.cjs → vue-ui-donut-D2GpXD47.cjs} +1 -1
- package/dist/{vue-ui-donut-CpJ4w6x_.js → vue-ui-donut-DnWEzuwO.js} +12 -12
- package/dist/{vue-ui-donut-evolution-BNcCQB_7.js → vue-ui-donut-evolution-CQNZ5_sE.js} +11 -11
- package/dist/{vue-ui-donut-evolution-C4ggQb2r.cjs → vue-ui-donut-evolution-DyIF2r5a.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C9IjXewZ.cjs → vue-ui-dumbbell-CqAV79yJ.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B3sk0RXg.js → vue-ui-dumbbell-DlzCrhkR.js} +10 -10
- package/dist/{vue-ui-flow-BuDDlyI4.cjs → vue-ui-flow-Crh83Qsy.cjs} +1 -1
- package/dist/{vue-ui-flow-g7pN_Y8S.js → vue-ui-flow-q4-5ZIPV.js} +9 -9
- package/dist/{vue-ui-funnel-DgcymfFg.cjs → vue-ui-funnel-DbPvFn75.cjs} +1 -1
- package/dist/{vue-ui-funnel-BG4S2tkJ.js → vue-ui-funnel-sa_ic8K7.js} +9 -9
- package/dist/{vue-ui-galaxy-B1XpQCbj.cjs → vue-ui-galaxy-BEWvtIRO.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DZyXCGNE.js → vue-ui-galaxy-e4vLdstV.js} +11 -11
- package/dist/{vue-ui-gauge-sup8MraV.cjs → vue-ui-gauge-B3pGxgCP.cjs} +1 -1
- package/dist/{vue-ui-gauge-C5XEkmG7.js → vue-ui-gauge-KSkSXPcl.js} +7 -7
- package/dist/{vue-ui-gizmo-DnbVyXdl.js → vue-ui-gizmo-DPz1e1Pn.js} +3 -3
- package/dist/{vue-ui-gizmo-Con0HdYV.cjs → vue-ui-gizmo-dPb1eIC_.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CMEjJp25.cjs → vue-ui-heatmap-BCdMmkey.cjs} +1 -1
- package/dist/{vue-ui-heatmap-JSiKvLGN.js → vue-ui-heatmap-BylnOSx4.js} +10 -10
- package/dist/{vue-ui-history-plot-DX5bxrQE.js → vue-ui-history-plot-B-8xlbH5.js} +11 -11
- package/dist/{vue-ui-history-plot-LSny6C9i.cjs → vue-ui-history-plot-BpA-FDre.cjs} +1 -1
- package/dist/{vue-ui-kpi-D5hjTCaA.js → vue-ui-kpi-B5JI7-k3.js} +3 -3
- package/dist/{vue-ui-kpi-Dn-ifyxf.cjs → vue-ui-kpi-EDKBcrjT.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-QaFKK0A0.js → vue-ui-mini-loader-CRgvvMRU.js} +2 -2
- package/dist/{vue-ui-mini-loader-Dav_SSSQ.cjs → vue-ui-mini-loader-DXQwFL4h.cjs} +1 -1
- package/dist/{vue-ui-molecule-BB1J8Dbo.cjs → vue-ui-molecule-CytuHtHf.cjs} +1 -1
- package/dist/{vue-ui-molecule-BLbSDPvP.js → vue-ui-molecule-Hpk9kuI6.js} +10 -10
- package/dist/{vue-ui-mood-radar-2i9AMp4M.cjs → vue-ui-mood-radar-DxID-zjc.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DALxGShD.js → vue-ui-mood-radar-N37metQ4.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BNE1i3hX.cjs → vue-ui-nested-donuts-BRjDOd7g.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CrwpbYj1.js → vue-ui-nested-donuts-CHCGjXVS.js} +11 -11
- package/dist/{vue-ui-onion-Dg11ctuw.cjs → vue-ui-onion-CKKTTslN.cjs} +1 -1
- package/dist/{vue-ui-onion-CCAFH42D.js → vue-ui-onion-CoGjkMfb.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BEVOsDtM.cjs → vue-ui-parallel-coordinate-plot-Bsj1hG9n.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-v8Ynm3w5.js → vue-ui-parallel-coordinate-plot-CZ1tXiBt.js} +12 -12
- package/dist/{vue-ui-quadrant-HwNbrGMQ.js → vue-ui-quadrant-B4hgp2L3.js} +12 -12
- package/dist/{vue-ui-quadrant--F_ZyLFk.cjs → vue-ui-quadrant-KdLhXJ3m.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DQdiHpqZ.cjs → vue-ui-quick-chart-D3nP3bLw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CVfXiwBs.js → vue-ui-quick-chart-N_eJnDW6.js} +9 -9
- package/dist/{vue-ui-radar-DpBICEaV.js → vue-ui-radar-ZXIMhCkZ.js} +12 -12
- package/dist/{vue-ui-radar-BAp4IGrw.cjs → vue-ui-radar-twbtmUQD.cjs} +1 -1
- package/dist/{vue-ui-rating-D72lzAno.cjs → vue-ui-rating-C6jmzGUv.cjs} +1 -1
- package/dist/{vue-ui-rating-Bjmj2p6V.js → vue-ui-rating-C7umC2uJ.js} +2 -2
- package/dist/{vue-ui-relation-circle-C9hr45P6.cjs → vue-ui-relation-circle-CfLFpg-g.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CWpiwvyP.js → vue-ui-relation-circle-D7ZGLDM8.js} +7 -7
- package/dist/{vue-ui-rings-Cp0F0mSk.js → vue-ui-rings-JoztQMIx.js} +12 -12
- package/dist/{vue-ui-rings-BhZWnXiZ.cjs → vue-ui-rings-jG4HLDJP.cjs} +1 -1
- package/dist/{vue-ui-scatter-BWk3QtZv.cjs → vue-ui-scatter-CqN7H-oc.cjs} +1 -1
- package/dist/{vue-ui-scatter-BJrYQZAa.js → vue-ui-scatter-DdqfEkrJ.js} +12 -12
- package/dist/{vue-ui-screenshot-sXfihBWk.cjs → vue-ui-screenshot-66ruM9o7.cjs} +1 -1
- package/dist/{vue-ui-screenshot-R5QLfXl9.js → vue-ui-screenshot-_es5a1Ip.js} +1 -1
- package/dist/{vue-ui-skeleton-Txytd5FS.js → vue-ui-skeleton-B_hsPdj7.js} +3 -3
- package/dist/{vue-ui-skeleton-raZOriRn.cjs → vue-ui-skeleton-HPhNvL89.cjs} +1 -1
- package/dist/{vue-ui-smiley-BWIjNtsk.cjs → vue-ui-smiley-9la7pNZe.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dcyf6FLr.js → vue-ui-smiley-lGPkS7Pk.js} +2 -2
- package/dist/{vue-ui-spark-trend-1CYZEhc-.js → vue-ui-spark-trend-9AUVAX8V.js} +5 -5
- package/dist/{vue-ui-spark-trend-DO9LbfKP.cjs → vue-ui-spark-trend-Dgf1z038.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-_ImT_rmQ.js → vue-ui-sparkbar-C3HFtQ64.js} +4 -4
- package/dist/{vue-ui-sparkbar-BydU6AYL.cjs → vue-ui-sparkbar-edNM1lrk.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CP1tnMln.cjs → vue-ui-sparkgauge-B3zteFe-.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DwVjglhg.js → vue-ui-sparkgauge-_vAX9ilP.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DUi7rP7a.cjs → vue-ui-sparkhistogram-CrYI72qk.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BsaYQmh9.js → vue-ui-sparkhistogram-fvO1g3HF.js} +5 -5
- package/dist/{vue-ui-sparkline-CMURk8mO.cjs → vue-ui-sparkline-Clmiz5UH.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DmePoZxQ.js → vue-ui-sparkline-pYxMgfR1.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DIsWXCPJ.cjs → vue-ui-sparkstackbar-CPCVqziv.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B83LJYrz.js → vue-ui-sparkstackbar-Dk8T_zu4.js} +5 -5
- package/dist/{vue-ui-stackbar-D7ayfpLF.js → vue-ui-stackbar-DfL5KJhM.js} +13 -13
- package/dist/{vue-ui-stackbar-CUmbJBQz.cjs → vue-ui-stackbar-Pot5g_fX.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D4VJAtJv.cjs → vue-ui-strip-plot-B1xJcSIQ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Co4JPPsu.js → vue-ui-strip-plot-yRx1AVSK.js} +11 -11
- package/dist/{vue-ui-table-vBPVOVdW.cjs → vue-ui-table-D4-uugt1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B8V6IJRD.cjs → vue-ui-table-heatmap-C49jQMKn.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CcVjIvRn.js → vue-ui-table-heatmap-DAlMrdv8.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DqNoUFXf.cjs → vue-ui-table-sparkline-B8zhGjPZ.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-A52CEigV.js → vue-ui-table-sparkline-DchPkw-Y.js} +5 -5
- package/dist/{vue-ui-table-CqBuNHeX.js → vue-ui-table-u-DH9XHp.js} +1 -1
- package/dist/{vue-ui-thermometer-s-VfsY-H.cjs → vue-ui-thermometer-D7NbjsPR.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CZwzbH4U.js → vue-ui-thermometer-DlQvn5wd.js} +7 -7
- package/dist/{vue-ui-timer-xBfXaHH4.cjs → vue-ui-timer-BRKYn8pW.cjs} +1 -1
- package/dist/{vue-ui-timer-CtLLA8zf.js → vue-ui-timer-D-SOK3Pe.js} +5 -5
- package/dist/{vue-ui-tiremarks-gIdzqyuY.cjs → vue-ui-tiremarks-BJFHrHRq.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DAf44W2K.js → vue-ui-tiremarks-CpxW1Gkn.js} +7 -7
- package/dist/{vue-ui-treemap-ux_WLWjB.cjs → vue-ui-treemap-6Eapt8sp.cjs} +1 -1
- package/dist/{vue-ui-treemap-aeR4rGYE.js → vue-ui-treemap-BDEHEI-i.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D4XQjiLY.cjs → vue-ui-vertical-bar-CDQDRIPf.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BVxrBq8G.js → vue-ui-vertical-bar-CQ8w4eMb.js} +12 -12
- package/dist/{vue-ui-waffle-lSlfXn1P.cjs → vue-ui-waffle-DLrrEJd7.cjs} +1 -1
- package/dist/{vue-ui-waffle-o1EM500w.js → vue-ui-waffle-wJu-mO9q.js} +12 -12
- package/dist/{vue-ui-wheel-lEiHpMDb.cjs → vue-ui-wheel-BC0uDg6d.cjs} +1 -1
- package/dist/{vue-ui-wheel-CU_OW9-2.js → vue-ui-wheel-COmmZvTx.js} +7 -7
- package/dist/{vue-ui-word-cloud-BhbV09xg.cjs → vue-ui-word-cloud-96YYNdwX.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DKlJ3x7X.js → vue-ui-word-cloud-CUMT9ZEB.js} +10 -10
- package/dist/{vue-ui-xy-CsFUNXKI.js → vue-ui-xy-6mSAgv8G.js} +16 -16
- package/dist/{vue-ui-xy-DdSlwQAQ.cjs → vue-ui-xy-BQKH0C34.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-Dow767yO.cjs → vue-ui-xy-canvas-4_7tSROk.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DxpbUfTQ.js → vue-ui-xy-canvas-CZgVdBJ8.js} +12 -12
- package/package.json +1 -1
- package/dist/index-0ZojJ1mH.cjs +0 -9
|
@@ -1 +1 @@
|
|
|
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
|
+
"use strict";const e=require("vue"),ge=require("./BaseIcon-D6N5NtS_.cjs"),K=require("./useResponsive-N8jl0-aC.cjs"),h=require("./index-rvnEQA3z.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-BHQyCZVK.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-CO_r2Hl_.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-rvnEQA3z.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-DE2bSxF0.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) {
|
|
@@ -380,7 +380,8 @@ function cr() {
|
|
|
380
380
|
// idem
|
|
381
381
|
groupColor: null,
|
|
382
382
|
// force yAxis labels color
|
|
383
|
-
scaleLabelOffsetX: 0
|
|
383
|
+
scaleLabelOffsetX: 0,
|
|
384
|
+
scaleValueOffsetX: 0
|
|
384
385
|
},
|
|
385
386
|
xAxisLabels: {
|
|
386
387
|
color: o,
|
|
@@ -6498,7 +6499,7 @@ function Le(o, l) {
|
|
|
6498
6499
|
const r = O(o);
|
|
6499
6500
|
return bt(r, l);
|
|
6500
6501
|
}
|
|
6501
|
-
const ve = C(() => import("./Arrow-
|
|
6502
|
+
const ve = C(() => import("./Arrow-BRX5QREB.js")), Se = C(() => import("./vue-data-ui-B7ugrnFy.js")), _e = C(() => import("./vue-ui-3d-bar-DMUqZWxd.js")), ze = C(() => import("./vue-ui-accordion-CAYrK0AD.js")), Re = C(() => import("./vue-ui-age-pyramid-DNzvCd0F.js")), Oe = C(() => import("./vue-ui-annotator-BAdmhVtS.js")), Pe = C(() => import("./vue-ui-candlestick-ChL6Hz8x.js")), Te = C(() => import("./vue-ui-chestnut-CsvNioev.js")), Ne = C(() => import("./vue-ui-cursor-BBBQuZ4O.js")), Me = C(() => import("./vue-ui-dashboard-DQwLolfb.js")), Ve = C(() => import("./vue-ui-digits-Cz26Uc8Y.js")), Ie = C(() => import("./vue-ui-donut-DnWEzuwO.js")), We = C(() => import("./vue-ui-donut-evolution-CQNZ5_sE.js")), Ue = C(() => import("./vue-ui-dumbbell-DlzCrhkR.js")), Ge = C(() => import("./vue-ui-flow-q4-5ZIPV.js")), He = C(() => import("./vue-ui-galaxy-e4vLdstV.js")), Ye = C(() => import("./vue-ui-gauge-KSkSXPcl.js")), $e = C(() => import("./vue-ui-heatmap-BylnOSx4.js")), Xe = C(() => import("./BaseIcon-C4DFWCPQ.js")), Ke = C(() => import("./vue-ui-kpi-B5JI7-k3.js")), je = C(() => import("./vue-ui-mini-loader-CRgvvMRU.js")), qe = C(() => import("./vue-ui-molecule-Hpk9kuI6.js")), Qe = C(() => import("./vue-ui-mood-radar-N37metQ4.js")), Ze = C(() => import("./vue-ui-nested-donuts-CHCGjXVS.js")), Je = C(() => import("./vue-ui-onion-CoGjkMfb.js")), ol = C(() => import("./vue-ui-parallel-coordinate-plot-CZ1tXiBt.js")), rl = C(() => import("./vue-ui-quadrant-B4hgp2L3.js")), tl = C(() => import("./vue-ui-quick-chart-N_eJnDW6.js")), el = C(() => import("./vue-ui-radar-ZXIMhCkZ.js")), ll = C(() => import("./vue-ui-rating-C7umC2uJ.js")), al = C(() => import("./vue-ui-relation-circle-D7ZGLDM8.js")), cl = C(() => import("./vue-ui-rings-JoztQMIx.js")), nl = C(() => import("./vue-ui-scatter-DdqfEkrJ.js")), sl = C(() => import("./vue-ui-screenshot-_es5a1Ip.js")), il = C(() => import("./vue-ui-skeleton-B_hsPdj7.js")), ul = C(() => import("./vue-ui-smiley-lGPkS7Pk.js")), dl = C(() => import("./vue-ui-sparkhistogram-fvO1g3HF.js")), bl = C(() => import("./vue-ui-sparkstackbar-Dk8T_zu4.js")), fl = C(() => import("./vue-ui-spark-trend-9AUVAX8V.js")), gl = C(() => import("./vue-ui-sparkbar-C3HFtQ64.js")), Al = C(() => import("./vue-ui-sparkgauge-_vAX9ilP.js")), Cl = C(() => import("./vue-ui-sparkline-pYxMgfR1.js")), hl = C(() => import("./vue-ui-strip-plot-yRx1AVSK.js")), Fl = C(() => import("./vue-ui-table-u-DH9XHp.js")), kl = C(() => import("./vue-ui-table-heatmap-DAlMrdv8.js")), El = C(() => import("./vue-ui-table-sparkline-DchPkw-Y.js")), pl = C(() => import("./vue-ui-thermometer-DlQvn5wd.js")), Dl = C(() => import("./vue-ui-timer-D-SOK3Pe.js")), Bl = C(() => import("./vue-ui-tiremarks-CpxW1Gkn.js")), yl = C(() => import("./vue-ui-treemap-BDEHEI-i.js")), ml = C(() => import("./vue-ui-vertical-bar-CQ8w4eMb.js")), xl = C(() => import("./vue-ui-waffle-wJu-mO9q.js")), wl = C(() => import("./vue-ui-wheel-COmmZvTx.js")), Ll = C(() => import("./vue-ui-word-cloud-CUMT9ZEB.js")), vl = C(() => import("./vue-ui-xy-6mSAgv8G.js")), Sl = C(() => import("./vue-ui-xy-canvas-CZgVdBJ8.js")), _l = C(() => import("./vue-ui-carousel-table-CoYO6jw3.js")), zl = C(() => import("./vue-ui-gizmo-DPz1e1Pn.js")), Rl = C(() => import("./vue-ui-stackbar-DfL5KJhM.js")), Ol = C(() => import("./vue-ui-bullet-DMYIXQFC.js")), Pl = C(() => import("./vue-ui-funnel-sa_ic8K7.js")), Tl = C(() => import("./vue-ui-history-plot-B-8xlbH5.js")), Nl = C(() => import("./vue-ui-pattern-DsYgSZWn.js")), Ml = C(() => import("./vue-ui-circle-pack-C6xn7Wea.js"));
|
|
6502
6503
|
export {
|
|
6503
6504
|
se as $,
|
|
6504
6505
|
nt as A,
|