vue-data-ui 2.4.41 → 2.4.43
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/README.md +34 -34
- package/dist/{Arrow-6z0ZQva_.js → Arrow-BB6bdwAh.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DGDnIooM.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-Cg6tqk_d.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-Cj2lO-KJ.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DnaY4y8p.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-YQ5lDRtX.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-3DteuHjj.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-BPogA3ac.cjs} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-CQ9hp4g5.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CS8EAteX.js} +1 -1
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-B1DxKWdn.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-D22t_fD9.js} +3 -3
- package/dist/{Shape-C3ywBhkW.js → Shape-7VxscoGH.js} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BIoU-M2b.cjs} +1 -1
- package/dist/Slicer-BcXvtaNe.js +423 -0
- package/dist/Slicer-C_1pd_Kh.cjs +1 -0
- package/dist/{Title-BB0O0yol.js → Title-DQcop8gI.js} +1 -1
- package/dist/{Title-D9gPXVTT.cjs → Title-DoxrpVfD.cjs} +1 -1
- package/dist/{Tooltip-GvLaModr.js → Tooltip-Dx07vASW.js} +33 -25
- package/dist/Tooltip-t5_yWU6c.cjs +1 -0
- package/dist/documentation/installation.md +34 -34
- package/dist/index-Ce0TFqvS.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-CvhiHStv.js} +48 -42
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-Ccre6tXM.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-Dv81zO0o.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-BVA2_kNp.js} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-Dq9TRqqU.cjs} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-CXGGUSE5.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-DBaa-Zm-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-B0eWYShT.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-Bvyn0JAH.js} +9 -9
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-2oBs8M8G.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-CzsbGsxC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-8dnWY_2V.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-gy4b8534.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-BOxVmY-t.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-D4AFe-ds.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-CYRzrrdq.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-DS61aLmi.cjs} +1 -1
- package/dist/vue-ui-candlestick-CnMW4VI7.cjs +2 -0
- package/dist/vue-ui-candlestick-z1XCCmjs.js +740 -0
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-Dusdq9C-.js} +4 -4
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-STfjKv04.cjs} +1 -1
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-CiOs7_Mn.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-xOUxz__4.js} +8 -8
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-BAZcn7gS.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-CgulNaZF.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-B-e6E048.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CM5h0sJK.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DE-VUfnq.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DFYtiFpE.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-B7WCvZ9X.js} +99 -98
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-Dh1MEQSX.cjs} +1 -1
- package/dist/vue-ui-donut-evolution-E8YRIlka.cjs +1 -0
- package/dist/vue-ui-donut-evolution-tseD-zkG.js +908 -0
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-CB-nTGSr.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-DoajPALb.cjs} +1 -1
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-DZo1e2BI.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-DgM7D7Kz.js} +46 -46
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-Bae7zmv7.js} +19 -19
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-FwQya4Js.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-BmQPNy0t.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-C1hMuu_6.js} +53 -52
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-4Gy_NFvq.cjs} +1 -1
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-CvUdCkBJ.js} +7 -7
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-B6t4exHM.js} +3 -3
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-F0ACp4Ym.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-CNptUmPc.js} +60 -59
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-DeLrr3m8.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-DnVFjg0P.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-iK6KKQTl.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BIb8GWpr.js} +3 -3
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BOLWEQ7j.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-dzvCTPe_.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-vn8l58Co.js} +2 -2
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-BXVfvrYp.js} +26 -25
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-CztdOxnV.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-COiSqYpY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-FyUqJ_WI.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-C3mVKHnx.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-CyzGIcRn.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-C3uZpdTX.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-PCbFeTBq.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-BbyG3T_L.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-_nN05_KZ.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CqcqhOTk.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-D48AnGwm.cjs} +1 -1
- package/dist/vue-ui-quick-chart-CUG-kf3L.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-CvhtEA16.js} +637 -622
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-CKq_4-3B.cjs} +1 -1
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-o4cmO82a.js} +38 -37
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-CuBodH3C.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-DG1svxO9.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-AXwyCjxM.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-C--j7Q0q.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-DpVKPZCb.js} +49 -48
- package/dist/vue-ui-rings-fAvuiSZU.cjs +2 -0
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-CHY2sxci.cjs} +1 -1
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-D_KsmIg_.js} +26 -25
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-Baj16IKL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C21qDF26.js} +1 -1
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-BdbO4Bxt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-p82n8dLi.js} +3 -3
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-DDBn_kg-.js} +2 -2
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-DGdo7pOJ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-CM-XDvvj.js} +5 -5
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-CyiYuOb3.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-BRWlzT5P.js} +4 -4
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-Bi952P46.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-BPcFMY0I.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-bhzDdT-A.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-BdiA32Fs.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-DAtbloqL.js} +5 -5
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-BXa0bOgm.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-CbnPVyxs.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BDupdTEm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-BdjWWadM.js} +5 -5
- package/dist/vue-ui-stackbar-CUXctt_2.js +1026 -0
- package/dist/vue-ui-stackbar-DvIG4zyP.cjs +6 -0
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-C5r83jmv.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-lb-y68Hd.js} +71 -70
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-DFfsqpZU.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-DgCMMvSx.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-BiSTfmrM.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-jp5xDCCO.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-8itAuNdX.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-B7sNio6G.js} +5 -5
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-CsY6PZxF.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-Cvoq-NoB.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BBYru0Q7.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-CKkmEEyh.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CJyRAXGr.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-CVDQcr2f.js} +7 -7
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-BKA7MrUz.cjs} +1 -1
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-BLDOoQdk.js} +98 -97
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-BNZ-jiBi.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-DgluCuy7.js} +58 -57
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-COGvHmU8.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DOZ8DM_y.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-BiHGxIWR.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-DrhwR-Z-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-CEfsjt8Y.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-ClzpBDxZ.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-BU03SArU.js} +888 -837
- package/dist/vue-ui-xy-CO99Ia72.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-D6xrOdYB.js} +378 -365
- package/dist/vue-ui-xy-canvas-lOb9PCZm.cjs +9 -0
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-stackbar-BZbOagnf.js +0 -947
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as O, ref as c, watch as q, withDirectives as A, openBlock as p, createElementBlock as f, createElementVNode as C, normalizeStyle as b, createVNode as P, Fragment as R, renderList as H, createCommentVNode as V, unref as j, onMounted as oe, nextTick as ne, onBeforeUnmount as le, normalizeClass as T, vModelText as re, withModifiers as Q } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import D from "./BaseIcon-
|
|
4
|
-
import { v as ce } from "./usePrinter-
|
|
2
|
+
import { G as ae, l as se, X as ue } from "./index-CvhiHStv.js";
|
|
3
|
+
import D from "./BaseIcon-Cg6tqk_d.js";
|
|
4
|
+
import { v as ce } from "./usePrinter-BVA2_kNp.js";
|
|
5
5
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ie = { style: { height: "100%", width: "100%", position: "relative" } }, de = { class: "icon" }, ve = ["onClick"], pe = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -46%)" } }, fe = ["value"], he = {
|
|
7
7
|
__name: "ColorPicker",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as u, openBlock as l, createElementBlock as i, createCommentVNode as a } from "vue";
|
|
2
|
-
import { V as p, O as f } from "./index-
|
|
2
|
+
import { V as p, O as f } from "./index-CvhiHStv.js";
|
|
3
3
|
const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], c = ["d", "fill", "stroke", "stroke-width"], g = ["points", "fill", "stroke", "stroke-width"], $ = {
|
|
4
4
|
__name: "Shape",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./index-Ce0TFqvS.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],m=["d","fill","stroke","stroke-width"],v=["points","fill","stroke","stroke-width"],p={__name:"Shape",props:{color:String,isSelected:{type:Boolean,default:!1},limit:{type:Number,default:3},plot:Object,radius:Number,shape:String,stroke:String,strokeWidth:Number,zoom:{type:Number,default:1.3}},emits:["mouseover","mouseout","click"],setup(n,{emit:r}){const t=n;function d(u){return{circle:{points:1,rotation:0},line:{points:2,rotation:0},triangle:{points:3,rotation:.52},square:{points:4,rotation:.783},diamond:{points:4,rotation:0},pentagon:{points:5,rotation:.95},hexagon:{points:6,rotation:0}}[u]}const s=e.computed(()=>d(t.shape)),i=e.computed(()=>t.shape!=="star"?null:a.createStar({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1)})),k=e.computed(()=>a.createPolygonPath({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1),sides:s.value.points,rotation:s.value.rotation}).path);return(u,o)=>(e.openBlock(),e.createElementBlock("g",null,[s.value&&s.value.points===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.plot.x,cy:n.plot.y,r:t.radius*(t.isSelected?t.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[0]||(o[0]=l=>r("mouseover")),onMouseout:o[1]||(o[1]=l=>r("mouseout")),onClick:o[2]||(o[2]=l=>r("click"))},null,40,c)):e.createCommentVNode("",!0),s.value&&s.value.points>=n.limit?(e.openBlock(),e.createElementBlock("path",{key:1,d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[3]||(o[3]=l=>r("mouseover")),onMouseout:o[4]||(o[4]=l=>r("mouseout")),onClick:o[5]||(o[5]=l=>r("click"))},null,40,m)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:i.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[6]||(o[6]=l=>r("mouseover")),onMouseout:o[7]||(o[7]=l=>r("mouseout")),onClick:o[8]||(o[8]=l=>r("click"))},null,40,v)):e.createCommentVNode("",!0)]))}};exports._sfc_main=p;
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { useCssVars as ie, ref as f, computed as d, watch as L, onMounted as oe, onBeforeUnmount as ue, openBlock as m, createElementBlock as v, createElementVNode as n, normalizeStyle as S, createVNode as re, renderSlot as se, createCommentVNode as N, unref as de, Fragment as F, renderList as R, withDirectives as V, vModelText as A, toDisplayString as B, pushScopeId as me, popScopeId as ve } from "vue";
|
|
2
|
+
import ce from "./BaseIcon-Cg6tqk_d.js";
|
|
3
|
+
import { t as he, u as fe } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { c as pe, R as O, Q as D, X as xe } from "./index-CvhiHStv.js";
|
|
5
|
+
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const U = (l) => (me("data-v-cf67df9a"), l = l(), ve(), l), ge = {
|
|
7
|
+
"data-html2canvas-ignore": "",
|
|
8
|
+
style: { padding: "0 24px" },
|
|
9
|
+
class: "vue-data-ui-zoom"
|
|
10
|
+
}, be = {
|
|
11
|
+
class: "vue-data-ui-slicer-labels",
|
|
12
|
+
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
13
|
+
}, Se = {
|
|
14
|
+
key: 0,
|
|
15
|
+
style: { width: "100%", position: "relative" }
|
|
16
|
+
}, ke = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "minimap",
|
|
19
|
+
style: { width: "100%" }
|
|
20
|
+
}, Ne = ["xmlns", "viewBox"], Ce = ["id"], we = ["stop-color"], $e = /* @__PURE__ */ U(() => /* @__PURE__ */ n("stop", {
|
|
21
|
+
offset: "100%",
|
|
22
|
+
"stop-color": "transparent"
|
|
23
|
+
}, null, -1)), Me = ["d", "stroke"], Ee = ["x", "width", "height", "fill", "rx"], Pe = ["d", "fill"], Le = ["x", "width", "height", "rx", "fill"], Ie = ["x", "width", "height", "fill", "rx"], ze = ["d", "fill"], Fe = ["d", "stroke"], Re = ["cx", "cy", "stroke", "fill"], Ve = ["cx", "cy", "stroke", "fill"], Ae = ["x1", "x2", "y2", "stroke"], Be = ["x", "height", "width", "onMouseenter"], Oe = /* @__PURE__ */ U(() => /* @__PURE__ */ n("div", { class: "slider-track" }, null, -1)), De = ["min", "max"], Ue = ["min", "max"], Te = {
|
|
24
|
+
__name: "Slicer",
|
|
25
|
+
props: {
|
|
26
|
+
background: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "#FFFFFF"
|
|
29
|
+
},
|
|
30
|
+
borderColor: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "#FFFFFF"
|
|
33
|
+
},
|
|
34
|
+
fontSize: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 14
|
|
37
|
+
},
|
|
38
|
+
labelLeft: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ""
|
|
41
|
+
},
|
|
42
|
+
labelRight: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: ""
|
|
45
|
+
},
|
|
46
|
+
textColor: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "#1A1A1A"
|
|
49
|
+
},
|
|
50
|
+
inputColor: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "#1A1A1A"
|
|
53
|
+
},
|
|
54
|
+
max: {
|
|
55
|
+
type: Number,
|
|
56
|
+
default: 0
|
|
57
|
+
},
|
|
58
|
+
min: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0
|
|
61
|
+
},
|
|
62
|
+
selectColor: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "#4A4A4A"
|
|
65
|
+
},
|
|
66
|
+
useResetSlot: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
valueStart: {
|
|
71
|
+
type: [Number, String],
|
|
72
|
+
default: 0
|
|
73
|
+
},
|
|
74
|
+
valueEnd: {
|
|
75
|
+
type: [Number, String],
|
|
76
|
+
default: 0
|
|
77
|
+
},
|
|
78
|
+
minimap: {
|
|
79
|
+
type: Array,
|
|
80
|
+
default: []
|
|
81
|
+
},
|
|
82
|
+
smoothMinimap: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !1
|
|
85
|
+
},
|
|
86
|
+
minimapSelectedColor: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "#1f77b4"
|
|
89
|
+
},
|
|
90
|
+
minimapSelectionRadius: {
|
|
91
|
+
type: Number,
|
|
92
|
+
default: 12
|
|
93
|
+
},
|
|
94
|
+
minimapLineColor: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "#2D353C"
|
|
97
|
+
},
|
|
98
|
+
minimapSelectedColorOpacity: {
|
|
99
|
+
type: Number,
|
|
100
|
+
default: 0.2
|
|
101
|
+
},
|
|
102
|
+
minimapSelectedIndex: {
|
|
103
|
+
type: Number,
|
|
104
|
+
default: null
|
|
105
|
+
},
|
|
106
|
+
minimapIndicatorColor: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: "#2D353C"
|
|
109
|
+
},
|
|
110
|
+
refreshStartPoint: {
|
|
111
|
+
type: Number,
|
|
112
|
+
default: 0
|
|
113
|
+
},
|
|
114
|
+
refreshEndPoint: {
|
|
115
|
+
type: Number,
|
|
116
|
+
default: null
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
120
|
+
setup(l, { expose: T, emit: x }) {
|
|
121
|
+
const e = l;
|
|
122
|
+
ie((t) => ({
|
|
123
|
+
"3d3a2c02": _.value,
|
|
124
|
+
79587273: g.value,
|
|
125
|
+
"72fa1da4": Z.value,
|
|
126
|
+
"598db3a3": l.selectColor,
|
|
127
|
+
b4acd69e: j.value
|
|
128
|
+
}));
|
|
129
|
+
const o = f(e.min), u = f(e.max), y = d(() => !!e.minimap.length), C = f(pe()), W = d(() => e.refreshEndPoint === null ? e.max : e.refreshEndPoint), X = d(() => {
|
|
130
|
+
const t = e.max - e.min, i = (o.value - e.min) / t * 100, r = (u.value - e.min) / t * 100;
|
|
131
|
+
return {
|
|
132
|
+
left: `${i}%`,
|
|
133
|
+
width: `${r - i}%`,
|
|
134
|
+
background: e.selectColor
|
|
135
|
+
};
|
|
136
|
+
}), _ = d(() => e.inputColor), j = d(() => e.background), Z = d(() => `${e.selectColor}33`), g = d(() => e.borderColor), I = d(() => {
|
|
137
|
+
let t = [];
|
|
138
|
+
for (let i = 0; i < e.minimap.length; i += 1)
|
|
139
|
+
t.push(i);
|
|
140
|
+
return t;
|
|
141
|
+
});
|
|
142
|
+
function z() {
|
|
143
|
+
x("reset");
|
|
144
|
+
}
|
|
145
|
+
function q() {
|
|
146
|
+
Number(o.value) > Number(u.value) - 1 && (o.value = Number(u.value) - 1), x("update:start", Number(o.value));
|
|
147
|
+
}
|
|
148
|
+
function G() {
|
|
149
|
+
Number(u.value) < Number(o.value) + 1 && (u.value = Number(o.value) + 1), x("update:end", Number(u.value));
|
|
150
|
+
}
|
|
151
|
+
L(
|
|
152
|
+
() => e.min,
|
|
153
|
+
(t) => {
|
|
154
|
+
Number(o.value) < Number(t) && (o.value = Number(t)), Number(u.value) < Number(t) && (u.value = Number(t));
|
|
155
|
+
}
|
|
156
|
+
), L(
|
|
157
|
+
() => e.max,
|
|
158
|
+
(t) => {
|
|
159
|
+
Number(o.value) > Number(t) && (o.value = Number(t)), Number(u.value) > Number(t) && (u.value = Number(t));
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
const w = f(null), a = f({
|
|
163
|
+
width: 1,
|
|
164
|
+
height: 1
|
|
165
|
+
}), k = f(null);
|
|
166
|
+
oe(() => {
|
|
167
|
+
if (y.value) {
|
|
168
|
+
const t = he(() => {
|
|
169
|
+
const { width: i, height: r } = fe({
|
|
170
|
+
chart: w.value
|
|
171
|
+
});
|
|
172
|
+
a.value.width = i, a.value.height = r - 47;
|
|
173
|
+
});
|
|
174
|
+
k.value = new ResizeObserver(t), k.value.observe(w.value);
|
|
175
|
+
}
|
|
176
|
+
}), ue(() => {
|
|
177
|
+
k.value && k.value.disconnect();
|
|
178
|
+
});
|
|
179
|
+
const s = d(() => e.minimap.length ? a.value.width / e.minimap.length : 0), c = d(() => {
|
|
180
|
+
if (!e.minimap.length) return [];
|
|
181
|
+
const t = Math.max(...e.minimap), i = Math.min(...e.minimap) - 10, r = t - (i > 0 ? 0 : i), h = e.minimap.map((le, ae) => {
|
|
182
|
+
const ne = le - i;
|
|
183
|
+
return {
|
|
184
|
+
x: a.value.width / e.minimap.length * ae + s.value / 2,
|
|
185
|
+
y: a.value.height - ne / r * (a.value.height * 0.9)
|
|
186
|
+
};
|
|
187
|
+
}), E = e.smoothMinimap ? O(h) : D(h), P = [...h].slice(e.valueStart, e.valueEnd), te = e.smoothMinimap ? O(P) : D(P);
|
|
188
|
+
return {
|
|
189
|
+
fullSet: E,
|
|
190
|
+
selectionSet: te,
|
|
191
|
+
sliced: P,
|
|
192
|
+
firstPlot: h[e.valueStart],
|
|
193
|
+
lastPlot: h[e.valueEnd - 1]
|
|
194
|
+
};
|
|
195
|
+
}), p = d(() => ({
|
|
196
|
+
x: s.value * o.value + s.value / 2,
|
|
197
|
+
width: a.value.width * ((u.value - o.value) / e.max) - s.value
|
|
198
|
+
})), Q = d(() => ({
|
|
199
|
+
left: 0,
|
|
200
|
+
color: e.textColor,
|
|
201
|
+
fontSize: `${e.fontSize}px`,
|
|
202
|
+
top: y.value ? "28px" : "-28px",
|
|
203
|
+
pointerEvents: "none"
|
|
204
|
+
})), H = d(() => ({
|
|
205
|
+
right: 0,
|
|
206
|
+
color: e.textColor,
|
|
207
|
+
fontSize: `${e.fontSize}px`,
|
|
208
|
+
top: y.value ? "28px" : "-28px",
|
|
209
|
+
direction: "rtl",
|
|
210
|
+
pointerEvents: "none"
|
|
211
|
+
})), b = f(e.minimapSelectedIndex);
|
|
212
|
+
L(() => e.minimapSelectedIndex, (t) => {
|
|
213
|
+
b.value = t + e.valueStart;
|
|
214
|
+
}, { immediate: !0 });
|
|
215
|
+
function J(t) {
|
|
216
|
+
b.value = t, t >= e.valueStart && t < e.valueEnd && x("trapMouse", t - e.valueStart);
|
|
217
|
+
}
|
|
218
|
+
const K = f(0), $ = f(null), M = f(null);
|
|
219
|
+
function Y(t) {
|
|
220
|
+
o.value = t, $.value && ($.value.value = t), x("update:start", Number(o.value));
|
|
221
|
+
}
|
|
222
|
+
function ee(t) {
|
|
223
|
+
u.value = t, M.value && (M.value.value = t), x("update:end", Number(u.value));
|
|
224
|
+
}
|
|
225
|
+
return T({
|
|
226
|
+
setStartValue: Y,
|
|
227
|
+
setEndValue: ee
|
|
228
|
+
}), (t, i) => (m(), v("div", ge, [
|
|
229
|
+
n("div", be, [
|
|
230
|
+
l.valueStart !== l.refreshStartPoint || l.valueEnd !== W.value ? (m(), v("div", Se, [
|
|
231
|
+
l.useResetSlot ? se(t.$slots, "reset-action", {
|
|
232
|
+
key: 1,
|
|
233
|
+
reset: z
|
|
234
|
+
}, void 0, !0) : (m(), v("button", {
|
|
235
|
+
key: 0,
|
|
236
|
+
"data-cy-reset": "",
|
|
237
|
+
tabindex: "0",
|
|
238
|
+
role: "button",
|
|
239
|
+
class: "vue-data-ui-refresh-button",
|
|
240
|
+
style: S({
|
|
241
|
+
top: y.value ? "36px" : "-16px",
|
|
242
|
+
pointerEvents: "all !important"
|
|
243
|
+
}),
|
|
244
|
+
onClick: z
|
|
245
|
+
}, [
|
|
246
|
+
re(ce, {
|
|
247
|
+
name: "refresh",
|
|
248
|
+
stroke: l.textColor
|
|
249
|
+
}, null, 8, ["stroke"])
|
|
250
|
+
], 4))
|
|
251
|
+
])) : N("", !0)
|
|
252
|
+
]),
|
|
253
|
+
n("div", {
|
|
254
|
+
class: "double-range-slider",
|
|
255
|
+
ref_key: "minimapWrapper",
|
|
256
|
+
ref: w,
|
|
257
|
+
style: { "z-index": "0" }
|
|
258
|
+
}, [
|
|
259
|
+
y.value ? (m(), v("div", ke, [
|
|
260
|
+
(m(), v("svg", {
|
|
261
|
+
xmlns: de(xe),
|
|
262
|
+
viewBox: `0 0 ${a.value.width < 0 ? 0 : a.value.width} ${a.value.height < 0 ? 0 : a.value.height}`
|
|
263
|
+
}, [
|
|
264
|
+
n("defs", null, [
|
|
265
|
+
n("linearGradient", {
|
|
266
|
+
id: C.value,
|
|
267
|
+
x1: "0%",
|
|
268
|
+
y1: "0%",
|
|
269
|
+
x2: "0%",
|
|
270
|
+
y2: "100%"
|
|
271
|
+
}, [
|
|
272
|
+
n("stop", {
|
|
273
|
+
offset: "0%",
|
|
274
|
+
"stop-color": `${l.minimapLineColor}50`
|
|
275
|
+
}, null, 8, we),
|
|
276
|
+
$e
|
|
277
|
+
], 8, Ce)
|
|
278
|
+
]),
|
|
279
|
+
n("path", {
|
|
280
|
+
d: `M${c.value.fullSet}`,
|
|
281
|
+
stroke: `${l.minimapLineColor}`,
|
|
282
|
+
fill: "none",
|
|
283
|
+
"stroke-width": "1",
|
|
284
|
+
"stroke-linecap": "round",
|
|
285
|
+
"stroke-linejoin": "round",
|
|
286
|
+
style: { opacity: "1" }
|
|
287
|
+
}, null, 8, Me),
|
|
288
|
+
n("rect", {
|
|
289
|
+
x: p.value.x,
|
|
290
|
+
width: p.value.width < 0 ? 0 : p.value.width,
|
|
291
|
+
height: Math.max(a.value.height, 0),
|
|
292
|
+
y: 0,
|
|
293
|
+
fill: g.value,
|
|
294
|
+
rx: l.minimapSelectionRadius,
|
|
295
|
+
stroke: "none"
|
|
296
|
+
}, null, 8, Ee),
|
|
297
|
+
n("path", {
|
|
298
|
+
d: `M${s.value / 2},${Math.max(a.value.height, 0)} ${c.value.fullSet} L${a.value.width - s.value / 2},${Math.max(a.value.height, 0)}Z`,
|
|
299
|
+
fill: `url(#${C.value})`,
|
|
300
|
+
stroke: "none",
|
|
301
|
+
style: { opacity: "1" }
|
|
302
|
+
}, null, 8, Pe),
|
|
303
|
+
n("rect", {
|
|
304
|
+
x: p.value.x,
|
|
305
|
+
width: p.value.width < 0 ? 0 : p.value.width,
|
|
306
|
+
height: Math.max(a.value.height, 0),
|
|
307
|
+
y: 0,
|
|
308
|
+
rx: l.minimapSelectionRadius,
|
|
309
|
+
fill: g.value
|
|
310
|
+
}, null, 8, Le),
|
|
311
|
+
n("rect", {
|
|
312
|
+
x: p.value.x,
|
|
313
|
+
width: p.value.width < 0 ? 0 : p.value.width,
|
|
314
|
+
height: Math.max(a.value.height, 0),
|
|
315
|
+
y: 0,
|
|
316
|
+
fill: l.minimapSelectedColor,
|
|
317
|
+
rx: l.minimapSelectionRadius,
|
|
318
|
+
style: S({
|
|
319
|
+
opacity: l.minimapSelectedColorOpacity
|
|
320
|
+
})
|
|
321
|
+
}, null, 12, Ie),
|
|
322
|
+
n("path", {
|
|
323
|
+
d: `M${c.value.sliced[0].x},${Math.max(a.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${Math.max(a.value.height, 0)}Z`,
|
|
324
|
+
fill: `url(#${C.value})`,
|
|
325
|
+
stroke: "none",
|
|
326
|
+
style: { opacity: "1" }
|
|
327
|
+
}, null, 8, ze),
|
|
328
|
+
n("path", {
|
|
329
|
+
d: `M ${c.value.selectionSet}`,
|
|
330
|
+
stroke: `${l.minimapLineColor}`,
|
|
331
|
+
fill: "transparent",
|
|
332
|
+
"stroke-width": "2",
|
|
333
|
+
"stroke-linecap": "round",
|
|
334
|
+
"stroke-linejoin": "round"
|
|
335
|
+
}, null, 8, Fe),
|
|
336
|
+
n("circle", {
|
|
337
|
+
cx: c.value.firstPlot.x,
|
|
338
|
+
cy: c.value.firstPlot.y,
|
|
339
|
+
"stroke-width": "0.5",
|
|
340
|
+
stroke: g.value,
|
|
341
|
+
r: "3",
|
|
342
|
+
fill: l.minimapLineColor
|
|
343
|
+
}, null, 8, Re),
|
|
344
|
+
n("circle", {
|
|
345
|
+
cx: c.value.lastPlot.x,
|
|
346
|
+
cy: c.value.lastPlot.y,
|
|
347
|
+
"stroke-width": "0.5",
|
|
348
|
+
stroke: g.value,
|
|
349
|
+
r: "3",
|
|
350
|
+
fill: l.minimapLineColor
|
|
351
|
+
}, null, 8, Ve),
|
|
352
|
+
b.value !== null ? (m(!0), v(F, { key: 0 }, R(I.value, (r, h) => (m(), v("g", null, [
|
|
353
|
+
b.value === r && r >= l.valueStart && r < l.valueEnd ? (m(), v("line", {
|
|
354
|
+
key: 0,
|
|
355
|
+
x1: s.value * h + s.value / 2,
|
|
356
|
+
x2: s.value * h + s.value / 2,
|
|
357
|
+
y1: 0,
|
|
358
|
+
y2: Math.max(a.value.height, 0),
|
|
359
|
+
stroke: l.minimapIndicatorColor,
|
|
360
|
+
"stroke-linecap": "round",
|
|
361
|
+
"stroke-dasharray": "2",
|
|
362
|
+
"stroke-width": "1"
|
|
363
|
+
}, null, 8, Ae)) : N("", !0)
|
|
364
|
+
]))), 256)) : N("", !0),
|
|
365
|
+
(m(!0), v(F, null, R(I.value, (r, h) => (m(), v("rect", {
|
|
366
|
+
x: s.value * h,
|
|
367
|
+
y: 0,
|
|
368
|
+
height: Math.max(a.value.height, 0),
|
|
369
|
+
width: s.value < 0 ? 0 : s.value,
|
|
370
|
+
fill: "transparent",
|
|
371
|
+
style: { "pointer-events": "all !important" },
|
|
372
|
+
onMouseenter: (E) => J(r),
|
|
373
|
+
onMouseleave: i[0] || (i[0] = (E) => {
|
|
374
|
+
b.value = null, x("trapMouse", null);
|
|
375
|
+
})
|
|
376
|
+
}, null, 40, Be))), 256))
|
|
377
|
+
], 8, Ne))
|
|
378
|
+
])) : N("", !0),
|
|
379
|
+
Oe,
|
|
380
|
+
n("div", {
|
|
381
|
+
class: "range-highlight",
|
|
382
|
+
style: S(X.value)
|
|
383
|
+
}, null, 4),
|
|
384
|
+
V((m(), v("input", {
|
|
385
|
+
ref_key: "rangeStart",
|
|
386
|
+
ref: $,
|
|
387
|
+
key: `range-min${K.value}`,
|
|
388
|
+
type: "range",
|
|
389
|
+
class: "range-left",
|
|
390
|
+
min: l.min,
|
|
391
|
+
max: l.max,
|
|
392
|
+
"onUpdate:modelValue": i[1] || (i[1] = (r) => o.value = r),
|
|
393
|
+
onInput: q
|
|
394
|
+
}, null, 40, De)), [
|
|
395
|
+
[A, o.value]
|
|
396
|
+
]),
|
|
397
|
+
n("div", {
|
|
398
|
+
class: "thumb-label thumb-label-left",
|
|
399
|
+
style: S(Q.value)
|
|
400
|
+
}, B(l.labelLeft), 5),
|
|
401
|
+
V(n("input", {
|
|
402
|
+
ref_key: "rangeEnd",
|
|
403
|
+
ref: M,
|
|
404
|
+
type: "range",
|
|
405
|
+
class: "range-right",
|
|
406
|
+
min: l.min,
|
|
407
|
+
max: l.max,
|
|
408
|
+
"onUpdate:modelValue": i[2] || (i[2] = (r) => u.value = r),
|
|
409
|
+
onInput: G
|
|
410
|
+
}, null, 40, Ue), [
|
|
411
|
+
[A, u.value]
|
|
412
|
+
]),
|
|
413
|
+
n("div", {
|
|
414
|
+
class: "thumb-label thumb-label-right",
|
|
415
|
+
style: S(H.value)
|
|
416
|
+
}, B(l.labelRight), 5)
|
|
417
|
+
], 512)
|
|
418
|
+
]));
|
|
419
|
+
}
|
|
420
|
+
}, qe = /* @__PURE__ */ ye(Te, [["__scopeId", "data-v-cf67df9a"]]);
|
|
421
|
+
export {
|
|
422
|
+
qe as S
|
|
423
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),Z=require("./BaseIcon-Cj2lO-KJ.cjs"),V=require("./useResponsive-BJ7DTGpm.cjs"),h=require("./index-Ce0TFqvS.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B=a=>(e.pushScopeId("data-v-cf67df9a"),a=a(),e.popScopeId(),a),H={"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom"},J={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},K={key:0,style:{width:"100%",position:"relative"}},Q={key:0,class:"minimap",style:{width:"100%"}},Y=["xmlns","viewBox"],ee=["id"],te=["stop-color"],le=B(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),ae=["d","stroke"],ne=["x","width","height","fill","rx"],oe=["d","fill"],ie=["x","width","height","rx","fill"],re=["x","width","height","fill","rx"],ue=["d","fill"],se=["d","stroke"],ce=["cx","cy","stroke","fill"],de=["cx","cy","stroke","fill"],me=["x1","x2","y2","stroke"],ve=["x","height","width","onMouseenter"],he=B(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),pe=["min","max"],fe=["min","max"],xe={__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}},emits:["update:start","update:end","reset","trapMouse"],setup(a,{expose:$,emit:v}){const t=a;e.useCssVars(l=>({"3d3a2c02":z.value,79587273:f.value,"72fa1da4":F.value,"598db3a3":a.selectColor,b4acd69e:L.value}));const i=e.ref(t.min),r=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(h.createUid()),M=e.computed(()=>t.refreshEndPoint===null?t.max:t.refreshEndPoint),P=e.computed(()=>{const l=t.max-t.min,o=(i.value-t.min)/l*100,u=(r.value-t.min)/l*100;return{left:`${o}%`,width:`${u-o}%`,background:t.selectColor}}),z=e.computed(()=>t.inputColor),L=e.computed(()=>t.background),F=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),C=e.computed(()=>{let l=[];for(let o=0;o<t.minimap.length;o+=1)l.push(o);return l});function w(){v("reset")}function I(){Number(i.value)>Number(r.value)-1&&(i.value=Number(r.value)-1),v("update:start",Number(i.value))}function R(){Number(r.value)<Number(i.value)+1&&(r.value=Number(i.value)+1),v("update:end",Number(r.value))}e.watch(()=>t.min,l=>{Number(i.value)<Number(l)&&(i.value=Number(l)),Number(r.value)<Number(l)&&(r.value=Number(l))}),e.watch(()=>t.max,l=>{Number(i.value)>Number(l)&&(i.value=Number(l)),Number(r.value)>Number(l)&&(r.value=Number(l))});const S=e.ref(null),n=e.ref({width:1,height:1}),y=e.ref(null);e.onMounted(()=>{if(p.value){const l=V.throttle(()=>{const{width:o,height:u}=V.useResponsive({chart:S.value});n.value.width=o,n.value.height=u-47});y.value=new ResizeObserver(l),y.value.observe(S.value)}}),e.onBeforeUnmount(()=>{y.value&&y.value.disconnect()});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,u=l-(o>0?0:o),d=t.minimap.map((W,j)=>{const X=W-o;return{x:n.value.width/t.minimap.length*j+s.value/2,y:n.value.height-X/u*(n.value.height*.9)}}),N=t.smoothMinimap?h.createSmoothPath(d):h.createStraightPath(d),E=[...d].slice(t.valueStart,t.valueEnd),_=t.smoothMinimap?h.createSmoothPath(E):h.createStraightPath(E);return{fullSet:N,selectionSet:_,sliced:E,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*i.value+s.value/2,width:n.value.width*((r.value-i.value)/t.max)-s.value})),A=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),q=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),x=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{x.value=l+t.valueStart},{immediate:!0});function D(l){x.value=l,l>=t.valueStart&&l<t.valueEnd&&v("trapMouse",l-t.valueStart)}const O=e.ref(0),b=e.ref(null),k=e.ref(null);function T(l){i.value=l,b.value&&(b.value.value=l),v("update:start",Number(i.value))}function U(l){r.value=l,k.value&&(k.value.value=l),v("update:end",Number(r.value))}return $({setStartValue:T,setEndValue:U}),(l,o)=>(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",J,[a.valueStart!==a.refreshStartPoint||a.valueEnd!==M.value?(e.openBlock(),e.createElementBlock("div",K,[a.useResetSlot?e.renderSlot(l.$slots,"reset-action",{key:1,reset:w},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:w},[e.createVNode(Z.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:S,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",Q,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(h.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,te),le],8,ee)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${a.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,ae),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(n.value.height,0),y:0,fill:f.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,ne),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(n.value.height,0)} ${c.value.fullSet} L${n.value.width-s.value/2},${Math.max(n.value.height,0)}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,oe),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(n.value.height,0),y:0,rx:a.minimapSelectionRadius,fill:f.value},null,8,ie),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(n.value.height,0),y:0,fill:a.minimapSelectedColor,rx:a.minimapSelectionRadius,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,re),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${Math.max(n.value.height,0)} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${Math.max(n.value.height,0)}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,ue),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,se),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ce),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,de),x.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(C.value,(u,d)=>(e.openBlock(),e.createElementBlock("g",null,[x.value===u&&u>=a.valueStart&&u<a.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(n.value.height,0),stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,me)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(u,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(n.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:N=>D(u),onMouseleave:o[0]||(o[0]=N=>{x.value=null,v("trapMouse",null)})},null,40,ve))),256))],8,Y))])):e.createCommentVNode("",!0),he,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(P.value)},null,4),e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:b,key:`range-min${O.value}`,type:"range",class:"range-left",min:a.min,max:a.max,"onUpdate:modelValue":o[1]||(o[1]=u=>i.value=u),onInput:I},null,40,pe)),[[e.vModelText,i.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(A.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{ref_key:"rangeEnd",ref:k,type:"range",class:"range-right",min:a.min,max:a.max,"onUpdate:modelValue":o[2]||(o[2]=u=>r.value=u),onInput:R},null,40,fe),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(q.value)},e.toDisplayString(a.labelRight),5)],512)]))}},ye=G._export_sfc(xe,[["__scopeId","data-v-cf67df9a"]]);exports.Slicer=ye;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as l, createElementBlock as n, Fragment as f, createElementVNode as p, normalizeStyle as d, unref as e, toDisplayString as g, createCommentVNode as o, renderSlot as r } from "vue";
|
|
2
|
-
import { u as c } from "./useNestedProp-
|
|
2
|
+
import { u as c } from "./useNestedProp-Ccre6tXM.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-Dv81zO0o.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",{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,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,26 +1,26 @@
|
|
|
1
|
-
import { ref as u, onMounted as
|
|
2
|
-
import { s as
|
|
3
|
-
function
|
|
1
|
+
import { ref as u, onMounted as b, onUnmounted as g, computed as p, openBlock as v, createBlock as x, Teleport as h, createElementBlock as S, normalizeClass as k, normalizeStyle as $, renderSlot as c, createElementVNode as C, createCommentVNode as B } from "vue";
|
|
2
|
+
import { s as F } from "./index-CvhiHStv.js";
|
|
3
|
+
function N({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: a = 24, blockShiftY: d = !1 }) {
|
|
4
4
|
const l = u(0), s = u(a);
|
|
5
5
|
if (e && o) {
|
|
6
|
-
const { width: n, height: m } = e.getBoundingClientRect(), { right: i, left: f, bottom:
|
|
7
|
-
r === "center" && (t.x + n / 2 > i ? l.value = -n + (i - t.x) : t.x - n / 2 < f ? l.value = -n + (n - (t.x - f)) : l.value = -n / 2), r === "right" && (t.x + n > i ? l.value = -n + (i - t.x) : l.value = 0), r === "left" && (t.x < f + n ? l.value = -n + (n - (t.x - f)) : l.value = -n), t.y + m >
|
|
6
|
+
const { width: n, height: m } = e.getBoundingClientRect(), { right: i, left: f, bottom: y } = o.getBoundingClientRect();
|
|
7
|
+
r === "center" && (t.x + n / 2 > i ? l.value = -n + (i - t.x) : t.x - n / 2 < f ? l.value = -n + (n - (t.x - f)) : l.value = -n / 2), r === "right" && (t.x + n > i ? l.value = -n + (i - t.x) : l.value = 0), r === "left" && (t.x < f + n ? l.value = -n + (n - (t.x - f)) : l.value = -n), t.y + m > y && !d && (s.value = -m - a);
|
|
8
8
|
}
|
|
9
9
|
return {
|
|
10
10
|
top: t.y + s.value,
|
|
11
11
|
left: t.x + l.value
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
14
|
+
function Y(e, o, t) {
|
|
15
|
+
b(() => e.addEventListener(o, t)), g(() => e.removeEventListener(o, t));
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function w() {
|
|
18
18
|
const e = u(0), o = u(0);
|
|
19
|
-
return
|
|
19
|
+
return Y(window, "mousemove", (t) => {
|
|
20
20
|
e.value = t.clientX, o.value = t.clientY;
|
|
21
21
|
}), { x: e, y: o };
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const z = ["innerHTML"], T = {
|
|
24
24
|
__name: "Tooltip",
|
|
25
25
|
props: {
|
|
26
26
|
backgroundColor: {
|
|
@@ -78,32 +78,40 @@ const w = ["innerHTML"], E = {
|
|
|
78
78
|
blockShiftY: {
|
|
79
79
|
type: Boolean,
|
|
80
80
|
default: !1
|
|
81
|
+
},
|
|
82
|
+
isFullscreen: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !1
|
|
81
85
|
}
|
|
82
86
|
},
|
|
83
87
|
setup(e) {
|
|
84
|
-
const o = e, t = u(null), r = u(
|
|
88
|
+
const o = e, t = u(null), r = u(w(o.parent)), a = p(() => N({
|
|
85
89
|
tooltip: t.value,
|
|
86
90
|
chart: o.parent,
|
|
87
91
|
clientPosition: r.value,
|
|
88
92
|
positionPreference: o.position,
|
|
89
93
|
defaultOffsetY: o.offsetY,
|
|
90
94
|
blockShiftY: o.blockShiftY
|
|
91
|
-
})), d = p(() =>
|
|
92
|
-
return (l, s) =>
|
|
93
|
-
|
|
94
|
-
ref_key: "tooltip",
|
|
95
|
-
ref: t,
|
|
96
|
-
class: h({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom }),
|
|
97
|
-
style: S(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom ? "" : `background:${d.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};`)
|
|
95
|
+
})), d = p(() => F(o.backgroundColor, o.backgroundOpacity));
|
|
96
|
+
return (l, s) => (v(), x(h, {
|
|
97
|
+
to: e.isFullscreen ? e.parent : "body"
|
|
98
98
|
}, [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
e.show ? (v(), S("div", {
|
|
100
|
+
key: 0,
|
|
101
|
+
ref_key: "tooltip",
|
|
102
|
+
ref: t,
|
|
103
|
+
class: k({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom }),
|
|
104
|
+
style: $(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom ? "" : `background:${d.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};`)
|
|
105
|
+
}, [
|
|
106
|
+
c(l.$slots, "tooltip-before"),
|
|
107
|
+
c(l.$slots, "default"),
|
|
108
|
+
C("div", { innerHTML: e.content }, null, 8, z),
|
|
109
|
+
c(l.$slots, "tooltip-after")
|
|
110
|
+
], 6)) : B("", !0)
|
|
111
|
+
], 8, ["to"]));
|
|
104
112
|
}
|
|
105
113
|
};
|
|
106
114
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
T as _,
|
|
116
|
+
w as u
|
|
109
117
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./index-Ce0TFqvS.cjs");function y({tooltip:e,chart:l,clientPosition:o,positionPreference:u="center",defaultOffsetY:a=24,blockShiftY:d=!1}){const n=t.ref(0),s=t.ref(a);if(e&&l){const{width:r,height:c}=e.getBoundingClientRect(),{right:i,left:f,bottom:v}=l.getBoundingClientRect();u==="center"&&(o.x+r/2>i?n.value=-r+(i-o.x):o.x-r/2<f?n.value=-r+(r-(o.x-f)):n.value=-r/2),u==="right"&&(o.x+r>i?n.value=-r+(i-o.x):n.value=0),u==="left"&&(o.x<f+r?n.value=-r+(r-(o.x-f)):n.value=-r),o.y+c>v&&!d&&(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 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})),d=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,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:${d.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};`)},[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")],6)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
|