vue-data-ui 3.1.4 → 3.1.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 (92) hide show
  1. package/dist/{Arrow-COJRk3pc.js → Arrow-DtlAIKPQ.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
  3. package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-D_BjQBAR.js} +1 -1
  4. package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-BeJGNqJl.js} +2 -2
  5. package/dist/{DataTable-CzO3oHys.js → DataTable-IycMkaTU.js} +2 -2
  6. package/dist/{Legend-BQqnf4BN.js → Legend-D7l8BJ7z.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
  8. package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BtfT0hV9.js} +1 -1
  9. package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-BdzDJYnr.js} +3 -3
  10. package/dist/{Shape-BEVQVI0z.js → Shape-DD3SLpa4.js} +1 -1
  11. package/dist/Slicer-DoGlWyq_.js +596 -0
  12. package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-DAfofSes.js} +1 -1
  13. package/dist/{Title-nHtPyPd9.js → Title-DbQthJAs.js} +1 -1
  14. package/dist/Tooltip-DvtYLrX2.js +200 -0
  15. package/dist/{UserOptions-D3pVnvAB.js → UserOptions-Dd5XOrwq.js} +2 -2
  16. package/dist/{dom-to-png-CcijTM69.js → dom-to-png-j6qE-sAL.js} +1 -1
  17. package/dist/{img-Bl0o2UAr.js → img-DLgjML7h.js} +1 -1
  18. package/dist/{index-INqbM37s.js → index-C0wrF8hm.js} +6 -2
  19. package/dist/{pdf-BeeAdG2m.js → pdf-Csglybwj.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
  24. package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-Bg2FlIgI.js} +1 -1
  25. package/dist/{usePrinter-9WO5mDzj.js → usePrinter-C2jvouU0.js} +2 -2
  26. package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-DaOijb0V.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
  29. package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D94C1TOK.js} +44 -42
  31. package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
  32. package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-vMGbmNWA.js} +87 -85
  34. package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
  35. package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
  36. package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-Du8GJXPN.js} +11 -11
  37. package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
  38. package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-B70FlDqP.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
  40. package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-CQy-vOC2.js} +2 -2
  41. package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-D0RdN18d.js} +53 -51
  42. package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
  43. package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
  44. package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-Dh8_ii-s.js} +82 -80
  45. package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
  46. package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-Dqklv14X.js} +49 -47
  47. package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-BpcoDwpi.js} +69 -67
  50. package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-D8tmNUHo.js} +148 -146
  51. package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-88Bguk6S.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
  53. package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-Cn8yeJLZ.js} +63 -61
  54. package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
  55. package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-D1EZ91Wm.js} +71 -69
  56. package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-B_mir5Ax.js} +40 -37
  57. package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +54 -52
  58. package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-D7ihdCkd.js} +204 -202
  59. package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-Dwc1xJtX.js} +63 -61
  60. package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-DhsgkGwF.js} +121 -119
  61. package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-D_sWv7fR.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
  64. package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-BrBkOGZk.js} +162 -160
  65. package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter--kNBhPeG.js} +158 -156
  66. package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
  67. package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-Bzmq9peq.js} +36 -34
  74. package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-C0cn-5Sz.js} +15 -13
  75. package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-D3StIxYT.js} +59 -57
  76. package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-B-wP544v.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
  80. package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-XeLnI_ia.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
  82. package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-Nd27H4H5.js} +41 -39
  83. package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-Dd1XUvnp.js} +54 -52
  84. package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-Czg-z9KF.js} +56 -54
  85. package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CB9_bPjO.js} +107 -104
  87. package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-Bo_NzzhJ.js} +12 -10
  88. package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Dc-o6Q3R.js} +1234 -1231
  89. package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-D1Do33ar.js} +46 -44
  90. package/package.json +4 -2
  91. package/dist/Slicer-Cmc94zkG.js +0 -604
  92. package/dist/Tooltip-RCWHeRDV.js +0 -161
@@ -1,161 +0,0 @@
1
- import { ref as d, onMounted as k, onUnmounted as g, watch as p, nextTick as F, computed as x, createBlock as S, openBlock as h, Teleport as $, createElementBlock as B, createCommentVNode as C, normalizeStyle as w, normalizeClass as N, renderSlot as m, createElementVNode as Y } from "vue";
2
- import { s as z } from "./index-INqbM37s.js";
3
- function M({ tooltip: e, chart: a, clientPosition: t, positionPreference: s = "center", defaultOffsetY: c = 24, blockShiftY: u = !1 }) {
4
- const o = d(0), i = d(c);
5
- if (e && a) {
6
- const { width: n, height: v } = e.getBoundingClientRect(), { right: f, left: l, bottom: r } = a.getBoundingClientRect();
7
- s === "center" && (t.x + n / 2 > f ? o.value = -n + (f - t.x) : t.x - n / 2 < l ? o.value = -n + (n - (t.x - l)) : o.value = -n / 2), s === "right" && (t.x + n > f ? o.value = -n + (f - t.x) : o.value = 0), s === "left" && (t.x < l + n ? o.value = -n + (n - (t.x - l)) : o.value = -n), t.y + v > r && !u && (i.value = -v - c);
8
- }
9
- return {
10
- top: t.y + i.value,
11
- left: t.x + o.value
12
- };
13
- }
14
- function T(e, a, t) {
15
- k(() => e.addEventListener(a, t)), g(() => e.removeEventListener(a, t));
16
- }
17
- function E() {
18
- const e = d(0), a = d(0);
19
- return T(window, "mousemove", (t) => {
20
- e.value = t.clientX, a.value = t.clientY;
21
- }), { x: e, y: a };
22
- }
23
- const L = ["aria-hidden"], O = ["innerHTML"], b = 0.18, A = {
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
- },
95
- setup(e) {
96
- const a = e, t = d(null), { x: s, y: c } = E(a.parent), u = d({ x: 0, y: 0 }), o = d({ x: 0, y: 0 });
97
- let i = null;
98
- function n() {
99
- if (!a.smooth) {
100
- o.value.x = u.value.x, o.value.y = u.value.y;
101
- return;
102
- }
103
- o.value.x += (u.value.x - o.value.x) * b, o.value.y += (u.value.y - o.value.y) * b, i = requestAnimationFrame(n);
104
- }
105
- p([s, c], ([l, r]) => {
106
- u.value.x = l, u.value.y = r, a.smooth || (o.value.x = l, o.value.y = r);
107
- }), p(() => a.show, async (l) => {
108
- if (l) {
109
- const r = s.value, y = c.value;
110
- u.value.x = r, u.value.y = y, o.value.x = r, o.value.y = y, await F(), i || n();
111
- } else
112
- i && (cancelAnimationFrame(i), i = null);
113
- }), g(() => {
114
- i && cancelAnimationFrame(i);
115
- });
116
- const v = x(() => {
117
- const l = M({
118
- tooltip: t.value,
119
- chart: a.parent,
120
- clientPosition: o.value,
121
- positionPreference: a.position,
122
- defaultOffsetY: a.offsetY,
123
- blockShiftY: a.blockShiftY
124
- });
125
- return {
126
- top: Math.round(l.top),
127
- left: Math.round(l.left)
128
- };
129
- }), f = x(() => z(a.backgroundColor, a.backgroundOpacity));
130
- return (l, r) => (h(), S($, {
131
- to: e.isFullscreen ? e.parent : "body"
132
- }, [
133
- e.show ? (h(), B("div", {
134
- key: 0,
135
- ref_key: "tooltip",
136
- ref: t,
137
- role: "tooltip",
138
- "aria-hidden": !e.show,
139
- "aria-live": "polite",
140
- class: N({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom, "vue-data-ui-tooltip-backdrop": e.backdropFilter }),
141
- style: w(`
142
- pointer-events:none;
143
- top:${v.value.top}px;
144
- left:${v.value.left}px;
145
- ${e.isCustom ? "" : `background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};
146
- border-radius:${e.borderRadius}px;
147
- border:${e.borderWidth}px solid ${e.borderColor};
148
- z-index:2147483647;
149
- `)
150
- }, [
151
- m(l.$slots, "tooltip-before"),
152
- m(l.$slots, "default"),
153
- Y("div", { innerHTML: e.content }, null, 8, O),
154
- m(l.$slots, "tooltip-after")
155
- ], 14, L)) : C("", !0)
156
- ], 8, ["to"]));
157
- }
158
- };
159
- export {
160
- A as default
161
- };