vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,28 +1,29 @@
1
- import { defineAsyncComponent as E, computed as p, onMounted as ut, ref as y, watch as it, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as Me, createBlock as B, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as ct, withCtx as w, renderSlot as b, normalizeProps as R, guardReactiveProps as V, Fragment as U, renderList as W, toDisplayString as j, createTextVNode as dt, nextTick as vt } from "vue";
2
- import { u as ft, o as ht, e as pt, c as ve, t as gt, p as S, a as mt, b as yt, v as $, d as bt, f as X, X as kt, F as He, L as Ct, i as fe, q as wt, r as $t, x as Tt } from "./index-CZNLCg7T.js";
3
- import { u as Ye } from "./useNestedProp-BcPDA6Xr.js";
4
- import { u as xt } from "./usePrinter-ButWuZVm.js";
5
- import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
7
- import Ot from "./Legend-DoxQwq_u.js";
8
- import St from "./Title-BQLtfM0P.js";
9
- import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const Pt = ["id"], Lt = {
1
+ import { defineAsyncComponent as E, computed as p, onMounted as it, ref as y, watch as ct, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as He, createBlock as B, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as dt, withCtx as w, renderSlot as b, normalizeProps as R, guardReactiveProps as U, Fragment as W, renderList as j, toDisplayString as X, createTextVNode as vt, nextTick as ft } from "vue";
2
+ import { u as ht, o as pt, e as gt, c as ve, t as mt, p as S, a as yt, b as bt, v as $, d as kt, f as q, X as Ct, F as Ye, L as wt, i as fe, q as $t, r as Tt, x as xt } from "./index-pPGk-uhD.js";
3
+ import { u as Be } from "./useNestedProp-DjACxgdZ.js";
4
+ import { u as _t } from "./usePrinter-DDHcrl0A.js";
5
+ import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
7
+ import St from "./Legend-Bxlv67uY.js";
8
+ import Ft from "./Title-B-2bV0SW.js";
9
+ import Pt from "./img-Y_hYz-ZC.js";
10
+ import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const It = ["id"], At = {
11
12
  key: 1,
12
13
  ref: "noTitle",
13
14
  class: "vue-data-ui-no-title-space",
14
15
  style: "height:36px; width: 100%;background:transparent"
15
- }, At = {
16
+ }, Et = {
16
17
  key: 2,
17
18
  style: "width:100%;background:transparent;padding-bottom:24px"
18
- }, It = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"], Mt = ["stop-color"], Ht = ["stop-color"], Yt = ["d", "fill", "stroke", "stroke-width"], Bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Dt = ["x", "y", "font-size", "fill"], Rt = ["x", "y", "font-size", "fill"], Vt = {
19
+ }, zt = ["xmlns", "viewBox"], Mt = ["width", "height"], Ht = ["id"], Yt = ["stop-color"], Bt = ["stop-color"], Dt = ["d", "fill", "stroke", "stroke-width"], Rt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Ut = ["x", "y", "font-size", "fill"], Vt = ["x", "y", "font-size", "fill"], Gt = {
19
20
  key: 4,
20
21
  class: "vue-data-ui-watermark"
21
- }, Gt = ["onClick"], Ut = {
22
+ }, Wt = ["onClick"], jt = {
22
23
  key: 6,
23
24
  ref: "source",
24
25
  dir: "auto"
25
- }, Wt = ["innerHTML"], jt = {
26
+ }, Xt = ["innerHTML"], qt = {
26
27
  __name: "vue-ui-flow",
27
28
  props: {
28
29
  config: {
@@ -38,61 +39,61 @@ const Pt = ["id"], Lt = {
38
39
  }
39
40
  }
40
41
  },
41
- setup(Be, { expose: De }) {
42
- const Re = E(() => import("./vue-ui-accordion-CO4hmfuX.js")), Ve = E(() => import("./DataTable-B6MXw9cG.js")), Ge = E(() => import("./PackageVersion-DCreTQN4.js")), Ue = E(() => import("./PenAndPaper-BS60tkQN.js")), We = E(() => import("./vue-ui-skeleton-D9B8DY_k.js")), je = E(() => import("./Tooltip-5JmGL7sR.js")), Xe = E(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_flow: qe } = ft(), T = Be, ee = p(() => !!T.dataset && T.dataset.length);
43
- ut(() => {
42
+ setup(De, { expose: Re }) {
43
+ const Ue = E(() => import("./vue-ui-accordion-CVnA550V.js")), Ve = E(() => import("./DataTable-D0VYDhfx.js")), Ge = E(() => import("./PackageVersion-5TR4ocqp.js")), We = E(() => import("./PenAndPaper-D6AqipIO.js")), je = E(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = E(() => import("./Tooltip-CoQnTnr-.js")), qe = E(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_flow: Ze } = ht(), T = De, te = p(() => !!T.dataset && T.dataset.length);
44
+ it(() => {
44
45
  he();
45
46
  });
46
47
  function he() {
47
- ht(T.dataset) && pt({
48
+ pt(T.dataset) && gt({
48
49
  componentName: "VueUiFlow",
49
50
  type: "dataset"
50
51
  });
51
52
  }
52
- const te = y(ve()), oe = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Ze = y(null), z = y(!1);
53
- function Je(t) {
53
+ const oe = y(ve()), V = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Je = y(null), z = y(!1);
54
+ function me(t) {
54
55
  z.value = t, pe.value += 1;
55
56
  }
56
57
  const e = p({
57
- get: () => ke(),
58
+ get: () => Ce(),
58
59
  set: (t) => t
59
- }), { userOptionsVisible: ne, setUserOptionsVisibility: me, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: be } = Nt({
60
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: ye, keepUserOptionState: be } = Nt({ config: e.value }), { svgRef: ke } = Ot({
60
61
  config: e.value.style.chart.title
61
62
  });
62
- function ke() {
63
- const t = Ye({
63
+ function Ce() {
64
+ const t = Be({
64
65
  userConfig: T.config,
65
- defaultConfig: qe
66
+ defaultConfig: Ze
66
67
  });
67
68
  let l = t;
68
69
  return t.theme ? l = {
69
- ...Ye({
70
- userConfig: mt.vue_ui_flow[t.theme] || T.config,
70
+ ...Be({
71
+ userConfig: yt.vue_ui_flow[t.theme] || T.config,
71
72
  defaultConfig: t
72
73
  }),
73
- customPalette: gt[t.theme] || S
74
+ customPalette: mt[t.theme] || S
74
75
  } : l = t, l.nodeCategories = T.config.nodeCategories || {}, l.nodeCategoryColors = T.config.nodeCategoryColors || {}, l;
75
76
  }
76
- it(
77
+ ct(
77
78
  () => T.config,
78
79
  (t) => {
79
- e.value = ke(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
80
+ e.value = Ce(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
80
81
  },
81
82
  { deep: !0 }
82
83
  );
83
- const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: Te } = xt({
84
- elementId: `flow_${te.value}`,
84
+ const { isPrinting: we, isImaging: $e, generatePdf: Te, generateImage: xe } = _t({
85
+ elementId: `flow_${oe.value}`,
85
86
  fileName: e.value.style.chart.title.text || "vue-ui-flow",
86
87
  options: e.value.userOptions.print
87
- }), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), q = p(() => yt(e.value.customPalette)), xe = p(() => e.value.style.chart.nodes.gap), M = p(() => e.value.style.chart.nodes.width), N = y({
88
+ }), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Z = p(() => bt(e.value.customPalette)), _e = p(() => e.value.style.chart.nodes.gap), M = p(() => e.value.style.chart.nodes.width), N = y({
88
89
  showTable: e.value.table.show,
89
90
  showTooltip: e.value.style.chart.tooltip.show
90
91
  }), Qe = p(() => e.value.style.chart.links.width), se = p(() => !T.dataset || !T.dataset.length ? [] : T.dataset.map((t, l) => [
91
92
  t[0],
92
93
  t[1],
93
94
  $(t[2]),
94
- t[3] ? bt(t[3]) : q.value[l] || q.value[l % q.value.length] || S[l] || S[l % S.length]
95
- ])), _e = p(() => {
95
+ t[3] ? kt(t[3]) : Z.value[l] || Z.value[l % Z.value.length] || S[l] || S[l % S.length]
96
+ ])), Ne = p(() => {
96
97
  const t = {};
97
98
  function l(a) {
98
99
  t[a] || (t[a] = { inflow: 0, outflow: 0 });
@@ -108,11 +109,11 @@ const Pt = ["id"], Lt = {
108
109
  return o;
109
110
  });
110
111
  function et(t) {
111
- return t / _e.value * 100 + e.value.style.chart.nodes.minHeight;
112
+ return t / Ne.value * 100 + e.value.style.chart.nodes.minHeight;
112
113
  }
113
114
  function tt(t) {
114
115
  const l = e.value.style.chart.nodes.minHeight;
115
- return (t - l) / 100 * _e.value;
116
+ return (t - l) / 100 * Ne.value;
116
117
  }
117
118
  function ot(t) {
118
119
  const l = {}, o = {};
@@ -131,7 +132,7 @@ const Pt = ["id"], Lt = {
131
132
  });
132
133
  const s = new Set(t.map(([n]) => n)), h = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !h.has(n)), Y = {};
133
134
  F.forEach((n, u) => {
134
- Y[n] = q.value[u] || S[u % S.length];
135
+ Y[n] = Z.value[u] || S[u % S.length];
135
136
  });
136
137
  const x = {};
137
138
  t.forEach(([n, u, c, v]) => {
@@ -160,33 +161,33 @@ const Pt = ["id"], Lt = {
160
161
  i: v,
161
162
  color: C.color,
162
163
  value: tt(C.height)
163
- }, u += C.height + xe.value;
164
+ }, u += C.height + _e.value;
164
165
  });
165
166
  }
166
- const I = [];
167
+ const A = [];
167
168
  for (const n of Object.keys(l)) {
168
169
  let u = O[n].absoluteY + e.value.style.chart.padding.top;
169
170
  const c = l[n], v = O[n];
170
171
  c.children && c.children.forEach(({ target: C, value: i }) => {
171
- const f = O[C], P = l[C], Q = $(u), Ee = $(
172
+ const f = O[C], P = l[C], ee = $(u), ze = $(
172
173
  u + i / c.outflow * v.height
173
174
  ), ce = $(
174
175
  f.y + e.value.style.chart.padding.top
175
- ), ze = $(
176
+ ), Me = $(
176
177
  ce + i / P.inflow * f.height
177
178
  );
178
- I.push({
179
+ A.push({
179
180
  id: ve(),
180
181
  source: n,
181
182
  target: C,
182
- path: `M ${$(v.x + M.value)} ${Q} L ${$(v.x + M.value)} ${Ee} L ${$(f.x)} ${ze} L ${$(f.x)} ${ce} Z`,
183
+ path: `M ${$(v.x + M.value)} ${ee} L ${$(v.x + M.value)} ${ze} L ${$(f.x)} ${Me} L ${$(f.x)} ${ce} Z`,
183
184
  value: i,
184
185
  sourceColor: c.color,
185
186
  targetColor: P.color
186
- }), u += Ee - Q, O[C].y += ze - ce;
187
+ }), u += ze - ee, O[C].y += Me - ce;
187
188
  });
188
189
  }
189
- return { nodeCoordinates: O, links: I };
190
+ return { nodeCoordinates: O, links: A };
190
191
  }
191
192
  const m = p(() => {
192
193
  const t = ot(T.dataset);
@@ -203,7 +204,7 @@ const Pt = ["id"], Lt = {
203
204
  const l = {};
204
205
  for (const a in t) {
205
206
  const { x: s, height: h } = t[a];
206
- l[s] || (l[s] = 0), l[s] += h + xe.value;
207
+ l[s] || (l[s] = 0), l[s] += h + _e.value;
207
208
  }
208
209
  return Math.max(...Object.values(l));
209
210
  }
@@ -219,16 +220,16 @@ const Pt = ["id"], Lt = {
219
220
  l[s] || (l[s] = []), o[h] || (o[h] = []), l[s].push(h), o[h].push(s);
220
221
  }), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
221
222
  }
222
- const k = y(null), H = y(null), re = y(null), Z = y(!1);
223
+ const k = y(null), H = y(null), re = y(null), J = y(!1);
223
224
  function nt(t) {
224
- A.value = [], k.value = at(t.name), H.value = t.name;
225
+ I.value = [], k.value = at(t.name), H.value = t.name;
225
226
  const l = t.name, o = se.value;
226
227
  let a = 0, s = 0, h = [], F = [];
227
- const Y = new Set(o.map(([i]) => i)), x = new Set(o.map(([, i]) => i)), Ie = Array.from(Y).filter((i) => !x.has(i)), O = o.filter(([i]) => Ie.includes(i)).reduce((i, [f, P, Q]) => i + Q, 0), I = {};
228
+ const Y = new Set(o.map(([i]) => i)), x = new Set(o.map(([, i]) => i)), Ee = Array.from(Y).filter((i) => !x.has(i)), O = o.filter(([i]) => Ee.includes(i)).reduce((i, [f, P, ee]) => i + ee, 0), A = {};
228
229
  m.value.nodes.forEach((i) => {
229
- I[i.name] = i.color;
230
+ A[i.name] = i.color;
230
231
  }), o.forEach(([i, f, P]) => {
231
- f === l && (a += P, h.push({ source: i, value: P, color: I[i] })), i === l && (s += P, F.push({ target: f, value: P, color: I[f] }));
232
+ f === l && (a += P, h.push({ source: i, value: P, color: A[i] })), i === l && (s += P, F.push({ target: f, value: P, color: A[f] }));
232
233
  });
233
234
  const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, c = {
234
235
  name: l,
@@ -237,24 +238,24 @@ const Pt = ["id"], Lt = {
237
238
  from: h,
238
239
  to: F,
239
240
  percentOfTotal: u,
240
- color: I[l] || "#000000"
241
+ color: A[l] || "#000000"
241
242
  };
242
243
  re.value = { datapoint: c }, le.value = !0;
243
244
  let v = "";
244
245
  const C = e.value.style.chart.tooltip.customFormat;
245
- if (Z.value = !1, Tt(C))
246
+ if (J.value = !1, xt(C))
246
247
  try {
247
248
  const i = C({
248
249
  datapoint: c,
249
250
  series: m.value,
250
251
  config: e.value
251
252
  });
252
- typeof i == "string" && (ae.value = i, Z.value = !0);
253
+ typeof i == "string" && (ae.value = i, J.value = !0);
253
254
  } catch {
254
255
  console.warn("Custom format cannot be applied.");
255
256
  }
256
- if (!Z.value) {
257
- const i = e.value.style.chart.tooltip.showPercentage ? `<div>${X({
257
+ if (!J.value) {
258
+ const i = e.value.style.chart.tooltip.showPercentage ? `<div>${q({
258
259
  p: e.value.style.chart.tooltip.translations.percentOfTotal,
259
260
  v: c.percentOfTotal,
260
261
  s: "%",
@@ -264,7 +265,7 @@ const Pt = ["id"], Lt = {
264
265
  v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${fe(
265
266
  e.value.style.chart.nodes.labels.formatter,
266
267
  f.value,
267
- X({
268
+ q({
268
269
  p: e.value.style.chart.nodes.labels.prefix,
269
270
  v: f.value,
270
271
  s: e.value.style.chart.nodes.labels.suffix,
@@ -275,7 +276,7 @@ const Pt = ["id"], Lt = {
275
276
  v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${fe(
276
277
  e.value.style.chart.nodes.labels.formatter,
277
278
  f.value,
278
- X({
279
+ q({
279
280
  p: e.value.style.chart.nodes.labels.prefix,
280
281
  v: f.value,
281
282
  s: e.value.style.chart.nodes.labels.suffix,
@@ -285,10 +286,10 @@ const Pt = ["id"], Lt = {
285
286
  })), ae.value = v;
286
287
  }
287
288
  }
288
- function Ne() {
289
+ function Oe() {
289
290
  k.value = null, H.value = null, le.value = !1;
290
291
  }
291
- const Oe = p(() => m.value.links.map(
292
+ const Se = p(() => m.value.links.map(
292
293
  ({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
293
294
  source: t,
294
295
  target: l,
@@ -297,9 +298,9 @@ const Pt = ["id"], Lt = {
297
298
  value: s
298
299
  })
299
300
  ));
300
- function Se(t = null) {
301
- vt(() => {
302
- const l = Oe.value.map((s, h) => [[s.source], [s.target], [s.value]]), o = [
301
+ function Fe(t = null) {
302
+ ft(() => {
303
+ const l = Se.value.map((s, h) => [[s.source], [s.target], [s.value]]), o = [
303
304
  [e.value.style.chart.title.text],
304
305
  [e.value.style.chart.title.subtitle.text],
305
306
  [
@@ -307,19 +308,19 @@ const Pt = ["id"], Lt = {
307
308
  [e.value.table.columnNames.target],
308
309
  [e.value.table.columnNames.value]
309
310
  ]
310
- ].concat(l), a = wt(o);
311
- t ? t(a) : $t({
311
+ ].concat(l), a = $t(o);
312
+ t ? t(a) : Tt({
312
313
  csvContent: a,
313
314
  title: e.value.style.chart.title.text || "vue-ui-flow"
314
315
  });
315
316
  });
316
317
  }
317
- const J = p(() => {
318
+ const K = p(() => {
318
319
  const t = [
319
320
  e.value.table.columnNames.source,
320
321
  e.value.table.columnNames.target,
321
322
  e.value.table.columnNames.value
322
- ], l = Oe.value.map((s, h) => [
323
+ ], l = Se.value.map((s, h) => [
323
324
  {
324
325
  color: s.sourceColor,
325
326
  name: s.source
@@ -328,7 +329,7 @@ const Pt = ["id"], Lt = {
328
329
  color: s.targetColor,
329
330
  name: s.target
330
331
  },
331
- X({
332
+ q({
332
333
  p: e.value.style.chart.nodes.labels.prefix,
333
334
  v: s.value,
334
335
  s: e.value.style.chart.nodes.labels.suffix,
@@ -361,17 +362,17 @@ const Pt = ["id"], Lt = {
361
362
  function st() {
362
363
  return m.value;
363
364
  }
364
- function Fe() {
365
+ function Pe() {
365
366
  N.value.showTable = !N.value.showTable;
366
367
  }
367
- const K = y(!1);
368
+ const Q = y(!1);
368
369
  function ue() {
369
- K.value = !K.value;
370
+ Q.value = !Q.value;
370
371
  }
371
- function Pe() {
372
+ function Le() {
372
373
  N.value.showTooltip = !N.value.showTooltip;
373
374
  }
374
- const Le = p(() => {
375
+ const Ie = p(() => {
375
376
  const t = new Set(
376
377
  m.value.nodes.map(
377
378
  (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
@@ -387,20 +388,20 @@ const Pt = ["id"], Lt = {
387
388
  })).map((l, o) => ({
388
389
  ...l,
389
390
  segregate: () => ie({ legend: l, i: o }),
390
- opacity: A.value.length ? A.value.includes(o) ? 1 : 0.5 : 1
391
+ opacity: I.value.length ? I.value.includes(o) ? 1 : 0.5 : 1
391
392
  }));
392
393
  }), Ae = p(
393
- () => Le.value.filter((t) => t.name !== "__uncategorized__")
394
- ), A = y([]);
394
+ () => Ie.value.filter((t) => t.name !== "__uncategorized__")
395
+ ), I = y([]);
395
396
  function ie({ legend: t, i: l }) {
396
397
  const o = t.name;
397
398
  if (k.value?.every(
398
399
  (a) => e.value.nodeCategories[a] === o
399
400
  )) {
400
- k.value = null, H.value = null, A.value = [];
401
+ k.value = null, H.value = null, I.value = [];
401
402
  return;
402
403
  }
403
- A.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), H.value = null;
404
+ I.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), H.value = null;
404
405
  }
405
406
  const rt = p(() => ({
406
407
  cy: "flow-legend",
@@ -410,36 +411,43 @@ const Pt = ["id"], Lt = {
410
411
  paddingBottom: e.value.style.chart.legend.paddingBottom,
411
412
  fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
412
413
  }));
413
- return De({
414
+ async function ut({ scale: t = 2 } = {}) {
415
+ if (!V.value) return;
416
+ const { imageUri: l, base64: o } = await Pt({ domElement: V.value, base64: !0, img: !0, scale: t });
417
+ return { imageUri: l, base64: o };
418
+ }
419
+ return Re({
414
420
  getData: st,
415
- generateCsv: Se,
416
- generateImage: Te,
417
- generatePdf: $e,
418
- toggleTable: Fe,
421
+ getImage: ut,
422
+ generateCsv: Fe,
423
+ generateImage: xe,
424
+ generatePdf: Te,
425
+ toggleTable: Pe,
419
426
  toggleAnnotator: ue,
420
- toggleTooltip: Pe,
427
+ toggleTooltip: Le,
421
428
  drillCategory: ie,
422
- unselectNode: Ne
429
+ unselectNode: Oe,
430
+ toggleFullscreen: me
423
431
  }), (t, l) => (d(), g("div", {
424
432
  ref_key: "flowChart",
425
- ref: oe,
426
- class: Me(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
433
+ ref: V,
434
+ class: He(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
427
435
  style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
428
- id: `flow_${te.value}`,
429
- onMouseenter: l[3] || (l[3] = () => r(me)(!0)),
430
- onMouseleave: l[4] || (l[4] = () => r(me)(!1))
436
+ id: `flow_${oe.value}`,
437
+ onMouseenter: l[3] || (l[3] = () => r(ye)(!0)),
438
+ onMouseleave: l[4] || (l[4] = () => r(ye)(!1))
431
439
  }, [
432
- e.value.userOptions.buttons.annotator ? (d(), B(r(Ue), {
440
+ e.value.userOptions.buttons.annotator ? (d(), B(r(We), {
433
441
  key: 0,
434
- svgRef: r(be),
442
+ svgRef: r(ke),
435
443
  backgroundColor: e.value.style.chart.backgroundColor,
436
444
  color: e.value.style.chart.color,
437
- active: K.value,
445
+ active: Q.value,
438
446
  onClose: ue
439
447
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
440
- Ke.value ? (d(), g("div", Lt, null, 512)) : _("", !0),
441
- e.value.style.chart.title.text ? (d(), g("div", At, [
442
- (d(), B(St, {
448
+ Ke.value ? (d(), g("div", At, null, 512)) : _("", !0),
449
+ e.value.style.chart.title.text ? (d(), g("div", Et, [
450
+ (d(), B(Ft, {
443
451
  key: `title_${ge.value}`,
444
452
  config: {
445
453
  title: {
@@ -453,14 +461,14 @@ const Pt = ["id"], Lt = {
453
461
  }
454
462
  }, null, 8, ["config"]))
455
463
  ])) : _("", !0),
456
- e.value.userOptions.show && ee.value && (r(ye) || r(ne)) ? (d(), B(r(Xe), {
464
+ e.value.userOptions.show && te.value && (r(be) || r(ne)) ? (d(), B(r(qe), {
457
465
  ref: "details",
458
466
  key: `user_option_${pe.value}`,
459
467
  backgroundColor: e.value.style.chart.backgroundColor,
460
468
  color: e.value.style.chart.color,
461
- isPrinting: r(Ce),
462
- isImaging: r(we),
463
- uid: te.value,
469
+ isPrinting: r(we),
470
+ isImaging: r($e),
471
+ uid: oe.value,
464
472
  hasPdf: e.value.userOptions.buttons.pdf,
465
473
  hasXls: e.value.userOptions.buttons.csv,
466
474
  hasImg: e.value.userOptions.buttons.img,
@@ -469,27 +477,28 @@ const Pt = ["id"], Lt = {
469
477
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
470
478
  isFullscreen: z.value,
471
479
  titles: { ...e.value.userOptions.buttonTitles },
472
- chartElement: oe.value,
480
+ chartElement: V.value,
473
481
  position: e.value.userOptions.position,
474
482
  hasAnnotator: e.value.userOptions.buttons.annotator,
475
- isAnnotation: K.value,
483
+ printScale: e.value.userOptions.print.scale,
484
+ isAnnotation: Q.value,
476
485
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
477
486
  isTooltip: N.value.showTooltip,
478
- onToggleTooltip: Pe,
479
- onToggleFullscreen: Je,
480
- onGeneratePdf: r($e),
481
- onGenerateCsv: Se,
482
- onGenerateImage: r(Te),
483
- onToggleTable: Fe,
487
+ onToggleTooltip: Le,
488
+ onToggleFullscreen: me,
489
+ onGeneratePdf: r(Te),
490
+ onGenerateCsv: Fe,
491
+ onGenerateImage: r(xe),
492
+ onToggleTable: Pe,
484
493
  onToggleAnnotator: ue,
485
494
  style: L({
486
- visibility: r(ye) ? r(ne) ? "visible" : "hidden" : "visible"
495
+ visibility: r(be) ? r(ne) ? "visible" : "hidden" : "visible"
487
496
  })
488
- }, ct({ _: 2 }, [
497
+ }, dt({ _: 2 }, [
489
498
  t.$slots.menuIcon ? {
490
499
  name: "menuIcon",
491
500
  fn: w(({ isOpen: o, color: a }) => [
492
- b(t.$slots, "menuIcon", R(V({ isOpen: o, color: a })), void 0, !0)
501
+ b(t.$slots, "menuIcon", R(U({ isOpen: o, color: a })), void 0, !0)
493
502
  ]),
494
503
  key: "0"
495
504
  } : void 0,
@@ -531,24 +540,24 @@ const Pt = ["id"], Lt = {
531
540
  t.$slots.optionFullscreen ? {
532
541
  name: "optionFullscreen",
533
542
  fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
534
- b(t.$slots, "optionFullscreen", R(V({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
543
+ b(t.$slots, "optionFullscreen", R(U({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
535
544
  ]),
536
545
  key: "6"
537
546
  } : void 0,
538
547
  t.$slots.optionAnnotator ? {
539
548
  name: "optionAnnotator",
540
549
  fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
541
- b(t.$slots, "optionAnnotator", R(V({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
550
+ b(t.$slots, "optionAnnotator", R(U({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
542
551
  ]),
543
552
  key: "7"
544
553
  } : void 0
545
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
554
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
546
555
  (d(), g("svg", {
547
556
  ref_key: "svgRef",
548
- ref: be,
549
- xmlns: r(kt),
557
+ ref: ke,
558
+ xmlns: r(Ct),
550
559
  viewBox: `0 0 ${G.value.width} ${G.value.height}`,
551
- class: Me({
560
+ class: He({
552
561
  "vue-data-ui-fullscreen--on": z.value,
553
562
  "vue-data-ui-fulscreen--off": !z.value
554
563
  }),
@@ -566,9 +575,9 @@ const Pt = ["id"], Lt = {
566
575
  }
567
576
  }, [
568
577
  b(t.$slots, "chart-background", {}, void 0, !0)
569
- ], 8, Et)) : _("", !0),
578
+ ], 8, Mt)) : _("", !0),
570
579
  D("defs", null, [
571
- (d(!0), g(U, null, W(m.value.links, (o, a) => (d(), g("linearGradient", {
580
+ (d(!0), g(W, null, j(m.value.links, (o, a) => (d(), g("linearGradient", {
572
581
  id: o.id,
573
582
  x1: "0%",
574
583
  y1: "0%",
@@ -578,14 +587,14 @@ const Pt = ["id"], Lt = {
578
587
  D("stop", {
579
588
  offset: "0%",
580
589
  "stop-color": o.sourceColor
581
- }, null, 8, Mt),
590
+ }, null, 8, Yt),
582
591
  D("stop", {
583
592
  offset: "100%",
584
593
  "stop-color": o.targetColor
585
- }, null, 8, Ht)
586
- ], 8, zt))), 256))
594
+ }, null, 8, Bt)
595
+ ], 8, Ht))), 256))
587
596
  ]),
588
- (d(!0), g(U, null, W(m.value.links, (o) => (d(), g("path", {
597
+ (d(!0), g(W, null, j(m.value.links, (o) => (d(), g("path", {
589
598
  class: "vue-ui-flow-link",
590
599
  d: o.path,
591
600
  fill: `url(#${o.id})`,
@@ -594,8 +603,8 @@ const Pt = ["id"], Lt = {
594
603
  style: L(`
595
604
  opacity:${k.value ? k.value.includes(o.source) && k.value.includes(o.target) ? 1 : 0.3 : H.value ? [o.target, o.source].includes(H.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
596
605
  `)
597
- }, null, 12, Yt))), 256)),
598
- (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("rect", {
606
+ }, null, 12, Dt))), 256)),
607
+ (d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("rect", {
599
608
  class: "vue-ui-flow-node",
600
609
  x: o.x,
601
610
  y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
@@ -605,48 +614,48 @@ const Pt = ["id"], Lt = {
605
614
  stroke: e.value.style.chart.nodes.stroke,
606
615
  "stroke-width": e.value.style.chart.nodes.strokeWidth,
607
616
  onMouseenter: (s) => nt(o),
608
- onMouseleave: l[0] || (l[0] = (s) => Ne()),
617
+ onMouseleave: l[0] || (l[0] = (s) => Oe()),
609
618
  style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
610
- }, null, 44, Bt))), 256)),
611
- (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
619
+ }, null, 44, Rt))), 256)),
620
+ (d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
612
621
  x: o.x + M.value / 2,
613
622
  y: r($)(
614
623
  o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
615
624
  ) + e.value.style.chart.padding.top,
616
625
  "font-size": e.value.style.chart.nodes.labels.fontSize,
617
- fill: r(He)(o.color),
626
+ fill: r(Ye)(o.color),
618
627
  "text-anchor": "middle",
619
628
  style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
620
- }, j(e.value.style.chart.nodes.labels.abbreviation.use ? r(Ct)({
629
+ }, X(e.value.style.chart.nodes.labels.abbreviation.use ? r(wt)({
621
630
  source: o.name,
622
631
  length: e.value.style.chart.nodes.labels.abbreviation.length
623
- }) : o.name), 13, Dt))), 256)),
624
- (d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
632
+ }) : o.name), 13, Ut))), 256)),
633
+ (d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
625
634
  x: o.x + M.value / 2,
626
635
  y: r($)(
627
636
  o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
628
637
  ) + e.value.style.chart.padding.top,
629
638
  "font-size": e.value.style.chart.nodes.labels.fontSize,
630
- fill: r(He)(o.color),
639
+ fill: r(Ye)(o.color),
631
640
  "text-anchor": "middle",
632
641
  style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
633
- }, j(r(fe)(
642
+ }, X(r(fe)(
634
643
  e.value.style.chart.nodes.labels.formatter,
635
644
  o.value,
636
- r(X)({
645
+ r(q)({
637
646
  p: e.value.style.chart.nodes.labels.prefix,
638
647
  v: o.value,
639
648
  s: e.value.style.chart.nodes.labels.suffix,
640
649
  r: e.value.style.chart.nodes.labels.rounding
641
650
  }),
642
651
  { datapoint: o, seriesIndex: a }
643
- )), 13, Rt))), 256)),
652
+ )), 13, Vt))), 256)),
644
653
  b(t.$slots, "svg", { svg: G.value }, void 0, !0)
645
- ], 14, It)),
646
- t.$slots.watermark ? (d(), g("div", Vt, [
647
- b(t.$slots, "watermark", R(V({ isPrinting: r(Ce) || r(we) })), void 0, !0)
654
+ ], 14, zt)),
655
+ t.$slots.watermark ? (d(), g("div", Gt, [
656
+ b(t.$slots, "watermark", R(U({ isPrinting: r(we) || r($e) })), void 0, !0)
648
657
  ])) : _("", !0),
649
- ee.value ? _("", !0) : (d(), B(r(We), {
658
+ te.value ? _("", !0) : (d(), B(r(je), {
650
659
  key: 5,
651
660
  config: {
652
661
  type: "flow",
@@ -657,9 +666,9 @@ const Pt = ["id"], Lt = {
657
666
  }, null, 8, ["config"])),
658
667
  D("div", {
659
668
  ref_key: "chartLegend",
660
- ref: Ze
669
+ ref: Je
661
670
  }, [
662
- e.value.style.chart.legend.show && Ae.value.length ? (d(), B(Ot, {
671
+ e.value.style.chart.legend.show && Ae.value.length ? (d(), B(St, {
663
672
  key: 0,
664
673
  legendSet: Ae.value,
665
674
  config: rt.value,
@@ -668,17 +677,17 @@ const Pt = ["id"], Lt = {
668
677
  item: w(({ legend: o, index: a }) => [
669
678
  D("div", {
670
679
  onClick: (s) => o.segregate(),
671
- style: L(`opacity:${A.value.length ? A.value.includes(a) ? 1 : 0.5 : 1}`)
672
- }, j(o.name) + " (" + j(o.count) + ") ", 13, Gt)
680
+ style: L(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
681
+ }, X(o.name) + " (" + X(o.count) + ") ", 13, Wt)
673
682
  ]),
674
683
  _: 1
675
684
  }, 8, ["legendSet", "config"])) : _("", !0),
676
- b(t.$slots, "legend", { legend: Le.value }, void 0, !0)
685
+ b(t.$slots, "legend", { legend: Ie.value }, void 0, !0)
677
686
  ], 512),
678
- t.$slots.source ? (d(), g("div", Ut, [
687
+ t.$slots.source ? (d(), g("div", jt, [
679
688
  b(t.$slots, "source", {}, void 0, !0)
680
689
  ], 512)) : _("", !0),
681
- de(r(je), {
690
+ de(r(Xe), {
682
691
  show: N.value.showTooltip && le.value,
683
692
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
684
693
  color: e.value.style.chart.tooltip.color,
@@ -689,20 +698,20 @@ const Pt = ["id"], Lt = {
689
698
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
690
699
  position: e.value.style.chart.tooltip.position,
691
700
  offsetY: e.value.style.chart.tooltip.offsetY,
692
- parent: oe.value,
701
+ parent: V.value,
693
702
  content: ae.value,
694
- isCustom: Z.value,
703
+ isCustom: J.value,
695
704
  isFullscreen: z.value
696
705
  }, {
697
706
  "tooltip-before": w(() => [
698
- b(t.$slots, "tooltip-before", R(V({ ...re.value })), void 0, !0)
707
+ b(t.$slots, "tooltip-before", R(U({ ...re.value })), void 0, !0)
699
708
  ]),
700
709
  "tooltip-after": w(() => [
701
- b(t.$slots, "tooltip-after", R(V({ ...re.value })), void 0, !0)
710
+ b(t.$slots, "tooltip-after", R(U({ ...re.value })), void 0, !0)
702
711
  ]),
703
712
  _: 3
704
713
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
705
- ee.value ? (d(), B(r(Re), {
714
+ te.value ? (d(), B(r(Ue), {
706
715
  key: 7,
707
716
  hideDetails: "",
708
717
  config: {
@@ -720,10 +729,10 @@ const Pt = ["id"], Lt = {
720
729
  }, {
721
730
  content: w(() => [
722
731
  de(r(Ve), {
723
- colNames: J.value.colNames,
724
- head: J.value.head,
725
- body: J.value.body,
726
- config: J.value.config,
732
+ colNames: K.value.colNames,
733
+ head: K.value.head,
734
+ body: K.value.body,
735
+ config: K.value.config,
727
736
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
728
737
  onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
729
738
  }, {
@@ -731,19 +740,19 @@ const Pt = ["id"], Lt = {
731
740
  D("div", {
732
741
  innerHTML: o,
733
742
  style: { display: "flex", "align-items": "center" }
734
- }, null, 8, Wt)
743
+ }, null, 8, Xt)
735
744
  ]),
736
745
  td: w(({ td: o }) => [
737
- dt(j(o.name || o), 1)
746
+ vt(X(o.name || o), 1)
738
747
  ]),
739
748
  _: 1
740
749
  }, 8, ["colNames", "head", "body", "config", "title"])
741
750
  ]),
742
751
  _: 1
743
752
  }, 8, ["config"])) : _("", !0)
744
- ], 46, Pt));
753
+ ], 46, It));
745
754
  }
746
- }, lo = /* @__PURE__ */ Ft(jt, [["__scopeId", "data-v-3b19a8a3"]]);
755
+ }, so = /* @__PURE__ */ Lt(qt, [["__scopeId", "data-v-5c035177"]]);
747
756
  export {
748
- lo as default
757
+ so as default
749
758
  };