vue-data-ui 3.4.5 → 3.4.6

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 (137) hide show
  1. package/dist/{PackageVersion-C-wnwkC4.js → PackageVersion-BSldVhnp.js} +1 -1
  2. package/dist/{Title-BWp-37K_.js → Title-l36lOBMx.js} +1 -1
  3. package/dist/Tooltip-oWCO1HKy.js +205 -0
  4. package/dist/{UserOptions-1OZ3jcm6.js → UserOptions-CnzumGJj.js} +113 -113
  5. package/dist/components/vue-ui-3d-bar.js +1 -1
  6. package/dist/components/vue-ui-accordion.js +1 -1
  7. package/dist/components/vue-ui-age-pyramid.js +1 -1
  8. package/dist/components/vue-ui-annotator.js +1 -1
  9. package/dist/components/vue-ui-bullet.js +1 -1
  10. package/dist/components/vue-ui-candlestick.js +1 -1
  11. package/dist/components/vue-ui-carousel-table.js +1 -1
  12. package/dist/components/vue-ui-chestnut.js +1 -1
  13. package/dist/components/vue-ui-chord.js +1 -1
  14. package/dist/components/vue-ui-circle-pack.js +1 -1
  15. package/dist/components/vue-ui-cursor.js +1 -1
  16. package/dist/components/vue-ui-dashboard.js +1 -1
  17. package/dist/components/vue-ui-digits.js +1 -1
  18. package/dist/components/vue-ui-donut-evolution.js +1 -1
  19. package/dist/components/vue-ui-donut.js +1 -1
  20. package/dist/components/vue-ui-dumbbell.js +1 -1
  21. package/dist/components/vue-ui-flow.js +1 -1
  22. package/dist/components/vue-ui-funnel.js +1 -1
  23. package/dist/components/vue-ui-galaxy.js +1 -1
  24. package/dist/components/vue-ui-gauge.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-history-plot.js +1 -1
  28. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  29. package/dist/components/vue-ui-kpi.js +1 -1
  30. package/dist/components/vue-ui-mini-loader.js +1 -1
  31. package/dist/components/vue-ui-molecule.js +1 -1
  32. package/dist/components/vue-ui-mood-radar.js +1 -1
  33. package/dist/components/vue-ui-nested-donuts.js +1 -1
  34. package/dist/components/vue-ui-onion.js +1 -1
  35. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  36. package/dist/components/vue-ui-quadrant.js +1 -1
  37. package/dist/components/vue-ui-quick-chart.js +1 -1
  38. package/dist/components/vue-ui-radar.js +1 -1
  39. package/dist/components/vue-ui-rating.js +1 -1
  40. package/dist/components/vue-ui-relation-circle.js +1 -1
  41. package/dist/components/vue-ui-ridgeline.js +1 -1
  42. package/dist/components/vue-ui-rings.js +1 -1
  43. package/dist/components/vue-ui-scatter.js +1 -1
  44. package/dist/components/vue-ui-skeleton.js +1 -1
  45. package/dist/components/vue-ui-smiley.js +1 -1
  46. package/dist/components/vue-ui-spark-trend.js +1 -1
  47. package/dist/components/vue-ui-sparkbar.js +1 -1
  48. package/dist/components/vue-ui-sparkgauge.js +1 -1
  49. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  50. package/dist/components/vue-ui-sparkline.js +1 -1
  51. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  52. package/dist/components/vue-ui-stackbar.js +1 -1
  53. package/dist/components/vue-ui-strip-plot.js +1 -1
  54. package/dist/components/vue-ui-table-heatmap.js +1 -1
  55. package/dist/components/vue-ui-table-sparkline.js +1 -1
  56. package/dist/components/vue-ui-table.js +1 -1
  57. package/dist/components/vue-ui-thermometer.js +1 -1
  58. package/dist/components/vue-ui-timer.js +1 -1
  59. package/dist/components/vue-ui-tiremarks.js +1 -1
  60. package/dist/components/vue-ui-treemap.js +1 -1
  61. package/dist/components/vue-ui-vertical-bar.js +1 -1
  62. package/dist/components/vue-ui-waffle.js +1 -1
  63. package/dist/components/vue-ui-wheel.js +1 -1
  64. package/dist/components/vue-ui-word-cloud.js +1 -1
  65. package/dist/components/vue-ui-world.js +1 -1
  66. package/dist/components/vue-ui-xy-canvas.js +1 -1
  67. package/dist/components/vue-ui-xy.js +1 -1
  68. package/dist/style.css +1 -1
  69. package/dist/types/vue-data-ui.d.ts +1 -0
  70. package/dist/{useNestedProp-dJX_8vvZ.js → useNestedProp-BjZe1Y85.js} +2 -1
  71. package/dist/{vue-data-ui-BMm1cH_7.js → vue-data-ui-BCOCglbX.js} +63 -63
  72. package/dist/vue-data-ui.js +64 -64
  73. package/dist/{vue-ui-3d-bar-KbXMgsD4.js → vue-ui-3d-bar-E-nuI5P-.js} +3 -3
  74. package/dist/{vue-ui-accordion-UpZ765hd.js → vue-ui-accordion-CZ0thhxa.js} +1 -1
  75. package/dist/{vue-ui-age-pyramid-CAnvJqVu.js → vue-ui-age-pyramid-DfN03uDZ.js} +3 -3
  76. package/dist/{vue-ui-annotator--8upDtTs.js → vue-ui-annotator-BylDgUVb.js} +2 -2
  77. package/dist/{vue-ui-bullet-vEsqg-Wk.js → vue-ui-bullet-DVOmSxcg.js} +3 -3
  78. package/dist/{vue-ui-candlestick-C2q8lhDv.js → vue-ui-candlestick-C0tlhgvf.js} +3 -3
  79. package/dist/{vue-ui-carousel-table-7ZDbJPdA.js → vue-ui-carousel-table-Bwf70lBb.js} +2 -2
  80. package/dist/{vue-ui-chestnut-jHiG8RhC.js → vue-ui-chestnut-CzNj08EH.js} +2 -2
  81. package/dist/{vue-ui-chord-Br7aGEQ3.js → vue-ui-chord-CQAAGCjj.js} +3 -3
  82. package/dist/{vue-ui-circle-pack-CkDTsG3R.js → vue-ui-circle-pack-8Ut7fxPJ.js} +3 -3
  83. package/dist/{vue-ui-cursor-BqWDtj2I.js → vue-ui-cursor-ik59bfC4.js} +1 -1
  84. package/dist/{vue-ui-dashboard-r8kE5hha.js → vue-ui-dashboard-CpG2L2Xk.js} +64 -64
  85. package/dist/{vue-ui-digits-Cdn6EcYe.js → vue-ui-digits-ByNNcWXi.js} +1 -1
  86. package/dist/{vue-ui-donut-SyV7u3Fk.js → vue-ui-donut-acdGdmqY.js} +3 -3
  87. package/dist/{vue-ui-donut-evolution-DiUVj1kD.js → vue-ui-donut-evolution-J2tTLcht.js} +3 -3
  88. package/dist/{vue-ui-dumbbell-Dy0L7H8E.js → vue-ui-dumbbell-DhDvD0DH.js} +3 -3
  89. package/dist/vue-ui-flow-Du9joQEy.js +964 -0
  90. package/dist/{vue-ui-funnel-CI6hxhV_.js → vue-ui-funnel-BPccZaVG.js} +3 -3
  91. package/dist/{vue-ui-galaxy-EzuozsBr.js → vue-ui-galaxy-D69X300F.js} +3 -3
  92. package/dist/{vue-ui-gauge-fB0yh37Y.js → vue-ui-gauge-C_tPaN05.js} +3 -3
  93. package/dist/{vue-ui-gizmo-Bdgj1nqN.js → vue-ui-gizmo-Bsc620Bs.js} +2 -2
  94. package/dist/{vue-ui-heatmap-BmVWhxg-.js → vue-ui-heatmap-CRoQ0Xo1.js} +4 -4
  95. package/dist/{vue-ui-history-plot-C2glM-Ch.js → vue-ui-history-plot-PQT8iCyT.js} +3 -3
  96. package/dist/{vue-ui-kpi-CVpJH51G.js → vue-ui-kpi-BGGff8LM.js} +2 -2
  97. package/dist/{vue-ui-mini-loader-b4D0tPsD.js → vue-ui-mini-loader-CSF-7TJL.js} +1 -1
  98. package/dist/{vue-ui-molecule-D4SUfwjo.js → vue-ui-molecule-C0hQ1BHF.js} +2 -2
  99. package/dist/{vue-ui-mood-radar-CJt19tCD.js → vue-ui-mood-radar-DMng4w8x.js} +3 -3
  100. package/dist/{vue-ui-nested-donuts-vpUAKVVs.js → vue-ui-nested-donuts-DtnysjV9.js} +3 -3
  101. package/dist/{vue-ui-onion-DhgSgY5m.js → vue-ui-onion-C0Z5_zay.js} +3 -3
  102. package/dist/{vue-ui-parallel-coordinate-plot-B6SLr7sn.js → vue-ui-parallel-coordinate-plot-C0grlzOd.js} +3 -3
  103. package/dist/{vue-ui-quadrant-Ctik4Ah_.js → vue-ui-quadrant-BJGF3wuL.js} +3 -3
  104. package/dist/{vue-ui-quick-chart-BM5eEuC7.js → vue-ui-quick-chart-CaR3jp1D.js} +2 -2
  105. package/dist/{vue-ui-radar-D8SgJ4tK.js → vue-ui-radar-wYNRX7Uh.js} +3 -3
  106. package/dist/{vue-ui-rating-CvJlfRvs.js → vue-ui-rating-CiMoFM_c.js} +1 -1
  107. package/dist/{vue-ui-relation-circle-s1sWs_WI.js → vue-ui-relation-circle-CIwou-3d.js} +3 -3
  108. package/dist/{vue-ui-ridgeline-DjAxHRqR.js → vue-ui-ridgeline-DnzoIClq.js} +3 -3
  109. package/dist/{vue-ui-rings-vO1AGupU.js → vue-ui-rings-B7zSZa8h.js} +3 -3
  110. package/dist/{vue-ui-scatter-DN_7iGgB.js → vue-ui-scatter-Bevyh8s3.js} +3 -3
  111. package/dist/{vue-ui-skeleton-DGSWEtd8.js → vue-ui-skeleton-DfuGqFYM.js} +2 -2
  112. package/dist/{vue-ui-smiley-D3k4b6h1.js → vue-ui-smiley-sGFRbn31.js} +1 -1
  113. package/dist/{vue-ui-spark-trend-D9ZTHsa9.js → vue-ui-spark-trend-D16UBZxk.js} +2 -2
  114. package/dist/{vue-ui-sparkbar-DZpkkEtB.js → vue-ui-sparkbar-Dl1kY_5e.js} +2 -2
  115. package/dist/{vue-ui-sparkgauge-DGtUfL_p.js → vue-ui-sparkgauge-iJIT26xG.js} +2 -2
  116. package/dist/{vue-ui-sparkhistogram-BFTP4gTI.js → vue-ui-sparkhistogram-Bawjmfxu.js} +2 -2
  117. package/dist/{vue-ui-sparkline-CU8Va2AD.js → vue-ui-sparkline-CGVoLIcr.js} +2 -2
  118. package/dist/{vue-ui-sparkstackbar-UVkUOUYB.js → vue-ui-sparkstackbar-CdlGAlFM.js} +2 -2
  119. package/dist/{vue-ui-stackbar-ksABSPMl.js → vue-ui-stackbar-Cjz4PvOG.js} +3 -3
  120. package/dist/{vue-ui-strip-plot-CtnEtJKi.js → vue-ui-strip-plot-DS84cU6V.js} +3 -3
  121. package/dist/{vue-ui-table-heatmap-zbRs5HKh.js → vue-ui-table-heatmap-B4rjR34n.js} +2 -2
  122. package/dist/{vue-ui-table-sparkline-g3zovGbg.js → vue-ui-table-sparkline-CAqqSvhG.js} +2 -2
  123. package/dist/{vue-ui-table-D_r5Yi-t.js → vue-ui-table-t9Shp522.js} +3 -3
  124. package/dist/{vue-ui-thermometer-ChGRvASK.js → vue-ui-thermometer-CKciCjTK.js} +3 -3
  125. package/dist/{vue-ui-timer-ClBUDPDN.js → vue-ui-timer-CNwoVRn5.js} +3 -3
  126. package/dist/{vue-ui-tiremarks-Drrj3Zrx.js → vue-ui-tiremarks-Dxp9rcJi.js} +3 -3
  127. package/dist/{vue-ui-treemap-B9iT80T5.js → vue-ui-treemap-D4cRZ9SZ.js} +3 -3
  128. package/dist/{vue-ui-vertical-bar-DtNL4lAc.js → vue-ui-vertical-bar-Cz6yCNYK.js} +4 -4
  129. package/dist/{vue-ui-waffle-DtotUBJA.js → vue-ui-waffle-BhQ0m4Ia.js} +3 -3
  130. package/dist/{vue-ui-wheel-D6F9i5SF.js → vue-ui-wheel-Bh_G3WQQ.js} +3 -3
  131. package/dist/{vue-ui-word-cloud-B0T-B3Oa.js → vue-ui-word-cloud-Bk2yP7oQ.js} +3 -3
  132. package/dist/{vue-ui-world-Bwvp67h5.js → vue-ui-world-C_eUAzmI.js} +2 -2
  133. package/dist/{vue-ui-xy-BDCmrr2a.js → vue-ui-xy-BDc2EKMr.js} +4 -4
  134. package/dist/{vue-ui-xy-canvas-Dm-LZ-LP.js → vue-ui-xy-canvas-BGl_2pHw.js} +4 -4
  135. package/package.json +2 -2
  136. package/dist/Tooltip-68Yi_FFl.js +0 -200
  137. package/dist/vue-ui-flow-_6RQ-gmk.js +0 -931
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
2
- const n = "3.4.5", a = { "aria-hidden": "true" }, p = {
2
+ const n = "3.4.6", a = { "aria-hidden": "true" }, p = {
3
3
  __name: "PackageVersion",
4
4
  setup(s) {
5
5
  return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));
@@ -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 { a as s } from "./useNestedProp-dJX_8vvZ.js";
2
+ import { a as s } from "./useNestedProp-BjZe1Y85.js";
3
3
  const b = {
4
4
  __name: "Title",
5
5
  props: {
@@ -0,0 +1,205 @@
1
+ import { ref as c, onMounted as C, onUnmounted as k, watch as g, nextTick as T, computed as y, createBlock as w, openBlock as S, Teleport as N, createElementBlock as $, createCommentVNode as M, normalizeStyle as Y, normalizeClass as z, renderSlot as h, createElementVNode as A } from "vue";
2
+ import { s as E } from "./lib-C_mNZmhD.js";
3
+ function R({ tooltip: a, chart: r, clientPosition: e, positionPreference: p = "center", defaultOffsetY: m = 24, blockShiftY: v = !1 }) {
4
+ const t = c(0), l = c(m);
5
+ if (a && r) {
6
+ const { width: n, height: i } = a.getBoundingClientRect(), { right: s, left: d, bottom: f } = r.getBoundingClientRect();
7
+ p === "center" && (e.x + n / 2 > s ? t.value = -n + (s - e.x) : e.x - n / 2 < d ? t.value = -n + (n - (e.x - d)) : t.value = -n / 2), p === "right" && (e.x + n > s ? t.value = -n + (s - e.x) : t.value = 0), p === "left" && (e.x < d + n ? t.value = -n + (n - (e.x - d)) : t.value = -n), e.y + i > f && !v && (l.value = -i - m);
8
+ }
9
+ return {
10
+ top: e.y + l.value,
11
+ left: e.x + t.value
12
+ };
13
+ }
14
+ function L(a, r, e) {
15
+ C(() => a.addEventListener(r, e)), k(() => a.removeEventListener(r, e));
16
+ }
17
+ function O() {
18
+ const a = c(0), r = c(0);
19
+ return L(window, "mousemove", (e) => {
20
+ a.value = e.clientX, r.value = e.clientY;
21
+ }), { x: a, y: r };
22
+ }
23
+ const W = ["aria-hidden"], j = ["innerHTML"], I = {
24
+ __name: "Tooltip",
25
+ props: {
26
+ backgroundColor: {
27
+ type: String,
28
+ default: "#FFFFFF"
29
+ },
30
+ color: {
31
+ type: String,
32
+ default: "#000000"
33
+ },
34
+ content: String,
35
+ maxWidth: {
36
+ type: String,
37
+ default: "300px"
38
+ },
39
+ parent: {
40
+ type: Object
41
+ },
42
+ show: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ isCustom: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ fontSize: {
51
+ type: [Number, String],
52
+ default: 14
53
+ },
54
+ borderRadius: {
55
+ type: Number,
56
+ default: 4
57
+ },
58
+ borderColor: {
59
+ type: String,
60
+ default: "#e1e5e8"
61
+ },
62
+ borderWidth: {
63
+ type: Number,
64
+ default: 1
65
+ },
66
+ backgroundOpacity: {
67
+ type: Number,
68
+ default: 100
69
+ },
70
+ position: {
71
+ type: String,
72
+ default: "center"
73
+ },
74
+ offsetY: {
75
+ type: Number,
76
+ default: 24
77
+ },
78
+ blockShiftY: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ isFullscreen: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ smooth: {
87
+ type: Boolean,
88
+ default: !0
89
+ },
90
+ backdropFilter: {
91
+ type: Boolean,
92
+ default: !0
93
+ },
94
+ smoothForce: {
95
+ type: Number,
96
+ default: 0.18
97
+ },
98
+ smoothSnapThreshold: {
99
+ type: Number,
100
+ default: 0.25
101
+ }
102
+ },
103
+ setup(a, { expose: r }) {
104
+ const e = a, p = c(null), { x: m, y: v } = O(e.parent), t = c({ x: 0, y: 0 }), l = c({ x: 0, y: 0 });
105
+ function n({ x: o, y: u }) {
106
+ m.value = o, v.value = u;
107
+ }
108
+ let i = null;
109
+ function s() {
110
+ if (!e.show) {
111
+ f();
112
+ return;
113
+ }
114
+ if (!e.smooth) {
115
+ l.value.x = t.value.x, l.value.y = t.value.y, f();
116
+ return;
117
+ }
118
+ const o = t.value.x - l.value.x, u = t.value.y - l.value.y;
119
+ if (Math.abs(o) <= e.smoothSnapThreshold && Math.abs(u) <= e.smoothSnapThreshold) {
120
+ l.value.x = t.value.x, l.value.y = t.value.y, f();
121
+ return;
122
+ }
123
+ l.value.x += o * e.smoothForce, l.value.y += u * e.smoothForce, i = requestAnimationFrame(s);
124
+ }
125
+ function d() {
126
+ i == null && e.show && e.smooth && (i = requestAnimationFrame(s));
127
+ }
128
+ function f() {
129
+ i != null && (cancelAnimationFrame(i), i = null);
130
+ }
131
+ g([m, v], ([o, u]) => {
132
+ t.value.x = o, t.value.y = u, e.smooth ? d() : (l.value.x = o, l.value.y = u);
133
+ }), g(
134
+ () => e.show,
135
+ async (o) => {
136
+ if (o) {
137
+ const u = m.value, b = v.value;
138
+ t.value.x = u, t.value.y = b, l.value.x = u, l.value.y = b, await T(), d();
139
+ } else
140
+ f();
141
+ }
142
+ ), k(() => {
143
+ f();
144
+ });
145
+ const x = y(() => {
146
+ const o = R({
147
+ tooltip: p.value,
148
+ chart: e.parent,
149
+ clientPosition: l.value,
150
+ positionPreference: e.position,
151
+ defaultOffsetY: e.offsetY,
152
+ blockShiftY: e.blockShiftY
153
+ });
154
+ return {
155
+ top: Math.round(o.top),
156
+ left: Math.round(o.left)
157
+ };
158
+ }), F = y(() => E(e.backgroundColor, e.backgroundOpacity)), B = y(() => {
159
+ const o = {
160
+ pointerEvents: "none",
161
+ position: "fixed",
162
+ top: "0px",
163
+ left: "0px",
164
+ transform: `translate3d(${x.value.left}px, ${x.value.top}px, 0)`,
165
+ borderRadius: `${e.borderRadius}px`,
166
+ border: `${e.borderWidth}px solid ${e.borderColor}`,
167
+ zIndex: 2147483647
168
+ };
169
+ return e.isCustom || Object.assign(o, {
170
+ background: F.value,
171
+ color: e.color,
172
+ maxWidth: e.maxWidth,
173
+ fontSize: `${e.fontSize}px`
174
+ }), o;
175
+ });
176
+ return r({
177
+ placeTooltip: n
178
+ }), (o, u) => (S(), w(N, {
179
+ to: a.isFullscreen ? a.parent : "body"
180
+ }, [
181
+ a.show ? (S(), $("div", {
182
+ key: 0,
183
+ ref_key: "tooltip",
184
+ ref: p,
185
+ role: "tooltip",
186
+ "aria-hidden": !a.show,
187
+ "aria-live": "polite",
188
+ class: z({
189
+ "vue-data-ui-custom-tooltip": a.isCustom,
190
+ "vue-data-ui-tooltip": !a.isCustom,
191
+ "vue-data-ui-tooltip-backdrop": a.backdropFilter
192
+ }),
193
+ style: Y(B.value)
194
+ }, [
195
+ h(o.$slots, "tooltip-before"),
196
+ h(o.$slots, "default"),
197
+ A("div", { innerHTML: a.content }, null, 8, j),
198
+ h(o.$slots, "tooltip-after")
199
+ ], 14, W)) : M("", !0)
200
+ ], 8, ["to"]));
201
+ }
202
+ };
203
+ export {
204
+ I as default
205
+ };