vue-data-ui 2.12.6 → 2.12.7-beta.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.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,782 +0,0 @@
|
|
|
1
|
-
import { toRef as ee, resolveComponent as te, createElementBlock as r, openBlock as l, Fragment as p, renderList as I, createCommentVNode as f, createBlock as O, createElementVNode as U, withModifiers as Ve, renderSlot as y, mergeProps as $e, withCtx as m, toDisplayString as Oe, useCssVars as je, computed as S, onMounted as We, ref as g, watch as Xe, unref as v, normalizeStyle as W, normalizeClass as we, createVNode as G, createSlots as Ye, normalizeProps as D, guardReactiveProps as N, createTextVNode as Ze, nextTick as qe } from "vue";
|
|
2
|
-
import { u as Qe, o as Je, e as Ke, c as Te, t as et, p as Pe, a as tt, b as ot, P as lt, X as st, l as at, Q as rt, d as xe, q as nt, r as it, x as ut, y as ct } from "./index-BFzQMJda.js";
|
|
3
|
-
import { _ as dt } from "./Title-CzaCeCOm.js";
|
|
4
|
-
import { u as vt, U as ht } from "./usePrinter-C5bLp34h.js";
|
|
5
|
-
import { D as ft } from "./DataTable-Rajdtaf6.js";
|
|
6
|
-
import { _ as yt } from "./Tooltip-CWmRmhJr.js";
|
|
7
|
-
import pt from "./vue-ui-skeleton-B_YI7Yuc.js";
|
|
8
|
-
import gt from "./vue-ui-accordion-BUz4JIIX.js";
|
|
9
|
-
import { u as Fe } from "./useNestedProp-v7KPpwuP.js";
|
|
10
|
-
import { _ as mt } from "./PackageVersion-BjrblLPQ.js";
|
|
11
|
-
import { _ as bt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
12
|
-
import { u as kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
-
import { u as Ct } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
-
import { u as $t } from "./usePanZoom-CUkkqW81.js";
|
|
15
|
-
import wt from "./BaseIcon-CNbwMh_-.js";
|
|
16
|
-
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Pt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], xt = ["x", "y", "height", "width", "onClick", "onMouseover"], Ft = {
|
|
18
|
-
__name: "RecursiveCircles",
|
|
19
|
-
props: {
|
|
20
|
-
color: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "#000000"
|
|
23
|
-
},
|
|
24
|
-
dataset: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => []
|
|
27
|
-
},
|
|
28
|
-
hoveredUid: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: null
|
|
31
|
-
},
|
|
32
|
-
linkColor: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "#CCCCCC"
|
|
35
|
-
},
|
|
36
|
-
stroke: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "#FFFFFF"
|
|
39
|
-
},
|
|
40
|
-
strokeHovered: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: "#000000"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
emits: ["click", "hover"],
|
|
46
|
-
setup(n, { emit: E }) {
|
|
47
|
-
const H = n, T = E;
|
|
48
|
-
function h(a) {
|
|
49
|
-
T("click", a);
|
|
50
|
-
}
|
|
51
|
-
function w(a) {
|
|
52
|
-
T("hover", a);
|
|
53
|
-
}
|
|
54
|
-
return ee(H, "dataset").value.forEach((a) => {
|
|
55
|
-
a.nodes && a.nodes.length > 0 && a.nodes.forEach((k) => {
|
|
56
|
-
k.ancestor = a;
|
|
57
|
-
});
|
|
58
|
-
}), (a, k) => {
|
|
59
|
-
const X = te("RecursiveCircles", !0);
|
|
60
|
-
return l(!0), r(p, null, I(n.dataset, (u) => (l(), r(p, null, [
|
|
61
|
-
u.polygonPath && u.polygonPath.coordinates ? (l(), r(p, { key: 0 }, [
|
|
62
|
-
(l(!0), r(p, null, I(u.polygonPath.coordinates, (P, V) => (l(), r(p, null, [
|
|
63
|
-
U("circle", {
|
|
64
|
-
cx: P.x,
|
|
65
|
-
cy: P.y,
|
|
66
|
-
r: u.circleRadius,
|
|
67
|
-
fill: `url(#gradient_${u.color})`,
|
|
68
|
-
stroke: n.hoveredUid && n.hoveredUid === u.uid ? n.strokeHovered : n.stroke,
|
|
69
|
-
"stroke-width": n.hoveredUid && n.hoveredUid === u.uid ? u.circleRadius / 6 : u.circleRadius / 12,
|
|
70
|
-
style: { cursor: "pointer" },
|
|
71
|
-
onClick: (A) => h(u),
|
|
72
|
-
onMouseover: (A) => w(u),
|
|
73
|
-
onMouseleave: k[0] || (k[0] = (A) => w(null))
|
|
74
|
-
}, null, 40, Pt),
|
|
75
|
-
a.$slots.node ? (l(), r("foreignObject", {
|
|
76
|
-
key: 0,
|
|
77
|
-
x: P.x - u.circleRadius,
|
|
78
|
-
y: P.y - u.circleRadius,
|
|
79
|
-
height: u.circleRadius * 2,
|
|
80
|
-
width: u.circleRadius * 2,
|
|
81
|
-
style: { overflow: "visible" },
|
|
82
|
-
onClick: Ve((A) => h(u), ["stop"]),
|
|
83
|
-
onMouseover: (A) => w(u),
|
|
84
|
-
onMouseleave: k[1] || (k[1] = (A) => w(null))
|
|
85
|
-
}, [
|
|
86
|
-
y(a.$slots, "node", $e({ ref_for: !0 }, { node: u }))
|
|
87
|
-
], 40, xt)) : f("", !0)
|
|
88
|
-
], 64))), 256)),
|
|
89
|
-
u.nodes && u.nodes.length > 0 ? (l(), O(X, {
|
|
90
|
-
key: 0,
|
|
91
|
-
dataset: u.nodes,
|
|
92
|
-
color: n.color,
|
|
93
|
-
stroke: n.stroke,
|
|
94
|
-
strokeHovered: n.strokeHovered,
|
|
95
|
-
hoveredUid: n.hoveredUid,
|
|
96
|
-
onClick: h,
|
|
97
|
-
onHover: w
|
|
98
|
-
}, {
|
|
99
|
-
node: m(({ node: P }) => [
|
|
100
|
-
y(a.$slots, "node", $e({ ref_for: !0 }, { node: P }))
|
|
101
|
-
]),
|
|
102
|
-
_: 2
|
|
103
|
-
}, 1032, ["dataset", "color", "stroke", "strokeHovered", "hoveredUid"])) : f("", !0)
|
|
104
|
-
], 64)) : f("", !0)
|
|
105
|
-
], 64))), 256);
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
}, Ot = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Rt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], St = {
|
|
109
|
-
__name: "RecursiveLinks",
|
|
110
|
-
props: {
|
|
111
|
-
dataset: {
|
|
112
|
-
type: Array,
|
|
113
|
-
default: () => []
|
|
114
|
-
},
|
|
115
|
-
color: {
|
|
116
|
-
type: String,
|
|
117
|
-
default: "#DDDDDD"
|
|
118
|
-
},
|
|
119
|
-
backgroundColor: {
|
|
120
|
-
type: String,
|
|
121
|
-
default: "#FFFFFF"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
setup(n) {
|
|
125
|
-
return ee(n, "dataset").value.forEach((T) => {
|
|
126
|
-
T.nodes && T.nodes.length > 0 && T.nodes.forEach((h) => {
|
|
127
|
-
h.ancestor = T;
|
|
128
|
-
});
|
|
129
|
-
}), (T, h) => {
|
|
130
|
-
const w = te("RecursiveLinks", !0);
|
|
131
|
-
return l(), r(p, null, [
|
|
132
|
-
(l(!0), r(p, null, I(n.dataset, (i) => (l(), r(p, null, [
|
|
133
|
-
i.polygonPath && i.polygonPath.coordinates ? (l(!0), r(p, { key: 0 }, I(i.polygonPath.coordinates, (a, k) => (l(), r(p, null, [
|
|
134
|
-
i.ancestor && i.ancestor.polygonPath ? (l(), r(p, { key: 0 }, [
|
|
135
|
-
U("line", {
|
|
136
|
-
x1: a.x,
|
|
137
|
-
y1: a.y,
|
|
138
|
-
x2: i.ancestor.polygonPath.coordinates[0].x,
|
|
139
|
-
y2: i.ancestor.polygonPath.coordinates[0].y,
|
|
140
|
-
stroke: n.backgroundColor,
|
|
141
|
-
"stroke-width": i.circleRadius / 1.5
|
|
142
|
-
}, null, 8, Ot),
|
|
143
|
-
U("line", {
|
|
144
|
-
x1: a.x,
|
|
145
|
-
y1: a.y,
|
|
146
|
-
x2: i.ancestor.polygonPath.coordinates[0].x,
|
|
147
|
-
y2: i.ancestor.polygonPath.coordinates[0].y,
|
|
148
|
-
stroke: n.color,
|
|
149
|
-
"stroke-width": i.circleRadius / 2
|
|
150
|
-
}, null, 8, Rt)
|
|
151
|
-
], 64)) : f("", !0)
|
|
152
|
-
], 64))), 256)) : f("", !0)
|
|
153
|
-
], 64))), 256)),
|
|
154
|
-
(l(!0), r(p, null, I(n.dataset, (i) => (l(), r(p, null, [
|
|
155
|
-
i.polygonPath && i.polygonPath.coordinates ? (l(), r(p, { key: 0 }, [
|
|
156
|
-
i.nodes && i.nodes.length > 0 ? (l(), O(w, {
|
|
157
|
-
key: 0,
|
|
158
|
-
dataset: i.nodes,
|
|
159
|
-
color: n.color,
|
|
160
|
-
backgroundColor: n.backgroundColor
|
|
161
|
-
}, null, 8, ["dataset", "color", "backgroundColor"])) : f("", !0)
|
|
162
|
-
], 64)) : f("", !0)
|
|
163
|
-
], 64))), 256))
|
|
164
|
-
], 64);
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}, At = ["x", "y", "fill", "font-size"], Ut = {
|
|
168
|
-
__name: "RecursiveLabels",
|
|
169
|
-
props: {
|
|
170
|
-
color: {
|
|
171
|
-
type: String,
|
|
172
|
-
default: "#000000"
|
|
173
|
-
},
|
|
174
|
-
dataset: {
|
|
175
|
-
type: Array,
|
|
176
|
-
default: () => []
|
|
177
|
-
},
|
|
178
|
-
hoveredUid: {
|
|
179
|
-
type: String,
|
|
180
|
-
default: null
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
emits: ["zoom", "hover"],
|
|
184
|
-
setup(n, { emit: E }) {
|
|
185
|
-
return ee(n, "dataset").value.forEach((h) => {
|
|
186
|
-
h.nodes && h.nodes.length > 0 && h.nodes.forEach((w) => {
|
|
187
|
-
w.ancestor = h;
|
|
188
|
-
});
|
|
189
|
-
}), (h, w) => {
|
|
190
|
-
const i = te("RecursiveLabels", !0);
|
|
191
|
-
return l(!0), r(p, null, I(n.dataset, (a) => (l(), r(p, null, [
|
|
192
|
-
a.polygonPath && a.polygonPath.coordinates ? (l(), r(p, { key: 0 }, [
|
|
193
|
-
(l(!0), r(p, null, I(a.polygonPath.coordinates, (k) => (l(), r("text", {
|
|
194
|
-
x: k.x,
|
|
195
|
-
y: k.y + a.circleRadius * 2,
|
|
196
|
-
fill: n.color,
|
|
197
|
-
"font-size": a.circleRadius,
|
|
198
|
-
"text-anchor": "middle",
|
|
199
|
-
style: { opacity: "0.8", "pointer-events": "none" }
|
|
200
|
-
}, Oe(a.name), 9, At))), 256)),
|
|
201
|
-
a.nodes && a.nodes.length > 0 ? (l(), O(i, {
|
|
202
|
-
key: 0,
|
|
203
|
-
dataset: a.nodes,
|
|
204
|
-
color: n.color,
|
|
205
|
-
hoveredUid: n.hoveredUid
|
|
206
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : f("", !0)
|
|
207
|
-
], 64)) : f("", !0)
|
|
208
|
-
], 64))), 256);
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}, It = ["id"], Dt = {
|
|
212
|
-
key: 1,
|
|
213
|
-
ref: "noTitle",
|
|
214
|
-
class: "vue-data-ui-no-title-space",
|
|
215
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
216
|
-
}, Nt = {
|
|
217
|
-
key: 2,
|
|
218
|
-
style: "width:100%;background:transparent;"
|
|
219
|
-
}, _t = ["xmlns", "viewBox"], Lt = ["width", "height"], Et = ["id"], Ht = ["stop-color"], Mt = ["stop-color"], Bt = {
|
|
220
|
-
key: 5,
|
|
221
|
-
class: "vue-data-ui-watermark"
|
|
222
|
-
}, zt = {
|
|
223
|
-
key: 6,
|
|
224
|
-
"data-dom-to-png-ignore": "",
|
|
225
|
-
class: "reset-wrapper"
|
|
226
|
-
}, Gt = {
|
|
227
|
-
key: 8,
|
|
228
|
-
ref: "source",
|
|
229
|
-
dir: "auto"
|
|
230
|
-
}, Vt = ["innerHTML"], jt = {
|
|
231
|
-
__name: "vue-ui-molecule",
|
|
232
|
-
props: {
|
|
233
|
-
config: {
|
|
234
|
-
type: Object,
|
|
235
|
-
default() {
|
|
236
|
-
return {};
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
dataset: {
|
|
240
|
-
type: Array,
|
|
241
|
-
default() {
|
|
242
|
-
return [];
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
emits: ["selectNode"],
|
|
247
|
-
setup(n, { expose: E, emit: H }) {
|
|
248
|
-
je((t) => ({
|
|
249
|
-
"6c5e8f09": t.slicerColor
|
|
250
|
-
}));
|
|
251
|
-
const { vue_ui_molecule: T } = Qe(), h = n, w = H, i = S(() => !!h.dataset && h.dataset.length);
|
|
252
|
-
We(() => {
|
|
253
|
-
a();
|
|
254
|
-
});
|
|
255
|
-
function a() {
|
|
256
|
-
Je(h.dataset) && Ke({
|
|
257
|
-
componentName: "VueUiMolecule",
|
|
258
|
-
type: "dataset"
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
const k = g(Te()), X = g(null), u = g(!1), P = g(""), V = g(null), A = g(0), oe = g(0), le = g(0), e = S({
|
|
262
|
-
get: () => re(),
|
|
263
|
-
set: (t) => t
|
|
264
|
-
}), { userOptionsVisible: Y, setUserOptionsVisibility: se, keepUserOptionState: ae } = kt({ config: e.value }), { svgRef: Z } = Ct({ config: e.value.style.chart.title });
|
|
265
|
-
function re() {
|
|
266
|
-
const t = Fe({
|
|
267
|
-
userConfig: h.config,
|
|
268
|
-
defaultConfig: T
|
|
269
|
-
});
|
|
270
|
-
return t.theme ? {
|
|
271
|
-
...Fe({
|
|
272
|
-
userConfig: tt.vue_ui_molecule[t.theme] || h.config,
|
|
273
|
-
defaultConfig: t
|
|
274
|
-
}),
|
|
275
|
-
customPalette: et[t.theme] || Pe
|
|
276
|
-
} : t;
|
|
277
|
-
}
|
|
278
|
-
Xe(() => h.config, (t) => {
|
|
279
|
-
e.value = re(), Y.value = !e.value.userOptions.showOnChartHover, a(), oe.value += 1, le.value += 1, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
280
|
-
}, { deep: !0 });
|
|
281
|
-
const { isPrinting: ne, isImaging: ie, generatePdf: ue, generateImage: ce } = vt({
|
|
282
|
-
elementId: `cluster_${k.value}`,
|
|
283
|
-
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
284
|
-
options: e.value.userOptions.print
|
|
285
|
-
}), Re = S(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = S(() => ot(e.value.customPalette)), $ = g({
|
|
286
|
-
showTable: e.value.table.show,
|
|
287
|
-
showDataLabels: !0,
|
|
288
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
289
|
-
});
|
|
290
|
-
function de(t, s = 0) {
|
|
291
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ? de(t[0].nodes, s + 1) : s;
|
|
292
|
-
}
|
|
293
|
-
function Ae() {
|
|
294
|
-
const t = de(h.dataset);
|
|
295
|
-
let s = 100, o = s;
|
|
296
|
-
for (let d = 0; d < t; d += 1)
|
|
297
|
-
s /= 1, o += s;
|
|
298
|
-
return {
|
|
299
|
-
height: o,
|
|
300
|
-
width: o
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
const C = g(Ae());
|
|
304
|
-
g(`0 0 ${C.value.width} ${C.value.height}`);
|
|
305
|
-
function ve(t, s = { x: -C.value.width / 2.43, y: C.value.height / 2 }, o = C.value.width / 1.1, d = 24, c = 0, b = 0, x = "#BBBBBB", J = 0) {
|
|
306
|
-
if (!Array.isArray(t) || t.length === 0) return t;
|
|
307
|
-
const Ge = rt({
|
|
308
|
-
plot: s,
|
|
309
|
-
radius: o,
|
|
310
|
-
sides: t.length,
|
|
311
|
-
rotation: c
|
|
312
|
-
});
|
|
313
|
-
return t.forEach((F, be) => {
|
|
314
|
-
const ke = Ge.coordinates[be], Ce = F.color ? (() => {
|
|
315
|
-
let K = xe(F.color);
|
|
316
|
-
return K.startsWith("#") ? K : `#${K}`;
|
|
317
|
-
})() : null;
|
|
318
|
-
let L;
|
|
319
|
-
Ce ? L = Ce : J === 0 ? L = x : J === 1 ? (L = Se.value[b] || Pe[b] || x, b += 1) : L = x, F.polygonPath = { coordinates: [ke] }, F.circleRadius = d, F.color = L, F.uid = Te(), Array.isArray(F.nodes) && F.nodes.length && (F.nodes = ve(
|
|
320
|
-
F.nodes,
|
|
321
|
-
ke,
|
|
322
|
-
o / 2.9,
|
|
323
|
-
d / 2.2,
|
|
324
|
-
c + Math.PI * be / F.nodes.length,
|
|
325
|
-
b,
|
|
326
|
-
L,
|
|
327
|
-
J + 1
|
|
328
|
-
));
|
|
329
|
-
}), t;
|
|
330
|
-
}
|
|
331
|
-
function Ue(t) {
|
|
332
|
-
const s = /* @__PURE__ */ new Set();
|
|
333
|
-
function o(c) {
|
|
334
|
-
c.forEach((b) => {
|
|
335
|
-
if (!b.color) return;
|
|
336
|
-
let x = b.color;
|
|
337
|
-
/^#?[0-9A-F]{6}$/i.test(x) || (x = xe(x)), x.startsWith("#") || (x = `#${x}`), s.add(x), Array.isArray(b.nodes) && b.nodes.length && o(b.nodes);
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
o(t);
|
|
341
|
-
const d = {};
|
|
342
|
-
return Array.from(s).forEach((c) => {
|
|
343
|
-
const b = c.slice(1);
|
|
344
|
-
d[c] = `gradient_${b}`;
|
|
345
|
-
}), d;
|
|
346
|
-
}
|
|
347
|
-
const Ie = S(() => Ue(R.value)), R = S(() => {
|
|
348
|
-
const t = lt(h.dataset);
|
|
349
|
-
return ve(t);
|
|
350
|
-
}), q = g(null);
|
|
351
|
-
function De(t) {
|
|
352
|
-
q.value = {
|
|
353
|
-
datapoint: t,
|
|
354
|
-
seriesIndex: -1,
|
|
355
|
-
series: R.value,
|
|
356
|
-
config: e.value
|
|
357
|
-
};
|
|
358
|
-
const s = e.value.style.chart.tooltip.customFormat;
|
|
359
|
-
if (ut(s) && ct(() => s({
|
|
360
|
-
seriesIndex: -1,
|
|
361
|
-
datapoint: t,
|
|
362
|
-
series: R.value,
|
|
363
|
-
config: e.value
|
|
364
|
-
})))
|
|
365
|
-
P.value = s({
|
|
366
|
-
seriesIndex: -1,
|
|
367
|
-
// well, ok
|
|
368
|
-
datapoint: t,
|
|
369
|
-
series: R.value,
|
|
370
|
-
config: e.value
|
|
371
|
-
});
|
|
372
|
-
else {
|
|
373
|
-
let o = "";
|
|
374
|
-
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>`), P.value = `<div style="font-family:inherit">${o}</div>`;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
const he = g(null), M = g(null);
|
|
378
|
-
function Ne(t) {
|
|
379
|
-
he.value = t, t ? (u.value = !0, De(t), M.value = t.uid) : (u.value = !1, P.value = "", M.value = null);
|
|
380
|
-
}
|
|
381
|
-
function _e(t) {
|
|
382
|
-
const s = [];
|
|
383
|
-
function o(d) {
|
|
384
|
-
d.forEach((c) => {
|
|
385
|
-
const b = {
|
|
386
|
-
name: c.name,
|
|
387
|
-
details: c.details || "-",
|
|
388
|
-
ancestor: c.ancestor && c.ancestor.name || "-",
|
|
389
|
-
color: c.color || ""
|
|
390
|
-
};
|
|
391
|
-
s.push(b), c.nodes && c.nodes.length > 0 && o(c.nodes, c.name);
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
return o(t), s;
|
|
395
|
-
}
|
|
396
|
-
const Le = S(() => _e(R.value)), _ = S(() => {
|
|
397
|
-
const t = [
|
|
398
|
-
e.value.table.translations.nodeName,
|
|
399
|
-
e.value.table.translations.details,
|
|
400
|
-
e.value.table.translations.ancestor
|
|
401
|
-
], s = Le.value.map((c, b) => [
|
|
402
|
-
{
|
|
403
|
-
color: c.color,
|
|
404
|
-
name: c.name
|
|
405
|
-
},
|
|
406
|
-
c.details,
|
|
407
|
-
c.ancestor || ""
|
|
408
|
-
]), o = {
|
|
409
|
-
th: {
|
|
410
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
411
|
-
color: e.value.table.th.color,
|
|
412
|
-
outline: e.value.table.th.outline
|
|
413
|
-
},
|
|
414
|
-
td: {
|
|
415
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
416
|
-
color: e.value.table.td.color,
|
|
417
|
-
outline: e.value.table.td.outline
|
|
418
|
-
},
|
|
419
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
420
|
-
}, d = [
|
|
421
|
-
e.value.table.translations.nodeName,
|
|
422
|
-
e.value.table.translations.details,
|
|
423
|
-
e.value.table.translations.ancestor
|
|
424
|
-
];
|
|
425
|
-
return {
|
|
426
|
-
head: t,
|
|
427
|
-
body: s,
|
|
428
|
-
config: o,
|
|
429
|
-
colNames: d
|
|
430
|
-
};
|
|
431
|
-
});
|
|
432
|
-
function fe() {
|
|
433
|
-
qe(() => {
|
|
434
|
-
const t = _.value.body.map((d, c) => [[d[0].name], [d[1]], [d[2]]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(t), o = nt(s);
|
|
435
|
-
it({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
function Ee() {
|
|
439
|
-
return R.value;
|
|
440
|
-
}
|
|
441
|
-
const B = g(!1);
|
|
442
|
-
function He(t) {
|
|
443
|
-
B.value = t, A.value += 1;
|
|
444
|
-
}
|
|
445
|
-
function ye() {
|
|
446
|
-
$.value.showTable = !$.value.showTable;
|
|
447
|
-
}
|
|
448
|
-
function pe() {
|
|
449
|
-
$.value.showDataLabels = !$.value.showDataLabels;
|
|
450
|
-
}
|
|
451
|
-
function ge() {
|
|
452
|
-
$.value.showTooltip = !$.value.showTooltip;
|
|
453
|
-
}
|
|
454
|
-
const z = g(!1);
|
|
455
|
-
function Q() {
|
|
456
|
-
z.value = !z.value;
|
|
457
|
-
}
|
|
458
|
-
const Me = S(() => !z.value), { viewBox: j, resetZoom: me, isZoom: Be } = $t(Z, {
|
|
459
|
-
x: 0,
|
|
460
|
-
y: 0,
|
|
461
|
-
width: C.value.width <= 0 ? 10 : C.value.width,
|
|
462
|
-
height: C.value.height <= 0 ? 10 : C.value.height
|
|
463
|
-
}, e.value.style.chart.zoom.speed, Me);
|
|
464
|
-
function ze(t) {
|
|
465
|
-
w("selectNode", t);
|
|
466
|
-
}
|
|
467
|
-
return E({
|
|
468
|
-
getData: Ee,
|
|
469
|
-
generatePdf: ue,
|
|
470
|
-
generateCsv: fe,
|
|
471
|
-
generateImage: ce,
|
|
472
|
-
toggleTable: ye,
|
|
473
|
-
toggleLabels: pe,
|
|
474
|
-
toggleTooltip: ge,
|
|
475
|
-
toggleAnnotator: Q
|
|
476
|
-
}), (t, s) => (l(), r("div", {
|
|
477
|
-
ref_key: "moleculeChart",
|
|
478
|
-
ref: V,
|
|
479
|
-
class: we(`vue-ui-molecule ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
480
|
-
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
481
|
-
id: `cluster_${k.value}`,
|
|
482
|
-
onMouseleave: s[2] || (s[2] = (o) => {
|
|
483
|
-
he.value = null, M.value = null, v(se)(!1);
|
|
484
|
-
}),
|
|
485
|
-
onMouseenter: s[3] || (s[3] = () => v(se)(!0))
|
|
486
|
-
}, [
|
|
487
|
-
e.value.userOptions.buttons.annotator ? (l(), O(bt, {
|
|
488
|
-
key: 0,
|
|
489
|
-
svgRef: v(Z),
|
|
490
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
491
|
-
color: e.value.style.chart.color,
|
|
492
|
-
active: z.value,
|
|
493
|
-
onClose: Q
|
|
494
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
495
|
-
Re.value ? (l(), r("div", Dt, null, 512)) : f("", !0),
|
|
496
|
-
e.value.style.chart.title.text ? (l(), r("div", Nt, [
|
|
497
|
-
(l(), O(dt, {
|
|
498
|
-
key: `title_${oe.value}`,
|
|
499
|
-
config: {
|
|
500
|
-
title: {
|
|
501
|
-
cy: "molecule-div-title",
|
|
502
|
-
...e.value.style.chart.title
|
|
503
|
-
},
|
|
504
|
-
subtitle: {
|
|
505
|
-
cy: "molecule-div-subtitle",
|
|
506
|
-
...e.value.style.chart.title.subtitle
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}, null, 8, ["config"]))
|
|
510
|
-
])) : f("", !0),
|
|
511
|
-
e.value.userOptions.show && i.value && (v(ae) || v(Y)) ? (l(), O(ht, {
|
|
512
|
-
ref_key: "details",
|
|
513
|
-
ref: X,
|
|
514
|
-
key: `user_options_${A.value}`,
|
|
515
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
516
|
-
color: e.value.style.chart.color,
|
|
517
|
-
isPrinting: v(ne),
|
|
518
|
-
isImaging: v(ie),
|
|
519
|
-
uid: k.value,
|
|
520
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
521
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
522
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
523
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
524
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
525
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
526
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
527
|
-
isTooltip: $.value.showTooltip,
|
|
528
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
529
|
-
chartElement: V.value,
|
|
530
|
-
position: e.value.userOptions.position,
|
|
531
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
532
|
-
isAnnotation: z.value,
|
|
533
|
-
onToggleFullscreen: He,
|
|
534
|
-
onGeneratePdf: v(ue),
|
|
535
|
-
onGenerateCsv: fe,
|
|
536
|
-
onGenerateImage: v(ce),
|
|
537
|
-
onToggleTable: ye,
|
|
538
|
-
onToggleLabels: pe,
|
|
539
|
-
onToggleTooltip: ge,
|
|
540
|
-
onToggleAnnotator: Q,
|
|
541
|
-
style: W({
|
|
542
|
-
visibility: v(ae) ? v(Y) ? "visible" : "hidden" : "visible"
|
|
543
|
-
})
|
|
544
|
-
}, Ye({ _: 2 }, [
|
|
545
|
-
t.$slots.menuIcon ? {
|
|
546
|
-
name: "menuIcon",
|
|
547
|
-
fn: m(({ isOpen: o, color: d }) => [
|
|
548
|
-
y(t.$slots, "menuIcon", D(N({ isOpen: o, color: d })), void 0, !0)
|
|
549
|
-
]),
|
|
550
|
-
key: "0"
|
|
551
|
-
} : void 0,
|
|
552
|
-
t.$slots.optionTooltip ? {
|
|
553
|
-
name: "optionTooltip",
|
|
554
|
-
fn: m(() => [
|
|
555
|
-
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
556
|
-
]),
|
|
557
|
-
key: "1"
|
|
558
|
-
} : void 0,
|
|
559
|
-
t.$slots.optionPdf ? {
|
|
560
|
-
name: "optionPdf",
|
|
561
|
-
fn: m(() => [
|
|
562
|
-
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
563
|
-
]),
|
|
564
|
-
key: "2"
|
|
565
|
-
} : void 0,
|
|
566
|
-
t.$slots.optionCsv ? {
|
|
567
|
-
name: "optionCsv",
|
|
568
|
-
fn: m(() => [
|
|
569
|
-
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
570
|
-
]),
|
|
571
|
-
key: "3"
|
|
572
|
-
} : void 0,
|
|
573
|
-
t.$slots.optionImg ? {
|
|
574
|
-
name: "optionImg",
|
|
575
|
-
fn: m(() => [
|
|
576
|
-
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
577
|
-
]),
|
|
578
|
-
key: "4"
|
|
579
|
-
} : void 0,
|
|
580
|
-
t.$slots.optionTable ? {
|
|
581
|
-
name: "optionTable",
|
|
582
|
-
fn: m(() => [
|
|
583
|
-
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
584
|
-
]),
|
|
585
|
-
key: "5"
|
|
586
|
-
} : void 0,
|
|
587
|
-
t.$slots.optionLabels ? {
|
|
588
|
-
name: "optionLabels",
|
|
589
|
-
fn: m(() => [
|
|
590
|
-
y(t.$slots, "optionLabels", {}, void 0, !0)
|
|
591
|
-
]),
|
|
592
|
-
key: "6"
|
|
593
|
-
} : void 0,
|
|
594
|
-
t.$slots.optionFullscreen ? {
|
|
595
|
-
name: "optionFullscreen",
|
|
596
|
-
fn: m(({ toggleFullscreen: o, isFullscreen: d }) => [
|
|
597
|
-
y(t.$slots, "optionFullscreen", D(N({ toggleFullscreen: o, isFullscreen: d })), void 0, !0)
|
|
598
|
-
]),
|
|
599
|
-
key: "7"
|
|
600
|
-
} : void 0,
|
|
601
|
-
t.$slots.optionAnnotator ? {
|
|
602
|
-
name: "optionAnnotator",
|
|
603
|
-
fn: m(({ toggleAnnotator: o, isAnnotator: d }) => [
|
|
604
|
-
y(t.$slots, "optionAnnotator", D(N({ toggleAnnotator: o, isAnnotator: d })), void 0, !0)
|
|
605
|
-
]),
|
|
606
|
-
key: "8"
|
|
607
|
-
} : void 0
|
|
608
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
609
|
-
i.value ? (l(), r("svg", {
|
|
610
|
-
key: 4,
|
|
611
|
-
ref_key: "svgRef",
|
|
612
|
-
ref: Z,
|
|
613
|
-
xmlns: v(st),
|
|
614
|
-
viewBox: `${v(j).x} ${v(j).y} ${v(j).width} ${v(j).height}`,
|
|
615
|
-
class: we({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
616
|
-
style: W(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
617
|
-
}, [
|
|
618
|
-
G(mt),
|
|
619
|
-
t.$slots["chart-background"] ? (l(), r("foreignObject", {
|
|
620
|
-
key: 0,
|
|
621
|
-
x: 0,
|
|
622
|
-
y: 0,
|
|
623
|
-
width: C.value.width <= 0 ? 10 : C.value.width,
|
|
624
|
-
height: C.value.height <= 0 ? 10 : C.value.height,
|
|
625
|
-
style: {
|
|
626
|
-
pointerEvents: "none"
|
|
627
|
-
}
|
|
628
|
-
}, [
|
|
629
|
-
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
630
|
-
], 8, Lt)) : f("", !0),
|
|
631
|
-
U("defs", null, [
|
|
632
|
-
(l(!0), r(p, null, I(Object.keys(Ie.value), (o) => (l(), r("radialGradient", {
|
|
633
|
-
id: `gradient_${o}`,
|
|
634
|
-
cx: "50%",
|
|
635
|
-
cy: "30%",
|
|
636
|
-
r: "50%",
|
|
637
|
-
fx: "50%",
|
|
638
|
-
fy: "50%"
|
|
639
|
-
}, [
|
|
640
|
-
U("stop", {
|
|
641
|
-
offset: "0%",
|
|
642
|
-
"stop-color": v(at)(o, 0.5)
|
|
643
|
-
}, null, 8, Ht),
|
|
644
|
-
U("stop", {
|
|
645
|
-
offset: "100%",
|
|
646
|
-
"stop-color": o
|
|
647
|
-
}, null, 8, Mt)
|
|
648
|
-
], 8, Et))), 256))
|
|
649
|
-
]),
|
|
650
|
-
G(St, {
|
|
651
|
-
dataset: R.value,
|
|
652
|
-
color: e.value.style.chart.links.stroke,
|
|
653
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
654
|
-
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
655
|
-
G(Ft, {
|
|
656
|
-
dataset: R.value,
|
|
657
|
-
hoveredUid: M.value,
|
|
658
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
659
|
-
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
660
|
-
onClick: ze,
|
|
661
|
-
onHover: Ne
|
|
662
|
-
}, {
|
|
663
|
-
node: m(({ node: o }) => [
|
|
664
|
-
y(t.$slots, "node", D(N({ node: o })), void 0, !0)
|
|
665
|
-
]),
|
|
666
|
-
_: 3
|
|
667
|
-
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
668
|
-
$.value.showDataLabels ? (l(), O(Ut, {
|
|
669
|
-
key: 1,
|
|
670
|
-
dataset: R.value,
|
|
671
|
-
color: e.value.style.chart.color,
|
|
672
|
-
hoveredUid: M.value
|
|
673
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : f("", !0),
|
|
674
|
-
y(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
675
|
-
], 14, _t)) : f("", !0),
|
|
676
|
-
t.$slots.watermark ? (l(), r("div", Bt, [
|
|
677
|
-
y(t.$slots, "watermark", D(N({ isPrinting: v(ne) || v(ie) })), void 0, !0)
|
|
678
|
-
])) : f("", !0),
|
|
679
|
-
v(Be) ? (l(), r("div", zt, [
|
|
680
|
-
y(t.$slots, "reset-action", { reset: v(me) }, () => [
|
|
681
|
-
U("button", {
|
|
682
|
-
"data-cy-reset": "",
|
|
683
|
-
tabindex: "0",
|
|
684
|
-
role: "button",
|
|
685
|
-
class: "vue-data-ui-refresh-button",
|
|
686
|
-
style: W({
|
|
687
|
-
background: e.value.style.chart.backgroundColor
|
|
688
|
-
}),
|
|
689
|
-
onClick: s[0] || (s[0] = (o) => v(me)(!0))
|
|
690
|
-
}, [
|
|
691
|
-
G(wt, {
|
|
692
|
-
name: "refresh",
|
|
693
|
-
stroke: e.value.style.chart.color
|
|
694
|
-
}, null, 8, ["stroke"])
|
|
695
|
-
], 4)
|
|
696
|
-
], !0)
|
|
697
|
-
])) : f("", !0),
|
|
698
|
-
i.value ? f("", !0) : (l(), O(pt, {
|
|
699
|
-
key: 7,
|
|
700
|
-
config: {
|
|
701
|
-
type: "molecule",
|
|
702
|
-
style: {
|
|
703
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
704
|
-
molecule: {
|
|
705
|
-
color: "#CCCCCC"
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
}, null, 8, ["config"])),
|
|
710
|
-
t.$slots.source ? (l(), r("div", Gt, [
|
|
711
|
-
y(t.$slots, "source", {}, void 0, !0)
|
|
712
|
-
], 512)) : f("", !0),
|
|
713
|
-
G(yt, {
|
|
714
|
-
show: $.value.showTooltip && u.value,
|
|
715
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
716
|
-
color: e.value.style.chart.tooltip.color,
|
|
717
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
718
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
719
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
720
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
721
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
722
|
-
position: e.value.style.chart.tooltip.position,
|
|
723
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
724
|
-
parent: V.value,
|
|
725
|
-
content: P.value,
|
|
726
|
-
isFullscreen: B.value,
|
|
727
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
728
|
-
}, {
|
|
729
|
-
"tooltip-before": m(() => [
|
|
730
|
-
y(t.$slots, "tooltip-before", D(N({ ...q.value })), void 0, !0)
|
|
731
|
-
]),
|
|
732
|
-
"tooltip-after": m(() => [
|
|
733
|
-
y(t.$slots, "tooltip-after", D(N({ ...q.value })), void 0, !0)
|
|
734
|
-
]),
|
|
735
|
-
_: 3
|
|
736
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
737
|
-
i.value ? (l(), O(gt, {
|
|
738
|
-
key: 9,
|
|
739
|
-
hideDetails: "",
|
|
740
|
-
config: {
|
|
741
|
-
open: $.value.showTable,
|
|
742
|
-
maxHeight: 1e4,
|
|
743
|
-
body: {
|
|
744
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
745
|
-
color: e.value.style.chart.color
|
|
746
|
-
},
|
|
747
|
-
head: {
|
|
748
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
749
|
-
color: e.value.style.chart.color
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}, {
|
|
753
|
-
content: m(() => [
|
|
754
|
-
(l(), O(ft, {
|
|
755
|
-
key: `table_${le.value}`,
|
|
756
|
-
colNames: _.value.colNames,
|
|
757
|
-
head: _.value.head,
|
|
758
|
-
body: _.value.body,
|
|
759
|
-
config: _.value.config,
|
|
760
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
761
|
-
onClose: s[1] || (s[1] = (o) => $.value.showTable = !1)
|
|
762
|
-
}, {
|
|
763
|
-
th: m(({ th: o }) => [
|
|
764
|
-
U("div", {
|
|
765
|
-
innerHTML: o,
|
|
766
|
-
style: { display: "flex", "align-items": "center" }
|
|
767
|
-
}, null, 8, Vt)
|
|
768
|
-
]),
|
|
769
|
-
td: m(({ td: o }) => [
|
|
770
|
-
Ze(Oe(o.name || o), 1)
|
|
771
|
-
]),
|
|
772
|
-
_: 1
|
|
773
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
774
|
-
]),
|
|
775
|
-
_: 1
|
|
776
|
-
}, 8, ["config"])) : f("", !0)
|
|
777
|
-
], 46, It));
|
|
778
|
-
}
|
|
779
|
-
}, io = /* @__PURE__ */ Tt(jt, [["__scopeId", "data-v-90558edd"]]);
|
|
780
|
-
export {
|
|
781
|
-
io as default
|
|
782
|
-
};
|