vue-data-ui 2.12.6 → 2.12.7-beta.1

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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -0,0 +1,580 @@
1
+ import { useCssVars as Qe, defineAsyncComponent as p, computed as k, onMounted as Je, ref as u, 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 _, 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, P as vt, X as ht, l as pt, Q as ft, d as ge, q as gt, r as mt, x as yt, y as bt } from "./index-BHEd2dgu.js";
3
+ import { u as me } from "./useNestedProp-CZztHZIm.js";
4
+ import { u as kt } from "./usePrinter-C8URL2IU.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 Pt = ["id"], Ot = {
10
+ key: 1,
11
+ ref: "noTitle",
12
+ class: "vue-data-ui-no-title-space",
13
+ style: "height:36px; width: 100%;background:transparent"
14
+ }, At = {
15
+ key: 2,
16
+ style: "width:100%;background:transparent;"
17
+ }, It = ["xmlns", "viewBox"], Nt = ["width", "height"], Ft = ["id"], _t = ["stop-color"], St = ["stop-color"], Lt = {
18
+ key: 5,
19
+ class: "vue-data-ui-watermark"
20
+ }, Dt = {
21
+ key: 6,
22
+ "data-dom-to-png-ignore": "",
23
+ class: "reset-wrapper"
24
+ }, Bt = {
25
+ key: 8,
26
+ ref: "source",
27
+ dir: "auto"
28
+ }, Ut = ["innerHTML"], Rt = {
29
+ __name: "vue-ui-molecule",
30
+ props: {
31
+ config: {
32
+ type: Object,
33
+ default() {
34
+ return {};
35
+ }
36
+ },
37
+ dataset: {
38
+ type: Array,
39
+ default() {
40
+ return [];
41
+ }
42
+ }
43
+ },
44
+ emits: ["selectNode"],
45
+ setup(ye, { expose: be, emit: ke }) {
46
+ Qe((t) => ({
47
+ ee2a6d54: t.slicerColor
48
+ }));
49
+ const Ce = p(() => import("./vue-ui-accordion-DntThSTF.js")), $e = p(() => import("./BaseIcon-DhWmrDAn.js")), we = p(() => import("./DataTable-Y5HbiUZU.js")), Te = p(() => import("./PackageVersion-DaWGaZxE.js")), Pe = p(() => import("./PenAndPaper-C-CpE0NC.js")), Oe = p(() => import("./RecursiveCircles-Dn3TGoL6.js")), Ae = p(() => import("./RecursiveLabels-NTMB9w5C.js")), Ie = p(() => import("./RecursiveLinks-ld_gDZH4.js")), Ne = p(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), Fe = p(() => import("./Title-Bc66VstS.js")), _e = p(() => import("./Tooltip-B07vY6jm.js")), Se = p(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_molecule: Le } = nt(), C = ye, De = ke, S = k(() => !!C.dataset && C.dataset.length);
50
+ Je(() => {
51
+ W();
52
+ });
53
+ function W() {
54
+ rt(C.dataset) && it({
55
+ componentName: "VueUiMolecule",
56
+ type: "dataset"
57
+ });
58
+ }
59
+ const U = u(pe()), Be = u(null), R = u(!1), L = u(""), E = u(null), X = u(0), j = u(0), Y = u(0), e = k({
60
+ get: () => Q(),
61
+ set: (t) => t
62
+ }), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } = Ct({ config: e.value }), { svgRef: z } = $t({ config: e.value.style.chart.title });
63
+ function Q() {
64
+ const t = me({
65
+ userConfig: C.config,
66
+ defaultConfig: Le
67
+ });
68
+ return t.theme ? {
69
+ ...me({
70
+ userConfig: ct.vue_ui_molecule[t.theme] || C.config,
71
+ defaultConfig: t
72
+ }),
73
+ customPalette: ut[t.theme] || fe
74
+ } : t;
75
+ }
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;
78
+ }, { deep: !0 });
79
+ const { isPrinting: J, isImaging: K, generatePdf: ee, generateImage: te } = kt({
80
+ elementId: `cluster_${U.value}`,
81
+ fileName: e.value.style.chart.title.text || "vue-ui-molecule",
82
+ options: e.value.userOptions.print
83
+ }), Ue = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = k(() => dt(e.value.customPalette)), h = u({
84
+ showTable: e.value.table.show,
85
+ showDataLabels: !0,
86
+ showTooltip: e.value.style.chart.tooltip.show
87
+ });
88
+ function oe(t, s = 0) {
89
+ return Array.isArray(t) && t.length > 0 && t[0].nodes ? oe(t[0].nodes, s + 1) : s;
90
+ }
91
+ function Ee() {
92
+ const t = oe(C.dataset);
93
+ let s = 100, o = s;
94
+ for (let n = 0; n < t; n += 1)
95
+ s /= 1, o += s;
96
+ return {
97
+ height: o,
98
+ width: o
99
+ };
100
+ }
101
+ const v = u(Ee());
102
+ u(`0 0 ${v.value.width} ${v.value.height}`);
103
+ 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, c = 0, g = "#BBBBBB", G = 0) {
104
+ if (!Array.isArray(t) || t.length === 0) return t;
105
+ const qe = ft({
106
+ plot: s,
107
+ radius: o,
108
+ sides: t.length,
109
+ rotation: a
110
+ });
111
+ return t.forEach((m, ce) => {
112
+ const de = qe.coordinates[ce], ve = m.color ? (() => {
113
+ let M = ge(m.color);
114
+ return M.startsWith("#") ? M : `#${M}`;
115
+ })() : null;
116
+ let O;
117
+ ve ? O = ve : G === 0 ? O = g : G === 1 ? (O = Re.value[c] || fe[c] || g, c += 1) : O = g, m.polygonPath = { coordinates: [de] }, m.circleRadius = n, m.color = O, m.uid = pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = le(
118
+ m.nodes,
119
+ de,
120
+ o / 2.9,
121
+ n / 2.2,
122
+ a + Math.PI * ce / m.nodes.length,
123
+ c,
124
+ O,
125
+ G + 1
126
+ ));
127
+ }), t;
128
+ }
129
+ function xe(t) {
130
+ const s = /* @__PURE__ */ new Set();
131
+ function o(a) {
132
+ a.forEach((c) => {
133
+ if (!c.color) return;
134
+ let g = c.color;
135
+ /^#?[0-9A-F]{6}$/i.test(g) || (g = ge(g)), g.startsWith("#") || (g = `#${g}`), s.add(g), Array.isArray(c.nodes) && c.nodes.length && o(c.nodes);
136
+ });
137
+ }
138
+ o(t);
139
+ const n = {};
140
+ return Array.from(s).forEach((a) => {
141
+ const c = a.slice(1);
142
+ n[a] = `gradient_${c}`;
143
+ }), n;
144
+ }
145
+ const ze = k(() => xe(b.value)), b = k(() => {
146
+ const t = vt(C.dataset);
147
+ return le(t);
148
+ }), H = u(null);
149
+ function He(t) {
150
+ H.value = {
151
+ datapoint: t,
152
+ seriesIndex: -1,
153
+ series: b.value,
154
+ config: e.value
155
+ };
156
+ const s = e.value.style.chart.tooltip.customFormat;
157
+ if (yt(s) && bt(() => s({
158
+ seriesIndex: -1,
159
+ datapoint: t,
160
+ series: b.value,
161
+ config: e.value
162
+ })))
163
+ L.value = s({
164
+ seriesIndex: -1,
165
+ // well, ok
166
+ datapoint: t,
167
+ series: b.value,
168
+ config: e.value
169
+ });
170
+ else {
171
+ 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
+ }
174
+ }
175
+ const se = u(null), A = u(null);
176
+ function Ve(t) {
177
+ se.value = t, t ? (R.value = !0, He(t), A.value = t.uid) : (R.value = !1, L.value = "", A.value = null);
178
+ }
179
+ function Ge(t) {
180
+ const s = [];
181
+ function o(n) {
182
+ n.forEach((a) => {
183
+ const c = {
184
+ name: a.name,
185
+ details: a.details || "-",
186
+ ancestor: a.ancestor && a.ancestor.name || "-",
187
+ color: a.color || ""
188
+ };
189
+ s.push(c), a.nodes && a.nodes.length > 0 && o(a.nodes, a.name);
190
+ });
191
+ }
192
+ return o(t), s;
193
+ }
194
+ const Me = k(() => Ge(b.value)), P = k(() => {
195
+ const t = [
196
+ e.value.table.translations.nodeName,
197
+ e.value.table.translations.details,
198
+ e.value.table.translations.ancestor
199
+ ], s = Me.value.map((a, c) => [
200
+ {
201
+ color: a.color,
202
+ name: a.name
203
+ },
204
+ a.details,
205
+ a.ancestor || ""
206
+ ]), o = {
207
+ th: {
208
+ backgroundColor: e.value.table.th.backgroundColor,
209
+ color: e.value.table.th.color,
210
+ outline: e.value.table.th.outline
211
+ },
212
+ td: {
213
+ backgroundColor: e.value.table.td.backgroundColor,
214
+ color: e.value.table.td.color,
215
+ outline: e.value.table.td.outline
216
+ },
217
+ breakpoint: e.value.table.responsiveBreakpoint
218
+ }, n = [
219
+ e.value.table.translations.nodeName,
220
+ e.value.table.translations.details,
221
+ e.value.table.translations.ancestor
222
+ ];
223
+ return {
224
+ head: t,
225
+ body: s,
226
+ config: o,
227
+ colNames: n
228
+ };
229
+ });
230
+ function ae() {
231
+ at(() => {
232
+ const t = P.value.body.map((n, a) => [[n[0].name], [n[1]], [n[2]]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...P.value.head]]].concat(t), o = gt(s);
233
+ mt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-molecule" });
234
+ });
235
+ }
236
+ function We() {
237
+ return b.value;
238
+ }
239
+ const I = u(!1);
240
+ function Xe(t) {
241
+ I.value = t, X.value += 1;
242
+ }
243
+ function ne() {
244
+ h.value.showTable = !h.value.showTable;
245
+ }
246
+ function re() {
247
+ h.value.showDataLabels = !h.value.showDataLabels;
248
+ }
249
+ function ie() {
250
+ h.value.showTooltip = !h.value.showTooltip;
251
+ }
252
+ const N = u(!1);
253
+ function V() {
254
+ N.value = !N.value;
255
+ }
256
+ const je = k(() => !N.value), { viewBox: D, resetZoom: ue, isZoom: Ye } = wt(z, {
257
+ x: 0,
258
+ y: 0,
259
+ width: v.value.width <= 0 ? 10 : v.value.width,
260
+ height: v.value.height <= 0 ? 10 : v.value.height
261
+ }, e.value.style.chart.zoom.speed, je);
262
+ function Ze(t) {
263
+ De("selectNode", t);
264
+ }
265
+ return be({
266
+ getData: We,
267
+ generatePdf: ee,
268
+ generateCsv: ae,
269
+ generateImage: te,
270
+ toggleTable: ne,
271
+ toggleLabels: re,
272
+ toggleTooltip: ie,
273
+ toggleAnnotator: V
274
+ }), (t, s) => (r(), y("div", {
275
+ 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}`),
279
+ id: `cluster_${U.value}`,
280
+ onMouseleave: s[2] || (s[2] = (o) => {
281
+ se.value = null, A.value = null, l(Z)(!1);
282
+ }),
283
+ onMouseenter: s[3] || (s[3] = () => l(Z)(!0))
284
+ }, [
285
+ e.value.userOptions.buttons.annotator ? (r(), $(l(Pe), {
286
+ key: 0,
287
+ svgRef: l(z),
288
+ backgroundColor: e.value.style.chart.backgroundColor,
289
+ color: e.value.style.chart.color,
290
+ active: N.value,
291
+ onClose: V
292
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
293
+ Ue.value ? (r(), y("div", Ot, null, 512)) : f("", !0),
294
+ e.value.style.chart.title.text ? (r(), y("div", At, [
295
+ (r(), $(l(Fe), {
296
+ key: `title_${j.value}`,
297
+ config: {
298
+ title: {
299
+ cy: "molecule-div-title",
300
+ ...e.value.style.chart.title
301
+ },
302
+ subtitle: {
303
+ cy: "molecule-div-subtitle",
304
+ ...e.value.style.chart.title.subtitle
305
+ }
306
+ }
307
+ }, null, 8, ["config"]))
308
+ ])) : f("", !0),
309
+ e.value.userOptions.show && S.value && (l(q) || l(x)) ? (r(), $(l(Se), {
310
+ ref_key: "details",
311
+ ref: Be,
312
+ key: `user_options_${X.value}`,
313
+ backgroundColor: e.value.style.chart.backgroundColor,
314
+ color: e.value.style.chart.color,
315
+ isPrinting: l(J),
316
+ isImaging: l(K),
317
+ uid: U.value,
318
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
319
+ hasPdf: e.value.userOptions.buttons.pdf,
320
+ hasXls: e.value.userOptions.buttons.csv,
321
+ hasImg: e.value.userOptions.buttons.img,
322
+ hasTable: e.value.userOptions.buttons.table,
323
+ hasLabel: e.value.userOptions.buttons.labels,
324
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
325
+ isTooltip: h.value.showTooltip,
326
+ titles: { ...e.value.userOptions.buttonTitles },
327
+ chartElement: E.value,
328
+ position: e.value.userOptions.position,
329
+ hasAnnotator: e.value.userOptions.buttons.annotator,
330
+ isAnnotation: N.value,
331
+ onToggleFullscreen: Xe,
332
+ onGeneratePdf: l(ee),
333
+ onGenerateCsv: ae,
334
+ onGenerateImage: l(te),
335
+ onToggleTable: ne,
336
+ onToggleLabels: re,
337
+ onToggleTooltip: ie,
338
+ onToggleAnnotator: V,
339
+ style: B({
340
+ visibility: l(q) ? l(x) ? "visible" : "hidden" : "visible"
341
+ })
342
+ }, et({ _: 2 }, [
343
+ t.$slots.menuIcon ? {
344
+ name: "menuIcon",
345
+ fn: d(({ isOpen: o, color: n }) => [
346
+ i(t.$slots, "menuIcon", w(T({ isOpen: o, color: n })), void 0, !0)
347
+ ]),
348
+ key: "0"
349
+ } : void 0,
350
+ t.$slots.optionTooltip ? {
351
+ name: "optionTooltip",
352
+ fn: d(() => [
353
+ i(t.$slots, "optionTooltip", {}, void 0, !0)
354
+ ]),
355
+ key: "1"
356
+ } : void 0,
357
+ t.$slots.optionPdf ? {
358
+ name: "optionPdf",
359
+ fn: d(() => [
360
+ i(t.$slots, "optionPdf", {}, void 0, !0)
361
+ ]),
362
+ key: "2"
363
+ } : void 0,
364
+ t.$slots.optionCsv ? {
365
+ name: "optionCsv",
366
+ fn: d(() => [
367
+ i(t.$slots, "optionCsv", {}, void 0, !0)
368
+ ]),
369
+ key: "3"
370
+ } : void 0,
371
+ t.$slots.optionImg ? {
372
+ name: "optionImg",
373
+ fn: d(() => [
374
+ i(t.$slots, "optionImg", {}, void 0, !0)
375
+ ]),
376
+ key: "4"
377
+ } : void 0,
378
+ t.$slots.optionTable ? {
379
+ name: "optionTable",
380
+ fn: d(() => [
381
+ i(t.$slots, "optionTable", {}, void 0, !0)
382
+ ]),
383
+ key: "5"
384
+ } : void 0,
385
+ t.$slots.optionLabels ? {
386
+ name: "optionLabels",
387
+ fn: d(() => [
388
+ i(t.$slots, "optionLabels", {}, void 0, !0)
389
+ ]),
390
+ key: "6"
391
+ } : void 0,
392
+ t.$slots.optionFullscreen ? {
393
+ name: "optionFullscreen",
394
+ fn: d(({ toggleFullscreen: o, isFullscreen: n }) => [
395
+ i(t.$slots, "optionFullscreen", w(T({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
396
+ ]),
397
+ key: "7"
398
+ } : void 0,
399
+ t.$slots.optionAnnotator ? {
400
+ name: "optionAnnotator",
401
+ fn: d(({ toggleAnnotator: o, isAnnotator: n }) => [
402
+ i(t.$slots, "optionAnnotator", w(T({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
403
+ ]),
404
+ key: "8"
405
+ } : void 0
406
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
407
+ S.value ? (r(), y("svg", {
408
+ key: 4,
409
+ ref_key: "svgRef",
410
+ ref: z,
411
+ xmlns: l(ht),
412
+ viewBox: `${l(D).x} ${l(D).y} ${l(D).width} ${l(D).height}`,
413
+ class: he({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
414
+ style: B(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
415
+ }, [
416
+ F(l(Te)),
417
+ t.$slots["chart-background"] ? (r(), y("foreignObject", {
418
+ key: 0,
419
+ x: 0,
420
+ y: 0,
421
+ width: v.value.width <= 0 ? 10 : v.value.width,
422
+ height: v.value.height <= 0 ? 10 : v.value.height,
423
+ style: {
424
+ pointerEvents: "none"
425
+ }
426
+ }, [
427
+ i(t.$slots, "chart-background", {}, void 0, !0)
428
+ ], 8, Nt)) : f("", !0),
429
+ _("defs", null, [
430
+ (r(!0), y(tt, null, ot(Object.keys(ze.value), (o) => (r(), y("radialGradient", {
431
+ id: `gradient_${o}`,
432
+ cx: "50%",
433
+ cy: "30%",
434
+ r: "50%",
435
+ fx: "50%",
436
+ fy: "50%"
437
+ }, [
438
+ _("stop", {
439
+ offset: "0%",
440
+ "stop-color": l(pt)(o, 0.5)
441
+ }, null, 8, _t),
442
+ _("stop", {
443
+ offset: "100%",
444
+ "stop-color": o
445
+ }, null, 8, St)
446
+ ], 8, Ft))), 256))
447
+ ]),
448
+ F(l(Ie), {
449
+ dataset: b.value,
450
+ color: e.value.style.chart.links.stroke,
451
+ backgroundColor: e.value.style.chart.backgroundColor
452
+ }, null, 8, ["dataset", "color", "backgroundColor"]),
453
+ F(l(Oe), {
454
+ dataset: b.value,
455
+ hoveredUid: A.value,
456
+ stroke: e.value.style.chart.nodes.stroke,
457
+ strokeHovered: e.value.style.chart.nodes.strokeHovered,
458
+ onClick: Ze,
459
+ onHover: Ve
460
+ }, {
461
+ node: d(({ node: o }) => [
462
+ i(t.$slots, "node", w(T({ node: o })), void 0, !0)
463
+ ]),
464
+ _: 3
465
+ }, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
466
+ h.value.showDataLabels ? (r(), $(l(Ae), {
467
+ key: 1,
468
+ dataset: b.value,
469
+ color: e.value.style.chart.color,
470
+ hoveredUid: A.value
471
+ }, null, 8, ["dataset", "color", "hoveredUid"])) : f("", !0),
472
+ i(t.$slots, "svg", { svg: v.value }, void 0, !0)
473
+ ], 14, It)) : f("", !0),
474
+ t.$slots.watermark ? (r(), y("div", Lt, [
475
+ i(t.$slots, "watermark", w(T({ isPrinting: l(J) || l(K) })), void 0, !0)
476
+ ])) : f("", !0),
477
+ l(Ye) ? (r(), y("div", Dt, [
478
+ i(t.$slots, "reset-action", { reset: l(ue) }, () => [
479
+ _("button", {
480
+ "data-cy-reset": "",
481
+ tabindex: "0",
482
+ role: "button",
483
+ class: "vue-data-ui-refresh-button",
484
+ style: B({
485
+ background: e.value.style.chart.backgroundColor
486
+ }),
487
+ onClick: s[0] || (s[0] = (o) => l(ue)(!0))
488
+ }, [
489
+ F(l($e), {
490
+ name: "refresh",
491
+ stroke: e.value.style.chart.color
492
+ }, null, 8, ["stroke"])
493
+ ], 4)
494
+ ], !0)
495
+ ])) : f("", !0),
496
+ S.value ? f("", !0) : (r(), $(l(Ne), {
497
+ key: 7,
498
+ config: {
499
+ type: "molecule",
500
+ style: {
501
+ backgroundColor: e.value.style.chart.backgroundColor,
502
+ molecule: {
503
+ color: "#CCCCCC"
504
+ }
505
+ }
506
+ }
507
+ }, null, 8, ["config"])),
508
+ t.$slots.source ? (r(), y("div", Bt, [
509
+ i(t.$slots, "source", {}, void 0, !0)
510
+ ], 512)) : f("", !0),
511
+ F(l(_e), {
512
+ show: h.value.showTooltip && R.value,
513
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
514
+ color: e.value.style.chart.tooltip.color,
515
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
516
+ borderColor: e.value.style.chart.tooltip.borderColor,
517
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
518
+ fontSize: e.value.style.chart.tooltip.fontSize,
519
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
520
+ position: e.value.style.chart.tooltip.position,
521
+ offsetY: e.value.style.chart.tooltip.offsetY,
522
+ parent: E.value,
523
+ content: L.value,
524
+ isFullscreen: I.value,
525
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
526
+ }, {
527
+ "tooltip-before": d(() => [
528
+ i(t.$slots, "tooltip-before", w(T({ ...H.value })), void 0, !0)
529
+ ]),
530
+ "tooltip-after": d(() => [
531
+ i(t.$slots, "tooltip-after", w(T({ ...H.value })), void 0, !0)
532
+ ]),
533
+ _: 3
534
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
535
+ S.value ? (r(), $(l(Ce), {
536
+ key: 9,
537
+ hideDetails: "",
538
+ config: {
539
+ open: h.value.showTable,
540
+ maxHeight: 1e4,
541
+ body: {
542
+ backgroundColor: e.value.style.chart.backgroundColor,
543
+ color: e.value.style.chart.color
544
+ },
545
+ head: {
546
+ backgroundColor: e.value.style.chart.backgroundColor,
547
+ color: e.value.style.chart.color
548
+ }
549
+ }
550
+ }, {
551
+ content: d(() => [
552
+ (r(), $(l(we), {
553
+ key: `table_${Y.value}`,
554
+ colNames: P.value.colNames,
555
+ head: P.value.head,
556
+ body: P.value.body,
557
+ config: P.value.config,
558
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
559
+ onClose: s[1] || (s[1] = (o) => h.value.showTable = !1)
560
+ }, {
561
+ th: d(({ th: o }) => [
562
+ _("div", {
563
+ innerHTML: o,
564
+ style: { display: "flex", "align-items": "center" }
565
+ }, null, 8, Ut)
566
+ ]),
567
+ td: d(({ td: o }) => [
568
+ lt(st(o.name || o), 1)
569
+ ]),
570
+ _: 1
571
+ }, 8, ["colNames", "head", "body", "config", "title"]))
572
+ ]),
573
+ _: 1
574
+ }, 8, ["config"])) : f("", !0)
575
+ ], 46, Pt));
576
+ }
577
+ }, Xt = /* @__PURE__ */ Tt(Rt, [["__scopeId", "data-v-7b4f61ba"]]);
578
+ export {
579
+ Xt as default
580
+ };