vue-data-ui 3.25.5 → 3.25.6
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-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,929 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, M as a, Pt as ee, S as te, Yt as o, Z as s, Zt as c, jt as ne, lt as l, nt as u, q as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as le } from "./usePrinter-DISD7q5m.js";
|
|
6
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
-
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as he } from "./img-DhGApYG0.js";
|
|
11
|
-
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { t as _e } from "./DefGrad-DVBqDjhO.js";
|
|
13
|
-
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
14
|
-
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
15
|
-
import { t as be } from "./vue_ui_molecule-CO9L59SF.js";
|
|
16
|
-
import { t as xe } from "./usePanZoom-CYU3B4T3.js";
|
|
17
|
-
import { Fragment as Se, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ce, createTextVNode as we, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Te, nextTick as y, normalizeClass as Ee, normalizeProps as b, normalizeStyle as x, onMounted as De, openBlock as S, ref as C, renderList as Oe, renderSlot as w, resolveDynamicComponent as ke, toDisplayString as Ae, toRefs as je, unref as T, useCssVars as Me, watch as E, withCtx as D } from "vue";
|
|
18
|
-
//#region src/components/vue-ui-molecule.vue
|
|
19
|
-
var Ne = /* @__PURE__ */ e({ default: () => He }), Pe = ["id"], Fe = {
|
|
20
|
-
key: 1,
|
|
21
|
-
ref: "noTitle",
|
|
22
|
-
class: "vue-data-ui-no-title-space",
|
|
23
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
24
|
-
}, Ie = {
|
|
25
|
-
key: 2,
|
|
26
|
-
style: "width:100%;background:transparent;"
|
|
27
|
-
}, Le = ["xmlns", "viewBox"], Re = ["width", "height"], ze = {
|
|
28
|
-
key: 4,
|
|
29
|
-
class: "vue-data-ui-watermark"
|
|
30
|
-
}, Be = {
|
|
31
|
-
key: 5,
|
|
32
|
-
"data-dom-to-png-ignore": "",
|
|
33
|
-
class: "reset-wrapper"
|
|
34
|
-
}, Ve = {
|
|
35
|
-
key: 6,
|
|
36
|
-
ref: "source",
|
|
37
|
-
dir: "auto"
|
|
38
|
-
}, He = /*#__PURE__*/ ge({
|
|
39
|
-
__name: "vue-ui-molecule",
|
|
40
|
-
props: {
|
|
41
|
-
config: {
|
|
42
|
-
type: Object,
|
|
43
|
-
default() {
|
|
44
|
-
return {};
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
dataset: {
|
|
48
|
-
type: Array,
|
|
49
|
-
default() {
|
|
50
|
-
return [];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
emits: ["selectNode", "copyAlt"],
|
|
55
|
-
setup(e, { expose: ge, emit: Ne }) {
|
|
56
|
-
Me((e) => ({ v168d8cce: Qt.value }));
|
|
57
|
-
let He = _(() => import("./Title-CPHi-evi.js").then((e) => e.t)), Ue = _(() => import("./Tooltip-hhrkQ3Lk.js")), We = _(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Ge = _(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), Ke = _(() => import("./DataTable-COIO9gi4.js")), qe = _(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Je = _(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Ye = _(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Xe = _(() => import("./RecursiveLinks-BygcpDiT.js")), Ze = _(() => import("./RecursiveLabels-D9rfID6q.js")), Qe = _(() => import("./RecursiveCircles-D6aDPmoe.js")), $e = _(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_molecule: et } = ce(), { isThemeValid: tt, warnInvalidTheme: nt } = pe(), O = e, rt = Ne, it = d(() => !!O.dataset && O.dataset.length);
|
|
58
|
-
De(() => {
|
|
59
|
-
ot();
|
|
60
|
-
});
|
|
61
|
-
let at = d(() => N.value.debug);
|
|
62
|
-
function ot() {
|
|
63
|
-
ee(O.dataset) && u({
|
|
64
|
-
componentName: "VueUiMolecule",
|
|
65
|
-
type: "dataset",
|
|
66
|
-
debug: at.value
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
let st = C(re()), ct = C(!1), k = C(""), A = C(null), lt = C(0), ut = C(0), dt = C(0), j = C(null), M = C(null), N = C(z());
|
|
70
|
-
oe({
|
|
71
|
-
config: () => N.value,
|
|
72
|
-
dataset: () => O.dataset,
|
|
73
|
-
component: "VueUiMolecule",
|
|
74
|
-
rules: [
|
|
75
|
-
se.emptyArray,
|
|
76
|
-
{
|
|
77
|
-
test: (e) => e[0] && e[0].nodes && e[0].nodes.length === 0,
|
|
78
|
-
message: [
|
|
79
|
-
"👀 There are no children nodes attached to the root node. Consider:",
|
|
80
|
-
"",
|
|
81
|
-
"▶️ Adding children nodes to the root node."
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
test: (e) => e[0] && e[0].nodes && e[0].nodes.length > 8,
|
|
86
|
-
message: [
|
|
87
|
-
"👀 The number of children nodes > 8, some nodes might overlap. Consider:",
|
|
88
|
-
"",
|
|
89
|
-
"▶️ Grouping data into broader categories."
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
});
|
|
94
|
-
let P = d(() => N.value.userOptions.useCursorPointer), ft = d(() => c({
|
|
95
|
-
defaultConfig: {
|
|
96
|
-
userOptions: { show: !1 },
|
|
97
|
-
table: { show: !1 },
|
|
98
|
-
style: { chart: {
|
|
99
|
-
backgroundColor: "#99999930",
|
|
100
|
-
nodes: { stroke: "#6A6A6A" },
|
|
101
|
-
links: { stroke: "#6A6A6A80" }
|
|
102
|
-
} }
|
|
103
|
-
},
|
|
104
|
-
userConfig: N.value.skeletonConfig ?? {}
|
|
105
|
-
})), { loading: F, FINAL_DATASET: I } = ue({
|
|
106
|
-
...je(O),
|
|
107
|
-
FINAL_CONFIG: N,
|
|
108
|
-
prepareConfig: z,
|
|
109
|
-
skeletonDataset: O.config?.skeletonDataset ?? [{
|
|
110
|
-
name: "_",
|
|
111
|
-
color: "#CACACA",
|
|
112
|
-
nodes: [
|
|
113
|
-
{
|
|
114
|
-
name: "_",
|
|
115
|
-
color: "#CACACA",
|
|
116
|
-
nodes: [
|
|
117
|
-
{
|
|
118
|
-
name: "_",
|
|
119
|
-
color: "#CACACA"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "_",
|
|
123
|
-
color: "#CACACA"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "_",
|
|
127
|
-
color: "#CACACA"
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: "_",
|
|
133
|
-
color: "#CACACA",
|
|
134
|
-
nodes: [
|
|
135
|
-
{
|
|
136
|
-
name: "_",
|
|
137
|
-
color: "#CACACA"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: "_",
|
|
141
|
-
color: "#CACACA"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: "_",
|
|
145
|
-
color: "#CACACA"
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: "_",
|
|
151
|
-
color: "#CACACA",
|
|
152
|
-
nodes: [
|
|
153
|
-
{
|
|
154
|
-
name: "_",
|
|
155
|
-
color: "#CACACA"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: "_",
|
|
159
|
-
color: "#CACACA"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: "_",
|
|
163
|
-
color: "#CACACA"
|
|
164
|
-
}
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: "_",
|
|
169
|
-
color: "#CACACA",
|
|
170
|
-
nodes: [
|
|
171
|
-
{
|
|
172
|
-
name: "_",
|
|
173
|
-
color: "#CACACA"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: "_",
|
|
177
|
-
color: "#CACACA"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: "_",
|
|
181
|
-
color: "#CACACA"
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "_",
|
|
187
|
-
color: "#CACACA",
|
|
188
|
-
nodes: [
|
|
189
|
-
{
|
|
190
|
-
name: "_",
|
|
191
|
-
color: "#CACACA"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: "_",
|
|
195
|
-
color: "#CACACA"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: "_",
|
|
199
|
-
color: "#CACACA"
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
name: "_",
|
|
205
|
-
color: "#CACACA",
|
|
206
|
-
nodes: [
|
|
207
|
-
{
|
|
208
|
-
name: "_",
|
|
209
|
-
color: "#CACACA"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: "_",
|
|
213
|
-
color: "#CACACA"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
name: "_",
|
|
217
|
-
color: "#CACACA"
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
}],
|
|
223
|
-
skeletonConfig: c({
|
|
224
|
-
defaultConfig: N.value,
|
|
225
|
-
userConfig: ft.value
|
|
226
|
-
})
|
|
227
|
-
}), { userOptionsVisible: L, setUserOptionsVisibility: pt, keepUserOptionState: mt } = ve({ config: N.value }), { svgRef: R } = ye({ config: N.value.style.chart.title });
|
|
228
|
-
function z() {
|
|
229
|
-
let e = fe({
|
|
230
|
-
userConfig: O.config,
|
|
231
|
-
defaultConfig: et
|
|
232
|
-
}), t = e.theme;
|
|
233
|
-
if (!t) return e;
|
|
234
|
-
if (!tt.value(e)) return nt(e), e;
|
|
235
|
-
let n = fe({
|
|
236
|
-
userConfig: be[t] || O.config,
|
|
237
|
-
defaultConfig: e
|
|
238
|
-
}), r = fe({
|
|
239
|
-
userConfig: O.config,
|
|
240
|
-
defaultConfig: n
|
|
241
|
-
});
|
|
242
|
-
return {
|
|
243
|
-
...r,
|
|
244
|
-
customPalette: r.customPalette.length ? r.customPalette : o[t] || i
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
E(() => O.config, (e) => {
|
|
248
|
-
N.value = z(), L.value = !N.value.userOptions.showOnChartHover, ot(), ut.value += 1, dt.value += 1, H.value.showTable = N.value.table.show, H.value.showTooltip = N.value.style.chart.tooltip.show, H.value.showZoom = N.value.style.chart.zoom.show;
|
|
249
|
-
}, { deep: !0 });
|
|
250
|
-
let ht = C(0), gt = () => {
|
|
251
|
-
ht.value += 1;
|
|
252
|
-
};
|
|
253
|
-
E([() => F.value, () => I.value], async ([e]) => {
|
|
254
|
-
e || (await y(), U.value = St(), await y(), gt(), await y(), Vt({
|
|
255
|
-
x: 0,
|
|
256
|
-
y: 0,
|
|
257
|
-
width: 400,
|
|
258
|
-
height: 400
|
|
259
|
-
}), Q(!1));
|
|
260
|
-
}, {
|
|
261
|
-
flush: "post",
|
|
262
|
-
deep: !1
|
|
263
|
-
});
|
|
264
|
-
let { isPrinting: B, isImaging: V, generatePdf: _t, generateImage: vt } = le({
|
|
265
|
-
elementId: `cluster_${st.value}`,
|
|
266
|
-
fileName: N.value.style.chart.title.text || "vue-ui-molecule",
|
|
267
|
-
options: N.value.userOptions.print
|
|
268
|
-
}), yt = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), bt = d(() => ae(N.value.customPalette)), H = C({
|
|
269
|
-
showTable: N.value.table.show,
|
|
270
|
-
showDataLabels: !0,
|
|
271
|
-
showTooltip: N.value.style.chart.tooltip.show,
|
|
272
|
-
showZoom: N.value.style.chart.zoom.show
|
|
273
|
-
});
|
|
274
|
-
E(N, () => {
|
|
275
|
-
H.value = {
|
|
276
|
-
showTable: N.value.table.show,
|
|
277
|
-
showDataLabels: !0,
|
|
278
|
-
showTooltip: N.value.style.chart.tooltip.show,
|
|
279
|
-
showZoom: N.value.style.chart.zoom.show
|
|
280
|
-
};
|
|
281
|
-
}, { immediate: !0 });
|
|
282
|
-
function xt(e, t = 0) {
|
|
283
|
-
return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
|
|
284
|
-
}
|
|
285
|
-
function St() {
|
|
286
|
-
let e = xt(I.value), t = 100, n = t;
|
|
287
|
-
for (let r = 0; r < e; r += 1) t /= 1, n += t;
|
|
288
|
-
return {
|
|
289
|
-
height: n,
|
|
290
|
-
width: n
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
let U = C(St());
|
|
294
|
-
function Ct(e, t = {
|
|
295
|
-
x: -U.value.width / 2.43,
|
|
296
|
-
y: U.value.height / 2
|
|
297
|
-
}, n = U.value.width / 1.1, r = 24, ee = 0, o = 0, s = "#BBBBBB", c = 0) {
|
|
298
|
-
if (!Array.isArray(e) || e.length === 0) return e;
|
|
299
|
-
let ne = a({
|
|
300
|
-
plot: t,
|
|
301
|
-
radius: n,
|
|
302
|
-
sides: e.length,
|
|
303
|
-
rotation: ee
|
|
304
|
-
});
|
|
305
|
-
return e.forEach((e, t) => {
|
|
306
|
-
let a = ne.coordinates[t], l = e.color ? (() => {
|
|
307
|
-
let t = te(e.color);
|
|
308
|
-
return t.startsWith("#") ? t : `#${t}`;
|
|
309
|
-
})() : null, u;
|
|
310
|
-
l ? u = l : c === 0 ? u = s : c === 1 ? (u = bt.value[o] || i[o] || s, o += 1) : u = s, e.polygonPath = { coordinates: [a] }, e.circleRadius = r, e.color = u, e.strokeWidth = Math.min(N.value.style.chart.links.strokeWidth / (c + 1), r / 2), e.uid = re(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, a, n / 2.9, r / 2.2, ee + Math.PI * t / e.nodes.length, o, u, c + 1));
|
|
311
|
-
}), e;
|
|
312
|
-
}
|
|
313
|
-
function wt(e) {
|
|
314
|
-
let t = /* @__PURE__ */ new Set();
|
|
315
|
-
function n(e) {
|
|
316
|
-
e.forEach((e) => {
|
|
317
|
-
if (!e.color) return;
|
|
318
|
-
let r = e.color;
|
|
319
|
-
/^#?[0-9A-F]{6}$/i.test(r) || (r = te(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
n(e);
|
|
323
|
-
let r = {};
|
|
324
|
-
return Array.from(t).forEach((e) => {
|
|
325
|
-
let t = e.slice(1);
|
|
326
|
-
r[e] = `gradient_${t}`;
|
|
327
|
-
}), r;
|
|
328
|
-
}
|
|
329
|
-
let Tt = d(() => wt(W.value)), W = d(() => Ct(s(I.value))), G = C(null);
|
|
330
|
-
function Et(e) {
|
|
331
|
-
G.value = {
|
|
332
|
-
datapoint: e,
|
|
333
|
-
seriesIndex: -1,
|
|
334
|
-
series: W.value,
|
|
335
|
-
config: N.value
|
|
336
|
-
};
|
|
337
|
-
let t = N.value.style.chart.tooltip.customFormat;
|
|
338
|
-
if (n(t) && l(() => t({
|
|
339
|
-
seriesIndex: -1,
|
|
340
|
-
datapoint: e,
|
|
341
|
-
series: W.value,
|
|
342
|
-
config: N.value
|
|
343
|
-
}))) k.value = t({
|
|
344
|
-
seriesIndex: -1,
|
|
345
|
-
datapoint: e,
|
|
346
|
-
series: W.value,
|
|
347
|
-
config: N.value
|
|
348
|
-
});
|
|
349
|
-
else {
|
|
350
|
-
let t = "";
|
|
351
|
-
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (t += `<div style="width:100%;border-top:1px solid ${N.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), k.value = `<div style="font-family:inherit">${t}</div>`;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
let K = C(null), q = C(null), Dt = C(null);
|
|
355
|
-
function Ot(e) {
|
|
356
|
-
Dt.value = K.value, K.value = e, e ? N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
357
|
-
datapoint: e,
|
|
358
|
-
seriesIndex: -1
|
|
359
|
-
}) : N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
360
|
-
datapoint: Dt.value || K.value,
|
|
361
|
-
seriesIndex: -1
|
|
362
|
-
}), e ? (ct.value = !0, Et(e), q.value = e.uid) : (ct.value = !1, k.value = "", q.value = null);
|
|
363
|
-
}
|
|
364
|
-
function kt(e) {
|
|
365
|
-
let t = [];
|
|
366
|
-
function n(e) {
|
|
367
|
-
e.forEach((e) => {
|
|
368
|
-
let r = {
|
|
369
|
-
name: e.name,
|
|
370
|
-
details: e.details || "-",
|
|
371
|
-
ancestor: e.ancestor && e.ancestor.name || "-",
|
|
372
|
-
color: e.color || ""
|
|
373
|
-
};
|
|
374
|
-
t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
return n(e), t;
|
|
378
|
-
}
|
|
379
|
-
let At = d(() => kt(W.value)), J = d(() => ({
|
|
380
|
-
head: [
|
|
381
|
-
N.value.table.translations.nodeName,
|
|
382
|
-
N.value.table.translations.details,
|
|
383
|
-
N.value.table.translations.ancestor
|
|
384
|
-
],
|
|
385
|
-
body: At.value.map((e, t) => [
|
|
386
|
-
{
|
|
387
|
-
color: e.color,
|
|
388
|
-
name: e.name
|
|
389
|
-
},
|
|
390
|
-
e.details,
|
|
391
|
-
e.ancestor || ""
|
|
392
|
-
]),
|
|
393
|
-
config: {
|
|
394
|
-
th: {
|
|
395
|
-
backgroundColor: N.value.table.th.backgroundColor,
|
|
396
|
-
color: N.value.table.th.color,
|
|
397
|
-
outline: N.value.table.th.outline
|
|
398
|
-
},
|
|
399
|
-
td: {
|
|
400
|
-
backgroundColor: N.value.table.td.backgroundColor,
|
|
401
|
-
color: N.value.table.td.color,
|
|
402
|
-
outline: N.value.table.td.outline
|
|
403
|
-
},
|
|
404
|
-
breakpoint: N.value.table.responsiveBreakpoint
|
|
405
|
-
},
|
|
406
|
-
colNames: [
|
|
407
|
-
N.value.table.translations.nodeName,
|
|
408
|
-
N.value.table.translations.details,
|
|
409
|
-
N.value.table.translations.ancestor
|
|
410
|
-
]
|
|
411
|
-
}));
|
|
412
|
-
function jt(e = null) {
|
|
413
|
-
y(() => {
|
|
414
|
-
let n = J.value.body.map((e, t) => [
|
|
415
|
-
[e[0].name],
|
|
416
|
-
[e[1]],
|
|
417
|
-
[e[2]]
|
|
418
|
-
]), i = [
|
|
419
|
-
[N.value.style.chart.title.text],
|
|
420
|
-
[N.value.style.chart.title.subtitle.text],
|
|
421
|
-
[[...J.value.head]]
|
|
422
|
-
].concat(n), a = r(i);
|
|
423
|
-
e ? e(a) : t({
|
|
424
|
-
csvContent: a,
|
|
425
|
-
title: N.value.style.chart.title.text || "vue-ui-molecule"
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
function Mt() {
|
|
430
|
-
return W.value;
|
|
431
|
-
}
|
|
432
|
-
let Y = C(!1);
|
|
433
|
-
function Nt(e) {
|
|
434
|
-
Y.value = e, lt.value += 1;
|
|
435
|
-
}
|
|
436
|
-
function Pt() {
|
|
437
|
-
H.value.showTable = !H.value.showTable;
|
|
438
|
-
}
|
|
439
|
-
function Ft() {
|
|
440
|
-
H.value.showDataLabels = !H.value.showDataLabels;
|
|
441
|
-
}
|
|
442
|
-
function It() {
|
|
443
|
-
H.value.showTooltip = !H.value.showTooltip;
|
|
444
|
-
}
|
|
445
|
-
function Lt() {
|
|
446
|
-
H.value.showZoom = !H.value.showZoom;
|
|
447
|
-
}
|
|
448
|
-
let X = C(!1);
|
|
449
|
-
function Rt() {
|
|
450
|
-
X.value = !X.value;
|
|
451
|
-
}
|
|
452
|
-
let zt = d(() => !X.value && H.value.showZoom), { viewBox: Z, resetZoom: Q, isZoom: Bt, setInitialViewBox: Vt } = xe(R, {
|
|
453
|
-
x: 0,
|
|
454
|
-
y: 0,
|
|
455
|
-
width: Math.max(10, U.value.width),
|
|
456
|
-
height: Math.max(10, U.value.height)
|
|
457
|
-
}, N.value.style.chart.zoom.speed, zt);
|
|
458
|
-
function Ht(e) {
|
|
459
|
-
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
460
|
-
datapoint: e,
|
|
461
|
-
seriesIndex: -1
|
|
462
|
-
}), rt("selectNode", e);
|
|
463
|
-
}
|
|
464
|
-
async function Ut({ scale: e = 2 } = {}) {
|
|
465
|
-
if (!A.value) return;
|
|
466
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
467
|
-
domElement: A.value,
|
|
468
|
-
base64: !0,
|
|
469
|
-
img: !0,
|
|
470
|
-
scale: e
|
|
471
|
-
});
|
|
472
|
-
return {
|
|
473
|
-
imageUri: i,
|
|
474
|
-
base64: a,
|
|
475
|
-
title: N.value.style.chart.title.text,
|
|
476
|
-
width: t,
|
|
477
|
-
height: n,
|
|
478
|
-
aspectRatio: r
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
let $ = d(() => {
|
|
482
|
-
let e = N.value.table.useDialog && !N.value.table.show, t = H.value.showTable;
|
|
483
|
-
return {
|
|
484
|
-
component: e ? $e : Ge,
|
|
485
|
-
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
486
|
-
props: e ? {
|
|
487
|
-
backgroundColor: N.value.table.th.backgroundColor,
|
|
488
|
-
color: N.value.table.th.color,
|
|
489
|
-
headerColor: N.value.table.th.color,
|
|
490
|
-
headerBg: N.value.table.th.backgroundColor,
|
|
491
|
-
isFullscreen: Y.value,
|
|
492
|
-
fullscreenParent: A.value,
|
|
493
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
494
|
-
isCursorPointer: P.value
|
|
495
|
-
} : {
|
|
496
|
-
hideDetails: !0,
|
|
497
|
-
config: {
|
|
498
|
-
open: t,
|
|
499
|
-
maxHeight: 1e4,
|
|
500
|
-
body: {
|
|
501
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
502
|
-
color: N.value.style.chart.color
|
|
503
|
-
},
|
|
504
|
-
head: {
|
|
505
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
506
|
-
color: N.value.style.chart.color
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
});
|
|
512
|
-
E(() => H.value.showTable, (e) => {
|
|
513
|
-
N.value.table.show || (e && N.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
514
|
-
});
|
|
515
|
-
function Wt() {
|
|
516
|
-
H.value.showTable = !1, M.value && M.value.setTableIconState(!1);
|
|
517
|
-
}
|
|
518
|
-
let Gt = d(() => N.value.style.chart.backgroundColor), Kt = d(() => N.value.style.chart.title), { isCallbackImaging: qt, isCallbackSvg: Jt, generateSvg: Yt, onGenerateImage: Xt } = me({
|
|
519
|
-
svg: R,
|
|
520
|
-
title: Kt,
|
|
521
|
-
legend: null,
|
|
522
|
-
legendItems: null,
|
|
523
|
-
backgroundColor: Gt,
|
|
524
|
-
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
525
|
-
generateImage: vt
|
|
526
|
-
});
|
|
527
|
-
async function Zt() {
|
|
528
|
-
if (rt("copyAlt", {
|
|
529
|
-
config: N.value,
|
|
530
|
-
dataset: W.value
|
|
531
|
-
}), !N.value.userOptions.callbacks.altCopy) {
|
|
532
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
536
|
-
config: N.value,
|
|
537
|
-
dataset: W.value
|
|
538
|
-
}));
|
|
539
|
-
}
|
|
540
|
-
let Qt = d(() => N.value.style.chart.color);
|
|
541
|
-
return ge({
|
|
542
|
-
getData: Mt,
|
|
543
|
-
getImage: Ut,
|
|
544
|
-
generatePdf: _t,
|
|
545
|
-
generateCsv: jt,
|
|
546
|
-
generateImage: vt,
|
|
547
|
-
generateSvg: Yt,
|
|
548
|
-
toggleTable: Pt,
|
|
549
|
-
toggleLabels: Ft,
|
|
550
|
-
toggleTooltip: It,
|
|
551
|
-
toggleAnnotator: Rt,
|
|
552
|
-
toggleFullscreen: Nt,
|
|
553
|
-
toggleZoom: Lt,
|
|
554
|
-
copyAlt: Zt
|
|
555
|
-
}), (e, t) => (S(), m("div", {
|
|
556
|
-
ref_key: "moleculeChart",
|
|
557
|
-
ref: A,
|
|
558
|
-
class: Ee(`vue-data-ui-component vue-ui-molecule ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
559
|
-
style: x(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor}`),
|
|
560
|
-
id: `cluster_${st.value}`,
|
|
561
|
-
onMouseleave: t[2] ||= (e) => {
|
|
562
|
-
K.value = null, q.value = null, T(pt)(!1);
|
|
563
|
-
},
|
|
564
|
-
onMouseenter: t[3] ||= () => T(pt)(!0)
|
|
565
|
-
}, [
|
|
566
|
-
N.value.userOptions.buttons.annotator && T(R) ? (S(), f(T(qe), {
|
|
567
|
-
key: 0,
|
|
568
|
-
svgRef: T(R),
|
|
569
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
570
|
-
color: N.value.style.chart.color,
|
|
571
|
-
active: X.value,
|
|
572
|
-
isCursorPointer: P.value,
|
|
573
|
-
onClose: Rt
|
|
574
|
-
}, {
|
|
575
|
-
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
576
|
-
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
577
|
-
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
578
|
-
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
579
|
-
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
580
|
-
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
581
|
-
_: 3
|
|
582
|
-
}, 8, [
|
|
583
|
-
"svgRef",
|
|
584
|
-
"backgroundColor",
|
|
585
|
-
"color",
|
|
586
|
-
"active",
|
|
587
|
-
"isCursorPointer"
|
|
588
|
-
])) : p("", !0),
|
|
589
|
-
yt.value ? (S(), m("div", Fe, null, 512)) : p("", !0),
|
|
590
|
-
N.value.style.chart.title.text ? (S(), m("div", Ie, [(S(), f(T(He), {
|
|
591
|
-
key: `title_${ut.value}`,
|
|
592
|
-
config: {
|
|
593
|
-
title: {
|
|
594
|
-
cy: "molecule-div-title",
|
|
595
|
-
...N.value.style.chart.title
|
|
596
|
-
},
|
|
597
|
-
subtitle: {
|
|
598
|
-
cy: "molecule-div-subtitle",
|
|
599
|
-
...N.value.style.chart.title.subtitle
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}, null, 8, ["config"]))])) : p("", !0),
|
|
603
|
-
N.value.userOptions.show && it.value && (T(mt) || T(L)) ? (S(), f(T(Je), {
|
|
604
|
-
ref_key: "userOptionsRef",
|
|
605
|
-
ref: M,
|
|
606
|
-
key: `user_options_${lt.value}`,
|
|
607
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
608
|
-
color: N.value.style.chart.color,
|
|
609
|
-
isPrinting: T(B),
|
|
610
|
-
isImaging: T(V),
|
|
611
|
-
uid: st.value,
|
|
612
|
-
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
613
|
-
hasPdf: N.value.userOptions.buttons.pdf,
|
|
614
|
-
hasXls: N.value.userOptions.buttons.csv,
|
|
615
|
-
hasImg: N.value.userOptions.buttons.img,
|
|
616
|
-
hasSvg: N.value.userOptions.buttons.svg,
|
|
617
|
-
hasTable: N.value.userOptions.buttons.table,
|
|
618
|
-
hasLabel: N.value.userOptions.buttons.labels,
|
|
619
|
-
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
620
|
-
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
621
|
-
isTooltip: H.value.showTooltip,
|
|
622
|
-
titles: { ...N.value.userOptions.buttonTitles },
|
|
623
|
-
chartElement: A.value,
|
|
624
|
-
position: N.value.userOptions.position,
|
|
625
|
-
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
626
|
-
isAnnotation: X.value,
|
|
627
|
-
callbacks: N.value.userOptions.callbacks,
|
|
628
|
-
printScale: N.value.userOptions.print.scale,
|
|
629
|
-
tableDialog: N.value.table.useDialog,
|
|
630
|
-
hasZoom: N.value.userOptions.buttons.zoom,
|
|
631
|
-
isZoom: H.value.showZoom,
|
|
632
|
-
isCursorPointer: P.value,
|
|
633
|
-
onToggleFullscreen: Nt,
|
|
634
|
-
onGeneratePdf: T(_t),
|
|
635
|
-
onGenerateCsv: jt,
|
|
636
|
-
onGenerateImage: T(Xt),
|
|
637
|
-
onGenerateSvg: T(Yt),
|
|
638
|
-
onToggleTable: Pt,
|
|
639
|
-
onToggleLabels: Ft,
|
|
640
|
-
onToggleTooltip: It,
|
|
641
|
-
onToggleAnnotator: Rt,
|
|
642
|
-
onToggleZoom: Lt,
|
|
643
|
-
onCopyAlt: Zt,
|
|
644
|
-
style: x({ visibility: T(mt) ? T(L) ? "visible" : "hidden" : "visible" })
|
|
645
|
-
}, Ce({ _: 2 }, [
|
|
646
|
-
e.$slots.menuIcon ? {
|
|
647
|
-
name: "menuIcon",
|
|
648
|
-
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
649
|
-
isOpen: t,
|
|
650
|
-
color: n
|
|
651
|
-
})), void 0, !0)]),
|
|
652
|
-
key: "0"
|
|
653
|
-
} : void 0,
|
|
654
|
-
e.$slots.optionTooltip ? {
|
|
655
|
-
name: "optionTooltip",
|
|
656
|
-
fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
657
|
-
key: "1"
|
|
658
|
-
} : void 0,
|
|
659
|
-
e.$slots.optionPdf ? {
|
|
660
|
-
name: "optionPdf",
|
|
661
|
-
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
662
|
-
key: "2"
|
|
663
|
-
} : void 0,
|
|
664
|
-
e.$slots.optionCsv ? {
|
|
665
|
-
name: "optionCsv",
|
|
666
|
-
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
667
|
-
key: "3"
|
|
668
|
-
} : void 0,
|
|
669
|
-
e.$slots.optionImg ? {
|
|
670
|
-
name: "optionImg",
|
|
671
|
-
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
672
|
-
key: "4"
|
|
673
|
-
} : void 0,
|
|
674
|
-
e.$slots.optionSvg ? {
|
|
675
|
-
name: "optionSvg",
|
|
676
|
-
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
677
|
-
key: "5"
|
|
678
|
-
} : void 0,
|
|
679
|
-
e.$slots.optionTable ? {
|
|
680
|
-
name: "optionTable",
|
|
681
|
-
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
682
|
-
key: "6"
|
|
683
|
-
} : void 0,
|
|
684
|
-
e.$slots.optionLabels ? {
|
|
685
|
-
name: "optionLabels",
|
|
686
|
-
fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
687
|
-
key: "7"
|
|
688
|
-
} : void 0,
|
|
689
|
-
e.$slots.optionFullscreen ? {
|
|
690
|
-
name: "optionFullscreen",
|
|
691
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
|
|
692
|
-
toggleFullscreen: t,
|
|
693
|
-
isFullscreen: n
|
|
694
|
-
})), void 0, !0)]),
|
|
695
|
-
key: "8"
|
|
696
|
-
} : void 0,
|
|
697
|
-
e.$slots.optionAnnotator ? {
|
|
698
|
-
name: "optionAnnotator",
|
|
699
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
|
|
700
|
-
toggleAnnotator: t,
|
|
701
|
-
isAnnotator: n
|
|
702
|
-
})), void 0, !0)]),
|
|
703
|
-
key: "9"
|
|
704
|
-
} : void 0,
|
|
705
|
-
e.$slots.optionZoom ? {
|
|
706
|
-
name: "optionZoom",
|
|
707
|
-
fn: D(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(v({
|
|
708
|
-
toggleZoom: t,
|
|
709
|
-
isZoomLocked: n
|
|
710
|
-
})), void 0, !0)]),
|
|
711
|
-
key: "10"
|
|
712
|
-
} : void 0,
|
|
713
|
-
e.$slots.optionAltCopy ? {
|
|
714
|
-
name: "optionAltCopy",
|
|
715
|
-
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
716
|
-
key: "11"
|
|
717
|
-
} : void 0,
|
|
718
|
-
e.$slots["custom-menu-before"] ? {
|
|
719
|
-
name: "custom-menu-before",
|
|
720
|
-
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
721
|
-
key: "12"
|
|
722
|
-
} : void 0,
|
|
723
|
-
e.$slots["custom-menu-after"] ? {
|
|
724
|
-
name: "custom-menu-after",
|
|
725
|
-
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
726
|
-
key: "13"
|
|
727
|
-
} : void 0
|
|
728
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
|
|
729
|
-
(S(), m("svg", {
|
|
730
|
-
ref_key: "svgRef",
|
|
731
|
-
ref: R,
|
|
732
|
-
key: `svg_${ht.value}`,
|
|
733
|
-
xmlns: T(ie),
|
|
734
|
-
viewBox: `${T(Z).x} ${T(Z).y} ${T(Z).width} ${T(Z).height}`,
|
|
735
|
-
class: Ee({
|
|
736
|
-
"vue-data-ui-fullscreen--on": Y.value,
|
|
737
|
-
"vue-data-ui-fulscreen--off": !Y.value
|
|
738
|
-
}),
|
|
739
|
-
style: x(`overflow: hidden; background:transparent;color:${N.value.style.chart.color}`)
|
|
740
|
-
}, [
|
|
741
|
-
g(T(Ye)),
|
|
742
|
-
e.$slots["chart-background"] ? (S(), m("foreignObject", {
|
|
743
|
-
key: 0,
|
|
744
|
-
x: 0,
|
|
745
|
-
y: 0,
|
|
746
|
-
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
747
|
-
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
748
|
-
style: { pointerEvents: "none" }
|
|
749
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Re)) : p("", !0),
|
|
750
|
-
h("defs", null, [(S(!0), m(Se, null, Oe(Object.keys(Tt.value), (e, t) => (S(), f(_e, {
|
|
751
|
-
t: "radial",
|
|
752
|
-
id: `gradient_${e}`,
|
|
753
|
-
key: `gradient_${e}_${t}`,
|
|
754
|
-
cx: "50%",
|
|
755
|
-
cy: "30%",
|
|
756
|
-
r: "50%",
|
|
757
|
-
fx: "50%",
|
|
758
|
-
fy: "50%",
|
|
759
|
-
stops: [[
|
|
760
|
-
"0%",
|
|
761
|
-
T(ne)(e, .5),
|
|
762
|
-
1
|
|
763
|
-
], [
|
|
764
|
-
"100%",
|
|
765
|
-
e,
|
|
766
|
-
1
|
|
767
|
-
]]
|
|
768
|
-
}, null, 8, ["id", "stops"]))), 128))]),
|
|
769
|
-
g(T(Xe), {
|
|
770
|
-
dataset: W.value,
|
|
771
|
-
color: N.value.style.chart.links.stroke,
|
|
772
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
773
|
-
useChildColor: N.value.style.chart.links.useChildColor
|
|
774
|
-
}, null, 8, [
|
|
775
|
-
"dataset",
|
|
776
|
-
"color",
|
|
777
|
-
"backgroundColor",
|
|
778
|
-
"useChildColor"
|
|
779
|
-
]),
|
|
780
|
-
g(T(Qe), {
|
|
781
|
-
dataset: W.value,
|
|
782
|
-
hoveredUid: q.value,
|
|
783
|
-
stroke: N.value.style.chart.nodes.stroke,
|
|
784
|
-
strokeHovered: N.value.style.chart.nodes.strokeHovered,
|
|
785
|
-
onClick: Ht,
|
|
786
|
-
onHover: Ot
|
|
787
|
-
}, {
|
|
788
|
-
node: D(({ node: t }) => [w(e.$slots, "node", b(v({ node: t })), void 0, !0)]),
|
|
789
|
-
"node-svg": D(({ nodeSvg: t }) => [w(e.$slots, "node-svg", b(v({ nodeSvg: t })), void 0, !0)]),
|
|
790
|
-
_: 3
|
|
791
|
-
}, 8, [
|
|
792
|
-
"dataset",
|
|
793
|
-
"hoveredUid",
|
|
794
|
-
"stroke",
|
|
795
|
-
"strokeHovered"
|
|
796
|
-
]),
|
|
797
|
-
H.value.showDataLabels && !T(F) ? (S(), f(T(Ze), {
|
|
798
|
-
key: 1,
|
|
799
|
-
dataset: W.value,
|
|
800
|
-
color: N.value.style.chart.color,
|
|
801
|
-
hoveredUid: q.value
|
|
802
|
-
}, null, 8, [
|
|
803
|
-
"dataset",
|
|
804
|
-
"color",
|
|
805
|
-
"hoveredUid"
|
|
806
|
-
])) : p("", !0),
|
|
807
|
-
w(e.$slots, "svg", { svg: {
|
|
808
|
-
...U.value,
|
|
809
|
-
drawingArea: { ...T(Z) },
|
|
810
|
-
isPrintingImg: T(B) || T(V) || T(qt),
|
|
811
|
-
isPrintingSvg: T(Jt)
|
|
812
|
-
} }, void 0, !0)
|
|
813
|
-
], 14, Le)),
|
|
814
|
-
e.$slots.watermark ? (S(), m("div", ze, [w(e.$slots, "watermark", b(v({ isPrinting: T(B) || T(V) || T(qt) || T(Jt) })), void 0, !0)])) : p("", !0),
|
|
815
|
-
T(Bt) ? (S(), m("div", Be, [w(e.$slots, "reset-action", { reset: T(Q) }, () => [h("button", {
|
|
816
|
-
"data-cy-reset": "",
|
|
817
|
-
tabindex: "0",
|
|
818
|
-
role: "button",
|
|
819
|
-
class: "vue-data-ui-refresh-button",
|
|
820
|
-
style: x({
|
|
821
|
-
background: N.value.style.chart.backgroundColor,
|
|
822
|
-
cursor: P.value ? "pointer" : "default"
|
|
823
|
-
}),
|
|
824
|
-
onClick: t[0] ||= (e) => T(Q)(!0)
|
|
825
|
-
}, [g(T(We), {
|
|
826
|
-
name: "refresh",
|
|
827
|
-
stroke: N.value.style.chart.color
|
|
828
|
-
}, null, 8, ["stroke"])], 4)], !0)])) : p("", !0),
|
|
829
|
-
e.$slots.source ? (S(), m("div", Ve, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
830
|
-
g(T(Ue), {
|
|
831
|
-
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
832
|
-
show: H.value.showTooltip && ct.value,
|
|
833
|
-
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
834
|
-
color: N.value.style.chart.tooltip.color,
|
|
835
|
-
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
836
|
-
borderColor: N.value.style.chart.tooltip.borderColor,
|
|
837
|
-
borderWidth: N.value.style.chart.tooltip.borderWidth,
|
|
838
|
-
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
839
|
-
backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
|
|
840
|
-
position: N.value.style.chart.tooltip.position,
|
|
841
|
-
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
842
|
-
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
843
|
-
parent: A.value,
|
|
844
|
-
content: k.value,
|
|
845
|
-
isFullscreen: Y.value,
|
|
846
|
-
isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
|
|
847
|
-
smooth: N.value.style.chart.tooltip.smooth,
|
|
848
|
-
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
849
|
-
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
850
|
-
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold
|
|
851
|
-
}, {
|
|
852
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...G.value })), void 0, !0)]),
|
|
853
|
-
tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...G.value })), void 0, !0)]),
|
|
854
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...G.value })), void 0, !0)]),
|
|
855
|
-
_: 3
|
|
856
|
-
}, 8, [
|
|
857
|
-
"teleportTo",
|
|
858
|
-
"show",
|
|
859
|
-
"backgroundColor",
|
|
860
|
-
"color",
|
|
861
|
-
"borderRadius",
|
|
862
|
-
"borderColor",
|
|
863
|
-
"borderWidth",
|
|
864
|
-
"fontSize",
|
|
865
|
-
"backgroundOpacity",
|
|
866
|
-
"position",
|
|
867
|
-
"offsetX",
|
|
868
|
-
"offsetY",
|
|
869
|
-
"parent",
|
|
870
|
-
"content",
|
|
871
|
-
"isFullscreen",
|
|
872
|
-
"isCustom",
|
|
873
|
-
"smooth",
|
|
874
|
-
"backdropFilter",
|
|
875
|
-
"smoothForce",
|
|
876
|
-
"smoothSnapThreshold"
|
|
877
|
-
]),
|
|
878
|
-
it.value && N.value.userOptions.buttons.table ? (S(), f(ke($.value.component), Te({ key: 7 }, $.value.props, {
|
|
879
|
-
ref_key: "tableUnit",
|
|
880
|
-
ref: j,
|
|
881
|
-
onClose: Wt
|
|
882
|
-
}), Ce({
|
|
883
|
-
content: D(() => [(S(), f(T(Ke), {
|
|
884
|
-
key: `table_${dt.value}`,
|
|
885
|
-
colNames: J.value.colNames,
|
|
886
|
-
head: J.value.head,
|
|
887
|
-
body: J.value.body,
|
|
888
|
-
config: J.value.config,
|
|
889
|
-
title: N.value.table.useDialog ? "" : $.value.title,
|
|
890
|
-
withCloseButton: !N.value.table.useDialog,
|
|
891
|
-
isCursorPointer: P.value,
|
|
892
|
-
onClose: Wt
|
|
893
|
-
}, {
|
|
894
|
-
th: D(({ th: e }) => [h("div", null, Ae(e), 1)]),
|
|
895
|
-
td: D(({ td: e }) => [we(Ae(e.name || e), 1)]),
|
|
896
|
-
_: 1
|
|
897
|
-
}, 8, [
|
|
898
|
-
"colNames",
|
|
899
|
-
"head",
|
|
900
|
-
"body",
|
|
901
|
-
"config",
|
|
902
|
-
"title",
|
|
903
|
-
"withCloseButton",
|
|
904
|
-
"isCursorPointer"
|
|
905
|
-
]))]),
|
|
906
|
-
_: 2
|
|
907
|
-
}, [N.value.table.useDialog ? {
|
|
908
|
-
name: "title",
|
|
909
|
-
fn: D(() => [we(Ae($.value.title), 1)]),
|
|
910
|
-
key: "0"
|
|
911
|
-
} : void 0, N.value.table.useDialog ? {
|
|
912
|
-
name: "actions",
|
|
913
|
-
fn: D(() => [h("button", {
|
|
914
|
-
tabindex: "0",
|
|
915
|
-
class: "vue-ui-user-options-button",
|
|
916
|
-
onClick: t[1] ||= (e) => jt(N.value.userOptions.callbacks.csv),
|
|
917
|
-
style: x({ cursor: P.value ? "pointer" : "default" })
|
|
918
|
-
}, [g(T(We), {
|
|
919
|
-
name: "fileCsv",
|
|
920
|
-
stroke: $.value.props.color
|
|
921
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
922
|
-
key: "1"
|
|
923
|
-
} : void 0]), 1040)) : p("", !0),
|
|
924
|
-
w(e.$slots, "skeleton", {}, () => [T(F) ? (S(), f(de, { key: 0 })) : p("", !0)], !0)
|
|
925
|
-
], 46, Pe));
|
|
926
|
-
}
|
|
927
|
-
}, [["__scopeId", "data-v-09af1533"]]);
|
|
928
|
-
//#endregion
|
|
929
|
-
export { Ne as n, He as t };
|