vue-data-ui 3.22.9 → 3.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,931 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, A as n, Et as r, G as ee, Kt as i, Mt as te, S as a, T as o, Wt as s, Y as c, Z as ne, b as re, kt as ie, ot as l, t as ae, yt as oe } from "./lib-JqW18y5I.js";
|
|
3
|
-
import { t as se } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as ce } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
-
import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as de } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as u } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
-
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as pe } from "./img-DnP3eXuv.js";
|
|
10
|
-
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
-
import { t as he } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
-
import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
|
|
13
|
-
import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
|
-
import { t as ve } from "./vue_ui_molecule-CO9L59SF.js";
|
|
15
|
-
import { t as ye } from "./usePanZoom-CYU3B4T3.js";
|
|
16
|
-
import { Fragment as be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as xe, createTextVNode as Se, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ce, nextTick as y, normalizeClass as we, normalizeProps as b, normalizeStyle as x, onMounted as Te, openBlock as S, ref as C, renderList as Ee, renderSlot as w, resolveDynamicComponent as De, toDisplayString as Oe, toRefs as ke, unref as T, useCssVars as Ae, watch as E, withCtx as D } from "vue";
|
|
17
|
-
//#region src/components/vue-ui-molecule.vue
|
|
18
|
-
var je = /* @__PURE__ */ e({ default: () => O }), Me = ["id"], Ne = {
|
|
19
|
-
key: 1,
|
|
20
|
-
ref: "noTitle",
|
|
21
|
-
class: "vue-data-ui-no-title-space",
|
|
22
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
23
|
-
}, Pe = {
|
|
24
|
-
key: 2,
|
|
25
|
-
style: "width:100%;background:transparent;"
|
|
26
|
-
}, Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = {
|
|
27
|
-
key: 4,
|
|
28
|
-
class: "vue-data-ui-watermark"
|
|
29
|
-
}, Re = {
|
|
30
|
-
key: 5,
|
|
31
|
-
"data-dom-to-png-ignore": "",
|
|
32
|
-
class: "reset-wrapper"
|
|
33
|
-
}, ze = {
|
|
34
|
-
key: 6,
|
|
35
|
-
ref: "source",
|
|
36
|
-
dir: "auto"
|
|
37
|
-
}, Be = ["innerHTML"], O = /*#__PURE__*/ me({
|
|
38
|
-
__name: "vue-ui-molecule",
|
|
39
|
-
props: {
|
|
40
|
-
config: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default() {
|
|
43
|
-
return {};
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
dataset: {
|
|
47
|
-
type: Array,
|
|
48
|
-
default() {
|
|
49
|
-
return [];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ["selectNode", "copyAlt"],
|
|
54
|
-
setup(e, { expose: me, emit: je }) {
|
|
55
|
-
Ae((e) => ({ v62768f10: Qt.value }));
|
|
56
|
-
let O = _(() => import("./Title-CcNiYzEo.js").then((e) => e.t)), Ve = _(() => import("./Tooltip-CxOrWlFy.js")), He = _(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ue = _(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), We = _(() => import("./DataTable-BxpTMgfK.js")), Ge = _(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ke = _(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), qe = _(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Je = _(() => import("./RecursiveLinks-BygcpDiT.js")), Ye = _(() => import("./RecursiveLabels-D9rfID6q.js")), Xe = _(() => import("./RecursiveCircles-D6aDPmoe.js")), Ze = _(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_molecule: Qe } = se(), { isThemeValid: $e, warnInvalidTheme: et } = fe(), k = e, tt = je, nt = d(() => !!k.dataset && k.dataset.length);
|
|
57
|
-
Te(() => {
|
|
58
|
-
it();
|
|
59
|
-
});
|
|
60
|
-
let rt = d(() => F.value.debug);
|
|
61
|
-
function it() {
|
|
62
|
-
ie(k.dataset) && t({
|
|
63
|
-
componentName: "VueUiMolecule",
|
|
64
|
-
type: "dataset",
|
|
65
|
-
debug: rt.value
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
let at = C(ee()), ot = C(!1), A = C(""), j = C(null), st = C(0), ct = C(0), lt = C(0), M = C(null), ut = C(null), N = C(!1), P = C(!1), F = C(V()), I = d(() => F.value.userOptions.useCursorPointer), dt = d(() => i({
|
|
69
|
-
defaultConfig: {
|
|
70
|
-
userOptions: { show: !1 },
|
|
71
|
-
table: { show: !1 },
|
|
72
|
-
style: { chart: {
|
|
73
|
-
backgroundColor: "#99999930",
|
|
74
|
-
nodes: { stroke: "#6A6A6A" },
|
|
75
|
-
links: { stroke: "#6A6A6A80" }
|
|
76
|
-
} }
|
|
77
|
-
},
|
|
78
|
-
userConfig: F.value.skeletonConfig ?? {}
|
|
79
|
-
})), { loading: L, FINAL_DATASET: R } = le({
|
|
80
|
-
...ke(k),
|
|
81
|
-
FINAL_CONFIG: F,
|
|
82
|
-
prepareConfig: V,
|
|
83
|
-
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
84
|
-
name: "_",
|
|
85
|
-
color: "#CACACA",
|
|
86
|
-
nodes: [
|
|
87
|
-
{
|
|
88
|
-
name: "_",
|
|
89
|
-
color: "#CACACA",
|
|
90
|
-
nodes: [
|
|
91
|
-
{
|
|
92
|
-
name: "_",
|
|
93
|
-
color: "#CACACA"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: "_",
|
|
97
|
-
color: "#CACACA"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: "_",
|
|
101
|
-
color: "#CACACA"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "_",
|
|
107
|
-
color: "#CACACA",
|
|
108
|
-
nodes: [
|
|
109
|
-
{
|
|
110
|
-
name: "_",
|
|
111
|
-
color: "#CACACA"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: "_",
|
|
115
|
-
color: "#CACACA"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: "_",
|
|
119
|
-
color: "#CACACA"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: "_",
|
|
125
|
-
color: "#CACACA",
|
|
126
|
-
nodes: [
|
|
127
|
-
{
|
|
128
|
-
name: "_",
|
|
129
|
-
color: "#CACACA"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: "_",
|
|
133
|
-
color: "#CACACA"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "_",
|
|
137
|
-
color: "#CACACA"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: "_",
|
|
143
|
-
color: "#CACACA",
|
|
144
|
-
nodes: [
|
|
145
|
-
{
|
|
146
|
-
name: "_",
|
|
147
|
-
color: "#CACACA"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: "_",
|
|
151
|
-
color: "#CACACA"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: "_",
|
|
155
|
-
color: "#CACACA"
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: "_",
|
|
161
|
-
color: "#CACACA",
|
|
162
|
-
nodes: [
|
|
163
|
-
{
|
|
164
|
-
name: "_",
|
|
165
|
-
color: "#CACACA"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: "_",
|
|
169
|
-
color: "#CACACA"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: "_",
|
|
173
|
-
color: "#CACACA"
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: "_",
|
|
179
|
-
color: "#CACACA",
|
|
180
|
-
nodes: [
|
|
181
|
-
{
|
|
182
|
-
name: "_",
|
|
183
|
-
color: "#CACACA"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "_",
|
|
187
|
-
color: "#CACACA"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: "_",
|
|
191
|
-
color: "#CACACA"
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}],
|
|
197
|
-
skeletonConfig: i({
|
|
198
|
-
defaultConfig: F.value,
|
|
199
|
-
userConfig: dt.value
|
|
200
|
-
})
|
|
201
|
-
}), { userOptionsVisible: z, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ge({ config: F.value }), { svgRef: B } = _e({ config: F.value.style.chart.title });
|
|
202
|
-
function V() {
|
|
203
|
-
let e = u({
|
|
204
|
-
userConfig: k.config,
|
|
205
|
-
defaultConfig: Qe
|
|
206
|
-
}), t = e.theme;
|
|
207
|
-
if (!t) return e;
|
|
208
|
-
if (!$e.value(e)) return et(e), e;
|
|
209
|
-
let n = u({
|
|
210
|
-
userConfig: ve[t] || k.config,
|
|
211
|
-
defaultConfig: e
|
|
212
|
-
}), r = u({
|
|
213
|
-
userConfig: k.config,
|
|
214
|
-
defaultConfig: n
|
|
215
|
-
});
|
|
216
|
-
return {
|
|
217
|
-
...r,
|
|
218
|
-
customPalette: r.customPalette.length ? r.customPalette : s[t] || te
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
E(() => k.config, (e) => {
|
|
222
|
-
F.value = V(), z.value = !F.value.userOptions.showOnChartHover, it(), ct.value += 1, lt.value += 1, U.value.showTable = F.value.table.show, U.value.showTooltip = F.value.style.chart.tooltip.show, U.value.showZoom = F.value.style.chart.zoom.show;
|
|
223
|
-
}, { deep: !0 });
|
|
224
|
-
let mt = C(0), ht = () => {
|
|
225
|
-
mt.value += 1;
|
|
226
|
-
};
|
|
227
|
-
E([() => L.value, () => R.value], async ([e]) => {
|
|
228
|
-
e || (await y(), W.value = St(), await y(), ht(), await y(), Ht({
|
|
229
|
-
x: 0,
|
|
230
|
-
y: 0,
|
|
231
|
-
width: 400,
|
|
232
|
-
height: 400
|
|
233
|
-
}), Bt(!1));
|
|
234
|
-
}, {
|
|
235
|
-
flush: "post",
|
|
236
|
-
deep: !1
|
|
237
|
-
});
|
|
238
|
-
let { isPrinting: H, isImaging: gt, generatePdf: _t, generateImage: vt } = ce({
|
|
239
|
-
elementId: `cluster_${at.value}`,
|
|
240
|
-
fileName: F.value.style.chart.title.text || "vue-ui-molecule",
|
|
241
|
-
options: F.value.userOptions.print
|
|
242
|
-
}), yt = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), bt = d(() => a(F.value.customPalette)), U = C({
|
|
243
|
-
showTable: F.value.table.show,
|
|
244
|
-
showDataLabels: !0,
|
|
245
|
-
showTooltip: F.value.style.chart.tooltip.show,
|
|
246
|
-
showZoom: F.value.style.chart.zoom.show
|
|
247
|
-
});
|
|
248
|
-
E(F, () => {
|
|
249
|
-
U.value = {
|
|
250
|
-
showTable: F.value.table.show,
|
|
251
|
-
showDataLabels: !0,
|
|
252
|
-
showTooltip: F.value.style.chart.tooltip.show,
|
|
253
|
-
showZoom: F.value.style.chart.zoom.show
|
|
254
|
-
};
|
|
255
|
-
}, { immediate: !0 });
|
|
256
|
-
function xt(e, t = 0) {
|
|
257
|
-
return Array.isArray(e) && e.length > 0 && e[0].nodes ? xt(e[0].nodes, t + 1) : t;
|
|
258
|
-
}
|
|
259
|
-
function St() {
|
|
260
|
-
let e = xt(R.value), t = 100, n = t;
|
|
261
|
-
for (let r = 0; r < e; r += 1) t /= 1, n += t;
|
|
262
|
-
return {
|
|
263
|
-
height: n,
|
|
264
|
-
width: n
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
let W = C(St());
|
|
268
|
-
function Ct(e, t = {
|
|
269
|
-
x: -W.value.width / 2.43,
|
|
270
|
-
y: W.value.height / 2
|
|
271
|
-
}, r = W.value.width / 1.1, i = 24, a = 0, o = 0, s = "#BBBBBB", c = 0) {
|
|
272
|
-
if (!Array.isArray(e) || e.length === 0) return e;
|
|
273
|
-
let ne = n({
|
|
274
|
-
plot: t,
|
|
275
|
-
radius: r,
|
|
276
|
-
sides: e.length,
|
|
277
|
-
rotation: a
|
|
278
|
-
});
|
|
279
|
-
return e.forEach((e, t) => {
|
|
280
|
-
let n = ne.coordinates[t], ie = e.color ? (() => {
|
|
281
|
-
let t = re(e.color);
|
|
282
|
-
return t.startsWith("#") ? t : `#${t}`;
|
|
283
|
-
})() : null, l;
|
|
284
|
-
ie ? l = ie : c === 0 ? l = s : c === 1 ? (l = bt.value[o] || te[o] || s, o += 1) : l = s, e.polygonPath = { coordinates: [n] }, e.circleRadius = i, e.color = l, e.strokeWidth = Math.min(F.value.style.chart.links.strokeWidth / (c + 1), i / 2), e.uid = ee(), Array.isArray(e.nodes) && e.nodes.length && (e.nodes = Ct(e.nodes, n, r / 2.9, i / 2.2, a + Math.PI * t / e.nodes.length, o, l, c + 1));
|
|
285
|
-
}), e;
|
|
286
|
-
}
|
|
287
|
-
function wt(e) {
|
|
288
|
-
let t = /* @__PURE__ */ new Set();
|
|
289
|
-
function n(e) {
|
|
290
|
-
e.forEach((e) => {
|
|
291
|
-
if (!e.color) return;
|
|
292
|
-
let r = e.color;
|
|
293
|
-
/^#?[0-9A-F]{6}$/i.test(r) || (r = re(r)), r.startsWith("#") || (r = `#${r}`), t.add(r), Array.isArray(e.nodes) && e.nodes.length && n(e.nodes);
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
n(e);
|
|
297
|
-
let r = {};
|
|
298
|
-
return Array.from(t).forEach((e) => {
|
|
299
|
-
r[e] = `gradient_${e.slice(1)}`;
|
|
300
|
-
}), r;
|
|
301
|
-
}
|
|
302
|
-
let Tt = d(() => wt(G.value)), G = d(() => Ct(c(R.value))), K = C(null);
|
|
303
|
-
function Et(e) {
|
|
304
|
-
K.value = {
|
|
305
|
-
datapoint: e,
|
|
306
|
-
seriesIndex: -1,
|
|
307
|
-
series: G.value,
|
|
308
|
-
config: F.value
|
|
309
|
-
};
|
|
310
|
-
let t = F.value.style.chart.tooltip.customFormat;
|
|
311
|
-
if (oe(t) && l(() => t({
|
|
312
|
-
seriesIndex: -1,
|
|
313
|
-
datapoint: e,
|
|
314
|
-
series: G.value,
|
|
315
|
-
config: F.value
|
|
316
|
-
}))) A.value = t({
|
|
317
|
-
seriesIndex: -1,
|
|
318
|
-
datapoint: e,
|
|
319
|
-
series: G.value,
|
|
320
|
-
config: F.value
|
|
321
|
-
});
|
|
322
|
-
else {
|
|
323
|
-
let t = "";
|
|
324
|
-
t += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (t += `<div style="width:100%;border-top:1px solid ${F.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), A.value = `<div style="font-family:inherit">${t}</div>`;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
let q = C(null), J = C(null), Dt = C(null);
|
|
328
|
-
function Ot(e) {
|
|
329
|
-
Dt.value = q.value, q.value = e, e ? F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
330
|
-
datapoint: e,
|
|
331
|
-
seriesIndex: -1
|
|
332
|
-
}) : F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
333
|
-
datapoint: Dt.value || q.value,
|
|
334
|
-
seriesIndex: -1
|
|
335
|
-
}), e ? (ot.value = !0, Et(e), J.value = e.uid) : (ot.value = !1, A.value = "", J.value = null);
|
|
336
|
-
}
|
|
337
|
-
function kt(e) {
|
|
338
|
-
let t = [];
|
|
339
|
-
function n(e) {
|
|
340
|
-
e.forEach((e) => {
|
|
341
|
-
let r = {
|
|
342
|
-
name: e.name,
|
|
343
|
-
details: e.details || "-",
|
|
344
|
-
ancestor: e.ancestor && e.ancestor.name || "-",
|
|
345
|
-
color: e.color || ""
|
|
346
|
-
};
|
|
347
|
-
t.push(r), e.nodes && e.nodes.length > 0 && n(e.nodes, e.name);
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
return n(e), t;
|
|
351
|
-
}
|
|
352
|
-
let At = d(() => kt(G.value)), Y = d(() => ({
|
|
353
|
-
head: [
|
|
354
|
-
F.value.table.translations.nodeName,
|
|
355
|
-
F.value.table.translations.details,
|
|
356
|
-
F.value.table.translations.ancestor
|
|
357
|
-
],
|
|
358
|
-
body: At.value.map((e, t) => [
|
|
359
|
-
{
|
|
360
|
-
color: e.color,
|
|
361
|
-
name: e.name
|
|
362
|
-
},
|
|
363
|
-
e.details,
|
|
364
|
-
e.ancestor || ""
|
|
365
|
-
]),
|
|
366
|
-
config: {
|
|
367
|
-
th: {
|
|
368
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
369
|
-
color: F.value.table.th.color,
|
|
370
|
-
outline: F.value.table.th.outline
|
|
371
|
-
},
|
|
372
|
-
td: {
|
|
373
|
-
backgroundColor: F.value.table.td.backgroundColor,
|
|
374
|
-
color: F.value.table.td.color,
|
|
375
|
-
outline: F.value.table.td.outline
|
|
376
|
-
},
|
|
377
|
-
breakpoint: F.value.table.responsiveBreakpoint
|
|
378
|
-
},
|
|
379
|
-
colNames: [
|
|
380
|
-
F.value.table.translations.nodeName,
|
|
381
|
-
F.value.table.translations.details,
|
|
382
|
-
F.value.table.translations.ancestor
|
|
383
|
-
]
|
|
384
|
-
}));
|
|
385
|
-
function jt(e = null) {
|
|
386
|
-
y(() => {
|
|
387
|
-
let t = Y.value.body.map((e, t) => [
|
|
388
|
-
[e[0].name],
|
|
389
|
-
[e[1]],
|
|
390
|
-
[e[2]]
|
|
391
|
-
]), n = o([
|
|
392
|
-
[F.value.style.chart.title.text],
|
|
393
|
-
[F.value.style.chart.title.subtitle.text],
|
|
394
|
-
[[...Y.value.head]]
|
|
395
|
-
].concat(t));
|
|
396
|
-
e ? e(n) : ne({
|
|
397
|
-
csvContent: n,
|
|
398
|
-
title: F.value.style.chart.title.text || "vue-ui-molecule"
|
|
399
|
-
});
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
function Mt() {
|
|
403
|
-
return G.value;
|
|
404
|
-
}
|
|
405
|
-
let X = C(!1);
|
|
406
|
-
function Nt(e) {
|
|
407
|
-
X.value = e, st.value += 1;
|
|
408
|
-
}
|
|
409
|
-
function Pt() {
|
|
410
|
-
U.value.showTable = !U.value.showTable;
|
|
411
|
-
}
|
|
412
|
-
function Ft() {
|
|
413
|
-
U.value.showDataLabels = !U.value.showDataLabels;
|
|
414
|
-
}
|
|
415
|
-
function It() {
|
|
416
|
-
U.value.showTooltip = !U.value.showTooltip;
|
|
417
|
-
}
|
|
418
|
-
function Lt() {
|
|
419
|
-
U.value.showZoom = !U.value.showZoom;
|
|
420
|
-
}
|
|
421
|
-
let Z = C(!1);
|
|
422
|
-
function Rt() {
|
|
423
|
-
Z.value = !Z.value;
|
|
424
|
-
}
|
|
425
|
-
let zt = d(() => !Z.value && U.value.showZoom), { viewBox: Q, resetZoom: Bt, isZoom: Vt, setInitialViewBox: Ht } = ye(B, {
|
|
426
|
-
x: 0,
|
|
427
|
-
y: 0,
|
|
428
|
-
width: Math.max(10, W.value.width),
|
|
429
|
-
height: Math.max(10, W.value.height)
|
|
430
|
-
}, F.value.style.chart.zoom.speed, zt);
|
|
431
|
-
function Ut(e) {
|
|
432
|
-
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
433
|
-
datapoint: e,
|
|
434
|
-
seriesIndex: -1
|
|
435
|
-
}), tt("selectNode", e);
|
|
436
|
-
}
|
|
437
|
-
async function Wt({ scale: e = 2 } = {}) {
|
|
438
|
-
if (!j.value) return;
|
|
439
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: ee, base64: i } = await pe({
|
|
440
|
-
domElement: j.value,
|
|
441
|
-
base64: !0,
|
|
442
|
-
img: !0,
|
|
443
|
-
scale: e
|
|
444
|
-
});
|
|
445
|
-
return {
|
|
446
|
-
imageUri: ee,
|
|
447
|
-
base64: i,
|
|
448
|
-
title: F.value.style.chart.title.text,
|
|
449
|
-
width: t,
|
|
450
|
-
height: n,
|
|
451
|
-
aspectRatio: r
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
let $ = d(() => {
|
|
455
|
-
let e = F.value.table.useDialog && !F.value.table.show, t = U.value.showTable;
|
|
456
|
-
return {
|
|
457
|
-
component: e ? Ze : Ue,
|
|
458
|
-
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
459
|
-
props: e ? {
|
|
460
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
461
|
-
color: F.value.table.th.color,
|
|
462
|
-
headerColor: F.value.table.th.color,
|
|
463
|
-
headerBg: F.value.table.th.backgroundColor,
|
|
464
|
-
isFullscreen: X.value,
|
|
465
|
-
fullscreenParent: j.value,
|
|
466
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
467
|
-
isCursorPointer: I.value
|
|
468
|
-
} : {
|
|
469
|
-
hideDetails: !0,
|
|
470
|
-
config: {
|
|
471
|
-
open: t,
|
|
472
|
-
maxHeight: 1e4,
|
|
473
|
-
body: {
|
|
474
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
475
|
-
color: F.value.style.chart.color
|
|
476
|
-
},
|
|
477
|
-
head: {
|
|
478
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
479
|
-
color: F.value.style.chart.color
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
});
|
|
485
|
-
E(() => U.value.showTable, (e) => {
|
|
486
|
-
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
487
|
-
});
|
|
488
|
-
function Gt() {
|
|
489
|
-
U.value.showTable = !1, ut.value && ut.value.setTableIconState(!1);
|
|
490
|
-
}
|
|
491
|
-
let Kt = d(() => F.value.style.chart.backgroundColor), { exportSvg: qt, getSvg: Jt } = de({
|
|
492
|
-
svg: B,
|
|
493
|
-
title: d(() => F.value.style.chart.title),
|
|
494
|
-
backgroundColor: Kt
|
|
495
|
-
});
|
|
496
|
-
async function Yt({ isCb: e }) {
|
|
497
|
-
P.value = !0, await y();
|
|
498
|
-
try {
|
|
499
|
-
if (e) {
|
|
500
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Jt();
|
|
501
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
502
|
-
blob: e,
|
|
503
|
-
url: t,
|
|
504
|
-
text: n,
|
|
505
|
-
dataUrl: r
|
|
506
|
-
}));
|
|
507
|
-
} else await Promise.resolve(qt());
|
|
508
|
-
} finally {
|
|
509
|
-
P.value = !1;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
function Xt(e) {
|
|
513
|
-
if (e?.stage === "start") {
|
|
514
|
-
N.value = !0;
|
|
515
|
-
return;
|
|
516
|
-
}
|
|
517
|
-
if (e?.stage === "end") {
|
|
518
|
-
N.value = !1;
|
|
519
|
-
return;
|
|
520
|
-
}
|
|
521
|
-
vt();
|
|
522
|
-
}
|
|
523
|
-
async function Zt() {
|
|
524
|
-
if (tt("copyAlt", {
|
|
525
|
-
config: F.value,
|
|
526
|
-
dataset: G.value
|
|
527
|
-
}), !F.value.userOptions.callbacks.altCopy) {
|
|
528
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
532
|
-
config: F.value,
|
|
533
|
-
dataset: G.value
|
|
534
|
-
}));
|
|
535
|
-
}
|
|
536
|
-
let Qt = d(() => F.value.style.chart.color);
|
|
537
|
-
return me({
|
|
538
|
-
getData: Mt,
|
|
539
|
-
getImage: Wt,
|
|
540
|
-
generatePdf: _t,
|
|
541
|
-
generateCsv: jt,
|
|
542
|
-
generateImage: vt,
|
|
543
|
-
generateSvg: Yt,
|
|
544
|
-
toggleTable: Pt,
|
|
545
|
-
toggleLabels: Ft,
|
|
546
|
-
toggleTooltip: It,
|
|
547
|
-
toggleAnnotator: Rt,
|
|
548
|
-
toggleFullscreen: Nt,
|
|
549
|
-
toggleZoom: Lt,
|
|
550
|
-
copyAlt: Zt
|
|
551
|
-
}), (e, t) => (S(), m("div", {
|
|
552
|
-
ref_key: "moleculeChart",
|
|
553
|
-
ref: j,
|
|
554
|
-
class: we(`vue-data-ui-component vue-ui-molecule ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
555
|
-
style: x(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
556
|
-
id: `cluster_${at.value}`,
|
|
557
|
-
onMouseleave: t[2] ||= (e) => {
|
|
558
|
-
q.value = null, J.value = null, T(ft)(!1);
|
|
559
|
-
},
|
|
560
|
-
onMouseenter: t[3] ||= () => T(ft)(!0)
|
|
561
|
-
}, [
|
|
562
|
-
F.value.userOptions.buttons.annotator && T(B) ? (S(), f(T(Ge), {
|
|
563
|
-
key: 0,
|
|
564
|
-
svgRef: T(B),
|
|
565
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
566
|
-
color: F.value.style.chart.color,
|
|
567
|
-
active: Z.value,
|
|
568
|
-
isCursorPointer: I.value,
|
|
569
|
-
onClose: Rt
|
|
570
|
-
}, {
|
|
571
|
-
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
572
|
-
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
573
|
-
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
574
|
-
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
575
|
-
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
576
|
-
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
577
|
-
_: 3
|
|
578
|
-
}, 8, [
|
|
579
|
-
"svgRef",
|
|
580
|
-
"backgroundColor",
|
|
581
|
-
"color",
|
|
582
|
-
"active",
|
|
583
|
-
"isCursorPointer"
|
|
584
|
-
])) : p("", !0),
|
|
585
|
-
yt.value ? (S(), m("div", Ne, null, 512)) : p("", !0),
|
|
586
|
-
F.value.style.chart.title.text ? (S(), m("div", Pe, [(S(), f(T(O), {
|
|
587
|
-
key: `title_${ct.value}`,
|
|
588
|
-
config: {
|
|
589
|
-
title: {
|
|
590
|
-
cy: "molecule-div-title",
|
|
591
|
-
...F.value.style.chart.title
|
|
592
|
-
},
|
|
593
|
-
subtitle: {
|
|
594
|
-
cy: "molecule-div-subtitle",
|
|
595
|
-
...F.value.style.chart.title.subtitle
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}, null, 8, ["config"]))])) : p("", !0),
|
|
599
|
-
F.value.userOptions.show && nt.value && (T(pt) || T(z)) ? (S(), f(T(Ke), {
|
|
600
|
-
ref_key: "userOptionsRef",
|
|
601
|
-
ref: ut,
|
|
602
|
-
key: `user_options_${st.value}`,
|
|
603
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
604
|
-
color: F.value.style.chart.color,
|
|
605
|
-
isPrinting: T(H),
|
|
606
|
-
isImaging: T(gt),
|
|
607
|
-
uid: at.value,
|
|
608
|
-
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
609
|
-
hasPdf: F.value.userOptions.buttons.pdf,
|
|
610
|
-
hasXls: F.value.userOptions.buttons.csv,
|
|
611
|
-
hasImg: F.value.userOptions.buttons.img,
|
|
612
|
-
hasSvg: F.value.userOptions.buttons.svg,
|
|
613
|
-
hasTable: F.value.userOptions.buttons.table,
|
|
614
|
-
hasLabel: F.value.userOptions.buttons.labels,
|
|
615
|
-
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
616
|
-
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
617
|
-
isTooltip: U.value.showTooltip,
|
|
618
|
-
titles: { ...F.value.userOptions.buttonTitles },
|
|
619
|
-
chartElement: j.value,
|
|
620
|
-
position: F.value.userOptions.position,
|
|
621
|
-
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
622
|
-
isAnnotation: Z.value,
|
|
623
|
-
callbacks: F.value.userOptions.callbacks,
|
|
624
|
-
printScale: F.value.userOptions.print.scale,
|
|
625
|
-
tableDialog: F.value.table.useDialog,
|
|
626
|
-
hasZoom: F.value.userOptions.buttons.zoom,
|
|
627
|
-
isZoom: U.value.showZoom,
|
|
628
|
-
isCursorPointer: I.value,
|
|
629
|
-
onToggleFullscreen: Nt,
|
|
630
|
-
onGeneratePdf: T(_t),
|
|
631
|
-
onGenerateCsv: jt,
|
|
632
|
-
onGenerateImage: Xt,
|
|
633
|
-
onGenerateSvg: Yt,
|
|
634
|
-
onToggleTable: Pt,
|
|
635
|
-
onToggleLabels: Ft,
|
|
636
|
-
onToggleTooltip: It,
|
|
637
|
-
onToggleAnnotator: Rt,
|
|
638
|
-
onToggleZoom: Lt,
|
|
639
|
-
onCopyAlt: Zt,
|
|
640
|
-
style: x({ visibility: T(pt) ? T(z) ? "visible" : "hidden" : "visible" })
|
|
641
|
-
}, xe({ _: 2 }, [
|
|
642
|
-
e.$slots.menuIcon ? {
|
|
643
|
-
name: "menuIcon",
|
|
644
|
-
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
645
|
-
isOpen: t,
|
|
646
|
-
color: n
|
|
647
|
-
})), void 0, !0)]),
|
|
648
|
-
key: "0"
|
|
649
|
-
} : void 0,
|
|
650
|
-
e.$slots.optionTooltip ? {
|
|
651
|
-
name: "optionTooltip",
|
|
652
|
-
fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
653
|
-
key: "1"
|
|
654
|
-
} : void 0,
|
|
655
|
-
e.$slots.optionPdf ? {
|
|
656
|
-
name: "optionPdf",
|
|
657
|
-
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
658
|
-
key: "2"
|
|
659
|
-
} : void 0,
|
|
660
|
-
e.$slots.optionCsv ? {
|
|
661
|
-
name: "optionCsv",
|
|
662
|
-
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
663
|
-
key: "3"
|
|
664
|
-
} : void 0,
|
|
665
|
-
e.$slots.optionImg ? {
|
|
666
|
-
name: "optionImg",
|
|
667
|
-
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
668
|
-
key: "4"
|
|
669
|
-
} : void 0,
|
|
670
|
-
e.$slots.optionSvg ? {
|
|
671
|
-
name: "optionSvg",
|
|
672
|
-
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
673
|
-
key: "5"
|
|
674
|
-
} : void 0,
|
|
675
|
-
e.$slots.optionTable ? {
|
|
676
|
-
name: "optionTable",
|
|
677
|
-
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
678
|
-
key: "6"
|
|
679
|
-
} : void 0,
|
|
680
|
-
e.$slots.optionLabels ? {
|
|
681
|
-
name: "optionLabels",
|
|
682
|
-
fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
683
|
-
key: "7"
|
|
684
|
-
} : void 0,
|
|
685
|
-
e.$slots.optionFullscreen ? {
|
|
686
|
-
name: "optionFullscreen",
|
|
687
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
|
|
688
|
-
toggleFullscreen: t,
|
|
689
|
-
isFullscreen: n
|
|
690
|
-
})), void 0, !0)]),
|
|
691
|
-
key: "8"
|
|
692
|
-
} : void 0,
|
|
693
|
-
e.$slots.optionAnnotator ? {
|
|
694
|
-
name: "optionAnnotator",
|
|
695
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
|
|
696
|
-
toggleAnnotator: t,
|
|
697
|
-
isAnnotator: n
|
|
698
|
-
})), void 0, !0)]),
|
|
699
|
-
key: "9"
|
|
700
|
-
} : void 0,
|
|
701
|
-
e.$slots.optionZoom ? {
|
|
702
|
-
name: "optionZoom",
|
|
703
|
-
fn: D(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(v({
|
|
704
|
-
toggleZoom: t,
|
|
705
|
-
isZoomLocked: n
|
|
706
|
-
})), void 0, !0)]),
|
|
707
|
-
key: "10"
|
|
708
|
-
} : void 0,
|
|
709
|
-
e.$slots.optionAltCopy ? {
|
|
710
|
-
name: "optionAltCopy",
|
|
711
|
-
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
712
|
-
key: "11"
|
|
713
|
-
} : void 0,
|
|
714
|
-
e.$slots["custom-menu-before"] ? {
|
|
715
|
-
name: "custom-menu-before",
|
|
716
|
-
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
717
|
-
key: "12"
|
|
718
|
-
} : void 0,
|
|
719
|
-
e.$slots["custom-menu-after"] ? {
|
|
720
|
-
name: "custom-menu-after",
|
|
721
|
-
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
722
|
-
key: "13"
|
|
723
|
-
} : void 0
|
|
724
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
725
|
-
(S(), m("svg", {
|
|
726
|
-
ref_key: "svgRef",
|
|
727
|
-
ref: B,
|
|
728
|
-
key: `svg_${mt.value}`,
|
|
729
|
-
xmlns: T(ae),
|
|
730
|
-
viewBox: `${T(Q).x} ${T(Q).y} ${T(Q).width} ${T(Q).height}`,
|
|
731
|
-
class: we({
|
|
732
|
-
"vue-data-ui-fullscreen--on": X.value,
|
|
733
|
-
"vue-data-ui-fulscreen--off": !X.value
|
|
734
|
-
}),
|
|
735
|
-
style: x(`overflow: hidden; background:transparent;color:${F.value.style.chart.color}`)
|
|
736
|
-
}, [
|
|
737
|
-
g(T(qe)),
|
|
738
|
-
e.$slots["chart-background"] ? (S(), m("foreignObject", {
|
|
739
|
-
key: 0,
|
|
740
|
-
x: 0,
|
|
741
|
-
y: 0,
|
|
742
|
-
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
743
|
-
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
744
|
-
style: { pointerEvents: "none" }
|
|
745
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : p("", !0),
|
|
746
|
-
h("defs", null, [(S(!0), m(be, null, Ee(Object.keys(Tt.value), (e, t) => (S(), f(he, {
|
|
747
|
-
t: "radial",
|
|
748
|
-
id: `gradient_${e}`,
|
|
749
|
-
key: `gradient_${e}_${t}`,
|
|
750
|
-
cx: "50%",
|
|
751
|
-
cy: "30%",
|
|
752
|
-
r: "50%",
|
|
753
|
-
fx: "50%",
|
|
754
|
-
fy: "50%",
|
|
755
|
-
stops: [[
|
|
756
|
-
"0%",
|
|
757
|
-
T(r)(e, .5),
|
|
758
|
-
1
|
|
759
|
-
], [
|
|
760
|
-
"100%",
|
|
761
|
-
e,
|
|
762
|
-
1
|
|
763
|
-
]]
|
|
764
|
-
}, null, 8, ["id", "stops"]))), 128))]),
|
|
765
|
-
g(T(Je), {
|
|
766
|
-
dataset: G.value,
|
|
767
|
-
color: F.value.style.chart.links.stroke,
|
|
768
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
769
|
-
useChildColor: F.value.style.chart.links.useChildColor
|
|
770
|
-
}, null, 8, [
|
|
771
|
-
"dataset",
|
|
772
|
-
"color",
|
|
773
|
-
"backgroundColor",
|
|
774
|
-
"useChildColor"
|
|
775
|
-
]),
|
|
776
|
-
g(T(Xe), {
|
|
777
|
-
dataset: G.value,
|
|
778
|
-
hoveredUid: J.value,
|
|
779
|
-
stroke: F.value.style.chart.nodes.stroke,
|
|
780
|
-
strokeHovered: F.value.style.chart.nodes.strokeHovered,
|
|
781
|
-
onClick: Ut,
|
|
782
|
-
onHover: Ot
|
|
783
|
-
}, {
|
|
784
|
-
node: D(({ node: t }) => [w(e.$slots, "node", b(v({ node: t })), void 0, !0)]),
|
|
785
|
-
"node-svg": D(({ nodeSvg: t }) => [w(e.$slots, "node-svg", b(v({ nodeSvg: t })), void 0, !0)]),
|
|
786
|
-
_: 3
|
|
787
|
-
}, 8, [
|
|
788
|
-
"dataset",
|
|
789
|
-
"hoveredUid",
|
|
790
|
-
"stroke",
|
|
791
|
-
"strokeHovered"
|
|
792
|
-
]),
|
|
793
|
-
U.value.showDataLabels && !T(L) ? (S(), f(T(Ye), {
|
|
794
|
-
key: 1,
|
|
795
|
-
dataset: G.value,
|
|
796
|
-
color: F.value.style.chart.color,
|
|
797
|
-
hoveredUid: J.value
|
|
798
|
-
}, null, 8, [
|
|
799
|
-
"dataset",
|
|
800
|
-
"color",
|
|
801
|
-
"hoveredUid"
|
|
802
|
-
])) : p("", !0),
|
|
803
|
-
w(e.$slots, "svg", { svg: {
|
|
804
|
-
...W.value,
|
|
805
|
-
drawingArea: { ...T(Q) },
|
|
806
|
-
isPrintingImg: T(H) || T(gt) || N.value,
|
|
807
|
-
isPrintingSvg: P.value
|
|
808
|
-
} }, void 0, !0)
|
|
809
|
-
], 14, Fe)),
|
|
810
|
-
e.$slots.watermark ? (S(), m("div", Le, [w(e.$slots, "watermark", b(v({ isPrinting: T(H) || T(gt) || N.value || P.value })), void 0, !0)])) : p("", !0),
|
|
811
|
-
T(Vt) ? (S(), m("div", Re, [w(e.$slots, "reset-action", { reset: T(Bt) }, () => [h("button", {
|
|
812
|
-
"data-cy-reset": "",
|
|
813
|
-
tabindex: "0",
|
|
814
|
-
role: "button",
|
|
815
|
-
class: "vue-data-ui-refresh-button",
|
|
816
|
-
style: x({
|
|
817
|
-
background: F.value.style.chart.backgroundColor,
|
|
818
|
-
cursor: I.value ? "pointer" : "default"
|
|
819
|
-
}),
|
|
820
|
-
onClick: t[0] ||= (e) => T(Bt)(!0)
|
|
821
|
-
}, [g(T(He), {
|
|
822
|
-
name: "refresh",
|
|
823
|
-
stroke: F.value.style.chart.color
|
|
824
|
-
}, null, 8, ["stroke"])], 4)], !0)])) : p("", !0),
|
|
825
|
-
e.$slots.source ? (S(), m("div", ze, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
826
|
-
g(T(Ve), {
|
|
827
|
-
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
828
|
-
show: U.value.showTooltip && ot.value,
|
|
829
|
-
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
830
|
-
color: F.value.style.chart.tooltip.color,
|
|
831
|
-
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
832
|
-
borderColor: F.value.style.chart.tooltip.borderColor,
|
|
833
|
-
borderWidth: F.value.style.chart.tooltip.borderWidth,
|
|
834
|
-
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
835
|
-
backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
|
|
836
|
-
position: F.value.style.chart.tooltip.position,
|
|
837
|
-
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
838
|
-
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
839
|
-
parent: j.value,
|
|
840
|
-
content: A.value,
|
|
841
|
-
isFullscreen: X.value,
|
|
842
|
-
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
843
|
-
smooth: F.value.style.chart.tooltip.smooth,
|
|
844
|
-
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
845
|
-
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
846
|
-
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold
|
|
847
|
-
}, {
|
|
848
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...K.value })), void 0, !0)]),
|
|
849
|
-
tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...K.value })), void 0, !0)]),
|
|
850
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...K.value })), void 0, !0)]),
|
|
851
|
-
_: 3
|
|
852
|
-
}, 8, [
|
|
853
|
-
"teleportTo",
|
|
854
|
-
"show",
|
|
855
|
-
"backgroundColor",
|
|
856
|
-
"color",
|
|
857
|
-
"borderRadius",
|
|
858
|
-
"borderColor",
|
|
859
|
-
"borderWidth",
|
|
860
|
-
"fontSize",
|
|
861
|
-
"backgroundOpacity",
|
|
862
|
-
"position",
|
|
863
|
-
"offsetX",
|
|
864
|
-
"offsetY",
|
|
865
|
-
"parent",
|
|
866
|
-
"content",
|
|
867
|
-
"isFullscreen",
|
|
868
|
-
"isCustom",
|
|
869
|
-
"smooth",
|
|
870
|
-
"backdropFilter",
|
|
871
|
-
"smoothForce",
|
|
872
|
-
"smoothSnapThreshold"
|
|
873
|
-
]),
|
|
874
|
-
nt.value && F.value.userOptions.buttons.table ? (S(), f(De($.value.component), Ce({ key: 7 }, $.value.props, {
|
|
875
|
-
ref_key: "tableUnit",
|
|
876
|
-
ref: M,
|
|
877
|
-
onClose: Gt
|
|
878
|
-
}), xe({
|
|
879
|
-
content: D(() => [(S(), f(T(We), {
|
|
880
|
-
key: `table_${lt.value}`,
|
|
881
|
-
colNames: Y.value.colNames,
|
|
882
|
-
head: Y.value.head,
|
|
883
|
-
body: Y.value.body,
|
|
884
|
-
config: Y.value.config,
|
|
885
|
-
title: F.value.table.useDialog ? "" : $.value.title,
|
|
886
|
-
withCloseButton: !F.value.table.useDialog,
|
|
887
|
-
isCursorPointer: I.value,
|
|
888
|
-
onClose: Gt
|
|
889
|
-
}, {
|
|
890
|
-
th: D(({ th: e }) => [h("div", {
|
|
891
|
-
innerHTML: e,
|
|
892
|
-
style: {
|
|
893
|
-
display: "flex",
|
|
894
|
-
"align-items": "center"
|
|
895
|
-
}
|
|
896
|
-
}, null, 8, Be)]),
|
|
897
|
-
td: D(({ td: e }) => [Se(Oe(e.name || e), 1)]),
|
|
898
|
-
_: 1
|
|
899
|
-
}, 8, [
|
|
900
|
-
"colNames",
|
|
901
|
-
"head",
|
|
902
|
-
"body",
|
|
903
|
-
"config",
|
|
904
|
-
"title",
|
|
905
|
-
"withCloseButton",
|
|
906
|
-
"isCursorPointer"
|
|
907
|
-
]))]),
|
|
908
|
-
_: 2
|
|
909
|
-
}, [F.value.table.useDialog ? {
|
|
910
|
-
name: "title",
|
|
911
|
-
fn: D(() => [Se(Oe($.value.title), 1)]),
|
|
912
|
-
key: "0"
|
|
913
|
-
} : void 0, F.value.table.useDialog ? {
|
|
914
|
-
name: "actions",
|
|
915
|
-
fn: D(() => [h("button", {
|
|
916
|
-
tabindex: "0",
|
|
917
|
-
class: "vue-ui-user-options-button",
|
|
918
|
-
onClick: t[1] ||= (e) => jt(F.value.userOptions.callbacks.csv),
|
|
919
|
-
style: x({ cursor: I.value ? "pointer" : "default" })
|
|
920
|
-
}, [g(T(He), {
|
|
921
|
-
name: "fileCsv",
|
|
922
|
-
stroke: $.value.props.color
|
|
923
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
924
|
-
key: "1"
|
|
925
|
-
} : void 0]), 1040)) : p("", !0),
|
|
926
|
-
w(e.$slots, "skeleton", {}, () => [T(L) ? (S(), f(ue, { key: 0 })) : p("", !0)], !0)
|
|
927
|
-
], 46, Me));
|
|
928
|
-
}
|
|
929
|
-
}, [["__scopeId", "data-v-96a218d7"]]);
|
|
930
|
-
//#endregion
|
|
931
|
-
export { je as n, O as t };
|