vue-data-ui 3.25.7 → 3.25.9
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.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-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-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.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 +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,10 +1,10 @@
|
|
|
1
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
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, M as a, Pt as ee, S as te, Yt as o, Z as s, Zt as c, jt as ne, lt as l, nt as u, q as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ce } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as le } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as d } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as pe } from "./useChartExport-iwOqiIWX.js";
|
|
10
10
|
import { t as me } from "./img-DhGApYG0.js";
|
|
@@ -16,7 +16,7 @@ import { t as ye } from "./vue_ui_molecule-CO9L59SF.js";
|
|
|
16
16
|
import { t as be } from "./usePanZoom-CYU3B4T3.js";
|
|
17
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
18
|
//#region src/components/vue-ui-molecule.vue
|
|
19
|
-
var je = /* @__PURE__ */ e({ default: () =>
|
|
19
|
+
var je = /* @__PURE__ */ e({ default: () => Be }), Me = ["id"], Ne = {
|
|
20
20
|
key: 1,
|
|
21
21
|
ref: "noTitle",
|
|
22
22
|
class: "vue-data-ui-no-title-space",
|
|
@@ -35,7 +35,7 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
35
35
|
key: 6,
|
|
36
36
|
ref: "source",
|
|
37
37
|
dir: "auto"
|
|
38
|
-
},
|
|
38
|
+
}, Be = /*#__PURE__*/ he({
|
|
39
39
|
__name: "vue-ui-molecule",
|
|
40
40
|
props: {
|
|
41
41
|
config: {
|
|
@@ -53,26 +53,26 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["selectNode", "copyAlt"],
|
|
55
55
|
setup(e, { expose: he, emit: je }) {
|
|
56
|
-
Ae((e) => ({
|
|
57
|
-
let
|
|
56
|
+
Ae((e) => ({ v98264478: rn.value }));
|
|
57
|
+
let Be = v(() => import("./Title-CPHi-evi.js").then((e) => e.t)), Ve = v(() => import("./Tooltip-hhrkQ3Lk.js")), He = v(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Ue = v(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), We = v(() => import("./DataTable-oiM9uWrQ.js")), Ge = v(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ke = v(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), qe = v(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), Je = v(() => import("./RecursiveLinks-BygcpDiT.js")), Ye = v(() => import("./RecursiveLabels-D9rfID6q.js")), Xe = v(() => import("./RecursiveCircles-D6aDPmoe.js")), Ze = v(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_molecule: Qe } = ce(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), A = e, tt = je, nt = f(() => !!A.dataset && A.dataset.length);
|
|
58
58
|
Ee(() => {
|
|
59
|
-
|
|
59
|
+
it();
|
|
60
60
|
});
|
|
61
|
-
let
|
|
62
|
-
function
|
|
63
|
-
|
|
61
|
+
let rt = f(() => F.value.debug);
|
|
62
|
+
function it() {
|
|
63
|
+
ee(A.dataset) && u({
|
|
64
64
|
componentName: "VueUiMolecule",
|
|
65
65
|
type: "dataset",
|
|
66
|
-
debug:
|
|
66
|
+
debug: rt.value
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
config: () =>
|
|
72
|
-
dataset: () =>
|
|
69
|
+
let at = w(re()), ot = w(!1), j = w(""), M = w(null), st = w(0), ct = w(0), lt = w(0), N = w(null), P = w(null), F = w(ht()), I = f(() => F.value.style.chart.tooltip), L = f(() => F.value.style.chart), R = f(() => F.value.userOptions);
|
|
70
|
+
oe({
|
|
71
|
+
config: () => F.value,
|
|
72
|
+
dataset: () => A.dataset,
|
|
73
73
|
component: "VueUiMolecule",
|
|
74
74
|
rules: [
|
|
75
|
-
|
|
75
|
+
se.emptyArray,
|
|
76
76
|
{
|
|
77
77
|
test: (e) => e[0] && e[0].nodes && e[0].nodes.length === 0,
|
|
78
78
|
message: [
|
|
@@ -91,7 +91,7 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
91
91
|
}
|
|
92
92
|
]
|
|
93
93
|
});
|
|
94
|
-
let
|
|
94
|
+
let z = f(() => F.value.userOptions.useCursorPointer), ut = f(() => c({
|
|
95
95
|
defaultConfig: {
|
|
96
96
|
userOptions: { show: !1 },
|
|
97
97
|
table: { show: !1 },
|
|
@@ -101,12 +101,12 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
101
101
|
links: { stroke: "#6A6A6A80" }
|
|
102
102
|
} }
|
|
103
103
|
},
|
|
104
|
-
userConfig:
|
|
105
|
-
})), { loading:
|
|
106
|
-
...ke(
|
|
107
|
-
FINAL_CONFIG:
|
|
108
|
-
prepareConfig:
|
|
109
|
-
skeletonDataset:
|
|
104
|
+
userConfig: F.value.skeletonConfig ?? {}
|
|
105
|
+
})), { loading: B, FINAL_DATASET: dt } = ue({
|
|
106
|
+
...ke(A),
|
|
107
|
+
FINAL_CONFIG: F,
|
|
108
|
+
prepareConfig: ht,
|
|
109
|
+
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
110
110
|
name: "_",
|
|
111
111
|
color: "#CACACA",
|
|
112
112
|
nodes: [
|
|
@@ -220,103 +220,115 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
220
220
|
}
|
|
221
221
|
]
|
|
222
222
|
}],
|
|
223
|
-
skeletonConfig:
|
|
224
|
-
defaultConfig:
|
|
225
|
-
userConfig:
|
|
223
|
+
skeletonConfig: c({
|
|
224
|
+
defaultConfig: F.value,
|
|
225
|
+
userConfig: ut.value
|
|
226
226
|
})
|
|
227
|
-
}), { userOptionsVisible:
|
|
228
|
-
function
|
|
229
|
-
let e =
|
|
230
|
-
userConfig:
|
|
231
|
-
defaultConfig:
|
|
227
|
+
}), { userOptionsVisible: ft, setUserOptionsVisibility: pt, keepUserOptionState: mt } = _e({ config: F.value }), { svgRef: V } = ve({ config: L.value.title });
|
|
228
|
+
function ht() {
|
|
229
|
+
let e = d({
|
|
230
|
+
userConfig: A.config,
|
|
231
|
+
defaultConfig: Qe
|
|
232
232
|
}), t = e.theme;
|
|
233
233
|
if (!t) return e;
|
|
234
|
-
if (
|
|
235
|
-
let n =
|
|
236
|
-
userConfig: ye[t] ||
|
|
234
|
+
if (!$e.value(e)) return et(e), e;
|
|
235
|
+
let n = d({
|
|
236
|
+
userConfig: ye[t] || A.config,
|
|
237
237
|
defaultConfig: e
|
|
238
|
-
}), r =
|
|
239
|
-
userConfig:
|
|
238
|
+
}), r = d({
|
|
239
|
+
userConfig: A.config,
|
|
240
240
|
defaultConfig: n
|
|
241
241
|
});
|
|
242
242
|
return {
|
|
243
243
|
...r,
|
|
244
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
244
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || i
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
function gt(e) {
|
|
248
|
+
let t = s(e);
|
|
249
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
250
|
+
}
|
|
251
|
+
let _t = gt(A.config);
|
|
252
|
+
O((e, t) => A.config, (e) => {
|
|
253
|
+
let t = gt(newConfig), n = t !== _t;
|
|
254
|
+
_t = t;
|
|
255
|
+
let r = ht();
|
|
256
|
+
if (!n) {
|
|
257
|
+
F.value.style.chart.tooltip = r.style.chart.tooltip, H.value.showTooltip = F.value.style.chart.tooltip.show;
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
F.value = r, ft.value = !F.value.userOptions.showOnChartHover, it(), ct.value += 1, lt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = I.value.show, H.value.showZoom = L.value.zoom.show;
|
|
249
261
|
}, { deep: !0 });
|
|
250
|
-
let
|
|
251
|
-
|
|
262
|
+
let vt = w(0), yt = () => {
|
|
263
|
+
vt.value += 1;
|
|
252
264
|
};
|
|
253
|
-
O([() =>
|
|
254
|
-
e || (await b(),
|
|
265
|
+
O([() => B.value, () => dt.value], async ([e]) => {
|
|
266
|
+
e || (await b(), U.value = Dt(), await b(), yt(), await b(), Kt({
|
|
255
267
|
x: 0,
|
|
256
268
|
y: 0,
|
|
257
269
|
width: 400,
|
|
258
270
|
height: 400
|
|
259
|
-
}),
|
|
271
|
+
}), Wt(!1));
|
|
260
272
|
}, {
|
|
261
273
|
flush: "post",
|
|
262
274
|
deep: !1
|
|
263
275
|
});
|
|
264
|
-
let { isPrinting:
|
|
265
|
-
elementId: `cluster_${
|
|
266
|
-
fileName:
|
|
267
|
-
options:
|
|
268
|
-
}),
|
|
269
|
-
showTable:
|
|
276
|
+
let { isPrinting: bt, isImaging: xt, generatePdf: St, generateImage: Ct } = le({
|
|
277
|
+
elementId: `cluster_${at.value}`,
|
|
278
|
+
fileName: L.value.title.text || "vue-ui-molecule",
|
|
279
|
+
options: F.value.userOptions.print
|
|
280
|
+
}), wt = f(() => F.value.userOptions.show && !L.value.title.text), Tt = f(() => ae(F.value.customPalette)), H = w({
|
|
281
|
+
showTable: F.value.table.show,
|
|
270
282
|
showDataLabels: !0,
|
|
271
|
-
showTooltip:
|
|
272
|
-
showZoom:
|
|
283
|
+
showTooltip: I.value.show,
|
|
284
|
+
showZoom: L.value.zoom.show
|
|
273
285
|
});
|
|
274
|
-
O(
|
|
275
|
-
|
|
276
|
-
showTable:
|
|
286
|
+
O(F, () => {
|
|
287
|
+
H.value = {
|
|
288
|
+
showTable: F.value.table.show,
|
|
277
289
|
showDataLabels: !0,
|
|
278
|
-
showTooltip:
|
|
279
|
-
showZoom:
|
|
290
|
+
showTooltip: I.value.show,
|
|
291
|
+
showZoom: L.value.zoom.show
|
|
280
292
|
};
|
|
281
293
|
}, { immediate: !0 });
|
|
282
|
-
function
|
|
283
|
-
return Array.isArray(e) && e.length > 0 && e[0].nodes ?
|
|
294
|
+
function Et(e, t = 0) {
|
|
295
|
+
return Array.isArray(e) && e.length > 0 && e[0].nodes ? Et(e[0].nodes, t + 1) : t;
|
|
284
296
|
}
|
|
285
|
-
function
|
|
286
|
-
let e =
|
|
297
|
+
function Dt() {
|
|
298
|
+
let e = Et(dt.value), t = 100, n = t;
|
|
287
299
|
for (let r = 0; r < e; r += 1) t /= 1, n += t;
|
|
288
300
|
return {
|
|
289
301
|
height: n,
|
|
290
302
|
width: n
|
|
291
303
|
};
|
|
292
304
|
}
|
|
293
|
-
let
|
|
294
|
-
function
|
|
295
|
-
x: -
|
|
296
|
-
y:
|
|
297
|
-
}, n =
|
|
305
|
+
let U = w(Dt());
|
|
306
|
+
function Ot(e, t = {
|
|
307
|
+
x: -U.value.width / 2.43,
|
|
308
|
+
y: U.value.height / 2
|
|
309
|
+
}, n = U.value.width / 1.1, r = 24, ee = 0, o = 0, s = "#BBBBBB", c = 0) {
|
|
298
310
|
if (!Array.isArray(e) || e.length === 0) return e;
|
|
299
|
-
let
|
|
311
|
+
let ne = a({
|
|
300
312
|
plot: t,
|
|
301
313
|
radius: n,
|
|
302
314
|
sides: e.length,
|
|
303
|
-
rotation:
|
|
315
|
+
rotation: ee
|
|
304
316
|
});
|
|
305
317
|
return e.forEach((e, t) => {
|
|
306
|
-
let a =
|
|
307
|
-
let t =
|
|
318
|
+
let a = ne.coordinates[t], l = e.color ? (() => {
|
|
319
|
+
let t = te(e.color);
|
|
308
320
|
return t.startsWith("#") ? t : `#${t}`;
|
|
309
|
-
})() : null,
|
|
310
|
-
|
|
321
|
+
})() : null, u;
|
|
322
|
+
l ? u = l : c === 0 ? u = s : c === 1 ? (u = Tt.value[o] || i[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [a] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(L.value.links.strokeWidth / (c + 1), r / 2), e.uid = re(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ot(e.nodes, a, n / 2.9, r / 2.2, ee + Math.PI * t / e.nodes.length, o, u, c + 1));
|
|
311
323
|
}), e;
|
|
312
324
|
}
|
|
313
|
-
function
|
|
325
|
+
function kt(e) {
|
|
314
326
|
let t = /* @__PURE__ */ new Set();
|
|
315
327
|
function n(e) {
|
|
316
328
|
e.forEach((e) => {
|
|
317
329
|
if (!e.color) return;
|
|
318
330
|
let r = e.color;
|
|
319
|
-
/^#?[0-9A-F]{6}$/i.test(r) || (r =
|
|
331
|
+
/^#?[0-9A-F]{6}$/i.test(r) || (r = te(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
|
|
320
332
|
});
|
|
321
333
|
}
|
|
322
334
|
n(e);
|
|
@@ -326,42 +338,42 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
326
338
|
r[e] = `gradient_${t}`;
|
|
327
339
|
}), r;
|
|
328
340
|
}
|
|
329
|
-
let
|
|
330
|
-
function
|
|
331
|
-
|
|
341
|
+
let At = f(() => kt(W.value)), W = f(() => Ot(s(dt.value))), G = w(null);
|
|
342
|
+
function jt(e) {
|
|
343
|
+
G.value = {
|
|
332
344
|
datapoint: e,
|
|
333
345
|
seriesIndex: -1,
|
|
334
|
-
series:
|
|
335
|
-
config:
|
|
346
|
+
series: W.value,
|
|
347
|
+
config: F.value
|
|
336
348
|
};
|
|
337
|
-
let t =
|
|
338
|
-
if (n(t) &&
|
|
349
|
+
let t = I.value.customFormat;
|
|
350
|
+
if (n(t) && l(() => t({
|
|
339
351
|
seriesIndex: -1,
|
|
340
352
|
datapoint: e,
|
|
341
|
-
series:
|
|
342
|
-
config:
|
|
343
|
-
})))
|
|
353
|
+
series: W.value,
|
|
354
|
+
config: F.value
|
|
355
|
+
}))) j.value = t({
|
|
344
356
|
seriesIndex: -1,
|
|
345
357
|
datapoint: e,
|
|
346
|
-
series:
|
|
347
|
-
config:
|
|
358
|
+
series: W.value,
|
|
359
|
+
config: F.value
|
|
348
360
|
});
|
|
349
361
|
else {
|
|
350
362
|
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 ${
|
|
363
|
+
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 ${I.value.borderColor};margin-top: 2px">${e.details}</div>`), j.value = `<div style="font-family:inherit">${t}</div>`;
|
|
352
364
|
}
|
|
353
365
|
}
|
|
354
|
-
let
|
|
355
|
-
function
|
|
356
|
-
|
|
366
|
+
let K = w(null), q = w(null), Mt = w(null);
|
|
367
|
+
function Nt(e) {
|
|
368
|
+
Mt.value = K.value, K.value = e, e ? F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
357
369
|
datapoint: e,
|
|
358
370
|
seriesIndex: -1
|
|
359
|
-
}) :
|
|
360
|
-
datapoint:
|
|
371
|
+
}) : F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
372
|
+
datapoint: Mt.value || K.value,
|
|
361
373
|
seriesIndex: -1
|
|
362
|
-
}), e ? (
|
|
374
|
+
}), e ? (ot.value = !0, jt(e), q.value = e.uid) : (ot.value = !1, j.value = "", q.value = null);
|
|
363
375
|
}
|
|
364
|
-
function
|
|
376
|
+
function Pt(e) {
|
|
365
377
|
let t = [];
|
|
366
378
|
function n(e) {
|
|
367
379
|
e.forEach((e) => {
|
|
@@ -376,13 +388,13 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
376
388
|
}
|
|
377
389
|
return n(e), t;
|
|
378
390
|
}
|
|
379
|
-
let
|
|
391
|
+
let Ft = f(() => Pt(W.value)), J = f(() => ({
|
|
380
392
|
head: [
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
393
|
+
F.value.table.translations.nodeName,
|
|
394
|
+
F.value.table.translations.details,
|
|
395
|
+
F.value.table.translations.ancestor
|
|
384
396
|
],
|
|
385
|
-
body:
|
|
397
|
+
body: Ft.value.map((e, t) => [
|
|
386
398
|
{
|
|
387
399
|
color: e.color,
|
|
388
400
|
name: e.name
|
|
@@ -392,79 +404,79 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
392
404
|
]),
|
|
393
405
|
config: {
|
|
394
406
|
th: {
|
|
395
|
-
backgroundColor:
|
|
396
|
-
color:
|
|
397
|
-
outline:
|
|
407
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
408
|
+
color: F.value.table.th.color,
|
|
409
|
+
outline: F.value.table.th.outline
|
|
398
410
|
},
|
|
399
411
|
td: {
|
|
400
|
-
backgroundColor:
|
|
401
|
-
color:
|
|
402
|
-
outline:
|
|
412
|
+
backgroundColor: F.value.table.td.backgroundColor,
|
|
413
|
+
color: F.value.table.td.color,
|
|
414
|
+
outline: F.value.table.td.outline
|
|
403
415
|
},
|
|
404
|
-
breakpoint:
|
|
416
|
+
breakpoint: F.value.table.responsiveBreakpoint
|
|
405
417
|
},
|
|
406
418
|
colNames: [
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
419
|
+
F.value.table.translations.nodeName,
|
|
420
|
+
F.value.table.translations.details,
|
|
421
|
+
F.value.table.translations.ancestor
|
|
410
422
|
]
|
|
411
423
|
}));
|
|
412
|
-
function
|
|
424
|
+
function It(e = null) {
|
|
413
425
|
b(() => {
|
|
414
|
-
let n =
|
|
426
|
+
let n = J.value.body.map((e, t) => [
|
|
415
427
|
[e[0].name],
|
|
416
428
|
[e[1]],
|
|
417
429
|
[e[2]]
|
|
418
430
|
]), i = [
|
|
419
|
-
[
|
|
420
|
-
[
|
|
421
|
-
[[...
|
|
431
|
+
[L.value.title.text],
|
|
432
|
+
[L.value.title.subtitle.text],
|
|
433
|
+
[[...J.value.head]]
|
|
422
434
|
].concat(n), a = r(i);
|
|
423
435
|
e ? e(a) : t({
|
|
424
436
|
csvContent: a,
|
|
425
|
-
title:
|
|
437
|
+
title: L.value.title.text || "vue-ui-molecule"
|
|
426
438
|
});
|
|
427
439
|
});
|
|
428
440
|
}
|
|
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
441
|
function Lt() {
|
|
440
|
-
|
|
442
|
+
return W.value;
|
|
441
443
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
+
let Y = w(!1);
|
|
445
|
+
function Rt(e) {
|
|
446
|
+
Y.value = e, st.value += 1;
|
|
444
447
|
}
|
|
445
448
|
function zt() {
|
|
446
|
-
|
|
449
|
+
H.value.showTable = !H.value.showTable;
|
|
447
450
|
}
|
|
448
|
-
let Z = w(!1);
|
|
449
451
|
function Bt() {
|
|
450
|
-
|
|
452
|
+
H.value.showDataLabels = !H.value.showDataLabels;
|
|
453
|
+
}
|
|
454
|
+
function Vt() {
|
|
455
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
451
456
|
}
|
|
452
|
-
|
|
457
|
+
function Ht() {
|
|
458
|
+
H.value.showZoom = !H.value.showZoom;
|
|
459
|
+
}
|
|
460
|
+
let X = w(!1);
|
|
461
|
+
function Z() {
|
|
462
|
+
X.value = !X.value;
|
|
463
|
+
}
|
|
464
|
+
let Ut = f(() => !X.value && H.value.showZoom), { viewBox: Q, resetZoom: Wt, isZoom: Gt, setInitialViewBox: Kt } = be(V, {
|
|
453
465
|
x: 0,
|
|
454
466
|
y: 0,
|
|
455
|
-
width: Math.max(10,
|
|
456
|
-
height: Math.max(10,
|
|
457
|
-
},
|
|
458
|
-
function
|
|
459
|
-
|
|
467
|
+
width: Math.max(10, U.value.width),
|
|
468
|
+
height: Math.max(10, U.value.height)
|
|
469
|
+
}, L.value.zoom.speed, Ut);
|
|
470
|
+
function qt(e) {
|
|
471
|
+
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
460
472
|
datapoint: e,
|
|
461
473
|
seriesIndex: -1
|
|
462
|
-
}),
|
|
474
|
+
}), tt("selectNode", e);
|
|
463
475
|
}
|
|
464
|
-
async function
|
|
465
|
-
if (!
|
|
466
|
-
let { width: t, height: n } =
|
|
467
|
-
domElement:
|
|
476
|
+
async function Jt({ scale: e = 2 } = {}) {
|
|
477
|
+
if (!M.value) return;
|
|
478
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
479
|
+
domElement: M.value,
|
|
468
480
|
base64: !0,
|
|
469
481
|
img: !0,
|
|
470
482
|
scale: e
|
|
@@ -472,105 +484,105 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
472
484
|
return {
|
|
473
485
|
imageUri: i,
|
|
474
486
|
base64: a,
|
|
475
|
-
title:
|
|
487
|
+
title: L.value.title.text,
|
|
476
488
|
width: t,
|
|
477
489
|
height: n,
|
|
478
490
|
aspectRatio: r
|
|
479
491
|
};
|
|
480
492
|
}
|
|
481
493
|
let $ = f(() => {
|
|
482
|
-
let e =
|
|
494
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
483
495
|
return {
|
|
484
|
-
component: e ?
|
|
485
|
-
title: `${
|
|
496
|
+
component: e ? Ze : Ue,
|
|
497
|
+
title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
|
|
486
498
|
props: e ? {
|
|
487
|
-
backgroundColor:
|
|
488
|
-
color:
|
|
489
|
-
headerColor:
|
|
490
|
-
headerBg:
|
|
491
|
-
isFullscreen:
|
|
492
|
-
fullscreenParent:
|
|
499
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
500
|
+
color: F.value.table.th.color,
|
|
501
|
+
headerColor: F.value.table.th.color,
|
|
502
|
+
headerBg: F.value.table.th.backgroundColor,
|
|
503
|
+
isFullscreen: Y.value,
|
|
504
|
+
fullscreenParent: M.value,
|
|
493
505
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
494
|
-
isCursorPointer:
|
|
506
|
+
isCursorPointer: z.value
|
|
495
507
|
} : {
|
|
496
508
|
hideDetails: !0,
|
|
497
509
|
config: {
|
|
498
510
|
open: t,
|
|
499
511
|
maxHeight: 1e4,
|
|
500
512
|
body: {
|
|
501
|
-
backgroundColor:
|
|
502
|
-
color:
|
|
513
|
+
backgroundColor: L.value.backgroundColor,
|
|
514
|
+
color: L.value.color
|
|
503
515
|
},
|
|
504
516
|
head: {
|
|
505
|
-
backgroundColor:
|
|
506
|
-
color:
|
|
517
|
+
backgroundColor: L.value.backgroundColor,
|
|
518
|
+
color: L.value.color
|
|
507
519
|
}
|
|
508
520
|
}
|
|
509
521
|
}
|
|
510
522
|
};
|
|
511
523
|
});
|
|
512
|
-
O(() =>
|
|
513
|
-
|
|
524
|
+
O(() => H.value.showTable, (e) => {
|
|
525
|
+
F.value.table.show || (e && F.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
514
526
|
});
|
|
515
|
-
function
|
|
516
|
-
|
|
527
|
+
function Yt() {
|
|
528
|
+
H.value.showTable = !1, P.value && P.value.setTableIconState(!1);
|
|
517
529
|
}
|
|
518
|
-
let
|
|
519
|
-
svg:
|
|
520
|
-
title:
|
|
530
|
+
let Xt = f(() => L.value.backgroundColor), Zt = f(() => L.value.title), { isCallbackImaging: Qt, isCallbackSvg: $t, generateSvg: en, onGenerateImage: tn } = pe({
|
|
531
|
+
svg: V,
|
|
532
|
+
title: Zt,
|
|
521
533
|
legend: null,
|
|
522
534
|
legendItems: null,
|
|
523
|
-
backgroundColor:
|
|
524
|
-
getSvgCallback: () =>
|
|
525
|
-
generateImage:
|
|
535
|
+
backgroundColor: Xt,
|
|
536
|
+
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
537
|
+
generateImage: Ct
|
|
526
538
|
});
|
|
527
|
-
async function
|
|
528
|
-
if (
|
|
529
|
-
config:
|
|
530
|
-
dataset:
|
|
531
|
-
}), !
|
|
539
|
+
async function nn() {
|
|
540
|
+
if (tt("copyAlt", {
|
|
541
|
+
config: F.value,
|
|
542
|
+
dataset: W.value
|
|
543
|
+
}), !F.value.userOptions.callbacks.altCopy) {
|
|
532
544
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
533
545
|
return;
|
|
534
546
|
}
|
|
535
|
-
await Promise.resolve(
|
|
536
|
-
config:
|
|
537
|
-
dataset:
|
|
547
|
+
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
548
|
+
config: F.value,
|
|
549
|
+
dataset: W.value
|
|
538
550
|
}));
|
|
539
551
|
}
|
|
540
|
-
let
|
|
552
|
+
let rn = f(() => L.value.color);
|
|
541
553
|
return he({
|
|
542
|
-
getData:
|
|
543
|
-
getImage:
|
|
544
|
-
generatePdf:
|
|
545
|
-
generateCsv:
|
|
546
|
-
generateImage:
|
|
547
|
-
generateSvg:
|
|
548
|
-
toggleTable:
|
|
549
|
-
toggleLabels:
|
|
550
|
-
toggleTooltip:
|
|
551
|
-
toggleAnnotator:
|
|
552
|
-
toggleFullscreen:
|
|
553
|
-
toggleZoom:
|
|
554
|
-
copyAlt:
|
|
554
|
+
getData: Lt,
|
|
555
|
+
getImage: Jt,
|
|
556
|
+
generatePdf: St,
|
|
557
|
+
generateCsv: It,
|
|
558
|
+
generateImage: Ct,
|
|
559
|
+
generateSvg: en,
|
|
560
|
+
toggleTable: zt,
|
|
561
|
+
toggleLabels: Bt,
|
|
562
|
+
toggleTooltip: Vt,
|
|
563
|
+
toggleAnnotator: Z,
|
|
564
|
+
toggleFullscreen: Rt,
|
|
565
|
+
toggleZoom: Ht,
|
|
566
|
+
copyAlt: nn
|
|
555
567
|
}), (e, t) => (C(), h("div", {
|
|
556
568
|
ref_key: "moleculeChart",
|
|
557
|
-
ref:
|
|
558
|
-
class: Te(`vue-data-ui-component vue-ui-molecule ${
|
|
559
|
-
style: S(`font-family:${
|
|
560
|
-
id: `cluster_${
|
|
569
|
+
ref: M,
|
|
570
|
+
class: Te(`vue-data-ui-component vue-ui-molecule ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
571
|
+
style: S(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor}`),
|
|
572
|
+
id: `cluster_${at.value}`,
|
|
561
573
|
onMouseleave: t[2] ||= (e) => {
|
|
562
|
-
|
|
574
|
+
K.value = null, q.value = null, D(pt)(!1);
|
|
563
575
|
},
|
|
564
|
-
onMouseenter: t[3] ||= () => D(
|
|
576
|
+
onMouseenter: t[3] ||= () => D(pt)(!0)
|
|
565
577
|
}, [
|
|
566
|
-
|
|
578
|
+
R.value.buttons.annotator && D(V) ? (C(), p(D(Ge), {
|
|
567
579
|
key: 0,
|
|
568
|
-
svgRef: D(
|
|
569
|
-
backgroundColor:
|
|
570
|
-
color:
|
|
571
|
-
active:
|
|
572
|
-
isCursorPointer:
|
|
573
|
-
onClose:
|
|
580
|
+
svgRef: D(V),
|
|
581
|
+
backgroundColor: L.value.backgroundColor,
|
|
582
|
+
color: L.value.color,
|
|
583
|
+
active: X.value,
|
|
584
|
+
isCursorPointer: z.value,
|
|
585
|
+
onClose: Z
|
|
574
586
|
}, {
|
|
575
587
|
"annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
576
588
|
"annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
@@ -586,62 +598,62 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
586
598
|
"active",
|
|
587
599
|
"isCursorPointer"
|
|
588
600
|
])) : m("", !0),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
key: `title_${
|
|
601
|
+
wt.value ? (C(), h("div", Ne, null, 512)) : m("", !0),
|
|
602
|
+
L.value.title.text ? (C(), h("div", Pe, [(C(), p(D(Be), {
|
|
603
|
+
key: `title_${ct.value}`,
|
|
592
604
|
config: {
|
|
593
605
|
title: {
|
|
594
606
|
cy: "molecule-div-title",
|
|
595
|
-
...
|
|
607
|
+
...L.value.title
|
|
596
608
|
},
|
|
597
609
|
subtitle: {
|
|
598
610
|
cy: "molecule-div-subtitle",
|
|
599
|
-
...
|
|
611
|
+
...L.value.title.subtitle
|
|
600
612
|
}
|
|
601
613
|
}
|
|
602
614
|
}, null, 8, ["config"]))])) : m("", !0),
|
|
603
|
-
|
|
615
|
+
R.value.show && nt.value && (D(mt) || D(ft)) ? (C(), p(D(Ke), {
|
|
604
616
|
ref_key: "userOptionsRef",
|
|
605
|
-
ref:
|
|
606
|
-
key: `user_options_${
|
|
607
|
-
backgroundColor:
|
|
608
|
-
color:
|
|
609
|
-
isPrinting: D(
|
|
610
|
-
isImaging: D(
|
|
611
|
-
uid:
|
|
612
|
-
hasTooltip:
|
|
613
|
-
hasPdf:
|
|
614
|
-
hasXls:
|
|
615
|
-
hasImg:
|
|
616
|
-
hasSvg:
|
|
617
|
-
hasTable:
|
|
618
|
-
hasLabel:
|
|
619
|
-
hasFullscreen:
|
|
620
|
-
hasAltCopy:
|
|
621
|
-
isTooltip:
|
|
622
|
-
titles: { ...
|
|
623
|
-
chartElement:
|
|
624
|
-
position:
|
|
625
|
-
hasAnnotator:
|
|
626
|
-
isAnnotation:
|
|
627
|
-
callbacks:
|
|
628
|
-
printScale:
|
|
629
|
-
tableDialog:
|
|
630
|
-
hasZoom:
|
|
631
|
-
isZoom:
|
|
632
|
-
isCursorPointer:
|
|
633
|
-
onToggleFullscreen:
|
|
634
|
-
onGeneratePdf: D(
|
|
635
|
-
onGenerateCsv:
|
|
636
|
-
onGenerateImage: D(
|
|
637
|
-
onGenerateSvg: D(
|
|
638
|
-
onToggleTable:
|
|
639
|
-
onToggleLabels:
|
|
640
|
-
onToggleTooltip:
|
|
641
|
-
onToggleAnnotator:
|
|
642
|
-
onToggleZoom:
|
|
643
|
-
onCopyAlt:
|
|
644
|
-
style: S({ visibility: D(
|
|
617
|
+
ref: P,
|
|
618
|
+
key: `user_options_${st.value}`,
|
|
619
|
+
backgroundColor: L.value.backgroundColor,
|
|
620
|
+
color: L.value.color,
|
|
621
|
+
isPrinting: D(bt),
|
|
622
|
+
isImaging: D(xt),
|
|
623
|
+
uid: at.value,
|
|
624
|
+
hasTooltip: R.value.buttons.tooltip && I.value.show,
|
|
625
|
+
hasPdf: R.value.buttons.pdf,
|
|
626
|
+
hasXls: R.value.buttons.csv,
|
|
627
|
+
hasImg: R.value.buttons.img,
|
|
628
|
+
hasSvg: R.value.buttons.svg,
|
|
629
|
+
hasTable: R.value.buttons.table,
|
|
630
|
+
hasLabel: R.value.buttons.labels,
|
|
631
|
+
hasFullscreen: R.value.buttons.fullscreen,
|
|
632
|
+
hasAltCopy: R.value.buttons.altCopy,
|
|
633
|
+
isTooltip: H.value.showTooltip,
|
|
634
|
+
titles: { ...R.value.buttonTitles },
|
|
635
|
+
chartElement: M.value,
|
|
636
|
+
position: R.value.position,
|
|
637
|
+
hasAnnotator: R.value.buttons.annotator,
|
|
638
|
+
isAnnotation: X.value,
|
|
639
|
+
callbacks: R.value.callbacks,
|
|
640
|
+
printScale: R.value.print.scale,
|
|
641
|
+
tableDialog: F.value.table.useDialog,
|
|
642
|
+
hasZoom: R.value.buttons.zoom,
|
|
643
|
+
isZoom: H.value.showZoom,
|
|
644
|
+
isCursorPointer: z.value,
|
|
645
|
+
onToggleFullscreen: Rt,
|
|
646
|
+
onGeneratePdf: D(St),
|
|
647
|
+
onGenerateCsv: It,
|
|
648
|
+
onGenerateImage: D(tn),
|
|
649
|
+
onGenerateSvg: D(en),
|
|
650
|
+
onToggleTable: zt,
|
|
651
|
+
onToggleLabels: Bt,
|
|
652
|
+
onToggleTooltip: Vt,
|
|
653
|
+
onToggleAnnotator: Z,
|
|
654
|
+
onToggleZoom: Ht,
|
|
655
|
+
onCopyAlt: nn,
|
|
656
|
+
style: S({ visibility: D(mt) ? D(ft) ? "visible" : "hidden" : "visible" })
|
|
645
657
|
}, Se({ _: 2 }, [
|
|
646
658
|
e.$slots.menuIcon ? {
|
|
647
659
|
name: "menuIcon",
|
|
@@ -728,26 +740,26 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
728
740
|
]), 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
741
|
(C(), h("svg", {
|
|
730
742
|
ref_key: "svgRef",
|
|
731
|
-
ref:
|
|
732
|
-
key: `svg_${
|
|
733
|
-
xmlns: D(
|
|
743
|
+
ref: V,
|
|
744
|
+
key: `svg_${vt.value}`,
|
|
745
|
+
xmlns: D(ie),
|
|
734
746
|
viewBox: `${D(Q).x} ${D(Q).y} ${D(Q).width} ${D(Q).height}`,
|
|
735
747
|
class: Te({
|
|
736
|
-
"vue-data-ui-fullscreen--on":
|
|
737
|
-
"vue-data-ui-fulscreen--off": !
|
|
748
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
749
|
+
"vue-data-ui-fulscreen--off": !Y.value
|
|
738
750
|
}),
|
|
739
|
-
style: S(`overflow: hidden; background:transparent;color:${
|
|
751
|
+
style: S(`overflow: hidden; background:transparent;color:${L.value.color}`)
|
|
740
752
|
}, [
|
|
741
|
-
_(D(
|
|
753
|
+
_(D(qe)),
|
|
742
754
|
e.$slots["chart-background"] ? (C(), h("foreignObject", {
|
|
743
755
|
key: 0,
|
|
744
756
|
x: 0,
|
|
745
757
|
y: 0,
|
|
746
|
-
width:
|
|
747
|
-
height:
|
|
758
|
+
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
759
|
+
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
748
760
|
style: { pointerEvents: "none" }
|
|
749
761
|
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : m("", !0),
|
|
750
|
-
g("defs", null, [(C(!0), h(xe, null, De(Object.keys(
|
|
762
|
+
g("defs", null, [(C(!0), h(xe, null, De(Object.keys(At.value), (e, t) => (C(), p(ge, {
|
|
751
763
|
t: "radial",
|
|
752
764
|
id: `gradient_${e}`,
|
|
753
765
|
key: `gradient_${e}_${t}`,
|
|
@@ -758,7 +770,7 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
758
770
|
fy: "50%",
|
|
759
771
|
stops: [[
|
|
760
772
|
"0%",
|
|
761
|
-
D(
|
|
773
|
+
D(ne)(e, .5),
|
|
762
774
|
1
|
|
763
775
|
], [
|
|
764
776
|
"100%",
|
|
@@ -766,24 +778,24 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
766
778
|
1
|
|
767
779
|
]]
|
|
768
780
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
769
|
-
_(D(
|
|
770
|
-
dataset:
|
|
771
|
-
color:
|
|
772
|
-
backgroundColor:
|
|
773
|
-
useChildColor:
|
|
781
|
+
_(D(Je), {
|
|
782
|
+
dataset: W.value,
|
|
783
|
+
color: L.value.links.stroke,
|
|
784
|
+
backgroundColor: L.value.backgroundColor,
|
|
785
|
+
useChildColor: L.value.links.useChildColor
|
|
774
786
|
}, null, 8, [
|
|
775
787
|
"dataset",
|
|
776
788
|
"color",
|
|
777
789
|
"backgroundColor",
|
|
778
790
|
"useChildColor"
|
|
779
791
|
]),
|
|
780
|
-
_(D(
|
|
781
|
-
dataset:
|
|
782
|
-
hoveredUid:
|
|
783
|
-
stroke:
|
|
784
|
-
strokeHovered:
|
|
785
|
-
onClick:
|
|
786
|
-
onHover:
|
|
792
|
+
_(D(Xe), {
|
|
793
|
+
dataset: W.value,
|
|
794
|
+
hoveredUid: q.value,
|
|
795
|
+
stroke: L.value.nodes.stroke,
|
|
796
|
+
strokeHovered: L.value.nodes.strokeHovered,
|
|
797
|
+
onClick: qt,
|
|
798
|
+
onHover: Nt
|
|
787
799
|
}, {
|
|
788
800
|
node: k(({ node: t }) => [T(e.$slots, "node", x(y({ node: t })), void 0, !0)]),
|
|
789
801
|
"node-svg": k(({ nodeSvg: t }) => [T(e.$slots, "node-svg", x(y({ nodeSvg: t })), void 0, !0)]),
|
|
@@ -794,64 +806,64 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
794
806
|
"stroke",
|
|
795
807
|
"strokeHovered"
|
|
796
808
|
]),
|
|
797
|
-
|
|
809
|
+
H.value.showDataLabels && !D(B) ? (C(), p(D(Ye), {
|
|
798
810
|
key: 1,
|
|
799
|
-
dataset:
|
|
800
|
-
color:
|
|
801
|
-
hoveredUid:
|
|
811
|
+
dataset: W.value,
|
|
812
|
+
color: L.value.color,
|
|
813
|
+
hoveredUid: q.value
|
|
802
814
|
}, null, 8, [
|
|
803
815
|
"dataset",
|
|
804
816
|
"color",
|
|
805
817
|
"hoveredUid"
|
|
806
818
|
])) : m("", !0),
|
|
807
819
|
T(e.$slots, "svg", { svg: {
|
|
808
|
-
...
|
|
820
|
+
...U.value,
|
|
809
821
|
drawingArea: { ...D(Q) },
|
|
810
|
-
isPrintingImg: D(
|
|
811
|
-
isPrintingSvg: D(
|
|
822
|
+
isPrintingImg: D(bt) || D(xt) || D(Qt),
|
|
823
|
+
isPrintingSvg: D($t)
|
|
812
824
|
} }, void 0, !0)
|
|
813
825
|
], 14, Fe)),
|
|
814
|
-
e.$slots.watermark ? (C(), h("div", Le, [T(e.$slots, "watermark", x(y({ isPrinting: D(
|
|
815
|
-
D(
|
|
826
|
+
e.$slots.watermark ? (C(), h("div", Le, [T(e.$slots, "watermark", x(y({ isPrinting: D(bt) || D(xt) || D(Qt) || D($t) })), void 0, !0)])) : m("", !0),
|
|
827
|
+
D(Gt) ? (C(), h("div", Re, [T(e.$slots, "reset-action", { reset: D(Wt) }, () => [g("button", {
|
|
816
828
|
"data-cy-reset": "",
|
|
817
829
|
tabindex: "0",
|
|
818
830
|
role: "button",
|
|
819
831
|
class: "vue-data-ui-refresh-button",
|
|
820
832
|
style: S({
|
|
821
|
-
background:
|
|
822
|
-
cursor:
|
|
833
|
+
background: L.value.backgroundColor,
|
|
834
|
+
cursor: z.value ? "pointer" : "default"
|
|
823
835
|
}),
|
|
824
|
-
onClick: t[0] ||= (e) => D(
|
|
825
|
-
}, [_(D(
|
|
836
|
+
onClick: t[0] ||= (e) => D(Wt)(!0)
|
|
837
|
+
}, [_(D(He), {
|
|
826
838
|
name: "refresh",
|
|
827
|
-
stroke:
|
|
839
|
+
stroke: L.value.color
|
|
828
840
|
}, null, 8, ["stroke"])], 4)], !0)])) : m("", !0),
|
|
829
841
|
e.$slots.source ? (C(), h("div", ze, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
830
|
-
_(D(
|
|
831
|
-
teleportTo:
|
|
832
|
-
show:
|
|
833
|
-
backgroundColor:
|
|
834
|
-
color:
|
|
835
|
-
borderRadius:
|
|
836
|
-
borderColor:
|
|
837
|
-
borderWidth:
|
|
838
|
-
fontSize:
|
|
839
|
-
backgroundOpacity:
|
|
840
|
-
position:
|
|
841
|
-
offsetX:
|
|
842
|
-
offsetY:
|
|
843
|
-
parent:
|
|
844
|
-
content:
|
|
845
|
-
isFullscreen:
|
|
846
|
-
isCustom:
|
|
847
|
-
smooth:
|
|
848
|
-
backdropFilter:
|
|
849
|
-
smoothForce:
|
|
850
|
-
smoothSnapThreshold:
|
|
842
|
+
_(D(Ve), {
|
|
843
|
+
teleportTo: I.value.teleportTo,
|
|
844
|
+
show: H.value.showTooltip && ot.value,
|
|
845
|
+
backgroundColor: I.value.backgroundColor,
|
|
846
|
+
color: I.value.color,
|
|
847
|
+
borderRadius: I.value.borderRadius,
|
|
848
|
+
borderColor: I.value.borderColor,
|
|
849
|
+
borderWidth: I.value.borderWidth,
|
|
850
|
+
fontSize: I.value.fontSize,
|
|
851
|
+
backgroundOpacity: I.value.backgroundOpacity,
|
|
852
|
+
position: I.value.position,
|
|
853
|
+
offsetX: I.value.offsetX,
|
|
854
|
+
offsetY: I.value.offsetY,
|
|
855
|
+
parent: M.value,
|
|
856
|
+
content: j.value,
|
|
857
|
+
isFullscreen: Y.value,
|
|
858
|
+
isCustom: I.value.customFormat && typeof I.value.customFormat == "function",
|
|
859
|
+
smooth: I.value.smooth,
|
|
860
|
+
backdropFilter: I.value.backdropFilter,
|
|
861
|
+
smoothForce: I.value.smoothForce,
|
|
862
|
+
smoothSnapThreshold: I.value.smoothSnapThreshold
|
|
851
863
|
}, {
|
|
852
|
-
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(y({ ...
|
|
853
|
-
tooltip: k(() => [T(e.$slots, "tooltip", x(y({ ...
|
|
854
|
-
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(y({ ...
|
|
864
|
+
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(y({ ...G.value })), void 0, !0)]),
|
|
865
|
+
tooltip: k(() => [T(e.$slots, "tooltip", x(y({ ...G.value })), void 0, !0)]),
|
|
866
|
+
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(y({ ...G.value })), void 0, !0)]),
|
|
855
867
|
_: 3
|
|
856
868
|
}, 8, [
|
|
857
869
|
"teleportTo",
|
|
@@ -875,21 +887,21 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
875
887
|
"smoothForce",
|
|
876
888
|
"smoothSnapThreshold"
|
|
877
889
|
]),
|
|
878
|
-
|
|
890
|
+
nt.value && R.value.buttons.table ? (C(), p(Oe($.value.component), we({ key: 7 }, $.value.props, {
|
|
879
891
|
ref_key: "tableUnit",
|
|
880
|
-
ref:
|
|
881
|
-
onClose:
|
|
892
|
+
ref: N,
|
|
893
|
+
onClose: Yt
|
|
882
894
|
}), Se({
|
|
883
|
-
content: k(() => [(C(), p(D(
|
|
884
|
-
key: `table_${
|
|
885
|
-
colNames:
|
|
886
|
-
head:
|
|
887
|
-
body:
|
|
888
|
-
config:
|
|
889
|
-
title:
|
|
890
|
-
withCloseButton: !
|
|
891
|
-
isCursorPointer:
|
|
892
|
-
onClose:
|
|
895
|
+
content: k(() => [(C(), p(D(We), {
|
|
896
|
+
key: `table_${lt.value}`,
|
|
897
|
+
colNames: J.value.colNames,
|
|
898
|
+
head: J.value.head,
|
|
899
|
+
body: J.value.body,
|
|
900
|
+
config: J.value.config,
|
|
901
|
+
title: F.value.table.useDialog ? "" : $.value.title,
|
|
902
|
+
withCloseButton: !F.value.table.useDialog,
|
|
903
|
+
isCursorPointer: z.value,
|
|
904
|
+
onClose: Yt
|
|
893
905
|
}, {
|
|
894
906
|
th: k(({ th: e }) => [g("div", null, E(e), 1)]),
|
|
895
907
|
td: k(({ td: e }) => [Ce(E(e.name || e), 1)]),
|
|
@@ -904,26 +916,26 @@ var je = /* @__PURE__ */ e({ default: () => A }), Me = ["id"], Ne = {
|
|
|
904
916
|
"isCursorPointer"
|
|
905
917
|
]))]),
|
|
906
918
|
_: 2
|
|
907
|
-
}, [
|
|
919
|
+
}, [F.value.table.useDialog ? {
|
|
908
920
|
name: "title",
|
|
909
921
|
fn: k(() => [Ce(E($.value.title), 1)]),
|
|
910
922
|
key: "0"
|
|
911
|
-
} : void 0,
|
|
923
|
+
} : void 0, F.value.table.useDialog ? {
|
|
912
924
|
name: "actions",
|
|
913
925
|
fn: k(() => [g("button", {
|
|
914
926
|
tabindex: "0",
|
|
915
927
|
class: "vue-ui-user-options-button",
|
|
916
|
-
onClick: t[1] ||= (e) =>
|
|
917
|
-
style: S({ cursor:
|
|
918
|
-
}, [_(D(
|
|
928
|
+
onClick: t[1] ||= (e) => It(R.value.callbacks.csv),
|
|
929
|
+
style: S({ cursor: z.value ? "pointer" : "default" })
|
|
930
|
+
}, [_(D(He), {
|
|
919
931
|
name: "fileCsv",
|
|
920
932
|
stroke: $.value.props.color
|
|
921
933
|
}, null, 8, ["stroke"])], 4)]),
|
|
922
934
|
key: "1"
|
|
923
935
|
} : void 0]), 1040)) : m("", !0),
|
|
924
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
936
|
+
T(e.$slots, "skeleton", {}, () => [D(B) ? (C(), p(de, { key: 0 })) : m("", !0)], !0)
|
|
925
937
|
], 46, Me));
|
|
926
938
|
}
|
|
927
|
-
}, [["__scopeId", "data-v-
|
|
939
|
+
}, [["__scopeId", "data-v-96e92816"]]);
|
|
928
940
|
//#endregion
|
|
929
|
-
export { je as n,
|
|
941
|
+
export { je as n, Be as t };
|