vue-data-ui 2.6.39 → 2.6.41
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-B97dY5c5.js → Arrow-CzwnuhQC.js} +1 -1
- package/dist/{Arrow-5ip5m31y.cjs → Arrow-j4Npojhv.cjs} +1 -1
- package/dist/{BaseIcon-CPtTZ5gm.js → BaseIcon-DyOT6PYJ.js} +1 -1
- package/dist/{BaseIcon-CnmrKVrD.cjs → BaseIcon-lwGFy7CI.cjs} +1 -1
- package/dist/{ColorPicker-anuoNM-p.cjs → ColorPicker-BiTtlEx1.cjs} +1 -1
- package/dist/{ColorPicker-DDG5q9jR.js → ColorPicker-DHXRDP2o.js} +3 -3
- package/dist/{DataTable-pO-dTL2C.js → DataTable-B8Vnlflz.js} +2 -2
- package/dist/{DataTable-DYeuLcih.cjs → DataTable-CX-Mdafj.cjs} +1 -1
- package/dist/{Legend-BNLVnEGq.js → Legend-Bw9vX_fW.js} +2 -2
- package/dist/{Legend-qp4VAykH.cjs → Legend-DgyuPw1G.cjs} +1 -1
- package/dist/{PackageVersion-DuXUuz0O.js → PackageVersion-C6hdi5vE.js} +1 -1
- package/dist/{PackageVersion-BzhafpGr.cjs → PackageVersion-CvpIoiav.cjs} +1 -1
- package/dist/{PenAndPaper-ZkRFCit4.cjs → PenAndPaper-5L5c2K-j.cjs} +1 -1
- package/dist/{PenAndPaper-CoDyTQsZ.js → PenAndPaper-DBNdemyU.js} +3 -3
- package/dist/{Shape-DH4XF-dc.js → Shape-CcQr04tT.js} +1 -1
- package/dist/{Shape-DroaKLIm.cjs → Shape-my_oX1r-.cjs} +1 -1
- package/dist/{Slicer-C854GBKY.js → Slicer-CJT21pOl.js} +2 -2
- package/dist/{Slicer-Bo7bO5E5.cjs → Slicer-Dpuspld0.cjs} +1 -1
- package/dist/{Title-CcDml6Zf.cjs → Title-CnyZaLp0.cjs} +1 -1
- package/dist/{Title-C223TJ6C.js → Title-Dfjx2pT6.js} +1 -1
- package/dist/{Tooltip-BvROZcv0.js → Tooltip-C3kzKkai.js} +1 -1
- package/dist/{Tooltip-lj99sBKN.cjs → Tooltip-V6vr6k8X.cjs} +1 -1
- package/dist/{index-CVHop7bB.js → index-BAPUY6BW.js} +409 -382
- package/dist/index-CVZp-EFm.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DVSKLFhF.cjs → useNestedProp-Ch_Tbu0f.cjs} +1 -1
- package/dist/{useNestedProp-DB5XMx_s.js → useNestedProp-X5u-cjpn.js} +1 -1
- package/dist/{usePrinter-D3Sb5fSb.cjs → usePrinter-BJ8ChcXf.cjs} +1 -1
- package/dist/{usePrinter-CXjj2NA9.js → usePrinter-BsXYrX84.js} +1 -1
- package/dist/{vue-data-ui-Bv_90b2c.cjs → vue-data-ui-CZG3ODq3.cjs} +1 -1
- package/dist/{vue-data-ui-C7FFFFUg.js → vue-data-ui-OBrcs0EY.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +8 -8
- package/dist/{vue-ui-3d-bar-DQaDfIEU.cjs → vue-ui-3d-bar-BOUSglv4.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BkaPHEfQ.js → vue-ui-3d-bar-BRhfbpJd.js} +9 -9
- package/dist/{vue-ui-accordion-Ds-8LBd7.cjs → vue-ui-accordion-BS_katXk.cjs} +1 -1
- package/dist/{vue-ui-accordion-DZkJGmcV.js → vue-ui-accordion-Dm7ZlylJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CklczrE2.cjs → vue-ui-age-pyramid-Bt_wuZiO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-_QqaTWL9.js → vue-ui-age-pyramid-CBtPdObD.js} +10 -10
- package/dist/{vue-ui-annotator-DvTfQVeB.cjs → vue-ui-annotator-B8HvCy1u.cjs} +1 -1
- package/dist/{vue-ui-annotator-CkYus97l.js → vue-ui-annotator-Rb7-Ig4d.js} +1 -1
- package/dist/{vue-ui-bullet-7XbqAz6z.cjs → vue-ui-bullet-BlYz0H5Q.cjs} +1 -1
- package/dist/{vue-ui-bullet-D_VtAlvO.js → vue-ui-bullet-C7ftUjYQ.js} +8 -8
- package/dist/{vue-ui-candlestick-B423J4Df.cjs → vue-ui-candlestick-DY4EKJPX.cjs} +1 -1
- package/dist/{vue-ui-candlestick-RzjBpRWa.js → vue-ui-candlestick-D_osh2qN.js} +11 -11
- package/dist/{vue-ui-carousel-table-CDGpVNBq.cjs → vue-ui-carousel-table-DHN5NuUS.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BcKE75Fr.js → vue-ui-carousel-table-M72bzy85.js} +4 -4
- package/dist/{vue-ui-chestnut-BpqaO6Ki.cjs → vue-ui-chestnut-BdHd-Juu.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DlJ4UHAd.js → vue-ui-chestnut-i7EtBpLY.js} +8 -8
- package/dist/{vue-ui-circle-pack-C75Ig7Ot.js → vue-ui-circle-pack-BC1uScHe.js} +9 -9
- package/dist/{vue-ui-circle-pack-HI9e7B2K.cjs → vue-ui-circle-pack-rf-DQQuM.cjs} +1 -1
- package/dist/{vue-ui-cursor-9UG_5YM1.cjs → vue-ui-cursor-B06MWQUK.cjs} +1 -1
- package/dist/{vue-ui-cursor-DQRdy4kP.js → vue-ui-cursor-eJ2ExkFm.js} +2 -2
- package/dist/{vue-ui-dashboard-LImeuX9g.js → vue-ui-dashboard-BAwwet8B.js} +2 -2
- package/dist/{vue-ui-dashboard-J0p7RHcR.cjs → vue-ui-dashboard-m-sB4TXH.cjs} +1 -1
- package/dist/{vue-ui-digits-BCj_Px9b.js → vue-ui-digits-B6ivU7b9.js} +2 -2
- package/dist/{vue-ui-digits-DfnixiIy.cjs → vue-ui-digits-C5jmpiTL.cjs} +1 -1
- package/dist/{vue-ui-donut-DaqG2jcW.js → vue-ui-donut-DtZ-n8vd.js} +12 -12
- package/dist/{vue-ui-donut-CvxOiV5F.cjs → vue-ui-donut-GBs-eAbp.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-QJnKCDWk.cjs → vue-ui-donut-evolution-DdDVkeuH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BFn-J1jp.js → vue-ui-donut-evolution-VJpinb_g.js} +11 -11
- package/dist/{vue-ui-dumbbell-C_nCYtcd.cjs → vue-ui-dumbbell-94nsg3t1.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DD8_k_pA.js → vue-ui-dumbbell-EoH10k2D.js} +10 -10
- package/dist/{vue-ui-flow-Dls16uj4.js → vue-ui-flow-B-xWkgVv.js} +9 -9
- package/dist/{vue-ui-flow-CCXQ4mYO.cjs → vue-ui-flow-Ddn2S7NR.cjs} +1 -1
- package/dist/{vue-ui-funnel-ClCnyvUX.cjs → vue-ui-funnel-Iawza5lZ.cjs} +1 -1
- package/dist/{vue-ui-funnel-X6bFgq1Z.js → vue-ui-funnel-hdajl9CD.js} +9 -9
- package/dist/{vue-ui-galaxy-CRDleJUe.cjs → vue-ui-galaxy-BoiBmzst.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Boa9gjJV.js → vue-ui-galaxy-CeqCjd4V.js} +11 -11
- package/dist/{vue-ui-gauge-DzjMmBFe.cjs → vue-ui-gauge-B4aBDTfP.cjs} +1 -1
- package/dist/{vue-ui-gauge-DAwO2xJz.js → vue-ui-gauge-BSuGWZEY.js} +7 -7
- package/dist/{vue-ui-gizmo-BvGlHcHy.cjs → vue-ui-gizmo-D_J2R5JU.cjs} +1 -1
- package/dist/{vue-ui-gizmo-ChFEuLno.js → vue-ui-gizmo-VFwChXXf.js} +3 -3
- package/dist/vue-ui-heatmap-BNlBRWi1.cjs +1 -0
- package/dist/{vue-ui-heatmap-D2mH3GRc.js → vue-ui-heatmap-DAeCu-iM.js} +53 -53
- package/dist/{vue-ui-history-plot-CsjNiSkK.cjs → vue-ui-history-plot-BcjI3J96.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C2ynFIiK.js → vue-ui-history-plot-Caty-SWt.js} +11 -11
- package/dist/{vue-ui-kpi-C8kidDY0.js → vue-ui-kpi-B2WcjLWP.js} +3 -3
- package/dist/{vue-ui-kpi-BuojbCip.cjs → vue-ui-kpi-Bu24xnG8.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-32UNlDDN.js → vue-ui-mini-loader-B8QzxySW.js} +2 -2
- package/dist/{vue-ui-mini-loader-BBLK1NYq.cjs → vue-ui-mini-loader-BgW5M00P.cjs} +1 -1
- package/dist/vue-ui-molecule-Ds0uou9B.js +829 -0
- package/dist/vue-ui-molecule-WPdx8i08.cjs +1 -0
- package/dist/{vue-ui-mood-radar-UpFKESLA.cjs → vue-ui-mood-radar-D45uj8xo.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DibQpZ4m.js → vue-ui-mood-radar-DMrAwNQa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CH0on2fU.cjs → vue-ui-nested-donuts-3orKF1Fi.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-C30jFP2v.js → vue-ui-nested-donuts-FSCi4a9f.js} +11 -11
- package/dist/{vue-ui-onion-C_lRLYfI.cjs → vue-ui-onion-CiXgGubD.cjs} +1 -1
- package/dist/{vue-ui-onion-BvKTXaMU.js → vue-ui-onion-YWVe7eaq.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-C9V9mpG7.js → vue-ui-parallel-coordinate-plot-C8vxLtTa.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-3Y3tw-xu.cjs → vue-ui-parallel-coordinate-plot-DeZ2tt1O.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BJbfTZHj.js → vue-ui-quadrant-DmDoysAq.js} +40 -40
- package/dist/{vue-ui-quadrant-Bdfj6rMa.cjs → vue-ui-quadrant-LTIGWJiO.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CQetx6nm.cjs → vue-ui-quick-chart-BgSeWNxv.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DVzpgYpH.js → vue-ui-quick-chart-CwJe7rJt.js} +9 -9
- package/dist/{vue-ui-radar-DNhe9CJp.js → vue-ui-radar-Bo9SbfBN.js} +12 -12
- package/dist/{vue-ui-radar-uL_2DFoA.cjs → vue-ui-radar-CblS9X1n.cjs} +1 -1
- package/dist/{vue-ui-rating-Dl5EXfoM.cjs → vue-ui-rating-CqY6A4WX.cjs} +1 -1
- package/dist/{vue-ui-rating-CScqTeBz.js → vue-ui-rating-DPs6BKf1.js} +10 -10
- package/dist/{vue-ui-relation-circle-CMfcB2y4.js → vue-ui-relation-circle-3Al_2yf1.js} +7 -7
- package/dist/{vue-ui-relation-circle-BOAv03ET.cjs → vue-ui-relation-circle-COYe9dsQ.cjs} +1 -1
- package/dist/{vue-ui-rings-Ct4IZrwW.js → vue-ui-rings-D9_ClLdg.js} +12 -12
- package/dist/{vue-ui-rings-1guUWjBV.cjs → vue-ui-rings-DOlqslSN.cjs} +1 -1
- package/dist/{vue-ui-scatter-C2lZcn5O.js → vue-ui-scatter-DFDHrRyc.js} +42 -42
- package/dist/{vue-ui-scatter-D-llNCbW.cjs → vue-ui-scatter-DQhoY0TK.cjs} +1 -1
- package/dist/{vue-ui-screenshot-D7K40IXf.cjs → vue-ui-screenshot-BWVTxKN_.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BBazxOqC.js → vue-ui-screenshot-R1IzXCqt.js} +1 -1
- package/dist/{vue-ui-skeleton-BUNaR9Kg.js → vue-ui-skeleton-DBfQG5lC.js} +57 -57
- package/dist/{vue-ui-skeleton-cQoXWosg.cjs → vue-ui-skeleton-Dn9J8aVW.cjs} +1 -1
- package/dist/{vue-ui-smiley-CCDBWRTa.js → vue-ui-smiley-CLv8dmnr.js} +2 -2
- package/dist/{vue-ui-smiley-_gyL-r4c.cjs → vue-ui-smiley-DQ7I4CcQ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B9xYWR4x.js → vue-ui-spark-trend-B0qbQaxj.js} +5 -5
- package/dist/{vue-ui-spark-trend-D5M7L8Nn.cjs → vue-ui-spark-trend-Drp1E7DH.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B9q9xGj6.js → vue-ui-sparkbar-Bz_QHNKp.js} +4 -4
- package/dist/{vue-ui-sparkbar-B9_aTFqL.cjs → vue-ui-sparkbar-DYW_BgkY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DlJWcy62.js → vue-ui-sparkgauge-5EIHFUiW.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BIVUXWRg.cjs → vue-ui-sparkgauge-C6tB0nl4.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-gn3DIsxZ.js → vue-ui-sparkhistogram-COdCqBiI.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Dm0Vtvn1.cjs → vue-ui-sparkhistogram-KIw7nvKd.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Ch2QWsMO.cjs → vue-ui-sparkline-CXIdKGso.cjs} +1 -1
- package/dist/{vue-ui-sparkline-9MoD7O9K.js → vue-ui-sparkline-DgUc7CMn.js} +15 -15
- package/dist/{vue-ui-sparkstackbar-BACwbjpj.js → vue-ui-sparkstackbar-BUqauQMd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-aFnfjz2u.cjs → vue-ui-sparkstackbar-MrQzEVeh.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DcXIU7MJ.cjs → vue-ui-stackbar-BUJpFyA3.cjs} +1 -1
- package/dist/{vue-ui-stackbar-B4gbMSfv.js → vue-ui-stackbar-C-i36fcc.js} +13 -13
- package/dist/{vue-ui-strip-plot-g3BjFUT5.cjs → vue-ui-strip-plot-BLECfP0D.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-2H2e_73D.js → vue-ui-strip-plot-Dc82V8Qo.js} +11 -11
- package/dist/{vue-ui-table-Do6l-NwY.cjs → vue-ui-table-0E7zmWIW.cjs} +1 -1
- package/dist/{vue-ui-table-a03YNGcq.js → vue-ui-table-DnAzCFyM.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CNjY0h0g.cjs → vue-ui-table-heatmap-BHSksmMn.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CeF3qQ6v.js → vue-ui-table-heatmap-CzwyhRmp.js} +4 -4
- package/dist/{vue-ui-table-sparkline-dISGVncg.js → vue-ui-table-sparkline-BU4he5wL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BpQv4cWI.cjs → vue-ui-table-sparkline-BoVrzVok.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C25rhVvw.cjs → vue-ui-thermometer-DeJpqEix.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Cc343GDr.js → vue-ui-thermometer-uShXro0_.js} +7 -7
- package/dist/{vue-ui-timer-TeAbWeT2.cjs → vue-ui-timer-C8qXGSrQ.cjs} +1 -1
- package/dist/{vue-ui-timer-ByQXGLpD.js → vue-ui-timer-D6L29mt9.js} +5 -5
- package/dist/{vue-ui-tiremarks-zdNTuR2J.js → vue-ui-tiremarks-BcjGqJn-.js} +7 -7
- package/dist/{vue-ui-tiremarks-CG0Da6_3.cjs → vue-ui-tiremarks-CQ4yESxv.cjs} +1 -1
- package/dist/{vue-ui-treemap-B_xkm-3z.js → vue-ui-treemap-BpB4ofIX.js} +11 -11
- package/dist/{vue-ui-treemap-Cqx_LVJx.cjs → vue-ui-treemap-DbTCrAmK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BlOQzW7s.js → vue-ui-vertical-bar-CEIg-_SG.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CR1hPIJS.cjs → vue-ui-vertical-bar-Q5ArQTC0.cjs} +1 -1
- package/dist/{vue-ui-waffle-CnvaOKK_.cjs → vue-ui-waffle-B61yE93N.cjs} +1 -1
- package/dist/{vue-ui-waffle-DELAI7_M.js → vue-ui-waffle-h8UbPcuC.js} +12 -12
- package/dist/{vue-ui-wheel-CLP2SMB4.js → vue-ui-wheel-BhLEyhW_.js} +7 -7
- package/dist/{vue-ui-wheel-DONILlPN.cjs → vue-ui-wheel-Chc9pVEu.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D4oJGtfH.cjs → vue-ui-word-cloud-Cq6mmJVo.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DTxLmJhe.js → vue-ui-word-cloud-oa6Tnt3L.js} +10 -10
- package/dist/{vue-ui-xy-CNBUMris.cjs → vue-ui-xy-Brt11wmo.cjs} +1 -1
- package/dist/{vue-ui-xy-QB9D95yQ.js → vue-ui-xy-CXY00bkP.js} +46 -46
- package/dist/{vue-ui-xy-canvas-4rdG5Bzv.cjs → vue-ui-xy-canvas-Ce4kC0Xz.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DrVvMTQo.js → vue-ui-xy-canvas-DapzRtyI.js} +40 -40
- package/package.json +1 -1
- package/dist/index-CuhZ_hul.cjs +0 -9
- package/dist/vue-ui-heatmap-DiKzEnfD.cjs +0 -1
- package/dist/vue-ui-molecule-C_giWPuq.cjs +0 -1
- package/dist/vue-ui-molecule-DWJWHwg9.js +0 -826
|
@@ -1,826 +0,0 @@
|
|
|
1
|
-
import { toRef as de, resolveComponent as ve, createElementBlock as d, openBlock as s, Fragment as k, renderList as _, createCommentVNode as m, createBlock as R, createElementVNode as V, withModifiers as ze, renderSlot as $, mergeProps as Ce, withCtx as T, toDisplayString as Te, ref as p, onMounted as Le, onUnmounted as He, watchEffect as Be, computed as N, watch as Ge, unref as b, normalizeStyle as ce, normalizeClass as we, createVNode as ae, createSlots as Ve, normalizeProps as B, guardReactiveProps as G, createTextVNode as Xe, nextTick as je } from "vue";
|
|
2
|
-
import { u as qe, o as Ye, e as We, c as $e, t as Ze, p as xe, a as Qe, b as Je, X as Ke, l as et, P as tt, q as ot, r as lt, x as st, y as at } from "./index-CVHop7bB.js";
|
|
3
|
-
import { _ as nt } from "./Title-C223TJ6C.js";
|
|
4
|
-
import { u as rt, U as it } from "./usePrinter-CXjj2NA9.js";
|
|
5
|
-
import { D as ut } from "./DataTable-pO-dTL2C.js";
|
|
6
|
-
import { _ as ct } from "./Tooltip-BvROZcv0.js";
|
|
7
|
-
import dt from "./vue-ui-skeleton-BUNaR9Kg.js";
|
|
8
|
-
import vt from "./vue-ui-accordion-DZkJGmcV.js";
|
|
9
|
-
import { u as Pe } from "./useNestedProp-DB5XMx_s.js";
|
|
10
|
-
import { _ as ht } from "./PackageVersion-DuXUuz0O.js";
|
|
11
|
-
import { P as ft } from "./PenAndPaper-CoDyTQsZ.js";
|
|
12
|
-
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
-
import { u as pt } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
-
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], bt = ["x", "y", "height", "width", "onClick", "onMouseover"], kt = {
|
|
16
|
-
__name: "RecursiveCircles",
|
|
17
|
-
props: {
|
|
18
|
-
color: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "#000000"
|
|
21
|
-
},
|
|
22
|
-
dataset: {
|
|
23
|
-
type: Array,
|
|
24
|
-
default: () => []
|
|
25
|
-
},
|
|
26
|
-
hoveredUid: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: null
|
|
29
|
-
},
|
|
30
|
-
linkColor: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "#CCCCCC"
|
|
33
|
-
},
|
|
34
|
-
stroke: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "#FFFFFF"
|
|
37
|
-
},
|
|
38
|
-
strokeHovered: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: "#000000"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
emits: ["click", "hover"],
|
|
44
|
-
setup(r, { emit: M }) {
|
|
45
|
-
const z = r, S = M;
|
|
46
|
-
function n(a) {
|
|
47
|
-
S("click", a);
|
|
48
|
-
}
|
|
49
|
-
function C(a) {
|
|
50
|
-
S("hover", a);
|
|
51
|
-
}
|
|
52
|
-
return de(z, "dataset").value.forEach((a) => {
|
|
53
|
-
a.nodes && a.nodes.length > 0 && a.nodes.forEach((h) => {
|
|
54
|
-
h.ancestor = a;
|
|
55
|
-
});
|
|
56
|
-
}), (a, h) => {
|
|
57
|
-
const H = ve("RecursiveCircles", !0);
|
|
58
|
-
return s(!0), d(k, null, _(r.dataset, (i) => (s(), d(k, null, [
|
|
59
|
-
i.polygonPath && i.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
|
|
60
|
-
(s(!0), d(k, null, _(i.polygonPath.coordinates, (x, U) => (s(), d(k, null, [
|
|
61
|
-
V("circle", {
|
|
62
|
-
cx: x.x,
|
|
63
|
-
cy: x.y,
|
|
64
|
-
r: i.circleRadius,
|
|
65
|
-
fill: `url(#gradient_${i.color})`,
|
|
66
|
-
stroke: r.hoveredUid && r.hoveredUid === i.uid ? r.strokeHovered : r.stroke,
|
|
67
|
-
"stroke-width": r.hoveredUid && r.hoveredUid === i.uid ? i.circleRadius / 6 : i.circleRadius / 12,
|
|
68
|
-
style: { cursor: "pointer" },
|
|
69
|
-
onClick: (O) => n(i),
|
|
70
|
-
onMouseover: (O) => C(i),
|
|
71
|
-
onMouseleave: h[0] || (h[0] = (O) => C(null))
|
|
72
|
-
}, null, 40, gt),
|
|
73
|
-
a.$slots.node ? (s(), d("foreignObject", {
|
|
74
|
-
key: 0,
|
|
75
|
-
x: x.x - i.circleRadius,
|
|
76
|
-
y: x.y - i.circleRadius,
|
|
77
|
-
height: i.circleRadius * 2,
|
|
78
|
-
width: i.circleRadius * 2,
|
|
79
|
-
style: { overflow: "visible" },
|
|
80
|
-
onClick: ze((O) => n(i), ["stop"]),
|
|
81
|
-
onMouseover: (O) => C(i),
|
|
82
|
-
onMouseleave: h[1] || (h[1] = (O) => C(null))
|
|
83
|
-
}, [
|
|
84
|
-
$(a.$slots, "node", Ce({ ref_for: !0 }, { node: i }))
|
|
85
|
-
], 40, bt)) : m("", !0)
|
|
86
|
-
], 64))), 256)),
|
|
87
|
-
i.nodes && i.nodes.length > 0 ? (s(), R(H, {
|
|
88
|
-
key: 0,
|
|
89
|
-
dataset: i.nodes,
|
|
90
|
-
color: r.color,
|
|
91
|
-
stroke: r.stroke,
|
|
92
|
-
strokeHovered: r.strokeHovered,
|
|
93
|
-
hoveredUid: r.hoveredUid,
|
|
94
|
-
onClick: n,
|
|
95
|
-
onHover: C
|
|
96
|
-
}, {
|
|
97
|
-
node: T(({ node: x }) => [
|
|
98
|
-
$(a.$slots, "node", Ce({ ref_for: !0 }, { node: x }))
|
|
99
|
-
]),
|
|
100
|
-
_: 2
|
|
101
|
-
}, 1032, ["dataset", "color", "stroke", "strokeHovered", "hoveredUid"])) : m("", !0)
|
|
102
|
-
], 64)) : m("", !0)
|
|
103
|
-
], 64))), 256);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
}, Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], $t = {
|
|
107
|
-
__name: "RecursiveLinks",
|
|
108
|
-
props: {
|
|
109
|
-
dataset: {
|
|
110
|
-
type: Array,
|
|
111
|
-
default: () => []
|
|
112
|
-
},
|
|
113
|
-
color: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: "#DDDDDD"
|
|
116
|
-
},
|
|
117
|
-
backgroundColor: {
|
|
118
|
-
type: String,
|
|
119
|
-
default: "#FFFFFF"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
setup(r) {
|
|
123
|
-
return de(r, "dataset").value.forEach((S) => {
|
|
124
|
-
S.nodes && S.nodes.length > 0 && S.nodes.forEach((n) => {
|
|
125
|
-
n.ancestor = S;
|
|
126
|
-
});
|
|
127
|
-
}), (S, n) => {
|
|
128
|
-
const C = ve("RecursiveLinks", !0);
|
|
129
|
-
return s(), d(k, null, [
|
|
130
|
-
(s(!0), d(k, null, _(r.dataset, (c) => (s(), d(k, null, [
|
|
131
|
-
c.polygonPath && c.polygonPath.coordinates ? (s(!0), d(k, { key: 0 }, _(c.polygonPath.coordinates, (a, h) => (s(), d(k, null, [
|
|
132
|
-
c.ancestor && c.ancestor.polygonPath ? (s(), d(k, { key: 0 }, [
|
|
133
|
-
V("line", {
|
|
134
|
-
x1: a.x,
|
|
135
|
-
y1: a.y,
|
|
136
|
-
x2: c.ancestor.polygonPath.coordinates[0].x,
|
|
137
|
-
y2: c.ancestor.polygonPath.coordinates[0].y,
|
|
138
|
-
stroke: r.backgroundColor,
|
|
139
|
-
"stroke-width": c.circleRadius / 1.5
|
|
140
|
-
}, null, 8, Ct),
|
|
141
|
-
V("line", {
|
|
142
|
-
x1: a.x,
|
|
143
|
-
y1: a.y,
|
|
144
|
-
x2: c.ancestor.polygonPath.coordinates[0].x,
|
|
145
|
-
y2: c.ancestor.polygonPath.coordinates[0].y,
|
|
146
|
-
stroke: r.color,
|
|
147
|
-
"stroke-width": c.circleRadius / 2
|
|
148
|
-
}, null, 8, wt)
|
|
149
|
-
], 64)) : m("", !0)
|
|
150
|
-
], 64))), 256)) : m("", !0)
|
|
151
|
-
], 64))), 256)),
|
|
152
|
-
(s(!0), d(k, null, _(r.dataset, (c) => (s(), d(k, null, [
|
|
153
|
-
c.polygonPath && c.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
|
|
154
|
-
c.nodes && c.nodes.length > 0 ? (s(), R(C, {
|
|
155
|
-
key: 0,
|
|
156
|
-
dataset: c.nodes,
|
|
157
|
-
color: r.color,
|
|
158
|
-
backgroundColor: r.backgroundColor
|
|
159
|
-
}, null, 8, ["dataset", "color", "backgroundColor"])) : m("", !0)
|
|
160
|
-
], 64)) : m("", !0)
|
|
161
|
-
], 64))), 256))
|
|
162
|
-
], 64);
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
}, xt = ["x", "y", "fill", "font-size"], Pt = {
|
|
166
|
-
__name: "RecursiveLabels",
|
|
167
|
-
props: {
|
|
168
|
-
color: {
|
|
169
|
-
type: String,
|
|
170
|
-
default: "#000000"
|
|
171
|
-
},
|
|
172
|
-
dataset: {
|
|
173
|
-
type: Array,
|
|
174
|
-
default: () => []
|
|
175
|
-
},
|
|
176
|
-
hoveredUid: {
|
|
177
|
-
type: String,
|
|
178
|
-
default: null
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
emits: ["zoom", "hover"],
|
|
182
|
-
setup(r, { emit: M }) {
|
|
183
|
-
return de(r, "dataset").value.forEach((n) => {
|
|
184
|
-
n.nodes && n.nodes.length > 0 && n.nodes.forEach((C) => {
|
|
185
|
-
C.ancestor = n;
|
|
186
|
-
});
|
|
187
|
-
}), (n, C) => {
|
|
188
|
-
const c = ve("RecursiveLabels", !0);
|
|
189
|
-
return s(!0), d(k, null, _(r.dataset, (a) => (s(), d(k, null, [
|
|
190
|
-
a.polygonPath && a.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
|
|
191
|
-
(s(!0), d(k, null, _(a.polygonPath.coordinates, (h) => (s(), d("text", {
|
|
192
|
-
x: h.x,
|
|
193
|
-
y: h.y + a.circleRadius * 2,
|
|
194
|
-
fill: r.color,
|
|
195
|
-
"font-size": a.circleRadius,
|
|
196
|
-
"text-anchor": "middle",
|
|
197
|
-
style: { opacity: "0.8", "pointer-events": "none" }
|
|
198
|
-
}, Te(a.name), 9, xt))), 256)),
|
|
199
|
-
a.nodes && a.nodes.length > 0 ? (s(), R(c, {
|
|
200
|
-
key: 0,
|
|
201
|
-
dataset: a.nodes,
|
|
202
|
-
color: r.color,
|
|
203
|
-
hoveredUid: r.hoveredUid
|
|
204
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0)
|
|
205
|
-
], 64)) : m("", !0)
|
|
206
|
-
], 64))), 256);
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
function Tt(r, M = { x: 0, y: 0, width: 100, height: 100 }, z = 1, S) {
|
|
211
|
-
const n = p({ ...M }), C = p(1), c = p(!1), a = p({ x: 0, y: 0 });
|
|
212
|
-
let h = { x: 0, y: 0 }, H = null, i = null;
|
|
213
|
-
function x(o) {
|
|
214
|
-
var D;
|
|
215
|
-
const v = r.value;
|
|
216
|
-
if (!v) return { x: 0, y: 0 };
|
|
217
|
-
const g = v.createSVGPoint();
|
|
218
|
-
g.x = o.clientX, g.y = o.clientY;
|
|
219
|
-
const L = (D = v.getScreenCTM()) == null ? void 0 : D.inverse();
|
|
220
|
-
return L ? g.matrixTransform(L) : { x: 0, y: 0 };
|
|
221
|
-
}
|
|
222
|
-
function U(o) {
|
|
223
|
-
c.value = !0;
|
|
224
|
-
const v = x(o.touches ? o.touches[0] : o);
|
|
225
|
-
a.value = { x: v.x, y: v.y }, h = { x: 0, y: 0 };
|
|
226
|
-
}
|
|
227
|
-
function O(o) {
|
|
228
|
-
if (!c.value) return;
|
|
229
|
-
const v = x(o.touches ? o.touches[0] : o);
|
|
230
|
-
let g = v.x - a.value.x, L = v.y - a.value.y;
|
|
231
|
-
Math.abs(g) < 0.3 && Math.abs(L) < 0.3 || (h.x = g * 0.8 + h.x * 0.2, h.y = L * 0.8 + h.y * 0.2, a.value = v, H || (H = requestAnimationFrame(te)));
|
|
232
|
-
}
|
|
233
|
-
function te() {
|
|
234
|
-
n.value.x -= h.x, n.value.y -= h.y, H = null;
|
|
235
|
-
}
|
|
236
|
-
function A() {
|
|
237
|
-
c.value = !1;
|
|
238
|
-
}
|
|
239
|
-
function e(o) {
|
|
240
|
-
o.preventDefault();
|
|
241
|
-
const v = o.deltaY > 0 ? 0.9 : 1.1;
|
|
242
|
-
j(v, x(o));
|
|
243
|
-
}
|
|
244
|
-
function X(o) {
|
|
245
|
-
o.preventDefault();
|
|
246
|
-
const v = x(o), g = 1.02 * (1 + z / 100);
|
|
247
|
-
oe(g, v);
|
|
248
|
-
}
|
|
249
|
-
function oe(o, v) {
|
|
250
|
-
i && cancelAnimationFrame(i);
|
|
251
|
-
let g = C.value, L = g * o, D = 0;
|
|
252
|
-
const w = () => {
|
|
253
|
-
D += 0.02;
|
|
254
|
-
let Y = g + (L - g) * le(D);
|
|
255
|
-
if (D >= 1) {
|
|
256
|
-
C.value = L, i = null;
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
j(Y / g, v), i = requestAnimationFrame(w);
|
|
260
|
-
};
|
|
261
|
-
w();
|
|
262
|
-
}
|
|
263
|
-
const le = (o) => o < 0.5 ? 2 * o * o : -1 + (4 - 2 * o) * o;
|
|
264
|
-
function j(o, v) {
|
|
265
|
-
const g = C.value * o, L = g / C.value, D = n.value.width / L, w = n.value.height / L, Y = (v.x - n.value.x) * (1 - 1 / L), ne = (v.y - n.value.y) * (1 - 1 / L);
|
|
266
|
-
n.value.x += Y, n.value.y += ne, n.value.width = D, n.value.height = w, C.value = g;
|
|
267
|
-
}
|
|
268
|
-
Le(Z), He(q);
|
|
269
|
-
function Z() {
|
|
270
|
-
const o = r.value;
|
|
271
|
-
o && (o.addEventListener("mousedown", U), o.addEventListener("mousemove", O), o.addEventListener("mouseup", A), o.addEventListener("mouseleave", A), o.addEventListener("wheel", e, { passive: !1 }), o.addEventListener("dblclick", X), o.addEventListener("touchstart", (v) => {
|
|
272
|
-
v.preventDefault(), U(v);
|
|
273
|
-
}, { passive: !1 }), o.addEventListener("touchmove", (v) => {
|
|
274
|
-
v.preventDefault(), O(v);
|
|
275
|
-
}, { passive: !1 }), o.addEventListener("touchend", A));
|
|
276
|
-
}
|
|
277
|
-
function q() {
|
|
278
|
-
const o = r.value;
|
|
279
|
-
o && (o.removeEventListener("mousedown", U), o.removeEventListener("mousemove", O), o.removeEventListener("mouseup", A), o.removeEventListener("mouseleave", A), o.removeEventListener("wheel", e), o.removeEventListener("dblclick", X), o.removeEventListener("touchstart", U), o.removeEventListener("touchmove", O), o.removeEventListener("touchend", A));
|
|
280
|
-
}
|
|
281
|
-
return Be(() => (S.value ? Z() : q(), () => {
|
|
282
|
-
q();
|
|
283
|
-
})), { viewBox: n };
|
|
284
|
-
}
|
|
285
|
-
const Lt = ["id"], Ft = {
|
|
286
|
-
key: 1,
|
|
287
|
-
ref: "noTitle",
|
|
288
|
-
class: "vue-data-ui-no-title-space",
|
|
289
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
290
|
-
}, Et = {
|
|
291
|
-
key: 2,
|
|
292
|
-
style: "width:100%;background:transparent;"
|
|
293
|
-
}, St = ["xmlns", "viewBox"], Ot = ["width", "height"], Dt = ["id"], Rt = ["stop-color"], Ut = ["stop-color"], At = {
|
|
294
|
-
key: 5,
|
|
295
|
-
class: "vue-data-ui-watermark"
|
|
296
|
-
}, It = {
|
|
297
|
-
key: 7,
|
|
298
|
-
ref: "source",
|
|
299
|
-
dir: "auto"
|
|
300
|
-
}, Nt = ["innerHTML"], _t = {
|
|
301
|
-
__name: "vue-ui-molecule",
|
|
302
|
-
props: {
|
|
303
|
-
config: {
|
|
304
|
-
type: Object,
|
|
305
|
-
default() {
|
|
306
|
-
return {};
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
dataset: {
|
|
310
|
-
type: Array,
|
|
311
|
-
default() {
|
|
312
|
-
return [];
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
emits: ["selectNode"],
|
|
317
|
-
setup(r, { expose: M, emit: z }) {
|
|
318
|
-
const { vue_ui_molecule: S } = qe(), n = r, C = z, c = N(() => !!n.dataset && n.dataset.length);
|
|
319
|
-
Le(() => {
|
|
320
|
-
a();
|
|
321
|
-
});
|
|
322
|
-
function a() {
|
|
323
|
-
Ye(n.dataset) && We({
|
|
324
|
-
componentName: "VueUiMolecule",
|
|
325
|
-
type: "dataset"
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
const h = p($e()), H = p(null), i = p(!1), x = p(""), U = p(null), O = p(0), te = p(0), A = p(0), e = N({
|
|
329
|
-
get: () => Z(),
|
|
330
|
-
set: (t) => t
|
|
331
|
-
}), { userOptionsVisible: X, setUserOptionsVisibility: oe, keepUserOptionState: le } = yt({ config: e.value }), { svgRef: j } = pt({ config: e.value.style.chart.title });
|
|
332
|
-
function Z() {
|
|
333
|
-
const t = Pe({
|
|
334
|
-
userConfig: n.config,
|
|
335
|
-
defaultConfig: S
|
|
336
|
-
});
|
|
337
|
-
return t.theme ? {
|
|
338
|
-
...Pe({
|
|
339
|
-
userConfig: Qe.vue_ui_molecule[t.theme] || n.config,
|
|
340
|
-
defaultConfig: t
|
|
341
|
-
}),
|
|
342
|
-
customPalette: Ze[t.theme] || xe
|
|
343
|
-
} : t;
|
|
344
|
-
}
|
|
345
|
-
Ge(() => n.config, (t) => {
|
|
346
|
-
e.value = Z(), X.value = !e.value.userOptions.showOnChartHover, a(), te.value += 1, A.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
347
|
-
}, { deep: !0 });
|
|
348
|
-
const { isPrinting: q, isImaging: o, generatePdf: v, generateImage: g } = rt({
|
|
349
|
-
elementId: `cluster_${h.value}`,
|
|
350
|
-
fileName: e.value.style.chart.title.text || "vue-ui-molecule"
|
|
351
|
-
}), L = N(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = N(() => Je(e.value.customPalette)), w = p({
|
|
352
|
-
showTable: e.value.table.show,
|
|
353
|
-
showDataLabels: !0,
|
|
354
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
355
|
-
});
|
|
356
|
-
function Y(t, u = 0) {
|
|
357
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ? Y(t[0].nodes, u + 1) : u;
|
|
358
|
-
}
|
|
359
|
-
function ne() {
|
|
360
|
-
const t = Y(n.dataset);
|
|
361
|
-
let u = 100, l = u;
|
|
362
|
-
for (let f = 0; f < t; f += 1)
|
|
363
|
-
u /= 1, l += u;
|
|
364
|
-
return {
|
|
365
|
-
height: l,
|
|
366
|
-
width: l
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
const F = p(ne());
|
|
370
|
-
p(`0 0 ${F.value.width} ${F.value.height}`);
|
|
371
|
-
function he(t, u = { x: -F.value.width / 2.43, y: F.value.height / 2 }, l = F.value.width / 1.1, f = 24, y = 0, P = 0, ue = "#BBBBBB") {
|
|
372
|
-
if (t && t.length > 0) {
|
|
373
|
-
const _e = tt({
|
|
374
|
-
plot: u,
|
|
375
|
-
radius: l,
|
|
376
|
-
sides: t.length,
|
|
377
|
-
rotation: y
|
|
378
|
-
});
|
|
379
|
-
t.forEach((E, be) => {
|
|
380
|
-
const ke = _e.coordinates[be];
|
|
381
|
-
let ee;
|
|
382
|
-
if (E.ancestor ? E.ancestor.ancestor ? ee = E.ancestor.color || ue : (ee = D.value[P] || xe[P] || ue, P += 1) : ee = ue, E.polygonPath = {
|
|
383
|
-
coordinates: [ke]
|
|
384
|
-
}, E.circleRadius = f, E.color = ee, E.uid = $e(), E.nodes && E.nodes.length > 0) {
|
|
385
|
-
const Me = !E.ancestor || !E.ancestor.ancestor ? P : 0;
|
|
386
|
-
E.nodes = he(
|
|
387
|
-
E.nodes,
|
|
388
|
-
ke,
|
|
389
|
-
l / 2.9,
|
|
390
|
-
f / 2.2,
|
|
391
|
-
y + Math.PI * be / E.nodes.length,
|
|
392
|
-
Me,
|
|
393
|
-
ee
|
|
394
|
-
);
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
return t;
|
|
399
|
-
}
|
|
400
|
-
function Fe(t) {
|
|
401
|
-
const u = /* @__PURE__ */ new Set();
|
|
402
|
-
function l(y) {
|
|
403
|
-
y.forEach((P) => {
|
|
404
|
-
P.color && !u.has(P.color) && u.add(P.color), P.nodes && P.nodes.length > 0 && l(P.nodes);
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
l(t);
|
|
408
|
-
const f = {};
|
|
409
|
-
return Array.from(u).forEach((y, P) => {
|
|
410
|
-
f[y] = `gradient_${P}`;
|
|
411
|
-
}), f;
|
|
412
|
-
}
|
|
413
|
-
const Ee = N(() => Fe(I.value)), I = N(() => he(n.dataset)), re = p(null);
|
|
414
|
-
function Se(t) {
|
|
415
|
-
re.value = {
|
|
416
|
-
datapoint: t,
|
|
417
|
-
seriesIndex: -1,
|
|
418
|
-
series: I.value,
|
|
419
|
-
config: e.value
|
|
420
|
-
};
|
|
421
|
-
const u = e.value.style.chart.tooltip.customFormat;
|
|
422
|
-
if (st(u) && at(() => u({
|
|
423
|
-
seriesIndex: -1,
|
|
424
|
-
datapoint: t,
|
|
425
|
-
series: I.value,
|
|
426
|
-
config: e.value
|
|
427
|
-
})))
|
|
428
|
-
x.value = u({
|
|
429
|
-
seriesIndex: -1,
|
|
430
|
-
// well, ok
|
|
431
|
-
datapoint: t,
|
|
432
|
-
series: I.value,
|
|
433
|
-
config: e.value
|
|
434
|
-
});
|
|
435
|
-
else {
|
|
436
|
-
let l = "";
|
|
437
|
-
l += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (l += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), x.value = `<div style="font-family:inherit">${l}</div>`;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
const fe = p(null), Q = p(null);
|
|
441
|
-
function Oe(t) {
|
|
442
|
-
fe.value = t, t ? (i.value = !0, Se(t), Q.value = t.uid) : (i.value = !1, x.value = "", Q.value = null);
|
|
443
|
-
}
|
|
444
|
-
function De(t) {
|
|
445
|
-
const u = [];
|
|
446
|
-
function l(f) {
|
|
447
|
-
f.forEach((y) => {
|
|
448
|
-
const P = {
|
|
449
|
-
name: y.name,
|
|
450
|
-
details: y.details || "-",
|
|
451
|
-
ancestor: y.ancestor && y.ancestor.name || "-",
|
|
452
|
-
color: y.color || ""
|
|
453
|
-
};
|
|
454
|
-
u.push(P), y.nodes && y.nodes.length > 0 && l(y.nodes, y.name);
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
return l(t), u;
|
|
458
|
-
}
|
|
459
|
-
const Re = N(() => De(I.value)), W = N(() => {
|
|
460
|
-
const t = [
|
|
461
|
-
e.value.table.translations.nodeName,
|
|
462
|
-
e.value.table.translations.details,
|
|
463
|
-
e.value.table.translations.ancestor
|
|
464
|
-
], u = Re.value.map((y, P) => [
|
|
465
|
-
{
|
|
466
|
-
color: y.color,
|
|
467
|
-
name: y.name
|
|
468
|
-
},
|
|
469
|
-
y.details,
|
|
470
|
-
y.ancestor || ""
|
|
471
|
-
]), l = {
|
|
472
|
-
th: {
|
|
473
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
474
|
-
color: e.value.table.th.color,
|
|
475
|
-
outline: e.value.table.th.outline
|
|
476
|
-
},
|
|
477
|
-
td: {
|
|
478
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
479
|
-
color: e.value.table.td.color,
|
|
480
|
-
outline: e.value.table.td.outline
|
|
481
|
-
},
|
|
482
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
483
|
-
}, f = [
|
|
484
|
-
e.value.table.translations.nodeName,
|
|
485
|
-
e.value.table.translations.details,
|
|
486
|
-
e.value.table.translations.ancestor
|
|
487
|
-
];
|
|
488
|
-
return {
|
|
489
|
-
head: t,
|
|
490
|
-
body: u,
|
|
491
|
-
config: l,
|
|
492
|
-
colNames: f
|
|
493
|
-
};
|
|
494
|
-
});
|
|
495
|
-
function ye() {
|
|
496
|
-
je(() => {
|
|
497
|
-
const t = W.value.body.map((f, y) => [[f[0].name], [f[1]], [f[2]]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...W.value.head]]].concat(t), l = ot(u);
|
|
498
|
-
lt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
function Ue() {
|
|
502
|
-
return I.value;
|
|
503
|
-
}
|
|
504
|
-
const J = p(!1);
|
|
505
|
-
function Ae(t) {
|
|
506
|
-
J.value = t, O.value += 1;
|
|
507
|
-
}
|
|
508
|
-
function pe() {
|
|
509
|
-
w.value.showTable = !w.value.showTable;
|
|
510
|
-
}
|
|
511
|
-
function me() {
|
|
512
|
-
w.value.showDataLabels = !w.value.showDataLabels;
|
|
513
|
-
}
|
|
514
|
-
function ge() {
|
|
515
|
-
w.value.showTooltip = !w.value.showTooltip;
|
|
516
|
-
}
|
|
517
|
-
const K = p(!1);
|
|
518
|
-
function ie() {
|
|
519
|
-
K.value = !K.value;
|
|
520
|
-
}
|
|
521
|
-
const Ie = N(() => !K.value), { viewBox: se } = Tt(j, {
|
|
522
|
-
x: 0,
|
|
523
|
-
y: 0,
|
|
524
|
-
width: F.value.width <= 0 ? 10 : F.value.width,
|
|
525
|
-
height: F.value.height <= 0 ? 10 : F.value.height
|
|
526
|
-
}, e.value.style.chart.zoom.speed, Ie);
|
|
527
|
-
function Ne(t) {
|
|
528
|
-
C("selectNode", t);
|
|
529
|
-
}
|
|
530
|
-
return M({
|
|
531
|
-
getData: Ue,
|
|
532
|
-
generatePdf: v,
|
|
533
|
-
generateCsv: ye,
|
|
534
|
-
generateImage: g,
|
|
535
|
-
toggleTable: pe,
|
|
536
|
-
toggleLabels: me,
|
|
537
|
-
toggleTooltip: ge,
|
|
538
|
-
toggleAnnotator: ie
|
|
539
|
-
}), (t, u) => (s(), d("div", {
|
|
540
|
-
ref_key: "moleculeChart",
|
|
541
|
-
ref: U,
|
|
542
|
-
class: we(`vue-ui-molecule ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
543
|
-
style: ce(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
544
|
-
id: `cluster_${h.value}`,
|
|
545
|
-
onMouseleave: u[1] || (u[1] = (l) => {
|
|
546
|
-
fe.value = null, Q.value = null, b(oe)(!1);
|
|
547
|
-
}),
|
|
548
|
-
onMouseenter: u[2] || (u[2] = () => b(oe)(!0))
|
|
549
|
-
}, [
|
|
550
|
-
e.value.userOptions.buttons.annotator ? (s(), R(ft, {
|
|
551
|
-
key: 0,
|
|
552
|
-
svgRef: b(j),
|
|
553
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
554
|
-
color: e.value.style.chart.color,
|
|
555
|
-
active: K.value,
|
|
556
|
-
onClose: ie
|
|
557
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
558
|
-
L.value ? (s(), d("div", Ft, null, 512)) : m("", !0),
|
|
559
|
-
e.value.style.chart.title.text ? (s(), d("div", Et, [
|
|
560
|
-
(s(), R(nt, {
|
|
561
|
-
key: `title_${te.value}`,
|
|
562
|
-
config: {
|
|
563
|
-
title: {
|
|
564
|
-
cy: "molecule-div-title",
|
|
565
|
-
...e.value.style.chart.title
|
|
566
|
-
},
|
|
567
|
-
subtitle: {
|
|
568
|
-
cy: "molecule-div-subtitle",
|
|
569
|
-
...e.value.style.chart.title.subtitle
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}, null, 8, ["config"]))
|
|
573
|
-
])) : m("", !0),
|
|
574
|
-
e.value.userOptions.show && c.value && (b(le) || b(X)) ? (s(), R(it, {
|
|
575
|
-
ref_key: "details",
|
|
576
|
-
ref: H,
|
|
577
|
-
key: `user_options_${O.value}`,
|
|
578
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
579
|
-
color: e.value.style.chart.color,
|
|
580
|
-
isPrinting: b(q),
|
|
581
|
-
isImaging: b(o),
|
|
582
|
-
uid: h.value,
|
|
583
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
584
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
585
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
586
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
587
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
588
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
589
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
590
|
-
isTooltip: w.value.showTooltip,
|
|
591
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
592
|
-
chartElement: U.value,
|
|
593
|
-
position: e.value.userOptions.position,
|
|
594
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
595
|
-
isAnnotation: K.value,
|
|
596
|
-
onToggleFullscreen: Ae,
|
|
597
|
-
onGeneratePdf: b(v),
|
|
598
|
-
onGenerateCsv: ye,
|
|
599
|
-
onGenerateImage: b(g),
|
|
600
|
-
onToggleTable: pe,
|
|
601
|
-
onToggleLabels: me,
|
|
602
|
-
onToggleTooltip: ge,
|
|
603
|
-
onToggleAnnotator: ie,
|
|
604
|
-
style: ce({
|
|
605
|
-
visibility: b(le) ? b(X) ? "visible" : "hidden" : "visible"
|
|
606
|
-
})
|
|
607
|
-
}, Ve({ _: 2 }, [
|
|
608
|
-
t.$slots.menuIcon ? {
|
|
609
|
-
name: "menuIcon",
|
|
610
|
-
fn: T(({ isOpen: l, color: f }) => [
|
|
611
|
-
$(t.$slots, "menuIcon", B(G({ isOpen: l, color: f })), void 0, !0)
|
|
612
|
-
]),
|
|
613
|
-
key: "0"
|
|
614
|
-
} : void 0,
|
|
615
|
-
t.$slots.optionTooltip ? {
|
|
616
|
-
name: "optionTooltip",
|
|
617
|
-
fn: T(() => [
|
|
618
|
-
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
619
|
-
]),
|
|
620
|
-
key: "1"
|
|
621
|
-
} : void 0,
|
|
622
|
-
t.$slots.optionPdf ? {
|
|
623
|
-
name: "optionPdf",
|
|
624
|
-
fn: T(() => [
|
|
625
|
-
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
626
|
-
]),
|
|
627
|
-
key: "2"
|
|
628
|
-
} : void 0,
|
|
629
|
-
t.$slots.optionCsv ? {
|
|
630
|
-
name: "optionCsv",
|
|
631
|
-
fn: T(() => [
|
|
632
|
-
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
633
|
-
]),
|
|
634
|
-
key: "3"
|
|
635
|
-
} : void 0,
|
|
636
|
-
t.$slots.optionImg ? {
|
|
637
|
-
name: "optionImg",
|
|
638
|
-
fn: T(() => [
|
|
639
|
-
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
640
|
-
]),
|
|
641
|
-
key: "4"
|
|
642
|
-
} : void 0,
|
|
643
|
-
t.$slots.optionTable ? {
|
|
644
|
-
name: "optionTable",
|
|
645
|
-
fn: T(() => [
|
|
646
|
-
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
647
|
-
]),
|
|
648
|
-
key: "5"
|
|
649
|
-
} : void 0,
|
|
650
|
-
t.$slots.optionLabels ? {
|
|
651
|
-
name: "optionLabels",
|
|
652
|
-
fn: T(() => [
|
|
653
|
-
$(t.$slots, "optionLabels", {}, void 0, !0)
|
|
654
|
-
]),
|
|
655
|
-
key: "6"
|
|
656
|
-
} : void 0,
|
|
657
|
-
t.$slots.optionFullscreen ? {
|
|
658
|
-
name: "optionFullscreen",
|
|
659
|
-
fn: T(({ toggleFullscreen: l, isFullscreen: f }) => [
|
|
660
|
-
$(t.$slots, "optionFullscreen", B(G({ toggleFullscreen: l, isFullscreen: f })), void 0, !0)
|
|
661
|
-
]),
|
|
662
|
-
key: "7"
|
|
663
|
-
} : void 0,
|
|
664
|
-
t.$slots.optionAnnotator ? {
|
|
665
|
-
name: "optionAnnotator",
|
|
666
|
-
fn: T(({ toggleAnnotator: l, isAnnotator: f }) => [
|
|
667
|
-
$(t.$slots, "optionAnnotator", B(G({ toggleAnnotator: l, isAnnotator: f })), void 0, !0)
|
|
668
|
-
]),
|
|
669
|
-
key: "8"
|
|
670
|
-
} : void 0
|
|
671
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
672
|
-
c.value ? (s(), d("svg", {
|
|
673
|
-
key: 4,
|
|
674
|
-
ref_key: "svgRef",
|
|
675
|
-
ref: j,
|
|
676
|
-
xmlns: b(Ke),
|
|
677
|
-
viewBox: `${b(se).x} ${b(se).y} ${b(se).width} ${b(se).height}`,
|
|
678
|
-
class: we({ "vue-data-ui-fullscreen--on": J.value, "vue-data-ui-fulscreen--off": !J.value }),
|
|
679
|
-
style: ce(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
680
|
-
}, [
|
|
681
|
-
ae(ht),
|
|
682
|
-
t.$slots["chart-background"] ? (s(), d("foreignObject", {
|
|
683
|
-
key: 0,
|
|
684
|
-
x: 0,
|
|
685
|
-
y: 0,
|
|
686
|
-
width: F.value.width <= 0 ? 10 : F.value.width,
|
|
687
|
-
height: F.value.height <= 0 ? 10 : F.value.height,
|
|
688
|
-
style: {
|
|
689
|
-
pointerEvents: "none"
|
|
690
|
-
}
|
|
691
|
-
}, [
|
|
692
|
-
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
693
|
-
], 8, Ot)) : m("", !0),
|
|
694
|
-
V("defs", null, [
|
|
695
|
-
(s(!0), d(k, null, _(Object.keys(Ee.value), (l) => (s(), d("radialGradient", {
|
|
696
|
-
id: `gradient_${l}`,
|
|
697
|
-
cx: "50%",
|
|
698
|
-
cy: "30%",
|
|
699
|
-
r: "50%",
|
|
700
|
-
fx: "50%",
|
|
701
|
-
fy: "50%"
|
|
702
|
-
}, [
|
|
703
|
-
V("stop", {
|
|
704
|
-
offset: "0%",
|
|
705
|
-
"stop-color": b(et)(l, 0.5)
|
|
706
|
-
}, null, 8, Rt),
|
|
707
|
-
V("stop", {
|
|
708
|
-
offset: "100%",
|
|
709
|
-
"stop-color": l
|
|
710
|
-
}, null, 8, Ut)
|
|
711
|
-
], 8, Dt))), 256))
|
|
712
|
-
]),
|
|
713
|
-
ae($t, {
|
|
714
|
-
dataset: I.value,
|
|
715
|
-
color: e.value.style.chart.links.stroke,
|
|
716
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
717
|
-
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
718
|
-
ae(kt, {
|
|
719
|
-
dataset: I.value,
|
|
720
|
-
hoveredUid: Q.value,
|
|
721
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
722
|
-
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
723
|
-
onClick: Ne,
|
|
724
|
-
onHover: Oe
|
|
725
|
-
}, {
|
|
726
|
-
node: T(({ node: l }) => [
|
|
727
|
-
$(t.$slots, "node", B(G({ node: l })), void 0, !0)
|
|
728
|
-
]),
|
|
729
|
-
_: 3
|
|
730
|
-
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
731
|
-
w.value.showDataLabels ? (s(), R(Pt, {
|
|
732
|
-
key: 1,
|
|
733
|
-
dataset: I.value,
|
|
734
|
-
color: e.value.style.chart.color,
|
|
735
|
-
hoveredUid: Q.value
|
|
736
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0),
|
|
737
|
-
$(t.$slots, "svg", { svg: F.value }, void 0, !0)
|
|
738
|
-
], 14, St)) : m("", !0),
|
|
739
|
-
t.$slots.watermark ? (s(), d("div", At, [
|
|
740
|
-
$(t.$slots, "watermark", B(G({ isPrinting: b(q) || b(o) })), void 0, !0)
|
|
741
|
-
])) : m("", !0),
|
|
742
|
-
c.value ? m("", !0) : (s(), R(dt, {
|
|
743
|
-
key: 6,
|
|
744
|
-
config: {
|
|
745
|
-
type: "molecule",
|
|
746
|
-
style: {
|
|
747
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
748
|
-
molecule: {
|
|
749
|
-
color: "#CCCCCC"
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
}, null, 8, ["config"])),
|
|
754
|
-
t.$slots.source ? (s(), d("div", It, [
|
|
755
|
-
$(t.$slots, "source", {}, void 0, !0)
|
|
756
|
-
], 512)) : m("", !0),
|
|
757
|
-
ae(ct, {
|
|
758
|
-
show: w.value.showTooltip && i.value,
|
|
759
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
760
|
-
color: e.value.style.chart.tooltip.color,
|
|
761
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
762
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
763
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
764
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
765
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
766
|
-
position: e.value.style.chart.tooltip.position,
|
|
767
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
768
|
-
parent: U.value,
|
|
769
|
-
content: x.value,
|
|
770
|
-
isFullscreen: J.value,
|
|
771
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
772
|
-
}, {
|
|
773
|
-
"tooltip-before": T(() => [
|
|
774
|
-
$(t.$slots, "tooltip-before", B(G({ ...re.value })), void 0, !0)
|
|
775
|
-
]),
|
|
776
|
-
"tooltip-after": T(() => [
|
|
777
|
-
$(t.$slots, "tooltip-after", B(G({ ...re.value })), void 0, !0)
|
|
778
|
-
]),
|
|
779
|
-
_: 3
|
|
780
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
781
|
-
c.value ? (s(), R(vt, {
|
|
782
|
-
key: 8,
|
|
783
|
-
hideDetails: "",
|
|
784
|
-
config: {
|
|
785
|
-
open: w.value.showTable,
|
|
786
|
-
maxHeight: 1e4,
|
|
787
|
-
body: {
|
|
788
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
789
|
-
color: e.value.style.chart.color
|
|
790
|
-
},
|
|
791
|
-
head: {
|
|
792
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
793
|
-
color: e.value.style.chart.color
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
}, {
|
|
797
|
-
content: T(() => [
|
|
798
|
-
(s(), R(ut, {
|
|
799
|
-
key: `table_${A.value}`,
|
|
800
|
-
colNames: W.value.colNames,
|
|
801
|
-
head: W.value.head,
|
|
802
|
-
body: W.value.body,
|
|
803
|
-
config: W.value.config,
|
|
804
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
805
|
-
onClose: u[0] || (u[0] = (l) => w.value.showTable = !1)
|
|
806
|
-
}, {
|
|
807
|
-
th: T(({ th: l }) => [
|
|
808
|
-
V("div", {
|
|
809
|
-
innerHTML: l,
|
|
810
|
-
style: { display: "flex", "align-items": "center" }
|
|
811
|
-
}, null, 8, Nt)
|
|
812
|
-
]),
|
|
813
|
-
td: T(({ td: l }) => [
|
|
814
|
-
Xe(Te(l.name || l), 1)
|
|
815
|
-
]),
|
|
816
|
-
_: 1
|
|
817
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
818
|
-
]),
|
|
819
|
-
_: 1
|
|
820
|
-
}, 8, ["config"])) : m("", !0)
|
|
821
|
-
], 46, Lt));
|
|
822
|
-
}
|
|
823
|
-
}, Kt = /* @__PURE__ */ mt(_t, [["__scopeId", "data-v-c4dc9cf3"]]);
|
|
824
|
-
export {
|
|
825
|
-
Kt as default
|
|
826
|
-
};
|