vue-data-ui 3.7.9 → 3.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{BaseDraggableDialog-B8FpOTTF.js → BaseDraggableDialog-BDY-Jn9S.js} +1 -1
- package/dist/{BaseIcon-5acZpJev.js → BaseIcon-Dl4VBlHV.js} +6 -2
- package/dist/{ColorPicker-BojTf32H.js → ColorPicker-BrMbLQds.js} +1 -1
- package/dist/{DataTable-ScRMrNB6.js → DataTable-Ho3Bf5oq.js} +1 -1
- package/dist/{NonSvgPenAndPaper-Bajn2Y5l.js → NonSvgPenAndPaper-MX5IsudW.js} +2 -2
- package/dist/{PackageVersion-D2zuSCLX.js → PackageVersion-BTPIkPFM.js} +1 -1
- package/dist/{PenAndPaper-Bfbd6BHc.js → PenAndPaper-kymjF6_b.js} +2 -2
- package/dist/{RecursiveCircles-BcLb1aRS.js → RecursiveCircles-CM4bn2Vg.js} +33 -30
- package/dist/RecursiveLabels-DxmctYbA.js +55 -0
- package/dist/{RecursiveLinks-00zGWPf9.js → RecursiveLinks-Da489v6n.js} +31 -19
- package/dist/{Slicer-DX5CaF9H.js → Slicer-DScoMPmj.js} +1 -1
- package/dist/{SlicerPreview-CeJ3ecDs.js → SlicerPreview-B1QUTxTZ.js} +1 -1
- package/dist/{Title-CmZh1pjz.js → Title-BwhstTFA.js} +1 -1
- package/dist/{UserOptions-D-GV6kfB.js → UserOptions-DgscxIaa.js} +194 -151
- 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-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-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-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +11 -1
- package/dist/{useNestedProp-xVOMUtFl.js → useNestedProp-BjZ1Lg9E.js} +179 -172
- package/dist/usePanZoom-DZtyJi5q.js +127 -0
- package/dist/{vue-data-ui-DZK-7Yx5.js → vue-data-ui-CP-yTXfr.js} +114 -111
- package/dist/vue-data-ui.js +67 -67
- package/dist/{vue-ui-3d-bar-DO8GurA_.js → vue-ui-3d-bar-BgYBmllX.js} +3 -3
- package/dist/{vue-ui-accordion-Cxz5Cxwj.js → vue-ui-accordion-BXTVRRX7.js} +2 -2
- package/dist/{vue-ui-age-pyramid-CK7PpmzU.js → vue-ui-age-pyramid-FTpPv1-m.js} +3 -3
- package/dist/{vue-ui-annotator-DyoPgq71.js → vue-ui-annotator-CmCG1U2b.js} +4 -4
- package/dist/{vue-ui-bullet-DQ8RujAn.js → vue-ui-bullet-CumDaUkg.js} +3 -3
- package/dist/{vue-ui-candlestick-DGFySyJf.js → vue-ui-candlestick-Dy1nA73c.js} +4 -4
- package/dist/{vue-ui-carousel-table-JxoqQnNA.js → vue-ui-carousel-table-DPDyjz_Y.js} +2 -2
- package/dist/{vue-ui-chestnut-D9jJm6rb.js → vue-ui-chestnut-DjoZUQ_f.js} +2 -2
- package/dist/{vue-ui-chord-DPN3Fwm7.js → vue-ui-chord-BWi8pIFv.js} +3 -3
- package/dist/{vue-ui-circle-pack-BozsdDqp.js → vue-ui-circle-pack-CwPkez44.js} +3 -3
- package/dist/{vue-ui-cursor-BUgTz119.js → vue-ui-cursor-4Ldkkd2T.js} +1 -1
- package/dist/{vue-ui-dashboard-ntPdgRZR.js → vue-ui-dashboard-qRVGPD_v.js} +66 -66
- package/dist/{vue-ui-digits-BGIYOfXp.js → vue-ui-digits-uszbkbEK.js} +1 -1
- package/dist/{vue-ui-donut-CwcL0B7h.js → vue-ui-donut-CPXX0FSV.js} +4 -4
- package/dist/{vue-ui-donut-evolution-B-5PeTiF.js → vue-ui-donut-evolution-G8AGdNA0.js} +4 -4
- package/dist/{vue-ui-dumbbell-BpRrh_Li.js → vue-ui-dumbbell-BOJbuZkm.js} +3 -3
- package/dist/{vue-ui-flow-CVAqaYNz.js → vue-ui-flow-CiPerJXK.js} +3 -3
- package/dist/{vue-ui-funnel-AUONOn8i.js → vue-ui-funnel-hrWmFaMt.js} +3 -3
- package/dist/{vue-ui-galaxy-CilgiQ8O.js → vue-ui-galaxy-OZkQxG_b.js} +3 -3
- package/dist/{vue-ui-gauge-CwfYnW0H.js → vue-ui-gauge-B8QQH9DO.js} +3 -3
- package/dist/{vue-ui-gizmo-ylawNFfS.js → vue-ui-gizmo-UgzqsNv3.js} +2 -2
- package/dist/{vue-ui-heatmap-Ds7paMOa.js → vue-ui-heatmap-C98MtcKi.js} +4 -4
- package/dist/{vue-ui-history-plot-Bg1xXaPb.js → vue-ui-history-plot-I2uOmeXc.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-D4fJhwhe.js → vue-ui-horizontal-bar-DrauRY8J.js} +8 -8
- package/dist/{vue-ui-kpi-CdTb340S.js → vue-ui-kpi-Bkxvv0Re.js} +2 -2
- package/dist/{vue-ui-mini-loader-AdFMCD9m.js → vue-ui-mini-loader-oYhRTSA7.js} +1 -1
- package/dist/{vue-ui-molecule-BtdwWTBN.js → vue-ui-molecule-qoA-oi2j.js} +263 -247
- package/dist/{vue-ui-mood-radar-BuAl5l8_.js → vue-ui-mood-radar-DQULF8Nx.js} +3 -3
- package/dist/{vue-ui-nested-donuts-B_4SY6Fv.js → vue-ui-nested-donuts-BcTOOXwM.js} +3 -3
- package/dist/{vue-ui-onion-BPDXH_KT.js → vue-ui-onion-BH0dcycx.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-CvJWNuGi.js → vue-ui-parallel-coordinate-plot-B5Wz6izN.js} +5 -5
- package/dist/{vue-ui-quadrant-CsNUMCAf.js → vue-ui-quadrant-D7Bx8ZhG.js} +3 -3
- package/dist/{vue-ui-quick-chart-BVHExcyO.js → vue-ui-quick-chart-BLD1S_DA.js} +3 -3
- package/dist/{vue-ui-radar-JA9GM1hs.js → vue-ui-radar-C6URuNkO.js} +3 -3
- package/dist/{vue-ui-rating-LYeiyamN.js → vue-ui-rating-BALFx0aJ.js} +1 -1
- package/dist/{vue-ui-relation-circle-et8nSv3K.js → vue-ui-relation-circle-CTuxeQGv.js} +3 -3
- package/dist/{vue-ui-ridgeline-D6L0QodO.js → vue-ui-ridgeline-DPwJniHl.js} +3 -3
- package/dist/{vue-ui-rings-C-NPPZN9.js → vue-ui-rings-CV8WVGDf.js} +3 -3
- package/dist/{vue-ui-scatter-HIueYGgk.js → vue-ui-scatter-AB5CJST5.js} +3 -3
- package/dist/{vue-ui-skeleton-CDvWjjvT.js → vue-ui-skeleton-CG-kTHxc.js} +2 -2
- package/dist/{vue-ui-smiley-DI2YHo7_.js → vue-ui-smiley-DABDSgAF.js} +1 -1
- package/dist/{vue-ui-spark-trend-BSOVrCEk.js → vue-ui-spark-trend-6DEoAhz2.js} +2 -2
- package/dist/{vue-ui-sparkbar-DaprJTqM.js → vue-ui-sparkbar-Bqje9P11.js} +2 -2
- package/dist/{vue-ui-sparkgauge-eSRxebIu.js → vue-ui-sparkgauge-DK2HYPG8.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DRx-JoYq.js → vue-ui-sparkhistogram-Db_xO32F.js} +2 -2
- package/dist/{vue-ui-sparkline-BVe4LWkU.js → vue-ui-sparkline-IGFr7ojq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-DDGQ9uMY.js → vue-ui-sparkstackbar-BYTe-W9l.js} +2 -2
- package/dist/{vue-ui-stackbar-iP02IXUA.js → vue-ui-stackbar-DHARDfHR.js} +4 -4
- package/dist/{vue-ui-stackline-B2mdBy6-.js → vue-ui-stackline--ct2hMXb.js} +4 -4
- package/dist/{vue-ui-strip-plot-B_r0DhOo.js → vue-ui-strip-plot-BhUAax7p.js} +3 -3
- package/dist/{vue-ui-table-Bh4ymroj.js → vue-ui-table-C01JSJY_.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CWPVPHU5.js → vue-ui-table-heatmap-BHqtF71-.js} +2 -2
- package/dist/{vue-ui-table-sparkline-CnZgAbZi.js → vue-ui-table-sparkline-BComiXTb.js} +2 -2
- package/dist/{vue-ui-thermometer-EYtAEuYR.js → vue-ui-thermometer-DdGx_SCS.js} +3 -3
- package/dist/{vue-ui-timer-N9Sh6YWG.js → vue-ui-timer-BoVpVQl2.js} +4 -4
- package/dist/{vue-ui-tiremarks-CR8nCXfb.js → vue-ui-tiremarks-CPBV1tbk.js} +3 -3
- package/dist/{vue-ui-treemap-ubsPya59.js → vue-ui-treemap-C94wp5-s.js} +4 -4
- package/dist/{vue-ui-waffle-Bxu6ZXFr.js → vue-ui-waffle-DUSfyAav.js} +3 -3
- package/dist/{vue-ui-wheel-Bmy5D-bu.js → vue-ui-wheel-BzPZhMGj.js} +3 -3
- package/dist/{vue-ui-word-cloud-DXW_2Hj8.js → vue-ui-word-cloud-BTPT8St3.js} +351 -334
- package/dist/{vue-ui-world-B2H2E1l2.js → vue-ui-world-VSCQYYn5.js} +2 -2
- package/dist/{vue-ui-xy-canvas-VnX4al_h.js → vue-ui-xy-canvas-3x-UDcCu.js} +6 -6
- package/dist/{vue-ui-xy-CS1Gu1gs.js → vue-ui-xy-kwHl6eC3.js} +5 -5
- package/package.json +1 -1
- package/dist/RecursiveLabels-Bgcv0pzu.js +0 -50
- package/dist/usePanZoom-BVca3eMk.js +0 -122
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { useCssVars as Do, defineAsyncComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as Yo, a as oe } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { useCssVars as Do, defineAsyncComponent as p, computed as C, onMounted as So, ref as c, toRefs as Eo, watch as U, nextTick as z, createElementBlock as A, openBlock as v, unref as a, normalizeStyle as H, normalizeClass as De, createBlock as T, createCommentVNode as y, createVNode as D, withCtx as r, renderSlot as i, normalizeProps as f, guardReactiveProps as h, createSlots as Se, createElementVNode as S, Fragment as Bo, renderList as Po, resolveDynamicComponent as Io, mergeProps as No, createTextVNode as Ee, toDisplayString as Be } from "vue";
|
|
2
|
+
import { o as Lo, g as Zo, c as Pe, t as Ro, i as Uo, p as Ie, j as zo, ab as Ho, X as Mo, n as xo, e as Vo, l as Ne, u as Go, q as jo, x as Wo, R as Xo } from "./lib-DUaaQGCv.js";
|
|
3
|
+
import { u as Yo, a as oe } from "./useNestedProp-BjZ1Lg9E.js";
|
|
4
|
+
import { u as qo, B as Jo } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Ko } from "./usePrinter-BdVu83IN.js";
|
|
6
|
+
import { u as Qo } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as et } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
|
+
import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import lt from "./img-BYzbY8TZ.js";
|
|
11
|
+
import { u as at } from "./usePanZoom-DZtyJi5q.js";
|
|
12
|
+
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nodes: { stroke: "#4A4A4A", strokeHovered: "#CCCCCC" }, links: { stroke: "#4A4A4A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Ze = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", nodes: { stroke: "#333333", strokeHovered: "#FFFFFF" }, links: { stroke: "#333333" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Re = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", nodes: { stroke: "#333333", strokeHovered: "#FFF8E1" }, links: { stroke: "#333333" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Ue = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", nodes: { stroke: "#1A1A1A", strokeHovered: "#00FF00" }, links: { stroke: "#333333" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, ze = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", nodes: { stroke: "#fbfafa", strokeHovered: "#5E5E5E" }, links: { stroke: "#e8ede1" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, He = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", nodes: { stroke: "#61747E", strokeHovered: "#404C4D" }, links: { stroke: "#BBCBC7" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Me = {
|
|
14
14
|
default: {},
|
|
15
|
-
dark:
|
|
16
|
-
celebration:
|
|
15
|
+
dark: Le,
|
|
16
|
+
celebration: Ze,
|
|
17
17
|
celebrationNight: Re,
|
|
18
18
|
hack: Ue,
|
|
19
|
-
zen:
|
|
20
|
-
concrete:
|
|
21
|
-
},
|
|
19
|
+
zen: ze,
|
|
20
|
+
concrete: He
|
|
21
|
+
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
22
|
__proto__: null,
|
|
23
|
-
celebration:
|
|
23
|
+
celebration: Ze,
|
|
24
24
|
celebrationNight: Re,
|
|
25
|
-
concrete:
|
|
26
|
-
dark:
|
|
25
|
+
concrete: He,
|
|
26
|
+
dark: Le,
|
|
27
27
|
default: Me,
|
|
28
28
|
hack: Ue,
|
|
29
|
-
zen:
|
|
30
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
29
|
+
zen: ze
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), nt = ["id"], rt = {
|
|
31
31
|
key: 1,
|
|
32
32
|
ref: "noTitle",
|
|
33
33
|
class: "vue-data-ui-no-title-space",
|
|
34
34
|
style: "height:36px; width: 100%;background:transparent"
|
|
35
|
-
},
|
|
35
|
+
}, it = {
|
|
36
36
|
key: 2,
|
|
37
37
|
style: "width:100%;background:transparent;"
|
|
38
|
-
},
|
|
38
|
+
}, ut = ["xmlns", "viewBox"], ct = ["width", "height"], dt = ["id"], vt = ["stop-color"], ft = ["stop-color"], ht = {
|
|
39
39
|
key: 4,
|
|
40
40
|
class: "vue-data-ui-watermark"
|
|
41
|
-
},
|
|
41
|
+
}, pt = {
|
|
42
42
|
key: 5,
|
|
43
43
|
"data-dom-to-png-ignore": "",
|
|
44
44
|
class: "reset-wrapper"
|
|
45
|
-
},
|
|
45
|
+
}, Ct = {
|
|
46
46
|
key: 6,
|
|
47
47
|
ref: "source",
|
|
48
48
|
dir: "auto"
|
|
49
|
-
},
|
|
49
|
+
}, gt = ["innerHTML"], bt = {
|
|
50
50
|
__name: "vue-ui-molecule",
|
|
51
51
|
props: {
|
|
52
52
|
config: {
|
|
@@ -63,26 +63,26 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
emits: ["selectNode"],
|
|
66
|
-
setup(
|
|
66
|
+
setup(xe, { expose: Ve, emit: Ge }) {
|
|
67
67
|
Do((o) => ({
|
|
68
|
-
|
|
68
|
+
v4cb447ec: o.slicerColor
|
|
69
69
|
}));
|
|
70
|
-
const je =
|
|
71
|
-
|
|
70
|
+
const je = p(() => import("./Title-BwhstTFA.js")), We = p(() => import("./Tooltip-De7i-i20.js")), te = p(() => import("./BaseIcon-Dl4VBlHV.js")), Xe = p(() => import("./vue-ui-accordion-BXTVRRX7.js")), Ye = p(() => import("./DataTable-Ho3Bf5oq.js")), qe = p(() => import("./PenAndPaper-kymjF6_b.js")), Je = p(() => import("./UserOptions-DgscxIaa.js")), Ke = p(() => import("./PackageVersion-BTPIkPFM.js")), Qe = p(() => import("./RecursiveLinks-Da489v6n.js")), eo = p(() => import("./RecursiveLabels-DxmctYbA.js")), oo = p(() => import("./RecursiveCircles-CM4bn2Vg.js")), to = p(() => import("./BaseDraggableDialog-BDY-Jn9S.js")), { vue_ui_molecule: lo } = Yo(), { isThemeValid: ao, warnInvalidTheme: so } = et(), w = xe, no = Ge, le = C(() => !!w.dataset && w.dataset.length);
|
|
71
|
+
So(() => {
|
|
72
72
|
ae();
|
|
73
73
|
});
|
|
74
|
-
const
|
|
74
|
+
const ro = C(() => e.value.debug);
|
|
75
75
|
function ae() {
|
|
76
|
-
|
|
76
|
+
Lo(w.dataset) && Zo({
|
|
77
77
|
componentName: "VueUiMolecule",
|
|
78
78
|
type: "dataset",
|
|
79
|
-
debug:
|
|
79
|
+
debug: ro.value
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
...
|
|
82
|
+
const M = c(Pe()), x = c(!1), L = c(""), $ = c(null), se = c(0), ne = c(0), re = c(0), E = c(null), V = c(null), e = c(X()), { loading: G, FINAL_DATASET: j } = qo({
|
|
83
|
+
...Eo(w),
|
|
84
84
|
FINAL_CONFIG: e,
|
|
85
|
-
prepareConfig:
|
|
85
|
+
prepareConfig: X,
|
|
86
86
|
skeletonDataset: [
|
|
87
87
|
{
|
|
88
88
|
name: "_",
|
|
@@ -135,114 +135,116 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
})
|
|
138
|
-
}), { userOptionsVisible:
|
|
139
|
-
function
|
|
138
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: ie, keepUserOptionState: ue } = ot({ config: e.value }), { svgRef: B } = tt({ config: e.value.style.chart.title });
|
|
139
|
+
function X() {
|
|
140
140
|
const o = oe({
|
|
141
141
|
userConfig: w.config,
|
|
142
|
-
defaultConfig:
|
|
142
|
+
defaultConfig: lo
|
|
143
143
|
}), l = o.theme;
|
|
144
144
|
if (!l) return o;
|
|
145
|
-
if (!
|
|
146
|
-
return
|
|
145
|
+
if (!ao.value(o))
|
|
146
|
+
return so(o), o;
|
|
147
147
|
const t = oe({
|
|
148
148
|
userConfig: Me[l] || w.config,
|
|
149
149
|
defaultConfig: o
|
|
150
|
-
}),
|
|
150
|
+
}), s = oe({
|
|
151
151
|
userConfig: w.config,
|
|
152
152
|
defaultConfig: t
|
|
153
153
|
});
|
|
154
154
|
return {
|
|
155
|
-
...
|
|
156
|
-
customPalette:
|
|
155
|
+
...s,
|
|
156
|
+
customPalette: s.customPalette.length ? s.customPalette : Uo[l] || Ie
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
e.value =
|
|
159
|
+
U(() => w.config, (o) => {
|
|
160
|
+
e.value = X(), W.value = !e.value.userOptions.showOnChartHover, ae(), ne.value += 1, re.value += 1, u.value.showTable = e.value.table.show, u.value.showTooltip = e.value.style.chart.tooltip.show, u.value.showZoom = e.value.style.chart.zoom.show;
|
|
161
161
|
}, { deep: !0 });
|
|
162
|
-
const ce =
|
|
162
|
+
const ce = c(0), io = () => {
|
|
163
163
|
ce.value += 1;
|
|
164
164
|
};
|
|
165
|
-
|
|
166
|
-
o || (await
|
|
165
|
+
U([() => G.value, () => j.value], async ([o]) => {
|
|
166
|
+
o || (await z(), g.value = Ce(), await z(), io(), await z(), Ao({ x: 0, y: 0, width: 400, height: 400 }), K(!1));
|
|
167
167
|
}, { flush: "post", deep: !1 });
|
|
168
|
-
const { isPrinting: de, isImaging: ve, generatePdf: fe, generateImage: he } =
|
|
169
|
-
elementId: `cluster_${
|
|
168
|
+
const { isPrinting: de, isImaging: ve, generatePdf: fe, generateImage: he } = Ko({
|
|
169
|
+
elementId: `cluster_${M.value}`,
|
|
170
170
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
171
171
|
options: e.value.userOptions.print
|
|
172
|
-
}),
|
|
172
|
+
}), uo = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), co = C(() => zo(e.value.customPalette)), u = c({
|
|
173
173
|
showTable: e.value.table.show,
|
|
174
174
|
showDataLabels: !0,
|
|
175
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
175
|
+
showTooltip: e.value.style.chart.tooltip.show,
|
|
176
|
+
showZoom: e.value.style.chart.zoom.show
|
|
176
177
|
});
|
|
177
|
-
|
|
178
|
-
|
|
178
|
+
U(e, () => {
|
|
179
|
+
u.value = {
|
|
179
180
|
showTable: e.value.table.show,
|
|
180
181
|
showDataLabels: !0,
|
|
181
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
182
|
+
showTooltip: e.value.style.chart.tooltip.show,
|
|
183
|
+
showZoom: e.value.style.chart.zoom.show
|
|
182
184
|
};
|
|
183
185
|
}, { immediate: !0 });
|
|
184
186
|
function pe(o, l = 0) {
|
|
185
187
|
return Array.isArray(o) && o.length > 0 && o[0].nodes ? pe(o[0].nodes, l + 1) : l;
|
|
186
188
|
}
|
|
187
189
|
function Ce() {
|
|
188
|
-
const o = pe(
|
|
190
|
+
const o = pe(j.value);
|
|
189
191
|
let l = 100, t = l;
|
|
190
|
-
for (let
|
|
192
|
+
for (let s = 0; s < o; s += 1)
|
|
191
193
|
l /= 1, t += l;
|
|
192
194
|
return {
|
|
193
195
|
height: t,
|
|
194
196
|
width: t
|
|
195
197
|
};
|
|
196
198
|
}
|
|
197
|
-
const
|
|
198
|
-
function
|
|
199
|
+
const g = c(Ce());
|
|
200
|
+
function ge(o, l = { x: -g.value.width / 2.43, y: g.value.height / 2 }, t = g.value.width / 1.1, s = 24, n = 0, d = 0, b = "#BBBBBB", Q = 0) {
|
|
199
201
|
if (!Array.isArray(o) || o.length === 0) return o;
|
|
200
|
-
const
|
|
202
|
+
const Oo = Vo({
|
|
201
203
|
plot: l,
|
|
202
204
|
radius: t,
|
|
203
205
|
sides: o.length,
|
|
204
|
-
rotation:
|
|
206
|
+
rotation: n
|
|
205
207
|
});
|
|
206
|
-
return o.forEach((m,
|
|
207
|
-
const
|
|
208
|
-
let ee =
|
|
208
|
+
return o.forEach((m, Fe) => {
|
|
209
|
+
const _e = Oo.coordinates[Fe], Oe = m.color ? (() => {
|
|
210
|
+
let ee = Ne(m.color);
|
|
209
211
|
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
210
212
|
})() : null;
|
|
211
|
-
let
|
|
212
|
-
|
|
213
|
+
let O;
|
|
214
|
+
Oe ? O = Oe : Q === 0 ? O = b : Q === 1 ? (O = co.value[d] || Ie[d] || b, d += 1) : O = b, m.polygonPath = { coordinates: [_e] }, m.circleRadius = s, m.color = O, m.uid = Pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = ge(
|
|
213
215
|
m.nodes,
|
|
214
|
-
|
|
216
|
+
_e,
|
|
215
217
|
t / 2.9,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
s / 2.2,
|
|
219
|
+
n + Math.PI * Fe / m.nodes.length,
|
|
220
|
+
d,
|
|
221
|
+
O,
|
|
220
222
|
Q + 1
|
|
221
223
|
));
|
|
222
224
|
}), o;
|
|
223
225
|
}
|
|
224
|
-
function
|
|
226
|
+
function vo(o) {
|
|
225
227
|
const l = /* @__PURE__ */ new Set();
|
|
226
|
-
function t(
|
|
227
|
-
|
|
228
|
-
if (!
|
|
229
|
-
let
|
|
230
|
-
/^#?[0-9A-F]{6}$/i.test(
|
|
228
|
+
function t(n) {
|
|
229
|
+
n.forEach((d) => {
|
|
230
|
+
if (!d.color) return;
|
|
231
|
+
let b = d.color;
|
|
232
|
+
/^#?[0-9A-F]{6}$/i.test(b) || (b = Ne(b)), b.startsWith("#") || (b = `#${b}`), l.add(b), Array.isArray(d.nodes) && d.nodes.length && t(d.nodes);
|
|
231
233
|
});
|
|
232
234
|
}
|
|
233
235
|
t(o);
|
|
234
|
-
const
|
|
235
|
-
return Array.from(l).forEach((
|
|
236
|
-
const
|
|
237
|
-
n
|
|
238
|
-
}),
|
|
236
|
+
const s = {};
|
|
237
|
+
return Array.from(l).forEach((n) => {
|
|
238
|
+
const d = n.slice(1);
|
|
239
|
+
s[n] = `gradient_${d}`;
|
|
240
|
+
}), s;
|
|
239
241
|
}
|
|
240
|
-
const
|
|
241
|
-
const o =
|
|
242
|
-
return
|
|
243
|
-
}),
|
|
244
|
-
function
|
|
245
|
-
|
|
242
|
+
const fo = C(() => vo(k.value)), k = C(() => {
|
|
243
|
+
const o = Ho(j.value);
|
|
244
|
+
return ge(o);
|
|
245
|
+
}), Y = c(null);
|
|
246
|
+
function ho(o) {
|
|
247
|
+
Y.value = {
|
|
246
248
|
datapoint: o,
|
|
247
249
|
seriesIndex: -1,
|
|
248
250
|
series: k.value,
|
|
@@ -255,7 +257,7 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
255
257
|
series: k.value,
|
|
256
258
|
config: e.value
|
|
257
259
|
})))
|
|
258
|
-
|
|
260
|
+
L.value = l({
|
|
259
261
|
seriesIndex: -1,
|
|
260
262
|
// well, ok
|
|
261
263
|
datapoint: o,
|
|
@@ -264,40 +266,40 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
264
266
|
});
|
|
265
267
|
else {
|
|
266
268
|
let t = "";
|
|
267
|
-
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${o.color}">⬤</div><div>${o.name}</div></div>`, o.details && (t += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${o.details}</div>`),
|
|
269
|
+
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${o.color}">⬤</div><div>${o.name}</div></div>`, o.details && (t += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${o.details}</div>`), L.value = `<div style="font-family:inherit">${t}</div>`;
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
|
-
const
|
|
271
|
-
function ho(o) {
|
|
272
|
-
ge.value = R.value, R.value = o, o ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ge.value || R.value, seriesIndex: -1 }), o ? (V.value = !0, fo(o), B.value = o.uid) : (V.value = !1, N.value = "", B.value = null);
|
|
273
|
-
}
|
|
272
|
+
const Z = c(null), P = c(null), be = c(null);
|
|
274
273
|
function po(o) {
|
|
274
|
+
be.value = Z.value, Z.value = o, o ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: be.value || Z.value, seriesIndex: -1 }), o ? (x.value = !0, ho(o), P.value = o.uid) : (x.value = !1, L.value = "", P.value = null);
|
|
275
|
+
}
|
|
276
|
+
function Co(o) {
|
|
275
277
|
const l = [];
|
|
276
|
-
function t(
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
name:
|
|
280
|
-
details:
|
|
281
|
-
ancestor:
|
|
282
|
-
color:
|
|
278
|
+
function t(s) {
|
|
279
|
+
s.forEach((n) => {
|
|
280
|
+
const d = {
|
|
281
|
+
name: n.name,
|
|
282
|
+
details: n.details || "-",
|
|
283
|
+
ancestor: n.ancestor && n.ancestor.name || "-",
|
|
284
|
+
color: n.color || ""
|
|
283
285
|
};
|
|
284
|
-
l.push(
|
|
286
|
+
l.push(d), n.nodes && n.nodes.length > 0 && t(n.nodes, n.name);
|
|
285
287
|
});
|
|
286
288
|
}
|
|
287
289
|
return t(o), l;
|
|
288
290
|
}
|
|
289
|
-
const
|
|
291
|
+
const go = C(() => Co(k.value)), F = C(() => {
|
|
290
292
|
const o = [
|
|
291
293
|
e.value.table.translations.nodeName,
|
|
292
294
|
e.value.table.translations.details,
|
|
293
295
|
e.value.table.translations.ancestor
|
|
294
|
-
], l =
|
|
296
|
+
], l = go.value.map((n, d) => [
|
|
295
297
|
{
|
|
296
|
-
color:
|
|
297
|
-
name:
|
|
298
|
+
color: n.color,
|
|
299
|
+
name: n.name
|
|
298
300
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
+
n.details,
|
|
302
|
+
n.ancestor || ""
|
|
301
303
|
]), t = {
|
|
302
304
|
th: {
|
|
303
305
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -310,7 +312,7 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
310
312
|
outline: e.value.table.td.outline
|
|
311
313
|
},
|
|
312
314
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
313
|
-
},
|
|
315
|
+
}, s = [
|
|
314
316
|
e.value.table.translations.nodeName,
|
|
315
317
|
e.value.table.translations.details,
|
|
316
318
|
e.value.table.translations.ancestor
|
|
@@ -319,60 +321,63 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
319
321
|
head: o,
|
|
320
322
|
body: l,
|
|
321
323
|
config: t,
|
|
322
|
-
colNames:
|
|
324
|
+
colNames: s
|
|
323
325
|
};
|
|
324
326
|
});
|
|
325
327
|
function q(o = null) {
|
|
326
|
-
|
|
327
|
-
const l = F.value.body.map((
|
|
328
|
-
o ? o(
|
|
328
|
+
z(() => {
|
|
329
|
+
const l = F.value.body.map((n, d) => [[n[0].name], [n[1]], [n[2]]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...F.value.head]]].concat(l), s = Go(t);
|
|
330
|
+
o ? o(s) : jo({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
329
331
|
});
|
|
330
332
|
}
|
|
331
333
|
function bo() {
|
|
332
334
|
return k.value;
|
|
333
335
|
}
|
|
334
|
-
const _ =
|
|
336
|
+
const _ = c(!1);
|
|
335
337
|
function me(o) {
|
|
336
338
|
_.value = o, se.value += 1;
|
|
337
339
|
}
|
|
338
|
-
function Ae() {
|
|
339
|
-
v.value.showTable = !v.value.showTable;
|
|
340
|
-
}
|
|
341
340
|
function ye() {
|
|
342
|
-
|
|
341
|
+
u.value.showTable = !u.value.showTable;
|
|
342
|
+
}
|
|
343
|
+
function Ae() {
|
|
344
|
+
u.value.showDataLabels = !u.value.showDataLabels;
|
|
343
345
|
}
|
|
344
346
|
function ke() {
|
|
345
|
-
|
|
347
|
+
u.value.showTooltip = !u.value.showTooltip;
|
|
346
348
|
}
|
|
347
|
-
|
|
349
|
+
function we() {
|
|
350
|
+
u.value.showZoom = !u.value.showZoom;
|
|
351
|
+
}
|
|
352
|
+
const I = c(!1);
|
|
348
353
|
function J() {
|
|
349
|
-
|
|
354
|
+
I.value = !I.value;
|
|
350
355
|
}
|
|
351
|
-
const
|
|
356
|
+
const mo = C(() => !I.value && u.value.showZoom), { viewBox: R, resetZoom: K, isZoom: yo, setInitialViewBox: Ao } = at(B, {
|
|
352
357
|
x: 0,
|
|
353
358
|
y: 0,
|
|
354
|
-
width: Math.max(10,
|
|
355
|
-
height: Math.max(10,
|
|
356
|
-
}, e.value.style.chart.zoom.speed,
|
|
357
|
-
function
|
|
358
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: -1 }),
|
|
359
|
+
width: Math.max(10, g.value.width),
|
|
360
|
+
height: Math.max(10, g.value.height)
|
|
361
|
+
}, e.value.style.chart.zoom.speed, mo);
|
|
362
|
+
function ko(o) {
|
|
363
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: -1 }), no("selectNode", o);
|
|
359
364
|
}
|
|
360
|
-
async function
|
|
365
|
+
async function wo({ scale: o = 2 } = {}) {
|
|
361
366
|
if (!$.value) return;
|
|
362
|
-
const { width: l, height: t } = $.value.getBoundingClientRect(),
|
|
367
|
+
const { width: l, height: t } = $.value.getBoundingClientRect(), s = l / t, { imageUri: n, base64: d } = await lt({ domElement: $.value, base64: !0, img: !0, scale: o });
|
|
363
368
|
return {
|
|
364
|
-
imageUri:
|
|
365
|
-
base64:
|
|
369
|
+
imageUri: n,
|
|
370
|
+
base64: d,
|
|
366
371
|
title: e.value.style.chart.title.text,
|
|
367
372
|
width: l,
|
|
368
373
|
height: t,
|
|
369
|
-
aspectRatio:
|
|
374
|
+
aspectRatio: s
|
|
370
375
|
};
|
|
371
376
|
}
|
|
372
|
-
const
|
|
373
|
-
const o = e.value.table.useDialog && !e.value.table.show, l =
|
|
377
|
+
const N = C(() => {
|
|
378
|
+
const o = e.value.table.useDialog && !e.value.table.show, l = u.value.showTable;
|
|
374
379
|
return {
|
|
375
|
-
component: o ?
|
|
380
|
+
component: o ? to : Xe,
|
|
376
381
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
377
382
|
props: o ? {
|
|
378
383
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -399,78 +404,79 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
399
404
|
}
|
|
400
405
|
};
|
|
401
406
|
});
|
|
402
|
-
|
|
407
|
+
U(() => u.value.showTable, (o) => {
|
|
403
408
|
e.value.table.show || (o && e.value.table.useDialog && E.value ? E.value.open() : "close" in E.value && E.value.close());
|
|
404
409
|
});
|
|
405
|
-
function
|
|
406
|
-
|
|
410
|
+
function $e() {
|
|
411
|
+
u.value.showTable = !1, V.value && V.value.setTableIconState(!1);
|
|
407
412
|
}
|
|
408
|
-
const
|
|
409
|
-
svg:
|
|
410
|
-
title:
|
|
411
|
-
backgroundColor:
|
|
413
|
+
const $o = C(() => e.value.style.chart.backgroundColor), To = C(() => e.value.style.chart.title), { exportSvg: Fo, getSvg: _o } = Qo({
|
|
414
|
+
svg: B,
|
|
415
|
+
title: To,
|
|
416
|
+
backgroundColor: $o
|
|
412
417
|
});
|
|
413
|
-
async function
|
|
418
|
+
async function Te({ isCb: o }) {
|
|
414
419
|
if (o) {
|
|
415
|
-
const { blob: l, url: t, text:
|
|
416
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: t, text:
|
|
420
|
+
const { blob: l, url: t, text: s, dataUrl: n } = await _o();
|
|
421
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: s, dataUrl: n });
|
|
417
422
|
} else
|
|
418
|
-
|
|
423
|
+
Fo();
|
|
419
424
|
}
|
|
420
425
|
return Ve({
|
|
421
426
|
getData: bo,
|
|
422
|
-
getImage:
|
|
427
|
+
getImage: wo,
|
|
423
428
|
generatePdf: fe,
|
|
424
429
|
generateCsv: q,
|
|
425
430
|
generateImage: he,
|
|
426
|
-
generateSvg:
|
|
427
|
-
toggleTable:
|
|
428
|
-
toggleLabels:
|
|
431
|
+
generateSvg: Te,
|
|
432
|
+
toggleTable: ye,
|
|
433
|
+
toggleLabels: Ae,
|
|
429
434
|
toggleTooltip: ke,
|
|
430
435
|
toggleAnnotator: J,
|
|
431
|
-
toggleFullscreen: me
|
|
432
|
-
|
|
436
|
+
toggleFullscreen: me,
|
|
437
|
+
toggleZoom: we
|
|
438
|
+
}), (o, l) => (v(), A("div", {
|
|
433
439
|
ref_key: "moleculeChart",
|
|
434
440
|
ref: $,
|
|
435
441
|
class: De(`vue-data-ui-component vue-ui-molecule ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
436
|
-
style:
|
|
437
|
-
id: `cluster_${
|
|
442
|
+
style: H(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
443
|
+
id: `cluster_${M.value}`,
|
|
438
444
|
onMouseleave: l[2] || (l[2] = (t) => {
|
|
439
|
-
|
|
445
|
+
Z.value = null, P.value = null, a(ie)(!1);
|
|
440
446
|
}),
|
|
441
447
|
onMouseenter: l[3] || (l[3] = () => a(ie)(!0))
|
|
442
448
|
}, [
|
|
443
|
-
e.value.userOptions.buttons.annotator ? (
|
|
449
|
+
e.value.userOptions.buttons.annotator && a(B) ? (v(), T(a(qe), {
|
|
444
450
|
key: 0,
|
|
445
|
-
svgRef: a(
|
|
451
|
+
svgRef: a(B),
|
|
446
452
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
447
453
|
color: e.value.style.chart.color,
|
|
448
|
-
active:
|
|
454
|
+
active: I.value,
|
|
449
455
|
onClose: J
|
|
450
456
|
}, {
|
|
451
457
|
"annotator-action-close": r(() => [
|
|
452
458
|
i(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
453
459
|
]),
|
|
454
460
|
"annotator-action-color": r(({ color: t }) => [
|
|
455
|
-
i(o.$slots, "annotator-action-color",
|
|
461
|
+
i(o.$slots, "annotator-action-color", f(h({ color: t })), void 0, !0)
|
|
456
462
|
]),
|
|
457
463
|
"annotator-action-draw": r(({ mode: t }) => [
|
|
458
|
-
i(o.$slots, "annotator-action-draw",
|
|
464
|
+
i(o.$slots, "annotator-action-draw", f(h({ mode: t })), void 0, !0)
|
|
459
465
|
]),
|
|
460
466
|
"annotator-action-undo": r(({ disabled: t }) => [
|
|
461
|
-
i(o.$slots, "annotator-action-undo",
|
|
467
|
+
i(o.$slots, "annotator-action-undo", f(h({ disabled: t })), void 0, !0)
|
|
462
468
|
]),
|
|
463
469
|
"annotator-action-redo": r(({ disabled: t }) => [
|
|
464
|
-
i(o.$slots, "annotator-action-redo",
|
|
470
|
+
i(o.$slots, "annotator-action-redo", f(h({ disabled: t })), void 0, !0)
|
|
465
471
|
]),
|
|
466
472
|
"annotator-action-delete": r(({ disabled: t }) => [
|
|
467
|
-
i(o.$slots, "annotator-action-delete",
|
|
473
|
+
i(o.$slots, "annotator-action-delete", f(h({ disabled: t })), void 0, !0)
|
|
468
474
|
]),
|
|
469
475
|
_: 3
|
|
470
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
471
|
-
|
|
472
|
-
e.value.style.chart.title.text ? (
|
|
473
|
-
(
|
|
476
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
477
|
+
uo.value ? (v(), A("div", rt, null, 512)) : y("", !0),
|
|
478
|
+
e.value.style.chart.title.text ? (v(), A("div", it, [
|
|
479
|
+
(v(), T(a(je), {
|
|
474
480
|
key: `title_${ne.value}`,
|
|
475
481
|
config: {
|
|
476
482
|
title: {
|
|
@@ -483,16 +489,16 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
483
489
|
}
|
|
484
490
|
}
|
|
485
491
|
}, null, 8, ["config"]))
|
|
486
|
-
])) :
|
|
487
|
-
e.value.userOptions.show && le.value && (a(ue) || a(
|
|
492
|
+
])) : y("", !0),
|
|
493
|
+
e.value.userOptions.show && le.value && (a(ue) || a(W)) ? (v(), T(a(Je), {
|
|
488
494
|
ref_key: "userOptionsRef",
|
|
489
|
-
ref:
|
|
495
|
+
ref: V,
|
|
490
496
|
key: `user_options_${se.value}`,
|
|
491
497
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
492
498
|
color: e.value.style.chart.color,
|
|
493
499
|
isPrinting: a(de),
|
|
494
500
|
isImaging: a(ve),
|
|
495
|
-
uid:
|
|
501
|
+
uid: M.value,
|
|
496
502
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
497
503
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
498
504
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -501,32 +507,35 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
501
507
|
hasTable: e.value.userOptions.buttons.table,
|
|
502
508
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
503
509
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
504
|
-
isTooltip:
|
|
510
|
+
isTooltip: u.value.showTooltip,
|
|
505
511
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
506
512
|
chartElement: $.value,
|
|
507
513
|
position: e.value.userOptions.position,
|
|
508
514
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
509
|
-
isAnnotation:
|
|
515
|
+
isAnnotation: I.value,
|
|
510
516
|
callbacks: e.value.userOptions.callbacks,
|
|
511
517
|
printScale: e.value.userOptions.print.scale,
|
|
512
518
|
tableDialog: e.value.table.useDialog,
|
|
519
|
+
hasZoom: e.value.userOptions.buttons.zoom,
|
|
520
|
+
isZoom: u.value.showZoom,
|
|
513
521
|
onToggleFullscreen: me,
|
|
514
522
|
onGeneratePdf: a(fe),
|
|
515
523
|
onGenerateCsv: q,
|
|
516
524
|
onGenerateImage: a(he),
|
|
517
|
-
onGenerateSvg:
|
|
518
|
-
onToggleTable:
|
|
519
|
-
onToggleLabels:
|
|
525
|
+
onGenerateSvg: Te,
|
|
526
|
+
onToggleTable: ye,
|
|
527
|
+
onToggleLabels: Ae,
|
|
520
528
|
onToggleTooltip: ke,
|
|
521
529
|
onToggleAnnotator: J,
|
|
522
|
-
|
|
523
|
-
|
|
530
|
+
onToggleZoom: we,
|
|
531
|
+
style: H({
|
|
532
|
+
visibility: a(ue) ? a(W) ? "visible" : "hidden" : "visible"
|
|
524
533
|
})
|
|
525
|
-
},
|
|
534
|
+
}, Se({ _: 2 }, [
|
|
526
535
|
o.$slots.menuIcon ? {
|
|
527
536
|
name: "menuIcon",
|
|
528
|
-
fn: r(({ isOpen: t, color:
|
|
529
|
-
i(o.$slots, "menuIcon",
|
|
537
|
+
fn: r(({ isOpen: t, color: s }) => [
|
|
538
|
+
i(o.$slots, "menuIcon", f(h({ isOpen: t, color: s })), void 0, !0)
|
|
530
539
|
]),
|
|
531
540
|
key: "0"
|
|
532
541
|
} : void 0,
|
|
@@ -581,43 +590,50 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
581
590
|
} : void 0,
|
|
582
591
|
o.$slots.optionFullscreen ? {
|
|
583
592
|
name: "optionFullscreen",
|
|
584
|
-
fn: r(({ toggleFullscreen: t, isFullscreen:
|
|
585
|
-
i(o.$slots, "optionFullscreen",
|
|
593
|
+
fn: r(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
594
|
+
i(o.$slots, "optionFullscreen", f(h({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
586
595
|
]),
|
|
587
596
|
key: "8"
|
|
588
597
|
} : void 0,
|
|
589
598
|
o.$slots.optionAnnotator ? {
|
|
590
599
|
name: "optionAnnotator",
|
|
591
|
-
fn: r(({ toggleAnnotator: t, isAnnotator:
|
|
592
|
-
i(o.$slots, "optionAnnotator",
|
|
600
|
+
fn: r(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
601
|
+
i(o.$slots, "optionAnnotator", f(h({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
593
602
|
]),
|
|
594
603
|
key: "9"
|
|
604
|
+
} : void 0,
|
|
605
|
+
o.$slots.optionZoom ? {
|
|
606
|
+
name: "optionZoom",
|
|
607
|
+
fn: r(({ toggleZoom: t, isZoomLocked: s }) => [
|
|
608
|
+
i(o.$slots, "optionZoom", f(h({ toggleZoom: t, isZoomLocked: s })), void 0, !0)
|
|
609
|
+
]),
|
|
610
|
+
key: "10"
|
|
595
611
|
} : void 0
|
|
596
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
597
|
-
(
|
|
612
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
613
|
+
(v(), A("svg", {
|
|
598
614
|
ref_key: "svgRef",
|
|
599
|
-
ref:
|
|
615
|
+
ref: B,
|
|
600
616
|
key: `svg_${ce.value}`,
|
|
601
617
|
xmlns: a(Mo),
|
|
602
|
-
viewBox: `${a(
|
|
618
|
+
viewBox: `${a(R).x} ${a(R).y} ${a(R).width} ${a(R).height}`,
|
|
603
619
|
class: De({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
604
|
-
style:
|
|
620
|
+
style: H(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
605
621
|
}, [
|
|
606
|
-
|
|
607
|
-
o.$slots["chart-background"] ? (
|
|
622
|
+
D(a(Ke)),
|
|
623
|
+
o.$slots["chart-background"] ? (v(), A("foreignObject", {
|
|
608
624
|
key: 0,
|
|
609
625
|
x: 0,
|
|
610
626
|
y: 0,
|
|
611
|
-
width:
|
|
612
|
-
height:
|
|
627
|
+
width: g.value.width <= 0 ? 10 : g.value.width,
|
|
628
|
+
height: g.value.height <= 0 ? 10 : g.value.height,
|
|
613
629
|
style: {
|
|
614
630
|
pointerEvents: "none"
|
|
615
631
|
}
|
|
616
632
|
}, [
|
|
617
633
|
i(o.$slots, "chart-background", {}, void 0, !0)
|
|
618
|
-
], 8,
|
|
634
|
+
], 8, ct)) : y("", !0),
|
|
619
635
|
S("defs", null, [
|
|
620
|
-
(
|
|
636
|
+
(v(!0), A(Bo, null, Po(Object.keys(fo.value), (t) => (v(), A("radialGradient", {
|
|
621
637
|
id: `gradient_${t}`,
|
|
622
638
|
cx: "50%",
|
|
623
639
|
cy: "30%",
|
|
@@ -627,67 +643,67 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
627
643
|
}, [
|
|
628
644
|
S("stop", {
|
|
629
645
|
offset: "0%",
|
|
630
|
-
"stop-color": a(
|
|
631
|
-
}, null, 8,
|
|
646
|
+
"stop-color": a(xo)(t, 0.5)
|
|
647
|
+
}, null, 8, vt),
|
|
632
648
|
S("stop", {
|
|
633
649
|
offset: "100%",
|
|
634
650
|
"stop-color": t
|
|
635
|
-
}, null, 8,
|
|
636
|
-
], 8,
|
|
651
|
+
}, null, 8, ft)
|
|
652
|
+
], 8, dt))), 256))
|
|
637
653
|
]),
|
|
638
|
-
|
|
654
|
+
D(a(Qe), {
|
|
639
655
|
dataset: k.value,
|
|
640
656
|
color: e.value.style.chart.links.stroke,
|
|
641
657
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
642
658
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
643
|
-
|
|
659
|
+
D(a(oo), {
|
|
644
660
|
dataset: k.value,
|
|
645
|
-
hoveredUid:
|
|
661
|
+
hoveredUid: P.value,
|
|
646
662
|
stroke: e.value.style.chart.nodes.stroke,
|
|
647
663
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
648
|
-
onClick:
|
|
649
|
-
onHover:
|
|
664
|
+
onClick: ko,
|
|
665
|
+
onHover: po
|
|
650
666
|
}, {
|
|
651
667
|
node: r(({ node: t }) => [
|
|
652
|
-
i(o.$slots, "node",
|
|
668
|
+
i(o.$slots, "node", f(h({ node: t })), void 0, !0)
|
|
653
669
|
]),
|
|
654
670
|
_: 3
|
|
655
671
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
656
|
-
|
|
672
|
+
u.value.showDataLabels && !a(G) ? (v(), T(a(eo), {
|
|
657
673
|
key: 1,
|
|
658
674
|
dataset: k.value,
|
|
659
675
|
color: e.value.style.chart.color,
|
|
660
|
-
hoveredUid:
|
|
661
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) :
|
|
662
|
-
i(o.$slots, "svg", { svg:
|
|
663
|
-
], 14,
|
|
664
|
-
o.$slots.watermark ? (
|
|
665
|
-
i(o.$slots, "watermark",
|
|
666
|
-
])) :
|
|
667
|
-
a(
|
|
676
|
+
hoveredUid: P.value
|
|
677
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : y("", !0),
|
|
678
|
+
i(o.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
679
|
+
], 14, ut)),
|
|
680
|
+
o.$slots.watermark ? (v(), A("div", ht, [
|
|
681
|
+
i(o.$slots, "watermark", f(h({ isPrinting: a(de) || a(ve) })), void 0, !0)
|
|
682
|
+
])) : y("", !0),
|
|
683
|
+
a(yo) ? (v(), A("div", pt, [
|
|
668
684
|
i(o.$slots, "reset-action", { reset: a(K) }, () => [
|
|
669
685
|
S("button", {
|
|
670
686
|
"data-cy-reset": "",
|
|
671
687
|
tabindex: "0",
|
|
672
688
|
role: "button",
|
|
673
689
|
class: "vue-data-ui-refresh-button",
|
|
674
|
-
style:
|
|
690
|
+
style: H({
|
|
675
691
|
background: e.value.style.chart.backgroundColor
|
|
676
692
|
}),
|
|
677
693
|
onClick: l[0] || (l[0] = (t) => a(K)(!0))
|
|
678
694
|
}, [
|
|
679
|
-
|
|
695
|
+
D(a(te), {
|
|
680
696
|
name: "refresh",
|
|
681
697
|
stroke: e.value.style.chart.color
|
|
682
698
|
}, null, 8, ["stroke"])
|
|
683
699
|
], 4)
|
|
684
700
|
], !0)
|
|
685
|
-
])) :
|
|
686
|
-
o.$slots.source ? (
|
|
701
|
+
])) : y("", !0),
|
|
702
|
+
o.$slots.source ? (v(), A("div", Ct, [
|
|
687
703
|
i(o.$slots, "source", {}, void 0, !0)
|
|
688
|
-
], 512)) :
|
|
689
|
-
|
|
690
|
-
show:
|
|
704
|
+
], 512)) : y("", !0),
|
|
705
|
+
D(a(We), {
|
|
706
|
+
show: u.value.showTooltip && x.value,
|
|
691
707
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
692
708
|
color: e.value.style.chart.tooltip.color,
|
|
693
709
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -698,7 +714,7 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
698
714
|
position: e.value.style.chart.tooltip.position,
|
|
699
715
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
700
716
|
parent: $.value,
|
|
701
|
-
content:
|
|
717
|
+
content: L.value,
|
|
702
718
|
isFullscreen: _.value,
|
|
703
719
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
704
720
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -707,37 +723,37 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
707
723
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
708
724
|
}, {
|
|
709
725
|
"tooltip-before": r(() => [
|
|
710
|
-
i(o.$slots, "tooltip-before",
|
|
726
|
+
i(o.$slots, "tooltip-before", f(h({ ...Y.value })), void 0, !0)
|
|
711
727
|
]),
|
|
712
728
|
"tooltip-after": r(() => [
|
|
713
|
-
i(o.$slots, "tooltip-after",
|
|
729
|
+
i(o.$slots, "tooltip-after", f(h({ ...Y.value })), void 0, !0)
|
|
714
730
|
]),
|
|
715
731
|
_: 3
|
|
716
732
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
717
|
-
le.value && e.value.userOptions.buttons.table ? (
|
|
733
|
+
le.value && e.value.userOptions.buttons.table ? (v(), T(Io(N.value.component), No({ key: 7 }, N.value.props, {
|
|
718
734
|
ref_key: "tableUnit",
|
|
719
735
|
ref: E,
|
|
720
|
-
onClose:
|
|
721
|
-
}),
|
|
736
|
+
onClose: $e
|
|
737
|
+
}), Se({
|
|
722
738
|
content: r(() => [
|
|
723
|
-
(
|
|
739
|
+
(v(), T(a(Ye), {
|
|
724
740
|
key: `table_${re.value}`,
|
|
725
741
|
colNames: F.value.colNames,
|
|
726
742
|
head: F.value.head,
|
|
727
743
|
body: F.value.body,
|
|
728
744
|
config: F.value.config,
|
|
729
|
-
title: e.value.table.useDialog ? "" :
|
|
745
|
+
title: e.value.table.useDialog ? "" : N.value.title,
|
|
730
746
|
withCloseButton: !e.value.table.useDialog,
|
|
731
|
-
onClose:
|
|
747
|
+
onClose: $e
|
|
732
748
|
}, {
|
|
733
749
|
th: r(({ th: t }) => [
|
|
734
750
|
S("div", {
|
|
735
751
|
innerHTML: t,
|
|
736
752
|
style: { display: "flex", "align-items": "center" }
|
|
737
|
-
}, null, 8,
|
|
753
|
+
}, null, 8, gt)
|
|
738
754
|
]),
|
|
739
755
|
td: r(({ td: t }) => [
|
|
740
|
-
|
|
756
|
+
Ee(Be(t.name || t), 1)
|
|
741
757
|
]),
|
|
742
758
|
_: 1
|
|
743
759
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -747,7 +763,7 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
747
763
|
e.value.table.useDialog ? {
|
|
748
764
|
name: "title",
|
|
749
765
|
fn: r(() => [
|
|
750
|
-
|
|
766
|
+
Ee(Be(N.value.title), 1)
|
|
751
767
|
]),
|
|
752
768
|
key: "0"
|
|
753
769
|
} : void 0,
|
|
@@ -759,24 +775,24 @@ const Ne = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
759
775
|
class: "vue-ui-user-options-button",
|
|
760
776
|
onClick: l[1] || (l[1] = (t) => q(e.value.userOptions.callbacks.csv))
|
|
761
777
|
}, [
|
|
762
|
-
|
|
778
|
+
D(a(te), {
|
|
763
779
|
name: "excel",
|
|
764
|
-
stroke:
|
|
780
|
+
stroke: N.value.props.color
|
|
765
781
|
}, null, 8, ["stroke"])
|
|
766
782
|
])
|
|
767
783
|
]),
|
|
768
784
|
key: "1"
|
|
769
785
|
} : void 0
|
|
770
|
-
]), 1040)) :
|
|
771
|
-
a(
|
|
772
|
-
], 46,
|
|
786
|
+
]), 1040)) : y("", !0),
|
|
787
|
+
a(G) ? (v(), T(Jo, { key: 8 })) : y("", !0)
|
|
788
|
+
], 46, nt));
|
|
773
789
|
}
|
|
774
|
-
},
|
|
790
|
+
}, mt = /* @__PURE__ */ st(bt, [["__scopeId", "data-v-053b8c13"]]), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
775
791
|
__proto__: null,
|
|
776
|
-
default:
|
|
792
|
+
default: mt
|
|
777
793
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
778
794
|
export {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
795
|
+
Bt as a,
|
|
796
|
+
Pt as b,
|
|
797
|
+
mt as v
|
|
782
798
|
};
|