vue-data-ui 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
import { useCssVars as Do, defineAsyncComponent as f, computed as h, onMounted as Oo, ref as u, toRefs as So, watch as H, nextTick as x, createElementBlock as y, openBlock as d, unref as a, normalizeStyle as M, normalizeClass as De, createBlock as T, createCommentVNode as A, createVNode as O, withCtx as r, renderSlot as i, normalizeProps as p, guardReactiveProps as C, createSlots as Oe, createElementVNode as S, Fragment as Eo, renderList as Bo, resolveDynamicComponent as Po, mergeProps as Io, createTextVNode as Se, toDisplayString as Ee } from "vue";
|
|
2
|
+
import { o as No, g as Lo, c as Be, t as Ro, i as Uo, p as Pe, j as Ho, ab as xo, X as Mo, n as zo, e as Vo, l as Ie, u as Go, q as jo, x as Wo, R as Xo } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { u as Yo, a as oe } from "./useNestedProp-CWo6bftQ.js";
|
|
4
|
+
import { u as Zo, B as qo } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Jo } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as Ko } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as Qo } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
|
+
import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import tt from "./img-DUzJeMlr.js";
|
|
11
|
+
import { u as lt } from "./usePanZoom-BVca3eMk.js";
|
|
12
|
+
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Ne = { 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" } } }, Le = { 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" } } }, He = { 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" } } }, xe = { 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
|
+
default: {},
|
|
15
|
+
dark: Ne,
|
|
16
|
+
celebration: Le,
|
|
17
|
+
celebrationNight: Re,
|
|
18
|
+
hack: Ue,
|
|
19
|
+
zen: He,
|
|
20
|
+
concrete: xe
|
|
21
|
+
}, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
celebration: Le,
|
|
24
|
+
celebrationNight: Re,
|
|
25
|
+
concrete: xe,
|
|
26
|
+
dark: Ne,
|
|
27
|
+
default: Me,
|
|
28
|
+
hack: Ue,
|
|
29
|
+
zen: He
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), st = ["id"], nt = {
|
|
31
|
+
key: 1,
|
|
32
|
+
ref: "noTitle",
|
|
33
|
+
class: "vue-data-ui-no-title-space",
|
|
34
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
35
|
+
}, rt = {
|
|
36
|
+
key: 2,
|
|
37
|
+
style: "width:100%;background:transparent;"
|
|
38
|
+
}, it = ["xmlns", "viewBox"], ut = ["width", "height"], ct = ["id"], dt = ["stop-color"], vt = ["stop-color"], ft = {
|
|
39
|
+
key: 4,
|
|
40
|
+
class: "vue-data-ui-watermark"
|
|
41
|
+
}, ht = {
|
|
42
|
+
key: 5,
|
|
43
|
+
"data-dom-to-png-ignore": "",
|
|
44
|
+
class: "reset-wrapper"
|
|
45
|
+
}, pt = {
|
|
46
|
+
key: 6,
|
|
47
|
+
ref: "source",
|
|
48
|
+
dir: "auto"
|
|
49
|
+
}, Ct = ["innerHTML"], bt = {
|
|
50
|
+
__name: "vue-ui-molecule",
|
|
51
|
+
props: {
|
|
52
|
+
config: {
|
|
53
|
+
type: Object,
|
|
54
|
+
default() {
|
|
55
|
+
return {};
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
dataset: {
|
|
59
|
+
type: Array,
|
|
60
|
+
default() {
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
emits: ["selectNode"],
|
|
66
|
+
setup(ze, { expose: Ve, emit: Ge }) {
|
|
67
|
+
Do((o) => ({
|
|
68
|
+
v679f6f1a: o.slicerColor
|
|
69
|
+
}));
|
|
70
|
+
const je = f(() => import("./Title-DfFUb9hd.js")), We = f(() => import("./Tooltip-WD0Ros6G.js")), te = f(() => import("./BaseIcon-CofSxalQ.js")), Xe = f(() => import("./vue-ui-accordion-DSdZUn2C.js")), Ye = f(() => import("./DataTable-CHaOCmsE.js")), Ze = f(() => import("./PenAndPaper-HCZQTkqi.js")), qe = f(() => import("./UserOptions-B3I-s3Lw.js")), Je = f(() => import("./PackageVersion-Bq_mtsqr.js")), Ke = f(() => import("./RecursiveLinks-00zGWPf9.js")), Qe = f(() => import("./RecursiveLabels-Bgcv0pzu.js")), eo = f(() => import("./RecursiveCircles-BcLb1aRS.js")), oo = f(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_molecule: to } = Yo(), { isThemeValid: lo, warnInvalidTheme: ao } = Qo(), w = ze, so = Ge, le = h(() => !!w.dataset && w.dataset.length);
|
|
71
|
+
Oo(() => {
|
|
72
|
+
ae();
|
|
73
|
+
});
|
|
74
|
+
const no = h(() => e.value.debug);
|
|
75
|
+
function ae() {
|
|
76
|
+
No(w.dataset) && Lo({
|
|
77
|
+
componentName: "VueUiMolecule",
|
|
78
|
+
type: "dataset",
|
|
79
|
+
debug: no.value
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
const z = u(Be()), V = u(!1), N = u(""), $ = u(null), se = u(0), ne = u(0), re = u(0), E = u(null), G = u(null), e = u(Y()), { loading: j, FINAL_DATASET: W } = Zo({
|
|
83
|
+
...So(w),
|
|
84
|
+
FINAL_CONFIG: e,
|
|
85
|
+
prepareConfig: Y,
|
|
86
|
+
skeletonDataset: [
|
|
87
|
+
{
|
|
88
|
+
name: "_",
|
|
89
|
+
color: "#CACACA",
|
|
90
|
+
nodes: [
|
|
91
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
92
|
+
{ name: "_", color: "#CACACA" },
|
|
93
|
+
{ name: "_", color: "#CACACA" },
|
|
94
|
+
{ name: "_", color: "#CACACA" }
|
|
95
|
+
] },
|
|
96
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
97
|
+
{ name: "_", color: "#CACACA" },
|
|
98
|
+
{ name: "_", color: "#CACACA" },
|
|
99
|
+
{ name: "_", color: "#CACACA" }
|
|
100
|
+
] },
|
|
101
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
102
|
+
{ name: "_", color: "#CACACA" },
|
|
103
|
+
{ name: "_", color: "#CACACA" },
|
|
104
|
+
{ name: "_", color: "#CACACA" }
|
|
105
|
+
] },
|
|
106
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
107
|
+
{ name: "_", color: "#CACACA" },
|
|
108
|
+
{ name: "_", color: "#CACACA" },
|
|
109
|
+
{ name: "_", color: "#CACACA" }
|
|
110
|
+
] },
|
|
111
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
112
|
+
{ name: "_", color: "#CACACA" },
|
|
113
|
+
{ name: "_", color: "#CACACA" },
|
|
114
|
+
{ name: "_", color: "#CACACA" }
|
|
115
|
+
] },
|
|
116
|
+
{ name: "_", color: "#CACACA", nodes: [
|
|
117
|
+
{ name: "_", color: "#CACACA" },
|
|
118
|
+
{ name: "_", color: "#CACACA" },
|
|
119
|
+
{ name: "_", color: "#CACACA" }
|
|
120
|
+
] }
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
skeletonConfig: Ro({
|
|
125
|
+
defaultConfig: e.value,
|
|
126
|
+
userConfig: {
|
|
127
|
+
userOptions: { show: !1 },
|
|
128
|
+
table: { show: !1 },
|
|
129
|
+
style: {
|
|
130
|
+
chart: {
|
|
131
|
+
backgroundColor: "#99999930",
|
|
132
|
+
nodes: { stroke: "#6A6A6A" },
|
|
133
|
+
links: { stroke: "#6A6A6A80" }
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
}), { userOptionsVisible: X, setUserOptionsVisibility: ie, keepUserOptionState: ue } = et({ config: e.value }), { svgRef: L } = ot({ config: e.value.style.chart.title });
|
|
139
|
+
function Y() {
|
|
140
|
+
const o = oe({
|
|
141
|
+
userConfig: w.config,
|
|
142
|
+
defaultConfig: to
|
|
143
|
+
}), l = o.theme;
|
|
144
|
+
if (!l) return o;
|
|
145
|
+
if (!lo.value(o))
|
|
146
|
+
return ao(o), o;
|
|
147
|
+
const t = oe({
|
|
148
|
+
userConfig: Me[l] || w.config,
|
|
149
|
+
defaultConfig: o
|
|
150
|
+
}), n = oe({
|
|
151
|
+
userConfig: w.config,
|
|
152
|
+
defaultConfig: t
|
|
153
|
+
});
|
|
154
|
+
return {
|
|
155
|
+
...n,
|
|
156
|
+
customPalette: n.customPalette.length ? n.customPalette : Uo[l] || Pe
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
H(() => w.config, (o) => {
|
|
160
|
+
e.value = Y(), X.value = !e.value.userOptions.showOnChartHover, ae(), ne.value += 1, re.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
161
|
+
}, { deep: !0 });
|
|
162
|
+
const ce = u(0), ro = () => {
|
|
163
|
+
ce.value += 1;
|
|
164
|
+
};
|
|
165
|
+
H([() => j.value, () => W.value], async ([o]) => {
|
|
166
|
+
o || (await x(), b.value = Ce(), await x(), ro(), await x(), Ao({ x: 0, y: 0, width: 400, height: 400 }), K(!1));
|
|
167
|
+
}, { flush: "post", deep: !1 });
|
|
168
|
+
const { isPrinting: de, isImaging: ve, generatePdf: fe, generateImage: he } = Jo({
|
|
169
|
+
elementId: `cluster_${z.value}`,
|
|
170
|
+
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
171
|
+
options: e.value.userOptions.print
|
|
172
|
+
}), io = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), uo = h(() => Ho(e.value.customPalette)), v = u({
|
|
173
|
+
showTable: e.value.table.show,
|
|
174
|
+
showDataLabels: !0,
|
|
175
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
176
|
+
});
|
|
177
|
+
H(e, () => {
|
|
178
|
+
v.value = {
|
|
179
|
+
showTable: e.value.table.show,
|
|
180
|
+
showDataLabels: !0,
|
|
181
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
182
|
+
};
|
|
183
|
+
}, { immediate: !0 });
|
|
184
|
+
function pe(o, l = 0) {
|
|
185
|
+
return Array.isArray(o) && o.length > 0 && o[0].nodes ? pe(o[0].nodes, l + 1) : l;
|
|
186
|
+
}
|
|
187
|
+
function Ce() {
|
|
188
|
+
const o = pe(W.value);
|
|
189
|
+
let l = 100, t = l;
|
|
190
|
+
for (let n = 0; n < o; n += 1)
|
|
191
|
+
l /= 1, t += l;
|
|
192
|
+
return {
|
|
193
|
+
height: t,
|
|
194
|
+
width: t
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
const b = u(Ce());
|
|
198
|
+
function be(o, l = { x: -b.value.width / 2.43, y: b.value.height / 2 }, t = b.value.width / 1.1, n = 24, s = 0, c = 0, g = "#BBBBBB", Q = 0) {
|
|
199
|
+
if (!Array.isArray(o) || o.length === 0) return o;
|
|
200
|
+
const _o = Vo({
|
|
201
|
+
plot: l,
|
|
202
|
+
radius: t,
|
|
203
|
+
sides: o.length,
|
|
204
|
+
rotation: s
|
|
205
|
+
});
|
|
206
|
+
return o.forEach((m, Te) => {
|
|
207
|
+
const Fe = _o.coordinates[Te], _e = m.color ? (() => {
|
|
208
|
+
let ee = Ie(m.color);
|
|
209
|
+
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
210
|
+
})() : null;
|
|
211
|
+
let D;
|
|
212
|
+
_e ? D = _e : Q === 0 ? D = g : Q === 1 ? (D = uo.value[c] || Pe[c] || g, c += 1) : D = g, m.polygonPath = { coordinates: [Fe] }, m.circleRadius = n, m.color = D, m.uid = Be(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = be(
|
|
213
|
+
m.nodes,
|
|
214
|
+
Fe,
|
|
215
|
+
t / 2.9,
|
|
216
|
+
n / 2.2,
|
|
217
|
+
s + Math.PI * Te / m.nodes.length,
|
|
218
|
+
c,
|
|
219
|
+
D,
|
|
220
|
+
Q + 1
|
|
221
|
+
));
|
|
222
|
+
}), o;
|
|
223
|
+
}
|
|
224
|
+
function co(o) {
|
|
225
|
+
const l = /* @__PURE__ */ new Set();
|
|
226
|
+
function t(s) {
|
|
227
|
+
s.forEach((c) => {
|
|
228
|
+
if (!c.color) return;
|
|
229
|
+
let g = c.color;
|
|
230
|
+
/^#?[0-9A-F]{6}$/i.test(g) || (g = Ie(g)), g.startsWith("#") || (g = `#${g}`), l.add(g), Array.isArray(c.nodes) && c.nodes.length && t(c.nodes);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
t(o);
|
|
234
|
+
const n = {};
|
|
235
|
+
return Array.from(l).forEach((s) => {
|
|
236
|
+
const c = s.slice(1);
|
|
237
|
+
n[s] = `gradient_${c}`;
|
|
238
|
+
}), n;
|
|
239
|
+
}
|
|
240
|
+
const vo = h(() => co(k.value)), k = h(() => {
|
|
241
|
+
const o = xo(W.value);
|
|
242
|
+
return be(o);
|
|
243
|
+
}), Z = u(null);
|
|
244
|
+
function fo(o) {
|
|
245
|
+
Z.value = {
|
|
246
|
+
datapoint: o,
|
|
247
|
+
seriesIndex: -1,
|
|
248
|
+
series: k.value,
|
|
249
|
+
config: e.value
|
|
250
|
+
};
|
|
251
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
252
|
+
if (Wo(l) && Xo(() => l({
|
|
253
|
+
seriesIndex: -1,
|
|
254
|
+
datapoint: o,
|
|
255
|
+
series: k.value,
|
|
256
|
+
config: e.value
|
|
257
|
+
})))
|
|
258
|
+
N.value = l({
|
|
259
|
+
seriesIndex: -1,
|
|
260
|
+
// well, ok
|
|
261
|
+
datapoint: o,
|
|
262
|
+
series: k.value,
|
|
263
|
+
config: e.value
|
|
264
|
+
});
|
|
265
|
+
else {
|
|
266
|
+
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>`), N.value = `<div style="font-family:inherit">${t}</div>`;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const R = u(null), B = u(null), ge = u(null);
|
|
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
|
+
}
|
|
274
|
+
function po(o) {
|
|
275
|
+
const l = [];
|
|
276
|
+
function t(n) {
|
|
277
|
+
n.forEach((s) => {
|
|
278
|
+
const c = {
|
|
279
|
+
name: s.name,
|
|
280
|
+
details: s.details || "-",
|
|
281
|
+
ancestor: s.ancestor && s.ancestor.name || "-",
|
|
282
|
+
color: s.color || ""
|
|
283
|
+
};
|
|
284
|
+
l.push(c), s.nodes && s.nodes.length > 0 && t(s.nodes, s.name);
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
return t(o), l;
|
|
288
|
+
}
|
|
289
|
+
const Co = h(() => po(k.value)), F = h(() => {
|
|
290
|
+
const o = [
|
|
291
|
+
e.value.table.translations.nodeName,
|
|
292
|
+
e.value.table.translations.details,
|
|
293
|
+
e.value.table.translations.ancestor
|
|
294
|
+
], l = Co.value.map((s, c) => [
|
|
295
|
+
{
|
|
296
|
+
color: s.color,
|
|
297
|
+
name: s.name
|
|
298
|
+
},
|
|
299
|
+
s.details,
|
|
300
|
+
s.ancestor || ""
|
|
301
|
+
]), t = {
|
|
302
|
+
th: {
|
|
303
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
304
|
+
color: e.value.table.th.color,
|
|
305
|
+
outline: e.value.table.th.outline
|
|
306
|
+
},
|
|
307
|
+
td: {
|
|
308
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
309
|
+
color: e.value.table.td.color,
|
|
310
|
+
outline: e.value.table.td.outline
|
|
311
|
+
},
|
|
312
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
313
|
+
}, n = [
|
|
314
|
+
e.value.table.translations.nodeName,
|
|
315
|
+
e.value.table.translations.details,
|
|
316
|
+
e.value.table.translations.ancestor
|
|
317
|
+
];
|
|
318
|
+
return {
|
|
319
|
+
head: o,
|
|
320
|
+
body: l,
|
|
321
|
+
config: t,
|
|
322
|
+
colNames: n
|
|
323
|
+
};
|
|
324
|
+
});
|
|
325
|
+
function q(o = null) {
|
|
326
|
+
x(() => {
|
|
327
|
+
const l = F.value.body.map((s, c) => [[s[0].name], [s[1]], [s[2]]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...F.value.head]]].concat(l), n = Go(t);
|
|
328
|
+
o ? o(n) : jo({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
function bo() {
|
|
332
|
+
return k.value;
|
|
333
|
+
}
|
|
334
|
+
const _ = u(!1);
|
|
335
|
+
function me(o) {
|
|
336
|
+
_.value = o, se.value += 1;
|
|
337
|
+
}
|
|
338
|
+
function Ae() {
|
|
339
|
+
v.value.showTable = !v.value.showTable;
|
|
340
|
+
}
|
|
341
|
+
function ye() {
|
|
342
|
+
v.value.showDataLabels = !v.value.showDataLabels;
|
|
343
|
+
}
|
|
344
|
+
function ke() {
|
|
345
|
+
v.value.showTooltip = !v.value.showTooltip;
|
|
346
|
+
}
|
|
347
|
+
const P = u(!1);
|
|
348
|
+
function J() {
|
|
349
|
+
P.value = !P.value;
|
|
350
|
+
}
|
|
351
|
+
const go = h(() => !P.value), { viewBox: U, resetZoom: K, isZoom: mo, setInitialViewBox: Ao } = lt(L, {
|
|
352
|
+
x: 0,
|
|
353
|
+
y: 0,
|
|
354
|
+
width: Math.max(10, b.value.width),
|
|
355
|
+
height: Math.max(10, b.value.height)
|
|
356
|
+
}, e.value.style.chart.zoom.speed, go);
|
|
357
|
+
function yo(o) {
|
|
358
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: -1 }), so("selectNode", o);
|
|
359
|
+
}
|
|
360
|
+
async function ko({ scale: o = 2 } = {}) {
|
|
361
|
+
if (!$.value) return;
|
|
362
|
+
const { width: l, height: t } = $.value.getBoundingClientRect(), n = l / t, { imageUri: s, base64: c } = await tt({ domElement: $.value, base64: !0, img: !0, scale: o });
|
|
363
|
+
return {
|
|
364
|
+
imageUri: s,
|
|
365
|
+
base64: c,
|
|
366
|
+
title: e.value.style.chart.title.text,
|
|
367
|
+
width: l,
|
|
368
|
+
height: t,
|
|
369
|
+
aspectRatio: n
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
const I = h(() => {
|
|
373
|
+
const o = e.value.table.useDialog && !e.value.table.show, l = v.value.showTable;
|
|
374
|
+
return {
|
|
375
|
+
component: o ? oo : Xe,
|
|
376
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
377
|
+
props: o ? {
|
|
378
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
379
|
+
color: e.value.table.th.color,
|
|
380
|
+
headerColor: e.value.table.th.color,
|
|
381
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
382
|
+
isFullscreen: _.value,
|
|
383
|
+
fullscreenParent: $.value,
|
|
384
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
385
|
+
} : {
|
|
386
|
+
hideDetails: !0,
|
|
387
|
+
config: {
|
|
388
|
+
open: l,
|
|
389
|
+
maxHeight: 1e4,
|
|
390
|
+
body: {
|
|
391
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
392
|
+
color: e.value.style.chart.color
|
|
393
|
+
},
|
|
394
|
+
head: {
|
|
395
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
396
|
+
color: e.value.style.chart.color
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
});
|
|
402
|
+
H(() => v.value.showTable, (o) => {
|
|
403
|
+
e.value.table.show || (o && e.value.table.useDialog && E.value ? E.value.open() : "close" in E.value && E.value.close());
|
|
404
|
+
});
|
|
405
|
+
function we() {
|
|
406
|
+
v.value.showTable = !1, G.value && G.value.setTableIconState(!1);
|
|
407
|
+
}
|
|
408
|
+
const wo = h(() => e.value.style.chart.backgroundColor), $o = h(() => e.value.style.chart.title), { exportSvg: To, getSvg: Fo } = Ko({
|
|
409
|
+
svg: L,
|
|
410
|
+
title: $o,
|
|
411
|
+
backgroundColor: wo
|
|
412
|
+
});
|
|
413
|
+
async function $e({ isCb: o }) {
|
|
414
|
+
if (o) {
|
|
415
|
+
const { blob: l, url: t, text: n, dataUrl: s } = await Fo();
|
|
416
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: n, dataUrl: s });
|
|
417
|
+
} else
|
|
418
|
+
To();
|
|
419
|
+
}
|
|
420
|
+
return Ve({
|
|
421
|
+
getData: bo,
|
|
422
|
+
getImage: ko,
|
|
423
|
+
generatePdf: fe,
|
|
424
|
+
generateCsv: q,
|
|
425
|
+
generateImage: he,
|
|
426
|
+
generateSvg: $e,
|
|
427
|
+
toggleTable: Ae,
|
|
428
|
+
toggleLabels: ye,
|
|
429
|
+
toggleTooltip: ke,
|
|
430
|
+
toggleAnnotator: J,
|
|
431
|
+
toggleFullscreen: me
|
|
432
|
+
}), (o, l) => (d(), y("div", {
|
|
433
|
+
ref_key: "moleculeChart",
|
|
434
|
+
ref: $,
|
|
435
|
+
class: De(`vue-data-ui-component vue-ui-molecule ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
436
|
+
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
437
|
+
id: `cluster_${z.value}`,
|
|
438
|
+
onMouseleave: l[2] || (l[2] = (t) => {
|
|
439
|
+
R.value = null, B.value = null, a(ie)(!1);
|
|
440
|
+
}),
|
|
441
|
+
onMouseenter: l[3] || (l[3] = () => a(ie)(!0))
|
|
442
|
+
}, [
|
|
443
|
+
e.value.userOptions.buttons.annotator ? (d(), T(a(Ze), {
|
|
444
|
+
key: 0,
|
|
445
|
+
svgRef: a(L),
|
|
446
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
447
|
+
color: e.value.style.chart.color,
|
|
448
|
+
active: P.value,
|
|
449
|
+
onClose: J
|
|
450
|
+
}, {
|
|
451
|
+
"annotator-action-close": r(() => [
|
|
452
|
+
i(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
"annotator-action-color": r(({ color: t }) => [
|
|
455
|
+
i(o.$slots, "annotator-action-color", p(C({ color: t })), void 0, !0)
|
|
456
|
+
]),
|
|
457
|
+
"annotator-action-draw": r(({ mode: t }) => [
|
|
458
|
+
i(o.$slots, "annotator-action-draw", p(C({ mode: t })), void 0, !0)
|
|
459
|
+
]),
|
|
460
|
+
"annotator-action-undo": r(({ disabled: t }) => [
|
|
461
|
+
i(o.$slots, "annotator-action-undo", p(C({ disabled: t })), void 0, !0)
|
|
462
|
+
]),
|
|
463
|
+
"annotator-action-redo": r(({ disabled: t }) => [
|
|
464
|
+
i(o.$slots, "annotator-action-redo", p(C({ disabled: t })), void 0, !0)
|
|
465
|
+
]),
|
|
466
|
+
"annotator-action-delete": r(({ disabled: t }) => [
|
|
467
|
+
i(o.$slots, "annotator-action-delete", p(C({ disabled: t })), void 0, !0)
|
|
468
|
+
]),
|
|
469
|
+
_: 3
|
|
470
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : A("", !0),
|
|
471
|
+
io.value ? (d(), y("div", nt, null, 512)) : A("", !0),
|
|
472
|
+
e.value.style.chart.title.text ? (d(), y("div", rt, [
|
|
473
|
+
(d(), T(a(je), {
|
|
474
|
+
key: `title_${ne.value}`,
|
|
475
|
+
config: {
|
|
476
|
+
title: {
|
|
477
|
+
cy: "molecule-div-title",
|
|
478
|
+
...e.value.style.chart.title
|
|
479
|
+
},
|
|
480
|
+
subtitle: {
|
|
481
|
+
cy: "molecule-div-subtitle",
|
|
482
|
+
...e.value.style.chart.title.subtitle
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}, null, 8, ["config"]))
|
|
486
|
+
])) : A("", !0),
|
|
487
|
+
e.value.userOptions.show && le.value && (a(ue) || a(X)) ? (d(), T(a(qe), {
|
|
488
|
+
ref_key: "userOptionsRef",
|
|
489
|
+
ref: G,
|
|
490
|
+
key: `user_options_${se.value}`,
|
|
491
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
492
|
+
color: e.value.style.chart.color,
|
|
493
|
+
isPrinting: a(de),
|
|
494
|
+
isImaging: a(ve),
|
|
495
|
+
uid: z.value,
|
|
496
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
497
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
498
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
499
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
500
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
501
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
502
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
503
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
504
|
+
isTooltip: v.value.showTooltip,
|
|
505
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
506
|
+
chartElement: $.value,
|
|
507
|
+
position: e.value.userOptions.position,
|
|
508
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
509
|
+
isAnnotation: P.value,
|
|
510
|
+
callbacks: e.value.userOptions.callbacks,
|
|
511
|
+
printScale: e.value.userOptions.print.scale,
|
|
512
|
+
tableDialog: e.value.table.useDialog,
|
|
513
|
+
onToggleFullscreen: me,
|
|
514
|
+
onGeneratePdf: a(fe),
|
|
515
|
+
onGenerateCsv: q,
|
|
516
|
+
onGenerateImage: a(he),
|
|
517
|
+
onGenerateSvg: $e,
|
|
518
|
+
onToggleTable: Ae,
|
|
519
|
+
onToggleLabels: ye,
|
|
520
|
+
onToggleTooltip: ke,
|
|
521
|
+
onToggleAnnotator: J,
|
|
522
|
+
style: M({
|
|
523
|
+
visibility: a(ue) ? a(X) ? "visible" : "hidden" : "visible"
|
|
524
|
+
})
|
|
525
|
+
}, Oe({ _: 2 }, [
|
|
526
|
+
o.$slots.menuIcon ? {
|
|
527
|
+
name: "menuIcon",
|
|
528
|
+
fn: r(({ isOpen: t, color: n }) => [
|
|
529
|
+
i(o.$slots, "menuIcon", p(C({ isOpen: t, color: n })), void 0, !0)
|
|
530
|
+
]),
|
|
531
|
+
key: "0"
|
|
532
|
+
} : void 0,
|
|
533
|
+
o.$slots.optionTooltip ? {
|
|
534
|
+
name: "optionTooltip",
|
|
535
|
+
fn: r(() => [
|
|
536
|
+
i(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
537
|
+
]),
|
|
538
|
+
key: "1"
|
|
539
|
+
} : void 0,
|
|
540
|
+
o.$slots.optionPdf ? {
|
|
541
|
+
name: "optionPdf",
|
|
542
|
+
fn: r(() => [
|
|
543
|
+
i(o.$slots, "optionPdf", {}, void 0, !0)
|
|
544
|
+
]),
|
|
545
|
+
key: "2"
|
|
546
|
+
} : void 0,
|
|
547
|
+
o.$slots.optionCsv ? {
|
|
548
|
+
name: "optionCsv",
|
|
549
|
+
fn: r(() => [
|
|
550
|
+
i(o.$slots, "optionCsv", {}, void 0, !0)
|
|
551
|
+
]),
|
|
552
|
+
key: "3"
|
|
553
|
+
} : void 0,
|
|
554
|
+
o.$slots.optionImg ? {
|
|
555
|
+
name: "optionImg",
|
|
556
|
+
fn: r(() => [
|
|
557
|
+
i(o.$slots, "optionImg", {}, void 0, !0)
|
|
558
|
+
]),
|
|
559
|
+
key: "4"
|
|
560
|
+
} : void 0,
|
|
561
|
+
o.$slots.optionSvg ? {
|
|
562
|
+
name: "optionSvg",
|
|
563
|
+
fn: r(() => [
|
|
564
|
+
i(o.$slots, "optionSvg", {}, void 0, !0)
|
|
565
|
+
]),
|
|
566
|
+
key: "5"
|
|
567
|
+
} : void 0,
|
|
568
|
+
o.$slots.optionTable ? {
|
|
569
|
+
name: "optionTable",
|
|
570
|
+
fn: r(() => [
|
|
571
|
+
i(o.$slots, "optionTable", {}, void 0, !0)
|
|
572
|
+
]),
|
|
573
|
+
key: "6"
|
|
574
|
+
} : void 0,
|
|
575
|
+
o.$slots.optionLabels ? {
|
|
576
|
+
name: "optionLabels",
|
|
577
|
+
fn: r(() => [
|
|
578
|
+
i(o.$slots, "optionLabels", {}, void 0, !0)
|
|
579
|
+
]),
|
|
580
|
+
key: "7"
|
|
581
|
+
} : void 0,
|
|
582
|
+
o.$slots.optionFullscreen ? {
|
|
583
|
+
name: "optionFullscreen",
|
|
584
|
+
fn: r(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
585
|
+
i(o.$slots, "optionFullscreen", p(C({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
586
|
+
]),
|
|
587
|
+
key: "8"
|
|
588
|
+
} : void 0,
|
|
589
|
+
o.$slots.optionAnnotator ? {
|
|
590
|
+
name: "optionAnnotator",
|
|
591
|
+
fn: r(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
592
|
+
i(o.$slots, "optionAnnotator", p(C({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
593
|
+
]),
|
|
594
|
+
key: "9"
|
|
595
|
+
} : 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"])) : A("", !0),
|
|
597
|
+
(d(), y("svg", {
|
|
598
|
+
ref_key: "svgRef",
|
|
599
|
+
ref: L,
|
|
600
|
+
key: `svg_${ce.value}`,
|
|
601
|
+
xmlns: a(Mo),
|
|
602
|
+
viewBox: `${a(U).x} ${a(U).y} ${a(U).width} ${a(U).height}`,
|
|
603
|
+
class: De({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
604
|
+
style: M(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
605
|
+
}, [
|
|
606
|
+
O(a(Je)),
|
|
607
|
+
o.$slots["chart-background"] ? (d(), y("foreignObject", {
|
|
608
|
+
key: 0,
|
|
609
|
+
x: 0,
|
|
610
|
+
y: 0,
|
|
611
|
+
width: b.value.width <= 0 ? 10 : b.value.width,
|
|
612
|
+
height: b.value.height <= 0 ? 10 : b.value.height,
|
|
613
|
+
style: {
|
|
614
|
+
pointerEvents: "none"
|
|
615
|
+
}
|
|
616
|
+
}, [
|
|
617
|
+
i(o.$slots, "chart-background", {}, void 0, !0)
|
|
618
|
+
], 8, ut)) : A("", !0),
|
|
619
|
+
S("defs", null, [
|
|
620
|
+
(d(!0), y(Eo, null, Bo(Object.keys(vo.value), (t) => (d(), y("radialGradient", {
|
|
621
|
+
id: `gradient_${t}`,
|
|
622
|
+
cx: "50%",
|
|
623
|
+
cy: "30%",
|
|
624
|
+
r: "50%",
|
|
625
|
+
fx: "50%",
|
|
626
|
+
fy: "50%"
|
|
627
|
+
}, [
|
|
628
|
+
S("stop", {
|
|
629
|
+
offset: "0%",
|
|
630
|
+
"stop-color": a(zo)(t, 0.5)
|
|
631
|
+
}, null, 8, dt),
|
|
632
|
+
S("stop", {
|
|
633
|
+
offset: "100%",
|
|
634
|
+
"stop-color": t
|
|
635
|
+
}, null, 8, vt)
|
|
636
|
+
], 8, ct))), 256))
|
|
637
|
+
]),
|
|
638
|
+
O(a(Ke), {
|
|
639
|
+
dataset: k.value,
|
|
640
|
+
color: e.value.style.chart.links.stroke,
|
|
641
|
+
backgroundColor: e.value.style.chart.backgroundColor
|
|
642
|
+
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
643
|
+
O(a(eo), {
|
|
644
|
+
dataset: k.value,
|
|
645
|
+
hoveredUid: B.value,
|
|
646
|
+
stroke: e.value.style.chart.nodes.stroke,
|
|
647
|
+
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
648
|
+
onClick: yo,
|
|
649
|
+
onHover: ho
|
|
650
|
+
}, {
|
|
651
|
+
node: r(({ node: t }) => [
|
|
652
|
+
i(o.$slots, "node", p(C({ node: t })), void 0, !0)
|
|
653
|
+
]),
|
|
654
|
+
_: 3
|
|
655
|
+
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
656
|
+
v.value.showDataLabels && !a(j) ? (d(), T(a(Qe), {
|
|
657
|
+
key: 1,
|
|
658
|
+
dataset: k.value,
|
|
659
|
+
color: e.value.style.chart.color,
|
|
660
|
+
hoveredUid: B.value
|
|
661
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : A("", !0),
|
|
662
|
+
i(o.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
663
|
+
], 14, it)),
|
|
664
|
+
o.$slots.watermark ? (d(), y("div", ft, [
|
|
665
|
+
i(o.$slots, "watermark", p(C({ isPrinting: a(de) || a(ve) })), void 0, !0)
|
|
666
|
+
])) : A("", !0),
|
|
667
|
+
a(mo) ? (d(), y("div", ht, [
|
|
668
|
+
i(o.$slots, "reset-action", { reset: a(K) }, () => [
|
|
669
|
+
S("button", {
|
|
670
|
+
"data-cy-reset": "",
|
|
671
|
+
tabindex: "0",
|
|
672
|
+
role: "button",
|
|
673
|
+
class: "vue-data-ui-refresh-button",
|
|
674
|
+
style: M({
|
|
675
|
+
background: e.value.style.chart.backgroundColor
|
|
676
|
+
}),
|
|
677
|
+
onClick: l[0] || (l[0] = (t) => a(K)(!0))
|
|
678
|
+
}, [
|
|
679
|
+
O(a(te), {
|
|
680
|
+
name: "refresh",
|
|
681
|
+
stroke: e.value.style.chart.color
|
|
682
|
+
}, null, 8, ["stroke"])
|
|
683
|
+
], 4)
|
|
684
|
+
], !0)
|
|
685
|
+
])) : A("", !0),
|
|
686
|
+
o.$slots.source ? (d(), y("div", pt, [
|
|
687
|
+
i(o.$slots, "source", {}, void 0, !0)
|
|
688
|
+
], 512)) : A("", !0),
|
|
689
|
+
O(a(We), {
|
|
690
|
+
show: v.value.showTooltip && V.value,
|
|
691
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
692
|
+
color: e.value.style.chart.tooltip.color,
|
|
693
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
694
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
695
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
696
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
697
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
698
|
+
position: e.value.style.chart.tooltip.position,
|
|
699
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
700
|
+
parent: $.value,
|
|
701
|
+
content: N.value,
|
|
702
|
+
isFullscreen: _.value,
|
|
703
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
704
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
705
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
706
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
707
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
708
|
+
}, {
|
|
709
|
+
"tooltip-before": r(() => [
|
|
710
|
+
i(o.$slots, "tooltip-before", p(C({ ...Z.value })), void 0, !0)
|
|
711
|
+
]),
|
|
712
|
+
"tooltip-after": r(() => [
|
|
713
|
+
i(o.$slots, "tooltip-after", p(C({ ...Z.value })), void 0, !0)
|
|
714
|
+
]),
|
|
715
|
+
_: 3
|
|
716
|
+
}, 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 ? (d(), T(Po(I.value.component), Io({ key: 7 }, I.value.props, {
|
|
718
|
+
ref_key: "tableUnit",
|
|
719
|
+
ref: E,
|
|
720
|
+
onClose: we
|
|
721
|
+
}), Oe({
|
|
722
|
+
content: r(() => [
|
|
723
|
+
(d(), T(a(Ye), {
|
|
724
|
+
key: `table_${re.value}`,
|
|
725
|
+
colNames: F.value.colNames,
|
|
726
|
+
head: F.value.head,
|
|
727
|
+
body: F.value.body,
|
|
728
|
+
config: F.value.config,
|
|
729
|
+
title: e.value.table.useDialog ? "" : I.value.title,
|
|
730
|
+
withCloseButton: !e.value.table.useDialog,
|
|
731
|
+
onClose: we
|
|
732
|
+
}, {
|
|
733
|
+
th: r(({ th: t }) => [
|
|
734
|
+
S("div", {
|
|
735
|
+
innerHTML: t,
|
|
736
|
+
style: { display: "flex", "align-items": "center" }
|
|
737
|
+
}, null, 8, Ct)
|
|
738
|
+
]),
|
|
739
|
+
td: r(({ td: t }) => [
|
|
740
|
+
Se(Ee(t.name || t), 1)
|
|
741
|
+
]),
|
|
742
|
+
_: 1
|
|
743
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
744
|
+
]),
|
|
745
|
+
_: 2
|
|
746
|
+
}, [
|
|
747
|
+
e.value.table.useDialog ? {
|
|
748
|
+
name: "title",
|
|
749
|
+
fn: r(() => [
|
|
750
|
+
Se(Ee(I.value.title), 1)
|
|
751
|
+
]),
|
|
752
|
+
key: "0"
|
|
753
|
+
} : void 0,
|
|
754
|
+
e.value.table.useDialog ? {
|
|
755
|
+
name: "actions",
|
|
756
|
+
fn: r(() => [
|
|
757
|
+
S("button", {
|
|
758
|
+
tabindex: "0",
|
|
759
|
+
class: "vue-ui-user-options-button",
|
|
760
|
+
onClick: l[1] || (l[1] = (t) => q(e.value.userOptions.callbacks.csv))
|
|
761
|
+
}, [
|
|
762
|
+
O(a(te), {
|
|
763
|
+
name: "excel",
|
|
764
|
+
stroke: I.value.props.color
|
|
765
|
+
}, null, 8, ["stroke"])
|
|
766
|
+
])
|
|
767
|
+
]),
|
|
768
|
+
key: "1"
|
|
769
|
+
} : void 0
|
|
770
|
+
]), 1040)) : A("", !0),
|
|
771
|
+
a(j) ? (d(), T(qo, { key: 8 })) : A("", !0)
|
|
772
|
+
], 46, st));
|
|
773
|
+
}
|
|
774
|
+
}, gt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-3823dab9"]]), Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
775
|
+
__proto__: null,
|
|
776
|
+
default: gt
|
|
777
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
778
|
+
export {
|
|
779
|
+
Et as a,
|
|
780
|
+
Bt as b,
|
|
781
|
+
gt as v
|
|
782
|
+
};
|