vue-data-ui 3.1.3 → 3.1.5

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-DBaAWGvq.js → Arrow-BFbcF5Sq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BmN9jTP8.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
  3. package/dist/{BaseIcon-BcOSijbz.js → BaseIcon-BQQGRQ2U.js} +1 -1
  4. package/dist/{ColorPicker-D1yNPt76.js → ColorPicker-d1kmGapq.js} +2 -2
  5. package/dist/{DataTable-Cm8Tt9PQ.js → DataTable-D6voeZvO.js} +2 -2
  6. package/dist/{Legend-5qvgVkrY.js → Legend-nPGcCxG_.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D3QGd7vP.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
  8. package/dist/{PackageVersion-0XlRFsI_.js → PackageVersion-BeStrsPr.js} +1 -1
  9. package/dist/{PenAndPaper-CyH7Ip2i.js → PenAndPaper-C6tiapdo.js} +3 -3
  10. package/dist/{Shape-DiplSMFy.js → Shape-DBVq0fdK.js} +1 -1
  11. package/dist/Slicer-Duqm7KZK.js +597 -0
  12. package/dist/{SparkTooltip-VveQSwlw.js → SparkTooltip-wNGmXZSx.js} +1 -1
  13. package/dist/{Title-CqYBs02Y.js → Title-ydtId0LC.js} +1 -1
  14. package/dist/Tooltip-oeu9knGI.js +200 -0
  15. package/dist/{UserOptions-ZmwlARCV.js → UserOptions-CnJxN2Vo.js} +29 -29
  16. package/dist/{dom-to-png-DGA4a3xT.js → dom-to-png-CMCYtLrX.js} +1 -1
  17. package/dist/{img-DSrvx9J6.js → img-Neec0VVb.js} +1 -1
  18. package/dist/{index-CaxArMHL.js → index-BkfuZCRT.js} +7 -2
  19. package/dist/{pdf-BG8PiGFH.js → pdf-CpQ-dqJh.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +12 -0
  22. package/dist/types/vue-data-ui.d.ts +12 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DmtFf4bt.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
  24. package/dist/{useNestedProp-tWT02_6S.js → useNestedProp-BMzw9VUz.js} +1 -1
  25. package/dist/{usePrinter-BYtPmEo8.js → usePrinter-CEdg3j8S.js} +2 -2
  26. package/dist/{vue-data-ui-DVb8r5z7.js → vue-data-ui-D5B7a84o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BLKyWpz7.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
  29. package/dist/{vue-ui-accordion-DUlNpLir.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-LLqbXP1m.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
  31. package/dist/{vue-ui-annotator-CcYIlcKF.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
  32. package/dist/{vue-ui-bullet-BKmts_u4.js → vue-ui-bullet-VPchh2r2.js} +7 -7
  33. package/dist/{vue-ui-candlestick-C9l_NpXu.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
  34. package/dist/{vue-ui-carousel-table-H7xS6aBC.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CAW0IOdY.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
  36. package/dist/{vue-ui-chord-CK5YhCqM.js → vue-ui-chord-DVSBY9ou.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-NLyZgTGF.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CyGUrKWU.js → vue-ui-cursor-BIuc6nds.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Cf5pvEzD.js → vue-ui-dashboard-C7xIcrvD.js} +79 -80
  40. package/dist/{vue-ui-digits-BZWwwp7c.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
  41. package/dist/{vue-ui-donut-g1WHrj6G.js → vue-ui-donut-BApz1ho5.js} +52 -50
  42. package/dist/{vue-ui-donut-evolution-CaEYMVZj.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-BArS1nXS.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
  44. package/dist/{vue-ui-flow-BR0CB5qt.js → vue-ui-flow-COtJRNLE.js} +40 -38
  45. package/dist/{vue-ui-funnel-D2OCItvq.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
  46. package/dist/{vue-ui-galaxy-qgGF1AAf.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
  47. package/dist/{vue-ui-gauge-BIXmGyQL.js → vue-ui-gauge-CFUA5ORH.js} +8 -8
  48. package/dist/{vue-ui-gizmo-DHEoS051.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tRzq9BnI.js → vue-ui-heatmap-DakytdCv.js} +68 -66
  50. package/dist/{vue-ui-history-plot-DmwHhrDk.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
  51. package/dist/{vue-ui-kpi-C2b2R5i1.js → vue-ui-kpi-UmcKQftv.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bs1Mi1tD.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
  53. package/dist/{vue-ui-molecule-BsUvf2v7.js → vue-ui-molecule-BZrmSVps.js} +63 -61
  54. package/dist/{vue-ui-mood-radar-D3JIpVvX.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-dJEgQXTH.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
  56. package/dist/{vue-ui-onion-D8dF1DdA.js → vue-ui-onion-aHCc3r7L.js} +38 -36
  57. package/dist/{vue-ui-parallel-coordinate-plot-LmFsg7UA.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
  58. package/dist/{vue-ui-quadrant-C4O8ki4N.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
  59. package/dist/{vue-ui-quick-chart-6bEtTQBG.js → vue-ui-quick-chart-CJ2Wdln9.js} +152 -150
  60. package/dist/{vue-ui-radar-CfjGWGk3.js → vue-ui-radar-Cgnooz7-.js} +121 -119
  61. package/dist/{vue-ui-rating-D3WSs2OD.js → vue-ui-rating-DF71ymNG.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DzTfi7Tf.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-NtYOJvDy.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
  64. package/dist/{vue-ui-rings-CYQ4i71V.js → vue-ui-rings-C4hKgrft.js} +162 -160
  65. package/dist/{vue-ui-scatter-meJEHdAD.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
  66. package/dist/{vue-ui-skeleton-BtILTxx-.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
  67. package/dist/{vue-ui-smiley-B5bELpYD.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-lixdWq_N.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CaGPav-J.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-BZBGYDjs.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Bp6KxpjH.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CF-EAZa6.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-Cj1LAYC8.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
  74. package/dist/{vue-ui-stackbar-BrzKhqAK.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
  75. package/dist/{vue-ui-strip-plot-BfVVaSFn.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
  76. package/dist/{vue-ui-table-CBzNgzVP.js → vue-ui-table-BItmKbvF.js} +156 -121
  77. package/dist/{vue-ui-table-heatmap-CKz5bA7N.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-O-Z0YH6u.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
  79. package/dist/{vue-ui-thermometer-DpNyTGNH.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
  80. package/dist/{vue-ui-timer-uvshaRMI.js → vue-ui-timer-BIv2sfQA.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-A8Akuz-q.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
  82. package/dist/{vue-ui-treemap-Dvmuo3tM.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
  83. package/dist/{vue-ui-vertical-bar-eMgRMSKN.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
  84. package/dist/{vue-ui-waffle-Cm8VfnG8.js → vue-ui-waffle-CewP8k-W.js} +67 -65
  85. package/dist/{vue-ui-wheel-Bhsklf_m.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-C9HGLsG4.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
  87. package/dist/{vue-ui-world-B_MrjwGJ.js → vue-ui-world-CuwXMI3D.js} +11 -9
  88. package/dist/{vue-ui-xy-DnYJw2aS.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
  89. package/dist/{vue-ui-xy-canvas-C0Snw0Dz.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
  90. package/package.json +1 -1
  91. package/dist/Slicer-DG99wPTy.js +0 -604
  92. package/dist/Tooltip-CP0tVHAf.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-CaxArMHL.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
- };