vue-data-ui 2.17.0 → 2.17.2
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.
- package/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useCssVars as Je, defineAsyncComponent as
|
|
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
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as Ct } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Je, defineAsyncComponent as p, computed as k, onMounted as Ke, ref as c, watch as et, createElementBlock as y, openBlock as i, unref as s, normalizeStyle as R, normalizeClass as pe, createBlock as $, createCommentVNode as f, createVNode as S, createSlots as tt, withCtx as d, renderSlot as u, 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 ht, X as pt, l as ft, R as gt, d as me, q as mt, r as yt, x as bt, y as kt } from "./index-JzUbx__y.js";
|
|
3
|
+
import { u as ye } from "./useNestedProp-D_jd2dz9.js";
|
|
4
|
+
import { u as Ct } from "./usePrinter-CsyliflB.js";
|
|
5
5
|
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
7
|
import { u as Tt } from "./usePanZoom-BQMvRXEQ.js";
|
|
8
|
-
import Ot from "./img-
|
|
8
|
+
import Ot from "./img-D0DpKcFX.js";
|
|
9
9
|
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const At = ["id"], It = {
|
|
11
11
|
key: 1,
|
|
@@ -18,11 +18,11 @@ const At = ["id"], It = {
|
|
|
18
18
|
}, Ft = ["xmlns", "viewBox"], St = ["width", "height"], _t = ["id"], Lt = ["stop-color"], Dt = ["stop-color"], Bt = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, Rt = {
|
|
22
22
|
key: 6,
|
|
23
23
|
"data-dom-to-png-ignore": "",
|
|
24
24
|
class: "reset-wrapper"
|
|
25
|
-
},
|
|
25
|
+
}, Ut = {
|
|
26
26
|
key: 8,
|
|
27
27
|
ref: "source",
|
|
28
28
|
dir: "auto"
|
|
@@ -43,11 +43,11 @@ const At = ["id"], It = {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
emits: ["selectNode"],
|
|
46
|
-
setup(
|
|
46
|
+
setup(be, { expose: ke, emit: Ce }) {
|
|
47
47
|
Je((t) => ({
|
|
48
|
-
"
|
|
48
|
+
"6620eef8": t.slicerColor
|
|
49
49
|
}));
|
|
50
|
-
const $e =
|
|
50
|
+
const $e = p(() => import("./vue-ui-accordion-CcTUbiHq.js")), we = p(() => import("./BaseIcon-C2f-EcZc.js")), Te = p(() => import("./DataTable-6BxhjBzt.js")), Oe = p(() => import("./PackageVersion-CIX1W_aa.js")), Pe = p(() => import("./PenAndPaper-CqJ4wudB.js")), Ae = p(() => import("./RecursiveCircles-Dn3TGoL6.js")), Ie = p(() => import("./RecursiveLabels-NTMB9w5C.js")), Ne = p(() => import("./RecursiveLinks-ld_gDZH4.js")), Fe = p(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Se = p(() => import("./Title-BQb7X_OR.js")), _e = p(() => import("./Tooltip-BTnTpPdO.js")), Le = p(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_molecule: De } = rt(), C = be, Be = Ce, L = k(() => !!C.dataset && C.dataset.length);
|
|
51
51
|
Ke(() => {
|
|
52
52
|
W();
|
|
53
53
|
});
|
|
@@ -57,17 +57,17 @@ const At = ["id"], It = {
|
|
|
57
57
|
type: "dataset"
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const U = c(fe()), Re = c(null), E = c(!1), D = c(""), O = c(null), X = c(0), j = c(0), Y = c(0), e = k({
|
|
61
61
|
get: () => Q(),
|
|
62
62
|
set: (t) => t
|
|
63
63
|
}), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } = $t({ config: e.value }), { svgRef: z } = wt({ config: e.value.style.chart.title });
|
|
64
64
|
function Q() {
|
|
65
|
-
const t =
|
|
65
|
+
const t = ye({
|
|
66
66
|
userConfig: C.config,
|
|
67
67
|
defaultConfig: De
|
|
68
68
|
});
|
|
69
69
|
return t.theme ? {
|
|
70
|
-
...
|
|
70
|
+
...ye({
|
|
71
71
|
userConfig: dt.vue_ui_molecule[t.theme] || C.config,
|
|
72
72
|
defaultConfig: t
|
|
73
73
|
}),
|
|
@@ -75,25 +75,25 @@ const At = ["id"], It = {
|
|
|
75
75
|
} : t;
|
|
76
76
|
}
|
|
77
77
|
et(() => C.config, (t) => {
|
|
78
|
-
e.value = Q(), x.value = !e.value.userOptions.showOnChartHover, W(), j.value += 1, Y.value += 1,
|
|
78
|
+
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;
|
|
79
79
|
}, { deep: !0 });
|
|
80
80
|
const { isPrinting: J, isImaging: K, generatePdf: ee, generateImage: te } = Ct({
|
|
81
|
-
elementId: `cluster_${
|
|
81
|
+
elementId: `cluster_${U.value}`,
|
|
82
82
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
83
83
|
options: e.value.userOptions.print
|
|
84
|
-
}),
|
|
84
|
+
}), Ue = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = k(() => vt(e.value.customPalette)), h = c({
|
|
85
85
|
showTable: e.value.table.show,
|
|
86
86
|
showDataLabels: !0,
|
|
87
87
|
showTooltip: e.value.style.chart.tooltip.show
|
|
88
88
|
});
|
|
89
|
-
function oe(t,
|
|
90
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ? oe(t[0].nodes,
|
|
89
|
+
function oe(t, l = 0) {
|
|
90
|
+
return Array.isArray(t) && t.length > 0 && t[0].nodes ? oe(t[0].nodes, l + 1) : l;
|
|
91
91
|
}
|
|
92
92
|
function xe() {
|
|
93
93
|
const t = oe(C.dataset);
|
|
94
|
-
let
|
|
94
|
+
let l = 100, o = l;
|
|
95
95
|
for (let n = 0; n < t; n += 1)
|
|
96
|
-
|
|
96
|
+
l /= 1, o += l;
|
|
97
97
|
return {
|
|
98
98
|
height: o,
|
|
99
99
|
width: o
|
|
@@ -101,71 +101,71 @@ const At = ["id"], It = {
|
|
|
101
101
|
}
|
|
102
102
|
const v = c(xe());
|
|
103
103
|
c(`0 0 ${v.value.width} ${v.value.height}`);
|
|
104
|
-
function le(t,
|
|
104
|
+
function le(t, l = { x: -v.value.width / 2.43, y: v.value.height / 2 }, o = v.value.width / 1.1, n = 24, a = 0, r = 0, g = "#BBBBBB", G = 0) {
|
|
105
105
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
106
106
|
const Qe = gt({
|
|
107
|
-
plot:
|
|
107
|
+
plot: l,
|
|
108
108
|
radius: o,
|
|
109
109
|
sides: t.length,
|
|
110
110
|
rotation: a
|
|
111
111
|
});
|
|
112
112
|
return t.forEach((m, de) => {
|
|
113
|
-
const ve = Qe.coordinates[de],
|
|
113
|
+
const ve = Qe.coordinates[de], he = m.color ? (() => {
|
|
114
114
|
let M = me(m.color);
|
|
115
115
|
return M.startsWith("#") ? M : `#${M}`;
|
|
116
116
|
})() : null;
|
|
117
|
-
let
|
|
118
|
-
|
|
117
|
+
let A;
|
|
118
|
+
he ? A = he : G === 0 ? A = g : G === 1 ? (A = Ee.value[r] || ge[r] || g, r += 1) : A = g, m.polygonPath = { coordinates: [ve] }, m.circleRadius = n, m.color = A, m.uid = fe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = le(
|
|
119
119
|
m.nodes,
|
|
120
120
|
ve,
|
|
121
121
|
o / 2.9,
|
|
122
122
|
n / 2.2,
|
|
123
123
|
a + Math.PI * de / m.nodes.length,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
r,
|
|
125
|
+
A,
|
|
126
126
|
G + 1
|
|
127
127
|
));
|
|
128
128
|
}), t;
|
|
129
129
|
}
|
|
130
130
|
function ze(t) {
|
|
131
|
-
const
|
|
131
|
+
const l = /* @__PURE__ */ new Set();
|
|
132
132
|
function o(a) {
|
|
133
|
-
a.forEach((
|
|
134
|
-
if (!
|
|
135
|
-
let g =
|
|
136
|
-
/^#?[0-9A-F]{6}$/i.test(g) || (g = me(g)), g.startsWith("#") || (g = `#${g}`),
|
|
133
|
+
a.forEach((r) => {
|
|
134
|
+
if (!r.color) return;
|
|
135
|
+
let g = r.color;
|
|
136
|
+
/^#?[0-9A-F]{6}$/i.test(g) || (g = me(g)), g.startsWith("#") || (g = `#${g}`), l.add(g), Array.isArray(r.nodes) && r.nodes.length && o(r.nodes);
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
o(t);
|
|
140
140
|
const n = {};
|
|
141
|
-
return Array.from(
|
|
142
|
-
const
|
|
143
|
-
n[a] = `gradient_${
|
|
141
|
+
return Array.from(l).forEach((a) => {
|
|
142
|
+
const r = a.slice(1);
|
|
143
|
+
n[a] = `gradient_${r}`;
|
|
144
144
|
}), n;
|
|
145
145
|
}
|
|
146
|
-
const He = k(() => ze(
|
|
147
|
-
const t =
|
|
146
|
+
const He = k(() => ze(b.value)), b = k(() => {
|
|
147
|
+
const t = ht(C.dataset);
|
|
148
148
|
return le(t);
|
|
149
149
|
}), H = c(null);
|
|
150
150
|
function Ve(t) {
|
|
151
151
|
H.value = {
|
|
152
152
|
datapoint: t,
|
|
153
153
|
seriesIndex: -1,
|
|
154
|
-
series:
|
|
154
|
+
series: b.value,
|
|
155
155
|
config: e.value
|
|
156
156
|
};
|
|
157
|
-
const
|
|
158
|
-
if (
|
|
157
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
158
|
+
if (bt(l) && kt(() => l({
|
|
159
159
|
seriesIndex: -1,
|
|
160
160
|
datapoint: t,
|
|
161
|
-
series:
|
|
161
|
+
series: b.value,
|
|
162
162
|
config: e.value
|
|
163
163
|
})))
|
|
164
|
-
D.value =
|
|
164
|
+
D.value = l({
|
|
165
165
|
seriesIndex: -1,
|
|
166
166
|
// well, ok
|
|
167
167
|
datapoint: t,
|
|
168
|
-
series:
|
|
168
|
+
series: b.value,
|
|
169
169
|
config: e.value
|
|
170
170
|
});
|
|
171
171
|
else {
|
|
@@ -178,26 +178,26 @@ const At = ["id"], It = {
|
|
|
178
178
|
se.value = t, t ? (E.value = !0, Ve(t), I.value = t.uid) : (E.value = !1, D.value = "", I.value = null);
|
|
179
179
|
}
|
|
180
180
|
function Me(t) {
|
|
181
|
-
const
|
|
181
|
+
const l = [];
|
|
182
182
|
function o(n) {
|
|
183
183
|
n.forEach((a) => {
|
|
184
|
-
const
|
|
184
|
+
const r = {
|
|
185
185
|
name: a.name,
|
|
186
186
|
details: a.details || "-",
|
|
187
187
|
ancestor: a.ancestor && a.ancestor.name || "-",
|
|
188
188
|
color: a.color || ""
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
l.push(r), a.nodes && a.nodes.length > 0 && o(a.nodes, a.name);
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
return o(t),
|
|
193
|
+
return o(t), l;
|
|
194
194
|
}
|
|
195
|
-
const We = k(() => Me(
|
|
195
|
+
const We = k(() => Me(b.value)), P = k(() => {
|
|
196
196
|
const t = [
|
|
197
197
|
e.value.table.translations.nodeName,
|
|
198
198
|
e.value.table.translations.details,
|
|
199
199
|
e.value.table.translations.ancestor
|
|
200
|
-
],
|
|
200
|
+
], l = We.value.map((a, r) => [
|
|
201
201
|
{
|
|
202
202
|
color: a.color,
|
|
203
203
|
name: a.name
|
|
@@ -223,32 +223,32 @@ const At = ["id"], It = {
|
|
|
223
223
|
];
|
|
224
224
|
return {
|
|
225
225
|
head: t,
|
|
226
|
-
body:
|
|
226
|
+
body: l,
|
|
227
227
|
config: o,
|
|
228
228
|
colNames: n
|
|
229
229
|
};
|
|
230
230
|
});
|
|
231
231
|
function ae(t = null) {
|
|
232
232
|
nt(() => {
|
|
233
|
-
const
|
|
234
|
-
t ? t(n) :
|
|
233
|
+
const l = P.value.body.map((a, r) => [[a[0].name], [a[1]], [a[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...P.value.head]]].concat(l), n = mt(o);
|
|
234
|
+
t ? t(n) : yt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
function Xe() {
|
|
238
|
-
return
|
|
238
|
+
return b.value;
|
|
239
239
|
}
|
|
240
240
|
const N = c(!1);
|
|
241
241
|
function ne(t) {
|
|
242
242
|
N.value = t, X.value += 1;
|
|
243
243
|
}
|
|
244
244
|
function re() {
|
|
245
|
-
|
|
245
|
+
h.value.showTable = !h.value.showTable;
|
|
246
246
|
}
|
|
247
247
|
function ie() {
|
|
248
|
-
|
|
248
|
+
h.value.showDataLabels = !h.value.showDataLabels;
|
|
249
249
|
}
|
|
250
250
|
function ue() {
|
|
251
|
-
|
|
251
|
+
h.value.showTooltip = !h.value.showTooltip;
|
|
252
252
|
}
|
|
253
253
|
const F = c(!1);
|
|
254
254
|
function V() {
|
|
@@ -264,9 +264,16 @@ const At = ["id"], It = {
|
|
|
264
264
|
Be("selectNode", t);
|
|
265
265
|
}
|
|
266
266
|
async function qe({ scale: t = 2 } = {}) {
|
|
267
|
-
if (!
|
|
268
|
-
const { imageUri:
|
|
269
|
-
return {
|
|
267
|
+
if (!O.value) return;
|
|
268
|
+
const { width: l, height: o } = O.value.getBoundingClientRect(), n = l / o, { imageUri: a, base64: r } = await Ot({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
269
|
+
return {
|
|
270
|
+
imageUri: a,
|
|
271
|
+
base64: r,
|
|
272
|
+
title: e.value.style.chart.title.text,
|
|
273
|
+
width: l,
|
|
274
|
+
height: o,
|
|
275
|
+
aspectRatio: n
|
|
276
|
+
};
|
|
270
277
|
}
|
|
271
278
|
return ke({
|
|
272
279
|
getData: Xe,
|
|
@@ -279,28 +286,28 @@ const At = ["id"], It = {
|
|
|
279
286
|
toggleTooltip: ue,
|
|
280
287
|
toggleAnnotator: V,
|
|
281
288
|
toggleFullscreen: ne
|
|
282
|
-
}), (t,
|
|
289
|
+
}), (t, l) => (i(), y("div", {
|
|
283
290
|
ref_key: "moleculeChart",
|
|
284
|
-
ref:
|
|
285
|
-
class:
|
|
286
|
-
style:
|
|
287
|
-
id: `cluster_${
|
|
288
|
-
onMouseleave:
|
|
289
|
-
se.value = null, I.value = null,
|
|
291
|
+
ref: O,
|
|
292
|
+
class: pe(`vue-ui-molecule ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
293
|
+
style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
294
|
+
id: `cluster_${U.value}`,
|
|
295
|
+
onMouseleave: l[2] || (l[2] = (o) => {
|
|
296
|
+
se.value = null, I.value = null, s(Z)(!1);
|
|
290
297
|
}),
|
|
291
|
-
onMouseenter:
|
|
298
|
+
onMouseenter: l[3] || (l[3] = () => s(Z)(!0))
|
|
292
299
|
}, [
|
|
293
|
-
e.value.userOptions.buttons.annotator ? (
|
|
300
|
+
e.value.userOptions.buttons.annotator ? (i(), $(s(Pe), {
|
|
294
301
|
key: 0,
|
|
295
|
-
svgRef:
|
|
302
|
+
svgRef: s(z),
|
|
296
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
297
304
|
color: e.value.style.chart.color,
|
|
298
305
|
active: F.value,
|
|
299
306
|
onClose: V
|
|
300
307
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
301
|
-
|
|
302
|
-
e.value.style.chart.title.text ? (
|
|
303
|
-
(
|
|
308
|
+
Ue.value ? (i(), y("div", It, null, 512)) : f("", !0),
|
|
309
|
+
e.value.style.chart.title.text ? (i(), y("div", Nt, [
|
|
310
|
+
(i(), $(s(Se), {
|
|
304
311
|
key: `title_${j.value}`,
|
|
305
312
|
config: {
|
|
306
313
|
title: {
|
|
@@ -314,15 +321,15 @@ const At = ["id"], It = {
|
|
|
314
321
|
}
|
|
315
322
|
}, null, 8, ["config"]))
|
|
316
323
|
])) : f("", !0),
|
|
317
|
-
e.value.userOptions.show && L.value && (
|
|
324
|
+
e.value.userOptions.show && L.value && (s(q) || s(x)) ? (i(), $(s(Le), {
|
|
318
325
|
ref_key: "details",
|
|
319
|
-
ref:
|
|
326
|
+
ref: Re,
|
|
320
327
|
key: `user_options_${X.value}`,
|
|
321
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
322
329
|
color: e.value.style.chart.color,
|
|
323
|
-
isPrinting:
|
|
324
|
-
isImaging:
|
|
325
|
-
uid:
|
|
330
|
+
isPrinting: s(J),
|
|
331
|
+
isImaging: s(K),
|
|
332
|
+
uid: U.value,
|
|
326
333
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
327
334
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
328
335
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -330,101 +337,101 @@ const At = ["id"], It = {
|
|
|
330
337
|
hasTable: e.value.userOptions.buttons.table,
|
|
331
338
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
332
339
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
333
|
-
isTooltip:
|
|
340
|
+
isTooltip: h.value.showTooltip,
|
|
334
341
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
335
|
-
chartElement:
|
|
342
|
+
chartElement: O.value,
|
|
336
343
|
position: e.value.userOptions.position,
|
|
337
344
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
338
345
|
isAnnotation: F.value,
|
|
339
346
|
callbacks: e.value.userOptions.callbacks,
|
|
340
347
|
printScale: e.value.userOptions.print.scale,
|
|
341
348
|
onToggleFullscreen: ne,
|
|
342
|
-
onGeneratePdf:
|
|
349
|
+
onGeneratePdf: s(ee),
|
|
343
350
|
onGenerateCsv: ae,
|
|
344
|
-
onGenerateImage:
|
|
351
|
+
onGenerateImage: s(te),
|
|
345
352
|
onToggleTable: re,
|
|
346
353
|
onToggleLabels: ie,
|
|
347
354
|
onToggleTooltip: ue,
|
|
348
355
|
onToggleAnnotator: V,
|
|
349
|
-
style:
|
|
350
|
-
visibility:
|
|
356
|
+
style: R({
|
|
357
|
+
visibility: s(q) ? s(x) ? "visible" : "hidden" : "visible"
|
|
351
358
|
})
|
|
352
359
|
}, tt({ _: 2 }, [
|
|
353
360
|
t.$slots.menuIcon ? {
|
|
354
361
|
name: "menuIcon",
|
|
355
362
|
fn: d(({ isOpen: o, color: n }) => [
|
|
356
|
-
|
|
363
|
+
u(t.$slots, "menuIcon", w(T({ isOpen: o, color: n })), void 0, !0)
|
|
357
364
|
]),
|
|
358
365
|
key: "0"
|
|
359
366
|
} : void 0,
|
|
360
367
|
t.$slots.optionTooltip ? {
|
|
361
368
|
name: "optionTooltip",
|
|
362
369
|
fn: d(() => [
|
|
363
|
-
|
|
370
|
+
u(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
364
371
|
]),
|
|
365
372
|
key: "1"
|
|
366
373
|
} : void 0,
|
|
367
374
|
t.$slots.optionPdf ? {
|
|
368
375
|
name: "optionPdf",
|
|
369
376
|
fn: d(() => [
|
|
370
|
-
|
|
377
|
+
u(t.$slots, "optionPdf", {}, void 0, !0)
|
|
371
378
|
]),
|
|
372
379
|
key: "2"
|
|
373
380
|
} : void 0,
|
|
374
381
|
t.$slots.optionCsv ? {
|
|
375
382
|
name: "optionCsv",
|
|
376
383
|
fn: d(() => [
|
|
377
|
-
|
|
384
|
+
u(t.$slots, "optionCsv", {}, void 0, !0)
|
|
378
385
|
]),
|
|
379
386
|
key: "3"
|
|
380
387
|
} : void 0,
|
|
381
388
|
t.$slots.optionImg ? {
|
|
382
389
|
name: "optionImg",
|
|
383
390
|
fn: d(() => [
|
|
384
|
-
|
|
391
|
+
u(t.$slots, "optionImg", {}, void 0, !0)
|
|
385
392
|
]),
|
|
386
393
|
key: "4"
|
|
387
394
|
} : void 0,
|
|
388
395
|
t.$slots.optionTable ? {
|
|
389
396
|
name: "optionTable",
|
|
390
397
|
fn: d(() => [
|
|
391
|
-
|
|
398
|
+
u(t.$slots, "optionTable", {}, void 0, !0)
|
|
392
399
|
]),
|
|
393
400
|
key: "5"
|
|
394
401
|
} : void 0,
|
|
395
402
|
t.$slots.optionLabels ? {
|
|
396
403
|
name: "optionLabels",
|
|
397
404
|
fn: d(() => [
|
|
398
|
-
|
|
405
|
+
u(t.$slots, "optionLabels", {}, void 0, !0)
|
|
399
406
|
]),
|
|
400
407
|
key: "6"
|
|
401
408
|
} : void 0,
|
|
402
409
|
t.$slots.optionFullscreen ? {
|
|
403
410
|
name: "optionFullscreen",
|
|
404
411
|
fn: d(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
405
|
-
|
|
412
|
+
u(t.$slots, "optionFullscreen", w(T({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
406
413
|
]),
|
|
407
414
|
key: "7"
|
|
408
415
|
} : void 0,
|
|
409
416
|
t.$slots.optionAnnotator ? {
|
|
410
417
|
name: "optionAnnotator",
|
|
411
418
|
fn: d(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
412
|
-
|
|
419
|
+
u(t.$slots, "optionAnnotator", w(T({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
413
420
|
]),
|
|
414
421
|
key: "8"
|
|
415
422
|
} : void 0
|
|
416
423
|
]), 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),
|
|
417
|
-
L.value ? (
|
|
424
|
+
L.value ? (i(), y("svg", {
|
|
418
425
|
key: 4,
|
|
419
426
|
ref_key: "svgRef",
|
|
420
427
|
ref: z,
|
|
421
|
-
xmlns:
|
|
422
|
-
viewBox: `${
|
|
423
|
-
class:
|
|
424
|
-
style:
|
|
428
|
+
xmlns: s(pt),
|
|
429
|
+
viewBox: `${s(B).x} ${s(B).y} ${s(B).width} ${s(B).height}`,
|
|
430
|
+
class: pe({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
431
|
+
style: R(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
425
432
|
}, [
|
|
426
|
-
S(
|
|
427
|
-
t.$slots["chart-background"] ? (
|
|
433
|
+
S(s(Oe)),
|
|
434
|
+
t.$slots["chart-background"] ? (i(), y("foreignObject", {
|
|
428
435
|
key: 0,
|
|
429
436
|
x: 0,
|
|
430
437
|
y: 0,
|
|
@@ -434,10 +441,10 @@ const At = ["id"], It = {
|
|
|
434
441
|
pointerEvents: "none"
|
|
435
442
|
}
|
|
436
443
|
}, [
|
|
437
|
-
|
|
444
|
+
u(t.$slots, "chart-background", {}, void 0, !0)
|
|
438
445
|
], 8, St)) : f("", !0),
|
|
439
446
|
_("defs", null, [
|
|
440
|
-
(
|
|
447
|
+
(i(!0), y(ot, null, lt(Object.keys(He.value), (o) => (i(), y("radialGradient", {
|
|
441
448
|
id: `gradient_${o}`,
|
|
442
449
|
cx: "50%",
|
|
443
450
|
cy: "30%",
|
|
@@ -447,7 +454,7 @@ const At = ["id"], It = {
|
|
|
447
454
|
}, [
|
|
448
455
|
_("stop", {
|
|
449
456
|
offset: "0%",
|
|
450
|
-
"stop-color":
|
|
457
|
+
"stop-color": s(ft)(o, 0.5)
|
|
451
458
|
}, null, 8, Lt),
|
|
452
459
|
_("stop", {
|
|
453
460
|
offset: "100%",
|
|
@@ -455,13 +462,13 @@ const At = ["id"], It = {
|
|
|
455
462
|
}, null, 8, Dt)
|
|
456
463
|
], 8, _t))), 256))
|
|
457
464
|
]),
|
|
458
|
-
S(
|
|
459
|
-
dataset:
|
|
465
|
+
S(s(Ne), {
|
|
466
|
+
dataset: b.value,
|
|
460
467
|
color: e.value.style.chart.links.stroke,
|
|
461
468
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
462
469
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
463
|
-
S(
|
|
464
|
-
dataset:
|
|
470
|
+
S(s(Ae), {
|
|
471
|
+
dataset: b.value,
|
|
465
472
|
hoveredUid: I.value,
|
|
466
473
|
stroke: e.value.style.chart.nodes.stroke,
|
|
467
474
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
@@ -469,41 +476,41 @@ const At = ["id"], It = {
|
|
|
469
476
|
onHover: Ge
|
|
470
477
|
}, {
|
|
471
478
|
node: d(({ node: o }) => [
|
|
472
|
-
|
|
479
|
+
u(t.$slots, "node", w(T({ node: o })), void 0, !0)
|
|
473
480
|
]),
|
|
474
481
|
_: 3
|
|
475
482
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
476
|
-
|
|
483
|
+
h.value.showDataLabels ? (i(), $(s(Ie), {
|
|
477
484
|
key: 1,
|
|
478
|
-
dataset:
|
|
485
|
+
dataset: b.value,
|
|
479
486
|
color: e.value.style.chart.color,
|
|
480
487
|
hoveredUid: I.value
|
|
481
488
|
}, null, 8, ["dataset", "color", "hoveredUid"])) : f("", !0),
|
|
482
|
-
|
|
489
|
+
u(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
483
490
|
], 14, Ft)) : f("", !0),
|
|
484
|
-
t.$slots.watermark ? (
|
|
485
|
-
|
|
491
|
+
t.$slots.watermark ? (i(), y("div", Bt, [
|
|
492
|
+
u(t.$slots, "watermark", w(T({ isPrinting: s(J) || s(K) })), void 0, !0)
|
|
486
493
|
])) : f("", !0),
|
|
487
|
-
|
|
488
|
-
|
|
494
|
+
s(Ye) ? (i(), y("div", Rt, [
|
|
495
|
+
u(t.$slots, "reset-action", { reset: s(ce) }, () => [
|
|
489
496
|
_("button", {
|
|
490
497
|
"data-cy-reset": "",
|
|
491
498
|
tabindex: "0",
|
|
492
499
|
role: "button",
|
|
493
500
|
class: "vue-data-ui-refresh-button",
|
|
494
|
-
style:
|
|
501
|
+
style: R({
|
|
495
502
|
background: e.value.style.chart.backgroundColor
|
|
496
503
|
}),
|
|
497
|
-
onClick:
|
|
504
|
+
onClick: l[0] || (l[0] = (o) => s(ce)(!0))
|
|
498
505
|
}, [
|
|
499
|
-
S(
|
|
506
|
+
S(s(we), {
|
|
500
507
|
name: "refresh",
|
|
501
508
|
stroke: e.value.style.chart.color
|
|
502
509
|
}, null, 8, ["stroke"])
|
|
503
510
|
], 4)
|
|
504
511
|
], !0)
|
|
505
512
|
])) : f("", !0),
|
|
506
|
-
L.value ? f("", !0) : (
|
|
513
|
+
L.value ? f("", !0) : (i(), $(s(Fe), {
|
|
507
514
|
key: 7,
|
|
508
515
|
config: {
|
|
509
516
|
type: "molecule",
|
|
@@ -515,11 +522,11 @@ const At = ["id"], It = {
|
|
|
515
522
|
}
|
|
516
523
|
}
|
|
517
524
|
}, null, 8, ["config"])),
|
|
518
|
-
t.$slots.source ? (
|
|
519
|
-
|
|
525
|
+
t.$slots.source ? (i(), y("div", Ut, [
|
|
526
|
+
u(t.$slots, "source", {}, void 0, !0)
|
|
520
527
|
], 512)) : f("", !0),
|
|
521
|
-
S(
|
|
522
|
-
show:
|
|
528
|
+
S(s(_e), {
|
|
529
|
+
show: h.value.showTooltip && E.value,
|
|
523
530
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
524
531
|
color: e.value.style.chart.tooltip.color,
|
|
525
532
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -529,24 +536,24 @@ const At = ["id"], It = {
|
|
|
529
536
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
530
537
|
position: e.value.style.chart.tooltip.position,
|
|
531
538
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
532
|
-
parent:
|
|
539
|
+
parent: O.value,
|
|
533
540
|
content: D.value,
|
|
534
541
|
isFullscreen: N.value,
|
|
535
542
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
536
543
|
}, {
|
|
537
544
|
"tooltip-before": d(() => [
|
|
538
|
-
|
|
545
|
+
u(t.$slots, "tooltip-before", w(T({ ...H.value })), void 0, !0)
|
|
539
546
|
]),
|
|
540
547
|
"tooltip-after": d(() => [
|
|
541
|
-
|
|
548
|
+
u(t.$slots, "tooltip-after", w(T({ ...H.value })), void 0, !0)
|
|
542
549
|
]),
|
|
543
550
|
_: 3
|
|
544
551
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
545
|
-
L.value ? (
|
|
552
|
+
L.value ? (i(), $(s($e), {
|
|
546
553
|
key: 9,
|
|
547
554
|
hideDetails: "",
|
|
548
555
|
config: {
|
|
549
|
-
open:
|
|
556
|
+
open: h.value.showTable,
|
|
550
557
|
maxHeight: 1e4,
|
|
551
558
|
body: {
|
|
552
559
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -559,14 +566,14 @@ const At = ["id"], It = {
|
|
|
559
566
|
}
|
|
560
567
|
}, {
|
|
561
568
|
content: d(() => [
|
|
562
|
-
(
|
|
569
|
+
(i(), $(s(Te), {
|
|
563
570
|
key: `table_${Y.value}`,
|
|
564
|
-
colNames:
|
|
565
|
-
head:
|
|
566
|
-
body:
|
|
567
|
-
config:
|
|
571
|
+
colNames: P.value.colNames,
|
|
572
|
+
head: P.value.head,
|
|
573
|
+
body: P.value.body,
|
|
574
|
+
config: P.value.config,
|
|
568
575
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
569
|
-
onClose:
|
|
576
|
+
onClose: l[1] || (l[1] = (o) => h.value.showTable = !1)
|
|
570
577
|
}, {
|
|
571
578
|
th: d(({ th: o }) => [
|
|
572
579
|
_("div", {
|
|
@@ -584,7 +591,7 @@ const At = ["id"], It = {
|
|
|
584
591
|
}, 8, ["config"])) : f("", !0)
|
|
585
592
|
], 46, At));
|
|
586
593
|
}
|
|
587
|
-
}, Zt = /* @__PURE__ */ Pt(xt, [["__scopeId", "data-v-
|
|
594
|
+
}, Zt = /* @__PURE__ */ Pt(xt, [["__scopeId", "data-v-4132977f"]]);
|
|
588
595
|
export {
|
|
589
596
|
Zt as default
|
|
590
597
|
};
|