vue-data-ui 2.12.5 → 2.12.7-beta.0

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 (112) hide show
  1. package/README.md +56 -1
  2. package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
  3. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  4. package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
  5. package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
  6. package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
  7. package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
  8. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  9. package/dist/PackageVersion-CLY-udAA.js +10 -0
  10. package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
  11. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  12. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  13. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  14. package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
  15. package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
  16. package/dist/SparkTooltip-CwThutH2.js +68 -0
  17. package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
  18. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  19. package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
  20. package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
  21. package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
  22. package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
  23. package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +96 -2
  26. package/dist/types/vue-data-ui.d.ts +96 -2
  27. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  28. package/dist/useMouse-AicQS8Vf.js +13 -0
  29. package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
  30. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  31. package/dist/usePrinter-CRCbl1WG.js +53 -0
  32. package/dist/vClickOutside-C6WiFswA.js +13 -0
  33. package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
  34. package/dist/vue-data-ui.js +42 -40
  35. package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  36. package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  37. package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  38. package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  39. package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  40. package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  41. package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  42. package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  43. package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
  44. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  45. package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  46. package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  47. package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  48. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  49. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  50. package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  51. package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  52. package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  53. package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  54. package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  55. package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  56. package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  57. package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  58. package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  59. package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  60. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  61. package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  62. package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  63. package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
  64. package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  65. package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  66. package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  67. package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  68. package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
  69. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  70. package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  71. package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
  72. package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  73. package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  74. package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  75. package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  76. package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  77. package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  78. package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  79. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  80. package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  81. package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  82. package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  83. package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
  84. package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  85. package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  86. package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  87. package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  88. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  89. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  90. package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  91. package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  92. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  93. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  94. package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
  95. package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
  96. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  97. package/package.json +6 -6
  98. package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
  99. package/dist/PackageVersion-Cw2caN1c.js +0 -10
  100. package/dist/Tooltip-LKe8L-Mg.js +0 -158
  101. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  102. package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
  103. package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
  104. package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
  105. package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
  106. package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
  107. package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
  108. package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
  109. package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
  110. package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
  111. package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
  112. package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
@@ -0,0 +1,64 @@
1
+ import { toRef as k, resolveComponent as d, createElementBlock as o, openBlock as e, Fragment as r, renderList as c, createCommentVNode as s, createElementVNode as y, createBlock as h } from "vue";
2
+ const g = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], x = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], C = {
3
+ __name: "RecursiveLinks",
4
+ props: {
5
+ dataset: {
6
+ type: Array,
7
+ default: () => []
8
+ },
9
+ color: {
10
+ type: String,
11
+ default: "#DDDDDD"
12
+ },
13
+ backgroundColor: {
14
+ type: String,
15
+ default: "#FFFFFF"
16
+ }
17
+ },
18
+ setup(n) {
19
+ return k(n, "dataset").value.forEach((a) => {
20
+ a.nodes && a.nodes.length > 0 && a.nodes.forEach((u) => {
21
+ u.ancestor = a;
22
+ });
23
+ }), (a, u) => {
24
+ const i = d("RecursiveLinks", !0);
25
+ return e(), o(r, null, [
26
+ (e(!0), o(r, null, c(n.dataset, (t) => (e(), o(r, null, [
27
+ t.polygonPath && t.polygonPath.coordinates ? (e(!0), o(r, { key: 0 }, c(t.polygonPath.coordinates, (l, f) => (e(), o(r, null, [
28
+ t.ancestor && t.ancestor.polygonPath ? (e(), o(r, { key: 0 }, [
29
+ y("line", {
30
+ x1: l.x,
31
+ y1: l.y,
32
+ x2: t.ancestor.polygonPath.coordinates[0].x,
33
+ y2: t.ancestor.polygonPath.coordinates[0].y,
34
+ stroke: n.backgroundColor,
35
+ "stroke-width": t.circleRadius / 1.5
36
+ }, null, 8, g),
37
+ y("line", {
38
+ x1: l.x,
39
+ y1: l.y,
40
+ x2: t.ancestor.polygonPath.coordinates[0].x,
41
+ y2: t.ancestor.polygonPath.coordinates[0].y,
42
+ stroke: n.color,
43
+ "stroke-width": t.circleRadius / 2
44
+ }, null, 8, x)
45
+ ], 64)) : s("", !0)
46
+ ], 64))), 256)) : s("", !0)
47
+ ], 64))), 256)),
48
+ (e(!0), o(r, null, c(n.dataset, (t) => (e(), o(r, null, [
49
+ t.polygonPath && t.polygonPath.coordinates ? (e(), o(r, { key: 0 }, [
50
+ t.nodes && t.nodes.length > 0 ? (e(), h(i, {
51
+ key: 0,
52
+ dataset: t.nodes,
53
+ color: n.color,
54
+ backgroundColor: n.backgroundColor
55
+ }, null, 8, ["dataset", "color", "backgroundColor"])) : s("", !0)
56
+ ], 64)) : s("", !0)
57
+ ], 64))), 256))
58
+ ], 64);
59
+ };
60
+ }
61
+ };
62
+ export {
63
+ C as default
64
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a } from "vue";
2
- import { Z as c, Q as f } from "./index-vjCxtaM0.js";
2
+ import { Z as c, Q as f } from "./index-BiHmNd1-.js";
3
3
  const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], h = {
4
4
  __name: "Shape",
5
5
  props: {
@@ -106,5 +106,5 @@ const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill",
106
106
  }
107
107
  };
108
108
  export {
109
- h as _
109
+ h as default
110
110
  };
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
2
- import Ve from "./BaseIcon-CgSWwnK7.js";
2
+ import Ve from "./BaseIcon-CZdMutjs.js";
3
3
  import { t as We, u as Xe } from "./useResponsive-JZ9xq-JV.js";
4
- import { c as Ue, U as me, T as ce, X as Oe, G as he } from "./index-vjCxtaM0.js";
4
+ import { c as Ue, U as me, T as ce, X as Oe, G as he } from "./index-BiHmNd1-.js";
5
5
  import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Ge = {
7
7
  class: "vue-data-ui-slicer-labels",
@@ -0,0 +1,68 @@
1
+ import { toRef as c, ref as a, computed as v, onMounted as m, watch as y, createElementBlock as b, openBlock as g, normalizeStyle as x, renderSlot as k, nextTick as S } from "vue";
2
+ import { s as _, am as i } from "./index-BiHmNd1-.js";
3
+ import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const R = {
5
+ __name: "SparkTooltip",
6
+ props: {
7
+ svgRef: { type: Object },
8
+ x: { type: Number, required: !0 },
9
+ y: { type: Number, required: !0 },
10
+ prevX: { type: Number, required: !0 },
11
+ prevY: { type: Number, required: !0 },
12
+ offsetY: { type: Number, default: 0 },
13
+ background: { type: String },
14
+ backgroundOpacity: { type: Number, default: 100 },
15
+ borderRadius: { type: Number, default: 2 },
16
+ borderWidth: { type: Number, default: 0 },
17
+ borderColor: { type: String, default: "#FFFFFF" },
18
+ color: { type: String },
19
+ fontSize: { type: Number }
20
+ },
21
+ setup(d) {
22
+ const e = d, u = c(e.svgRef), o = a(null), n = a(0), l = a(0), s = a(!1), f = v(() => _(e.background, e.backgroundOpacity)), p = async () => {
23
+ if (!u.value || !o.value) return;
24
+ const t = i({
25
+ svgElement: u.value,
26
+ element: o.value,
27
+ x: e.x,
28
+ y: e.y,
29
+ offsetY: e.offsetY
30
+ }), r = i({
31
+ svgElement: u.value,
32
+ element: o.value,
33
+ x: e.prevX,
34
+ y: e.prevY,
35
+ offsetY: e.offsetY
36
+ });
37
+ !t || !r || (s.value = !1, n.value = r.top, l.value = r.left, await S(), setTimeout(() => {
38
+ s.value = !0, n.value = t.top, l.value = t.left;
39
+ }, 50));
40
+ };
41
+ return m(p), y(
42
+ () => [e.x, e.y, e.prevX, e.prevY],
43
+ () => p(),
44
+ { immediate: !0 }
45
+ ), (t, r) => (g(), b("div", {
46
+ ref_key: "tooltipRef",
47
+ ref: o,
48
+ class: "vue-data-ui-spark-tooltip",
49
+ style: x({
50
+ position: "fixed",
51
+ top: `${n.value}px`,
52
+ left: `${l.value}px`,
53
+ pointerEvents: "none",
54
+ background: f.value,
55
+ color: e.color,
56
+ fontSize: `${e.fontSize}px`,
57
+ borderRadius: `${e.borderRadius}px`,
58
+ border: `${e.borderWidth}px solid ${e.borderColor}`,
59
+ transition: s.value ? "top 0.3s ease-out, left 0.3s ease-out" : "none"
60
+ })
61
+ }, [
62
+ k(t.$slots, "default", {}, void 0, !0)
63
+ ], 4));
64
+ }
65
+ }, F = /* @__PURE__ */ N(R, [["__scopeId", "data-v-c8e27542"]]);
66
+ export {
67
+ F as default
68
+ };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
2
- import { u as c } from "./useNestedProp-Du1hnYFA.js";
2
+ import { u as c } from "./useNestedProp-tRqS0ZAM.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -57,5 +57,5 @@ const x = {
57
57
  }
58
58
  };
59
59
  export {
60
- x as _
60
+ x as default
61
61
  };
@@ -0,0 +1,149 @@
1
+ import { ref as m, watch as p, nextTick as g, onUnmounted as S, computed as x, createBlock as k, openBlock as h, Teleport as $, createElementBlock as C, createCommentVNode as F, normalizeStyle as B, normalizeClass as N, renderSlot as v, createElementVNode as w } from "vue";
2
+ import { u as z } from "./useMouse-AicQS8Vf.js";
3
+ import { s as T } from "./index-BiHmNd1-.js";
4
+ function Y({ tooltip: t, chart: n, clientPosition: l, positionPreference: s = "center", defaultOffsetY: d = 24, blockShiftY: u = !1 }) {
5
+ const e = m(0), i = m(d);
6
+ if (t && n) {
7
+ const { width: a, height: c } = t.getBoundingClientRect(), { right: f, left: o, bottom: r } = n.getBoundingClientRect();
8
+ s === "center" && (l.x + a / 2 > f ? e.value = -a + (f - l.x) : l.x - a / 2 < o ? e.value = -a + (a - (l.x - o)) : e.value = -a / 2), s === "right" && (l.x + a > f ? e.value = -a + (f - l.x) : e.value = 0), s === "left" && (l.x < o + a ? e.value = -a + (a - (l.x - o)) : e.value = -a), l.y + c > r && !u && (i.value = -c - d);
9
+ }
10
+ return {
11
+ top: l.y + i.value,
12
+ left: l.x + e.value
13
+ };
14
+ }
15
+ const M = ["aria-hidden"], O = ["innerHTML"], b = 0.18, E = {
16
+ __name: "Tooltip",
17
+ props: {
18
+ backgroundColor: {
19
+ type: String,
20
+ default: "#FFFFFF"
21
+ },
22
+ color: {
23
+ type: String,
24
+ default: "#000000"
25
+ },
26
+ content: String,
27
+ maxWidth: {
28
+ type: String,
29
+ default: "300px"
30
+ },
31
+ parent: {
32
+ type: Object
33
+ },
34
+ show: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ isCustom: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ fontSize: {
43
+ type: [Number, String],
44
+ default: 14
45
+ },
46
+ borderRadius: {
47
+ type: Number,
48
+ default: 4
49
+ },
50
+ borderColor: {
51
+ type: String,
52
+ default: "#e1e5e8"
53
+ },
54
+ borderWidth: {
55
+ type: Number,
56
+ default: 1
57
+ },
58
+ backgroundOpacity: {
59
+ type: Number,
60
+ default: 100
61
+ },
62
+ position: {
63
+ type: String,
64
+ default: "center"
65
+ },
66
+ offsetY: {
67
+ type: Number,
68
+ default: 24
69
+ },
70
+ blockShiftY: {
71
+ type: Boolean,
72
+ default: !1
73
+ },
74
+ isFullscreen: {
75
+ type: Boolean,
76
+ default: !1
77
+ },
78
+ disableSmoothing: {
79
+ type: Boolean,
80
+ default: !1
81
+ }
82
+ },
83
+ setup(t) {
84
+ const n = t, l = m(null), { x: s, y: d } = z(n.parent), u = m({ x: 0, y: 0 }), e = m({ x: 0, y: 0 });
85
+ let i = null;
86
+ function a() {
87
+ if (n.disableSmoothing) {
88
+ e.value.x = u.value.x, e.value.y = u.value.y;
89
+ return;
90
+ }
91
+ e.value.x += (u.value.x - e.value.x) * b, e.value.y += (u.value.y - e.value.y) * b, i = requestAnimationFrame(a);
92
+ }
93
+ p([s, d], ([o, r]) => {
94
+ u.value.x = o, u.value.y = r, n.disableSmoothing && (e.value.x = o, e.value.y = r);
95
+ }), p(() => n.show, async (o) => {
96
+ if (o) {
97
+ const r = s.value, y = d.value;
98
+ u.value.x = r, u.value.y = y, e.value.x = r, e.value.y = y, await g(), i || a();
99
+ } else
100
+ i && (cancelAnimationFrame(i), i = null);
101
+ }), S(() => {
102
+ i && cancelAnimationFrame(i);
103
+ });
104
+ const c = x(() => {
105
+ const o = Y({
106
+ tooltip: l.value,
107
+ chart: n.parent,
108
+ clientPosition: e.value,
109
+ positionPreference: n.position,
110
+ defaultOffsetY: n.offsetY,
111
+ blockShiftY: n.blockShiftY
112
+ });
113
+ return {
114
+ top: Math.round(o.top),
115
+ left: Math.round(o.left)
116
+ };
117
+ }), f = x(() => T(n.backgroundColor, n.backgroundOpacity));
118
+ return (o, r) => (h(), k($, {
119
+ to: t.isFullscreen ? t.parent : "body"
120
+ }, [
121
+ t.show ? (h(), C("div", {
122
+ key: 0,
123
+ ref_key: "tooltip",
124
+ ref: l,
125
+ role: "tooltip",
126
+ "aria-hidden": !t.show,
127
+ "aria-live": "polite",
128
+ class: N({ "vue-data-ui-custom-tooltip": t.isCustom, "vue-data-ui-tooltip": !t.isCustom }),
129
+ style: B(`
130
+ pointer-events:none;
131
+ top:${c.value.top}px;
132
+ left:${c.value.left}px;
133
+ ${t.isCustom ? "" : `background:${f.value};color:${t.color};max-width:${t.maxWidth};font-size:${t.fontSize}px`};
134
+ border-radius:${t.borderRadius}px;
135
+ border:${t.borderWidth}px solid ${t.borderColor};
136
+ z-index:2147483647;
137
+ `)
138
+ }, [
139
+ v(o.$slots, "tooltip-before"),
140
+ v(o.$slots, "default"),
141
+ w("div", { innerHTML: t.content }, null, 8, O),
142
+ v(o.$slots, "tooltip-after")
143
+ ], 14, M)) : F("", !0)
144
+ ], 8, ["to"]));
145
+ }
146
+ };
147
+ export {
148
+ E as default
149
+ };