vue-data-ui 3.5.2 → 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 +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.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 +5 -0
- 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 +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- 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-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.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-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.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-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.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-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.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-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.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-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.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-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.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-C8KVyDim.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-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,753 +0,0 @@
|
|
|
1
|
-
import { useCssVars as bt, defineAsyncComponent as p, computed as h, onMounted as Ct, ref as u, toRefs as yt, watch as x, nextTick as H, createElementBlock as k, openBlock as v, unref as a, normalizeStyle as M, normalizeClass as Oe, createBlock as T, createCommentVNode as y, createVNode as D, withCtx as r, renderSlot as i, normalizeProps as f, guardReactiveProps as g, createSlots as Se, createElementVNode as P, Fragment as kt, renderList as At, resolveDynamicComponent as wt, mergeProps as $t, createTextVNode as De, toDisplayString as Pe } from "vue";
|
|
2
|
-
import { o as Tt, f as _t, c as Ie, t as Ot, b as St, p as Fe, e as Dt, a7 as Pt, X as It, S as Ft, k as Nt, h as Ne, P as Lt, Q as Bt, G as Et, H as Rt } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as Ut, a as Le } from "./useNestedProp-CReNavA0.js";
|
|
4
|
-
import { u as xt, B as Ht } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as Mt } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
-
import { u as Gt } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
-
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Wt from "./img-BecE5qXd.js";
|
|
10
|
-
import { t as Xt } from "./themes-AUNCOb2G.js";
|
|
11
|
-
import { u as jt } from "./usePanZoom-BVca3eMk.js";
|
|
12
|
-
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Zt = ["id"], Qt = {
|
|
14
|
-
key: 1,
|
|
15
|
-
ref: "noTitle",
|
|
16
|
-
class: "vue-data-ui-no-title-space",
|
|
17
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
18
|
-
}, qt = {
|
|
19
|
-
key: 2,
|
|
20
|
-
style: "width:100%;background:transparent;"
|
|
21
|
-
}, Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], eo = ["id"], to = ["stop-color"], oo = ["stop-color"], lo = {
|
|
22
|
-
key: 4,
|
|
23
|
-
class: "vue-data-ui-watermark"
|
|
24
|
-
}, ao = {
|
|
25
|
-
key: 5,
|
|
26
|
-
"data-dom-to-png-ignore": "",
|
|
27
|
-
class: "reset-wrapper"
|
|
28
|
-
}, so = {
|
|
29
|
-
key: 6,
|
|
30
|
-
ref: "source",
|
|
31
|
-
dir: "auto"
|
|
32
|
-
}, no = ["innerHTML"], ro = {
|
|
33
|
-
__name: "vue-ui-molecule",
|
|
34
|
-
props: {
|
|
35
|
-
config: {
|
|
36
|
-
type: Object,
|
|
37
|
-
default() {
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
dataset: {
|
|
42
|
-
type: Array,
|
|
43
|
-
default() {
|
|
44
|
-
return [];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
emits: ["selectNode"],
|
|
49
|
-
setup(Be, { expose: Ee, emit: Re }) {
|
|
50
|
-
bt((t) => ({
|
|
51
|
-
f4051c3a: t.slicerColor
|
|
52
|
-
}));
|
|
53
|
-
const Ue = p(() => import("./Title-BzH_LEA3.js")), xe = p(() => import("./Tooltip-oWCO1HKy.js")), te = p(() => import("./BaseIcon-BmMbm4d0.js")), He = p(() => import("./vue-ui-accordion-BmFTVF1a.js")), Me = p(() => import("./DataTable-BT7VF2ua.js")), Ge = p(() => import("./PenAndPaper-SZQIAgkg.js")), Ve = p(() => import("./UserOptions-CGnQt6Fd.js")), ze = p(() => import("./PackageVersion-Y7t79Jtq.js")), We = p(() => import("./RecursiveLinks-00zGWPf9.js")), Xe = p(() => import("./RecursiveLabels-Bgcv0pzu.js")), je = p(() => import("./RecursiveCircles-BcLb1aRS.js")), Ye = p(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_molecule: Ze } = Ut(), w = Be, Qe = Re, oe = h(() => !!w.dataset && w.dataset.length);
|
|
54
|
-
Ct(() => {
|
|
55
|
-
le();
|
|
56
|
-
});
|
|
57
|
-
const qe = h(() => e.value.debug);
|
|
58
|
-
function le() {
|
|
59
|
-
Tt(w.dataset) && _t({
|
|
60
|
-
componentName: "VueUiMolecule",
|
|
61
|
-
type: "dataset",
|
|
62
|
-
debug: qe.value
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const G = u(Ie()), V = u(!1), B = u(""), $ = u(null), ae = u(0), se = u(0), ne = u(0), I = u(null), z = u(null), e = u(Y()), { loading: W, FINAL_DATASET: X } = xt({
|
|
66
|
-
...yt(w),
|
|
67
|
-
FINAL_CONFIG: e,
|
|
68
|
-
prepareConfig: Y,
|
|
69
|
-
skeletonDataset: [
|
|
70
|
-
{
|
|
71
|
-
name: "_",
|
|
72
|
-
color: "#CACACA",
|
|
73
|
-
nodes: [
|
|
74
|
-
{ name: "_", color: "#CACACA", nodes: [
|
|
75
|
-
{ name: "_", color: "#CACACA" },
|
|
76
|
-
{ name: "_", color: "#CACACA" },
|
|
77
|
-
{ name: "_", color: "#CACACA" }
|
|
78
|
-
] },
|
|
79
|
-
{ name: "_", color: "#CACACA", nodes: [
|
|
80
|
-
{ name: "_", color: "#CACACA" },
|
|
81
|
-
{ name: "_", color: "#CACACA" },
|
|
82
|
-
{ name: "_", color: "#CACACA" }
|
|
83
|
-
] },
|
|
84
|
-
{ name: "_", color: "#CACACA", nodes: [
|
|
85
|
-
{ name: "_", color: "#CACACA" },
|
|
86
|
-
{ name: "_", color: "#CACACA" },
|
|
87
|
-
{ name: "_", color: "#CACACA" }
|
|
88
|
-
] },
|
|
89
|
-
{ name: "_", color: "#CACACA", nodes: [
|
|
90
|
-
{ name: "_", color: "#CACACA" },
|
|
91
|
-
{ name: "_", color: "#CACACA" },
|
|
92
|
-
{ name: "_", color: "#CACACA" }
|
|
93
|
-
] },
|
|
94
|
-
{ name: "_", color: "#CACACA", nodes: [
|
|
95
|
-
{ name: "_", color: "#CACACA" },
|
|
96
|
-
{ name: "_", color: "#CACACA" },
|
|
97
|
-
{ name: "_", color: "#CACACA" }
|
|
98
|
-
] },
|
|
99
|
-
{ name: "_", color: "#CACACA", nodes: [
|
|
100
|
-
{ name: "_", color: "#CACACA" },
|
|
101
|
-
{ name: "_", color: "#CACACA" },
|
|
102
|
-
{ name: "_", color: "#CACACA" }
|
|
103
|
-
] }
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
skeletonConfig: Ot({
|
|
108
|
-
defaultConfig: e.value,
|
|
109
|
-
userConfig: {
|
|
110
|
-
userOptions: { show: !1 },
|
|
111
|
-
table: { show: !1 },
|
|
112
|
-
style: {
|
|
113
|
-
chart: {
|
|
114
|
-
backgroundColor: "#99999930",
|
|
115
|
-
nodes: { stroke: "#6A6A6A" },
|
|
116
|
-
links: { stroke: "#6A6A6A80" }
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
})
|
|
121
|
-
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = Vt({ config: e.value }), { svgRef: E } = zt({ config: e.value.style.chart.title });
|
|
122
|
-
function Y() {
|
|
123
|
-
const t = Le({
|
|
124
|
-
userConfig: w.config,
|
|
125
|
-
defaultConfig: Ze
|
|
126
|
-
});
|
|
127
|
-
return t.theme ? {
|
|
128
|
-
...Le({
|
|
129
|
-
userConfig: Xt.vue_ui_molecule[t.theme] || w.config,
|
|
130
|
-
defaultConfig: t
|
|
131
|
-
}),
|
|
132
|
-
customPalette: St[t.theme] || Fe
|
|
133
|
-
} : t;
|
|
134
|
-
}
|
|
135
|
-
x(() => w.config, (t) => {
|
|
136
|
-
e.value = Y(), j.value = !e.value.userOptions.showOnChartHover, le(), se.value += 1, ne.value += 1, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
137
|
-
}, { deep: !0 });
|
|
138
|
-
const ue = u(0), Je = () => {
|
|
139
|
-
ue.value += 1;
|
|
140
|
-
};
|
|
141
|
-
x([() => W.value, () => X.value], async ([t]) => {
|
|
142
|
-
t || (await H(), m.value = fe(), await H(), Je(), await H(), ct({ x: 0, y: 0, width: 400, height: 400 }), J(!1));
|
|
143
|
-
}, { flush: "post", deep: !1 });
|
|
144
|
-
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: pe } = Mt({
|
|
145
|
-
elementId: `cluster_${G.value}`,
|
|
146
|
-
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
147
|
-
options: e.value.userOptions.print
|
|
148
|
-
}), Ke = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = h(() => Dt(e.value.customPalette)), d = u({
|
|
149
|
-
showTable: e.value.table.show,
|
|
150
|
-
showDataLabels: !0,
|
|
151
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
152
|
-
});
|
|
153
|
-
x(e, () => {
|
|
154
|
-
d.value = {
|
|
155
|
-
showTable: e.value.table.show,
|
|
156
|
-
showDataLabels: !0,
|
|
157
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
158
|
-
};
|
|
159
|
-
}, { immediate: !0 });
|
|
160
|
-
function he(t, l = 0) {
|
|
161
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ? he(t[0].nodes, l + 1) : l;
|
|
162
|
-
}
|
|
163
|
-
function fe() {
|
|
164
|
-
const t = he(X.value);
|
|
165
|
-
let l = 100, o = l;
|
|
166
|
-
for (let n = 0; n < t; n += 1)
|
|
167
|
-
l /= 1, o += l;
|
|
168
|
-
return {
|
|
169
|
-
height: o,
|
|
170
|
-
width: o
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
const m = u(fe());
|
|
174
|
-
function ge(t, l = { x: -m.value.width / 2.43, y: m.value.height / 2 }, o = m.value.width / 1.1, n = 24, s = 0, c = 0, b = "#BBBBBB", K = 0) {
|
|
175
|
-
if (!Array.isArray(t) || t.length === 0) return t;
|
|
176
|
-
const mt = Nt({
|
|
177
|
-
plot: l,
|
|
178
|
-
radius: o,
|
|
179
|
-
sides: t.length,
|
|
180
|
-
rotation: s
|
|
181
|
-
});
|
|
182
|
-
return t.forEach((C, $e) => {
|
|
183
|
-
const Te = mt.coordinates[$e], _e = C.color ? (() => {
|
|
184
|
-
let ee = Ne(C.color);
|
|
185
|
-
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
186
|
-
})() : null;
|
|
187
|
-
let S;
|
|
188
|
-
_e ? S = _e : K === 0 ? S = b : K === 1 ? (S = et.value[c] || Fe[c] || b, c += 1) : S = b, C.polygonPath = { coordinates: [Te] }, C.circleRadius = n, C.color = S, C.uid = Ie(), Array.isArray(C.nodes) && C.nodes.length && (C.nodes = ge(
|
|
189
|
-
C.nodes,
|
|
190
|
-
Te,
|
|
191
|
-
o / 2.9,
|
|
192
|
-
n / 2.2,
|
|
193
|
-
s + Math.PI * $e / C.nodes.length,
|
|
194
|
-
c,
|
|
195
|
-
S,
|
|
196
|
-
K + 1
|
|
197
|
-
));
|
|
198
|
-
}), t;
|
|
199
|
-
}
|
|
200
|
-
function tt(t) {
|
|
201
|
-
const l = /* @__PURE__ */ new Set();
|
|
202
|
-
function o(s) {
|
|
203
|
-
s.forEach((c) => {
|
|
204
|
-
if (!c.color) return;
|
|
205
|
-
let b = c.color;
|
|
206
|
-
/^#?[0-9A-F]{6}$/i.test(b) || (b = Ne(b)), b.startsWith("#") || (b = `#${b}`), l.add(b), Array.isArray(c.nodes) && c.nodes.length && o(c.nodes);
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
o(t);
|
|
210
|
-
const n = {};
|
|
211
|
-
return Array.from(l).forEach((s) => {
|
|
212
|
-
const c = s.slice(1);
|
|
213
|
-
n[s] = `gradient_${c}`;
|
|
214
|
-
}), n;
|
|
215
|
-
}
|
|
216
|
-
const ot = h(() => tt(A.value)), A = h(() => {
|
|
217
|
-
const t = Pt(X.value);
|
|
218
|
-
return ge(t);
|
|
219
|
-
}), Z = u(null);
|
|
220
|
-
function lt(t) {
|
|
221
|
-
Z.value = {
|
|
222
|
-
datapoint: t,
|
|
223
|
-
seriesIndex: -1,
|
|
224
|
-
series: A.value,
|
|
225
|
-
config: e.value
|
|
226
|
-
};
|
|
227
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
228
|
-
if (Et(l) && Rt(() => l({
|
|
229
|
-
seriesIndex: -1,
|
|
230
|
-
datapoint: t,
|
|
231
|
-
series: A.value,
|
|
232
|
-
config: e.value
|
|
233
|
-
})))
|
|
234
|
-
B.value = l({
|
|
235
|
-
seriesIndex: -1,
|
|
236
|
-
// well, ok
|
|
237
|
-
datapoint: t,
|
|
238
|
-
series: A.value,
|
|
239
|
-
config: e.value
|
|
240
|
-
});
|
|
241
|
-
else {
|
|
242
|
-
let o = "";
|
|
243
|
-
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), B.value = `<div style="font-family:inherit">${o}</div>`;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
const R = u(null), F = u(null), me = u(null);
|
|
247
|
-
function at(t) {
|
|
248
|
-
me.value = R.value, R.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: me.value || R.value, seriesIndex: -1 }), t ? (V.value = !0, lt(t), F.value = t.uid) : (V.value = !1, B.value = "", F.value = null);
|
|
249
|
-
}
|
|
250
|
-
function st(t) {
|
|
251
|
-
const l = [];
|
|
252
|
-
function o(n) {
|
|
253
|
-
n.forEach((s) => {
|
|
254
|
-
const c = {
|
|
255
|
-
name: s.name,
|
|
256
|
-
details: s.details || "-",
|
|
257
|
-
ancestor: s.ancestor && s.ancestor.name || "-",
|
|
258
|
-
color: s.color || ""
|
|
259
|
-
};
|
|
260
|
-
l.push(c), s.nodes && s.nodes.length > 0 && o(s.nodes, s.name);
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
return o(t), l;
|
|
264
|
-
}
|
|
265
|
-
const nt = h(() => st(A.value)), _ = h(() => {
|
|
266
|
-
const t = [
|
|
267
|
-
e.value.table.translations.nodeName,
|
|
268
|
-
e.value.table.translations.details,
|
|
269
|
-
e.value.table.translations.ancestor
|
|
270
|
-
], l = nt.value.map((s, c) => [
|
|
271
|
-
{
|
|
272
|
-
color: s.color,
|
|
273
|
-
name: s.name
|
|
274
|
-
},
|
|
275
|
-
s.details,
|
|
276
|
-
s.ancestor || ""
|
|
277
|
-
]), o = {
|
|
278
|
-
th: {
|
|
279
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
280
|
-
color: e.value.table.th.color,
|
|
281
|
-
outline: e.value.table.th.outline
|
|
282
|
-
},
|
|
283
|
-
td: {
|
|
284
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
285
|
-
color: e.value.table.td.color,
|
|
286
|
-
outline: e.value.table.td.outline
|
|
287
|
-
},
|
|
288
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
289
|
-
}, n = [
|
|
290
|
-
e.value.table.translations.nodeName,
|
|
291
|
-
e.value.table.translations.details,
|
|
292
|
-
e.value.table.translations.ancestor
|
|
293
|
-
];
|
|
294
|
-
return {
|
|
295
|
-
head: t,
|
|
296
|
-
body: l,
|
|
297
|
-
config: o,
|
|
298
|
-
colNames: n
|
|
299
|
-
};
|
|
300
|
-
});
|
|
301
|
-
function Q(t = null) {
|
|
302
|
-
H(() => {
|
|
303
|
-
const l = _.value.body.map((s, c) => [[s[0].name], [s[1]], [s[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(l), n = Lt(o);
|
|
304
|
-
t ? t(n) : Bt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
function rt() {
|
|
308
|
-
return A.value;
|
|
309
|
-
}
|
|
310
|
-
const O = u(!1);
|
|
311
|
-
function be(t) {
|
|
312
|
-
O.value = t, ae.value += 1;
|
|
313
|
-
}
|
|
314
|
-
function Ce() {
|
|
315
|
-
d.value.showTable = !d.value.showTable;
|
|
316
|
-
}
|
|
317
|
-
function ye() {
|
|
318
|
-
d.value.showDataLabels = !d.value.showDataLabels;
|
|
319
|
-
}
|
|
320
|
-
function ke() {
|
|
321
|
-
d.value.showTooltip = !d.value.showTooltip;
|
|
322
|
-
}
|
|
323
|
-
const N = u(!1);
|
|
324
|
-
function q() {
|
|
325
|
-
N.value = !N.value;
|
|
326
|
-
}
|
|
327
|
-
const it = h(() => !N.value), { viewBox: U, resetZoom: J, isZoom: ut, setInitialViewBox: ct } = jt(E, {
|
|
328
|
-
x: 0,
|
|
329
|
-
y: 0,
|
|
330
|
-
width: Math.max(10, m.value.width),
|
|
331
|
-
height: Math.max(10, m.value.height)
|
|
332
|
-
}, e.value.style.chart.zoom.speed, it);
|
|
333
|
-
function vt(t) {
|
|
334
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }), Qe("selectNode", t);
|
|
335
|
-
}
|
|
336
|
-
async function dt({ scale: t = 2 } = {}) {
|
|
337
|
-
if (!$.value) return;
|
|
338
|
-
const { width: l, height: o } = $.value.getBoundingClientRect(), n = l / o, { imageUri: s, base64: c } = await Wt({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
339
|
-
return {
|
|
340
|
-
imageUri: s,
|
|
341
|
-
base64: c,
|
|
342
|
-
title: e.value.style.chart.title.text,
|
|
343
|
-
width: l,
|
|
344
|
-
height: o,
|
|
345
|
-
aspectRatio: n
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
const L = h(() => {
|
|
349
|
-
const t = e.value.table.useDialog && !e.value.table.show, l = d.value.showTable;
|
|
350
|
-
return {
|
|
351
|
-
component: t ? Ye : He,
|
|
352
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
353
|
-
props: t ? {
|
|
354
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
355
|
-
color: e.value.table.th.color,
|
|
356
|
-
headerColor: e.value.table.th.color,
|
|
357
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
358
|
-
isFullscreen: O.value,
|
|
359
|
-
fullscreenParent: $.value,
|
|
360
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
361
|
-
} : {
|
|
362
|
-
hideDetails: !0,
|
|
363
|
-
config: {
|
|
364
|
-
open: l,
|
|
365
|
-
maxHeight: 1e4,
|
|
366
|
-
body: {
|
|
367
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
368
|
-
color: e.value.style.chart.color
|
|
369
|
-
},
|
|
370
|
-
head: {
|
|
371
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
372
|
-
color: e.value.style.chart.color
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
});
|
|
378
|
-
x(() => d.value.showTable, (t) => {
|
|
379
|
-
e.value.table.show || (t && e.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
380
|
-
});
|
|
381
|
-
function Ae() {
|
|
382
|
-
d.value.showTable = !1, z.value && z.value.setTableIconState(!1);
|
|
383
|
-
}
|
|
384
|
-
const pt = h(() => e.value.style.chart.backgroundColor), ht = h(() => e.value.style.chart.title), { exportSvg: ft, getSvg: gt } = Gt({
|
|
385
|
-
svg: E,
|
|
386
|
-
title: ht,
|
|
387
|
-
backgroundColor: pt
|
|
388
|
-
});
|
|
389
|
-
async function we({ isCb: t }) {
|
|
390
|
-
if (t) {
|
|
391
|
-
const { blob: l, url: o, text: n, dataUrl: s } = await gt();
|
|
392
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: n, dataUrl: s });
|
|
393
|
-
} else
|
|
394
|
-
ft();
|
|
395
|
-
}
|
|
396
|
-
return Ee({
|
|
397
|
-
getData: rt,
|
|
398
|
-
getImage: dt,
|
|
399
|
-
generatePdf: de,
|
|
400
|
-
generateCsv: Q,
|
|
401
|
-
generateImage: pe,
|
|
402
|
-
generateSvg: we,
|
|
403
|
-
toggleTable: Ce,
|
|
404
|
-
toggleLabels: ye,
|
|
405
|
-
toggleTooltip: ke,
|
|
406
|
-
toggleAnnotator: q,
|
|
407
|
-
toggleFullscreen: be
|
|
408
|
-
}), (t, l) => (v(), k("div", {
|
|
409
|
-
ref_key: "moleculeChart",
|
|
410
|
-
ref: $,
|
|
411
|
-
class: Oe(`vue-data-ui-component vue-ui-molecule ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
412
|
-
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
413
|
-
id: `cluster_${G.value}`,
|
|
414
|
-
onMouseleave: l[2] || (l[2] = (o) => {
|
|
415
|
-
R.value = null, F.value = null, a(re)(!1);
|
|
416
|
-
}),
|
|
417
|
-
onMouseenter: l[3] || (l[3] = () => a(re)(!0))
|
|
418
|
-
}, [
|
|
419
|
-
e.value.userOptions.buttons.annotator ? (v(), T(a(Ge), {
|
|
420
|
-
key: 0,
|
|
421
|
-
svgRef: a(E),
|
|
422
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
423
|
-
color: e.value.style.chart.color,
|
|
424
|
-
active: N.value,
|
|
425
|
-
onClose: q
|
|
426
|
-
}, {
|
|
427
|
-
"annotator-action-close": r(() => [
|
|
428
|
-
i(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
429
|
-
]),
|
|
430
|
-
"annotator-action-color": r(({ color: o }) => [
|
|
431
|
-
i(t.$slots, "annotator-action-color", f(g({ color: o })), void 0, !0)
|
|
432
|
-
]),
|
|
433
|
-
"annotator-action-draw": r(({ mode: o }) => [
|
|
434
|
-
i(t.$slots, "annotator-action-draw", f(g({ mode: o })), void 0, !0)
|
|
435
|
-
]),
|
|
436
|
-
"annotator-action-undo": r(({ disabled: o }) => [
|
|
437
|
-
i(t.$slots, "annotator-action-undo", f(g({ disabled: o })), void 0, !0)
|
|
438
|
-
]),
|
|
439
|
-
"annotator-action-redo": r(({ disabled: o }) => [
|
|
440
|
-
i(t.$slots, "annotator-action-redo", f(g({ disabled: o })), void 0, !0)
|
|
441
|
-
]),
|
|
442
|
-
"annotator-action-delete": r(({ disabled: o }) => [
|
|
443
|
-
i(t.$slots, "annotator-action-delete", f(g({ disabled: o })), void 0, !0)
|
|
444
|
-
]),
|
|
445
|
-
_: 3
|
|
446
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
447
|
-
Ke.value ? (v(), k("div", Qt, null, 512)) : y("", !0),
|
|
448
|
-
e.value.style.chart.title.text ? (v(), k("div", qt, [
|
|
449
|
-
(v(), T(a(Ue), {
|
|
450
|
-
key: `title_${se.value}`,
|
|
451
|
-
config: {
|
|
452
|
-
title: {
|
|
453
|
-
cy: "molecule-div-title",
|
|
454
|
-
...e.value.style.chart.title
|
|
455
|
-
},
|
|
456
|
-
subtitle: {
|
|
457
|
-
cy: "molecule-div-subtitle",
|
|
458
|
-
...e.value.style.chart.title.subtitle
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}, null, 8, ["config"]))
|
|
462
|
-
])) : y("", !0),
|
|
463
|
-
e.value.userOptions.show && oe.value && (a(ie) || a(j)) ? (v(), T(a(Ve), {
|
|
464
|
-
ref_key: "userOptionsRef",
|
|
465
|
-
ref: z,
|
|
466
|
-
key: `user_options_${ae.value}`,
|
|
467
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
468
|
-
color: e.value.style.chart.color,
|
|
469
|
-
isPrinting: a(ce),
|
|
470
|
-
isImaging: a(ve),
|
|
471
|
-
uid: G.value,
|
|
472
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
473
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
474
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
475
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
476
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
477
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
478
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
479
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
480
|
-
isTooltip: d.value.showTooltip,
|
|
481
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
482
|
-
chartElement: $.value,
|
|
483
|
-
position: e.value.userOptions.position,
|
|
484
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
485
|
-
isAnnotation: N.value,
|
|
486
|
-
callbacks: e.value.userOptions.callbacks,
|
|
487
|
-
printScale: e.value.userOptions.print.scale,
|
|
488
|
-
tableDialog: e.value.table.useDialog,
|
|
489
|
-
onToggleFullscreen: be,
|
|
490
|
-
onGeneratePdf: a(de),
|
|
491
|
-
onGenerateCsv: Q,
|
|
492
|
-
onGenerateImage: a(pe),
|
|
493
|
-
onGenerateSvg: we,
|
|
494
|
-
onToggleTable: Ce,
|
|
495
|
-
onToggleLabels: ye,
|
|
496
|
-
onToggleTooltip: ke,
|
|
497
|
-
onToggleAnnotator: q,
|
|
498
|
-
style: M({
|
|
499
|
-
visibility: a(ie) ? a(j) ? "visible" : "hidden" : "visible"
|
|
500
|
-
})
|
|
501
|
-
}, Se({ _: 2 }, [
|
|
502
|
-
t.$slots.menuIcon ? {
|
|
503
|
-
name: "menuIcon",
|
|
504
|
-
fn: r(({ isOpen: o, color: n }) => [
|
|
505
|
-
i(t.$slots, "menuIcon", f(g({ isOpen: o, color: n })), void 0, !0)
|
|
506
|
-
]),
|
|
507
|
-
key: "0"
|
|
508
|
-
} : void 0,
|
|
509
|
-
t.$slots.optionTooltip ? {
|
|
510
|
-
name: "optionTooltip",
|
|
511
|
-
fn: r(() => [
|
|
512
|
-
i(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
513
|
-
]),
|
|
514
|
-
key: "1"
|
|
515
|
-
} : void 0,
|
|
516
|
-
t.$slots.optionPdf ? {
|
|
517
|
-
name: "optionPdf",
|
|
518
|
-
fn: r(() => [
|
|
519
|
-
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
520
|
-
]),
|
|
521
|
-
key: "2"
|
|
522
|
-
} : void 0,
|
|
523
|
-
t.$slots.optionCsv ? {
|
|
524
|
-
name: "optionCsv",
|
|
525
|
-
fn: r(() => [
|
|
526
|
-
i(t.$slots, "optionCsv", {}, void 0, !0)
|
|
527
|
-
]),
|
|
528
|
-
key: "3"
|
|
529
|
-
} : void 0,
|
|
530
|
-
t.$slots.optionImg ? {
|
|
531
|
-
name: "optionImg",
|
|
532
|
-
fn: r(() => [
|
|
533
|
-
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
534
|
-
]),
|
|
535
|
-
key: "4"
|
|
536
|
-
} : void 0,
|
|
537
|
-
t.$slots.optionSvg ? {
|
|
538
|
-
name: "optionSvg",
|
|
539
|
-
fn: r(() => [
|
|
540
|
-
i(t.$slots, "optionSvg", {}, void 0, !0)
|
|
541
|
-
]),
|
|
542
|
-
key: "5"
|
|
543
|
-
} : void 0,
|
|
544
|
-
t.$slots.optionTable ? {
|
|
545
|
-
name: "optionTable",
|
|
546
|
-
fn: r(() => [
|
|
547
|
-
i(t.$slots, "optionTable", {}, void 0, !0)
|
|
548
|
-
]),
|
|
549
|
-
key: "6"
|
|
550
|
-
} : void 0,
|
|
551
|
-
t.$slots.optionLabels ? {
|
|
552
|
-
name: "optionLabels",
|
|
553
|
-
fn: r(() => [
|
|
554
|
-
i(t.$slots, "optionLabels", {}, void 0, !0)
|
|
555
|
-
]),
|
|
556
|
-
key: "7"
|
|
557
|
-
} : void 0,
|
|
558
|
-
t.$slots.optionFullscreen ? {
|
|
559
|
-
name: "optionFullscreen",
|
|
560
|
-
fn: r(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
561
|
-
i(t.$slots, "optionFullscreen", f(g({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
562
|
-
]),
|
|
563
|
-
key: "8"
|
|
564
|
-
} : void 0,
|
|
565
|
-
t.$slots.optionAnnotator ? {
|
|
566
|
-
name: "optionAnnotator",
|
|
567
|
-
fn: r(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
568
|
-
i(t.$slots, "optionAnnotator", f(g({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
569
|
-
]),
|
|
570
|
-
key: "9"
|
|
571
|
-
} : void 0
|
|
572
|
-
]), 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"])) : y("", !0),
|
|
573
|
-
(v(), k("svg", {
|
|
574
|
-
ref_key: "svgRef",
|
|
575
|
-
ref: E,
|
|
576
|
-
key: `svg_${ue.value}`,
|
|
577
|
-
xmlns: a(It),
|
|
578
|
-
viewBox: `${a(U).x} ${a(U).y} ${a(U).width} ${a(U).height}`,
|
|
579
|
-
class: Oe({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
580
|
-
style: M(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
581
|
-
}, [
|
|
582
|
-
D(a(ze)),
|
|
583
|
-
t.$slots["chart-background"] ? (v(), k("foreignObject", {
|
|
584
|
-
key: 0,
|
|
585
|
-
x: 0,
|
|
586
|
-
y: 0,
|
|
587
|
-
width: m.value.width <= 0 ? 10 : m.value.width,
|
|
588
|
-
height: m.value.height <= 0 ? 10 : m.value.height,
|
|
589
|
-
style: {
|
|
590
|
-
pointerEvents: "none"
|
|
591
|
-
}
|
|
592
|
-
}, [
|
|
593
|
-
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
594
|
-
], 8, Kt)) : y("", !0),
|
|
595
|
-
P("defs", null, [
|
|
596
|
-
(v(!0), k(kt, null, At(Object.keys(ot.value), (o) => (v(), k("radialGradient", {
|
|
597
|
-
id: `gradient_${o}`,
|
|
598
|
-
cx: "50%",
|
|
599
|
-
cy: "30%",
|
|
600
|
-
r: "50%",
|
|
601
|
-
fx: "50%",
|
|
602
|
-
fy: "50%"
|
|
603
|
-
}, [
|
|
604
|
-
P("stop", {
|
|
605
|
-
offset: "0%",
|
|
606
|
-
"stop-color": a(Ft)(o, 0.5)
|
|
607
|
-
}, null, 8, to),
|
|
608
|
-
P("stop", {
|
|
609
|
-
offset: "100%",
|
|
610
|
-
"stop-color": o
|
|
611
|
-
}, null, 8, oo)
|
|
612
|
-
], 8, eo))), 256))
|
|
613
|
-
]),
|
|
614
|
-
D(a(We), {
|
|
615
|
-
dataset: A.value,
|
|
616
|
-
color: e.value.style.chart.links.stroke,
|
|
617
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
618
|
-
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
619
|
-
D(a(je), {
|
|
620
|
-
dataset: A.value,
|
|
621
|
-
hoveredUid: F.value,
|
|
622
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
623
|
-
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
624
|
-
onClick: vt,
|
|
625
|
-
onHover: at
|
|
626
|
-
}, {
|
|
627
|
-
node: r(({ node: o }) => [
|
|
628
|
-
i(t.$slots, "node", f(g({ node: o })), void 0, !0)
|
|
629
|
-
]),
|
|
630
|
-
_: 3
|
|
631
|
-
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
632
|
-
d.value.showDataLabels && !a(W) ? (v(), T(a(Xe), {
|
|
633
|
-
key: 1,
|
|
634
|
-
dataset: A.value,
|
|
635
|
-
color: e.value.style.chart.color,
|
|
636
|
-
hoveredUid: F.value
|
|
637
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : y("", !0),
|
|
638
|
-
i(t.$slots, "svg", { svg: m.value }, void 0, !0)
|
|
639
|
-
], 14, Jt)),
|
|
640
|
-
t.$slots.watermark ? (v(), k("div", lo, [
|
|
641
|
-
i(t.$slots, "watermark", f(g({ isPrinting: a(ce) || a(ve) })), void 0, !0)
|
|
642
|
-
])) : y("", !0),
|
|
643
|
-
a(ut) ? (v(), k("div", ao, [
|
|
644
|
-
i(t.$slots, "reset-action", { reset: a(J) }, () => [
|
|
645
|
-
P("button", {
|
|
646
|
-
"data-cy-reset": "",
|
|
647
|
-
tabindex: "0",
|
|
648
|
-
role: "button",
|
|
649
|
-
class: "vue-data-ui-refresh-button",
|
|
650
|
-
style: M({
|
|
651
|
-
background: e.value.style.chart.backgroundColor
|
|
652
|
-
}),
|
|
653
|
-
onClick: l[0] || (l[0] = (o) => a(J)(!0))
|
|
654
|
-
}, [
|
|
655
|
-
D(a(te), {
|
|
656
|
-
name: "refresh",
|
|
657
|
-
stroke: e.value.style.chart.color
|
|
658
|
-
}, null, 8, ["stroke"])
|
|
659
|
-
], 4)
|
|
660
|
-
], !0)
|
|
661
|
-
])) : y("", !0),
|
|
662
|
-
t.$slots.source ? (v(), k("div", so, [
|
|
663
|
-
i(t.$slots, "source", {}, void 0, !0)
|
|
664
|
-
], 512)) : y("", !0),
|
|
665
|
-
D(a(xe), {
|
|
666
|
-
show: d.value.showTooltip && V.value,
|
|
667
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
668
|
-
color: e.value.style.chart.tooltip.color,
|
|
669
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
670
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
671
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
672
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
673
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
674
|
-
position: e.value.style.chart.tooltip.position,
|
|
675
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
676
|
-
parent: $.value,
|
|
677
|
-
content: B.value,
|
|
678
|
-
isFullscreen: O.value,
|
|
679
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
680
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
681
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
682
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
683
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
684
|
-
}, {
|
|
685
|
-
"tooltip-before": r(() => [
|
|
686
|
-
i(t.$slots, "tooltip-before", f(g({ ...Z.value })), void 0, !0)
|
|
687
|
-
]),
|
|
688
|
-
"tooltip-after": r(() => [
|
|
689
|
-
i(t.$slots, "tooltip-after", f(g({ ...Z.value })), void 0, !0)
|
|
690
|
-
]),
|
|
691
|
-
_: 3
|
|
692
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
693
|
-
oe.value && e.value.userOptions.buttons.table ? (v(), T(wt(L.value.component), $t({ key: 7 }, L.value.props, {
|
|
694
|
-
ref_key: "tableUnit",
|
|
695
|
-
ref: I,
|
|
696
|
-
onClose: Ae
|
|
697
|
-
}), Se({
|
|
698
|
-
content: r(() => [
|
|
699
|
-
(v(), T(a(Me), {
|
|
700
|
-
key: `table_${ne.value}`,
|
|
701
|
-
colNames: _.value.colNames,
|
|
702
|
-
head: _.value.head,
|
|
703
|
-
body: _.value.body,
|
|
704
|
-
config: _.value.config,
|
|
705
|
-
title: e.value.table.useDialog ? "" : L.value.title,
|
|
706
|
-
withCloseButton: !e.value.table.useDialog,
|
|
707
|
-
onClose: Ae
|
|
708
|
-
}, {
|
|
709
|
-
th: r(({ th: o }) => [
|
|
710
|
-
P("div", {
|
|
711
|
-
innerHTML: o,
|
|
712
|
-
style: { display: "flex", "align-items": "center" }
|
|
713
|
-
}, null, 8, no)
|
|
714
|
-
]),
|
|
715
|
-
td: r(({ td: o }) => [
|
|
716
|
-
De(Pe(o.name || o), 1)
|
|
717
|
-
]),
|
|
718
|
-
_: 1
|
|
719
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
720
|
-
]),
|
|
721
|
-
_: 2
|
|
722
|
-
}, [
|
|
723
|
-
e.value.table.useDialog ? {
|
|
724
|
-
name: "title",
|
|
725
|
-
fn: r(() => [
|
|
726
|
-
De(Pe(L.value.title), 1)
|
|
727
|
-
]),
|
|
728
|
-
key: "0"
|
|
729
|
-
} : void 0,
|
|
730
|
-
e.value.table.useDialog ? {
|
|
731
|
-
name: "actions",
|
|
732
|
-
fn: r(() => [
|
|
733
|
-
P("button", {
|
|
734
|
-
tabindex: "0",
|
|
735
|
-
class: "vue-ui-user-options-button",
|
|
736
|
-
onClick: l[1] || (l[1] = (o) => Q(e.value.userOptions.callbacks.csv))
|
|
737
|
-
}, [
|
|
738
|
-
D(a(te), {
|
|
739
|
-
name: "excel",
|
|
740
|
-
stroke: L.value.props.color
|
|
741
|
-
}, null, 8, ["stroke"])
|
|
742
|
-
])
|
|
743
|
-
]),
|
|
744
|
-
key: "1"
|
|
745
|
-
} : void 0
|
|
746
|
-
]), 1040)) : y("", !0),
|
|
747
|
-
a(W) ? (v(), T(Ht, { key: 8 })) : y("", !0)
|
|
748
|
-
], 46, Zt));
|
|
749
|
-
}
|
|
750
|
-
}, ko = /* @__PURE__ */ Yt(ro, [["__scopeId", "data-v-834b0111"]]);
|
|
751
|
-
export {
|
|
752
|
-
ko as default
|
|
753
|
-
};
|