vue-data-ui 3.25.5 → 3.25.7
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
- package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
- package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
- package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
- package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
- package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
- package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
- package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
- package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
- package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
- package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
- package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
- package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
- package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
- package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
- package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
- package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
- package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
- package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
- package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
- package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
- package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
- package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
- package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
- package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
- package/dist/vue-ui-table-CiccGbRB.js +1352 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
- package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
- package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
- package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
- package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
- package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
- package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -0,0 +1,929 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, M as a, Pt as o, S as ee, Yt as s, Z as c, Zt as l, jt as te, lt as u, nt as d, q as ne, t as re, w as ie } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as se } from "./useConfig-CIQZ6_r7.js";
|
|
5
|
+
import { t as ce } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as de } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as pe } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as me } from "./img-DhGApYG0.js";
|
|
11
|
+
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { t as ge } from "./DefGrad-DVBqDjhO.js";
|
|
13
|
+
import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
|
|
14
|
+
import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
15
|
+
import { t as ye } from "./vue_ui_molecule-CO9L59SF.js";
|
|
16
|
+
import { t as be } from "./usePanZoom-CYU3B4T3.js";
|
|
17
|
+
import { Fragment as xe, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Se, createTextVNode as Ce, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as we, nextTick as b, normalizeClass as Te, normalizeProps as x, normalizeStyle as S, onMounted as Ee, openBlock as C, ref as w, renderList as De, renderSlot as T, resolveDynamicComponent as Oe, toDisplayString as E, toRefs as ke, unref as D, useCssVars as Ae, watch as O, withCtx as k } from "vue";
|
|
18
|
+
//#region src/components/vue-ui-molecule.vue
|
|
19
|
+
var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
20
|
+
key: 1,
|
|
21
|
+
ref: "noTitle",
|
|
22
|
+
class: "vue-data-ui-no-title-space",
|
|
23
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
24
|
+
}, Pe = {
|
|
25
|
+
key: 2,
|
|
26
|
+
style: "width:100%;background:transparent;"
|
|
27
|
+
}, Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = {
|
|
28
|
+
key: 4,
|
|
29
|
+
class: "vue-data-ui-watermark"
|
|
30
|
+
}, Re = {
|
|
31
|
+
key: 5,
|
|
32
|
+
"data-dom-to-png-ignore": "",
|
|
33
|
+
class: "reset-wrapper"
|
|
34
|
+
}, ze = {
|
|
35
|
+
key: 6,
|
|
36
|
+
ref: "source",
|
|
37
|
+
dir: "auto"
|
|
38
|
+
}, A = /*#__PURE__*/ he({
|
|
39
|
+
__name: "vue-ui-molecule",
|
|
40
|
+
props: {
|
|
41
|
+
config: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default() {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
dataset: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default() {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
emits: ["selectNode", "copyAlt"],
|
|
55
|
+
setup(e, { expose: he, emit: je }) {
|
|
56
|
+
Ae((e) => ({ v6d392c4e: tn.value }));
|
|
57
|
+
let A = v(() => import("./Title-CPHi-evi.js").then((e) => e.t)), Be = v(() => import("./Tooltip-hhrkQ3Lk.js")), Ve = v(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), He = v(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), Ue = v(() => import("./DataTable-oiM9uWrQ.js")), We = v(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ge = v(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ke = v(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), qe = v(() => import("./RecursiveLinks-BygcpDiT.js")), Je = v(() => import("./RecursiveLabels-D9rfID6q.js")), Ye = v(() => import("./RecursiveCircles-D6aDPmoe.js")), Xe = v(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_molecule: Ze } = se(), { isThemeValid: Qe, warnInvalidTheme: $e } = fe(), j = e, et = je, tt = f(() => !!j.dataset && j.dataset.length);
|
|
58
|
+
Ee(() => {
|
|
59
|
+
rt();
|
|
60
|
+
});
|
|
61
|
+
let nt = f(() => L.value.debug);
|
|
62
|
+
function rt() {
|
|
63
|
+
o(j.dataset) && d({
|
|
64
|
+
componentName: "VueUiMolecule",
|
|
65
|
+
type: "dataset",
|
|
66
|
+
debug: nt.value
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
let M = w(ne()), N = w(!1), P = w(""), F = w(null), it = w(0), at = w(0), ot = w(0), I = w(null), st = w(null), L = w(mt()), R = f(() => L.value.style.chart.tooltip), z = f(() => L.value.style.chart), B = f(() => L.value.userOptions);
|
|
70
|
+
ae({
|
|
71
|
+
config: () => L.value,
|
|
72
|
+
dataset: () => j.dataset,
|
|
73
|
+
component: "VueUiMolecule",
|
|
74
|
+
rules: [
|
|
75
|
+
oe.emptyArray,
|
|
76
|
+
{
|
|
77
|
+
test: (e) => e[0] && e[0].nodes && e[0].nodes.length === 0,
|
|
78
|
+
message: [
|
|
79
|
+
"👀 There are no children nodes attached to the root node. Consider:",
|
|
80
|
+
"",
|
|
81
|
+
"▶️ Adding children nodes to the root node."
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
test: (e) => e[0] && e[0].nodes && e[0].nodes.length > 8,
|
|
86
|
+
message: [
|
|
87
|
+
"👀 The number of children nodes > 8, some nodes might overlap. Consider:",
|
|
88
|
+
"",
|
|
89
|
+
"▶️ Grouping data into broader categories."
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
let V = f(() => L.value.userOptions.useCursorPointer), ct = f(() => l({
|
|
95
|
+
defaultConfig: {
|
|
96
|
+
userOptions: { show: !1 },
|
|
97
|
+
table: { show: !1 },
|
|
98
|
+
style: { chart: {
|
|
99
|
+
backgroundColor: "#99999930",
|
|
100
|
+
nodes: { stroke: "#6A6A6A" },
|
|
101
|
+
links: { stroke: "#6A6A6A80" }
|
|
102
|
+
} }
|
|
103
|
+
},
|
|
104
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
105
|
+
})), { loading: lt, FINAL_DATASET: ut } = le({
|
|
106
|
+
...ke(j),
|
|
107
|
+
FINAL_CONFIG: L,
|
|
108
|
+
prepareConfig: mt,
|
|
109
|
+
skeletonDataset: j.config?.skeletonDataset ?? [{
|
|
110
|
+
name: "_",
|
|
111
|
+
color: "#CACACA",
|
|
112
|
+
nodes: [
|
|
113
|
+
{
|
|
114
|
+
name: "_",
|
|
115
|
+
color: "#CACACA",
|
|
116
|
+
nodes: [
|
|
117
|
+
{
|
|
118
|
+
name: "_",
|
|
119
|
+
color: "#CACACA"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "_",
|
|
123
|
+
color: "#CACACA"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "_",
|
|
127
|
+
color: "#CACACA"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "_",
|
|
133
|
+
color: "#CACACA",
|
|
134
|
+
nodes: [
|
|
135
|
+
{
|
|
136
|
+
name: "_",
|
|
137
|
+
color: "#CACACA"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "_",
|
|
141
|
+
color: "#CACACA"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "_",
|
|
145
|
+
color: "#CACACA"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: "_",
|
|
151
|
+
color: "#CACACA",
|
|
152
|
+
nodes: [
|
|
153
|
+
{
|
|
154
|
+
name: "_",
|
|
155
|
+
color: "#CACACA"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "_",
|
|
159
|
+
color: "#CACACA"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "_",
|
|
163
|
+
color: "#CACACA"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "_",
|
|
169
|
+
color: "#CACACA",
|
|
170
|
+
nodes: [
|
|
171
|
+
{
|
|
172
|
+
name: "_",
|
|
173
|
+
color: "#CACACA"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "_",
|
|
177
|
+
color: "#CACACA"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "_",
|
|
181
|
+
color: "#CACACA"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "_",
|
|
187
|
+
color: "#CACACA",
|
|
188
|
+
nodes: [
|
|
189
|
+
{
|
|
190
|
+
name: "_",
|
|
191
|
+
color: "#CACACA"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: "_",
|
|
195
|
+
color: "#CACACA"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "_",
|
|
199
|
+
color: "#CACACA"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "_",
|
|
205
|
+
color: "#CACACA",
|
|
206
|
+
nodes: [
|
|
207
|
+
{
|
|
208
|
+
name: "_",
|
|
209
|
+
color: "#CACACA"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "_",
|
|
213
|
+
color: "#CACACA"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "_",
|
|
217
|
+
color: "#CACACA"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}],
|
|
223
|
+
skeletonConfig: l({
|
|
224
|
+
defaultConfig: L.value,
|
|
225
|
+
userConfig: ct.value
|
|
226
|
+
})
|
|
227
|
+
}), { userOptionsVisible: dt, setUserOptionsVisibility: ft, keepUserOptionState: pt } = _e({ config: L.value }), { svgRef: H } = ve({ config: z.value.title });
|
|
228
|
+
function mt() {
|
|
229
|
+
let e = de({
|
|
230
|
+
userConfig: j.config,
|
|
231
|
+
defaultConfig: Ze
|
|
232
|
+
}), t = e.theme;
|
|
233
|
+
if (!t) return e;
|
|
234
|
+
if (!Qe.value(e)) return $e(e), e;
|
|
235
|
+
let n = de({
|
|
236
|
+
userConfig: ye[t] || j.config,
|
|
237
|
+
defaultConfig: e
|
|
238
|
+
}), r = de({
|
|
239
|
+
userConfig: j.config,
|
|
240
|
+
defaultConfig: n
|
|
241
|
+
});
|
|
242
|
+
return {
|
|
243
|
+
...r,
|
|
244
|
+
customPalette: r.customPalette.length ? r.customPalette : s[t] || i
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
O(() => j.config, (e) => {
|
|
248
|
+
L.value = mt(), dt.value = !L.value.userOptions.showOnChartHover, rt(), at.value += 1, ot.value += 1, U.value.showTable = L.value.table.show, U.value.showTooltip = R.value.show, U.value.showZoom = z.value.zoom.show;
|
|
249
|
+
}, { deep: !0 });
|
|
250
|
+
let ht = w(0), gt = () => {
|
|
251
|
+
ht.value += 1;
|
|
252
|
+
};
|
|
253
|
+
O([() => lt.value, () => ut.value], async ([e]) => {
|
|
254
|
+
e || (await b(), W.value = wt(), await b(), gt(), await b(), Wt({
|
|
255
|
+
x: 0,
|
|
256
|
+
y: 0,
|
|
257
|
+
width: 400,
|
|
258
|
+
height: 400
|
|
259
|
+
}), Ht(!1));
|
|
260
|
+
}, {
|
|
261
|
+
flush: "post",
|
|
262
|
+
deep: !1
|
|
263
|
+
});
|
|
264
|
+
let { isPrinting: _t, isImaging: vt, generatePdf: yt, generateImage: bt } = ce({
|
|
265
|
+
elementId: `cluster_${M.value}`,
|
|
266
|
+
fileName: z.value.title.text || "vue-ui-molecule",
|
|
267
|
+
options: L.value.userOptions.print
|
|
268
|
+
}), xt = f(() => L.value.userOptions.show && !z.value.title.text), St = f(() => ie(L.value.customPalette)), U = w({
|
|
269
|
+
showTable: L.value.table.show,
|
|
270
|
+
showDataLabels: !0,
|
|
271
|
+
showTooltip: R.value.show,
|
|
272
|
+
showZoom: z.value.zoom.show
|
|
273
|
+
});
|
|
274
|
+
O(L, () => {
|
|
275
|
+
U.value = {
|
|
276
|
+
showTable: L.value.table.show,
|
|
277
|
+
showDataLabels: !0,
|
|
278
|
+
showTooltip: R.value.show,
|
|
279
|
+
showZoom: z.value.zoom.show
|
|
280
|
+
};
|
|
281
|
+
}, { immediate: !0 });
|
|
282
|
+
function Ct(e, t = 0) {
|
|
283
|
+
return Array.isArray(e) && e.length > 0 && e[0].nodes ? Ct(e[0].nodes, t + 1) : t;
|
|
284
|
+
}
|
|
285
|
+
function wt() {
|
|
286
|
+
let e = Ct(ut.value), t = 100, n = t;
|
|
287
|
+
for (let r = 0; r < e; r += 1) t /= 1, n += t;
|
|
288
|
+
return {
|
|
289
|
+
height: n,
|
|
290
|
+
width: n
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
let W = w(wt());
|
|
294
|
+
function Tt(e, t = {
|
|
295
|
+
x: -W.value.width / 2.43,
|
|
296
|
+
y: W.value.height / 2
|
|
297
|
+
}, n = W.value.width / 1.1, r = 24, o = 0, s = 0, c = "#BBBBBB", l = 0) {
|
|
298
|
+
if (!Array.isArray(e) || e.length === 0) return e;
|
|
299
|
+
let te = a({
|
|
300
|
+
plot: t,
|
|
301
|
+
radius: n,
|
|
302
|
+
sides: e.length,
|
|
303
|
+
rotation: o
|
|
304
|
+
});
|
|
305
|
+
return e.forEach((e, t) => {
|
|
306
|
+
let a = te.coordinates[t], u = e.color ? (() => {
|
|
307
|
+
let t = ee(e.color);
|
|
308
|
+
return t.startsWith("#") ? t : `#${t}`;
|
|
309
|
+
})() : null, d;
|
|
310
|
+
u ? d = u : l === 0 ? d = c : l === 1 ? (d = St.value[s] || i[s] || c, s += 1) : d = c, e.polygonPath = { coordinates: [a] }, e.circleRadius = r, e.color = d, e.strokeWidth = Math.min(z.value.links.strokeWidth / (l + 1), r / 2), e.uid = ne(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Tt(e.nodes, a, n / 2.9, r / 2.2, o + Math.PI * t / e.nodes.length, s, d, l + 1));
|
|
311
|
+
}), e;
|
|
312
|
+
}
|
|
313
|
+
function Et(e) {
|
|
314
|
+
let t = /* @__PURE__ */ new Set();
|
|
315
|
+
function n(e) {
|
|
316
|
+
e.forEach((e) => {
|
|
317
|
+
if (!e.color) return;
|
|
318
|
+
let r = e.color;
|
|
319
|
+
/^#?[0-9A-F]{6}$/i.test(r) || (r = ee(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
n(e);
|
|
323
|
+
let r = {};
|
|
324
|
+
return Array.from(t).forEach((e) => {
|
|
325
|
+
let t = e.slice(1);
|
|
326
|
+
r[e] = `gradient_${t}`;
|
|
327
|
+
}), r;
|
|
328
|
+
}
|
|
329
|
+
let Dt = f(() => Et(G.value)), G = f(() => Tt(c(ut.value))), K = w(null);
|
|
330
|
+
function Ot(e) {
|
|
331
|
+
K.value = {
|
|
332
|
+
datapoint: e,
|
|
333
|
+
seriesIndex: -1,
|
|
334
|
+
series: G.value,
|
|
335
|
+
config: L.value
|
|
336
|
+
};
|
|
337
|
+
let t = R.value.customFormat;
|
|
338
|
+
if (n(t) && u(() => t({
|
|
339
|
+
seriesIndex: -1,
|
|
340
|
+
datapoint: e,
|
|
341
|
+
series: G.value,
|
|
342
|
+
config: L.value
|
|
343
|
+
}))) P.value = t({
|
|
344
|
+
seriesIndex: -1,
|
|
345
|
+
datapoint: e,
|
|
346
|
+
series: G.value,
|
|
347
|
+
config: L.value
|
|
348
|
+
});
|
|
349
|
+
else {
|
|
350
|
+
let t = "";
|
|
351
|
+
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (t += `<div style="width:100%;border-top:1px solid ${R.value.borderColor};margin-top: 2px">${e.details}</div>`), P.value = `<div style="font-family:inherit">${t}</div>`;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
let q = w(null), J = w(null), kt = w(null);
|
|
355
|
+
function At(e) {
|
|
356
|
+
kt.value = q.value, q.value = e, e ? L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
357
|
+
datapoint: e,
|
|
358
|
+
seriesIndex: -1
|
|
359
|
+
}) : L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
360
|
+
datapoint: kt.value || q.value,
|
|
361
|
+
seriesIndex: -1
|
|
362
|
+
}), e ? (N.value = !0, Ot(e), J.value = e.uid) : (N.value = !1, P.value = "", J.value = null);
|
|
363
|
+
}
|
|
364
|
+
function jt(e) {
|
|
365
|
+
let t = [];
|
|
366
|
+
function n(e) {
|
|
367
|
+
e.forEach((e) => {
|
|
368
|
+
let r = {
|
|
369
|
+
name: e.name,
|
|
370
|
+
details: e.details || "-",
|
|
371
|
+
ancestor: e.ancestor && e.ancestor.name || "-",
|
|
372
|
+
color: e.color || ""
|
|
373
|
+
};
|
|
374
|
+
t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
return n(e), t;
|
|
378
|
+
}
|
|
379
|
+
let Mt = f(() => jt(G.value)), Y = f(() => ({
|
|
380
|
+
head: [
|
|
381
|
+
L.value.table.translations.nodeName,
|
|
382
|
+
L.value.table.translations.details,
|
|
383
|
+
L.value.table.translations.ancestor
|
|
384
|
+
],
|
|
385
|
+
body: Mt.value.map((e, t) => [
|
|
386
|
+
{
|
|
387
|
+
color: e.color,
|
|
388
|
+
name: e.name
|
|
389
|
+
},
|
|
390
|
+
e.details,
|
|
391
|
+
e.ancestor || ""
|
|
392
|
+
]),
|
|
393
|
+
config: {
|
|
394
|
+
th: {
|
|
395
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
396
|
+
color: L.value.table.th.color,
|
|
397
|
+
outline: L.value.table.th.outline
|
|
398
|
+
},
|
|
399
|
+
td: {
|
|
400
|
+
backgroundColor: L.value.table.td.backgroundColor,
|
|
401
|
+
color: L.value.table.td.color,
|
|
402
|
+
outline: L.value.table.td.outline
|
|
403
|
+
},
|
|
404
|
+
breakpoint: L.value.table.responsiveBreakpoint
|
|
405
|
+
},
|
|
406
|
+
colNames: [
|
|
407
|
+
L.value.table.translations.nodeName,
|
|
408
|
+
L.value.table.translations.details,
|
|
409
|
+
L.value.table.translations.ancestor
|
|
410
|
+
]
|
|
411
|
+
}));
|
|
412
|
+
function Nt(e = null) {
|
|
413
|
+
b(() => {
|
|
414
|
+
let n = Y.value.body.map((e, t) => [
|
|
415
|
+
[e[0].name],
|
|
416
|
+
[e[1]],
|
|
417
|
+
[e[2]]
|
|
418
|
+
]), i = [
|
|
419
|
+
[z.value.title.text],
|
|
420
|
+
[z.value.title.subtitle.text],
|
|
421
|
+
[[...Y.value.head]]
|
|
422
|
+
].concat(n), a = r(i);
|
|
423
|
+
e ? e(a) : t({
|
|
424
|
+
csvContent: a,
|
|
425
|
+
title: z.value.title.text || "vue-ui-molecule"
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
function Pt() {
|
|
430
|
+
return G.value;
|
|
431
|
+
}
|
|
432
|
+
let X = w(!1);
|
|
433
|
+
function Ft(e) {
|
|
434
|
+
X.value = e, it.value += 1;
|
|
435
|
+
}
|
|
436
|
+
function It() {
|
|
437
|
+
U.value.showTable = !U.value.showTable;
|
|
438
|
+
}
|
|
439
|
+
function Lt() {
|
|
440
|
+
U.value.showDataLabels = !U.value.showDataLabels;
|
|
441
|
+
}
|
|
442
|
+
function Rt() {
|
|
443
|
+
U.value.showTooltip = !U.value.showTooltip;
|
|
444
|
+
}
|
|
445
|
+
function zt() {
|
|
446
|
+
U.value.showZoom = !U.value.showZoom;
|
|
447
|
+
}
|
|
448
|
+
let Z = w(!1);
|
|
449
|
+
function Bt() {
|
|
450
|
+
Z.value = !Z.value;
|
|
451
|
+
}
|
|
452
|
+
let Vt = f(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Ht, isZoom: Ut, setInitialViewBox: Wt } = be(H, {
|
|
453
|
+
x: 0,
|
|
454
|
+
y: 0,
|
|
455
|
+
width: Math.max(10, W.value.width),
|
|
456
|
+
height: Math.max(10, W.value.height)
|
|
457
|
+
}, z.value.zoom.speed, Vt);
|
|
458
|
+
function Gt(e) {
|
|
459
|
+
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
460
|
+
datapoint: e,
|
|
461
|
+
seriesIndex: -1
|
|
462
|
+
}), et("selectNode", e);
|
|
463
|
+
}
|
|
464
|
+
async function Kt({ scale: e = 2 } = {}) {
|
|
465
|
+
if (!F.value) return;
|
|
466
|
+
let { width: t, height: n } = F.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
467
|
+
domElement: F.value,
|
|
468
|
+
base64: !0,
|
|
469
|
+
img: !0,
|
|
470
|
+
scale: e
|
|
471
|
+
});
|
|
472
|
+
return {
|
|
473
|
+
imageUri: i,
|
|
474
|
+
base64: a,
|
|
475
|
+
title: z.value.title.text,
|
|
476
|
+
width: t,
|
|
477
|
+
height: n,
|
|
478
|
+
aspectRatio: r
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
let $ = f(() => {
|
|
482
|
+
let e = L.value.table.useDialog && !L.value.table.show, t = U.value.showTable;
|
|
483
|
+
return {
|
|
484
|
+
component: e ? Xe : He,
|
|
485
|
+
title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
|
|
486
|
+
props: e ? {
|
|
487
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
488
|
+
color: L.value.table.th.color,
|
|
489
|
+
headerColor: L.value.table.th.color,
|
|
490
|
+
headerBg: L.value.table.th.backgroundColor,
|
|
491
|
+
isFullscreen: X.value,
|
|
492
|
+
fullscreenParent: F.value,
|
|
493
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
494
|
+
isCursorPointer: V.value
|
|
495
|
+
} : {
|
|
496
|
+
hideDetails: !0,
|
|
497
|
+
config: {
|
|
498
|
+
open: t,
|
|
499
|
+
maxHeight: 1e4,
|
|
500
|
+
body: {
|
|
501
|
+
backgroundColor: z.value.backgroundColor,
|
|
502
|
+
color: z.value.color
|
|
503
|
+
},
|
|
504
|
+
head: {
|
|
505
|
+
backgroundColor: z.value.backgroundColor,
|
|
506
|
+
color: z.value.color
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
});
|
|
512
|
+
O(() => U.value.showTable, (e) => {
|
|
513
|
+
L.value.table.show || (e && L.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
514
|
+
});
|
|
515
|
+
function qt() {
|
|
516
|
+
U.value.showTable = !1, st.value && st.value.setTableIconState(!1);
|
|
517
|
+
}
|
|
518
|
+
let Jt = f(() => z.value.backgroundColor), Yt = f(() => z.value.title), { isCallbackImaging: Xt, isCallbackSvg: Zt, generateSvg: Qt, onGenerateImage: $t } = pe({
|
|
519
|
+
svg: H,
|
|
520
|
+
title: Yt,
|
|
521
|
+
legend: null,
|
|
522
|
+
legendItems: null,
|
|
523
|
+
backgroundColor: Jt,
|
|
524
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
525
|
+
generateImage: bt
|
|
526
|
+
});
|
|
527
|
+
async function en() {
|
|
528
|
+
if (et("copyAlt", {
|
|
529
|
+
config: L.value,
|
|
530
|
+
dataset: G.value
|
|
531
|
+
}), !L.value.userOptions.callbacks.altCopy) {
|
|
532
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
536
|
+
config: L.value,
|
|
537
|
+
dataset: G.value
|
|
538
|
+
}));
|
|
539
|
+
}
|
|
540
|
+
let tn = f(() => z.value.color);
|
|
541
|
+
return he({
|
|
542
|
+
getData: Pt,
|
|
543
|
+
getImage: Kt,
|
|
544
|
+
generatePdf: yt,
|
|
545
|
+
generateCsv: Nt,
|
|
546
|
+
generateImage: bt,
|
|
547
|
+
generateSvg: Qt,
|
|
548
|
+
toggleTable: It,
|
|
549
|
+
toggleLabels: Lt,
|
|
550
|
+
toggleTooltip: Rt,
|
|
551
|
+
toggleAnnotator: Bt,
|
|
552
|
+
toggleFullscreen: Ft,
|
|
553
|
+
toggleZoom: zt,
|
|
554
|
+
copyAlt: en
|
|
555
|
+
}), (e, t) => (C(), h("div", {
|
|
556
|
+
ref_key: "moleculeChart",
|
|
557
|
+
ref: F,
|
|
558
|
+
class: Te(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
559
|
+
style: S(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${z.value.backgroundColor}`),
|
|
560
|
+
id: `cluster_${M.value}`,
|
|
561
|
+
onMouseleave: t[2] ||= (e) => {
|
|
562
|
+
q.value = null, J.value = null, D(ft)(!1);
|
|
563
|
+
},
|
|
564
|
+
onMouseenter: t[3] ||= () => D(ft)(!0)
|
|
565
|
+
}, [
|
|
566
|
+
B.value.buttons.annotator && D(H) ? (C(), p(D(We), {
|
|
567
|
+
key: 0,
|
|
568
|
+
svgRef: D(H),
|
|
569
|
+
backgroundColor: z.value.backgroundColor,
|
|
570
|
+
color: z.value.color,
|
|
571
|
+
active: Z.value,
|
|
572
|
+
isCursorPointer: V.value,
|
|
573
|
+
onClose: Bt
|
|
574
|
+
}, {
|
|
575
|
+
"annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
576
|
+
"annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
577
|
+
"annotator-action-draw": k(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
|
|
578
|
+
"annotator-action-undo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
|
|
579
|
+
"annotator-action-redo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
|
|
580
|
+
"annotator-action-delete": k(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
|
|
581
|
+
_: 3
|
|
582
|
+
}, 8, [
|
|
583
|
+
"svgRef",
|
|
584
|
+
"backgroundColor",
|
|
585
|
+
"color",
|
|
586
|
+
"active",
|
|
587
|
+
"isCursorPointer"
|
|
588
|
+
])) : m("", !0),
|
|
589
|
+
xt.value ? (C(), h("div", Ne, null, 512)) : m("", !0),
|
|
590
|
+
z.value.title.text ? (C(), h("div", Pe, [(C(), p(D(A), {
|
|
591
|
+
key: `title_${at.value}`,
|
|
592
|
+
config: {
|
|
593
|
+
title: {
|
|
594
|
+
cy: "molecule-div-title",
|
|
595
|
+
...z.value.title
|
|
596
|
+
},
|
|
597
|
+
subtitle: {
|
|
598
|
+
cy: "molecule-div-subtitle",
|
|
599
|
+
...z.value.title.subtitle
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}, null, 8, ["config"]))])) : m("", !0),
|
|
603
|
+
B.value.show && tt.value && (D(pt) || D(dt)) ? (C(), p(D(Ge), {
|
|
604
|
+
ref_key: "userOptionsRef",
|
|
605
|
+
ref: st,
|
|
606
|
+
key: `user_options_${it.value}`,
|
|
607
|
+
backgroundColor: z.value.backgroundColor,
|
|
608
|
+
color: z.value.color,
|
|
609
|
+
isPrinting: D(_t),
|
|
610
|
+
isImaging: D(vt),
|
|
611
|
+
uid: M.value,
|
|
612
|
+
hasTooltip: B.value.buttons.tooltip && R.value.show,
|
|
613
|
+
hasPdf: B.value.buttons.pdf,
|
|
614
|
+
hasXls: B.value.buttons.csv,
|
|
615
|
+
hasImg: B.value.buttons.img,
|
|
616
|
+
hasSvg: B.value.buttons.svg,
|
|
617
|
+
hasTable: B.value.buttons.table,
|
|
618
|
+
hasLabel: B.value.buttons.labels,
|
|
619
|
+
hasFullscreen: B.value.buttons.fullscreen,
|
|
620
|
+
hasAltCopy: B.value.buttons.altCopy,
|
|
621
|
+
isTooltip: U.value.showTooltip,
|
|
622
|
+
titles: { ...B.value.buttonTitles },
|
|
623
|
+
chartElement: F.value,
|
|
624
|
+
position: B.value.position,
|
|
625
|
+
hasAnnotator: B.value.buttons.annotator,
|
|
626
|
+
isAnnotation: Z.value,
|
|
627
|
+
callbacks: B.value.callbacks,
|
|
628
|
+
printScale: B.value.print.scale,
|
|
629
|
+
tableDialog: L.value.table.useDialog,
|
|
630
|
+
hasZoom: B.value.buttons.zoom,
|
|
631
|
+
isZoom: U.value.showZoom,
|
|
632
|
+
isCursorPointer: V.value,
|
|
633
|
+
onToggleFullscreen: Ft,
|
|
634
|
+
onGeneratePdf: D(yt),
|
|
635
|
+
onGenerateCsv: Nt,
|
|
636
|
+
onGenerateImage: D($t),
|
|
637
|
+
onGenerateSvg: D(Qt),
|
|
638
|
+
onToggleTable: It,
|
|
639
|
+
onToggleLabels: Lt,
|
|
640
|
+
onToggleTooltip: Rt,
|
|
641
|
+
onToggleAnnotator: Bt,
|
|
642
|
+
onToggleZoom: zt,
|
|
643
|
+
onCopyAlt: en,
|
|
644
|
+
style: S({ visibility: D(pt) ? D(dt) ? "visible" : "hidden" : "visible" })
|
|
645
|
+
}, Se({ _: 2 }, [
|
|
646
|
+
e.$slots.menuIcon ? {
|
|
647
|
+
name: "menuIcon",
|
|
648
|
+
fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
|
|
649
|
+
isOpen: t,
|
|
650
|
+
color: n
|
|
651
|
+
})), void 0, !0)]),
|
|
652
|
+
key: "0"
|
|
653
|
+
} : void 0,
|
|
654
|
+
e.$slots.optionTooltip ? {
|
|
655
|
+
name: "optionTooltip",
|
|
656
|
+
fn: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
657
|
+
key: "1"
|
|
658
|
+
} : void 0,
|
|
659
|
+
e.$slots.optionPdf ? {
|
|
660
|
+
name: "optionPdf",
|
|
661
|
+
fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
662
|
+
key: "2"
|
|
663
|
+
} : void 0,
|
|
664
|
+
e.$slots.optionCsv ? {
|
|
665
|
+
name: "optionCsv",
|
|
666
|
+
fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
667
|
+
key: "3"
|
|
668
|
+
} : void 0,
|
|
669
|
+
e.$slots.optionImg ? {
|
|
670
|
+
name: "optionImg",
|
|
671
|
+
fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
672
|
+
key: "4"
|
|
673
|
+
} : void 0,
|
|
674
|
+
e.$slots.optionSvg ? {
|
|
675
|
+
name: "optionSvg",
|
|
676
|
+
fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
677
|
+
key: "5"
|
|
678
|
+
} : void 0,
|
|
679
|
+
e.$slots.optionTable ? {
|
|
680
|
+
name: "optionTable",
|
|
681
|
+
fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
682
|
+
key: "6"
|
|
683
|
+
} : void 0,
|
|
684
|
+
e.$slots.optionLabels ? {
|
|
685
|
+
name: "optionLabels",
|
|
686
|
+
fn: k(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
687
|
+
key: "7"
|
|
688
|
+
} : void 0,
|
|
689
|
+
e.$slots.optionFullscreen ? {
|
|
690
|
+
name: "optionFullscreen",
|
|
691
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
|
|
692
|
+
toggleFullscreen: t,
|
|
693
|
+
isFullscreen: n
|
|
694
|
+
})), void 0, !0)]),
|
|
695
|
+
key: "8"
|
|
696
|
+
} : void 0,
|
|
697
|
+
e.$slots.optionAnnotator ? {
|
|
698
|
+
name: "optionAnnotator",
|
|
699
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
|
|
700
|
+
toggleAnnotator: t,
|
|
701
|
+
isAnnotator: n
|
|
702
|
+
})), void 0, !0)]),
|
|
703
|
+
key: "9"
|
|
704
|
+
} : void 0,
|
|
705
|
+
e.$slots.optionZoom ? {
|
|
706
|
+
name: "optionZoom",
|
|
707
|
+
fn: k(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(y({
|
|
708
|
+
toggleZoom: t,
|
|
709
|
+
isZoomLocked: n
|
|
710
|
+
})), void 0, !0)]),
|
|
711
|
+
key: "10"
|
|
712
|
+
} : void 0,
|
|
713
|
+
e.$slots.optionAltCopy ? {
|
|
714
|
+
name: "optionAltCopy",
|
|
715
|
+
fn: k(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
|
|
716
|
+
key: "11"
|
|
717
|
+
} : void 0,
|
|
718
|
+
e.$slots["custom-menu-before"] ? {
|
|
719
|
+
name: "custom-menu-before",
|
|
720
|
+
fn: k(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
721
|
+
key: "12"
|
|
722
|
+
} : void 0,
|
|
723
|
+
e.$slots["custom-menu-after"] ? {
|
|
724
|
+
name: "custom-menu-after",
|
|
725
|
+
fn: k(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
726
|
+
key: "13"
|
|
727
|
+
} : void 0
|
|
728
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
729
|
+
(C(), h("svg", {
|
|
730
|
+
ref_key: "svgRef",
|
|
731
|
+
ref: H,
|
|
732
|
+
key: `svg_${ht.value}`,
|
|
733
|
+
xmlns: D(re),
|
|
734
|
+
viewBox: `${D(Q).x} ${D(Q).y} ${D(Q).width} ${D(Q).height}`,
|
|
735
|
+
class: Te({
|
|
736
|
+
"vue-data-ui-fullscreen--on": X.value,
|
|
737
|
+
"vue-data-ui-fulscreen--off": !X.value
|
|
738
|
+
}),
|
|
739
|
+
style: S(`overflow: hidden; background:transparent;color:${z.value.color}`)
|
|
740
|
+
}, [
|
|
741
|
+
_(D(Ke)),
|
|
742
|
+
e.$slots["chart-background"] ? (C(), h("foreignObject", {
|
|
743
|
+
key: 0,
|
|
744
|
+
x: 0,
|
|
745
|
+
y: 0,
|
|
746
|
+
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
747
|
+
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
748
|
+
style: { pointerEvents: "none" }
|
|
749
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : m("", !0),
|
|
750
|
+
g("defs", null, [(C(!0), h(xe, null, De(Object.keys(Dt.value), (e, t) => (C(), p(ge, {
|
|
751
|
+
t: "radial",
|
|
752
|
+
id: `gradient_${e}`,
|
|
753
|
+
key: `gradient_${e}_${t}`,
|
|
754
|
+
cx: "50%",
|
|
755
|
+
cy: "30%",
|
|
756
|
+
r: "50%",
|
|
757
|
+
fx: "50%",
|
|
758
|
+
fy: "50%",
|
|
759
|
+
stops: [[
|
|
760
|
+
"0%",
|
|
761
|
+
D(te)(e, .5),
|
|
762
|
+
1
|
|
763
|
+
], [
|
|
764
|
+
"100%",
|
|
765
|
+
e,
|
|
766
|
+
1
|
|
767
|
+
]]
|
|
768
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
769
|
+
_(D(qe), {
|
|
770
|
+
dataset: G.value,
|
|
771
|
+
color: z.value.links.stroke,
|
|
772
|
+
backgroundColor: z.value.backgroundColor,
|
|
773
|
+
useChildColor: z.value.links.useChildColor
|
|
774
|
+
}, null, 8, [
|
|
775
|
+
"dataset",
|
|
776
|
+
"color",
|
|
777
|
+
"backgroundColor",
|
|
778
|
+
"useChildColor"
|
|
779
|
+
]),
|
|
780
|
+
_(D(Ye), {
|
|
781
|
+
dataset: G.value,
|
|
782
|
+
hoveredUid: J.value,
|
|
783
|
+
stroke: z.value.nodes.stroke,
|
|
784
|
+
strokeHovered: z.value.nodes.strokeHovered,
|
|
785
|
+
onClick: Gt,
|
|
786
|
+
onHover: At
|
|
787
|
+
}, {
|
|
788
|
+
node: k(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
|
|
789
|
+
"node-svg": k(({ nodeSvg: t }) => [T(e.$slots, "node-svg", x(y({ nodeSvg: t })), void 0, !0)]),
|
|
790
|
+
_: 3
|
|
791
|
+
}, 8, [
|
|
792
|
+
"dataset",
|
|
793
|
+
"hoveredUid",
|
|
794
|
+
"stroke",
|
|
795
|
+
"strokeHovered"
|
|
796
|
+
]),
|
|
797
|
+
U.value.showDataLabels && !D(lt) ? (C(), p(D(Je), {
|
|
798
|
+
key: 1,
|
|
799
|
+
dataset: G.value,
|
|
800
|
+
color: z.value.color,
|
|
801
|
+
hoveredUid: J.value
|
|
802
|
+
}, null, 8, [
|
|
803
|
+
"dataset",
|
|
804
|
+
"color",
|
|
805
|
+
"hoveredUid"
|
|
806
|
+
])) : m("", !0),
|
|
807
|
+
T(e.$slots, "svg", { svg: {
|
|
808
|
+
...W.value,
|
|
809
|
+
drawingArea: { ...D(Q) },
|
|
810
|
+
isPrintingImg: D(_t) || D(vt) || D(Xt),
|
|
811
|
+
isPrintingSvg: D(Zt)
|
|
812
|
+
} }, void 0, !0)
|
|
813
|
+
], 14, Fe)),
|
|
814
|
+
e.$slots.watermark ? (C(), h("div", Le, [T(e.$slots, "watermark", x(y({ isPrinting: D(_t) || D(vt) || D(Xt) || D(Zt) })), void 0, !0)])) : m("", !0),
|
|
815
|
+
D(Ut) ? (C(), h("div", Re, [T(e.$slots, "reset-action", { reset: D(Ht) }, () => [g("button", {
|
|
816
|
+
"data-cy-reset": "",
|
|
817
|
+
tabindex: "0",
|
|
818
|
+
role: "button",
|
|
819
|
+
class: "vue-data-ui-refresh-button",
|
|
820
|
+
style: S({
|
|
821
|
+
background: z.value.backgroundColor,
|
|
822
|
+
cursor: V.value ? "pointer" : "default"
|
|
823
|
+
}),
|
|
824
|
+
onClick: t[0] ||= (e) => D(Ht)(!0)
|
|
825
|
+
}, [_(D(Ve), {
|
|
826
|
+
name: "refresh",
|
|
827
|
+
stroke: z.value.color
|
|
828
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
|
|
829
|
+
e.$slots.source ? (C(), h("div", ze, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
830
|
+
_(D(Be), {
|
|
831
|
+
teleportTo: R.value.teleportTo,
|
|
832
|
+
show: U.value.showTooltip && N.value,
|
|
833
|
+
backgroundColor: R.value.backgroundColor,
|
|
834
|
+
color: R.value.color,
|
|
835
|
+
borderRadius: R.value.borderRadius,
|
|
836
|
+
borderColor: R.value.borderColor,
|
|
837
|
+
borderWidth: R.value.borderWidth,
|
|
838
|
+
fontSize: R.value.fontSize,
|
|
839
|
+
backgroundOpacity: R.value.backgroundOpacity,
|
|
840
|
+
position: R.value.position,
|
|
841
|
+
offsetX: R.value.offsetX,
|
|
842
|
+
offsetY: R.value.offsetY,
|
|
843
|
+
parent: F.value,
|
|
844
|
+
content: P.value,
|
|
845
|
+
isFullscreen: X.value,
|
|
846
|
+
isCustom: R.value.customFormat && typeof R.value.customFormat == "function",
|
|
847
|
+
smooth: R.value.smooth,
|
|
848
|
+
backdropFilter: R.value.backdropFilter,
|
|
849
|
+
smoothForce: R.value.smoothForce,
|
|
850
|
+
smoothSnapThreshold: R.value.smoothSnapThreshold
|
|
851
|
+
}, {
|
|
852
|
+
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(y({ ...K.value })), void 0, !0)]),
|
|
853
|
+
tooltip: k(() => [T(e.$slots, "tooltip", x(y({ ...K.value })), void 0, !0)]),
|
|
854
|
+
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(y({ ...K.value })), void 0, !0)]),
|
|
855
|
+
_: 3
|
|
856
|
+
}, 8, [
|
|
857
|
+
"teleportTo",
|
|
858
|
+
"show",
|
|
859
|
+
"backgroundColor",
|
|
860
|
+
"color",
|
|
861
|
+
"borderRadius",
|
|
862
|
+
"borderColor",
|
|
863
|
+
"borderWidth",
|
|
864
|
+
"fontSize",
|
|
865
|
+
"backgroundOpacity",
|
|
866
|
+
"position",
|
|
867
|
+
"offsetX",
|
|
868
|
+
"offsetY",
|
|
869
|
+
"parent",
|
|
870
|
+
"content",
|
|
871
|
+
"isFullscreen",
|
|
872
|
+
"isCustom",
|
|
873
|
+
"smooth",
|
|
874
|
+
"backdropFilter",
|
|
875
|
+
"smoothForce",
|
|
876
|
+
"smoothSnapThreshold"
|
|
877
|
+
]),
|
|
878
|
+
tt.value && B.value.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
|
|
879
|
+
ref_key: "tableUnit",
|
|
880
|
+
ref: I,
|
|
881
|
+
onClose: qt
|
|
882
|
+
}), Se({
|
|
883
|
+
content: k(() => [(C(), p(D(Ue), {
|
|
884
|
+
key: `table_${ot.value}`,
|
|
885
|
+
colNames: Y.value.colNames,
|
|
886
|
+
head: Y.value.head,
|
|
887
|
+
body: Y.value.body,
|
|
888
|
+
config: Y.value.config,
|
|
889
|
+
title: L.value.table.useDialog ? "" : $.value.title,
|
|
890
|
+
withCloseButton: !L.value.table.useDialog,
|
|
891
|
+
isCursorPointer: V.value,
|
|
892
|
+
onClose: qt
|
|
893
|
+
}, {
|
|
894
|
+
th: k(({ th: e }) => [g("div", null, E(e), 1)]),
|
|
895
|
+
td: k(({ td: e }) => [Ce(E(e.name || e), 1)]),
|
|
896
|
+
_: 1
|
|
897
|
+
}, 8, [
|
|
898
|
+
"colNames",
|
|
899
|
+
"head",
|
|
900
|
+
"body",
|
|
901
|
+
"config",
|
|
902
|
+
"title",
|
|
903
|
+
"withCloseButton",
|
|
904
|
+
"isCursorPointer"
|
|
905
|
+
]))]),
|
|
906
|
+
_: 2
|
|
907
|
+
}, [L.value.table.useDialog ? {
|
|
908
|
+
name: "title",
|
|
909
|
+
fn: k(() => [Ce(E($.value.title), 1)]),
|
|
910
|
+
key: "0"
|
|
911
|
+
} : void 0, L.value.table.useDialog ? {
|
|
912
|
+
name: "actions",
|
|
913
|
+
fn: k(() => [g("button", {
|
|
914
|
+
tabindex: "0",
|
|
915
|
+
class: "vue-ui-user-options-button",
|
|
916
|
+
onClick: t[1] ||= (e) => Nt(B.value.callbacks.csv),
|
|
917
|
+
style: S({ cursor: V.value ? "pointer" : "default" })
|
|
918
|
+
}, [_(D(Ve), {
|
|
919
|
+
name: "fileCsv",
|
|
920
|
+
stroke: $.value.props.color
|
|
921
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
922
|
+
key: "1"
|
|
923
|
+
} : void 0]), 1040)) : m("", !0),
|
|
924
|
+
T(e.$slots, "skeleton", {}, () => [D(lt) ? (C(), p(ue, { key: 0 })) : m("", !0)], !0)
|
|
925
|
+
], 46, Me));
|
|
926
|
+
}
|
|
927
|
+
}, [["__scopeId", "data-v-f0ae3fa2"]]);
|
|
928
|
+
//#endregion
|
|
929
|
+
export { je as n, A as t };
|