vue-data-ui 2.4.71 → 2.4.73

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.
Files changed (154) hide show
  1. package/dist/{Arrow-N3xFD65D.js → Arrow-BFzy8iU0.js} +1 -1
  2. package/dist/{Arrow-B4T6F0Q-.cjs → Arrow-DB-kDYKr.cjs} +1 -1
  3. package/dist/{BaseIcon-D-UKDgjn.js → BaseIcon-CgOl0yXt.js} +1 -1
  4. package/dist/{BaseIcon-CAsWmn3X.cjs → BaseIcon-Drlv7iCA.cjs} +1 -1
  5. package/dist/{DataTable-CY8wYhvy.cjs → DataTable-C010-IaF.cjs} +1 -1
  6. package/dist/{DataTable-DPeuneOh.js → DataTable-DtvVWOjy.js} +2 -2
  7. package/dist/{Legend-BvGqIXVZ.js → Legend-CUhyETYn.js} +2 -2
  8. package/dist/{Legend-CYuhb0PP.cjs → Legend-DzWbU4w8.cjs} +1 -1
  9. package/dist/{PackageVersion-BWyr7kAX.js → PackageVersion-CBKqLhAX.js} +1 -1
  10. package/dist/{PackageVersion-CEHy6dLD.cjs → PackageVersion-CDIO8v3f.cjs} +1 -1
  11. package/dist/{PenAndPaper-BFVJi7-v.js → PenAndPaper-DtLD2Sq6.js} +3 -3
  12. package/dist/{PenAndPaper--vMes7_g.cjs → PenAndPaper-bCXNnqQx.cjs} +1 -1
  13. package/dist/{Shape-NS_4od1k.cjs → Shape-BWqOjk22.cjs} +1 -1
  14. package/dist/{Shape-BtwbxjIw.js → Shape-DmSvDf5d.js} +1 -1
  15. package/dist/{Slicer-C7m6owvG.js → Slicer-D6mP0vjU.js} +158 -151
  16. package/dist/Slicer-DGe_w6Mr.cjs +1 -0
  17. package/dist/{Title-Ct1AFzwA.cjs → Title-BlC0Lcua.cjs} +1 -1
  18. package/dist/{Title-P0Dd2k62.js → Title-C7EOYmwp.js} +1 -1
  19. package/dist/{Tooltip-kI9lsKQk.js → Tooltip-Bip4kr-u.js} +1 -1
  20. package/dist/{Tooltip-Bbb_oXZ2.cjs → Tooltip-DLISx9B0.cjs} +1 -1
  21. package/dist/index-DwCsX1sv.cjs +9 -0
  22. package/dist/{index-c1hnhYfV.js → index-MWHrTFPq.js} +5 -4
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -0
  25. package/dist/types/vue-data-ui.d.ts +1 -0
  26. package/dist/{useNestedProp-BaEkcxlF.cjs → useNestedProp-B618ZN94.cjs} +1 -1
  27. package/dist/{useNestedProp-CGSgnhXD.js → useNestedProp-CTDeT4KA.js} +1 -1
  28. package/dist/{usePrinter-VLD0kjns.js → usePrinter-CEEgHfhF.js} +1 -1
  29. package/dist/{usePrinter-DW-eWQbz.cjs → usePrinter-DTDziYU0.cjs} +1 -1
  30. package/dist/{vue-data-ui-Dj9mkE8h.js → vue-data-ui-CpZXDp-R.js} +60 -60
  31. package/dist/{vue-data-ui-CwDPE8Oy.cjs → vue-data-ui-Dpm9x-2I.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-CZ_H_Ort.cjs → vue-ui-3d-bar-Ccb9qG2p.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-BvKbGzct.js → vue-ui-3d-bar-vIP3nCRG.js} +9 -9
  36. package/dist/{vue-ui-accordion-WE2vM_c9.js → vue-ui-accordion-BnV2tlGp.js} +3 -3
  37. package/dist/{vue-ui-accordion-cPXglVwE.cjs → vue-ui-accordion-IzKVFSed.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-2_Esdk68.js → vue-ui-age-pyramid-C15VX7G1.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CP3ZYQRg.cjs → vue-ui-age-pyramid-CDTgy9zN.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-D78gkFCb.cjs → vue-ui-annotator-BhENVGnQ.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-_DY9i-jv.js → vue-ui-annotator-BhtsSaDR.js} +1 -1
  42. package/dist/{vue-ui-bullet-La8gwBSn.cjs → vue-ui-bullet-CGlE3ghb.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-DpGiFwFz.js → vue-ui-bullet-dHDkKetX.js} +8 -8
  44. package/dist/{vue-ui-candlestick-CjLJ2mSo.js → vue-ui-candlestick-BLWsnTPr.js} +11 -11
  45. package/dist/{vue-ui-candlestick-9E0cl6YC.cjs → vue-ui-candlestick-DzHbNn0a.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-Dds0y3bB.cjs → vue-ui-carousel-table-CUmFG7Yv.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-CcLxgNmE.js → vue-ui-carousel-table-xhtSLVVG.js} +4 -4
  48. package/dist/{vue-ui-chestnut-CYRzvXm4.cjs → vue-ui-chestnut-DY60WQ-p.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-BGCKqGeJ.js → vue-ui-chestnut-DZPVlG7z.js} +8 -8
  50. package/dist/{vue-ui-cursor-CIpRQKNA.js → vue-ui-cursor-DCiuO-e6.js} +2 -2
  51. package/dist/{vue-ui-cursor-DsGMHjdu.cjs → vue-ui-cursor-DYsuRM6Y.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-vzINAFKO.js → vue-ui-dashboard-BJBOz0tQ.js} +2 -2
  53. package/dist/{vue-ui-dashboard-C9uV8m0l.cjs → vue-ui-dashboard-DnvPLTBU.cjs} +1 -1
  54. package/dist/{vue-ui-digits-D7L4mVDQ.cjs → vue-ui-digits-BmDSHirU.cjs} +1 -1
  55. package/dist/{vue-ui-digits-5pKusVfB.js → vue-ui-digits-a0Wd0sll.js} +2 -2
  56. package/dist/{vue-ui-donut-C3yNTWSD.js → vue-ui-donut-Cm1k9I1a.js} +12 -12
  57. package/dist/{vue-ui-donut-CfVskBpJ.cjs → vue-ui-donut-De9h9Izs.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-CoGIWZla.cjs → vue-ui-donut-evolution-BwDfL-fW.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-BJbckdFI.js → vue-ui-donut-evolution-khk-S3e6.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-B6zi81dT.cjs → vue-ui-dumbbell-DNHkmkDa.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-CR_EOGDj.js → vue-ui-dumbbell-dKD-xCij.js} +10 -10
  62. package/dist/{vue-ui-flow-bYyrf1gH.js → vue-ui-flow-D5ZIyvku.js} +9 -9
  63. package/dist/{vue-ui-flow-7Pe2hnO2.cjs → vue-ui-flow-QYq8rVS6.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-BPbhMvf2.js → vue-ui-funnel-CjcbxEZl.js} +9 -9
  65. package/dist/{vue-ui-funnel-C1b0_0pJ.cjs → vue-ui-funnel-xNDHpOxd.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-D1h1ygAs.cjs → vue-ui-galaxy-Bq1szxYu.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-BToN6RNA.js → vue-ui-galaxy-L_b8up-c.js} +11 -11
  68. package/dist/{vue-ui-gauge-CNxd-r5C.cjs → vue-ui-gauge-BZ_Gnmhv.cjs} +1 -1
  69. package/dist/{vue-ui-gauge-Ceq5pwk-.js → vue-ui-gauge-i1loUdwb.js} +7 -7
  70. package/dist/{vue-ui-gizmo-DbElBwkm.js → vue-ui-gizmo-BhADCvS5.js} +3 -3
  71. package/dist/{vue-ui-gizmo-DWkq62O3.cjs → vue-ui-gizmo-rUiya6Wf.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-BXRF06ON.js → vue-ui-heatmap-BMCUahJg.js} +10 -10
  73. package/dist/{vue-ui-heatmap-BrnLgp5m.cjs → vue-ui-heatmap-Bt3AkFuu.cjs} +1 -1
  74. package/dist/{vue-ui-history-plot-D-9ukthf.js → vue-ui-history-plot-Bh1B6SDn.js} +11 -11
  75. package/dist/{vue-ui-history-plot-CDHowMiE.cjs → vue-ui-history-plot-DhHpEPgC.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BsgILHej.cjs → vue-ui-kpi-CVwaWBQ4.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-BlMuQuwt.js → vue-ui-kpi-DG85na3Z.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-DE4E1rOh.cjs → vue-ui-mini-loader-CW5uljhA.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-B2dATbai.js → vue-ui-mini-loader-g-wfME0o.js} +2 -2
  80. package/dist/{vue-ui-molecule-BD5g9GDi.js → vue-ui-molecule-C22D7jDQ.js} +11 -11
  81. package/dist/{vue-ui-molecule-VJdcfXRg.cjs → vue-ui-molecule-xNKSRUYy.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DjK1rd7_.cjs → vue-ui-mood-radar-DB083W53.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-CUFTQRHI.js → vue-ui-mood-radar-DHqkzff5.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-B1vXjhXt.cjs → vue-ui-nested-donuts-A9V5sFjm.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-Bj0ixTzU.js → vue-ui-nested-donuts-CfvBkvqM.js} +11 -11
  86. package/dist/{vue-ui-onion-Djvbmccm.js → vue-ui-onion-BFtuRugn.js} +11 -11
  87. package/dist/{vue-ui-onion-Be3dCMPm.cjs → vue-ui-onion-BR3FYwgu.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-Wl0rWNwV.js → vue-ui-parallel-coordinate-plot-BhbIRdY8.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-BZGIlOko.cjs → vue-ui-parallel-coordinate-plot-CPjbY0gB.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-5EI0lHH8.js → vue-ui-quadrant-Cd2G90CO.js} +12 -12
  91. package/dist/{vue-ui-quadrant-OMxtVOol.cjs → vue-ui-quadrant-CtCmnyOq.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DthUf3zm.js → vue-ui-quick-chart-DjbkyEAn.js} +81 -80
  93. package/dist/{vue-ui-quick-chart-BWAmjYZk.cjs → vue-ui-quick-chart-acDBigv4.cjs} +3 -3
  94. package/dist/{vue-ui-radar-kS3kEqr7.js → vue-ui-radar-CtHDktMI.js} +12 -12
  95. package/dist/{vue-ui-radar-BXp5pJwA.cjs → vue-ui-radar-GyNGG4F_.cjs} +1 -1
  96. package/dist/{vue-ui-rating-Bb4taywB.cjs → vue-ui-rating-CWItdxSk.cjs} +1 -1
  97. package/dist/{vue-ui-rating-nXra4COp.js → vue-ui-rating-CYgVuBjo.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-7y-gznkO.cjs → vue-ui-relation-circle-KJn9wBGu.cjs} +1 -1
  99. package/dist/{vue-ui-relation-circle-_0tbRheN.js → vue-ui-relation-circle-ejvqhT4b.js} +7 -7
  100. package/dist/{vue-ui-rings-DL_uxm3k.cjs → vue-ui-rings-DiH0bBai.cjs} +1 -1
  101. package/dist/{vue-ui-rings-AwK0LT8K.js → vue-ui-rings-KD_QCsYE.js} +12 -12
  102. package/dist/{vue-ui-scatter-C5ZzNcZo.cjs → vue-ui-scatter-CvElUANS.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-Cy4oyzSE.js → vue-ui-scatter-DOH1HPw3.js} +12 -12
  104. package/dist/{vue-ui-screenshot-B94g6UvH.js → vue-ui-screenshot-BITjkBS9.js} +1 -1
  105. package/dist/{vue-ui-screenshot-CSz2xpyV.cjs → vue-ui-screenshot-C7ol12m8.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-BiAyTdIj.js → vue-ui-skeleton-Bo8ydREb.js} +3 -3
  107. package/dist/{vue-ui-skeleton-DccfcP2M.cjs → vue-ui-skeleton-DZILAxJl.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-Bo-ByV7s.js → vue-ui-smiley-BqHQ_97X.js} +2 -2
  109. package/dist/{vue-ui-smiley-6oeUxwkD.cjs → vue-ui-smiley-DZlSDUEh.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-CVbl6zbW.js → vue-ui-spark-trend-BRK61Rnt.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-DPQigxMH.cjs → vue-ui-spark-trend-iuKFcv_t.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-CrG_iymk.cjs → vue-ui-sparkbar-CNDwvl9M.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-BRAkYvlb.js → vue-ui-sparkbar-DV71hamO.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-DFkJZIpt.cjs → vue-ui-sparkgauge-Bw6Q3ftn.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-Dy8Di8Fk.js → vue-ui-sparkgauge-DJxWC0FB.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-kizOE0sI.cjs → vue-ui-sparkhistogram-C0VkDLpC.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-ByYe2ApH.js → vue-ui-sparkhistogram-C_oCdruX.js} +5 -5
  118. package/dist/{vue-ui-sparkline-CZ54vPZB.cjs → vue-ui-sparkline-D6q5IZbj.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-Bx5zBaUb.js → vue-ui-sparkline-famAF3Kt.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-Dnh9Wmwk.cjs → vue-ui-sparkstackbar-BGSXz3Ot.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-D1n9ycoR.js → vue-ui-sparkstackbar-BLq5OGLn.js} +5 -5
  122. package/dist/{vue-ui-stackbar-DAJsmHse.js → vue-ui-stackbar-CI6DowT7.js} +13 -13
  123. package/dist/{vue-ui-stackbar-Co36xw25.cjs → vue-ui-stackbar-DUsNMktN.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-Q3K-b7VS.cjs → vue-ui-strip-plot-9sHPtfR9.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-D6YFSsPG.js → vue-ui-strip-plot-DsZccTxg.js} +11 -11
  126. package/dist/{vue-ui-table-DBk8g3Bs.js → vue-ui-table-0jjDpR0j.js} +1 -1
  127. package/dist/{vue-ui-table-j3Ym9Km1.cjs → vue-ui-table-DA9O6gMs.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-YoQuniKw.cjs → vue-ui-table-heatmap-BXciKv8R.cjs} +1 -1
  129. package/dist/{vue-ui-table-heatmap-De7qDtci.js → vue-ui-table-heatmap-d9ATqjZ8.js} +4 -4
  130. package/dist/{vue-ui-table-sparkline-BmYjar6g.js → vue-ui-table-sparkline-BJ6dbbuD.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-CyBzmpr7.cjs → vue-ui-table-sparkline-DiQT9k1I.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-BvUbzXLa.js → vue-ui-thermometer-f0uNNHZ1.js} +7 -7
  133. package/dist/{vue-ui-thermometer-1SmFY-CI.cjs → vue-ui-thermometer-vMezVlT_.cjs} +1 -1
  134. package/dist/{vue-ui-timer-BpjUTuOU.cjs → vue-ui-timer-Ba2N3EeH.cjs} +1 -1
  135. package/dist/{vue-ui-timer-D9uVxF_C.js → vue-ui-timer-CJm3cvYi.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-BQF3ak_6.cjs → vue-ui-tiremarks-CDGyg1_d.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-V8g_zUaB.js → vue-ui-tiremarks-CqeZ7inu.js} +7 -7
  138. package/dist/{vue-ui-treemap-FbHFwpPz.cjs → vue-ui-treemap-BgTZ1GXz.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-BnnAwwYN.js → vue-ui-treemap-DZPMwhAL.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-DIA9zb29.cjs → vue-ui-vertical-bar-BSgyIuF3.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-Cvq1Y3mD.js → vue-ui-vertical-bar-BuoDiJN8.js} +12 -12
  142. package/dist/{vue-ui-waffle-4mqNhUjX.cjs → vue-ui-waffle-C3s0ofJ8.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-Bcn1ufKm.js → vue-ui-waffle-DhZwKoIz.js} +12 -12
  144. package/dist/{vue-ui-wheel-Cm5dzB-b.js → vue-ui-wheel-HzkUuTdN.js} +7 -7
  145. package/dist/{vue-ui-wheel-1xKki40n.cjs → vue-ui-wheel-rayY_1d1.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-CIomS4Rm.cjs → vue-ui-word-cloud-BEQkmaGf.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-BPlfNdCZ.js → vue-ui-word-cloud-C3W2SptW.js} +41 -41
  148. package/dist/{vue-ui-xy-CKeq1JdU.js → vue-ui-xy-Br-7q7r_.js} +27 -26
  149. package/dist/{vue-ui-xy-canvas-B9MvlWhR.js → vue-ui-xy-canvas-BpjQGfiF.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-DM7CW018.cjs → vue-ui-xy-canvas-BqLqQpxG.cjs} +1 -1
  151. package/dist/{vue-ui-xy-Cu1-2Lvl.cjs → vue-ui-xy-u_mB2PaU.cjs} +2 -2
  152. package/package.json +1 -1
  153. package/dist/Slicer-Cn_Jhg4Z.cjs +0 -1
  154. package/dist/index-CDbl3nHi.cjs +0 -9
@@ -1,22 +1,22 @@
1
- import { useCssVars as pe, ref as c, computed as s, watch as F, onMounted as xe, onBeforeUnmount as ye, openBlock as m, createElementBlock as h, createElementVNode as u, normalizeStyle as x, createVNode as be, renderSlot as Se, createCommentVNode as y, unref as ke, Fragment as U, renderList as j, normalizeClass as we, withDirectives as Z, vModelText as q, toDisplayString as G, pushScopeId as Ne, popScopeId as Ce } from "vue";
2
- import $e from "./BaseIcon-D-UKDgjn.js";
3
- import { t as Me, u as Ee } from "./useResponsive-CoxXLe23.js";
4
- import { c as Le, R as Q, Q as J, X as Re } from "./index-c1hnhYfV.js";
5
- import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
1
+ import { useCssVars as Se, ref as d, computed as s, watch as A, onMounted as we, onBeforeUnmount as ke, openBlock as m, createElementBlock as h, createElementVNode as u, normalizeStyle as y, createVNode as Ne, renderSlot as Ce, createCommentVNode as b, unref as Me, Fragment as G, renderList as Z, normalizeClass as F, withDirectives as q, vModelText as Q, toDisplayString as J, pushScopeId as $e, popScopeId as Ee } from "vue";
2
+ import Le from "./BaseIcon-CgOl0yXt.js";
3
+ import { t as Re, u as De } from "./useResponsive-CoxXLe23.js";
4
+ import { c as Pe, R as K, Q as Y, X as ze } from "./index-MWHrTFPq.js";
5
+ import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const _ = (l) => ($e("data-v-c027bcce"), l = l(), Ee(), l), Be = {
7
7
  class: "vue-data-ui-slicer-labels",
8
8
  style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
- }, ze = {
9
+ }, Ae = {
10
10
  key: 0,
11
11
  style: { width: "100%", position: "relative" }
12
- }, Ie = {
12
+ }, Fe = {
13
13
  key: 0,
14
14
  class: "minimap",
15
15
  style: { width: "100%" }
16
- }, Fe = ["xmlns", "viewBox"], Be = ["id"], Te = ["stop-color"], Ve = /* @__PURE__ */ K(() => /* @__PURE__ */ u("stop", {
16
+ }, Te = ["xmlns", "viewBox"], Ve = ["id"], He = ["stop-color"], Xe = /* @__PURE__ */ _(() => /* @__PURE__ */ u("stop", {
17
17
  offset: "100%",
18
18
  "stop-color": "transparent"
19
- }, null, -1)), Ae = ["d", "stroke"], Xe = ["x", "width", "height", "fill", "rx"], He = ["d", "fill"], Oe = ["x", "width", "height", "rx", "fill"], We = ["x", "width", "height", "fill", "rx"], Ue = ["d", "fill"], je = ["d", "stroke"], Ze = ["cx", "cy", "stroke", "fill"], qe = ["cx", "cy", "stroke", "fill"], Ge = ["x1", "x2", "y2", "stroke"], Qe = ["x", "height", "width", "onMouseenter"], Je = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", { class: "slider-track" }, null, -1)), Ke = ["min", "max"], Ye = ["min", "max"], _e = {
19
+ }, null, -1)), We = ["d", "stroke"], Oe = ["x", "width", "height", "fill", "rx"], Ue = ["d", "fill"], je = ["x", "width", "height", "rx", "fill"], Ge = ["x", "width", "height", "fill", "rx"], Ze = ["d", "fill"], qe = ["d", "stroke"], Qe = ["cx", "cy", "stroke", "fill"], Je = ["cx", "cy", "stroke", "fill"], Ke = ["x1", "x2", "y2", "stroke"], Ye = ["x", "height", "width", "onMouseenter"], _e = /* @__PURE__ */ _(() => /* @__PURE__ */ u("div", { class: "slider-track" }, null, -1)), et = ["min", "max"], tt = ["min", "max"], lt = {
20
20
  __name: "Slicer",
21
21
  props: {
22
22
  background: {
@@ -118,158 +118,165 @@ const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
118
118
  enableSelectionDrag: {
119
119
  type: Boolean,
120
120
  default: !0
121
+ },
122
+ verticalHandles: {
123
+ type: Boolean,
124
+ default: !1
121
125
  }
122
126
  },
123
127
  emits: ["update:start", "update:end", "reset", "trapMouse"],
124
- setup(l, { expose: Y, emit: p }) {
128
+ setup(l, { expose: ee, emit: p }) {
125
129
  const t = l;
126
- pe((e) => ({
127
- f72a9d20: te.value,
128
- "1c6039e4": S.value,
129
- "731e6756": ae.value,
130
- "06d509d8": l.selectColor,
131
- "67ae3ba2": le.value
130
+ Se((e) => ({
131
+ "0eeb34b8": ae.value,
132
+ b23e85a8: w.value,
133
+ "2203b99d": ie.value,
134
+ f1d40348: l.selectColor,
135
+ "27a84a2c": ne.value
132
136
  }));
133
- const C = c(null), o = c(t.min), r = c(t.max), b = s(() => !!t.minimap.length), $ = c(Le()), _ = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), ee = s(() => {
137
+ const S = d(null), o = d(t.min), r = d(t.max), x = s(() => !!t.minimap.length), M = d(Pe()), te = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), le = s(() => {
134
138
  const e = t.max - t.min, a = (o.value - t.min) / e * 100, n = (r.value - t.min) / e * 100;
135
139
  return {
136
140
  left: `${a}%`,
137
141
  width: `${n - a}%`,
138
142
  background: t.selectColor
139
143
  };
140
- }), te = s(() => t.inputColor), le = s(() => t.background), ae = s(() => `${t.selectColor}33`), S = s(() => t.borderColor), B = s(() => {
144
+ }), ae = s(() => t.inputColor), ne = s(() => t.background), ie = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), T = s(() => {
141
145
  let e = [];
142
146
  for (let a = 0; a < t.minimap.length; a += 1)
143
147
  e.push(a);
144
148
  return e;
145
149
  });
146
- function T() {
150
+ function V() {
147
151
  p("reset");
148
152
  }
149
- function ne() {
153
+ function ue() {
150
154
  Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), p("update:start", Number(o.value));
151
155
  }
152
- function ie() {
156
+ function oe() {
153
157
  Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), p("update:end", Number(r.value));
154
158
  }
155
- F(
159
+ A(
156
160
  () => t.min,
157
161
  (e) => {
158
162
  Number(o.value) < Number(e) && (o.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
159
163
  }
160
- ), F(
164
+ ), A(
161
165
  () => t.max,
162
166
  (e) => {
163
167
  Number(o.value) > Number(e) && (o.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
164
168
  }
165
169
  );
166
- const M = c(null), i = c({
170
+ const $ = d(null), i = d({
167
171
  width: 1,
168
172
  height: 1
169
- }), N = c(null);
170
- xe(() => {
171
- if (b.value) {
172
- const e = Me(() => {
173
- const { width: a, height: n } = Ee({
174
- chart: M.value
173
+ }), C = d(null);
174
+ we(() => {
175
+ if (x.value) {
176
+ const e = Re(() => {
177
+ const { width: a, height: n } = De({
178
+ chart: $.value
175
179
  });
176
180
  i.value.width = a, i.value.height = n - 47;
177
181
  });
178
- N.value = new ResizeObserver(e), N.value.observe(M.value);
182
+ C.value = new ResizeObserver(e), C.value.observe($.value);
179
183
  }
180
- }), ye(() => {
181
- N.value && N.value.disconnect();
184
+ }), ke(() => {
185
+ C.value && C.value.disconnect();
182
186
  });
183
- const d = s(() => t.minimap.length ? i.value.width / t.minimap.length : 0), f = s(() => {
187
+ const c = s(() => t.minimap.length ? i.value.width / t.minimap.length : 0), f = s(() => {
184
188
  if (!t.minimap.length) return [];
185
- const e = Math.max(...t.minimap), a = Math.min(...t.minimap) - 10, n = e - (a > 0 ? 0 : a), v = t.minimap.map((he, fe) => {
186
- const ge = he - a;
189
+ const e = Math.max(...t.minimap), a = Math.min(...t.minimap) - 10, n = e - (a > 0 ? 0 : a), v = t.minimap.map((xe, ye) => {
190
+ const be = xe - a;
187
191
  return {
188
- x: i.value.width / t.minimap.length * fe + d.value / 2,
189
- y: i.value.height - ge / n * (i.value.height * 0.9)
192
+ x: i.value.width / t.minimap.length * ye + c.value / 2,
193
+ y: i.value.height - be / n * (i.value.height * 0.9)
190
194
  };
191
- }), w = t.smoothMinimap ? Q(v) : J(v), I = [...v].slice(t.valueStart, t.valueEnd), me = t.smoothMinimap ? Q(I) : J(I);
195
+ }), N = t.smoothMinimap ? K(v) : Y(v), B = [...v].slice(t.valueStart, t.valueEnd), pe = t.smoothMinimap ? K(B) : Y(B);
192
196
  return {
193
- fullSet: w,
194
- selectionSet: me,
195
- sliced: I,
197
+ fullSet: N,
198
+ selectionSet: pe,
199
+ sliced: B,
196
200
  firstPlot: v[t.valueStart],
197
201
  lastPlot: v[t.valueEnd - 1]
198
202
  };
199
203
  }), g = s(() => ({
200
- x: d.value * o.value + d.value / 2,
201
- width: i.value.width * ((r.value - o.value) / t.max) - d.value
202
- })), ue = s(() => ({
204
+ x: c.value * o.value + c.value / 2,
205
+ width: i.value.width * ((r.value - o.value) / t.max) - c.value
206
+ })), re = s(() => ({
203
207
  left: 0,
204
208
  color: t.textColor,
205
209
  fontSize: `${t.fontSize}px`,
206
- top: b.value ? "28px" : "-28px",
210
+ top: x.value ? "28px" : "-28px",
207
211
  pointerEvents: "none"
208
- })), oe = s(() => ({
212
+ })), se = s(() => ({
209
213
  right: 0,
210
214
  color: t.textColor,
211
215
  fontSize: `${t.fontSize}px`,
212
- top: b.value ? "28px" : "-28px",
216
+ top: x.value ? "28px" : "-28px",
213
217
  direction: "rtl",
214
218
  pointerEvents: "none"
215
- })), k = c(t.minimapSelectedIndex);
216
- F(() => t.minimapSelectedIndex, (e) => {
219
+ })), k = d(t.minimapSelectedIndex);
220
+ A(() => t.minimapSelectedIndex, (e) => {
217
221
  k.value = e + t.valueStart;
218
222
  }, { immediate: !0 });
219
- function re(e) {
223
+ function de(e) {
220
224
  k.value = e, e >= t.valueStart && e < t.valueEnd && p("trapMouse", e - t.valueStart);
221
225
  }
222
- const se = c(0), E = c(null), L = c(null);
226
+ const ce = d(0), E = d(null), L = d(null);
223
227
  function R(e) {
224
228
  o.value = e, E.value && (E.value.value = e), p("update:start", Number(o.value));
225
229
  }
226
230
  function D(e) {
227
231
  r.value = e, L.value && (L.value.value = e), p("update:end", Number(r.value));
228
232
  }
229
- const V = s(() => t.valueEnd - t.valueStart), P = c(!1);
230
- let z = c(null);
231
- const de = s(() => C.value ? (C.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), A = (e) => {
233
+ const P = s(() => t.valueEnd - t.valueStart), z = d(!1);
234
+ let I = d(null);
235
+ const ve = s(() => S.value ? (S.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), me = s(() => (S.value.getBoundingClientRect().width - 48) / (t.max - t.min) * P.value), he = d(2.5), H = s(() => {
236
+ const e = S.value.getBoundingClientRect().width - 48;
237
+ return Math.ceil((t.max - t.min) / ((e - me.value) / he.value));
238
+ }), X = (e) => {
232
239
  if (!t.enableSelectionDrag)
233
240
  return;
234
241
  const a = e.type === "touchstart";
235
242
  if ((a ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
236
243
  return;
237
- P.value = !0, z.value = a ? e.targetTouches[0].clientX : e.clientX;
238
- const v = a ? ce : X, w = a ? ve : O;
239
- window.addEventListener(a ? "touchmove" : "mousemove", v, { passive: !1 }), window.addEventListener(a ? "touchend" : "mouseup", w);
244
+ z.value = !0, I.value = a ? e.targetTouches[0].clientX : e.clientX;
245
+ const v = a ? fe : W, N = a ? ge : U;
246
+ window.addEventListener(a ? "touchmove" : "mousemove", v, { passive: !1 }), window.addEventListener(a ? "touchend" : "mouseup", N);
240
247
  };
241
- function X(e) {
242
- H(e.clientX);
248
+ function W(e) {
249
+ O(e.clientX);
243
250
  }
244
- function ce(e) {
245
- e.target.classList.contains("range-handle") || (e.preventDefault(), H(e.targetTouches[0].clientX));
251
+ function fe(e) {
252
+ e.target.classList.contains("range-handle") || (e.preventDefault(), O(e.targetTouches[0].clientX));
246
253
  }
247
- function H(e) {
248
- if (!P.value) return;
249
- const a = e - z.value;
250
- if (Math.abs(a) > de.value) {
254
+ function O(e) {
255
+ if (!z.value) return;
256
+ const a = e - I.value;
257
+ if (Math.abs(a) > ve.value) {
251
258
  if (a > 0) {
252
259
  if (Number(r.value) + 1 <= t.max) {
253
- const n = Number(r.value) + 1;
254
- D(n), R(n - V.value);
260
+ const n = Math.min(t.max, Number(r.value) + H.value);
261
+ D(n), R(n - P.value);
255
262
  }
256
263
  } else if (Number(o.value) - 1 >= t.min) {
257
- const n = Number(o.value) - 1;
258
- R(n), D(n + V.value);
264
+ const n = Math.max(0, Number(o.value) - H.value);
265
+ R(n), D(n + P.value);
259
266
  }
260
- z.value = e;
267
+ I.value = e;
261
268
  }
262
269
  }
263
- function O() {
264
- W("mousemove", "mouseup");
270
+ function U() {
271
+ j("mousemove", "mouseup");
265
272
  }
266
- function ve() {
267
- W("touchmove", "touchend");
273
+ function ge() {
274
+ j("touchmove", "touchend");
268
275
  }
269
- function W(e, a) {
270
- P.value = !1, window.removeEventListener(e, X), window.removeEventListener(a, O);
276
+ function j(e, a) {
277
+ z.value = !1, window.removeEventListener(e, W), window.removeEventListener(a, U);
271
278
  }
272
- return Y({
279
+ return ee({
273
280
  setStartValue: R,
274
281
  setEndValue: D
275
282
  }), (e, a) => (m(), h("div", {
@@ -277,48 +284,48 @@ const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
277
284
  style: { padding: "0 24px" },
278
285
  class: "vue-data-ui-zoom",
279
286
  ref_key: "zoomWrapper",
280
- ref: C,
281
- onMousedown: A,
282
- onTouchstart: A
287
+ ref: S,
288
+ onMousedown: X,
289
+ onTouchstart: X
283
290
  }, [
284
- u("div", Pe, [
285
- l.valueStart !== l.refreshStartPoint || l.valueEnd !== _.value ? (m(), h("div", ze, [
286
- l.useResetSlot ? Se(e.$slots, "reset-action", {
291
+ u("div", Be, [
292
+ l.valueStart !== l.refreshStartPoint || l.valueEnd !== te.value ? (m(), h("div", Ae, [
293
+ l.useResetSlot ? Ce(e.$slots, "reset-action", {
287
294
  key: 1,
288
- reset: T
295
+ reset: V
289
296
  }, void 0, !0) : (m(), h("button", {
290
297
  key: 0,
291
298
  "data-cy-reset": "",
292
299
  tabindex: "0",
293
300
  role: "button",
294
301
  class: "vue-data-ui-refresh-button",
295
- style: x({
296
- top: b.value ? "36px" : "-16px",
302
+ style: y({
303
+ top: x.value ? "36px" : "-16px",
297
304
  pointerEvents: "all !important"
298
305
  }),
299
- onClick: T
306
+ onClick: V
300
307
  }, [
301
- be($e, {
308
+ Ne(Le, {
302
309
  name: "refresh",
303
310
  stroke: l.textColor
304
311
  }, null, 8, ["stroke"])
305
312
  ], 4))
306
- ])) : y("", !0)
313
+ ])) : b("", !0)
307
314
  ]),
308
315
  u("div", {
309
316
  class: "double-range-slider",
310
317
  ref_key: "minimapWrapper",
311
- ref: M,
318
+ ref: $,
312
319
  style: { "z-index": "0" }
313
320
  }, [
314
- b.value ? (m(), h("div", Ie, [
321
+ x.value ? (m(), h("div", Fe, [
315
322
  (m(), h("svg", {
316
- xmlns: ke(Re),
323
+ xmlns: Me(ze),
317
324
  viewBox: `0 0 ${i.value.width < 0 ? 0 : i.value.width} ${i.value.height < 0 ? 0 : i.value.height}`
318
325
  }, [
319
326
  u("defs", null, [
320
327
  u("linearGradient", {
321
- id: $.value,
328
+ id: M.value,
322
329
  x1: "0%",
323
330
  y1: "0%",
324
331
  x2: "0%",
@@ -327,9 +334,9 @@ const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
327
334
  u("stop", {
328
335
  offset: "0%",
329
336
  "stop-color": `${l.minimapLineColor}50`
330
- }, null, 8, Te),
331
- Ve
332
- ], 8, Be)
337
+ }, null, 8, He),
338
+ Xe
339
+ ], 8, Ve)
333
340
  ]),
334
341
  u("path", {
335
342
  d: `M${f.value.fullSet}`,
@@ -339,30 +346,30 @@ const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
339
346
  "stroke-linecap": "round",
340
347
  "stroke-linejoin": "round",
341
348
  style: { opacity: "1" }
342
- }, null, 8, Ae),
349
+ }, null, 8, We),
343
350
  u("rect", {
344
351
  x: g.value.x,
345
352
  width: g.value.width < 0 ? 0 : g.value.width,
346
353
  height: Math.max(i.value.height, 0),
347
354
  y: 0,
348
- fill: S.value,
355
+ fill: w.value,
349
356
  rx: l.minimapSelectionRadius,
350
357
  stroke: "none"
351
- }, null, 8, Xe),
358
+ }, null, 8, Oe),
352
359
  u("path", {
353
- d: `M${d.value / 2},${Math.max(i.value.height, 0)} ${f.value.fullSet} L${i.value.width - d.value / 2},${Math.max(i.value.height, 0)}Z`,
354
- fill: `url(#${$.value})`,
360
+ d: `M${c.value / 2},${Math.max(i.value.height, 0)} ${f.value.fullSet} L${i.value.width - c.value / 2},${Math.max(i.value.height, 0)}Z`,
361
+ fill: `url(#${M.value})`,
355
362
  stroke: "none",
356
363
  style: { opacity: "1" }
357
- }, null, 8, He),
364
+ }, null, 8, Ue),
358
365
  u("rect", {
359
366
  x: g.value.x,
360
367
  width: g.value.width < 0 ? 0 : g.value.width,
361
368
  height: Math.max(i.value.height, 0),
362
369
  y: 0,
363
370
  rx: l.minimapSelectionRadius,
364
- fill: S.value
365
- }, null, 8, Oe),
371
+ fill: w.value
372
+ }, null, 8, je),
366
373
  u("rect", {
367
374
  x: g.value.x,
368
375
  width: g.value.width < 0 ? 0 : g.value.width,
@@ -370,16 +377,16 @@ const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
370
377
  y: 0,
371
378
  fill: l.minimapSelectedColor,
372
379
  rx: l.minimapSelectionRadius,
373
- style: x({
380
+ style: y({
374
381
  opacity: l.minimapSelectedColorOpacity
375
382
  })
376
- }, null, 12, We),
383
+ }, null, 12, Ge),
377
384
  u("path", {
378
385
  d: `M${f.value.sliced[0].x},${Math.max(i.value.height, 0)} ${f.value.selectionSet} L${f.value.sliced.at(-1).x},${Math.max(i.value.height, 0)}Z`,
379
- fill: `url(#${$.value})`,
386
+ fill: `url(#${M.value})`,
380
387
  stroke: "none",
381
388
  style: { opacity: "1" }
382
- }, null, 8, Ue),
389
+ }, null, 8, Ze),
383
390
  u("path", {
384
391
  d: `M ${f.value.selectionSet}`,
385
392
  stroke: `${l.minimapLineColor}`,
@@ -387,98 +394,98 @@ const K = (l) => (Ne("data-v-e79aac89"), l = l(), Ce(), l), Pe = {
387
394
  "stroke-width": "2",
388
395
  "stroke-linecap": "round",
389
396
  "stroke-linejoin": "round"
390
- }, null, 8, je),
397
+ }, null, 8, qe),
391
398
  u("circle", {
392
399
  cx: f.value.firstPlot.x,
393
400
  cy: f.value.firstPlot.y,
394
401
  "stroke-width": "0.5",
395
- stroke: S.value,
402
+ stroke: w.value,
396
403
  r: "3",
397
404
  fill: l.minimapLineColor
398
- }, null, 8, Ze),
405
+ }, null, 8, Qe),
399
406
  u("circle", {
400
407
  cx: f.value.lastPlot.x,
401
408
  cy: f.value.lastPlot.y,
402
409
  "stroke-width": "0.5",
403
- stroke: S.value,
410
+ stroke: w.value,
404
411
  r: "3",
405
412
  fill: l.minimapLineColor
406
- }, null, 8, qe),
407
- k.value !== null ? (m(!0), h(U, { key: 0 }, j(B.value, (n, v) => (m(), h("g", null, [
413
+ }, null, 8, Je),
414
+ k.value !== null ? (m(!0), h(G, { key: 0 }, Z(T.value, (n, v) => (m(), h("g", null, [
408
415
  k.value === n && n >= l.valueStart && n < l.valueEnd ? (m(), h("line", {
409
416
  key: 0,
410
- x1: d.value * v + d.value / 2,
411
- x2: d.value * v + d.value / 2,
417
+ x1: c.value * v + c.value / 2,
418
+ x2: c.value * v + c.value / 2,
412
419
  y1: 0,
413
420
  y2: Math.max(i.value.height, 0),
414
421
  stroke: l.minimapIndicatorColor,
415
422
  "stroke-linecap": "round",
416
423
  "stroke-dasharray": "2",
417
424
  "stroke-width": "1"
418
- }, null, 8, Ge)) : y("", !0)
419
- ]))), 256)) : y("", !0),
420
- (m(!0), h(U, null, j(B.value, (n, v) => (m(), h("rect", {
421
- x: d.value * v,
425
+ }, null, 8, Ke)) : b("", !0)
426
+ ]))), 256)) : b("", !0),
427
+ (m(!0), h(G, null, Z(T.value, (n, v) => (m(), h("rect", {
428
+ x: c.value * v,
422
429
  y: 0,
423
430
  height: Math.max(i.value.height, 0),
424
- width: d.value < 0 ? 0 : d.value,
431
+ width: c.value < 0 ? 0 : c.value,
425
432
  fill: "transparent",
426
- style: x([{ "pointer-events": "all !important" }, {
433
+ style: y([{ "pointer-events": "all !important" }, {
427
434
  cursor: n >= l.valueStart && n < l.valueEnd && l.enableSelectionDrag ? "move" : "default"
428
435
  }]),
429
- onMouseenter: (w) => re(n),
430
- onMouseleave: a[0] || (a[0] = (w) => {
436
+ onMouseenter: (N) => de(n),
437
+ onMouseleave: a[0] || (a[0] = (N) => {
431
438
  k.value = null, p("trapMouse", null);
432
439
  })
433
- }, null, 44, Qe))), 256))
434
- ], 8, Fe))
435
- ])) : y("", !0),
436
- Je,
440
+ }, null, 44, Ye))), 256))
441
+ ], 8, Te))
442
+ ])) : b("", !0),
443
+ _e,
437
444
  u("div", {
438
- class: we({
445
+ class: F({
439
446
  "range-highlight": !0,
440
447
  move: l.enableSelectionDrag
441
448
  }),
442
- style: x(ee.value)
449
+ style: y(le.value)
443
450
  }, null, 6),
444
- l.enableRangeHandles ? Z((m(), h("input", {
451
+ l.enableRangeHandles ? q((m(), h("input", {
445
452
  ref_key: "rangeStart",
446
453
  ref: E,
447
- key: `range-min${se.value}`,
454
+ key: `range-min${ce.value}`,
448
455
  type: "range",
449
- class: "range-left range-handle",
456
+ class: F({ "range-left": !0, "range-handle": !0, "range-minimap": x.value && l.verticalHandles }),
450
457
  min: l.min,
451
458
  max: l.max,
452
459
  "onUpdate:modelValue": a[1] || (a[1] = (n) => o.value = n),
453
- onInput: ne
454
- }, null, 40, Ke)), [
455
- [q, o.value]
456
- ]) : y("", !0),
460
+ onInput: ue
461
+ }, null, 42, et)), [
462
+ [Q, o.value]
463
+ ]) : b("", !0),
457
464
  u("div", {
458
465
  class: "thumb-label thumb-label-left",
459
- style: x(ue.value)
460
- }, G(l.labelLeft), 5),
461
- l.enableRangeHandles ? Z((m(), h("input", {
466
+ style: y(re.value)
467
+ }, J(l.labelLeft), 5),
468
+ l.enableRangeHandles ? q((m(), h("input", {
462
469
  key: 2,
463
470
  ref_key: "rangeEnd",
464
471
  ref: L,
465
472
  type: "range",
466
- class: "range-right range-handle",
473
+ class: F({ "range-right": !0, "range-handle": !0, "range-minimap": x.value && l.verticalHandles }),
467
474
  min: l.min,
468
475
  max: l.max,
469
476
  "onUpdate:modelValue": a[2] || (a[2] = (n) => r.value = n),
470
- onInput: ie
471
- }, null, 40, Ye)), [
472
- [q, r.value]
473
- ]) : y("", !0),
477
+ onInput: oe
478
+ }, null, 42, tt)), [
479
+ [Q, r.value]
480
+ ]) : b("", !0),
474
481
  u("div", {
475
482
  class: "thumb-label thumb-label-right",
476
- style: x(oe.value)
477
- }, G(l.labelRight), 5)
483
+ style: y(se.value)
484
+ }, J(l.labelRight), 5)
478
485
  ], 512)
479
486
  ], 544));
480
487
  }
481
- }, it = /* @__PURE__ */ De(_e, [["__scopeId", "data-v-e79aac89"]]);
488
+ }, rt = /* @__PURE__ */ Ie(lt, [["__scopeId", "data-v-c027bcce"]]);
482
489
  export {
483
- it as S
490
+ rt as S
484
491
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),ue=require("./BaseIcon-Drlv7iCA.cjs"),T=require("./useResponsive-BJ7DTGpm.cjs"),f=require("./index-DwCsX1sv.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=a=>(e.pushScopeId("data-v-c027bcce"),a=a(),e.popScopeId(),a),ce={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},de={key:0,style:{width:"100%",position:"relative"}},me={key:0,class:"minimap",style:{width:"100%"}},ve=["xmlns","viewBox"],he=["id"],fe=["stop-color"],pe=H(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),ge=["d","stroke"],xe=["x","width","height","fill","rx"],ye=["d","fill"],be=["x","width","height","rx","fill"],Se=["x","width","height","fill","rx"],ke=["d","fill"],Ne=["d","stroke"],Ee=["cx","cy","stroke","fill"],we=["cx","cy","stroke","fill"],Ce=["x1","x2","y2","stroke"],Be=["x","height","width","onMouseenter"],Ve=H(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max"],$e=["min","max"],ze={__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(a,{expose:W,emit:v}){const l=a;e.useCssVars(t=>({"0eeb34b8":O.value,b23e85a8:g.value,"2203b99d":j.value,f1d40348:a.selectColor,"27a84a2c":U.value}));const p=e.ref(null),r=e.ref(l.min),u=e.ref(l.max),h=e.computed(()=>!!l.minimap.length),S=e.ref(f.createUid()),X=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),q=e.computed(()=>{const t=l.max-l.min,n=(r.value-l.min)/t*100,o=(u.value-l.min)/t*100;return{left:`${n}%`,width:`${o-n}%`,background:l.selectColor}}),O=e.computed(()=>l.inputColor),U=e.computed(()=>l.background),j=e.computed(()=>`${l.selectColor}33`),g=e.computed(()=>l.borderColor),z=e.computed(()=>{let t=[];for(let n=0;n<l.minimap.length;n+=1)t.push(n);return t});function L(){v("reset")}function G(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),v("update:start",Number(r.value))}function Z(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),v("update:end",Number(u.value))}e.watch(()=>l.min,t=>{Number(r.value)<Number(t)&&(r.value=Number(t)),Number(u.value)<Number(t)&&(u.value=Number(t))}),e.watch(()=>l.max,t=>{Number(r.value)>Number(t)&&(r.value=Number(t)),Number(u.value)>Number(t)&&(u.value=Number(t))});const k=e.ref(null),i=e.ref({width:1,height:1}),b=e.ref(null);e.onMounted(()=>{if(h.value){const t=T.throttle(()=>{const{width:n,height:o}=T.useResponsive({chart:k.value});i.value.width=n,i.value.height=o-47});b.value=new ResizeObserver(t),b.value.observe(k.value)}}),e.onBeforeUnmount(()=>{b.value&&b.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),d=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),n=Math.min(...l.minimap)-10,o=t-(n>0?0:n),c=l.minimap.map((oe,ie)=>{const re=oe-n;return{x:i.value.width/l.minimap.length*ie+s.value/2,y:i.value.height-re/o*(i.value.height*.9)}}),y=l.smoothMinimap?f.createSmoothPath(c):f.createStraightPath(c),$=[...c].slice(l.valueStart,l.valueEnd),ne=l.smoothMinimap?f.createSmoothPath($):f.createStraightPath($);return{fullSet:y,selectionSet:ne,sliced:$,firstPlot:c[l.valueStart],lastPlot:c[l.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:i.value.width*((u.value-r.value)/l.max)-s.value})),J=e.computed(()=>({left:0,color:l.textColor,fontSize:`${l.fontSize}px`,top:h.value?"28px":"-28px",pointerEvents:"none"})),K=e.computed(()=>({right:0,color:l.textColor,fontSize:`${l.fontSize}px`,top:h.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),x=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{x.value=t+l.valueStart},{immediate:!0});function Q(t){x.value=t,t>=l.valueStart&&t<l.valueEnd&&v("trapMouse",t-l.valueStart)}const Y=e.ref(0),N=e.ref(null),E=e.ref(null);function w(t){r.value=t,N.value&&(N.value.value=t),v("update:start",Number(r.value))}function C(t){u.value=t,E.value&&(E.value.value=t),v("update:end",Number(u.value))}const B=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let M=e.ref(null);const _=e.computed(()=>p.value?(p.value.getBoundingClientRect().width-48)/(l.max-l.min):20),ee=e.computed(()=>(p.value.getBoundingClientRect().width-48)/(l.max-l.min)*B.value),te=e.ref(2.5),R=e.computed(()=>{const t=p.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-ee.value)/te.value))}),D=t=>{if(!l.enableSelectionDrag)return;const n=t.type==="touchstart";if((n?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,M.value=n?t.targetTouches[0].clientX:t.clientX;const c=n?le:P,y=n?ae:F;window.addEventListener(n?"touchmove":"mousemove",c,{passive:!1}),window.addEventListener(n?"touchend":"mouseup",y)};function P(t){I(t.clientX)}function le(t){t.target.classList.contains("range-handle")||(t.preventDefault(),I(t.targetTouches[0].clientX))}function I(t){if(!V.value)return;const n=t-M.value;if(Math.abs(n)>_.value){if(n>0){if(Number(u.value)+1<=l.max){const o=Math.min(l.max,Number(u.value)+R.value);C(o),w(o-B.value)}}else if(Number(r.value)-1>=l.min){const o=Math.max(0,Number(r.value)-R.value);w(o),C(o+B.value)}M.value=t}}function F(){A("mousemove","mouseup")}function ae(){A("touchmove","touchend")}function A(t,n){V.value=!1,window.removeEventListener(t,P),window.removeEventListener(n,F)}return W({setStartValue:w,setEndValue:C}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:p,onMousedown:D,onTouchstart:D},[e.createElementVNode("div",ce,[a.valueStart!==a.refreshStartPoint||a.valueEnd!==X.value?(e.openBlock(),e.createElementBlock("div",de,[a.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:L},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:h.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:L},[e.createVNode(ue.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:k,style:{"z-index":"0"}},[h.value?(e.openBlock(),e.createElementBlock("div",me,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:S.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,fe),pe],8,he)]),e.createElementVNode("path",{d:`M${d.value.fullSet}`,stroke:`${a.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,ge),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(i.value.height,0),y:0,fill:g.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,xe),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${d.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,ye),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(i.value.height,0),y:0,rx:a.minimapSelectionRadius,fill:g.value},null,8,be),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(i.value.height,0),y:0,fill:a.minimapSelectedColor,rx:a.minimapSelectionRadius,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,Se),e.createElementVNode("path",{d:`M${d.value.sliced[0].x},${Math.max(i.value.height,0)} ${d.value.selectionSet} L${d.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,ke),e.createElementVNode("path",{d:`M ${d.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ne),e.createElementVNode("circle",{cx:d.value.firstPlot.x,cy:d.value.firstPlot.y,"stroke-width":"0.5",stroke:g.value,r:"3",fill:a.minimapLineColor},null,8,Ee),e.createElementVNode("circle",{cx:d.value.lastPlot.x,cy:d.value.lastPlot.y,"stroke-width":"0.5",stroke:g.value,r:"3",fill:a.minimapLineColor},null,8,we),x.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(z.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[x.value===o&&o>=a.valueStart&&o<a.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*c+s.value/2,x2:s.value*c+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Ce)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(o,c)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*c,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>=a.valueStart&&o<a.valueEnd&&a.enableSelectionDrag?"move":"default"}]),onMouseenter:y=>Q(o),onMouseleave:n[0]||(n[0]=y=>{x.value=null,v("trapMouse",null)})},null,44,Be))),256))],8,ve))])):e.createCommentVNode("",!0),Ve,e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:a.enableSelectionDrag}),style:e.normalizeStyle(q.value)},null,6),a.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:N,key:`range-min${Y.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":h.value&&a.verticalHandles}),min:a.min,max:a.max,"onUpdate:modelValue":n[1]||(n[1]=o=>r.value=o),onInput:G},null,42,Me)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(J.value)},e.toDisplayString(a.labelLeft),5),a.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:E,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":h.value&&a.verticalHandles}),min:a.min,max:a.max,"onUpdate:modelValue":n[2]||(n[2]=o=>u.value=o),onInput:Z},null,42,$e)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(K.value)},e.toDisplayString(a.labelRight),5)],512)],544))}},Le=se._export_sfc(ze,[["__scopeId","data-v-c027bcce"]]);exports.Slicer=Le;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("./useNestedProp-BaEkcxlF.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
+ "use strict";const e=require("vue"),r=require("./useNestedProp-B618ZN94.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,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-CGSgnhXD.js";
2
+ import { u as c } from "./useNestedProp-CTDeT4KA.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -1,5 +1,5 @@
1
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-c1hnhYfV.js";
2
+ import { s as F } from "./index-MWHrTFPq.js";
3
3
  function N({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: a = 24, blockShiftY: f = !1 }) {
4
4
  const l = u(0), s = u(a);
5
5
  if (e && o) {
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),p=require("./index-CDbl3nHi.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 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,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")],6)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
1
+ "use strict";const t=require("vue"),p=require("./index-DwCsX1sv.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 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,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")],6)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;