vue-data-ui 3.22.8 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-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-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -8,32 +8,33 @@ import { t as u } from "./useNestedProp-DIuuzG1r.js";
|
|
|
8
8
|
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as pe } from "./img-DnP3eXuv.js";
|
|
10
10
|
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
-
import { t as he } from "./
|
|
12
|
-
import { t as ge } from "./
|
|
13
|
-
import { t as _e } from "./
|
|
14
|
-
import { t as ve } from "./
|
|
15
|
-
import {
|
|
11
|
+
import { t as he } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
|
|
13
|
+
import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
|
+
import { t as ve } from "./vue_ui_molecule-CO9L59SF.js";
|
|
15
|
+
import { t as ye } from "./usePanZoom-CYU3B4T3.js";
|
|
16
|
+
import { Fragment as be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as xe, createTextVNode as Se, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ce, nextTick as y, normalizeClass as we, normalizeProps as b, normalizeStyle as x, onMounted as Te, openBlock as S, ref as C, renderList as Ee, renderSlot as w, resolveDynamicComponent as De, toDisplayString as Oe, toRefs as ke, unref as T, useCssVars as Ae, watch as E, withCtx as D } from "vue";
|
|
16
17
|
//#region src/components/vue-ui-molecule.vue
|
|
17
|
-
var
|
|
18
|
+
var je = /* @__PURE__ */ e({ default: () => O }), Me = ["id"], Ne = {
|
|
18
19
|
key: 1,
|
|
19
20
|
ref: "noTitle",
|
|
20
21
|
class: "vue-data-ui-no-title-space",
|
|
21
22
|
style: "height:36px; width: 100%;background:transparent"
|
|
22
|
-
},
|
|
23
|
+
}, Pe = {
|
|
23
24
|
key: 2,
|
|
24
25
|
style: "width:100%;background:transparent;"
|
|
25
|
-
},
|
|
26
|
+
}, Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = {
|
|
26
27
|
key: 4,
|
|
27
28
|
class: "vue-data-ui-watermark"
|
|
28
|
-
},
|
|
29
|
+
}, Re = {
|
|
29
30
|
key: 5,
|
|
30
31
|
"data-dom-to-png-ignore": "",
|
|
31
32
|
class: "reset-wrapper"
|
|
32
|
-
},
|
|
33
|
+
}, ze = {
|
|
33
34
|
key: 6,
|
|
34
35
|
ref: "source",
|
|
35
36
|
dir: "auto"
|
|
36
|
-
},
|
|
37
|
+
}, Be = ["innerHTML"], O = /*#__PURE__*/ me({
|
|
37
38
|
__name: "vue-ui-molecule",
|
|
38
39
|
props: {
|
|
39
40
|
config: {
|
|
@@ -50,21 +51,21 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
emits: ["selectNode", "copyAlt"],
|
|
53
|
-
setup(e, { expose: me, emit:
|
|
54
|
-
|
|
55
|
-
let O = _(() => import("./Title-CcNiYzEo.js").then((e) => e.t)),
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
setup(e, { expose: me, emit: je }) {
|
|
55
|
+
Ae((e) => ({ v62768f10: Qt.value }));
|
|
56
|
+
let O = _(() => import("./Title-CcNiYzEo.js").then((e) => e.t)), Ve = _(() => import("./Tooltip-CxOrWlFy.js")), He = _(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ue = _(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), We = _(() => import("./DataTable-BxpTMgfK.js")), Ge = _(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ke = _(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), qe = _(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Je = _(() => import("./RecursiveLinks-BygcpDiT.js")), Ye = _(() => import("./RecursiveLabels-D9rfID6q.js")), Xe = _(() => import("./RecursiveCircles-D6aDPmoe.js")), Ze = _(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_molecule: Qe } = se(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), k = e, tt = je, nt = d(() => !!k.dataset && k.dataset.length);
|
|
57
|
+
Te(() => {
|
|
58
|
+
it();
|
|
58
59
|
});
|
|
59
|
-
let
|
|
60
|
-
function
|
|
60
|
+
let rt = d(() => F.value.debug);
|
|
61
|
+
function it() {
|
|
61
62
|
ie(k.dataset) && t({
|
|
62
63
|
componentName: "VueUiMolecule",
|
|
63
64
|
type: "dataset",
|
|
64
|
-
debug:
|
|
65
|
+
debug: rt.value
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
let
|
|
68
|
+
let at = C(ee()), ot = C(!1), A = C(""), j = C(null), st = C(0), ct = C(0), lt = C(0), M = C(null), ut = C(null), N = C(!1), P = C(!1), F = C(V()), I = d(() => F.value.userOptions.useCursorPointer), dt = d(() => i({
|
|
68
69
|
defaultConfig: {
|
|
69
70
|
userOptions: { show: !1 },
|
|
70
71
|
table: { show: !1 },
|
|
@@ -74,11 +75,11 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
74
75
|
links: { stroke: "#6A6A6A80" }
|
|
75
76
|
} }
|
|
76
77
|
},
|
|
77
|
-
userConfig:
|
|
78
|
-
})), { loading:
|
|
79
|
-
...
|
|
80
|
-
FINAL_CONFIG:
|
|
81
|
-
prepareConfig:
|
|
78
|
+
userConfig: F.value.skeletonConfig ?? {}
|
|
79
|
+
})), { loading: L, FINAL_DATASET: R } = le({
|
|
80
|
+
...ke(k),
|
|
81
|
+
FINAL_CONFIG: F,
|
|
82
|
+
prepareConfig: V,
|
|
82
83
|
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
83
84
|
name: "_",
|
|
84
85
|
color: "#CACACA",
|
|
@@ -194,19 +195,19 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
194
195
|
]
|
|
195
196
|
}],
|
|
196
197
|
skeletonConfig: i({
|
|
197
|
-
defaultConfig:
|
|
198
|
-
userConfig:
|
|
198
|
+
defaultConfig: F.value,
|
|
199
|
+
userConfig: dt.value
|
|
199
200
|
})
|
|
200
|
-
}), { userOptionsVisible:
|
|
201
|
-
function
|
|
201
|
+
}), { userOptionsVisible: z, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ge({ config: F.value }), { svgRef: B } = _e({ config: F.value.style.chart.title });
|
|
202
|
+
function V() {
|
|
202
203
|
let e = u({
|
|
203
204
|
userConfig: k.config,
|
|
204
|
-
defaultConfig:
|
|
205
|
+
defaultConfig: Qe
|
|
205
206
|
}), t = e.theme;
|
|
206
207
|
if (!t) return e;
|
|
207
|
-
if (
|
|
208
|
+
if (!$e.value(e)) return et(e), e;
|
|
208
209
|
let n = u({
|
|
209
|
-
userConfig:
|
|
210
|
+
userConfig: ve[t] || k.config,
|
|
210
211
|
defaultConfig: e
|
|
211
212
|
}), r = u({
|
|
212
213
|
userConfig: k.config,
|
|
@@ -218,53 +219,53 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
218
219
|
};
|
|
219
220
|
}
|
|
220
221
|
E(() => k.config, (e) => {
|
|
221
|
-
|
|
222
|
+
F.value = V(), z.value = !F.value.userOptions.showOnChartHover, it(), ct.value += 1, lt.value += 1, U.value.showTable = F.value.table.show, U.value.showTooltip = F.value.style.chart.tooltip.show, U.value.showZoom = F.value.style.chart.zoom.show;
|
|
222
223
|
}, { deep: !0 });
|
|
223
|
-
let
|
|
224
|
-
|
|
224
|
+
let mt = C(0), ht = () => {
|
|
225
|
+
mt.value += 1;
|
|
225
226
|
};
|
|
226
|
-
E([() =>
|
|
227
|
-
e || (await y(), W.value =
|
|
227
|
+
E([() => L.value, () => R.value], async ([e]) => {
|
|
228
|
+
e || (await y(), W.value = St(), await y(), ht(), await y(), Ht({
|
|
228
229
|
x: 0,
|
|
229
230
|
y: 0,
|
|
230
231
|
width: 400,
|
|
231
232
|
height: 400
|
|
232
|
-
}),
|
|
233
|
+
}), Bt(!1));
|
|
233
234
|
}, {
|
|
234
235
|
flush: "post",
|
|
235
236
|
deep: !1
|
|
236
237
|
});
|
|
237
|
-
let { isPrinting:
|
|
238
|
-
elementId: `cluster_${
|
|
239
|
-
fileName:
|
|
240
|
-
options:
|
|
241
|
-
}),
|
|
242
|
-
showTable:
|
|
238
|
+
let { isPrinting: H, isImaging: gt, generatePdf: _t, generateImage: vt } = ce({
|
|
239
|
+
elementId: `cluster_${at.value}`,
|
|
240
|
+
fileName: F.value.style.chart.title.text || "vue-ui-molecule",
|
|
241
|
+
options: F.value.userOptions.print
|
|
242
|
+
}), yt = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), bt = d(() => a(F.value.customPalette)), U = C({
|
|
243
|
+
showTable: F.value.table.show,
|
|
243
244
|
showDataLabels: !0,
|
|
244
|
-
showTooltip:
|
|
245
|
-
showZoom:
|
|
245
|
+
showTooltip: F.value.style.chart.tooltip.show,
|
|
246
|
+
showZoom: F.value.style.chart.zoom.show
|
|
246
247
|
});
|
|
247
|
-
E(
|
|
248
|
+
E(F, () => {
|
|
248
249
|
U.value = {
|
|
249
|
-
showTable:
|
|
250
|
+
showTable: F.value.table.show,
|
|
250
251
|
showDataLabels: !0,
|
|
251
|
-
showTooltip:
|
|
252
|
-
showZoom:
|
|
252
|
+
showTooltip: F.value.style.chart.tooltip.show,
|
|
253
|
+
showZoom: F.value.style.chart.zoom.show
|
|
253
254
|
};
|
|
254
255
|
}, { immediate: !0 });
|
|
255
|
-
function
|
|
256
|
-
return Array.isArray(e) && e.length > 0 && e[0].nodes ?
|
|
256
|
+
function xt(e, t = 0) {
|
|
257
|
+
return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
-
let e =
|
|
259
|
+
function St() {
|
|
260
|
+
let e = xt(R.value), t = 100, n = t;
|
|
260
261
|
for (let r = 0; r < e; r += 1) t /= 1, n += t;
|
|
261
262
|
return {
|
|
262
263
|
height: n,
|
|
263
264
|
width: n
|
|
264
265
|
};
|
|
265
266
|
}
|
|
266
|
-
let W = C(
|
|
267
|
-
function
|
|
267
|
+
let W = C(St());
|
|
268
|
+
function Ct(e, t = {
|
|
268
269
|
x: -W.value.width / 2.43,
|
|
269
270
|
y: W.value.height / 2
|
|
270
271
|
}, r = W.value.width / 1.1, i = 24, a = 0, o = 0, s = "#BBBBBB", c = 0) {
|
|
@@ -280,10 +281,10 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
280
281
|
let t = re(e.color);
|
|
281
282
|
return t.startsWith("#") ? t : `#${t}`;
|
|
282
283
|
})() : null, l;
|
|
283
|
-
ie ? l = ie : c === 0 ? l = s : c === 1 ? (l =
|
|
284
|
+
ie ? l = ie : c === 0 ? l = s : c === 1 ? (l = bt.value[o] || te[o] || s, o += 1) : l = s, e.polygonPath = { coordinates: [n] }, e.circleRadius = i, e.color = l, e.strokeWidth = Math.min(F.value.style.chart.links.strokeWidth / (c + 1), i / 2), e.uid = ee(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, n, r / 2.9, i / 2.2, a + Math.PI * t / e.nodes.length, o, l, c + 1));
|
|
284
285
|
}), e;
|
|
285
286
|
}
|
|
286
|
-
function
|
|
287
|
+
function wt(e) {
|
|
287
288
|
let t = /* @__PURE__ */ new Set();
|
|
288
289
|
function n(e) {
|
|
289
290
|
e.forEach((e) => {
|
|
@@ -298,42 +299,42 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
298
299
|
r[e] = `gradient_${e.slice(1)}`;
|
|
299
300
|
}), r;
|
|
300
301
|
}
|
|
301
|
-
let
|
|
302
|
-
function
|
|
302
|
+
let Tt = d(() => wt(G.value)), G = d(() => Ct(c(R.value))), K = C(null);
|
|
303
|
+
function Et(e) {
|
|
303
304
|
K.value = {
|
|
304
305
|
datapoint: e,
|
|
305
306
|
seriesIndex: -1,
|
|
306
307
|
series: G.value,
|
|
307
|
-
config:
|
|
308
|
+
config: F.value
|
|
308
309
|
};
|
|
309
|
-
let t =
|
|
310
|
+
let t = F.value.style.chart.tooltip.customFormat;
|
|
310
311
|
if (oe(t) && l(() => t({
|
|
311
312
|
seriesIndex: -1,
|
|
312
313
|
datapoint: e,
|
|
313
314
|
series: G.value,
|
|
314
|
-
config:
|
|
315
|
-
})))
|
|
315
|
+
config: F.value
|
|
316
|
+
}))) A.value = t({
|
|
316
317
|
seriesIndex: -1,
|
|
317
318
|
datapoint: e,
|
|
318
319
|
series: G.value,
|
|
319
|
-
config:
|
|
320
|
+
config: F.value
|
|
320
321
|
});
|
|
321
322
|
else {
|
|
322
323
|
let t = "";
|
|
323
|
-
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (t += `<div style="width:100%;border-top:1px solid ${
|
|
324
|
+
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (t += `<div style="width:100%;border-top:1px solid ${F.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), A.value = `<div style="font-family:inherit">${t}</div>`;
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
|
-
let q = C(null), J = C(null),
|
|
327
|
-
function
|
|
328
|
-
|
|
327
|
+
let q = C(null), J = C(null), Dt = C(null);
|
|
328
|
+
function Ot(e) {
|
|
329
|
+
Dt.value = q.value, q.value = e, e ? F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
329
330
|
datapoint: e,
|
|
330
331
|
seriesIndex: -1
|
|
331
|
-
}) :
|
|
332
|
-
datapoint:
|
|
332
|
+
}) : F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
333
|
+
datapoint: Dt.value || q.value,
|
|
333
334
|
seriesIndex: -1
|
|
334
|
-
}), e ? (
|
|
335
|
+
}), e ? (ot.value = !0, Et(e), J.value = e.uid) : (ot.value = !1, A.value = "", J.value = null);
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function kt(e) {
|
|
337
338
|
let t = [];
|
|
338
339
|
function n(e) {
|
|
339
340
|
e.forEach((e) => {
|
|
@@ -348,13 +349,13 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
348
349
|
}
|
|
349
350
|
return n(e), t;
|
|
350
351
|
}
|
|
351
|
-
let
|
|
352
|
+
let At = d(() => kt(G.value)), Y = d(() => ({
|
|
352
353
|
head: [
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
F.value.table.translations.nodeName,
|
|
355
|
+
F.value.table.translations.details,
|
|
356
|
+
F.value.table.translations.ancestor
|
|
356
357
|
],
|
|
357
|
-
body:
|
|
358
|
+
body: At.value.map((e, t) => [
|
|
358
359
|
{
|
|
359
360
|
color: e.color,
|
|
360
361
|
name: e.name
|
|
@@ -364,79 +365,79 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
364
365
|
]),
|
|
365
366
|
config: {
|
|
366
367
|
th: {
|
|
367
|
-
backgroundColor:
|
|
368
|
-
color:
|
|
369
|
-
outline:
|
|
368
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
369
|
+
color: F.value.table.th.color,
|
|
370
|
+
outline: F.value.table.th.outline
|
|
370
371
|
},
|
|
371
372
|
td: {
|
|
372
|
-
backgroundColor:
|
|
373
|
-
color:
|
|
374
|
-
outline:
|
|
373
|
+
backgroundColor: F.value.table.td.backgroundColor,
|
|
374
|
+
color: F.value.table.td.color,
|
|
375
|
+
outline: F.value.table.td.outline
|
|
375
376
|
},
|
|
376
|
-
breakpoint:
|
|
377
|
+
breakpoint: F.value.table.responsiveBreakpoint
|
|
377
378
|
},
|
|
378
379
|
colNames: [
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
F.value.table.translations.nodeName,
|
|
381
|
+
F.value.table.translations.details,
|
|
382
|
+
F.value.table.translations.ancestor
|
|
382
383
|
]
|
|
383
384
|
}));
|
|
384
|
-
function
|
|
385
|
+
function jt(e = null) {
|
|
385
386
|
y(() => {
|
|
386
387
|
let t = Y.value.body.map((e, t) => [
|
|
387
388
|
[e[0].name],
|
|
388
389
|
[e[1]],
|
|
389
390
|
[e[2]]
|
|
390
391
|
]), n = o([
|
|
391
|
-
[
|
|
392
|
-
[
|
|
392
|
+
[F.value.style.chart.title.text],
|
|
393
|
+
[F.value.style.chart.title.subtitle.text],
|
|
393
394
|
[[...Y.value.head]]
|
|
394
395
|
].concat(t));
|
|
395
396
|
e ? e(n) : ne({
|
|
396
397
|
csvContent: n,
|
|
397
|
-
title:
|
|
398
|
+
title: F.value.style.chart.title.text || "vue-ui-molecule"
|
|
398
399
|
});
|
|
399
400
|
});
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
+
function Mt() {
|
|
402
403
|
return G.value;
|
|
403
404
|
}
|
|
404
405
|
let X = C(!1);
|
|
405
|
-
function
|
|
406
|
+
function Nt(e) {
|
|
406
407
|
X.value = e, st.value += 1;
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
+
function Pt() {
|
|
409
410
|
U.value.showTable = !U.value.showTable;
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function Ft() {
|
|
412
413
|
U.value.showDataLabels = !U.value.showDataLabels;
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
+
function It() {
|
|
415
416
|
U.value.showTooltip = !U.value.showTooltip;
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
+
function Lt() {
|
|
418
419
|
U.value.showZoom = !U.value.showZoom;
|
|
419
420
|
}
|
|
420
421
|
let Z = C(!1);
|
|
421
|
-
function
|
|
422
|
+
function Rt() {
|
|
422
423
|
Z.value = !Z.value;
|
|
423
424
|
}
|
|
424
|
-
let
|
|
425
|
+
let zt = d(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = ye(B, {
|
|
425
426
|
x: 0,
|
|
426
427
|
y: 0,
|
|
427
428
|
width: Math.max(10, W.value.width),
|
|
428
429
|
height: Math.max(10, W.value.height)
|
|
429
|
-
},
|
|
430
|
-
function
|
|
431
|
-
|
|
430
|
+
}, F.value.style.chart.zoom.speed, zt);
|
|
431
|
+
function Ut(e) {
|
|
432
|
+
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
432
433
|
datapoint: e,
|
|
433
434
|
seriesIndex: -1
|
|
434
|
-
}),
|
|
435
|
+
}), tt("selectNode", e);
|
|
435
436
|
}
|
|
436
|
-
async function
|
|
437
|
-
if (!
|
|
438
|
-
let { width: t, height: n } =
|
|
439
|
-
domElement:
|
|
437
|
+
async function Wt({ scale: e = 2 } = {}) {
|
|
438
|
+
if (!j.value) return;
|
|
439
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: ee, base64: i } = await pe({
|
|
440
|
+
domElement: j.value,
|
|
440
441
|
base64: !0,
|
|
441
442
|
img: !0,
|
|
442
443
|
scale: e
|
|
@@ -444,128 +445,128 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
444
445
|
return {
|
|
445
446
|
imageUri: ee,
|
|
446
447
|
base64: i,
|
|
447
|
-
title:
|
|
448
|
+
title: F.value.style.chart.title.text,
|
|
448
449
|
width: t,
|
|
449
450
|
height: n,
|
|
450
451
|
aspectRatio: r
|
|
451
452
|
};
|
|
452
453
|
}
|
|
453
454
|
let $ = d(() => {
|
|
454
|
-
let e =
|
|
455
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = U.value.showTable;
|
|
455
456
|
return {
|
|
456
|
-
component: e ?
|
|
457
|
-
title: `${
|
|
457
|
+
component: e ? Ze : Ue,
|
|
458
|
+
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
458
459
|
props: e ? {
|
|
459
|
-
backgroundColor:
|
|
460
|
-
color:
|
|
461
|
-
headerColor:
|
|
462
|
-
headerBg:
|
|
460
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
461
|
+
color: F.value.table.th.color,
|
|
462
|
+
headerColor: F.value.table.th.color,
|
|
463
|
+
headerBg: F.value.table.th.backgroundColor,
|
|
463
464
|
isFullscreen: X.value,
|
|
464
|
-
fullscreenParent:
|
|
465
|
+
fullscreenParent: j.value,
|
|
465
466
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
466
|
-
isCursorPointer:
|
|
467
|
+
isCursorPointer: I.value
|
|
467
468
|
} : {
|
|
468
469
|
hideDetails: !0,
|
|
469
470
|
config: {
|
|
470
471
|
open: t,
|
|
471
472
|
maxHeight: 1e4,
|
|
472
473
|
body: {
|
|
473
|
-
backgroundColor:
|
|
474
|
-
color:
|
|
474
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
475
|
+
color: F.value.style.chart.color
|
|
475
476
|
},
|
|
476
477
|
head: {
|
|
477
|
-
backgroundColor:
|
|
478
|
-
color:
|
|
478
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
479
|
+
color: F.value.style.chart.color
|
|
479
480
|
}
|
|
480
481
|
}
|
|
481
482
|
}
|
|
482
483
|
};
|
|
483
484
|
});
|
|
484
485
|
E(() => U.value.showTable, (e) => {
|
|
485
|
-
|
|
486
|
+
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
486
487
|
});
|
|
487
|
-
function
|
|
488
|
-
U.value.showTable = !1,
|
|
488
|
+
function Gt() {
|
|
489
|
+
U.value.showTable = !1, ut.value && ut.value.setTableIconState(!1);
|
|
489
490
|
}
|
|
490
|
-
let
|
|
491
|
-
svg:
|
|
492
|
-
title: d(() =>
|
|
493
|
-
backgroundColor:
|
|
491
|
+
let Kt = d(() => F.value.style.chart.backgroundColor), { exportSvg: qt, getSvg: Jt } = de({
|
|
492
|
+
svg: B,
|
|
493
|
+
title: d(() => F.value.style.chart.title),
|
|
494
|
+
backgroundColor: Kt
|
|
494
495
|
});
|
|
495
|
-
async function
|
|
496
|
-
|
|
496
|
+
async function Yt({ isCb: e }) {
|
|
497
|
+
P.value = !0, await y();
|
|
497
498
|
try {
|
|
498
499
|
if (e) {
|
|
499
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
500
|
-
await Promise.resolve(
|
|
500
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Jt();
|
|
501
|
+
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
501
502
|
blob: e,
|
|
502
503
|
url: t,
|
|
503
504
|
text: n,
|
|
504
505
|
dataUrl: r
|
|
505
506
|
}));
|
|
506
|
-
} else await Promise.resolve(
|
|
507
|
+
} else await Promise.resolve(qt());
|
|
507
508
|
} finally {
|
|
508
|
-
|
|
509
|
+
P.value = !1;
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
+
function Xt(e) {
|
|
512
513
|
if (e?.stage === "start") {
|
|
513
|
-
|
|
514
|
+
N.value = !0;
|
|
514
515
|
return;
|
|
515
516
|
}
|
|
516
517
|
if (e?.stage === "end") {
|
|
517
|
-
|
|
518
|
+
N.value = !1;
|
|
518
519
|
return;
|
|
519
520
|
}
|
|
520
|
-
|
|
521
|
+
vt();
|
|
521
522
|
}
|
|
522
|
-
async function
|
|
523
|
-
if (
|
|
524
|
-
config:
|
|
523
|
+
async function Zt() {
|
|
524
|
+
if (tt("copyAlt", {
|
|
525
|
+
config: F.value,
|
|
525
526
|
dataset: G.value
|
|
526
|
-
}), !
|
|
527
|
+
}), !F.value.userOptions.callbacks.altCopy) {
|
|
527
528
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
528
529
|
return;
|
|
529
530
|
}
|
|
530
|
-
await Promise.resolve(
|
|
531
|
-
config:
|
|
531
|
+
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
532
|
+
config: F.value,
|
|
532
533
|
dataset: G.value
|
|
533
534
|
}));
|
|
534
535
|
}
|
|
535
|
-
let
|
|
536
|
+
let Qt = d(() => F.value.style.chart.color);
|
|
536
537
|
return me({
|
|
537
|
-
getData:
|
|
538
|
-
getImage:
|
|
539
|
-
generatePdf:
|
|
540
|
-
generateCsv:
|
|
541
|
-
generateImage:
|
|
542
|
-
generateSvg:
|
|
543
|
-
toggleTable:
|
|
544
|
-
toggleLabels:
|
|
545
|
-
toggleTooltip:
|
|
546
|
-
toggleAnnotator:
|
|
547
|
-
toggleFullscreen:
|
|
548
|
-
toggleZoom:
|
|
549
|
-
copyAlt:
|
|
538
|
+
getData: Mt,
|
|
539
|
+
getImage: Wt,
|
|
540
|
+
generatePdf: _t,
|
|
541
|
+
generateCsv: jt,
|
|
542
|
+
generateImage: vt,
|
|
543
|
+
generateSvg: Yt,
|
|
544
|
+
toggleTable: Pt,
|
|
545
|
+
toggleLabels: Ft,
|
|
546
|
+
toggleTooltip: It,
|
|
547
|
+
toggleAnnotator: Rt,
|
|
548
|
+
toggleFullscreen: Nt,
|
|
549
|
+
toggleZoom: Lt,
|
|
550
|
+
copyAlt: Zt
|
|
550
551
|
}), (e, t) => (S(), m("div", {
|
|
551
552
|
ref_key: "moleculeChart",
|
|
552
|
-
ref:
|
|
553
|
-
class:
|
|
554
|
-
style: x(`font-family:${
|
|
555
|
-
id: `cluster_${
|
|
553
|
+
ref: j,
|
|
554
|
+
class: we(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
555
|
+
style: x(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
556
|
+
id: `cluster_${at.value}`,
|
|
556
557
|
onMouseleave: t[2] ||= (e) => {
|
|
557
558
|
q.value = null, J.value = null, T(ft)(!1);
|
|
558
559
|
},
|
|
559
560
|
onMouseenter: t[3] ||= () => T(ft)(!0)
|
|
560
561
|
}, [
|
|
561
|
-
|
|
562
|
+
F.value.userOptions.buttons.annotator && T(B) ? (S(), f(T(Ge), {
|
|
562
563
|
key: 0,
|
|
563
|
-
svgRef: T(
|
|
564
|
-
backgroundColor:
|
|
565
|
-
color:
|
|
564
|
+
svgRef: T(B),
|
|
565
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
566
|
+
color: F.value.style.chart.color,
|
|
566
567
|
active: Z.value,
|
|
567
|
-
isCursorPointer:
|
|
568
|
-
onClose:
|
|
568
|
+
isCursorPointer: I.value,
|
|
569
|
+
onClose: Rt
|
|
569
570
|
}, {
|
|
570
571
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
571
572
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -581,63 +582,63 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
581
582
|
"active",
|
|
582
583
|
"isCursorPointer"
|
|
583
584
|
])) : p("", !0),
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
yt.value ? (S(), m("div", Ne, null, 512)) : p("", !0),
|
|
586
|
+
F.value.style.chart.title.text ? (S(), m("div", Pe, [(S(), f(T(O), {
|
|
586
587
|
key: `title_${ct.value}`,
|
|
587
588
|
config: {
|
|
588
589
|
title: {
|
|
589
590
|
cy: "molecule-div-title",
|
|
590
|
-
...
|
|
591
|
+
...F.value.style.chart.title
|
|
591
592
|
},
|
|
592
593
|
subtitle: {
|
|
593
594
|
cy: "molecule-div-subtitle",
|
|
594
|
-
...
|
|
595
|
+
...F.value.style.chart.title.subtitle
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
598
|
}, null, 8, ["config"]))])) : p("", !0),
|
|
598
|
-
|
|
599
|
+
F.value.userOptions.show && nt.value && (T(pt) || T(z)) ? (S(), f(T(Ke), {
|
|
599
600
|
ref_key: "userOptionsRef",
|
|
600
|
-
ref:
|
|
601
|
+
ref: ut,
|
|
601
602
|
key: `user_options_${st.value}`,
|
|
602
|
-
backgroundColor:
|
|
603
|
-
color:
|
|
604
|
-
isPrinting: T(
|
|
605
|
-
isImaging: T(
|
|
606
|
-
uid:
|
|
607
|
-
hasTooltip:
|
|
608
|
-
hasPdf:
|
|
609
|
-
hasXls:
|
|
610
|
-
hasImg:
|
|
611
|
-
hasSvg:
|
|
612
|
-
hasTable:
|
|
613
|
-
hasLabel:
|
|
614
|
-
hasFullscreen:
|
|
615
|
-
hasAltCopy:
|
|
603
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
604
|
+
color: F.value.style.chart.color,
|
|
605
|
+
isPrinting: T(H),
|
|
606
|
+
isImaging: T(gt),
|
|
607
|
+
uid: at.value,
|
|
608
|
+
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
609
|
+
hasPdf: F.value.userOptions.buttons.pdf,
|
|
610
|
+
hasXls: F.value.userOptions.buttons.csv,
|
|
611
|
+
hasImg: F.value.userOptions.buttons.img,
|
|
612
|
+
hasSvg: F.value.userOptions.buttons.svg,
|
|
613
|
+
hasTable: F.value.userOptions.buttons.table,
|
|
614
|
+
hasLabel: F.value.userOptions.buttons.labels,
|
|
615
|
+
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
616
|
+
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
616
617
|
isTooltip: U.value.showTooltip,
|
|
617
|
-
titles: { ...
|
|
618
|
-
chartElement:
|
|
619
|
-
position:
|
|
620
|
-
hasAnnotator:
|
|
618
|
+
titles: { ...F.value.userOptions.buttonTitles },
|
|
619
|
+
chartElement: j.value,
|
|
620
|
+
position: F.value.userOptions.position,
|
|
621
|
+
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
621
622
|
isAnnotation: Z.value,
|
|
622
|
-
callbacks:
|
|
623
|
-
printScale:
|
|
624
|
-
tableDialog:
|
|
625
|
-
hasZoom:
|
|
623
|
+
callbacks: F.value.userOptions.callbacks,
|
|
624
|
+
printScale: F.value.userOptions.print.scale,
|
|
625
|
+
tableDialog: F.value.table.useDialog,
|
|
626
|
+
hasZoom: F.value.userOptions.buttons.zoom,
|
|
626
627
|
isZoom: U.value.showZoom,
|
|
627
|
-
isCursorPointer:
|
|
628
|
-
onToggleFullscreen:
|
|
629
|
-
onGeneratePdf: T(
|
|
630
|
-
onGenerateCsv:
|
|
631
|
-
onGenerateImage:
|
|
632
|
-
onGenerateSvg:
|
|
633
|
-
onToggleTable:
|
|
634
|
-
onToggleLabels:
|
|
635
|
-
onToggleTooltip:
|
|
636
|
-
onToggleAnnotator:
|
|
637
|
-
onToggleZoom:
|
|
638
|
-
onCopyAlt:
|
|
639
|
-
style: x({ visibility: T(pt) ? T(
|
|
640
|
-
},
|
|
628
|
+
isCursorPointer: I.value,
|
|
629
|
+
onToggleFullscreen: Nt,
|
|
630
|
+
onGeneratePdf: T(_t),
|
|
631
|
+
onGenerateCsv: jt,
|
|
632
|
+
onGenerateImage: Xt,
|
|
633
|
+
onGenerateSvg: Yt,
|
|
634
|
+
onToggleTable: Pt,
|
|
635
|
+
onToggleLabels: Ft,
|
|
636
|
+
onToggleTooltip: It,
|
|
637
|
+
onToggleAnnotator: Rt,
|
|
638
|
+
onToggleZoom: Lt,
|
|
639
|
+
onCopyAlt: Zt,
|
|
640
|
+
style: x({ visibility: T(pt) ? T(z) ? "visible" : "hidden" : "visible" })
|
|
641
|
+
}, xe({ _: 2 }, [
|
|
641
642
|
e.$slots.menuIcon ? {
|
|
642
643
|
name: "menuIcon",
|
|
643
644
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
@@ -723,17 +724,17 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
723
724
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
724
725
|
(S(), m("svg", {
|
|
725
726
|
ref_key: "svgRef",
|
|
726
|
-
ref:
|
|
727
|
-
key: `svg_${
|
|
727
|
+
ref: B,
|
|
728
|
+
key: `svg_${mt.value}`,
|
|
728
729
|
xmlns: T(ae),
|
|
729
730
|
viewBox: `${T(Q).x} ${T(Q).y} ${T(Q).width} ${T(Q).height}`,
|
|
730
|
-
class:
|
|
731
|
+
class: we({
|
|
731
732
|
"vue-data-ui-fullscreen--on": X.value,
|
|
732
733
|
"vue-data-ui-fulscreen--off": !X.value
|
|
733
734
|
}),
|
|
734
|
-
style: x(`overflow: hidden; background:transparent;color:${
|
|
735
|
+
style: x(`overflow: hidden; background:transparent;color:${F.value.style.chart.color}`)
|
|
735
736
|
}, [
|
|
736
|
-
g(T(
|
|
737
|
+
g(T(qe)),
|
|
737
738
|
e.$slots["chart-background"] ? (S(), m("foreignObject", {
|
|
738
739
|
key: 0,
|
|
739
740
|
x: 0,
|
|
@@ -741,39 +742,44 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
741
742
|
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
742
743
|
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
743
744
|
style: { pointerEvents: "none" }
|
|
744
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
745
|
-
h("defs", null, [(S(!0), m(
|
|
745
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : p("", !0),
|
|
746
|
+
h("defs", null, [(S(!0), m(be, null, Ee(Object.keys(Tt.value), (e, t) => (S(), f(he, {
|
|
747
|
+
t: "radial",
|
|
746
748
|
id: `gradient_${e}`,
|
|
749
|
+
key: `gradient_${e}_${t}`,
|
|
747
750
|
cx: "50%",
|
|
748
751
|
cy: "30%",
|
|
749
752
|
r: "50%",
|
|
750
753
|
fx: "50%",
|
|
751
|
-
fy: "50%"
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
754
|
+
fy: "50%",
|
|
755
|
+
stops: [[
|
|
756
|
+
"0%",
|
|
757
|
+
T(r)(e, .5),
|
|
758
|
+
1
|
|
759
|
+
], [
|
|
760
|
+
"100%",
|
|
761
|
+
e,
|
|
762
|
+
1
|
|
763
|
+
]]
|
|
764
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
765
|
+
g(T(Je), {
|
|
760
766
|
dataset: G.value,
|
|
761
|
-
color:
|
|
762
|
-
backgroundColor:
|
|
763
|
-
useChildColor:
|
|
767
|
+
color: F.value.style.chart.links.stroke,
|
|
768
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
769
|
+
useChildColor: F.value.style.chart.links.useChildColor
|
|
764
770
|
}, null, 8, [
|
|
765
771
|
"dataset",
|
|
766
772
|
"color",
|
|
767
773
|
"backgroundColor",
|
|
768
774
|
"useChildColor"
|
|
769
775
|
]),
|
|
770
|
-
g(T(
|
|
776
|
+
g(T(Xe), {
|
|
771
777
|
dataset: G.value,
|
|
772
778
|
hoveredUid: J.value,
|
|
773
|
-
stroke:
|
|
774
|
-
strokeHovered:
|
|
775
|
-
onClick:
|
|
776
|
-
onHover:
|
|
779
|
+
stroke: F.value.style.chart.nodes.stroke,
|
|
780
|
+
strokeHovered: F.value.style.chart.nodes.strokeHovered,
|
|
781
|
+
onClick: Ut,
|
|
782
|
+
onHover: Ot
|
|
777
783
|
}, {
|
|
778
784
|
node: D(({ node: t }) => [w(e.$slots, "node", b(v({ node: t })), void 0, !0)]),
|
|
779
785
|
"node-svg": D(({ nodeSvg: t }) => [w(e.$slots, "node-svg", b(v({ nodeSvg: t })), void 0, !0)]),
|
|
@@ -784,10 +790,10 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
784
790
|
"stroke",
|
|
785
791
|
"strokeHovered"
|
|
786
792
|
]),
|
|
787
|
-
U.value.showDataLabels && !T(
|
|
793
|
+
U.value.showDataLabels && !T(L) ? (S(), f(T(Ye), {
|
|
788
794
|
key: 1,
|
|
789
795
|
dataset: G.value,
|
|
790
|
-
color:
|
|
796
|
+
color: F.value.style.chart.color,
|
|
791
797
|
hoveredUid: J.value
|
|
792
798
|
}, null, 8, [
|
|
793
799
|
"dataset",
|
|
@@ -797,47 +803,47 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
797
803
|
w(e.$slots, "svg", { svg: {
|
|
798
804
|
...W.value,
|
|
799
805
|
drawingArea: { ...T(Q) },
|
|
800
|
-
isPrintingImg: T(
|
|
801
|
-
isPrintingSvg:
|
|
806
|
+
isPrintingImg: T(H) || T(gt) || N.value,
|
|
807
|
+
isPrintingSvg: P.value
|
|
802
808
|
} }, void 0, !0)
|
|
803
|
-
], 14,
|
|
804
|
-
e.$slots.watermark ? (S(), m("div",
|
|
805
|
-
T(
|
|
809
|
+
], 14, Fe)),
|
|
810
|
+
e.$slots.watermark ? (S(), m("div", Le, [w(e.$slots, "watermark", b(v({ isPrinting: T(H) || T(gt) || N.value || P.value })), void 0, !0)])) : p("", !0),
|
|
811
|
+
T(Vt) ? (S(), m("div", Re, [w(e.$slots, "reset-action", { reset: T(Bt) }, () => [h("button", {
|
|
806
812
|
"data-cy-reset": "",
|
|
807
813
|
tabindex: "0",
|
|
808
814
|
role: "button",
|
|
809
815
|
class: "vue-data-ui-refresh-button",
|
|
810
816
|
style: x({
|
|
811
|
-
background:
|
|
812
|
-
cursor:
|
|
817
|
+
background: F.value.style.chart.backgroundColor,
|
|
818
|
+
cursor: I.value ? "pointer" : "default"
|
|
813
819
|
}),
|
|
814
|
-
onClick: t[0] ||= (e) => T(
|
|
815
|
-
}, [g(T(
|
|
820
|
+
onClick: t[0] ||= (e) => T(Bt)(!0)
|
|
821
|
+
}, [g(T(He), {
|
|
816
822
|
name: "refresh",
|
|
817
|
-
stroke:
|
|
823
|
+
stroke: F.value.style.chart.color
|
|
818
824
|
}, null, 8, ["stroke"])], 4)], !0)])) : p("", !0),
|
|
819
|
-
e.$slots.source ? (S(), m("div",
|
|
820
|
-
g(T(
|
|
821
|
-
teleportTo:
|
|
822
|
-
show: U.value.showTooltip &&
|
|
823
|
-
backgroundColor:
|
|
824
|
-
color:
|
|
825
|
-
borderRadius:
|
|
826
|
-
borderColor:
|
|
827
|
-
borderWidth:
|
|
828
|
-
fontSize:
|
|
829
|
-
backgroundOpacity:
|
|
830
|
-
position:
|
|
831
|
-
offsetX:
|
|
832
|
-
offsetY:
|
|
833
|
-
parent:
|
|
834
|
-
content:
|
|
825
|
+
e.$slots.source ? (S(), m("div", ze, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
826
|
+
g(T(Ve), {
|
|
827
|
+
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
828
|
+
show: U.value.showTooltip && ot.value,
|
|
829
|
+
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
830
|
+
color: F.value.style.chart.tooltip.color,
|
|
831
|
+
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
832
|
+
borderColor: F.value.style.chart.tooltip.borderColor,
|
|
833
|
+
borderWidth: F.value.style.chart.tooltip.borderWidth,
|
|
834
|
+
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
835
|
+
backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
|
|
836
|
+
position: F.value.style.chart.tooltip.position,
|
|
837
|
+
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
838
|
+
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
839
|
+
parent: j.value,
|
|
840
|
+
content: A.value,
|
|
835
841
|
isFullscreen: X.value,
|
|
836
|
-
isCustom:
|
|
837
|
-
smooth:
|
|
838
|
-
backdropFilter:
|
|
839
|
-
smoothForce:
|
|
840
|
-
smoothSnapThreshold:
|
|
842
|
+
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
843
|
+
smooth: F.value.style.chart.tooltip.smooth,
|
|
844
|
+
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
845
|
+
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
846
|
+
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold
|
|
841
847
|
}, {
|
|
842
848
|
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...K.value })), void 0, !0)]),
|
|
843
849
|
tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...K.value })), void 0, !0)]),
|
|
@@ -865,21 +871,21 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
865
871
|
"smoothForce",
|
|
866
872
|
"smoothSnapThreshold"
|
|
867
873
|
]),
|
|
868
|
-
|
|
874
|
+
nt.value && F.value.userOptions.buttons.table ? (S(), f(De($.value.component), Ce({ key: 7 }, $.value.props, {
|
|
869
875
|
ref_key: "tableUnit",
|
|
870
|
-
ref:
|
|
871
|
-
onClose:
|
|
872
|
-
}),
|
|
873
|
-
content: D(() => [(S(), f(T(
|
|
876
|
+
ref: M,
|
|
877
|
+
onClose: Gt
|
|
878
|
+
}), xe({
|
|
879
|
+
content: D(() => [(S(), f(T(We), {
|
|
874
880
|
key: `table_${lt.value}`,
|
|
875
881
|
colNames: Y.value.colNames,
|
|
876
882
|
head: Y.value.head,
|
|
877
883
|
body: Y.value.body,
|
|
878
884
|
config: Y.value.config,
|
|
879
|
-
title:
|
|
880
|
-
withCloseButton: !
|
|
881
|
-
isCursorPointer:
|
|
882
|
-
onClose:
|
|
885
|
+
title: F.value.table.useDialog ? "" : $.value.title,
|
|
886
|
+
withCloseButton: !F.value.table.useDialog,
|
|
887
|
+
isCursorPointer: I.value,
|
|
888
|
+
onClose: Gt
|
|
883
889
|
}, {
|
|
884
890
|
th: D(({ th: e }) => [h("div", {
|
|
885
891
|
innerHTML: e,
|
|
@@ -887,8 +893,8 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
887
893
|
display: "flex",
|
|
888
894
|
"align-items": "center"
|
|
889
895
|
}
|
|
890
|
-
}, null, 8,
|
|
891
|
-
td: D(({ td: e }) => [
|
|
896
|
+
}, null, 8, Be)]),
|
|
897
|
+
td: D(({ td: e }) => [Se(Oe(e.name || e), 1)]),
|
|
892
898
|
_: 1
|
|
893
899
|
}, 8, [
|
|
894
900
|
"colNames",
|
|
@@ -900,26 +906,26 @@ var Ae = /* @__PURE__ */ e({ default: () => O }), je = ["id"], Me = {
|
|
|
900
906
|
"isCursorPointer"
|
|
901
907
|
]))]),
|
|
902
908
|
_: 2
|
|
903
|
-
}, [
|
|
909
|
+
}, [F.value.table.useDialog ? {
|
|
904
910
|
name: "title",
|
|
905
|
-
fn: D(() => [
|
|
911
|
+
fn: D(() => [Se(Oe($.value.title), 1)]),
|
|
906
912
|
key: "0"
|
|
907
|
-
} : void 0,
|
|
913
|
+
} : void 0, F.value.table.useDialog ? {
|
|
908
914
|
name: "actions",
|
|
909
915
|
fn: D(() => [h("button", {
|
|
910
916
|
tabindex: "0",
|
|
911
917
|
class: "vue-ui-user-options-button",
|
|
912
|
-
onClick: t[1] ||= (e) =>
|
|
913
|
-
style: x({ cursor:
|
|
914
|
-
}, [g(T(
|
|
918
|
+
onClick: t[1] ||= (e) => jt(F.value.userOptions.callbacks.csv),
|
|
919
|
+
style: x({ cursor: I.value ? "pointer" : "default" })
|
|
920
|
+
}, [g(T(He), {
|
|
915
921
|
name: "fileCsv",
|
|
916
922
|
stroke: $.value.props.color
|
|
917
923
|
}, null, 8, ["stroke"])], 4)]),
|
|
918
924
|
key: "1"
|
|
919
925
|
} : void 0]), 1040)) : p("", !0),
|
|
920
|
-
w(e.$slots, "skeleton", {}, () => [T(
|
|
921
|
-
], 46,
|
|
926
|
+
w(e.$slots, "skeleton", {}, () => [T(L) ? (S(), f(ue, { key: 0 })) : p("", !0)], !0)
|
|
927
|
+
], 46, Me));
|
|
922
928
|
}
|
|
923
|
-
}, [["__scopeId", "data-v-
|
|
929
|
+
}, [["__scopeId", "data-v-96a218d7"]]);
|
|
924
930
|
//#endregion
|
|
925
|
-
export {
|
|
931
|
+
export { je as n, O as t };
|