vue-data-ui 2.16.6 → 2.17.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 (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as A, computed as x, useSlots as z, onMounted as C, watch as y, ref as k, createElementBlock as i, openBlock as s, normalizeStyle as u, normalizeClass as r, createElementVNode as $, renderSlot as n, createTextVNode as h, toDisplayString as b, createVNode as w, unref as v, Fragment as B } from "vue";
2
- import { u as L } from "./useNestedProp-DrYHm61t.js";
3
- import { u as M, i as E, f as I } from "./index-DvIXJm6t.js";
2
+ import { u as L } from "./useNestedProp-DjACxgdZ.js";
3
+ import { u as M, i as E, f as I } from "./index-pPGk-uhD.js";
4
4
  const G = {
5
5
  __name: "vue-ui-kpi",
6
6
  props: {
@@ -16,7 +16,7 @@ const G = {
16
16
  }
17
17
  },
18
18
  setup(o) {
19
- const F = A(() => import("./vue-ui-digits-BgQch3Fc.js")), { vue_ui_kpi: N } = M(), l = o, e = x({
19
+ const F = A(() => import("./vue-ui-digits-CA8pUKej.js")), { vue_ui_kpi: N } = M(), l = o, e = x({
20
20
  get: () => c(),
21
21
  set: (a) => a
22
22
  }), D = z();
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as h, computed as r, ref as f, createElementBlock as n, openBlock as u, unref as M, createCommentVNode as a, createElementVNode as t, normalizeStyle as l } from "vue";
2
- import { u as m } from "./useNestedProp-DrYHm61t.js";
3
- import { u as y, X as L } from "./index-DvIXJm6t.js";
2
+ import { u as m } from "./useNestedProp-DjACxgdZ.js";
3
+ import { u as y, X as L } from "./index-pPGk-uhD.js";
4
4
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
6
6
  __name: "vue-ui-mini-loader",
@@ -1,31 +1,32 @@
1
- import { useCssVars as Qe, defineAsyncComponent as p, computed as k, onMounted as Je, ref as c, watch as Ke, createElementBlock as y, openBlock as r, unref as l, normalizeStyle as B, normalizeClass as he, createBlock as $, createCommentVNode as f, createVNode as F, createSlots as et, withCtx as d, renderSlot as i, normalizeProps as w, guardReactiveProps as T, createElementVNode as S, Fragment as tt, renderList as ot, createTextVNode as lt, toDisplayString as st, nextTick as at } from "vue";
2
- import { u as nt, o as rt, e as it, c as pe, t as ut, p as fe, a as ct, b as dt, Q as vt, X as ht, l as pt, R as ft, d as ge, q as gt, r as mt, x as yt, y as bt } from "./index-DvIXJm6t.js";
3
- import { u as me } from "./useNestedProp-DrYHm61t.js";
4
- import { u as kt } from "./usePrinter-CWnXbGMb.js";
5
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
7
- import { u as wt } from "./usePanZoom-BQMvRXEQ.js";
8
- import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ot = ["id"], Pt = {
1
+ import { useCssVars as Je, defineAsyncComponent as h, computed as k, onMounted as Ke, ref as c, watch as et, createElementBlock as b, openBlock as r, unref as l, normalizeStyle as U, normalizeClass as he, createBlock as $, createCommentVNode as f, createVNode as S, createSlots as tt, withCtx as d, renderSlot as i, normalizeProps as w, guardReactiveProps as T, createElementVNode as _, Fragment as ot, renderList as lt, createTextVNode as st, toDisplayString as at, nextTick as nt } from "vue";
2
+ import { u as rt, o as it, e as ut, c as fe, t as ct, p as ge, a as dt, b as vt, Q as pt, X as ht, l as ft, R as gt, d as me, q as mt, r as bt, x as yt, y as kt } from "./index-pPGk-uhD.js";
3
+ import { u as be } from "./useNestedProp-DjACxgdZ.js";
4
+ import { u as Ct } from "./usePrinter-DDHcrl0A.js";
5
+ import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as wt } from "./useChartAccessibility-9icAAmYg.js";
7
+ import { u as Tt } from "./usePanZoom-BQMvRXEQ.js";
8
+ import Ot from "./img-Y_hYz-ZC.js";
9
+ import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const At = ["id"], It = {
10
11
  key: 1,
11
12
  ref: "noTitle",
12
13
  class: "vue-data-ui-no-title-space",
13
14
  style: "height:36px; width: 100%;background:transparent"
14
- }, At = {
15
+ }, Nt = {
15
16
  key: 2,
16
17
  style: "width:100%;background:transparent;"
17
- }, It = ["xmlns", "viewBox"], Nt = ["width", "height"], Ft = ["id"], St = ["stop-color"], _t = ["stop-color"], Lt = {
18
+ }, Ft = ["xmlns", "viewBox"], St = ["width", "height"], _t = ["id"], Lt = ["stop-color"], Dt = ["stop-color"], Bt = {
18
19
  key: 5,
19
20
  class: "vue-data-ui-watermark"
20
- }, Dt = {
21
+ }, Ut = {
21
22
  key: 6,
22
23
  "data-dom-to-png-ignore": "",
23
24
  class: "reset-wrapper"
24
- }, Bt = {
25
+ }, Rt = {
25
26
  key: 8,
26
27
  ref: "source",
27
28
  dir: "auto"
28
- }, Rt = ["innerHTML"], Ut = {
29
+ }, Et = ["innerHTML"], xt = {
29
30
  __name: "vue-ui-molecule",
30
31
  props: {
31
32
  config: {
@@ -42,45 +43,45 @@ const Ot = ["id"], Pt = {
42
43
  }
43
44
  },
44
45
  emits: ["selectNode"],
45
- setup(ye, { expose: be, emit: ke }) {
46
- Qe((t) => ({
47
- "43c89952": t.slicerColor
46
+ setup(ye, { expose: ke, emit: Ce }) {
47
+ Je((t) => ({
48
+ "5e3e99e2": t.slicerColor
48
49
  }));
49
- const Ce = p(() => import("./vue-ui-accordion-D55kCO5G.js")), $e = p(() => import("./BaseIcon-Bn996RXm.js")), we = p(() => import("./DataTable-CHBLjKtZ.js")), Te = p(() => import("./PackageVersion-Bg_9KCU-.js")), Oe = p(() => import("./PenAndPaper-BPTpbnay.js")), Pe = p(() => import("./RecursiveCircles-Dn3TGoL6.js")), Ae = p(() => import("./RecursiveLabels-NTMB9w5C.js")), Ie = p(() => import("./RecursiveLinks-ld_gDZH4.js")), Ne = p(() => import("./vue-ui-skeleton-BAOt2neL.js")), Fe = p(() => import("./Title-Gi81VwUM.js")), Se = p(() => import("./Tooltip-CJxVw7-T.js")), _e = p(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_molecule: Le } = nt(), C = ye, De = ke, _ = k(() => !!C.dataset && C.dataset.length);
50
- Je(() => {
50
+ const $e = h(() => import("./vue-ui-accordion-CVnA550V.js")), we = h(() => import("./BaseIcon-naqtCxVi.js")), Te = h(() => import("./DataTable-D0VYDhfx.js")), Oe = h(() => import("./PackageVersion-5TR4ocqp.js")), Pe = h(() => import("./PenAndPaper-D6AqipIO.js")), Ae = h(() => import("./RecursiveCircles-Dn3TGoL6.js")), Ie = h(() => import("./RecursiveLabels-NTMB9w5C.js")), Ne = h(() => import("./RecursiveLinks-ld_gDZH4.js")), Fe = h(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Se = h(() => import("./Title-B-2bV0SW.js")), _e = h(() => import("./Tooltip-CoQnTnr-.js")), Le = h(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_molecule: De } = rt(), C = ye, Be = Ce, L = k(() => !!C.dataset && C.dataset.length);
51
+ Ke(() => {
51
52
  W();
52
53
  });
53
54
  function W() {
54
- rt(C.dataset) && it({
55
+ it(C.dataset) && ut({
55
56
  componentName: "VueUiMolecule",
56
57
  type: "dataset"
57
58
  });
58
59
  }
59
- const R = c(pe()), Be = c(null), U = c(!1), L = c(""), E = c(null), X = c(0), j = c(0), Y = c(0), e = k({
60
+ const R = c(fe()), Ue = c(null), E = c(!1), D = c(""), A = c(null), X = c(0), j = c(0), Y = c(0), e = k({
60
61
  get: () => Q(),
61
62
  set: (t) => t
62
- }), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } = Ct({ config: e.value }), { svgRef: z } = $t({ config: e.value.style.chart.title });
63
+ }), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } = $t({ config: e.value }), { svgRef: z } = wt({ config: e.value.style.chart.title });
63
64
  function Q() {
64
- const t = me({
65
+ const t = be({
65
66
  userConfig: C.config,
66
- defaultConfig: Le
67
+ defaultConfig: De
67
68
  });
68
69
  return t.theme ? {
69
- ...me({
70
- userConfig: ct.vue_ui_molecule[t.theme] || C.config,
70
+ ...be({
71
+ userConfig: dt.vue_ui_molecule[t.theme] || C.config,
71
72
  defaultConfig: t
72
73
  }),
73
- customPalette: ut[t.theme] || fe
74
+ customPalette: ct[t.theme] || ge
74
75
  } : t;
75
76
  }
76
- Ke(() => C.config, (t) => {
77
- e.value = Q(), x.value = !e.value.userOptions.showOnChartHover, W(), j.value += 1, Y.value += 1, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
77
+ et(() => C.config, (t) => {
78
+ e.value = Q(), x.value = !e.value.userOptions.showOnChartHover, W(), j.value += 1, Y.value += 1, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
78
79
  }, { deep: !0 });
79
- const { isPrinting: J, isImaging: K, generatePdf: ee, generateImage: te } = kt({
80
+ const { isPrinting: J, isImaging: K, generatePdf: ee, generateImage: te } = Ct({
80
81
  elementId: `cluster_${R.value}`,
81
82
  fileName: e.value.style.chart.title.text || "vue-ui-molecule",
82
83
  options: e.value.userOptions.print
83
- }), Re = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ue = k(() => dt(e.value.customPalette)), h = c({
84
+ }), Re = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = k(() => vt(e.value.customPalette)), p = c({
84
85
  showTable: e.value.table.show,
85
86
  showDataLabels: !0,
86
87
  showTooltip: e.value.style.chart.tooltip.show
@@ -88,7 +89,7 @@ const Ot = ["id"], Pt = {
88
89
  function oe(t, s = 0) {
89
90
  return Array.isArray(t) && t.length > 0 && t[0].nodes ? oe(t[0].nodes, s + 1) : s;
90
91
  }
91
- function Ee() {
92
+ function xe() {
92
93
  const t = oe(C.dataset);
93
94
  let s = 100, o = s;
94
95
  for (let n = 0; n < t; n += 1)
@@ -98,41 +99,41 @@ const Ot = ["id"], Pt = {
98
99
  width: o
99
100
  };
100
101
  }
101
- const v = c(Ee());
102
+ const v = c(xe());
102
103
  c(`0 0 ${v.value.width} ${v.value.height}`);
103
104
  function le(t, s = { x: -v.value.width / 2.43, y: v.value.height / 2 }, o = v.value.width / 1.1, n = 24, a = 0, u = 0, g = "#BBBBBB", G = 0) {
104
105
  if (!Array.isArray(t) || t.length === 0) return t;
105
- const qe = ft({
106
+ const Qe = gt({
106
107
  plot: s,
107
108
  radius: o,
108
109
  sides: t.length,
109
110
  rotation: a
110
111
  });
111
- return t.forEach((m, ce) => {
112
- const de = qe.coordinates[ce], ve = m.color ? (() => {
113
- let M = ge(m.color);
112
+ return t.forEach((m, de) => {
113
+ const ve = Qe.coordinates[de], pe = m.color ? (() => {
114
+ let M = me(m.color);
114
115
  return M.startsWith("#") ? M : `#${M}`;
115
116
  })() : null;
116
117
  let P;
117
- ve ? P = ve : G === 0 ? P = g : G === 1 ? (P = Ue.value[u] || fe[u] || g, u += 1) : P = g, m.polygonPath = { coordinates: [de] }, m.circleRadius = n, m.color = P, m.uid = pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = le(
118
+ pe ? P = pe : G === 0 ? P = g : G === 1 ? (P = Ee.value[u] || ge[u] || g, u += 1) : P = g, m.polygonPath = { coordinates: [ve] }, m.circleRadius = n, m.color = P, m.uid = fe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = le(
118
119
  m.nodes,
119
- de,
120
+ ve,
120
121
  o / 2.9,
121
122
  n / 2.2,
122
- a + Math.PI * ce / m.nodes.length,
123
+ a + Math.PI * de / m.nodes.length,
123
124
  u,
124
125
  P,
125
126
  G + 1
126
127
  ));
127
128
  }), t;
128
129
  }
129
- function xe(t) {
130
+ function ze(t) {
130
131
  const s = /* @__PURE__ */ new Set();
131
132
  function o(a) {
132
133
  a.forEach((u) => {
133
134
  if (!u.color) return;
134
135
  let g = u.color;
135
- /^#?[0-9A-F]{6}$/i.test(g) || (g = ge(g)), g.startsWith("#") || (g = `#${g}`), s.add(g), Array.isArray(u.nodes) && u.nodes.length && o(u.nodes);
136
+ /^#?[0-9A-F]{6}$/i.test(g) || (g = me(g)), g.startsWith("#") || (g = `#${g}`), s.add(g), Array.isArray(u.nodes) && u.nodes.length && o(u.nodes);
136
137
  });
137
138
  }
138
139
  o(t);
@@ -142,41 +143,41 @@ const Ot = ["id"], Pt = {
142
143
  n[a] = `gradient_${u}`;
143
144
  }), n;
144
145
  }
145
- const ze = k(() => xe(b.value)), b = k(() => {
146
- const t = vt(C.dataset);
146
+ const He = k(() => ze(y.value)), y = k(() => {
147
+ const t = pt(C.dataset);
147
148
  return le(t);
148
149
  }), H = c(null);
149
- function He(t) {
150
+ function Ve(t) {
150
151
  H.value = {
151
152
  datapoint: t,
152
153
  seriesIndex: -1,
153
- series: b.value,
154
+ series: y.value,
154
155
  config: e.value
155
156
  };
156
157
  const s = e.value.style.chart.tooltip.customFormat;
157
- if (yt(s) && bt(() => s({
158
+ if (yt(s) && kt(() => s({
158
159
  seriesIndex: -1,
159
160
  datapoint: t,
160
- series: b.value,
161
+ series: y.value,
161
162
  config: e.value
162
163
  })))
163
- L.value = s({
164
+ D.value = s({
164
165
  seriesIndex: -1,
165
166
  // well, ok
166
167
  datapoint: t,
167
- series: b.value,
168
+ series: y.value,
168
169
  config: e.value
169
170
  });
170
171
  else {
171
172
  let o = "";
172
- o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), L.value = `<div style="font-family:inherit">${o}</div>`;
173
+ o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), D.value = `<div style="font-family:inherit">${o}</div>`;
173
174
  }
174
175
  }
175
- const se = c(null), A = c(null);
176
- function Ve(t) {
177
- se.value = t, t ? (U.value = !0, He(t), A.value = t.uid) : (U.value = !1, L.value = "", A.value = null);
178
- }
176
+ const se = c(null), I = c(null);
179
177
  function Ge(t) {
178
+ se.value = t, t ? (E.value = !0, Ve(t), I.value = t.uid) : (E.value = !1, D.value = "", I.value = null);
179
+ }
180
+ function Me(t) {
180
181
  const s = [];
181
182
  function o(n) {
182
183
  n.forEach((a) => {
@@ -191,12 +192,12 @@ const Ot = ["id"], Pt = {
191
192
  }
192
193
  return o(t), s;
193
194
  }
194
- const Me = k(() => Ge(b.value)), O = k(() => {
195
+ const We = k(() => Me(y.value)), O = k(() => {
195
196
  const t = [
196
197
  e.value.table.translations.nodeName,
197
198
  e.value.table.translations.details,
198
199
  e.value.table.translations.ancestor
199
- ], s = Me.value.map((a, u) => [
200
+ ], s = We.value.map((a, u) => [
200
201
  {
201
202
  color: a.color,
202
203
  name: a.name
@@ -228,71 +229,78 @@ const Ot = ["id"], Pt = {
228
229
  };
229
230
  });
230
231
  function ae(t = null) {
231
- at(() => {
232
- const s = O.value.body.map((a, u) => [[a[0].name], [a[1]], [a[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...O.value.head]]].concat(s), n = gt(o);
233
- t ? t(n) : mt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
232
+ nt(() => {
233
+ const s = O.value.body.map((a, u) => [[a[0].name], [a[1]], [a[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...O.value.head]]].concat(s), n = mt(o);
234
+ t ? t(n) : bt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
234
235
  });
235
236
  }
236
- function We() {
237
- return b.value;
238
- }
239
- const I = c(!1);
240
- function Xe(t) {
241
- I.value = t, X.value += 1;
237
+ function Xe() {
238
+ return y.value;
242
239
  }
243
- function ne() {
244
- h.value.showTable = !h.value.showTable;
240
+ const N = c(!1);
241
+ function ne(t) {
242
+ N.value = t, X.value += 1;
245
243
  }
246
244
  function re() {
247
- h.value.showDataLabels = !h.value.showDataLabels;
245
+ p.value.showTable = !p.value.showTable;
248
246
  }
249
247
  function ie() {
250
- h.value.showTooltip = !h.value.showTooltip;
248
+ p.value.showDataLabels = !p.value.showDataLabels;
251
249
  }
252
- const N = c(!1);
250
+ function ue() {
251
+ p.value.showTooltip = !p.value.showTooltip;
252
+ }
253
+ const F = c(!1);
253
254
  function V() {
254
- N.value = !N.value;
255
+ F.value = !F.value;
255
256
  }
256
- const je = k(() => !N.value), { viewBox: D, resetZoom: ue, isZoom: Ye } = wt(z, {
257
+ const je = k(() => !F.value), { viewBox: B, resetZoom: ce, isZoom: Ye } = Tt(z, {
257
258
  x: 0,
258
259
  y: 0,
259
260
  width: v.value.width <= 0 ? 10 : v.value.width,
260
261
  height: v.value.height <= 0 ? 10 : v.value.height
261
262
  }, e.value.style.chart.zoom.speed, je);
262
263
  function Ze(t) {
263
- De("selectNode", t);
264
+ Be("selectNode", t);
265
+ }
266
+ async function qe({ scale: t = 2 } = {}) {
267
+ if (!A.value) return;
268
+ const { imageUri: s, base64: o } = await Ot({ domElement: A.value, base64: !0, img: !0, scale: t });
269
+ return { imageUri: s, base64: o };
264
270
  }
265
- return be({
266
- getData: We,
271
+ return ke({
272
+ getData: Xe,
273
+ getImage: qe,
267
274
  generatePdf: ee,
268
275
  generateCsv: ae,
269
276
  generateImage: te,
270
- toggleTable: ne,
271
- toggleLabels: re,
272
- toggleTooltip: ie,
273
- toggleAnnotator: V
274
- }), (t, s) => (r(), y("div", {
277
+ toggleTable: re,
278
+ toggleLabels: ie,
279
+ toggleTooltip: ue,
280
+ toggleAnnotator: V,
281
+ toggleFullscreen: ne
282
+ }), (t, s) => (r(), b("div", {
275
283
  ref_key: "moleculeChart",
276
- ref: E,
277
- class: he(`vue-ui-molecule ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
278
- style: B(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
284
+ ref: A,
285
+ class: he(`vue-ui-molecule ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
286
+ style: U(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
279
287
  id: `cluster_${R.value}`,
280
288
  onMouseleave: s[2] || (s[2] = (o) => {
281
- se.value = null, A.value = null, l(Z)(!1);
289
+ se.value = null, I.value = null, l(Z)(!1);
282
290
  }),
283
291
  onMouseenter: s[3] || (s[3] = () => l(Z)(!0))
284
292
  }, [
285
- e.value.userOptions.buttons.annotator ? (r(), $(l(Oe), {
293
+ e.value.userOptions.buttons.annotator ? (r(), $(l(Pe), {
286
294
  key: 0,
287
295
  svgRef: l(z),
288
296
  backgroundColor: e.value.style.chart.backgroundColor,
289
297
  color: e.value.style.chart.color,
290
- active: N.value,
298
+ active: F.value,
291
299
  onClose: V
292
300
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
293
- Re.value ? (r(), y("div", Pt, null, 512)) : f("", !0),
294
- e.value.style.chart.title.text ? (r(), y("div", At, [
295
- (r(), $(l(Fe), {
301
+ Re.value ? (r(), b("div", It, null, 512)) : f("", !0),
302
+ e.value.style.chart.title.text ? (r(), b("div", Nt, [
303
+ (r(), $(l(Se), {
296
304
  key: `title_${j.value}`,
297
305
  config: {
298
306
  title: {
@@ -306,9 +314,9 @@ const Ot = ["id"], Pt = {
306
314
  }
307
315
  }, null, 8, ["config"]))
308
316
  ])) : f("", !0),
309
- e.value.userOptions.show && _.value && (l(q) || l(x)) ? (r(), $(l(_e), {
317
+ e.value.userOptions.show && L.value && (l(q) || l(x)) ? (r(), $(l(Le), {
310
318
  ref_key: "details",
311
- ref: Be,
319
+ ref: Ue,
312
320
  key: `user_options_${X.value}`,
313
321
  backgroundColor: e.value.style.chart.backgroundColor,
314
322
  color: e.value.style.chart.color,
@@ -322,26 +330,26 @@ const Ot = ["id"], Pt = {
322
330
  hasTable: e.value.userOptions.buttons.table,
323
331
  hasLabel: e.value.userOptions.buttons.labels,
324
332
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
325
- isTooltip: h.value.showTooltip,
333
+ isTooltip: p.value.showTooltip,
326
334
  titles: { ...e.value.userOptions.buttonTitles },
327
- chartElement: E.value,
335
+ chartElement: A.value,
328
336
  position: e.value.userOptions.position,
329
337
  hasAnnotator: e.value.userOptions.buttons.annotator,
330
- isAnnotation: N.value,
338
+ isAnnotation: F.value,
331
339
  callbacks: e.value.userOptions.callbacks,
332
340
  printScale: e.value.userOptions.print.scale,
333
- onToggleFullscreen: Xe,
341
+ onToggleFullscreen: ne,
334
342
  onGeneratePdf: l(ee),
335
343
  onGenerateCsv: ae,
336
344
  onGenerateImage: l(te),
337
- onToggleTable: ne,
338
- onToggleLabels: re,
339
- onToggleTooltip: ie,
345
+ onToggleTable: re,
346
+ onToggleLabels: ie,
347
+ onToggleTooltip: ue,
340
348
  onToggleAnnotator: V,
341
- style: B({
349
+ style: U({
342
350
  visibility: l(q) ? l(x) ? "visible" : "hidden" : "visible"
343
351
  })
344
- }, et({ _: 2 }, [
352
+ }, tt({ _: 2 }, [
345
353
  t.$slots.menuIcon ? {
346
354
  name: "menuIcon",
347
355
  fn: d(({ isOpen: o, color: n }) => [
@@ -406,17 +414,17 @@ const Ot = ["id"], Pt = {
406
414
  key: "8"
407
415
  } : void 0
408
416
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
409
- _.value ? (r(), y("svg", {
417
+ L.value ? (r(), b("svg", {
410
418
  key: 4,
411
419
  ref_key: "svgRef",
412
420
  ref: z,
413
421
  xmlns: l(ht),
414
- viewBox: `${l(D).x} ${l(D).y} ${l(D).width} ${l(D).height}`,
415
- class: he({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
416
- style: B(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
422
+ viewBox: `${l(B).x} ${l(B).y} ${l(B).width} ${l(B).height}`,
423
+ class: he({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
424
+ style: U(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
417
425
  }, [
418
- F(l(Te)),
419
- t.$slots["chart-background"] ? (r(), y("foreignObject", {
426
+ S(l(Oe)),
427
+ t.$slots["chart-background"] ? (r(), b("foreignObject", {
420
428
  key: 0,
421
429
  x: 0,
422
430
  y: 0,
@@ -427,9 +435,9 @@ const Ot = ["id"], Pt = {
427
435
  }
428
436
  }, [
429
437
  i(t.$slots, "chart-background", {}, void 0, !0)
430
- ], 8, Nt)) : f("", !0),
431
- S("defs", null, [
432
- (r(!0), y(tt, null, ot(Object.keys(ze.value), (o) => (r(), y("radialGradient", {
438
+ ], 8, St)) : f("", !0),
439
+ _("defs", null, [
440
+ (r(!0), b(ot, null, lt(Object.keys(He.value), (o) => (r(), b("radialGradient", {
433
441
  id: `gradient_${o}`,
434
442
  cx: "50%",
435
443
  cy: "30%",
@@ -437,65 +445,65 @@ const Ot = ["id"], Pt = {
437
445
  fx: "50%",
438
446
  fy: "50%"
439
447
  }, [
440
- S("stop", {
448
+ _("stop", {
441
449
  offset: "0%",
442
- "stop-color": l(pt)(o, 0.5)
443
- }, null, 8, St),
444
- S("stop", {
450
+ "stop-color": l(ft)(o, 0.5)
451
+ }, null, 8, Lt),
452
+ _("stop", {
445
453
  offset: "100%",
446
454
  "stop-color": o
447
- }, null, 8, _t)
448
- ], 8, Ft))), 256))
455
+ }, null, 8, Dt)
456
+ ], 8, _t))), 256))
449
457
  ]),
450
- F(l(Ie), {
451
- dataset: b.value,
458
+ S(l(Ne), {
459
+ dataset: y.value,
452
460
  color: e.value.style.chart.links.stroke,
453
461
  backgroundColor: e.value.style.chart.backgroundColor
454
462
  }, null, 8, ["dataset", "color", "backgroundColor"]),
455
- F(l(Pe), {
456
- dataset: b.value,
457
- hoveredUid: A.value,
463
+ S(l(Ae), {
464
+ dataset: y.value,
465
+ hoveredUid: I.value,
458
466
  stroke: e.value.style.chart.nodes.stroke,
459
467
  strokeHovered: e.value.style.chart.nodes.strokeHovered,
460
468
  onClick: Ze,
461
- onHover: Ve
469
+ onHover: Ge
462
470
  }, {
463
471
  node: d(({ node: o }) => [
464
472
  i(t.$slots, "node", w(T({ node: o })), void 0, !0)
465
473
  ]),
466
474
  _: 3
467
475
  }, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
468
- h.value.showDataLabels ? (r(), $(l(Ae), {
476
+ p.value.showDataLabels ? (r(), $(l(Ie), {
469
477
  key: 1,
470
- dataset: b.value,
478
+ dataset: y.value,
471
479
  color: e.value.style.chart.color,
472
- hoveredUid: A.value
480
+ hoveredUid: I.value
473
481
  }, null, 8, ["dataset", "color", "hoveredUid"])) : f("", !0),
474
482
  i(t.$slots, "svg", { svg: v.value }, void 0, !0)
475
- ], 14, It)) : f("", !0),
476
- t.$slots.watermark ? (r(), y("div", Lt, [
483
+ ], 14, Ft)) : f("", !0),
484
+ t.$slots.watermark ? (r(), b("div", Bt, [
477
485
  i(t.$slots, "watermark", w(T({ isPrinting: l(J) || l(K) })), void 0, !0)
478
486
  ])) : f("", !0),
479
- l(Ye) ? (r(), y("div", Dt, [
480
- i(t.$slots, "reset-action", { reset: l(ue) }, () => [
481
- S("button", {
487
+ l(Ye) ? (r(), b("div", Ut, [
488
+ i(t.$slots, "reset-action", { reset: l(ce) }, () => [
489
+ _("button", {
482
490
  "data-cy-reset": "",
483
491
  tabindex: "0",
484
492
  role: "button",
485
493
  class: "vue-data-ui-refresh-button",
486
- style: B({
494
+ style: U({
487
495
  background: e.value.style.chart.backgroundColor
488
496
  }),
489
- onClick: s[0] || (s[0] = (o) => l(ue)(!0))
497
+ onClick: s[0] || (s[0] = (o) => l(ce)(!0))
490
498
  }, [
491
- F(l($e), {
499
+ S(l(we), {
492
500
  name: "refresh",
493
501
  stroke: e.value.style.chart.color
494
502
  }, null, 8, ["stroke"])
495
503
  ], 4)
496
504
  ], !0)
497
505
  ])) : f("", !0),
498
- _.value ? f("", !0) : (r(), $(l(Ne), {
506
+ L.value ? f("", !0) : (r(), $(l(Fe), {
499
507
  key: 7,
500
508
  config: {
501
509
  type: "molecule",
@@ -507,11 +515,11 @@ const Ot = ["id"], Pt = {
507
515
  }
508
516
  }
509
517
  }, null, 8, ["config"])),
510
- t.$slots.source ? (r(), y("div", Bt, [
518
+ t.$slots.source ? (r(), b("div", Rt, [
511
519
  i(t.$slots, "source", {}, void 0, !0)
512
520
  ], 512)) : f("", !0),
513
- F(l(Se), {
514
- show: h.value.showTooltip && U.value,
521
+ S(l(_e), {
522
+ show: p.value.showTooltip && E.value,
515
523
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
516
524
  color: e.value.style.chart.tooltip.color,
517
525
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -521,9 +529,9 @@ const Ot = ["id"], Pt = {
521
529
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
522
530
  position: e.value.style.chart.tooltip.position,
523
531
  offsetY: e.value.style.chart.tooltip.offsetY,
524
- parent: E.value,
525
- content: L.value,
526
- isFullscreen: I.value,
532
+ parent: A.value,
533
+ content: D.value,
534
+ isFullscreen: N.value,
527
535
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
528
536
  }, {
529
537
  "tooltip-before": d(() => [
@@ -534,11 +542,11 @@ const Ot = ["id"], Pt = {
534
542
  ]),
535
543
  _: 3
536
544
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
537
- _.value ? (r(), $(l(Ce), {
545
+ L.value ? (r(), $(l($e), {
538
546
  key: 9,
539
547
  hideDetails: "",
540
548
  config: {
541
- open: h.value.showTable,
549
+ open: p.value.showTable,
542
550
  maxHeight: 1e4,
543
551
  body: {
544
552
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -551,32 +559,32 @@ const Ot = ["id"], Pt = {
551
559
  }
552
560
  }, {
553
561
  content: d(() => [
554
- (r(), $(l(we), {
562
+ (r(), $(l(Te), {
555
563
  key: `table_${Y.value}`,
556
564
  colNames: O.value.colNames,
557
565
  head: O.value.head,
558
566
  body: O.value.body,
559
567
  config: O.value.config,
560
568
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
561
- onClose: s[1] || (s[1] = (o) => h.value.showTable = !1)
569
+ onClose: s[1] || (s[1] = (o) => p.value.showTable = !1)
562
570
  }, {
563
571
  th: d(({ th: o }) => [
564
- S("div", {
572
+ _("div", {
565
573
  innerHTML: o,
566
574
  style: { display: "flex", "align-items": "center" }
567
- }, null, 8, Rt)
575
+ }, null, 8, Et)
568
576
  ]),
569
577
  td: d(({ td: o }) => [
570
- lt(st(o.name || o), 1)
578
+ st(at(o.name || o), 1)
571
579
  ]),
572
580
  _: 1
573
581
  }, 8, ["colNames", "head", "body", "config", "title"]))
574
582
  ]),
575
583
  _: 1
576
584
  }, 8, ["config"])) : f("", !0)
577
- ], 46, Ot));
585
+ ], 46, At));
578
586
  }
579
- }, Xt = /* @__PURE__ */ Tt(Ut, [["__scopeId", "data-v-cc32d748"]]);
587
+ }, Zt = /* @__PURE__ */ Pt(xt, [["__scopeId", "data-v-ecb8eb93"]]);
580
588
  export {
581
- Xt as default
589
+ Zt as default
582
590
  };