vue-data-ui 3.0.13 → 3.0.15

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 (89) hide show
  1. package/dist/{Arrow-D4tQqJus.js → Arrow-DGSYU08F.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CcC-HAUF.js → BaseDraggableDialog-C8qz7ExB.js} +2 -2
  3. package/dist/{BaseIcon-Ct07hrXe.js → BaseIcon-BA3j_Lwf.js} +1 -1
  4. package/dist/{ColorPicker-FkwhtArz.js → ColorPicker-sW0pMaCb.js} +2 -2
  5. package/dist/{DataTable-BkEwtdpl.js → DataTable-Co-fVzdq.js} +2 -2
  6. package/dist/{Legend-DgV5eb2_.js → Legend-NBffBBnn.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-he2qk9Kr.js → NonSvgPenAndPaper-CWsUFLND.js} +3 -3
  8. package/dist/{PackageVersion-TDeGly1K.js → PackageVersion-DkN4tXY6.js} +1 -1
  9. package/dist/{PenAndPaper-BXRuklxc.js → PenAndPaper-C5tGS7J9.js} +3 -3
  10. package/dist/{Shape-BwKqZIcj.js → Shape-Bgg7Nwsz.js} +1 -1
  11. package/dist/{Slicer-0BUBh_u0.js → Slicer-DzsOD_6h.js} +2 -2
  12. package/dist/{SparkTooltip-BBoQeigT.js → SparkTooltip-Cfx3n0pP.js} +1 -1
  13. package/dist/{Title-69qfEeYb.js → Title-Cdu-aDOL.js} +1 -1
  14. package/dist/{Tooltip-2KuV61f8.js → Tooltip-mB2Rs1Vj.js} +1 -1
  15. package/dist/{UserOptions-DS-5I2Ok.js → UserOptions-BMoiHEKE.js} +2 -2
  16. package/dist/{dom-to-png-Brv7KaBM.js → dom-to-png-DzfS79Op.js} +1 -1
  17. package/dist/{img-BCfGCXfh.js → img-7sjXtnNU.js} +1 -1
  18. package/dist/{index-BlZvRRI7.js → index-CjmWQAkv.js} +4 -4
  19. package/dist/{pdf-BIFwW7V2.js → pdf-BepSOa2A.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +81 -0
  22. package/dist/{useNestedProp-BfifFbAl.js → useNestedProp-DFYUwW_F.js} +1 -1
  23. package/dist/{usePrinter-BpLrNLGp.js → usePrinter-BD_X6xEq.js} +2 -2
  24. package/dist/{vue-data-ui-BT27Eb6Y.js → vue-data-ui-BHC_kJCP.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-CH5NKqoA.js → vue-ui-3d-bar-CvM_pNPs.js} +6 -6
  27. package/dist/{vue-ui-accordion-1x5Li2YN.js → vue-ui-accordion-BOmbEAe4.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-B6CBFmwP.js → vue-ui-age-pyramid-2GEKVOIu.js} +6 -6
  29. package/dist/{vue-ui-annotator-7rSaJi0p.js → vue-ui-annotator-ULK7i_cb.js} +2 -2
  30. package/dist/{vue-ui-bullet-CQ3IaRe5.js → vue-ui-bullet-CtrrTkUl.js} +7 -7
  31. package/dist/{vue-ui-candlestick-BVB-1w1S.js → vue-ui-candlestick-C8_qIKhP.js} +7 -7
  32. package/dist/{vue-ui-carousel-table-B_0756Wg.js → vue-ui-carousel-table-C5-I9TDG.js} +4 -4
  33. package/dist/{vue-ui-chestnut-BqM3o9HZ.js → vue-ui-chestnut-DbGjz6NE.js} +5 -5
  34. package/dist/{vue-ui-chord-2a9gzOXO.js → vue-ui-chord-DSav5VH4.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-BxTKQYdJ.js → vue-ui-circle-pack-Ost-SfPy.js} +6 -6
  36. package/dist/{vue-ui-cursor-Crejr-2d.js → vue-ui-cursor-CvvBIdhO.js} +2 -2
  37. package/dist/{vue-ui-dashboard-hf8KB52C.js → vue-ui-dashboard-B6jTz1V8.js} +62 -62
  38. package/dist/{vue-ui-digits-C2Mq50vP.js → vue-ui-digits-DW4j5hMp.js} +2 -2
  39. package/dist/{vue-ui-donut-vuu0Wh3B.js → vue-ui-donut-CQgVEHBd.js} +8 -8
  40. package/dist/{vue-ui-donut-evolution-ls8n5Sy4.js → vue-ui-donut-evolution-3Kg_0Aq8.js} +8 -8
  41. package/dist/{vue-ui-dumbbell-DdeFlqNp.js → vue-ui-dumbbell-B0RA0uh4.js} +7 -7
  42. package/dist/{vue-ui-flow-BMvSlz44.js → vue-ui-flow-mfN9qv9u.js} +7 -7
  43. package/dist/{vue-ui-funnel-VleV7CJ2.js → vue-ui-funnel-By1EE6eQ.js} +6 -6
  44. package/dist/{vue-ui-galaxy-ClT8Geaq.js → vue-ui-galaxy-DUnLy7nU.js} +5 -5
  45. package/dist/{vue-ui-gauge-BIkqPeUR.js → vue-ui-gauge-B9s5assa.js} +7 -7
  46. package/dist/{vue-ui-gizmo-qbbqmrWz.js → vue-ui-gizmo-D5nFPB5S.js} +3 -3
  47. package/dist/{vue-ui-heatmap-B1sallgR.js → vue-ui-heatmap-B99sMjxs.js} +7 -7
  48. package/dist/{vue-ui-history-plot-BtWcJfbt.js → vue-ui-history-plot-BcnKJSTL.js} +7 -7
  49. package/dist/{vue-ui-kpi-BMyaw85E.js → vue-ui-kpi-BoiQMCdn.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-BQQ3FjE5.js → vue-ui-mini-loader-Fd0upr6u.js} +2 -2
  51. package/dist/{vue-ui-molecule-DQkkHdr7.js → vue-ui-molecule-C8U7G10y.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-D5R_8FF0.js → vue-ui-mood-radar-83Su_aAf.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-Ld81fJrP.js → vue-ui-nested-donuts-BT9ZqiqC.js} +7 -7
  54. package/dist/{vue-ui-onion-Dbcw8jnA.js → vue-ui-onion-9JIdWtsY.js} +8 -8
  55. package/dist/{vue-ui-parallel-coordinate-plot-Z7IAguhy.js → vue-ui-parallel-coordinate-plot-C1FjeIr0.js} +8 -8
  56. package/dist/{vue-ui-quadrant-DOdfxAYM.js → vue-ui-quadrant-3WUBK3nJ.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-CcfkLspA.js → vue-ui-quick-chart-DY43gV8A.js} +6 -6
  58. package/dist/{vue-ui-radar-BIbH3MjX.js → vue-ui-radar-C4KMiQ_0.js} +8 -8
  59. package/dist/{vue-ui-rating-DkqgGQJu.js → vue-ui-rating-BvD7AC9t.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-DSdQ2Cw8.js → vue-ui-relation-circle-CkJugcvo.js} +194 -203
  61. package/dist/{vue-ui-ridgeline-CdVmHbEX.js → vue-ui-ridgeline-BWWwyiku.js} +8 -8
  62. package/dist/{vue-ui-rings-C9qUXwqg.js → vue-ui-rings--RHm1WPt.js} +8 -8
  63. package/dist/{vue-ui-scatter-BbFYgBxR.js → vue-ui-scatter-BlJi3Vto.js} +8 -8
  64. package/dist/{vue-ui-skeleton-CX1ZXulb.js → vue-ui-skeleton-BpaC2poA.js} +3 -3
  65. package/dist/{vue-ui-smiley-BoZPC1w2.js → vue-ui-smiley-DFQ-eGPr.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-lgKqL9uu.js → vue-ui-spark-trend-DBvs77p7.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-qzK8hxRg.js → vue-ui-sparkbar-5-xCacnj.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-B-xTnWVp.js → vue-ui-sparkgauge-B_Hahm_m.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-bgHNspVZ.js → vue-ui-sparkhistogram-CE3o-lRl.js} +4 -4
  70. package/dist/{vue-ui-sparkline-DEDDbr11.js → vue-ui-sparkline-RzY__SHu.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-ChMIbN6K.js → vue-ui-sparkstackbar-mf1_NIVO.js} +3 -3
  72. package/dist/{vue-ui-stackbar-CNfnfkBh.js → vue-ui-stackbar-e0_-TwRA.js} +9 -9
  73. package/dist/{vue-ui-strip-plot-URDAVcQv.js → vue-ui-strip-plot-DNF_a6tQ.js} +7 -7
  74. package/dist/{vue-ui-table-DkeJXqvG.js → vue-ui-table-DyRQD9Jx.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-BrghDQgt.js → vue-ui-table-heatmap-D0khMn8L.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-CEj7Pwxx.js → vue-ui-table-sparkline-CrEJ_BYI.js} +4 -4
  77. package/dist/{vue-ui-thermometer-gDAODqin.js → vue-ui-thermometer-WWlRC1pG.js} +7 -7
  78. package/dist/{vue-ui-timer-u5RHf7lJ.js → vue-ui-timer-DFrFvU8Z.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-DbbbGo1I.js → vue-ui-tiremarks-BcGXDBHM.js} +6 -6
  80. package/dist/{vue-ui-treemap-CUrb9Zj3.js → vue-ui-treemap-CISOrlRD.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-CAXxJiQC.js → vue-ui-vertical-bar-BIGQJhXk.js} +9 -9
  82. package/dist/{vue-ui-waffle-CZkK46Gi.js → vue-ui-waffle-ZR7fefhR.js} +8 -8
  83. package/dist/{vue-ui-wheel-OUwzi8iK.js → vue-ui-wheel-DRp9k9JL.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-DOVX9uh7.js → vue-ui-word-cloud-jlqVnKu7.js} +6 -6
  85. package/dist/{vue-ui-world-DVw4JkSI.js → vue-ui-world-PWs6PTyh.js} +6 -6
  86. package/dist/{vue-ui-xy-5edVF7jS.js → vue-ui-xy-D9GnZXb-.js} +1137 -1097
  87. package/dist/{vue-ui-xy-canvas-D8EmTlVm.js → vue-ui-xy-canvas-JxDjG7z8.js} +8 -8
  88. package/package.json +1 -1
  89. package/dist/useAutoSizeLabelsInsideViewbox-BKnSPI9C.js +0 -81
@@ -1,15 +1,15 @@
1
1
  import { defineAsyncComponent as ee, ref as d, computed as L, useSlots as Ga, onMounted as sa, watch as N, nextTick as na, shallowRef as ze, onBeforeUnmount as Za, createElementBlock as ie, openBlock as S, unref as p, normalizeClass as ja, normalizeStyle as ae, createCommentVNode as H, createElementVNode as B, createBlock as R, createSlots as qa, withCtx as x, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as Ja, Teleport as Ka, toDisplayString as ia, createTextVNode as Qa } from "vue";
2
- import { u as el, c as al, a as ll, p as Z, b as tl, C as pe, d as ol, D as $e, k as le, i as te, e as va, a4 as rl, G as ul, ae as sl, o as nl, f as il, y as ca, v as vl, w as cl, z as dl, s as ve, l as hl } from "./index-BlZvRRI7.js";
2
+ import { u as el, c as al, a as ll, p as Z, b as tl, C as pe, d as ol, D as $e, k as le, i as te, e as va, a4 as rl, G as ul, ae as sl, o as nl, f as il, y as ca, v as vl, w as cl, z as dl, s as ve, l as hl } from "./index-CjmWQAkv.js";
3
3
  import { d as yl, t as fl, u as gl, c as pl, a as da, l as C, r as Ie, b as P, p as ha } from "./useResponsive-DfdjqQps.js";
4
- import { u as ya } from "./useNestedProp-BfifFbAl.js";
5
- import { u as ml } from "./usePrinter-BpLrNLGp.js";
4
+ import { u as ya } from "./useNestedProp-DFYUwW_F.js";
5
+ import { u as ml } from "./usePrinter-BD_X6xEq.js";
6
6
  import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ll from "./Legend-DgV5eb2_.js";
9
- import kl from "./Title-69qfEeYb.js";
10
- import { S as Cl } from "./Slicer-0BUBh_u0.js";
8
+ import Ll from "./Legend-NBffBBnn.js";
9
+ import kl from "./Title-Cdu-aDOL.js";
10
+ import { S as Cl } from "./Slicer-DzsOD_6h.js";
11
11
  import { u as wl } from "./useTimeLabels-4la0yDx0.js";
12
- import Sl from "./img-BCfGCXfh.js";
12
+ import Sl from "./img-7sjXtnNU.js";
13
13
  import { _ as zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const $l = ["id"], Il = ["id"], Ml = ["id"], Tl = ["onClick"], Ol = {
15
15
  key: 3,
@@ -32,7 +32,7 @@ const $l = ["id"], Il = ["id"], Ml = ["id"], Tl = ["onClick"], Ol = {
32
32
  },
33
33
  emits: ["selectLegend"],
34
34
  setup(Me, { expose: fa, emit: ga }) {
35
- const pa = ee(() => import("./vue-ui-accordion-1x5Li2YN.js")), ma = ee(() => import("./DataTable-BkEwtdpl.js")), ba = ee(() => import("./NonSvgPenAndPaper-he2qk9Kr.js")), xa = ee(() => import("./vue-ui-skeleton-CX1ZXulb.js")), La = ee(() => import("./Tooltip-2KuV61f8.js")), ka = ee(() => import("./UserOptions-DS-5I2Ok.js")), { vue_ui_xy_canvas: Ca } = el(), g = Me, Y = d(al()), F = d(null), oe = d(null), n = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Te = d(null), $ = d([]), j = d(1), _ = d(!0), q = d(!0), me = d(null), Oe = d(0), Re = d(0), he = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), De = d(!1), ke = L(() => !!g.dataset && g.dataset.length), wa = ga, Sa = Ga();
35
+ const pa = ee(() => import("./vue-ui-accordion-BOmbEAe4.js")), ma = ee(() => import("./DataTable-Co-fVzdq.js")), ba = ee(() => import("./NonSvgPenAndPaper-CWsUFLND.js")), xa = ee(() => import("./vue-ui-skeleton-BpaC2poA.js")), La = ee(() => import("./Tooltip-mB2Rs1Vj.js")), ka = ee(() => import("./UserOptions-BMoiHEKE.js")), { vue_ui_xy_canvas: Ca } = el(), g = Me, Y = d(al()), F = d(null), oe = d(null), n = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Te = d(null), $ = d([]), j = d(1), _ = d(!0), q = d(!0), me = d(null), Oe = d(0), Re = d(0), he = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), De = d(!1), ke = L(() => !!g.dataset && g.dataset.length), wa = ga, Sa = Ga();
36
36
  sa(() => {
37
37
  Sa["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.13",
4
+ "version": "3.0.15",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,81 +0,0 @@
1
- import { a1 as K } from "./index-BlZvRRI7.js";
2
- function q({
3
- svgRef: S,
4
- fontSize: p,
5
- minFontSize: z,
6
- sizeRef: A,
7
- labelClass: B,
8
- labelTypes: m = []
9
- }) {
10
- let y = null;
11
- function g(e) {
12
- let n = e[0];
13
- for (let t = 1; t < e.length; t += 1) e[t] < n && (n = e[t]);
14
- return n;
15
- }
16
- function w(e) {
17
- let n = e[0];
18
- for (let t = 1; t < e.length; t += 1) e[t] > n && (n = e[t]);
19
- return n;
20
- }
21
- function F(e) {
22
- const n = e.ownerSVGElement;
23
- if (!n) return { x: 0, y: 0, width: 0, height: 0 };
24
- const t = e.getBBox(), i = e.getCTM(), s = [
25
- { x: t.x, y: t.y },
26
- { x: t.x + t.width, y: t.y },
27
- { x: t.x, y: t.y + t.height },
28
- { x: t.x + t.width, y: t.y + t.height }
29
- ].map((r) => {
30
- const a = n.createSVGPoint();
31
- a.x = r.x, a.y = r.y;
32
- const l = i ? a.matrixTransform(i) : a;
33
- return { x: l.x, y: l.y };
34
- }), h = s.map((r) => r.x), c = s.map((r) => r.y), o = g(h), u = w(h), f = g(c), x = w(c);
35
- return { x: o, y: f, width: u - o, height: x - f };
36
- }
37
- function O(e, n, t = 1) {
38
- const { x: i, y: s, width: h, height: c } = F(e), o = i >= n.x + t, u = i + h <= n.x + n.width - t, f = s >= n.y + t, x = s + c <= n.y + n.height - t;
39
- return o && u && f && x;
40
- }
41
- function d(e, n, t, i, s = 120, h = 1) {
42
- let c = t, o = 0;
43
- for (; o < s && (e.style.fontSize = `${c}px`, !(O(e, n, h) || c <= i)); )
44
- c -= 0.5, o += 1;
45
- return c < i ? i : c;
46
- }
47
- function b() {
48
- const e = S.value;
49
- if (!e) return;
50
- const [n, t, i, s] = e.getAttribute("viewBox").split(" ").map(Number), h = { x: n, y: t, width: i, height: s };
51
- m.length || (m = [
52
- {
53
- selector: B,
54
- baseSize: p,
55
- minSize: z,
56
- sizeRef: A
57
- }
58
- ]), m.map((o) => e.querySelectorAll(o.selector).length).reduce((o, u) => o + u, 0) !== 0 && m.forEach(({ selector: o, baseSize: u, minSize: f, sizeRef: x }) => {
59
- e.querySelectorAll(o).forEach((r) => {
60
- const a = K({
61
- el: r,
62
- bounds: h,
63
- currentFontSize: u,
64
- minFontSize: f,
65
- attempts: 200,
66
- padding: 1
67
- }), l = d(r, h, a, f, 120, 1);
68
- r.style.fontSize = `${l}px`, x.value = l;
69
- });
70
- });
71
- }
72
- function v() {
73
- y && cancelAnimationFrame(y), y = requestAnimationFrame(() => {
74
- y = null, b();
75
- });
76
- }
77
- return { autoSizeLabels: v };
78
- }
79
- export {
80
- q as u
81
- };