vue-data-ui 3.0.0-next.1 → 3.0.0-next.11

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 (98) hide show
  1. package/README.md +17 -2
  2. package/dist/{Arrow-BKKETqRi.js → Arrow-BumHStgn.js} +1 -1
  3. package/dist/{BaseDraggableDialog-Duz4Bd3A.js → BaseDraggableDialog-DyfbXmZG.js} +2 -2
  4. package/dist/{BaseIcon-BAHAKjob.js → BaseIcon-Csn-zJvC.js} +1 -1
  5. package/dist/{ColorPicker-oPTO1J9Q.js → ColorPicker-BgmqqeH1.js} +2 -2
  6. package/dist/{DataTable-vByThHdN.js → DataTable-YE6ic3rt.js} +2 -2
  7. package/dist/{Legend-CIElSUHU.js → Legend-4BgVMpri.js} +19 -18
  8. package/dist/{NonSvgPenAndPaper-CsY6Bf4e.js → NonSvgPenAndPaper-B0mzIi05.js} +3 -3
  9. package/dist/{PackageVersion-B0wGS6pw.js → PackageVersion-B2CeOoV6.js} +1 -1
  10. package/dist/{PenAndPaper-7o0xS-d4.js → PenAndPaper-BFQVPcRp.js} +3 -3
  11. package/dist/{Shape-Blrp5ZfP.js → Shape-CroY0C3X.js} +1 -1
  12. package/dist/{Slicer-CcM8hzCn.js → Slicer-DyOgqjbE.js} +2 -2
  13. package/dist/{SparkTooltip-iaouYun8.js → SparkTooltip-CN9w85q0.js} +1 -1
  14. package/dist/{Title-CWxjC3bE.js → Title-DjBxXxcf.js} +1 -1
  15. package/dist/Tooltip-B1tfk8HO.js +157 -0
  16. package/dist/{UserOptions-BEBaPSlU.js → UserOptions-D5NKm1p2.js} +2 -2
  17. package/dist/{dom-to-png-CrAOuxmd.js → dom-to-png-CLXgpFrO.js} +1 -1
  18. package/dist/{img-D3JvqNF8.js → img-COyqv7Eu.js} +1 -1
  19. package/dist/{index-BSa4GlHG.js → index-B18WZMC2.js} +1488 -1419
  20. package/dist/{pdf-DROWzopj.js → pdf-0V6KaoQ7.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +82 -57
  23. package/dist/types/vue-data-ui.d.ts +82 -57
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-uR74_CFG.js → useNestedProp-BAA7pZpP.js} +1 -1
  26. package/dist/{usePrinter-j3g1L2nh.js → usePrinter-DLC5qcfA.js} +2 -2
  27. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DG97x2hL.js} +139 -132
  28. package/dist/{vue-data-ui-BzMRz9Un.js → vue-data-ui-MD7Usulv.js} +80 -74
  29. package/dist/vue-data-ui.js +53 -52
  30. package/dist/{vue-ui-3d-bar-BAOGEe-m.js → vue-ui-3d-bar-C5DWtmzR.js} +6 -6
  31. package/dist/{vue-ui-accordion-DzF-SPaZ.js → vue-ui-accordion-DIEZJTdv.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-BRdQ44O4.js → vue-ui-age-pyramid-CKCNoYVa.js} +6 -6
  33. package/dist/{vue-ui-annotator-mjIKrhYa.js → vue-ui-annotator-xIlsj0ow.js} +2 -2
  34. package/dist/{vue-ui-bullet-CLYmLvSB.js → vue-ui-bullet-BnVP2CnB.js} +7 -7
  35. package/dist/{vue-ui-candlestick-BFLmoEEN.js → vue-ui-candlestick-M1qRCtKh.js} +8 -8
  36. package/dist/{vue-ui-carousel-table-V89TMa5p.js → vue-ui-carousel-table-B7yAHP4d.js} +4 -4
  37. package/dist/{vue-ui-chestnut-C7eNjkFo.js → vue-ui-chestnut-BG33-M3B.js} +6 -6
  38. package/dist/{vue-ui-chord-BuYDLE7K.js → vue-ui-chord-C7WpP8-j.js} +8 -8
  39. package/dist/{vue-ui-circle-pack-CCMbsOpk.js → vue-ui-circle-pack-DulF_bkK.js} +26 -26
  40. package/dist/{vue-ui-cursor-BrKIImfp.js → vue-ui-cursor-ME0Ma6vw.js} +2 -2
  41. package/dist/{vue-ui-dashboard-WMKjx3iE.js → vue-ui-dashboard-qKsER9Ef.js} +62 -62
  42. package/dist/{vue-ui-digits-BoYPIuXn.js → vue-ui-digits-CW7nPiL_.js} +2 -2
  43. package/dist/vue-ui-donut-P1t5iVGi.js +1547 -0
  44. package/dist/{vue-ui-donut-evolution-DSG8NUG0.js → vue-ui-donut-evolution-CYR0d7cC.js} +9 -9
  45. package/dist/{vue-ui-dumbbell-BMveoLd_.js → vue-ui-dumbbell-BVm8h0Qm.js} +7 -7
  46. package/dist/{vue-ui-flow-Dnsik-8f.js → vue-ui-flow-DyrILcXF.js} +7 -7
  47. package/dist/{vue-ui-funnel-CQ0nHCvy.js → vue-ui-funnel-B3LqNMLp.js} +6 -6
  48. package/dist/{vue-ui-galaxy-D5L31IXm.js → vue-ui-galaxy-C_EjDJja.js} +5 -5
  49. package/dist/{vue-ui-gauge-BnuDe4Wj.js → vue-ui-gauge-BeprNkTE.js} +6 -6
  50. package/dist/{vue-ui-gizmo-DYYw-JEs.js → vue-ui-gizmo-CkY_o73P.js} +3 -3
  51. package/dist/{vue-ui-heatmap-9KJYiKzE.js → vue-ui-heatmap-GPKe2arO.js} +7 -7
  52. package/dist/{vue-ui-history-plot-QOaVWh5L.js → vue-ui-history-plot-BQUFj1WW.js} +7 -7
  53. package/dist/{vue-ui-kpi-EtTBwHGS.js → vue-ui-kpi-HkdRfRqI.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-CRnUCpsm.js → vue-ui-mini-loader-3eS6UMnq.js} +2 -2
  55. package/dist/{vue-ui-molecule-Bfk3Vhbi.js → vue-ui-molecule-Bn49jRpg.js} +5 -5
  56. package/dist/{vue-ui-mood-radar-BfRkWvgp.js → vue-ui-mood-radar-DPfbDZli.js} +7 -7
  57. package/dist/vue-ui-nested-donuts-5u4edBxG.js +1282 -0
  58. package/dist/{vue-ui-onion-DF7Z21x-.js → vue-ui-onion-CppkCdS5.js} +7 -7
  59. package/dist/{vue-ui-parallel-coordinate-plot-JVogg7k5.js → vue-ui-parallel-coordinate-plot--kTjU5iF.js} +8 -8
  60. package/dist/{vue-ui-quadrant-DpFjMZoK.js → vue-ui-quadrant-YB5C-Jyz.js} +8 -8
  61. package/dist/{vue-ui-quick-chart-NfXEFkoL.js → vue-ui-quick-chart-BwJ0A3y7.js} +7 -7
  62. package/dist/{vue-ui-radar-Dg8UovnR.js → vue-ui-radar-m2VREfJ3.js} +7 -7
  63. package/dist/{vue-ui-rating-D3cpdLRt.js → vue-ui-rating-B3xY-5Ct.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-BZTTPLCi.js → vue-ui-relation-circle-Ctv0sXIL.js} +6 -6
  65. package/dist/{vue-ui-ridgeline-CtY_J3hk.js → vue-ui-ridgeline-CaIoiE4c.js} +9 -9
  66. package/dist/{vue-ui-rings-BiA-bRgU.js → vue-ui-rings-CI3IrgPj.js} +8 -8
  67. package/dist/{vue-ui-scatter-C3sCChYD.js → vue-ui-scatter-BNF6S6vu.js} +8 -8
  68. package/dist/{vue-ui-skeleton-DY48gQ96.js → vue-ui-skeleton-CLPCQOVA.js} +3 -3
  69. package/dist/{vue-ui-smiley-DopwmgcY.js → vue-ui-smiley-PgGrSc7E.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-DO7P-2x8.js → vue-ui-spark-trend-iSacmLGA.js} +3 -3
  71. package/dist/{vue-ui-sparkbar-mqLbTvAg.js → vue-ui-sparkbar-CoeD9mlr.js} +3 -3
  72. package/dist/{vue-ui-sparkgauge-CdfZYUAZ.js → vue-ui-sparkgauge-B6f-axxi.js} +3 -3
  73. package/dist/{vue-ui-sparkhistogram-DAy--kFA.js → vue-ui-sparkhistogram-BCwY3f-T.js} +4 -4
  74. package/dist/{vue-ui-sparkline-KkG0FnmI.js → vue-ui-sparkline-Csaoql_D.js} +3 -3
  75. package/dist/{vue-ui-sparkstackbar-LDRannBB.js → vue-ui-sparkstackbar-H5_Xfbaw.js} +3 -3
  76. package/dist/{vue-ui-stackbar-Bys4yWs_.js → vue-ui-stackbar-Ji3QYGxJ.js} +10 -10
  77. package/dist/{vue-ui-strip-plot-DUBqioS2.js → vue-ui-strip-plot-CGEoBzlE.js} +7 -7
  78. package/dist/{vue-ui-table-CPWgP-71.js → vue-ui-table-CePfC3ck.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-DfrMVDEE.js → vue-ui-table-heatmap-DPx5azsf.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CNC7Lp0t.js → vue-ui-table-sparkline-B-qp1qwJ.js} +4 -4
  81. package/dist/{vue-ui-thermometer-Bby5nWIi.js → vue-ui-thermometer-BRs_SXB2.js} +6 -6
  82. package/dist/{vue-ui-timer-ym9etXUy.js → vue-ui-timer-C_j66dVp.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-C0V_XedF.js → vue-ui-tiremarks-CSITqWtv.js} +6 -6
  84. package/dist/{vue-ui-treemap-B5k0NEO3.js → vue-ui-treemap-C4Dy0F4V.js} +8 -8
  85. package/dist/vue-ui-vertical-bar-BVswRq0k.js +1106 -0
  86. package/dist/{vue-ui-waffle-DrEQsTIO.js → vue-ui-waffle-T8I_kqvp.js} +8 -8
  87. package/dist/{vue-ui-wheel-BOTBLBOr.js → vue-ui-wheel-BQYMyG3z.js} +6 -6
  88. package/dist/{vue-ui-word-cloud-Btay9XOs.js → vue-ui-word-cloud-DmyW8XBk.js} +6 -6
  89. package/dist/{vue-ui-world-zBvIXrWH.js → vue-ui-world-JR5N3N6l.js} +6 -6
  90. package/dist/vue-ui-xy-Dc1q6qyo.js +2982 -0
  91. package/dist/{vue-ui-xy-canvas-CDjYeEkq.js → vue-ui-xy-canvas-BQzv88tD.js} +9 -9
  92. package/package.json +2 -2
  93. package/dist/Tooltip-Cq9HywcX.js +0 -149
  94. package/dist/useMouse-AicQS8Vf.js +0 -13
  95. package/dist/vue-ui-donut-DJVqqXEb.js +0 -1338
  96. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +0 -1177
  97. package/dist/vue-ui-vertical-bar-DRmHFEMu.js +0 -974
  98. package/dist/vue-ui-xy-C7uPPKm9.js +0 -3149
@@ -1,15 +1,15 @@
1
1
  import { defineAsyncComponent as Q, ref as d, computed as L, useSlots as Va, onMounted as sa, watch as D, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Ga, createElementBlock as ne, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as ee, createCommentVNode as X, createBlock as N, createElementVNode as ie, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
- import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a2 as tl, G as ol, aj as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-BSa4GlHG.js";
2
+ import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a5 as tl, G as ol, ad as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-B18WZMC2.js";
3
3
  import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Te, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha } from "./useNestedProp-uR74_CFG.js";
5
- import { u as gl } from "./usePrinter-j3g1L2nh.js";
4
+ import { u as ha } from "./useNestedProp-BAA7pZpP.js";
5
+ import { u as gl } from "./usePrinter-DLC5qcfA.js";
6
6
  import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
- import bl from "./Legend-CIElSUHU.js";
9
- import xl from "./Title-CWxjC3bE.js";
10
- import { S as Ll } from "./Slicer-CcM8hzCn.js";
11
- import { u as kl } from "./useTimeLabels-Mrr0jrpL.js";
12
- import Cl from "./img-D3JvqNF8.js";
8
+ import bl from "./Legend-4BgVMpri.js";
9
+ import xl from "./Title-DjBxXxcf.js";
10
+ import { S as Ll } from "./Slicer-DyOgqjbE.js";
11
+ import { u as kl } from "./useTimeLabels-DG97x2hL.js";
12
+ import Cl from "./img-COyqv7Eu.js";
13
13
  import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Sl = ["id"], zl = ["onClick"], $l = {
15
15
  key: 2,
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
32
32
  },
33
33
  emits: ["selectLegend"],
34
34
  setup(Oe, { expose: ya, emit: fa }) {
35
- const ga = Q(() => import("./vue-ui-accordion-DzF-SPaZ.js")), pa = Q(() => import("./DataTable-vByThHdN.js")), ma = Q(() => import("./NonSvgPenAndPaper-CsY6Bf4e.js")), ba = Q(() => import("./vue-ui-skeleton-DY48gQ96.js")), xa = Q(() => import("./Tooltip-Cq9HywcX.js")), La = Q(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Oe, be = d(Qa()), P = d(null), te = d(null), s = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
35
+ const ga = Q(() => import("./vue-ui-accordion-DIEZJTdv.js")), pa = Q(() => import("./DataTable-YE6ic3rt.js")), ma = Q(() => import("./NonSvgPenAndPaper-B0mzIi05.js")), ba = Q(() => import("./vue-ui-skeleton-CLPCQOVA.js")), xa = Q(() => import("./Tooltip-B1tfk8HO.js")), La = Q(() => import("./UserOptions-D5NKm1p2.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Oe, be = d(Qa()), P = d(null), te = d(null), s = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
36
  sa(() => {
37
37
  wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
38
38
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.0.0-next.1",
4
+ "version": "3.0.0-next.11",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -105,7 +105,7 @@
105
105
  "remove-attr": "^0.0.13",
106
106
  "sass": "^1.57.1",
107
107
  "simple-git": "^3.24.0",
108
- "vite": "^7.0.1",
108
+ "vite": "^7.0.6",
109
109
  "vitest": "^3.2.4",
110
110
  "vue": "^3.5.17"
111
111
  }
@@ -1,149 +0,0 @@
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-BSa4GlHG.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
- };
@@ -1,13 +0,0 @@
1
- import { onMounted as u, onUnmounted as s, ref as t } from "vue";
2
- function i(e, n, o) {
3
- u(() => e.addEventListener(n, o)), s(() => e.removeEventListener(n, o));
4
- }
5
- function m() {
6
- const e = t(0), n = t(0);
7
- return i(window, "mousemove", (o) => {
8
- e.value = o.clientX, n.value = o.clientY;
9
- }), { x: e, y: n };
10
- }
11
- export {
12
- m as u
13
- };