vue-data-ui 2.4.40 → 2.4.42

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 (167) hide show
  1. package/dist/{Arrow-DkayNE_-.js → Arrow-DE71uBJZ.js} +1 -1
  2. package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-DTscDttD.cjs} +1 -1
  3. package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-C8XxmpRq.js} +1 -1
  4. package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
  5. package/dist/{DataTable-BB87HJ5b.cjs → DataTable-DEdQvqB1.cjs} +1 -1
  6. package/dist/{DataTable-BuiPd6c1.js → DataTable-D_w08xos.js} +2 -2
  7. package/dist/{Legend-BRVDmlwW.js → Legend-BWDoQii_.js} +1 -1
  8. package/dist/{Legend-D2Yi-COI.cjs → Legend-C4rlR-Ge.cjs} +1 -1
  9. package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-CH6MCx6T.js} +1 -1
  10. package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
  11. package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BWTR3U2d.js} +3 -3
  12. package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
  13. package/dist/{Shape-DVggzfpA.cjs → Shape-BLS-KzBD.cjs} +1 -1
  14. package/dist/{Shape-Dwxh0EWa.js → Shape-xrlfL_v4.js} +1 -1
  15. package/dist/Slicer-8gKX0l4Q.cjs +1 -0
  16. package/dist/Slicer-DIYseEL1.js +423 -0
  17. package/dist/{Title-RB80eFiD.cjs → Title-B-xkTfi8.cjs} +1 -1
  18. package/dist/{Title-BFvWnqI4.js → Title-Cnl9ySNH.js} +1 -1
  19. package/dist/Tooltip-Brbj6DqX.cjs +1 -0
  20. package/dist/{Tooltip-RHI1EGzy.js → Tooltip-DEAOBZ8h.js} +33 -25
  21. package/dist/index-B68kzBN9.cjs +9 -0
  22. package/dist/{index-DY8hDTi7.js → index-DnukYspq.js} +56 -43
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +13 -0
  25. package/dist/types/vue-data-ui.d.ts +13 -0
  26. package/dist/{useNestedProp-lhL30X68.js → useNestedProp-CVOQGx-X.js} +1 -1
  27. package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
  28. package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-C9yUesCc.cjs} +1 -1
  29. package/dist/{usePrinter-DjAQofRy.js → usePrinter-DVIALk5e.js} +1 -1
  30. package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-BmmjmNbb.js} +60 -60
  31. package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +3 -3
  34. package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-f9NTID9e.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
  40. package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-C82vEb7R.js} +1 -1
  41. package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
  43. package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
  44. package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
  45. package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
  46. package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
  48. package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
  51. package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
  54. package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
  55. package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-DtNvb8lM.js} +2 -2
  56. package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-C028OlzU.js} +99 -98
  57. package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
  58. package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
  59. package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
  62. package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-QRimZUXT.js} +46 -46
  63. package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CBymVSdd.js} +19 -19
  66. package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
  68. package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
  69. package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
  74. package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
  76. package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-CZi84tUl.js} +26 -25
  82. package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
  85. package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
  86. package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-CIRGvycb.js} +49 -48
  87. package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
  88. package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
  89. package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
  90. package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
  91. package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
  93. package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
  94. package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-CXXAYowO.js} +38 -37
  95. package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DOqMciYJ.js} +2 -2
  97. package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
  98. package/dist/vue-ui-relation-circle-BEv568py.cjs +1 -0
  99. package/dist/vue-ui-relation-circle-CR3iWQV_.js +492 -0
  100. package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-B--CFaNX.js} +49 -48
  101. package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
  102. package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-C-RD4h73.js} +26 -25
  103. package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
  105. package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
  107. package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
  119. package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
  122. package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
  123. package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
  124. package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
  125. package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
  126. package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-CS-NSZjj.js} +1 -1
  127. package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
  129. package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
  134. package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
  135. package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
  136. package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
  138. package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
  139. package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
  141. package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
  142. package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-DYdcFM17.js} +79 -78
  144. package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
  145. package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
  148. package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-B3346TfB.js} +195 -185
  149. package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
  150. package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
  151. package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
  152. package/package.json +1 -1
  153. package/dist/Slicer-BXHFpzP5.cjs +0 -1
  154. package/dist/Slicer-D7x1gyjP.js +0 -400
  155. package/dist/Tooltip-BC1YZMi2.cjs +0 -1
  156. package/dist/index--lHmCKjC.cjs +0 -9
  157. package/dist/vue-ui-candlestick-CVJB9WMH.js +0 -725
  158. package/dist/vue-ui-candlestick-Cb7CgmeV.cjs +0 -2
  159. package/dist/vue-ui-donut-evolution-DWdf8MKP.cjs +0 -1
  160. package/dist/vue-ui-donut-evolution-KdVsB3m_.js +0 -895
  161. package/dist/vue-ui-quick-chart-79l8Uv8o.cjs +0 -15
  162. package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
  163. package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
  164. package/dist/vue-ui-rings-L8pGRQbs.cjs +0 -2
  165. package/dist/vue-ui-stackbar-BtOrW2Ml.cjs +0 -6
  166. package/dist/vue-ui-xy-Cqb73yZ3.cjs +0 -3
  167. package/dist/vue-ui-xy-canvas-7OwcP1-L.cjs +0 -9
@@ -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-C8XxmpRq.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-DnukYspq.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
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("./useNestedProp-DLJc0s53.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-es9bVqY_.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-lhL30X68.js";
2
+ import { u as c } from "./useNestedProp-CVOQGx-X.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),p=require("./index-B68kzBN9.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;
@@ -1,26 +1,26 @@
1
- import { ref as u, onMounted as y, onUnmounted as b, computed as p, openBlock as g, createElementBlock as x, normalizeClass as h, normalizeStyle as S, renderSlot as c, createElementVNode as $, createCommentVNode as k } from "vue";
2
- import { s as C } from "./index-DY8hDTi7.js";
3
- function B({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: a = 24, blockShiftY: d = !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-DnukYspq.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: v } = 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 > v && !d && (s.value = -m - a);
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 N(e, o, t) {
15
- y(() => e.addEventListener(o, t)), b(() => e.removeEventListener(o, t));
14
+ function Y(e, o, t) {
15
+ b(() => e.addEventListener(o, t)), g(() => e.removeEventListener(o, t));
16
16
  }
17
- function Y() {
17
+ function w() {
18
18
  const e = u(0), o = u(0);
19
- return N(window, "mousemove", (t) => {
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 w = ["innerHTML"], E = {
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(Y()), a = p(() => B({
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(() => C(o.backgroundColor, o.backgroundOpacity));
92
- return (l, s) => e.show ? (g(), x("div", {
93
- key: 0,
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
- c(l.$slots, "tooltip-before"),
100
- c(l.$slots, "default"),
101
- $("div", { innerHTML: e.content }, null, 8, w),
102
- c(l.$slots, "tooltip-after")
103
- ], 6)) : k("", !0);
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
- E as _,
108
- Y as u
115
+ T as _,
116
+ w as u
109
117
  };