vue-data-ui 3.0.0-next.9 → 3.0.0

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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -1,5 +1,5 @@
1
- import { toRef as k, resolveComponent as d, createElementBlock as o, openBlock as e, Fragment as r, renderList as c, createCommentVNode as s, createElementVNode as y, createBlock as h } from "vue";
2
- const g = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], x = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], C = {
1
+ import { toRef as h, resolveComponent as g, createElementBlock as o, openBlock as e, Fragment as r, renderList as c, createCommentVNode as l, createElementVNode as y, createBlock as x } from "vue";
2
+ const p = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], m = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], F = {
3
3
  __name: "RecursiveLinks",
4
4
  props: {
5
5
  dataset: {
@@ -16,49 +16,51 @@ const g = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], x = ["x1", "y1", "
16
16
  }
17
17
  },
18
18
  setup(n) {
19
- return k(n, "dataset").value.forEach((a) => {
19
+ return h(n, "dataset").value.forEach((a) => {
20
20
  a.nodes && a.nodes.length > 0 && a.nodes.forEach((u) => {
21
21
  u.ancestor = a;
22
22
  });
23
23
  }), (a, u) => {
24
- const i = d("RecursiveLinks", !0);
24
+ const i = g("RecursiveLinks", !0);
25
25
  return e(), o(r, null, [
26
- (e(!0), o(r, null, c(n.dataset, (t) => (e(), o(r, null, [
27
- t.polygonPath && t.polygonPath.coordinates ? (e(!0), o(r, { key: 0 }, c(t.polygonPath.coordinates, (l, f) => (e(), o(r, null, [
26
+ (e(!0), o(r, null, c(n.dataset, (t, k) => (e(), o(r, null, [
27
+ t.polygonPath && t.polygonPath.coordinates ? (e(!0), o(r, { key: 0 }, c(t.polygonPath.coordinates, (s, d) => (e(), o(r, {
28
+ key: `node_${k}_${d}`
29
+ }, [
28
30
  t.ancestor && t.ancestor.polygonPath ? (e(), o(r, { key: 0 }, [
29
31
  y("line", {
30
- x1: l.x,
31
- y1: l.y,
32
+ x1: s.x,
33
+ y1: s.y,
32
34
  x2: t.ancestor.polygonPath.coordinates[0].x,
33
35
  y2: t.ancestor.polygonPath.coordinates[0].y,
34
36
  stroke: n.backgroundColor,
35
37
  "stroke-width": t.circleRadius / 1.5
36
- }, null, 8, g),
38
+ }, null, 8, p),
37
39
  y("line", {
38
- x1: l.x,
39
- y1: l.y,
40
+ x1: s.x,
41
+ y1: s.y,
40
42
  x2: t.ancestor.polygonPath.coordinates[0].x,
41
43
  y2: t.ancestor.polygonPath.coordinates[0].y,
42
44
  stroke: n.color,
43
45
  "stroke-width": t.circleRadius / 2
44
- }, null, 8, x)
45
- ], 64)) : s("", !0)
46
- ], 64))), 256)) : s("", !0)
46
+ }, null, 8, m)
47
+ ], 64)) : l("", !0)
48
+ ], 64))), 128)) : l("", !0)
47
49
  ], 64))), 256)),
48
50
  (e(!0), o(r, null, c(n.dataset, (t) => (e(), o(r, null, [
49
51
  t.polygonPath && t.polygonPath.coordinates ? (e(), o(r, { key: 0 }, [
50
- t.nodes && t.nodes.length > 0 ? (e(), h(i, {
52
+ t.nodes && t.nodes.length > 0 ? (e(), x(i, {
51
53
  key: 0,
52
54
  dataset: t.nodes,
53
55
  color: n.color,
54
56
  backgroundColor: n.backgroundColor
55
- }, null, 8, ["dataset", "color", "backgroundColor"])) : s("", !0)
56
- ], 64)) : s("", !0)
57
+ }, null, 8, ["dataset", "color", "backgroundColor"])) : l("", !0)
58
+ ], 64)) : l("", !0)
57
59
  ], 64))), 256))
58
60
  ], 64);
59
61
  };
60
62
  }
61
63
  };
62
64
  export {
63
- C as default
65
+ F as default
64
66
  };
@@ -1,6 +1,6 @@
1
- import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a } from "vue";
2
- import { _ as c, R as f } from "./index-CgShIRes.js";
3
- const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], h = {
1
+ import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a, normalizeStyle as d } from "vue";
2
+ import { _ as f, R as p } from "./index-BtNwOUja.js";
3
+ const g = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], S = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], w = {
4
4
  __name: "Shape",
5
5
  props: {
6
6
  color: String,
@@ -20,12 +20,15 @@ const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill",
20
20
  zoom: {
21
21
  type: Number,
22
22
  default: 1.3
23
+ },
24
+ transition: {
25
+ type: String
23
26
  }
24
27
  },
25
28
  emits: ["mouseover", "mouseout", "click"],
26
- setup(e, { emit: k }) {
27
- const o = e, i = k;
28
- function v(m) {
29
+ setup(o, { emit: v }) {
30
+ const e = o, i = v;
31
+ function y(k) {
29
32
  return {
30
33
  circle: {
31
34
  points: 1,
@@ -55,56 +58,59 @@ const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill",
55
58
  points: 6,
56
59
  rotation: 0
57
60
  }
58
- }[m];
61
+ }[k];
59
62
  }
60
- const s = u(() => v(o.shape)), d = u(() => o.shape !== "star" ? null : c({
61
- plot: { x: o.plot.x, y: o.plot.y },
62
- radius: o.radius * (o.isSelected ? o.zoom : 1)
63
- })), p = u(() => f({
64
- plot: { x: o.plot.x, y: o.plot.y },
65
- radius: o.radius * (o.isSelected ? o.zoom : 1),
63
+ const s = u(() => y(e.shape)), m = u(() => e.shape !== "star" ? null : f({
64
+ plot: { x: e.plot.x, y: e.plot.y },
65
+ radius: e.radius * (e.isSelected ? e.zoom : 1)
66
+ })), c = u(() => p({
67
+ plot: { x: e.plot.x, y: e.plot.y },
68
+ radius: e.radius * (e.isSelected ? e.zoom : 1),
66
69
  sides: s.value.points,
67
70
  rotation: s.value.rotation
68
71
  }).path);
69
- return (m, t) => (l(), r("g", null, [
72
+ return (k, t) => (l(), r("g", null, [
70
73
  s.value && s.value.points === 1 ? (l(), r("circle", {
71
74
  key: 0,
72
75
  class: "vdui-shape-circle",
73
- cx: e.plot.x,
74
- cy: e.plot.y,
75
- r: o.radius * (o.isSelected ? o.zoom : 1),
76
- fill: e.color,
77
- stroke: e.stroke,
78
- "stroke-width": e.strokeWidth,
76
+ cx: o.plot.x,
77
+ cy: o.plot.y,
78
+ r: e.radius * (e.isSelected ? e.zoom : 1),
79
+ fill: o.color,
80
+ stroke: o.stroke,
81
+ "stroke-width": o.strokeWidth,
79
82
  onMouseover: t[0] || (t[0] = (n) => i("mouseover")),
80
83
  onMouseout: t[1] || (t[1] = (n) => i("mouseout")),
81
- onClick: t[2] || (t[2] = (n) => i("click"))
82
- }, null, 40, y)) : a("", !0),
83
- s.value && s.value.points >= e.limit ? (l(), r("path", {
84
+ onClick: t[2] || (t[2] = (n) => i("click")),
85
+ style: d({ transition: o.transition })
86
+ }, null, 44, g)) : a("", !0),
87
+ s.value && s.value.points >= o.limit ? (l(), r("path", {
84
88
  key: 1,
85
89
  class: "vdui-shape-polygon",
86
- d: p.value,
87
- fill: e.color,
88
- stroke: e.stroke,
89
- "stroke-width": e.strokeWidth,
90
+ d: c.value,
91
+ fill: o.color,
92
+ stroke: o.stroke,
93
+ "stroke-width": o.strokeWidth,
90
94
  onMouseover: t[3] || (t[3] = (n) => i("mouseover")),
91
95
  onMouseout: t[4] || (t[4] = (n) => i("mouseout")),
92
- onClick: t[5] || (t[5] = (n) => i("click"))
93
- }, null, 40, g)) : a("", !0),
94
- d.value ? (l(), r("polygon", {
96
+ onClick: t[5] || (t[5] = (n) => i("click")),
97
+ style: d({ transition: o.transition })
98
+ }, null, 44, S)) : a("", !0),
99
+ m.value ? (l(), r("polygon", {
95
100
  key: 2,
96
101
  class: "vdui-shape-star",
97
- points: d.value,
98
- fill: e.color,
99
- stroke: e.stroke,
100
- "stroke-width": e.strokeWidth,
102
+ points: m.value,
103
+ fill: o.color,
104
+ stroke: o.stroke,
105
+ "stroke-width": o.strokeWidth,
101
106
  onMouseover: t[6] || (t[6] = (n) => i("mouseover")),
102
107
  onMouseout: t[7] || (t[7] = (n) => i("mouseout")),
103
- onClick: t[8] || (t[8] = (n) => i("click"))
104
- }, null, 40, x)) : a("", !0)
108
+ onClick: t[8] || (t[8] = (n) => i("click")),
109
+ style: d({ transition: o.transition })
110
+ }, null, 44, x)) : a("", !0)
105
111
  ]));
106
112
  }
107
113
  };
108
114
  export {
109
- h as _
115
+ w as _
110
116
  };