vue-data-ui 2.6.47 → 2.6.49-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Dvz6Z2gU.js → Arrow-Dv70pgNR.js} +1 -1
- package/dist/{Arrow-CRrMt_zT.cjs → Arrow-shhEXYsq.cjs} +1 -1
- package/dist/{BaseIcon-DoqpR480.cjs → BaseIcon-D6QkKJpU.cjs} +1 -1
- package/dist/{BaseIcon-CEgQPz8O.js → BaseIcon-ZZc7VY8d.js} +8 -3
- package/dist/{ColorPicker-Bp_7FV2c.cjs → ColorPicker-CGbS8gKN.cjs} +1 -1
- package/dist/{ColorPicker-DwezDvSV.js → ColorPicker-CUJpXuSS.js} +3 -3
- package/dist/{DataTable-D_Guh5Hf.cjs → DataTable-CRuMrwb8.cjs} +1 -1
- package/dist/{DataTable-751-cN2c.js → DataTable-CmnlvDKM.js} +2 -2
- package/dist/{Legend-BG9fLat9.js → Legend-B3rCxiju.js} +2 -2
- package/dist/{Legend-CepYsC9r.cjs → Legend-KLm00z8t.cjs} +1 -1
- package/dist/{PackageVersion-SrpgZayt.js → PackageVersion-DavVl5j6.js} +1 -1
- package/dist/{PackageVersion-D8T0gm3t.cjs → PackageVersion-DwKk69DU.cjs} +1 -1
- package/dist/{PenAndPaper-jnD991LP.js → PenAndPaper-CGAd_cD9.js} +3 -3
- package/dist/{PenAndPaper-BJ6gGBM2.cjs → PenAndPaper-hlX2Djxv.cjs} +1 -1
- package/dist/{Shape-og7-ULyN.cjs → Shape-BGYZa31d.cjs} +1 -1
- package/dist/{Shape-BaijOBYT.js → Shape-CWFBkvfP.js} +1 -1
- package/dist/{Slicer-COHzItjq.js → Slicer-BEOWbyKm.js} +2 -2
- package/dist/{Slicer-B4ZDkwnQ.cjs → Slicer-CAyYbVK-.cjs} +1 -1
- package/dist/{Title-DMhhB9yN.js → Title-Ch602IT9.js} +1 -1
- package/dist/{Title-BUnn57ZR.cjs → Title-Iy2d-Bd1.cjs} +1 -1
- package/dist/{Tooltip-BaPecnnV.js → Tooltip-0IaPNa9t.js} +1 -1
- package/dist/{Tooltip-DJtOxx2P.cjs → Tooltip-DhV-T1A4.cjs} +1 -1
- package/dist/{index-DEbhC0cM.cjs → index-C4TeRZvT.cjs} +2 -2
- package/dist/{index-KdQpiTkm.js → index-C7spnOfS.js} +5 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +38 -1
- package/dist/types/vue-data-ui.d.ts +38 -1
- package/dist/{useNestedProp-COYn8tA0.cjs → useNestedProp-BS-4R8zR.cjs} +1 -1
- package/dist/{useNestedProp-CO8Pe266.js → useNestedProp-BXHzK3EV.js} +1 -1
- package/dist/usePanZoom-CWL8SzZN.js +79 -0
- package/dist/usePanZoom-CppTL3G-.cjs +1 -0
- package/dist/{usePrinter-BuiF8wZK.js → usePrinter-BDUIRBP4.js} +1 -1
- package/dist/{usePrinter-DRmOwFc2.cjs → usePrinter-bFMowLOh.cjs} +1 -1
- package/dist/{vue-data-ui-3jkYjNO_.js → vue-data-ui-Be5Tgffi.js} +61 -61
- package/dist/{vue-data-ui-BbpJaKj_.cjs → vue-data-ui-CAyq9OfR.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +22 -20
- package/dist/{vue-ui-3d-bar-Bda7eCM_.js → vue-ui-3d-bar-CtOPLOD3.js} +9 -9
- package/dist/{vue-ui-3d-bar-D7_7INdZ.cjs → vue-ui-3d-bar-M3DFCjSK.cjs} +1 -1
- package/dist/{vue-ui-accordion-ChxVn9CH.cjs → vue-ui-accordion-BIbie2vw.cjs} +1 -1
- package/dist/{vue-ui-accordion-CDTJiQu0.js → vue-ui-accordion-Bk2aYAD-.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C-5yJnWs.cjs → vue-ui-age-pyramid-CR9x-PgJ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C4FUVgL1.js → vue-ui-age-pyramid-hyVqCFgO.js} +10 -10
- package/dist/{vue-ui-annotator-yLvZcOQb.cjs → vue-ui-annotator-BXHTI64K.cjs} +1 -1
- package/dist/{vue-ui-annotator-pYtolxGn.js → vue-ui-annotator-Qn0uc5GZ.js} +1 -1
- package/dist/{vue-ui-bullet-oEZK6DxU.js → vue-ui-bullet-CrWBMd4n.js} +8 -8
- package/dist/{vue-ui-bullet-BVmbUAYh.cjs → vue-ui-bullet-DM6lx30F.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Cm0ipv0t.js → vue-ui-candlestick-B2jTfGz7.js} +11 -11
- package/dist/{vue-ui-candlestick-CVM-Yvvm.cjs → vue-ui-candlestick-DUZlc7tm.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BGPWwg3x.cjs → vue-ui-carousel-table-3QViQ5Bi.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-PcE7YCyE.js → vue-ui-carousel-table-Cy39XJq8.js} +4 -4
- package/dist/{vue-ui-chestnut-CeYVXtyW.cjs → vue-ui-chestnut-CAEZuh12.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ob9Rt-3r.js → vue-ui-chestnut-Dr3sUQIO.js} +8 -8
- package/dist/{vue-ui-circle-pack-BF0PBuDU.js → vue-ui-circle-pack-C8lFd9HI.js} +9 -9
- package/dist/{vue-ui-circle-pack-pbnF0Jb7.cjs → vue-ui-circle-pack-DNSLbFV_.cjs} +1 -1
- package/dist/{vue-ui-cursor-DE4hlTca.cjs → vue-ui-cursor-B4KSNGDd.cjs} +1 -1
- package/dist/{vue-ui-cursor-Drnazkqg.js → vue-ui-cursor-Bim9FO5p.js} +2 -2
- package/dist/{vue-ui-dashboard-D3-z2poA.cjs → vue-ui-dashboard-BlMkdmJG.cjs} +1 -1
- package/dist/{vue-ui-dashboard-j5IuBHiv.js → vue-ui-dashboard-q2N-lR5R.js} +2 -2
- package/dist/{vue-ui-digits-CD5-WopZ.cjs → vue-ui-digits-BxsLTjn3.cjs} +1 -1
- package/dist/{vue-ui-digits-BRMuUzSA.js → vue-ui-digits-Cs5S9-t4.js} +2 -2
- package/dist/{vue-ui-donut-Dq1F2vBg.cjs → vue-ui-donut-CHAu83aL.cjs} +1 -1
- package/dist/{vue-ui-donut-CdVSree_.js → vue-ui-donut-CsK4bhU9.js} +12 -12
- package/dist/{vue-ui-donut-evolution-BQ7-rOnh.cjs → vue-ui-donut-evolution-DIgg0r1H.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DzrJwccW.js → vue-ui-donut-evolution-DRIjATMj.js} +11 -11
- package/dist/{vue-ui-dumbbell-DSdwbWLI.cjs → vue-ui-dumbbell-Dnd5xBoE.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DuCdZc41.js → vue-ui-dumbbell-RqWpXNMb.js} +10 -10
- package/dist/{vue-ui-flow-D_UgsB9t.cjs → vue-ui-flow-DLkZ_RPK.cjs} +1 -1
- package/dist/{vue-ui-flow-CYpiRQ_u.js → vue-ui-flow-Wl9BdRET.js} +9 -9
- package/dist/{vue-ui-funnel-6q79enxr.js → vue-ui-funnel-BtEiPtWV.js} +9 -9
- package/dist/{vue-ui-funnel-Dr4ssgIM.cjs → vue-ui-funnel-C9kqSvdp.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BGxIGzn8.cjs → vue-ui-galaxy-DuHBx10N.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Bg-3xnWe.js → vue-ui-galaxy-Dy0szrMW.js} +11 -11
- package/dist/{vue-ui-gauge-DGt25KK7.cjs → vue-ui-gauge-BHTXAsP3.cjs} +1 -1
- package/dist/{vue-ui-gauge-Cwhlraja.js → vue-ui-gauge-Bl5tGVHq.js} +7 -7
- package/dist/{vue-ui-gizmo-C0024J7B.cjs → vue-ui-gizmo-C4BrHDh4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-VRONxCxp.js → vue-ui-gizmo-DMyPBBMU.js} +3 -3
- package/dist/{vue-ui-heatmap-ay3NAawN.js → vue-ui-heatmap-TlpTNG5t.js} +10 -10
- package/dist/{vue-ui-heatmap-CTwazjkR.cjs → vue-ui-heatmap-sFIr2K5p.cjs} +1 -1
- package/dist/{vue-ui-history-plot-B_IHuJff.cjs → vue-ui-history-plot-DAjdzGlR.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BQ_2NZVm.js → vue-ui-history-plot-Dy1j0BxQ.js} +11 -11
- package/dist/{vue-ui-kpi-BGSgE7Ck.js → vue-ui-kpi-BcmSRMqx.js} +3 -3
- package/dist/{vue-ui-kpi-BtHmGmj6.cjs → vue-ui-kpi-ujEXx77P.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DyRqUv0j.js → vue-ui-mini-loader-CjnStv_v.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bwe3_hqy.cjs → vue-ui-mini-loader-DAPA-14x.cjs} +1 -1
- package/dist/vue-ui-molecule-DR0XoKl0.cjs +1 -0
- package/dist/vue-ui-molecule-JFJY9rsO.js +755 -0
- package/dist/{vue-ui-mood-radar-BxFd74g3.cjs → vue-ui-mood-radar-BaysMegc.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DAYJLwXw.js → vue-ui-mood-radar-COoBSKNH.js} +11 -11
- package/dist/{vue-ui-nested-donuts-r67jsUHC.js → vue-ui-nested-donuts-CtFedcCD.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DP_cQ0OI.cjs → vue-ui-nested-donuts-DYBuISa1.cjs} +1 -1
- package/dist/{vue-ui-onion-C-d1e3w2.js → vue-ui-onion-CEUV1mny.js} +11 -11
- package/dist/{vue-ui-onion-CR4UoiPQ.cjs → vue-ui-onion-D6ZwBWQg.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DVltec37.cjs → vue-ui-parallel-coordinate-plot-BxNT4su_.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-FRhJ4mby.js → vue-ui-parallel-coordinate-plot-DYTDHl62.js} +12 -12
- package/dist/{vue-ui-quadrant-BKWD8HER.js → vue-ui-quadrant-Bgw63sh8.js} +12 -12
- package/dist/{vue-ui-quadrant-D-vSAn7m.cjs → vue-ui-quadrant-j31KXFQl.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Cy3FCnd-.js → vue-ui-quick-chart-DQQj-yff.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bbcex3jc.cjs → vue-ui-quick-chart-oEQhbqjr.cjs} +1 -1
- package/dist/{vue-ui-radar-BHCghGVU.cjs → vue-ui-radar-C5pUYB_x.cjs} +1 -1
- package/dist/{vue-ui-radar-BX_7Ngn_.js → vue-ui-radar-D8z1eA3O.js} +12 -12
- package/dist/{vue-ui-rating-CM6YiPW3.js → vue-ui-rating-CEIibBYU.js} +2 -2
- package/dist/{vue-ui-rating-JhzvmHjC.cjs → vue-ui-rating-CGh8TQ5M.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BPhcc_fN.cjs → vue-ui-relation-circle-Bf6kjYWL.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-JTWFex69.js → vue-ui-relation-circle-BrIe8bZU.js} +7 -7
- package/dist/{vue-ui-rings-NBAca-G8.js → vue-ui-rings-6l5DQ0_9.js} +12 -12
- package/dist/{vue-ui-rings-CzXIKikH.cjs → vue-ui-rings-BmSQzToz.cjs} +1 -1
- package/dist/{vue-ui-scatter-5SJ4F605.js → vue-ui-scatter-0geSLTUp.js} +12 -12
- package/dist/{vue-ui-scatter-DCunyG-E.cjs → vue-ui-scatter-g67ClUSv.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DPm6Bpiq.js → vue-ui-screenshot-CshpwrmO.js} +1 -1
- package/dist/{vue-ui-screenshot-q3DSJ00h.cjs → vue-ui-screenshot-r5tJCW0O.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BhHXiz99.js → vue-ui-skeleton-Bn49rVXa.js} +3 -3
- package/dist/{vue-ui-skeleton-D7S6OsSN.cjs → vue-ui-skeleton-D7ijXB6x.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cb8d713r.js → vue-ui-smiley-CzAtJD1G.js} +2 -2
- package/dist/{vue-ui-smiley-CQE1dvvV.cjs → vue-ui-smiley-HofydNoz.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BVNEGhp9.js → vue-ui-spark-trend-B70DhKVg.js} +5 -5
- package/dist/{vue-ui-spark-trend-7Bo9O1fQ.cjs → vue-ui-spark-trend-CdTdbj6x.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BbOu_w63.js → vue-ui-sparkbar-CZ8Nw4fl.js} +4 -4
- package/dist/{vue-ui-sparkbar-qAaHy4or.cjs → vue-ui-sparkbar-cJ7Wu051.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ddRVuzSQ.cjs → vue-ui-sparkgauge-BWNkoMqk.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BwNM15jl.js → vue-ui-sparkgauge-D-VwonfZ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DhJ72P8O.js → vue-ui-sparkhistogram-BK58LMOs.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C8E73uuw.cjs → vue-ui-sparkhistogram-hBwVKdOS.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C6wkmXa0.cjs → vue-ui-sparkline-BD4gkpj_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-m3nNPKwo.js → vue-ui-sparkline-DORXFea9.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-B71Vue4E.js → vue-ui-sparkstackbar-CNu5TNGE.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CJyCwn7x.cjs → vue-ui-sparkstackbar-ClcY4WWe.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CL7KXBrn.js → vue-ui-stackbar--aCaS5x2.js} +13 -13
- package/dist/{vue-ui-stackbar-6W0SjyLd.cjs → vue-ui-stackbar-CkMwpXvU.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D10qNzJu.cjs → vue-ui-strip-plot-BiFHgg1S.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-T99zioSX.js → vue-ui-strip-plot-CFVbMS6X.js} +11 -11
- package/dist/{vue-ui-table-CCrE_Qnd.js → vue-ui-table-B_3Ilpbe.js} +1 -1
- package/dist/{vue-ui-table-Cva4CGRJ.cjs → vue-ui-table-DR255TsX.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CQbPKFW_.js → vue-ui-table-heatmap-BNxAz0s0.js} +4 -4
- package/dist/{vue-ui-table-heatmap-GOsIhgPo.cjs → vue-ui-table-heatmap-GUBFCD5M.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-AIunqOTn.cjs → vue-ui-table-sparkline-B4tLXnLP.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CHtZhhn6.js → vue-ui-table-sparkline-DSOduMZf.js} +5 -5
- package/dist/{vue-ui-thermometer-CGAA0bAU.cjs → vue-ui-thermometer-D4xuEt1d.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CCVPdXye.js → vue-ui-thermometer-DmM-HnTb.js} +7 -7
- package/dist/{vue-ui-timer-C3detaHT.cjs → vue-ui-timer-CRvBgkAk.cjs} +1 -1
- package/dist/{vue-ui-timer-Djxb8XuU.js → vue-ui-timer-Cv3Nx66b.js} +5 -5
- package/dist/{vue-ui-tiremarks-DExuaGwV.js → vue-ui-tiremarks-ASWxcVYt.js} +7 -7
- package/dist/{vue-ui-tiremarks-D-xQKhur.cjs → vue-ui-tiremarks-BCm4J3AS.cjs} +1 -1
- package/dist/{vue-ui-treemap-Dnn29Qdu.js → vue-ui-treemap-DkTT9Fpa.js} +12 -12
- package/dist/{vue-ui-treemap-BXWbdL3o.cjs → vue-ui-treemap-K-I2E3e-.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B9-cwCz2.js → vue-ui-vertical-bar-CKAyFHu9.js} +12 -12
- package/dist/{vue-ui-vertical-bar-3V-J4-Qp.cjs → vue-ui-vertical-bar-CYsYkq04.cjs} +1 -1
- package/dist/{vue-ui-waffle-BH4NkBmK.js → vue-ui-waffle-DA1_yNZ7.js} +12 -12
- package/dist/{vue-ui-waffle-by6o3KnD.cjs → vue-ui-waffle-WHpYY_yA.cjs} +1 -1
- package/dist/{vue-ui-wheel-DWNHihoO.cjs → vue-ui-wheel-CWY3hkRC.cjs} +1 -1
- package/dist/{vue-ui-wheel-D2BqDvNB.js → vue-ui-wheel-vebQiYtM.js} +7 -7
- package/dist/vue-ui-word-cloud-CABqCfl5.js +571 -0
- package/dist/vue-ui-word-cloud-H7016Zdi.cjs +1 -0
- package/dist/{vue-ui-xy-CuLfvdAU.js → vue-ui-xy-C2OQ78CJ.js} +14 -14
- package/dist/{vue-ui-xy-luOYkYWO.cjs → vue-ui-xy-CrCJrk6u.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-bysKB96p.cjs → vue-ui-xy-canvas-D5iPJqoe.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BK3C3PqR.js → vue-ui-xy-canvas-DvZgi7HV.js} +12 -12
- package/package.json +2 -2
- package/dist/vue-ui-molecule-Cy_P0hK2.cjs +0 -1
- package/dist/vue-ui-molecule-gJVbPM60.js +0 -830
- package/dist/vue-ui-word-cloud-Bpyn_t-K.js +0 -646
- package/dist/vue-ui-word-cloud-DvXgJCIv.cjs +0 -1
|
@@ -1,830 +0,0 @@
|
|
|
1
|
-
import { toRef as he, resolveComponent as fe, createElementBlock as d, openBlock as s, Fragment as k, renderList as M, createCommentVNode as m, createBlock as R, createElementVNode as W, withModifiers as Ge, renderSlot as w, mergeProps as xe, withCtx as P, toDisplayString as Se, ref as p, onMounted as Ae, onUnmounted as Ve, watchEffect as We, computed as _, watch as Xe, unref as b, normalizeStyle as ve, normalizeClass as Pe, createVNode as ae, createSlots as je, normalizeProps as G, guardReactiveProps as V, createTextVNode as Ye, nextTick as Ze } from "vue";
|
|
2
|
-
import { u as qe, o as Qe, e as Je, c as Te, t as Ke, p as Fe, a as et, b as tt, P as ot, X as lt, l as st, Q as nt, d as Le, q as at, r as rt, x as it, y as ut } from "./index-KdQpiTkm.js";
|
|
3
|
-
import { _ as ct } from "./Title-DMhhB9yN.js";
|
|
4
|
-
import { u as dt, U as vt } from "./usePrinter-BuiF8wZK.js";
|
|
5
|
-
import { D as ht } from "./DataTable-751-cN2c.js";
|
|
6
|
-
import { _ as ft } from "./Tooltip-BaPecnnV.js";
|
|
7
|
-
import yt from "./vue-ui-skeleton-BhHXiz99.js";
|
|
8
|
-
import pt from "./vue-ui-accordion-CDTJiQu0.js";
|
|
9
|
-
import { u as Ee } from "./useNestedProp-CO8Pe266.js";
|
|
10
|
-
import { _ as mt } from "./PackageVersion-SrpgZayt.js";
|
|
11
|
-
import { P as gt } from "./PenAndPaper-jnD991LP.js";
|
|
12
|
-
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
-
import { u as kt } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
-
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], wt = ["x", "y", "height", "width", "onClick", "onMouseover"], xt = {
|
|
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: z }) {
|
|
45
|
-
const H = r, E = z;
|
|
46
|
-
function a(n) {
|
|
47
|
-
E("click", n);
|
|
48
|
-
}
|
|
49
|
-
function C(n) {
|
|
50
|
-
E("hover", n);
|
|
51
|
-
}
|
|
52
|
-
return he(H, "dataset").value.forEach((n) => {
|
|
53
|
-
n.nodes && n.nodes.length > 0 && n.nodes.forEach((f) => {
|
|
54
|
-
f.ancestor = n;
|
|
55
|
-
});
|
|
56
|
-
}), (n, f) => {
|
|
57
|
-
const B = fe("RecursiveCircles", !0);
|
|
58
|
-
return s(!0), d(k, null, M(r.dataset, (i) => (s(), d(k, null, [
|
|
59
|
-
i.polygonPath && i.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
|
|
60
|
-
(s(!0), d(k, null, M(i.polygonPath.coordinates, (x, U) => (s(), d(k, null, [
|
|
61
|
-
W("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: (S) => a(i),
|
|
70
|
-
onMouseover: (S) => C(i),
|
|
71
|
-
onMouseleave: f[0] || (f[0] = (S) => C(null))
|
|
72
|
-
}, null, 40, $t),
|
|
73
|
-
n.$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: Ge((S) => a(i), ["stop"]),
|
|
81
|
-
onMouseover: (S) => C(i),
|
|
82
|
-
onMouseleave: f[1] || (f[1] = (S) => C(null))
|
|
83
|
-
}, [
|
|
84
|
-
w(n.$slots, "node", xe({ ref_for: !0 }, { node: i }))
|
|
85
|
-
], 40, wt)) : m("", !0)
|
|
86
|
-
], 64))), 256)),
|
|
87
|
-
i.nodes && i.nodes.length > 0 ? (s(), R(B, {
|
|
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: a,
|
|
95
|
-
onHover: C
|
|
96
|
-
}, {
|
|
97
|
-
node: P(({ node: x }) => [
|
|
98
|
-
w(n.$slots, "node", xe({ 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
|
-
}, Pt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Tt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ft = {
|
|
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 he(r, "dataset").value.forEach((E) => {
|
|
124
|
-
E.nodes && E.nodes.length > 0 && E.nodes.forEach((a) => {
|
|
125
|
-
a.ancestor = E;
|
|
126
|
-
});
|
|
127
|
-
}), (E, a) => {
|
|
128
|
-
const C = fe("RecursiveLinks", !0);
|
|
129
|
-
return s(), d(k, null, [
|
|
130
|
-
(s(!0), d(k, null, M(r.dataset, (u) => (s(), d(k, null, [
|
|
131
|
-
u.polygonPath && u.polygonPath.coordinates ? (s(!0), d(k, { key: 0 }, M(u.polygonPath.coordinates, (n, f) => (s(), d(k, null, [
|
|
132
|
-
u.ancestor && u.ancestor.polygonPath ? (s(), d(k, { key: 0 }, [
|
|
133
|
-
W("line", {
|
|
134
|
-
x1: n.x,
|
|
135
|
-
y1: n.y,
|
|
136
|
-
x2: u.ancestor.polygonPath.coordinates[0].x,
|
|
137
|
-
y2: u.ancestor.polygonPath.coordinates[0].y,
|
|
138
|
-
stroke: r.backgroundColor,
|
|
139
|
-
"stroke-width": u.circleRadius / 1.5
|
|
140
|
-
}, null, 8, Pt),
|
|
141
|
-
W("line", {
|
|
142
|
-
x1: n.x,
|
|
143
|
-
y1: n.y,
|
|
144
|
-
x2: u.ancestor.polygonPath.coordinates[0].x,
|
|
145
|
-
y2: u.ancestor.polygonPath.coordinates[0].y,
|
|
146
|
-
stroke: r.color,
|
|
147
|
-
"stroke-width": u.circleRadius / 2
|
|
148
|
-
}, null, 8, Tt)
|
|
149
|
-
], 64)) : m("", !0)
|
|
150
|
-
], 64))), 256)) : m("", !0)
|
|
151
|
-
], 64))), 256)),
|
|
152
|
-
(s(!0), d(k, null, M(r.dataset, (u) => (s(), d(k, null, [
|
|
153
|
-
u.polygonPath && u.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
|
|
154
|
-
u.nodes && u.nodes.length > 0 ? (s(), R(C, {
|
|
155
|
-
key: 0,
|
|
156
|
-
dataset: u.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
|
-
}, Lt = ["x", "y", "fill", "font-size"], Et = {
|
|
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: z }) {
|
|
183
|
-
return he(r, "dataset").value.forEach((a) => {
|
|
184
|
-
a.nodes && a.nodes.length > 0 && a.nodes.forEach((C) => {
|
|
185
|
-
C.ancestor = a;
|
|
186
|
-
});
|
|
187
|
-
}), (a, C) => {
|
|
188
|
-
const u = fe("RecursiveLabels", !0);
|
|
189
|
-
return s(!0), d(k, null, M(r.dataset, (n) => (s(), d(k, null, [
|
|
190
|
-
n.polygonPath && n.polygonPath.coordinates ? (s(), d(k, { key: 0 }, [
|
|
191
|
-
(s(!0), d(k, null, M(n.polygonPath.coordinates, (f) => (s(), d("text", {
|
|
192
|
-
x: f.x,
|
|
193
|
-
y: f.y + n.circleRadius * 2,
|
|
194
|
-
fill: r.color,
|
|
195
|
-
"font-size": n.circleRadius,
|
|
196
|
-
"text-anchor": "middle",
|
|
197
|
-
style: { opacity: "0.8", "pointer-events": "none" }
|
|
198
|
-
}, Se(n.name), 9, Lt))), 256)),
|
|
199
|
-
n.nodes && n.nodes.length > 0 ? (s(), R(u, {
|
|
200
|
-
key: 0,
|
|
201
|
-
dataset: n.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 St(r, z = { x: 0, y: 0, width: 100, height: 100 }, H = 1, E) {
|
|
211
|
-
const a = p({ ...z }), C = p(1), u = p(!1), n = p({ x: 0, y: 0 });
|
|
212
|
-
let f = { x: 0, y: 0 }, B = 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 T = (D = v.getScreenCTM()) == null ? void 0 : D.inverse();
|
|
220
|
-
return T ? g.matrixTransform(T) : { x: 0, y: 0 };
|
|
221
|
-
}
|
|
222
|
-
function U(o) {
|
|
223
|
-
u.value = !0;
|
|
224
|
-
const v = x(o.touches ? o.touches[0] : o);
|
|
225
|
-
n.value = { x: v.x, y: v.y }, f = { x: 0, y: 0 };
|
|
226
|
-
}
|
|
227
|
-
function S(o) {
|
|
228
|
-
if (!u.value) return;
|
|
229
|
-
const v = x(o.touches ? o.touches[0] : o);
|
|
230
|
-
let g = v.x - n.value.x, T = v.y - n.value.y;
|
|
231
|
-
Math.abs(g) < 0.3 && Math.abs(T) < 0.3 || (f.x = g * 0.8 + f.x * 0.2, f.y = T * 0.8 + f.y * 0.2, n.value = v, B || (B = requestAnimationFrame(oe)));
|
|
232
|
-
}
|
|
233
|
-
function oe() {
|
|
234
|
-
a.value.x -= f.x, a.value.y -= f.y, B = null;
|
|
235
|
-
}
|
|
236
|
-
function I() {
|
|
237
|
-
u.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 + H / 100);
|
|
247
|
-
le(g, v);
|
|
248
|
-
}
|
|
249
|
-
function le(o, v) {
|
|
250
|
-
i && cancelAnimationFrame(i);
|
|
251
|
-
let g = C.value, T = g * o, D = 0;
|
|
252
|
-
const $ = () => {
|
|
253
|
-
D += 0.02;
|
|
254
|
-
let Z = g + (T - g) * se(D);
|
|
255
|
-
if (D >= 1) {
|
|
256
|
-
C.value = T, i = null;
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
j(Z / g, v), i = requestAnimationFrame($);
|
|
260
|
-
};
|
|
261
|
-
$();
|
|
262
|
-
}
|
|
263
|
-
const se = (o) => o < 0.5 ? 2 * o * o : -1 + (4 - 2 * o) * o;
|
|
264
|
-
function j(o, v) {
|
|
265
|
-
const g = C.value * o, T = g / C.value, D = a.value.width / T, $ = a.value.height / T, Z = (v.x - a.value.x) * (1 - 1 / T), re = (v.y - a.value.y) * (1 - 1 / T);
|
|
266
|
-
a.value.x += Z, a.value.y += re, a.value.width = D, a.value.height = $, C.value = g;
|
|
267
|
-
}
|
|
268
|
-
Ae(J), Ve(Y);
|
|
269
|
-
function J() {
|
|
270
|
-
const o = r.value;
|
|
271
|
-
o && (o.addEventListener("mousedown", U), o.addEventListener("mousemove", S), o.addEventListener("mouseup", I), o.addEventListener("mouseleave", I), 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(), S(v);
|
|
275
|
-
}, { passive: !1 }), o.addEventListener("touchend", I));
|
|
276
|
-
}
|
|
277
|
-
function Y() {
|
|
278
|
-
const o = r.value;
|
|
279
|
-
o && (o.removeEventListener("mousedown", U), o.removeEventListener("mousemove", S), o.removeEventListener("mouseup", I), o.removeEventListener("mouseleave", I), o.removeEventListener("wheel", e), o.removeEventListener("dblclick", X), o.removeEventListener("touchstart", U), o.removeEventListener("touchmove", S), o.removeEventListener("touchend", I));
|
|
280
|
-
}
|
|
281
|
-
return We(() => (E.value ? J() : Y(), () => {
|
|
282
|
-
Y();
|
|
283
|
-
})), { viewBox: a };
|
|
284
|
-
}
|
|
285
|
-
const At = ["id"], Ot = {
|
|
286
|
-
key: 1,
|
|
287
|
-
ref: "noTitle",
|
|
288
|
-
class: "vue-data-ui-no-title-space",
|
|
289
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
290
|
-
}, Dt = {
|
|
291
|
-
key: 2,
|
|
292
|
-
style: "width:100%;background:transparent;"
|
|
293
|
-
}, Rt = ["xmlns", "viewBox"], Ut = ["width", "height"], It = ["id"], Nt = ["stop-color"], _t = ["stop-color"], Mt = {
|
|
294
|
-
key: 5,
|
|
295
|
-
class: "vue-data-ui-watermark"
|
|
296
|
-
}, zt = {
|
|
297
|
-
key: 7,
|
|
298
|
-
ref: "source",
|
|
299
|
-
dir: "auto"
|
|
300
|
-
}, Ht = ["innerHTML"], Bt = {
|
|
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: z, emit: H }) {
|
|
318
|
-
const { vue_ui_molecule: E } = qe(), a = r, C = H, u = _(() => !!a.dataset && a.dataset.length);
|
|
319
|
-
Ae(() => {
|
|
320
|
-
n();
|
|
321
|
-
});
|
|
322
|
-
function n() {
|
|
323
|
-
Qe(a.dataset) && Je({
|
|
324
|
-
componentName: "VueUiMolecule",
|
|
325
|
-
type: "dataset"
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
const f = p(Te()), B = p(null), i = p(!1), x = p(""), U = p(null), S = p(0), oe = p(0), I = p(0), e = _({
|
|
329
|
-
get: () => J(),
|
|
330
|
-
set: (t) => t
|
|
331
|
-
}), { userOptionsVisible: X, setUserOptionsVisibility: le, keepUserOptionState: se } = bt({ config: e.value }), { svgRef: j } = kt({ config: e.value.style.chart.title });
|
|
332
|
-
function J() {
|
|
333
|
-
const t = Ee({
|
|
334
|
-
userConfig: a.config,
|
|
335
|
-
defaultConfig: E
|
|
336
|
-
});
|
|
337
|
-
return t.theme ? {
|
|
338
|
-
...Ee({
|
|
339
|
-
userConfig: et.vue_ui_molecule[t.theme] || a.config,
|
|
340
|
-
defaultConfig: t
|
|
341
|
-
}),
|
|
342
|
-
customPalette: Ke[t.theme] || Fe
|
|
343
|
-
} : t;
|
|
344
|
-
}
|
|
345
|
-
Xe(() => a.config, (t) => {
|
|
346
|
-
e.value = J(), X.value = !e.value.userOptions.showOnChartHover, n(), oe.value += 1, I.value += 1, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
347
|
-
}, { deep: !0 });
|
|
348
|
-
const { isPrinting: Y, isImaging: o, generatePdf: v, generateImage: g } = dt({
|
|
349
|
-
elementId: `cluster_${f.value}`,
|
|
350
|
-
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
351
|
-
options: e.value.userOptions.print
|
|
352
|
-
}), T = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = _(() => tt(e.value.customPalette)), $ = p({
|
|
353
|
-
showTable: e.value.table.show,
|
|
354
|
-
showDataLabels: !0,
|
|
355
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
356
|
-
});
|
|
357
|
-
function Z(t, c = 0) {
|
|
358
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ? Z(t[0].nodes, c + 1) : c;
|
|
359
|
-
}
|
|
360
|
-
function re() {
|
|
361
|
-
const t = Z(a.dataset);
|
|
362
|
-
let c = 100, l = c;
|
|
363
|
-
for (let y = 0; y < t; y += 1)
|
|
364
|
-
c /= 1, l += c;
|
|
365
|
-
return {
|
|
366
|
-
height: l,
|
|
367
|
-
width: l
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
const L = p(re());
|
|
371
|
-
p(`0 0 ${L.value.width} ${L.value.height}`);
|
|
372
|
-
function ye(t, c = { x: -L.value.width / 2.43, y: L.value.height / 2 }, l = L.value.width / 1.1, y = 24, h = 0, F = 0, A = "#BBBBBB", ce = 0) {
|
|
373
|
-
if (!Array.isArray(t) || t.length === 0) return t;
|
|
374
|
-
const Be = nt({
|
|
375
|
-
plot: c,
|
|
376
|
-
radius: l,
|
|
377
|
-
sides: t.length,
|
|
378
|
-
rotation: h
|
|
379
|
-
});
|
|
380
|
-
return t.forEach((O, Ce) => {
|
|
381
|
-
const $e = Be.coordinates[Ce], we = O.color ? (() => {
|
|
382
|
-
let de = Le(O.color);
|
|
383
|
-
return de.startsWith("#") ? de : `#${de}`;
|
|
384
|
-
})() : null;
|
|
385
|
-
let Q;
|
|
386
|
-
we ? Q = we : ce === 0 ? Q = A : ce === 1 ? (Q = D.value[F] || Fe[F] || A, F += 1) : Q = A, O.polygonPath = { coordinates: [$e] }, O.circleRadius = y, O.color = Q, O.uid = Te(), Array.isArray(O.nodes) && O.nodes.length && (O.nodes = ye(
|
|
387
|
-
O.nodes,
|
|
388
|
-
$e,
|
|
389
|
-
l / 2.9,
|
|
390
|
-
y / 2.2,
|
|
391
|
-
h + Math.PI * Ce / O.nodes.length,
|
|
392
|
-
F,
|
|
393
|
-
Q,
|
|
394
|
-
ce + 1
|
|
395
|
-
));
|
|
396
|
-
}), t;
|
|
397
|
-
}
|
|
398
|
-
function Oe(t) {
|
|
399
|
-
const c = /* @__PURE__ */ new Set();
|
|
400
|
-
function l(h) {
|
|
401
|
-
h.forEach((F) => {
|
|
402
|
-
if (!F.color) return;
|
|
403
|
-
let A = F.color;
|
|
404
|
-
/^#?[0-9A-F]{6}$/i.test(A) || (A = Le(A)), A.startsWith("#") || (A = `#${A}`), c.add(A), Array.isArray(F.nodes) && F.nodes.length && l(F.nodes);
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
l(t);
|
|
408
|
-
const y = {};
|
|
409
|
-
return Array.from(c).forEach((h) => {
|
|
410
|
-
const F = h.slice(1);
|
|
411
|
-
y[h] = `gradient_${F}`;
|
|
412
|
-
}), y;
|
|
413
|
-
}
|
|
414
|
-
const De = _(() => Oe(N.value)), N = _(() => {
|
|
415
|
-
const t = ot(a.dataset);
|
|
416
|
-
return ye(t);
|
|
417
|
-
}), ie = p(null);
|
|
418
|
-
function Re(t) {
|
|
419
|
-
ie.value = {
|
|
420
|
-
datapoint: t,
|
|
421
|
-
seriesIndex: -1,
|
|
422
|
-
series: N.value,
|
|
423
|
-
config: e.value
|
|
424
|
-
};
|
|
425
|
-
const c = e.value.style.chart.tooltip.customFormat;
|
|
426
|
-
if (it(c) && ut(() => c({
|
|
427
|
-
seriesIndex: -1,
|
|
428
|
-
datapoint: t,
|
|
429
|
-
series: N.value,
|
|
430
|
-
config: e.value
|
|
431
|
-
})))
|
|
432
|
-
x.value = c({
|
|
433
|
-
seriesIndex: -1,
|
|
434
|
-
// well, ok
|
|
435
|
-
datapoint: t,
|
|
436
|
-
series: N.value,
|
|
437
|
-
config: e.value
|
|
438
|
-
});
|
|
439
|
-
else {
|
|
440
|
-
let l = "";
|
|
441
|
-
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>`;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
const pe = p(null), K = p(null);
|
|
445
|
-
function Ue(t) {
|
|
446
|
-
pe.value = t, t ? (i.value = !0, Re(t), K.value = t.uid) : (i.value = !1, x.value = "", K.value = null);
|
|
447
|
-
}
|
|
448
|
-
function Ie(t) {
|
|
449
|
-
const c = [];
|
|
450
|
-
function l(y) {
|
|
451
|
-
y.forEach((h) => {
|
|
452
|
-
const F = {
|
|
453
|
-
name: h.name,
|
|
454
|
-
details: h.details || "-",
|
|
455
|
-
ancestor: h.ancestor && h.ancestor.name || "-",
|
|
456
|
-
color: h.color || ""
|
|
457
|
-
};
|
|
458
|
-
c.push(F), h.nodes && h.nodes.length > 0 && l(h.nodes, h.name);
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
return l(t), c;
|
|
462
|
-
}
|
|
463
|
-
const Ne = _(() => Ie(N.value)), q = _(() => {
|
|
464
|
-
const t = [
|
|
465
|
-
e.value.table.translations.nodeName,
|
|
466
|
-
e.value.table.translations.details,
|
|
467
|
-
e.value.table.translations.ancestor
|
|
468
|
-
], c = Ne.value.map((h, F) => [
|
|
469
|
-
{
|
|
470
|
-
color: h.color,
|
|
471
|
-
name: h.name
|
|
472
|
-
},
|
|
473
|
-
h.details,
|
|
474
|
-
h.ancestor || ""
|
|
475
|
-
]), l = {
|
|
476
|
-
th: {
|
|
477
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
478
|
-
color: e.value.table.th.color,
|
|
479
|
-
outline: e.value.table.th.outline
|
|
480
|
-
},
|
|
481
|
-
td: {
|
|
482
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
483
|
-
color: e.value.table.td.color,
|
|
484
|
-
outline: e.value.table.td.outline
|
|
485
|
-
},
|
|
486
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
487
|
-
}, y = [
|
|
488
|
-
e.value.table.translations.nodeName,
|
|
489
|
-
e.value.table.translations.details,
|
|
490
|
-
e.value.table.translations.ancestor
|
|
491
|
-
];
|
|
492
|
-
return {
|
|
493
|
-
head: t,
|
|
494
|
-
body: c,
|
|
495
|
-
config: l,
|
|
496
|
-
colNames: y
|
|
497
|
-
};
|
|
498
|
-
});
|
|
499
|
-
function me() {
|
|
500
|
-
Ze(() => {
|
|
501
|
-
const t = q.value.body.map((y, h) => [[y[0].name], [y[1]], [y[2]]]), c = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...q.value.head]]].concat(t), l = at(c);
|
|
502
|
-
rt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
function _e() {
|
|
506
|
-
return N.value;
|
|
507
|
-
}
|
|
508
|
-
const ee = p(!1);
|
|
509
|
-
function Me(t) {
|
|
510
|
-
ee.value = t, S.value += 1;
|
|
511
|
-
}
|
|
512
|
-
function ge() {
|
|
513
|
-
$.value.showTable = !$.value.showTable;
|
|
514
|
-
}
|
|
515
|
-
function be() {
|
|
516
|
-
$.value.showDataLabels = !$.value.showDataLabels;
|
|
517
|
-
}
|
|
518
|
-
function ke() {
|
|
519
|
-
$.value.showTooltip = !$.value.showTooltip;
|
|
520
|
-
}
|
|
521
|
-
const te = p(!1);
|
|
522
|
-
function ue() {
|
|
523
|
-
te.value = !te.value;
|
|
524
|
-
}
|
|
525
|
-
const ze = _(() => !te.value), { viewBox: ne } = St(j, {
|
|
526
|
-
x: 0,
|
|
527
|
-
y: 0,
|
|
528
|
-
width: L.value.width <= 0 ? 10 : L.value.width,
|
|
529
|
-
height: L.value.height <= 0 ? 10 : L.value.height
|
|
530
|
-
}, e.value.style.chart.zoom.speed, ze);
|
|
531
|
-
function He(t) {
|
|
532
|
-
C("selectNode", t);
|
|
533
|
-
}
|
|
534
|
-
return z({
|
|
535
|
-
getData: _e,
|
|
536
|
-
generatePdf: v,
|
|
537
|
-
generateCsv: me,
|
|
538
|
-
generateImage: g,
|
|
539
|
-
toggleTable: ge,
|
|
540
|
-
toggleLabels: be,
|
|
541
|
-
toggleTooltip: ke,
|
|
542
|
-
toggleAnnotator: ue
|
|
543
|
-
}), (t, c) => (s(), d("div", {
|
|
544
|
-
ref_key: "moleculeChart",
|
|
545
|
-
ref: U,
|
|
546
|
-
class: Pe(`vue-ui-molecule ${ee.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
547
|
-
style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
548
|
-
id: `cluster_${f.value}`,
|
|
549
|
-
onMouseleave: c[1] || (c[1] = (l) => {
|
|
550
|
-
pe.value = null, K.value = null, b(le)(!1);
|
|
551
|
-
}),
|
|
552
|
-
onMouseenter: c[2] || (c[2] = () => b(le)(!0))
|
|
553
|
-
}, [
|
|
554
|
-
e.value.userOptions.buttons.annotator ? (s(), R(gt, {
|
|
555
|
-
key: 0,
|
|
556
|
-
svgRef: b(j),
|
|
557
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
558
|
-
color: e.value.style.chart.color,
|
|
559
|
-
active: te.value,
|
|
560
|
-
onClose: ue
|
|
561
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
562
|
-
T.value ? (s(), d("div", Ot, null, 512)) : m("", !0),
|
|
563
|
-
e.value.style.chart.title.text ? (s(), d("div", Dt, [
|
|
564
|
-
(s(), R(ct, {
|
|
565
|
-
key: `title_${oe.value}`,
|
|
566
|
-
config: {
|
|
567
|
-
title: {
|
|
568
|
-
cy: "molecule-div-title",
|
|
569
|
-
...e.value.style.chart.title
|
|
570
|
-
},
|
|
571
|
-
subtitle: {
|
|
572
|
-
cy: "molecule-div-subtitle",
|
|
573
|
-
...e.value.style.chart.title.subtitle
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}, null, 8, ["config"]))
|
|
577
|
-
])) : m("", !0),
|
|
578
|
-
e.value.userOptions.show && u.value && (b(se) || b(X)) ? (s(), R(vt, {
|
|
579
|
-
ref_key: "details",
|
|
580
|
-
ref: B,
|
|
581
|
-
key: `user_options_${S.value}`,
|
|
582
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
583
|
-
color: e.value.style.chart.color,
|
|
584
|
-
isPrinting: b(Y),
|
|
585
|
-
isImaging: b(o),
|
|
586
|
-
uid: f.value,
|
|
587
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
588
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
589
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
590
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
591
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
592
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
593
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
594
|
-
isTooltip: $.value.showTooltip,
|
|
595
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
596
|
-
chartElement: U.value,
|
|
597
|
-
position: e.value.userOptions.position,
|
|
598
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
599
|
-
isAnnotation: te.value,
|
|
600
|
-
onToggleFullscreen: Me,
|
|
601
|
-
onGeneratePdf: b(v),
|
|
602
|
-
onGenerateCsv: me,
|
|
603
|
-
onGenerateImage: b(g),
|
|
604
|
-
onToggleTable: ge,
|
|
605
|
-
onToggleLabels: be,
|
|
606
|
-
onToggleTooltip: ke,
|
|
607
|
-
onToggleAnnotator: ue,
|
|
608
|
-
style: ve({
|
|
609
|
-
visibility: b(se) ? b(X) ? "visible" : "hidden" : "visible"
|
|
610
|
-
})
|
|
611
|
-
}, je({ _: 2 }, [
|
|
612
|
-
t.$slots.menuIcon ? {
|
|
613
|
-
name: "menuIcon",
|
|
614
|
-
fn: P(({ isOpen: l, color: y }) => [
|
|
615
|
-
w(t.$slots, "menuIcon", G(V({ isOpen: l, color: y })), void 0, !0)
|
|
616
|
-
]),
|
|
617
|
-
key: "0"
|
|
618
|
-
} : void 0,
|
|
619
|
-
t.$slots.optionTooltip ? {
|
|
620
|
-
name: "optionTooltip",
|
|
621
|
-
fn: P(() => [
|
|
622
|
-
w(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
623
|
-
]),
|
|
624
|
-
key: "1"
|
|
625
|
-
} : void 0,
|
|
626
|
-
t.$slots.optionPdf ? {
|
|
627
|
-
name: "optionPdf",
|
|
628
|
-
fn: P(() => [
|
|
629
|
-
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
630
|
-
]),
|
|
631
|
-
key: "2"
|
|
632
|
-
} : void 0,
|
|
633
|
-
t.$slots.optionCsv ? {
|
|
634
|
-
name: "optionCsv",
|
|
635
|
-
fn: P(() => [
|
|
636
|
-
w(t.$slots, "optionCsv", {}, void 0, !0)
|
|
637
|
-
]),
|
|
638
|
-
key: "3"
|
|
639
|
-
} : void 0,
|
|
640
|
-
t.$slots.optionImg ? {
|
|
641
|
-
name: "optionImg",
|
|
642
|
-
fn: P(() => [
|
|
643
|
-
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
644
|
-
]),
|
|
645
|
-
key: "4"
|
|
646
|
-
} : void 0,
|
|
647
|
-
t.$slots.optionTable ? {
|
|
648
|
-
name: "optionTable",
|
|
649
|
-
fn: P(() => [
|
|
650
|
-
w(t.$slots, "optionTable", {}, void 0, !0)
|
|
651
|
-
]),
|
|
652
|
-
key: "5"
|
|
653
|
-
} : void 0,
|
|
654
|
-
t.$slots.optionLabels ? {
|
|
655
|
-
name: "optionLabels",
|
|
656
|
-
fn: P(() => [
|
|
657
|
-
w(t.$slots, "optionLabels", {}, void 0, !0)
|
|
658
|
-
]),
|
|
659
|
-
key: "6"
|
|
660
|
-
} : void 0,
|
|
661
|
-
t.$slots.optionFullscreen ? {
|
|
662
|
-
name: "optionFullscreen",
|
|
663
|
-
fn: P(({ toggleFullscreen: l, isFullscreen: y }) => [
|
|
664
|
-
w(t.$slots, "optionFullscreen", G(V({ toggleFullscreen: l, isFullscreen: y })), void 0, !0)
|
|
665
|
-
]),
|
|
666
|
-
key: "7"
|
|
667
|
-
} : void 0,
|
|
668
|
-
t.$slots.optionAnnotator ? {
|
|
669
|
-
name: "optionAnnotator",
|
|
670
|
-
fn: P(({ toggleAnnotator: l, isAnnotator: y }) => [
|
|
671
|
-
w(t.$slots, "optionAnnotator", G(V({ toggleAnnotator: l, isAnnotator: y })), void 0, !0)
|
|
672
|
-
]),
|
|
673
|
-
key: "8"
|
|
674
|
-
} : void 0
|
|
675
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
676
|
-
u.value ? (s(), d("svg", {
|
|
677
|
-
key: 4,
|
|
678
|
-
ref_key: "svgRef",
|
|
679
|
-
ref: j,
|
|
680
|
-
xmlns: b(lt),
|
|
681
|
-
viewBox: `${b(ne).x} ${b(ne).y} ${b(ne).width} ${b(ne).height}`,
|
|
682
|
-
class: Pe({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value }),
|
|
683
|
-
style: ve(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
684
|
-
}, [
|
|
685
|
-
ae(mt),
|
|
686
|
-
t.$slots["chart-background"] ? (s(), d("foreignObject", {
|
|
687
|
-
key: 0,
|
|
688
|
-
x: 0,
|
|
689
|
-
y: 0,
|
|
690
|
-
width: L.value.width <= 0 ? 10 : L.value.width,
|
|
691
|
-
height: L.value.height <= 0 ? 10 : L.value.height,
|
|
692
|
-
style: {
|
|
693
|
-
pointerEvents: "none"
|
|
694
|
-
}
|
|
695
|
-
}, [
|
|
696
|
-
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
697
|
-
], 8, Ut)) : m("", !0),
|
|
698
|
-
W("defs", null, [
|
|
699
|
-
(s(!0), d(k, null, M(Object.keys(De.value), (l) => (s(), d("radialGradient", {
|
|
700
|
-
id: `gradient_${l}`,
|
|
701
|
-
cx: "50%",
|
|
702
|
-
cy: "30%",
|
|
703
|
-
r: "50%",
|
|
704
|
-
fx: "50%",
|
|
705
|
-
fy: "50%"
|
|
706
|
-
}, [
|
|
707
|
-
W("stop", {
|
|
708
|
-
offset: "0%",
|
|
709
|
-
"stop-color": b(st)(l, 0.5)
|
|
710
|
-
}, null, 8, Nt),
|
|
711
|
-
W("stop", {
|
|
712
|
-
offset: "100%",
|
|
713
|
-
"stop-color": l
|
|
714
|
-
}, null, 8, _t)
|
|
715
|
-
], 8, It))), 256))
|
|
716
|
-
]),
|
|
717
|
-
ae(Ft, {
|
|
718
|
-
dataset: N.value,
|
|
719
|
-
color: e.value.style.chart.links.stroke,
|
|
720
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
721
|
-
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
722
|
-
ae(xt, {
|
|
723
|
-
dataset: N.value,
|
|
724
|
-
hoveredUid: K.value,
|
|
725
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
726
|
-
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
727
|
-
onClick: He,
|
|
728
|
-
onHover: Ue
|
|
729
|
-
}, {
|
|
730
|
-
node: P(({ node: l }) => [
|
|
731
|
-
w(t.$slots, "node", G(V({ node: l })), void 0, !0)
|
|
732
|
-
]),
|
|
733
|
-
_: 3
|
|
734
|
-
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
735
|
-
$.value.showDataLabels ? (s(), R(Et, {
|
|
736
|
-
key: 1,
|
|
737
|
-
dataset: N.value,
|
|
738
|
-
color: e.value.style.chart.color,
|
|
739
|
-
hoveredUid: K.value
|
|
740
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0),
|
|
741
|
-
w(t.$slots, "svg", { svg: L.value }, void 0, !0)
|
|
742
|
-
], 14, Rt)) : m("", !0),
|
|
743
|
-
t.$slots.watermark ? (s(), d("div", Mt, [
|
|
744
|
-
w(t.$slots, "watermark", G(V({ isPrinting: b(Y) || b(o) })), void 0, !0)
|
|
745
|
-
])) : m("", !0),
|
|
746
|
-
u.value ? m("", !0) : (s(), R(yt, {
|
|
747
|
-
key: 6,
|
|
748
|
-
config: {
|
|
749
|
-
type: "molecule",
|
|
750
|
-
style: {
|
|
751
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
752
|
-
molecule: {
|
|
753
|
-
color: "#CCCCCC"
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
}, null, 8, ["config"])),
|
|
758
|
-
t.$slots.source ? (s(), d("div", zt, [
|
|
759
|
-
w(t.$slots, "source", {}, void 0, !0)
|
|
760
|
-
], 512)) : m("", !0),
|
|
761
|
-
ae(ft, {
|
|
762
|
-
show: $.value.showTooltip && i.value,
|
|
763
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
764
|
-
color: e.value.style.chart.tooltip.color,
|
|
765
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
766
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
767
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
768
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
769
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
770
|
-
position: e.value.style.chart.tooltip.position,
|
|
771
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
772
|
-
parent: U.value,
|
|
773
|
-
content: x.value,
|
|
774
|
-
isFullscreen: ee.value,
|
|
775
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
776
|
-
}, {
|
|
777
|
-
"tooltip-before": P(() => [
|
|
778
|
-
w(t.$slots, "tooltip-before", G(V({ ...ie.value })), void 0, !0)
|
|
779
|
-
]),
|
|
780
|
-
"tooltip-after": P(() => [
|
|
781
|
-
w(t.$slots, "tooltip-after", G(V({ ...ie.value })), void 0, !0)
|
|
782
|
-
]),
|
|
783
|
-
_: 3
|
|
784
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
785
|
-
u.value ? (s(), R(pt, {
|
|
786
|
-
key: 8,
|
|
787
|
-
hideDetails: "",
|
|
788
|
-
config: {
|
|
789
|
-
open: $.value.showTable,
|
|
790
|
-
maxHeight: 1e4,
|
|
791
|
-
body: {
|
|
792
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
793
|
-
color: e.value.style.chart.color
|
|
794
|
-
},
|
|
795
|
-
head: {
|
|
796
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
797
|
-
color: e.value.style.chart.color
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
}, {
|
|
801
|
-
content: P(() => [
|
|
802
|
-
(s(), R(ht, {
|
|
803
|
-
key: `table_${I.value}`,
|
|
804
|
-
colNames: q.value.colNames,
|
|
805
|
-
head: q.value.head,
|
|
806
|
-
body: q.value.body,
|
|
807
|
-
config: q.value.config,
|
|
808
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
809
|
-
onClose: c[0] || (c[0] = (l) => $.value.showTable = !1)
|
|
810
|
-
}, {
|
|
811
|
-
th: P(({ th: l }) => [
|
|
812
|
-
W("div", {
|
|
813
|
-
innerHTML: l,
|
|
814
|
-
style: { display: "flex", "align-items": "center" }
|
|
815
|
-
}, null, 8, Ht)
|
|
816
|
-
]),
|
|
817
|
-
td: P(({ td: l }) => [
|
|
818
|
-
Ye(Se(l.name || l), 1)
|
|
819
|
-
]),
|
|
820
|
-
_: 1
|
|
821
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
822
|
-
]),
|
|
823
|
-
_: 1
|
|
824
|
-
}, 8, ["config"])) : m("", !0)
|
|
825
|
-
], 46, At));
|
|
826
|
-
}
|
|
827
|
-
}, lo = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-d296dc0b"]]);
|
|
828
|
-
export {
|
|
829
|
-
lo as default
|
|
830
|
-
};
|