vue-data-ui 2.6.48 → 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-DeHvznlG.js → Arrow-Dv70pgNR.js} +1 -1
- package/dist/{Arrow-jh252AWJ.cjs → Arrow-shhEXYsq.cjs} +1 -1
- package/dist/{BaseIcon-DWuVl2GU.cjs → BaseIcon-D6QkKJpU.cjs} +1 -1
- package/dist/{BaseIcon-CZ5jKnR9.js → BaseIcon-ZZc7VY8d.js} +1 -1
- package/dist/{ColorPicker-yVPblb7p.cjs → ColorPicker-CGbS8gKN.cjs} +1 -1
- package/dist/{ColorPicker-BRTL96G8.js → ColorPicker-CUJpXuSS.js} +3 -3
- package/dist/{DataTable-zudSEeN9.cjs → DataTable-CRuMrwb8.cjs} +1 -1
- package/dist/{DataTable-BgfkOnBv.js → DataTable-CmnlvDKM.js} +2 -2
- package/dist/{Legend-cMLffIlh.js → Legend-B3rCxiju.js} +2 -2
- package/dist/{Legend-B0HXtacF.cjs → Legend-KLm00z8t.cjs} +1 -1
- package/dist/{PackageVersion-D4qZn7kl.js → PackageVersion-DavVl5j6.js} +1 -1
- package/dist/{PackageVersion-C6rcQig3.cjs → PackageVersion-DwKk69DU.cjs} +1 -1
- package/dist/{PenAndPaper-BAQpQDGa.js → PenAndPaper-CGAd_cD9.js} +3 -3
- package/dist/{PenAndPaper-DrtaW-dp.cjs → PenAndPaper-hlX2Djxv.cjs} +1 -1
- package/dist/{Shape-DllpVFvn.cjs → Shape-BGYZa31d.cjs} +1 -1
- package/dist/{Shape-CsDyTgir.js → Shape-CWFBkvfP.js} +1 -1
- package/dist/{Slicer-msNNVisO.js → Slicer-BEOWbyKm.js} +2 -2
- package/dist/{Slicer-BlR2F0u2.cjs → Slicer-CAyYbVK-.cjs} +1 -1
- package/dist/{Title-CzrNFvru.js → Title-Ch602IT9.js} +1 -1
- package/dist/{Title-BMptuaY_.cjs → Title-Iy2d-Bd1.cjs} +1 -1
- package/dist/{Tooltip-BjCE_Xgz.js → Tooltip-0IaPNa9t.js} +1 -1
- package/dist/{Tooltip-3cVqgTfY.cjs → Tooltip-DhV-T1A4.cjs} +1 -1
- package/dist/{index-BkXUnRSw.cjs → index-C4TeRZvT.cjs} +2 -2
- package/dist/{index-CFFS5fou.js → index-C7spnOfS.js} +5 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BeNFEsBg.cjs → useNestedProp-BS-4R8zR.cjs} +1 -1
- package/dist/{useNestedProp-WmGLMI7a.js → useNestedProp-BXHzK3EV.js} +1 -1
- package/dist/usePanZoom-CWL8SzZN.js +79 -0
- package/dist/usePanZoom-CppTL3G-.cjs +1 -0
- package/dist/{usePrinter-V42TEKtB.js → usePrinter-BDUIRBP4.js} +1 -1
- package/dist/{usePrinter-pQdLIFcU.cjs → usePrinter-bFMowLOh.cjs} +1 -1
- package/dist/{vue-data-ui-BHqGQu50.js → vue-data-ui-Be5Tgffi.js} +61 -61
- package/dist/{vue-data-ui-CSvoco2Z.cjs → vue-data-ui-CAyq9OfR.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-3HSZgDqW.js → vue-ui-3d-bar-CtOPLOD3.js} +9 -9
- package/dist/{vue-ui-3d-bar-enGIMYF-.cjs → vue-ui-3d-bar-M3DFCjSK.cjs} +1 -1
- package/dist/{vue-ui-accordion-C0Xh8ENO.cjs → vue-ui-accordion-BIbie2vw.cjs} +1 -1
- package/dist/{vue-ui-accordion-68aNqLIG.js → vue-ui-accordion-Bk2aYAD-.js} +3 -3
- package/dist/{vue-ui-age-pyramid-0ARpZkDU.cjs → vue-ui-age-pyramid-CR9x-PgJ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DqO9Yf9E.js → vue-ui-age-pyramid-hyVqCFgO.js} +10 -10
- package/dist/{vue-ui-annotator-DO9HUbCU.cjs → vue-ui-annotator-BXHTI64K.cjs} +1 -1
- package/dist/{vue-ui-annotator-ONpVjIMZ.js → vue-ui-annotator-Qn0uc5GZ.js} +1 -1
- package/dist/{vue-ui-bullet-8GyHi1kK.js → vue-ui-bullet-CrWBMd4n.js} +8 -8
- package/dist/{vue-ui-bullet-DHH7hqHz.cjs → vue-ui-bullet-DM6lx30F.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C77dJq5O.js → vue-ui-candlestick-B2jTfGz7.js} +11 -11
- package/dist/{vue-ui-candlestick-BumYsF-O.cjs → vue-ui-candlestick-DUZlc7tm.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BxFiQRr9.cjs → vue-ui-carousel-table-3QViQ5Bi.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BgdM7pov.js → vue-ui-carousel-table-Cy39XJq8.js} +4 -4
- package/dist/{vue-ui-chestnut-CQkrFvJa.cjs → vue-ui-chestnut-CAEZuh12.cjs} +1 -1
- package/dist/{vue-ui-chestnut-COPZicvP.js → vue-ui-chestnut-Dr3sUQIO.js} +8 -8
- package/dist/{vue-ui-circle-pack-DFr3W9PK.js → vue-ui-circle-pack-C8lFd9HI.js} +9 -9
- package/dist/{vue-ui-circle-pack-orK3sDBb.cjs → vue-ui-circle-pack-DNSLbFV_.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dd01d8dq.cjs → vue-ui-cursor-B4KSNGDd.cjs} +1 -1
- package/dist/{vue-ui-cursor-CqT_0xhF.js → vue-ui-cursor-Bim9FO5p.js} +2 -2
- package/dist/{vue-ui-dashboard-BIY1p9ii.cjs → vue-ui-dashboard-BlMkdmJG.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CwlJ0U8Z.js → vue-ui-dashboard-q2N-lR5R.js} +2 -2
- package/dist/{vue-ui-digits-ejZtkmOF.cjs → vue-ui-digits-BxsLTjn3.cjs} +1 -1
- package/dist/{vue-ui-digits-DWbFzx6q.js → vue-ui-digits-Cs5S9-t4.js} +2 -2
- package/dist/{vue-ui-donut-ZjQOuqdK.cjs → vue-ui-donut-CHAu83aL.cjs} +1 -1
- package/dist/{vue-ui-donut-IqhIH5Hs.js → vue-ui-donut-CsK4bhU9.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DzBOXBNU.cjs → vue-ui-donut-evolution-DIgg0r1H.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DK4Ry8OG.js → vue-ui-donut-evolution-DRIjATMj.js} +11 -11
- package/dist/{vue-ui-dumbbell-DoERaO7T.cjs → vue-ui-dumbbell-Dnd5xBoE.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CxDinKeH.js → vue-ui-dumbbell-RqWpXNMb.js} +10 -10
- package/dist/{vue-ui-flow-BuaBA2J_.cjs → vue-ui-flow-DLkZ_RPK.cjs} +1 -1
- package/dist/{vue-ui-flow-BnE9cqZL.js → vue-ui-flow-Wl9BdRET.js} +9 -9
- package/dist/{vue-ui-funnel-CYtp-5QK.js → vue-ui-funnel-BtEiPtWV.js} +9 -9
- package/dist/{vue-ui-funnel-mn1BtOGd.cjs → vue-ui-funnel-C9kqSvdp.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D4bzB7id.cjs → vue-ui-galaxy-DuHBx10N.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Cb6K-pE8.js → vue-ui-galaxy-Dy0szrMW.js} +11 -11
- package/dist/{vue-ui-gauge-Cs0dyaGc.cjs → vue-ui-gauge-BHTXAsP3.cjs} +1 -1
- package/dist/{vue-ui-gauge-CwefloBc.js → vue-ui-gauge-Bl5tGVHq.js} +7 -7
- package/dist/{vue-ui-gizmo-Breb8hRA.cjs → vue-ui-gizmo-C4BrHDh4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CRp_vQxS.js → vue-ui-gizmo-DMyPBBMU.js} +3 -3
- package/dist/{vue-ui-heatmap-C_64kZde.js → vue-ui-heatmap-TlpTNG5t.js} +10 -10
- package/dist/{vue-ui-heatmap-BMn83Iw6.cjs → vue-ui-heatmap-sFIr2K5p.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D_0c6-QM.cjs → vue-ui-history-plot-DAjdzGlR.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DvIN9tLu.js → vue-ui-history-plot-Dy1j0BxQ.js} +11 -11
- package/dist/{vue-ui-kpi-D6w1Z0ut.js → vue-ui-kpi-BcmSRMqx.js} +3 -3
- package/dist/{vue-ui-kpi-DFXNg3nw.cjs → vue-ui-kpi-ujEXx77P.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B7tT5tbh.js → vue-ui-mini-loader-CjnStv_v.js} +2 -2
- package/dist/{vue-ui-mini-loader-cO3I00Pq.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-ByDpmuxU.cjs → vue-ui-mood-radar-BaysMegc.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cx_8YqzF.js → vue-ui-mood-radar-COoBSKNH.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DHWlR3jy.js → vue-ui-nested-donuts-CtFedcCD.js} +11 -11
- package/dist/{vue-ui-nested-donuts-aI-ze2j2.cjs → vue-ui-nested-donuts-DYBuISa1.cjs} +1 -1
- package/dist/{vue-ui-onion-B6zylASt.js → vue-ui-onion-CEUV1mny.js} +11 -11
- package/dist/{vue-ui-onion-Dynyp18f.cjs → vue-ui-onion-D6ZwBWQg.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-GWh7DX3Y.cjs → vue-ui-parallel-coordinate-plot-BxNT4su_.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CiLB1BKE.js → vue-ui-parallel-coordinate-plot-DYTDHl62.js} +12 -12
- package/dist/{vue-ui-quadrant-D7SEY4Nj.js → vue-ui-quadrant-Bgw63sh8.js} +12 -12
- package/dist/{vue-ui-quadrant-DxaQZoLd.cjs → vue-ui-quadrant-j31KXFQl.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D1NfrJg3.js → vue-ui-quick-chart-DQQj-yff.js} +9 -9
- package/dist/{vue-ui-quick-chart-BxHBJWtp.cjs → vue-ui-quick-chart-oEQhbqjr.cjs} +1 -1
- package/dist/{vue-ui-radar-CoZBZklY.cjs → vue-ui-radar-C5pUYB_x.cjs} +1 -1
- package/dist/{vue-ui-radar-B9DxtK3T.js → vue-ui-radar-D8z1eA3O.js} +12 -12
- package/dist/{vue-ui-rating-DDCXKsJS.js → vue-ui-rating-CEIibBYU.js} +2 -2
- package/dist/{vue-ui-rating-k2SeZNIl.cjs → vue-ui-rating-CGh8TQ5M.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B11wnErY.cjs → vue-ui-relation-circle-Bf6kjYWL.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Be4MpIZt.js → vue-ui-relation-circle-BrIe8bZU.js} +7 -7
- package/dist/{vue-ui-rings-B2IabkNN.js → vue-ui-rings-6l5DQ0_9.js} +12 -12
- package/dist/{vue-ui-rings-CnhnlHk4.cjs → vue-ui-rings-BmSQzToz.cjs} +1 -1
- package/dist/{vue-ui-scatter-uyOOlflr.js → vue-ui-scatter-0geSLTUp.js} +12 -12
- package/dist/{vue-ui-scatter-tU7Sls6T.cjs → vue-ui-scatter-g67ClUSv.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Y8ZFxWOK.js → vue-ui-screenshot-CshpwrmO.js} +1 -1
- package/dist/{vue-ui-screenshot-CQUUa4js.cjs → vue-ui-screenshot-r5tJCW0O.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CE6Rhdwq.js → vue-ui-skeleton-Bn49rVXa.js} +3 -3
- package/dist/{vue-ui-skeleton-BQSnhKj4.cjs → vue-ui-skeleton-D7ijXB6x.cjs} +1 -1
- package/dist/{vue-ui-smiley-CwnOcaDD.js → vue-ui-smiley-CzAtJD1G.js} +2 -2
- package/dist/{vue-ui-smiley-C9qaB_MO.cjs → vue-ui-smiley-HofydNoz.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZMvBWU7T.js → vue-ui-spark-trend-B70DhKVg.js} +5 -5
- package/dist/{vue-ui-spark-trend-xU3yJI0s.cjs → vue-ui-spark-trend-CdTdbj6x.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CyhZr6ox.js → vue-ui-sparkbar-CZ8Nw4fl.js} +4 -4
- package/dist/{vue-ui-sparkbar-DMJyaiJL.cjs → vue-ui-sparkbar-cJ7Wu051.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BAGFZVWH.cjs → vue-ui-sparkgauge-BWNkoMqk.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C59o5PLo.js → vue-ui-sparkgauge-D-VwonfZ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Br2lTOWq.js → vue-ui-sparkhistogram-BK58LMOs.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-hR2cA_1P.cjs → vue-ui-sparkhistogram-hBwVKdOS.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cj9Shaxo.cjs → vue-ui-sparkline-BD4gkpj_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-XjVDZSJW.js → vue-ui-sparkline-DORXFea9.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-D1k-uOj4.js → vue-ui-sparkstackbar-CNu5TNGE.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-hPuv4RZq.cjs → vue-ui-sparkstackbar-ClcY4WWe.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DCW5UenP.js → vue-ui-stackbar--aCaS5x2.js} +13 -13
- package/dist/{vue-ui-stackbar-B3y0c9T0.cjs → vue-ui-stackbar-CkMwpXvU.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DNrU2G2r.cjs → vue-ui-strip-plot-BiFHgg1S.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Ctlsvtbq.js → vue-ui-strip-plot-CFVbMS6X.js} +11 -11
- package/dist/{vue-ui-table-xBKNheLy.js → vue-ui-table-B_3Ilpbe.js} +1 -1
- package/dist/{vue-ui-table-CAK_tKR0.cjs → vue-ui-table-DR255TsX.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BqXr-8TN.js → vue-ui-table-heatmap-BNxAz0s0.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BR07D_Jk.cjs → vue-ui-table-heatmap-GUBFCD5M.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B7B3c3Kb.cjs → vue-ui-table-sparkline-B4tLXnLP.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D_URlvKj.js → vue-ui-table-sparkline-DSOduMZf.js} +5 -5
- package/dist/{vue-ui-thermometer-BR9SzHOJ.cjs → vue-ui-thermometer-D4xuEt1d.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C6PZ9mvq.js → vue-ui-thermometer-DmM-HnTb.js} +7 -7
- package/dist/{vue-ui-timer-Qv1fF4Rq.cjs → vue-ui-timer-CRvBgkAk.cjs} +1 -1
- package/dist/{vue-ui-timer-Bg-ffBSP.js → vue-ui-timer-Cv3Nx66b.js} +5 -5
- package/dist/{vue-ui-tiremarks-CjYT3G69.js → vue-ui-tiremarks-ASWxcVYt.js} +7 -7
- package/dist/{vue-ui-tiremarks-BfQsDoMb.cjs → vue-ui-tiremarks-BCm4J3AS.cjs} +1 -1
- package/dist/{vue-ui-treemap-DYmCTmlo.js → vue-ui-treemap-DkTT9Fpa.js} +12 -12
- package/dist/{vue-ui-treemap-BxdErYLZ.cjs → vue-ui-treemap-K-I2E3e-.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BbSaoHnx.js → vue-ui-vertical-bar-CKAyFHu9.js} +12 -12
- package/dist/{vue-ui-vertical-bar-D6020yMP.cjs → vue-ui-vertical-bar-CYsYkq04.cjs} +1 -1
- package/dist/{vue-ui-waffle-BYHvDjBd.js → vue-ui-waffle-DA1_yNZ7.js} +12 -12
- package/dist/{vue-ui-waffle-DCa7TbcY.cjs → vue-ui-waffle-WHpYY_yA.cjs} +1 -1
- package/dist/{vue-ui-wheel-Dfpw-TGn.cjs → vue-ui-wheel-CWY3hkRC.cjs} +1 -1
- package/dist/{vue-ui-wheel-CXcHXSmc.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-C_ZIwWl7.js → vue-ui-xy-C2OQ78CJ.js} +14 -14
- package/dist/{vue-ui-xy-DOT-R_9J.cjs → vue-ui-xy-CrCJrk6u.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-C_LTt1hr.cjs → vue-ui-xy-canvas-D5iPJqoe.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CW7oyZMn.js → vue-ui-xy-canvas-DvZgi7HV.js} +12 -12
- package/package.json +2 -2
- package/dist/vue-ui-molecule-BsrAlvIA.js +0 -830
- package/dist/vue-ui-molecule-Cgn3O9Zb.cjs +0 -1
- package/dist/vue-ui-word-cloud-BS68DlmA.cjs +0 -1
- package/dist/vue-ui-word-cloud-BaXm2uvH.js +0 -646
|
@@ -0,0 +1,755 @@
|
|
|
1
|
+
import { toRef as ee, resolveComponent as te, createElementBlock as r, openBlock as l, Fragment as p, renderList as U, createCommentVNode as h, createBlock as O, createElementVNode as N, withModifiers as Be, renderSlot as y, mergeProps as Ce, withCtx as m, toDisplayString as Fe, computed as A, onMounted as Ge, ref as g, watch as Ve, unref as f, normalizeStyle as K, normalizeClass as $e, createVNode as j, createSlots as je, normalizeProps as D, guardReactiveProps as I, createTextVNode as We, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as Ye, o as qe, e as Qe, c as we, t as Ze, p as Te, a as Je, b as Ke, P as et, X as tt, l as ot, Q as lt, d as Pe, q as st, r as at, x as rt, y as nt } from "./index-C7spnOfS.js";
|
|
3
|
+
import { _ as it } from "./Title-Ch602IT9.js";
|
|
4
|
+
import { u as ut, U as ct } from "./usePrinter-BDUIRBP4.js";
|
|
5
|
+
import { D as dt } from "./DataTable-CmnlvDKM.js";
|
|
6
|
+
import { _ as vt } from "./Tooltip-0IaPNa9t.js";
|
|
7
|
+
import ht from "./vue-ui-skeleton-Bn49rVXa.js";
|
|
8
|
+
import ft from "./vue-ui-accordion-Bk2aYAD-.js";
|
|
9
|
+
import { u as xe } from "./useNestedProp-BXHzK3EV.js";
|
|
10
|
+
import { _ as pt } from "./PackageVersion-DavVl5j6.js";
|
|
11
|
+
import { P as yt } from "./PenAndPaper-CGAd_cD9.js";
|
|
12
|
+
import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
+
import { u as mt } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
+
import { u as bt } from "./usePanZoom-CWL8SzZN.js";
|
|
15
|
+
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ct = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], $t = ["x", "y", "height", "width", "onClick", "onMouseover"], wt = {
|
|
17
|
+
__name: "RecursiveCircles",
|
|
18
|
+
props: {
|
|
19
|
+
color: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "#000000"
|
|
22
|
+
},
|
|
23
|
+
dataset: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: () => []
|
|
26
|
+
},
|
|
27
|
+
hoveredUid: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
linkColor: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "#CCCCCC"
|
|
34
|
+
},
|
|
35
|
+
stroke: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "#FFFFFF"
|
|
38
|
+
},
|
|
39
|
+
strokeHovered: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "#000000"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["click", "hover"],
|
|
45
|
+
setup(n, { emit: E }) {
|
|
46
|
+
const H = n, T = E;
|
|
47
|
+
function v(s) {
|
|
48
|
+
T("click", s);
|
|
49
|
+
}
|
|
50
|
+
function w(s) {
|
|
51
|
+
T("hover", s);
|
|
52
|
+
}
|
|
53
|
+
return ee(H, "dataset").value.forEach((s) => {
|
|
54
|
+
s.nodes && s.nodes.length > 0 && s.nodes.forEach((k) => {
|
|
55
|
+
k.ancestor = s;
|
|
56
|
+
});
|
|
57
|
+
}), (s, k) => {
|
|
58
|
+
const W = te("RecursiveCircles", !0);
|
|
59
|
+
return l(!0), r(p, null, U(n.dataset, (u) => (l(), r(p, null, [
|
|
60
|
+
u.polygonPath && u.polygonPath.coordinates ? (l(), r(p, { key: 0 }, [
|
|
61
|
+
(l(!0), r(p, null, U(u.polygonPath.coordinates, (P, G) => (l(), r(p, null, [
|
|
62
|
+
N("circle", {
|
|
63
|
+
cx: P.x,
|
|
64
|
+
cy: P.y,
|
|
65
|
+
r: u.circleRadius,
|
|
66
|
+
fill: `url(#gradient_${u.color})`,
|
|
67
|
+
stroke: n.hoveredUid && n.hoveredUid === u.uid ? n.strokeHovered : n.stroke,
|
|
68
|
+
"stroke-width": n.hoveredUid && n.hoveredUid === u.uid ? u.circleRadius / 6 : u.circleRadius / 12,
|
|
69
|
+
style: { cursor: "pointer" },
|
|
70
|
+
onClick: (S) => v(u),
|
|
71
|
+
onMouseover: (S) => w(u),
|
|
72
|
+
onMouseleave: k[0] || (k[0] = (S) => w(null))
|
|
73
|
+
}, null, 40, Ct),
|
|
74
|
+
s.$slots.node ? (l(), r("foreignObject", {
|
|
75
|
+
key: 0,
|
|
76
|
+
x: P.x - u.circleRadius,
|
|
77
|
+
y: P.y - u.circleRadius,
|
|
78
|
+
height: u.circleRadius * 2,
|
|
79
|
+
width: u.circleRadius * 2,
|
|
80
|
+
style: { overflow: "visible" },
|
|
81
|
+
onClick: Be((S) => v(u), ["stop"]),
|
|
82
|
+
onMouseover: (S) => w(u),
|
|
83
|
+
onMouseleave: k[1] || (k[1] = (S) => w(null))
|
|
84
|
+
}, [
|
|
85
|
+
y(s.$slots, "node", Ce({ ref_for: !0 }, { node: u }))
|
|
86
|
+
], 40, $t)) : h("", !0)
|
|
87
|
+
], 64))), 256)),
|
|
88
|
+
u.nodes && u.nodes.length > 0 ? (l(), O(W, {
|
|
89
|
+
key: 0,
|
|
90
|
+
dataset: u.nodes,
|
|
91
|
+
color: n.color,
|
|
92
|
+
stroke: n.stroke,
|
|
93
|
+
strokeHovered: n.strokeHovered,
|
|
94
|
+
hoveredUid: n.hoveredUid,
|
|
95
|
+
onClick: v,
|
|
96
|
+
onHover: w
|
|
97
|
+
}, {
|
|
98
|
+
node: m(({ node: P }) => [
|
|
99
|
+
y(s.$slots, "node", Ce({ ref_for: !0 }, { node: P }))
|
|
100
|
+
]),
|
|
101
|
+
_: 2
|
|
102
|
+
}, 1032, ["dataset", "color", "stroke", "strokeHovered", "hoveredUid"])) : h("", !0)
|
|
103
|
+
], 64)) : h("", !0)
|
|
104
|
+
], 64))), 256);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}, Tt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Pt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], xt = {
|
|
108
|
+
__name: "RecursiveLinks",
|
|
109
|
+
props: {
|
|
110
|
+
dataset: {
|
|
111
|
+
type: Array,
|
|
112
|
+
default: () => []
|
|
113
|
+
},
|
|
114
|
+
color: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "#DDDDDD"
|
|
117
|
+
},
|
|
118
|
+
backgroundColor: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "#FFFFFF"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
setup(n) {
|
|
124
|
+
return ee(n, "dataset").value.forEach((T) => {
|
|
125
|
+
T.nodes && T.nodes.length > 0 && T.nodes.forEach((v) => {
|
|
126
|
+
v.ancestor = T;
|
|
127
|
+
});
|
|
128
|
+
}), (T, v) => {
|
|
129
|
+
const w = te("RecursiveLinks", !0);
|
|
130
|
+
return l(), r(p, null, [
|
|
131
|
+
(l(!0), r(p, null, U(n.dataset, (i) => (l(), r(p, null, [
|
|
132
|
+
i.polygonPath && i.polygonPath.coordinates ? (l(!0), r(p, { key: 0 }, U(i.polygonPath.coordinates, (s, k) => (l(), r(p, null, [
|
|
133
|
+
i.ancestor && i.ancestor.polygonPath ? (l(), r(p, { key: 0 }, [
|
|
134
|
+
N("line", {
|
|
135
|
+
x1: s.x,
|
|
136
|
+
y1: s.y,
|
|
137
|
+
x2: i.ancestor.polygonPath.coordinates[0].x,
|
|
138
|
+
y2: i.ancestor.polygonPath.coordinates[0].y,
|
|
139
|
+
stroke: n.backgroundColor,
|
|
140
|
+
"stroke-width": i.circleRadius / 1.5
|
|
141
|
+
}, null, 8, Tt),
|
|
142
|
+
N("line", {
|
|
143
|
+
x1: s.x,
|
|
144
|
+
y1: s.y,
|
|
145
|
+
x2: i.ancestor.polygonPath.coordinates[0].x,
|
|
146
|
+
y2: i.ancestor.polygonPath.coordinates[0].y,
|
|
147
|
+
stroke: n.color,
|
|
148
|
+
"stroke-width": i.circleRadius / 2
|
|
149
|
+
}, null, 8, Pt)
|
|
150
|
+
], 64)) : h("", !0)
|
|
151
|
+
], 64))), 256)) : h("", !0)
|
|
152
|
+
], 64))), 256)),
|
|
153
|
+
(l(!0), r(p, null, U(n.dataset, (i) => (l(), r(p, null, [
|
|
154
|
+
i.polygonPath && i.polygonPath.coordinates ? (l(), r(p, { key: 0 }, [
|
|
155
|
+
i.nodes && i.nodes.length > 0 ? (l(), O(w, {
|
|
156
|
+
key: 0,
|
|
157
|
+
dataset: i.nodes,
|
|
158
|
+
color: n.color,
|
|
159
|
+
backgroundColor: n.backgroundColor
|
|
160
|
+
}, null, 8, ["dataset", "color", "backgroundColor"])) : h("", !0)
|
|
161
|
+
], 64)) : h("", !0)
|
|
162
|
+
], 64))), 256))
|
|
163
|
+
], 64);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}, Ft = ["x", "y", "fill", "font-size"], Ot = {
|
|
167
|
+
__name: "RecursiveLabels",
|
|
168
|
+
props: {
|
|
169
|
+
color: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: "#000000"
|
|
172
|
+
},
|
|
173
|
+
dataset: {
|
|
174
|
+
type: Array,
|
|
175
|
+
default: () => []
|
|
176
|
+
},
|
|
177
|
+
hoveredUid: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: null
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
emits: ["zoom", "hover"],
|
|
183
|
+
setup(n, { emit: E }) {
|
|
184
|
+
return ee(n, "dataset").value.forEach((v) => {
|
|
185
|
+
v.nodes && v.nodes.length > 0 && v.nodes.forEach((w) => {
|
|
186
|
+
w.ancestor = v;
|
|
187
|
+
});
|
|
188
|
+
}), (v, w) => {
|
|
189
|
+
const i = te("RecursiveLabels", !0);
|
|
190
|
+
return l(!0), r(p, null, U(n.dataset, (s) => (l(), r(p, null, [
|
|
191
|
+
s.polygonPath && s.polygonPath.coordinates ? (l(), r(p, { key: 0 }, [
|
|
192
|
+
(l(!0), r(p, null, U(s.polygonPath.coordinates, (k) => (l(), r("text", {
|
|
193
|
+
x: k.x,
|
|
194
|
+
y: k.y + s.circleRadius * 2,
|
|
195
|
+
fill: n.color,
|
|
196
|
+
"font-size": s.circleRadius,
|
|
197
|
+
"text-anchor": "middle",
|
|
198
|
+
style: { opacity: "0.8", "pointer-events": "none" }
|
|
199
|
+
}, Fe(s.name), 9, Ft))), 256)),
|
|
200
|
+
s.nodes && s.nodes.length > 0 ? (l(), O(i, {
|
|
201
|
+
key: 0,
|
|
202
|
+
dataset: s.nodes,
|
|
203
|
+
color: n.color,
|
|
204
|
+
hoveredUid: n.hoveredUid
|
|
205
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : h("", !0)
|
|
206
|
+
], 64)) : h("", !0)
|
|
207
|
+
], 64))), 256);
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
}, Rt = ["id"], At = {
|
|
211
|
+
key: 1,
|
|
212
|
+
ref: "noTitle",
|
|
213
|
+
class: "vue-data-ui-no-title-space",
|
|
214
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
215
|
+
}, St = {
|
|
216
|
+
key: 2,
|
|
217
|
+
style: "width:100%;background:transparent;"
|
|
218
|
+
}, Ut = ["xmlns", "viewBox"], Dt = ["width", "height"], It = ["id"], Nt = ["stop-color"], Lt = ["stop-color"], _t = {
|
|
219
|
+
key: 5,
|
|
220
|
+
class: "vue-data-ui-watermark"
|
|
221
|
+
}, Et = {
|
|
222
|
+
key: 7,
|
|
223
|
+
ref: "source",
|
|
224
|
+
dir: "auto"
|
|
225
|
+
}, Ht = ["innerHTML"], Mt = {
|
|
226
|
+
__name: "vue-ui-molecule",
|
|
227
|
+
props: {
|
|
228
|
+
config: {
|
|
229
|
+
type: Object,
|
|
230
|
+
default() {
|
|
231
|
+
return {};
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
dataset: {
|
|
235
|
+
type: Array,
|
|
236
|
+
default() {
|
|
237
|
+
return [];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
emits: ["selectNode"],
|
|
242
|
+
setup(n, { expose: E, emit: H }) {
|
|
243
|
+
const { vue_ui_molecule: T } = Ye(), v = n, w = H, i = A(() => !!v.dataset && v.dataset.length);
|
|
244
|
+
Ge(() => {
|
|
245
|
+
s();
|
|
246
|
+
});
|
|
247
|
+
function s() {
|
|
248
|
+
qe(v.dataset) && Qe({
|
|
249
|
+
componentName: "VueUiMolecule",
|
|
250
|
+
type: "dataset"
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
const k = g(we()), W = g(null), u = g(!1), P = g(""), G = g(null), S = g(0), oe = g(0), le = g(0), e = A({
|
|
254
|
+
get: () => re(),
|
|
255
|
+
set: (t) => t
|
|
256
|
+
}), { userOptionsVisible: X, setUserOptionsVisibility: se, keepUserOptionState: ae } = gt({ config: e.value }), { svgRef: Y } = mt({ config: e.value.style.chart.title });
|
|
257
|
+
function re() {
|
|
258
|
+
const t = xe({
|
|
259
|
+
userConfig: v.config,
|
|
260
|
+
defaultConfig: T
|
|
261
|
+
});
|
|
262
|
+
return t.theme ? {
|
|
263
|
+
...xe({
|
|
264
|
+
userConfig: Je.vue_ui_molecule[t.theme] || v.config,
|
|
265
|
+
defaultConfig: t
|
|
266
|
+
}),
|
|
267
|
+
customPalette: Ze[t.theme] || Te
|
|
268
|
+
} : t;
|
|
269
|
+
}
|
|
270
|
+
Ve(() => v.config, (t) => {
|
|
271
|
+
e.value = re(), X.value = !e.value.userOptions.showOnChartHover, s(), oe.value += 1, le.value += 1, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
272
|
+
}, { deep: !0 });
|
|
273
|
+
const { isPrinting: ne, isImaging: ie, generatePdf: ue, generateImage: ce } = ut({
|
|
274
|
+
elementId: `cluster_${k.value}`,
|
|
275
|
+
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
276
|
+
options: e.value.userOptions.print
|
|
277
|
+
}), Oe = A(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = A(() => Ke(e.value.customPalette)), $ = g({
|
|
278
|
+
showTable: e.value.table.show,
|
|
279
|
+
showDataLabels: !0,
|
|
280
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
281
|
+
});
|
|
282
|
+
function de(t, a = 0) {
|
|
283
|
+
return Array.isArray(t) && t.length > 0 && t[0].nodes ? de(t[0].nodes, a + 1) : a;
|
|
284
|
+
}
|
|
285
|
+
function Ae() {
|
|
286
|
+
const t = de(v.dataset);
|
|
287
|
+
let a = 100, o = a;
|
|
288
|
+
for (let d = 0; d < t; d += 1)
|
|
289
|
+
a /= 1, o += a;
|
|
290
|
+
return {
|
|
291
|
+
height: o,
|
|
292
|
+
width: o
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
const C = g(Ae());
|
|
296
|
+
g(`0 0 ${C.value.width} ${C.value.height}`);
|
|
297
|
+
function ve(t, a = { x: -C.value.width / 2.43, y: C.value.height / 2 }, o = C.value.width / 1.1, d = 24, c = 0, b = 0, x = "#BBBBBB", Z = 0) {
|
|
298
|
+
if (!Array.isArray(t) || t.length === 0) return t;
|
|
299
|
+
const ze = lt({
|
|
300
|
+
plot: a,
|
|
301
|
+
radius: o,
|
|
302
|
+
sides: t.length,
|
|
303
|
+
rotation: c
|
|
304
|
+
});
|
|
305
|
+
return t.forEach((F, me) => {
|
|
306
|
+
const be = ze.coordinates[me], ke = F.color ? (() => {
|
|
307
|
+
let J = Pe(F.color);
|
|
308
|
+
return J.startsWith("#") ? J : `#${J}`;
|
|
309
|
+
})() : null;
|
|
310
|
+
let _;
|
|
311
|
+
ke ? _ = ke : Z === 0 ? _ = x : Z === 1 ? (_ = Re.value[b] || Te[b] || x, b += 1) : _ = x, F.polygonPath = { coordinates: [be] }, F.circleRadius = d, F.color = _, F.uid = we(), Array.isArray(F.nodes) && F.nodes.length && (F.nodes = ve(
|
|
312
|
+
F.nodes,
|
|
313
|
+
be,
|
|
314
|
+
o / 2.9,
|
|
315
|
+
d / 2.2,
|
|
316
|
+
c + Math.PI * me / F.nodes.length,
|
|
317
|
+
b,
|
|
318
|
+
_,
|
|
319
|
+
Z + 1
|
|
320
|
+
));
|
|
321
|
+
}), t;
|
|
322
|
+
}
|
|
323
|
+
function Se(t) {
|
|
324
|
+
const a = /* @__PURE__ */ new Set();
|
|
325
|
+
function o(c) {
|
|
326
|
+
c.forEach((b) => {
|
|
327
|
+
if (!b.color) return;
|
|
328
|
+
let x = b.color;
|
|
329
|
+
/^#?[0-9A-F]{6}$/i.test(x) || (x = Pe(x)), x.startsWith("#") || (x = `#${x}`), a.add(x), Array.isArray(b.nodes) && b.nodes.length && o(b.nodes);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
o(t);
|
|
333
|
+
const d = {};
|
|
334
|
+
return Array.from(a).forEach((c) => {
|
|
335
|
+
const b = c.slice(1);
|
|
336
|
+
d[c] = `gradient_${b}`;
|
|
337
|
+
}), d;
|
|
338
|
+
}
|
|
339
|
+
const Ue = A(() => Se(R.value)), R = A(() => {
|
|
340
|
+
const t = et(v.dataset);
|
|
341
|
+
return ve(t);
|
|
342
|
+
}), q = g(null);
|
|
343
|
+
function De(t) {
|
|
344
|
+
q.value = {
|
|
345
|
+
datapoint: t,
|
|
346
|
+
seriesIndex: -1,
|
|
347
|
+
series: R.value,
|
|
348
|
+
config: e.value
|
|
349
|
+
};
|
|
350
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
351
|
+
if (rt(a) && nt(() => a({
|
|
352
|
+
seriesIndex: -1,
|
|
353
|
+
datapoint: t,
|
|
354
|
+
series: R.value,
|
|
355
|
+
config: e.value
|
|
356
|
+
})))
|
|
357
|
+
P.value = a({
|
|
358
|
+
seriesIndex: -1,
|
|
359
|
+
// well, ok
|
|
360
|
+
datapoint: t,
|
|
361
|
+
series: R.value,
|
|
362
|
+
config: e.value
|
|
363
|
+
});
|
|
364
|
+
else {
|
|
365
|
+
let o = "";
|
|
366
|
+
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), P.value = `<div style="font-family:inherit">${o}</div>`;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
const he = g(null), M = g(null);
|
|
370
|
+
function Ie(t) {
|
|
371
|
+
he.value = t, t ? (u.value = !0, De(t), M.value = t.uid) : (u.value = !1, P.value = "", M.value = null);
|
|
372
|
+
}
|
|
373
|
+
function Ne(t) {
|
|
374
|
+
const a = [];
|
|
375
|
+
function o(d) {
|
|
376
|
+
d.forEach((c) => {
|
|
377
|
+
const b = {
|
|
378
|
+
name: c.name,
|
|
379
|
+
details: c.details || "-",
|
|
380
|
+
ancestor: c.ancestor && c.ancestor.name || "-",
|
|
381
|
+
color: c.color || ""
|
|
382
|
+
};
|
|
383
|
+
a.push(b), c.nodes && c.nodes.length > 0 && o(c.nodes, c.name);
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
return o(t), a;
|
|
387
|
+
}
|
|
388
|
+
const Le = A(() => Ne(R.value)), L = A(() => {
|
|
389
|
+
const t = [
|
|
390
|
+
e.value.table.translations.nodeName,
|
|
391
|
+
e.value.table.translations.details,
|
|
392
|
+
e.value.table.translations.ancestor
|
|
393
|
+
], a = Le.value.map((c, b) => [
|
|
394
|
+
{
|
|
395
|
+
color: c.color,
|
|
396
|
+
name: c.name
|
|
397
|
+
},
|
|
398
|
+
c.details,
|
|
399
|
+
c.ancestor || ""
|
|
400
|
+
]), o = {
|
|
401
|
+
th: {
|
|
402
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
403
|
+
color: e.value.table.th.color,
|
|
404
|
+
outline: e.value.table.th.outline
|
|
405
|
+
},
|
|
406
|
+
td: {
|
|
407
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
408
|
+
color: e.value.table.td.color,
|
|
409
|
+
outline: e.value.table.td.outline
|
|
410
|
+
},
|
|
411
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
412
|
+
}, d = [
|
|
413
|
+
e.value.table.translations.nodeName,
|
|
414
|
+
e.value.table.translations.details,
|
|
415
|
+
e.value.table.translations.ancestor
|
|
416
|
+
];
|
|
417
|
+
return {
|
|
418
|
+
head: t,
|
|
419
|
+
body: a,
|
|
420
|
+
config: o,
|
|
421
|
+
colNames: d
|
|
422
|
+
};
|
|
423
|
+
});
|
|
424
|
+
function fe() {
|
|
425
|
+
Xe(() => {
|
|
426
|
+
const t = L.value.body.map((d, c) => [[d[0].name], [d[1]], [d[2]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...L.value.head]]].concat(t), o = st(a);
|
|
427
|
+
at({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
function _e() {
|
|
431
|
+
return R.value;
|
|
432
|
+
}
|
|
433
|
+
const z = g(!1);
|
|
434
|
+
function Ee(t) {
|
|
435
|
+
z.value = t, S.value += 1;
|
|
436
|
+
}
|
|
437
|
+
function pe() {
|
|
438
|
+
$.value.showTable = !$.value.showTable;
|
|
439
|
+
}
|
|
440
|
+
function ye() {
|
|
441
|
+
$.value.showDataLabels = !$.value.showDataLabels;
|
|
442
|
+
}
|
|
443
|
+
function ge() {
|
|
444
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
445
|
+
}
|
|
446
|
+
const B = g(!1);
|
|
447
|
+
function Q() {
|
|
448
|
+
B.value = !B.value;
|
|
449
|
+
}
|
|
450
|
+
const He = A(() => !B.value), { viewBox: V } = bt(Y, {
|
|
451
|
+
x: 0,
|
|
452
|
+
y: 0,
|
|
453
|
+
width: C.value.width <= 0 ? 10 : C.value.width,
|
|
454
|
+
height: C.value.height <= 0 ? 10 : C.value.height
|
|
455
|
+
}, e.value.style.chart.zoom.speed, He);
|
|
456
|
+
function Me(t) {
|
|
457
|
+
w("selectNode", t);
|
|
458
|
+
}
|
|
459
|
+
return E({
|
|
460
|
+
getData: _e,
|
|
461
|
+
generatePdf: ue,
|
|
462
|
+
generateCsv: fe,
|
|
463
|
+
generateImage: ce,
|
|
464
|
+
toggleTable: pe,
|
|
465
|
+
toggleLabels: ye,
|
|
466
|
+
toggleTooltip: ge,
|
|
467
|
+
toggleAnnotator: Q
|
|
468
|
+
}), (t, a) => (l(), r("div", {
|
|
469
|
+
ref_key: "moleculeChart",
|
|
470
|
+
ref: G,
|
|
471
|
+
class: $e(`vue-ui-molecule ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
472
|
+
style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
473
|
+
id: `cluster_${k.value}`,
|
|
474
|
+
onMouseleave: a[1] || (a[1] = (o) => {
|
|
475
|
+
he.value = null, M.value = null, f(se)(!1);
|
|
476
|
+
}),
|
|
477
|
+
onMouseenter: a[2] || (a[2] = () => f(se)(!0))
|
|
478
|
+
}, [
|
|
479
|
+
e.value.userOptions.buttons.annotator ? (l(), O(yt, {
|
|
480
|
+
key: 0,
|
|
481
|
+
svgRef: f(Y),
|
|
482
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
483
|
+
color: e.value.style.chart.color,
|
|
484
|
+
active: B.value,
|
|
485
|
+
onClose: Q
|
|
486
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
487
|
+
Oe.value ? (l(), r("div", At, null, 512)) : h("", !0),
|
|
488
|
+
e.value.style.chart.title.text ? (l(), r("div", St, [
|
|
489
|
+
(l(), O(it, {
|
|
490
|
+
key: `title_${oe.value}`,
|
|
491
|
+
config: {
|
|
492
|
+
title: {
|
|
493
|
+
cy: "molecule-div-title",
|
|
494
|
+
...e.value.style.chart.title
|
|
495
|
+
},
|
|
496
|
+
subtitle: {
|
|
497
|
+
cy: "molecule-div-subtitle",
|
|
498
|
+
...e.value.style.chart.title.subtitle
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}, null, 8, ["config"]))
|
|
502
|
+
])) : h("", !0),
|
|
503
|
+
e.value.userOptions.show && i.value && (f(ae) || f(X)) ? (l(), O(ct, {
|
|
504
|
+
ref_key: "details",
|
|
505
|
+
ref: W,
|
|
506
|
+
key: `user_options_${S.value}`,
|
|
507
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
508
|
+
color: e.value.style.chart.color,
|
|
509
|
+
isPrinting: f(ne),
|
|
510
|
+
isImaging: f(ie),
|
|
511
|
+
uid: k.value,
|
|
512
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
513
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
514
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
515
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
516
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
517
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
518
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
519
|
+
isTooltip: $.value.showTooltip,
|
|
520
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
521
|
+
chartElement: G.value,
|
|
522
|
+
position: e.value.userOptions.position,
|
|
523
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
524
|
+
isAnnotation: B.value,
|
|
525
|
+
onToggleFullscreen: Ee,
|
|
526
|
+
onGeneratePdf: f(ue),
|
|
527
|
+
onGenerateCsv: fe,
|
|
528
|
+
onGenerateImage: f(ce),
|
|
529
|
+
onToggleTable: pe,
|
|
530
|
+
onToggleLabels: ye,
|
|
531
|
+
onToggleTooltip: ge,
|
|
532
|
+
onToggleAnnotator: Q,
|
|
533
|
+
style: K({
|
|
534
|
+
visibility: f(ae) ? f(X) ? "visible" : "hidden" : "visible"
|
|
535
|
+
})
|
|
536
|
+
}, je({ _: 2 }, [
|
|
537
|
+
t.$slots.menuIcon ? {
|
|
538
|
+
name: "menuIcon",
|
|
539
|
+
fn: m(({ isOpen: o, color: d }) => [
|
|
540
|
+
y(t.$slots, "menuIcon", D(I({ isOpen: o, color: d })), void 0, !0)
|
|
541
|
+
]),
|
|
542
|
+
key: "0"
|
|
543
|
+
} : void 0,
|
|
544
|
+
t.$slots.optionTooltip ? {
|
|
545
|
+
name: "optionTooltip",
|
|
546
|
+
fn: m(() => [
|
|
547
|
+
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
548
|
+
]),
|
|
549
|
+
key: "1"
|
|
550
|
+
} : void 0,
|
|
551
|
+
t.$slots.optionPdf ? {
|
|
552
|
+
name: "optionPdf",
|
|
553
|
+
fn: m(() => [
|
|
554
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
555
|
+
]),
|
|
556
|
+
key: "2"
|
|
557
|
+
} : void 0,
|
|
558
|
+
t.$slots.optionCsv ? {
|
|
559
|
+
name: "optionCsv",
|
|
560
|
+
fn: m(() => [
|
|
561
|
+
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
562
|
+
]),
|
|
563
|
+
key: "3"
|
|
564
|
+
} : void 0,
|
|
565
|
+
t.$slots.optionImg ? {
|
|
566
|
+
name: "optionImg",
|
|
567
|
+
fn: m(() => [
|
|
568
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
569
|
+
]),
|
|
570
|
+
key: "4"
|
|
571
|
+
} : void 0,
|
|
572
|
+
t.$slots.optionTable ? {
|
|
573
|
+
name: "optionTable",
|
|
574
|
+
fn: m(() => [
|
|
575
|
+
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
576
|
+
]),
|
|
577
|
+
key: "5"
|
|
578
|
+
} : void 0,
|
|
579
|
+
t.$slots.optionLabels ? {
|
|
580
|
+
name: "optionLabels",
|
|
581
|
+
fn: m(() => [
|
|
582
|
+
y(t.$slots, "optionLabels", {}, void 0, !0)
|
|
583
|
+
]),
|
|
584
|
+
key: "6"
|
|
585
|
+
} : void 0,
|
|
586
|
+
t.$slots.optionFullscreen ? {
|
|
587
|
+
name: "optionFullscreen",
|
|
588
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: d }) => [
|
|
589
|
+
y(t.$slots, "optionFullscreen", D(I({ toggleFullscreen: o, isFullscreen: d })), void 0, !0)
|
|
590
|
+
]),
|
|
591
|
+
key: "7"
|
|
592
|
+
} : void 0,
|
|
593
|
+
t.$slots.optionAnnotator ? {
|
|
594
|
+
name: "optionAnnotator",
|
|
595
|
+
fn: m(({ toggleAnnotator: o, isAnnotator: d }) => [
|
|
596
|
+
y(t.$slots, "optionAnnotator", D(I({ toggleAnnotator: o, isAnnotator: d })), void 0, !0)
|
|
597
|
+
]),
|
|
598
|
+
key: "8"
|
|
599
|
+
} : void 0
|
|
600
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
601
|
+
i.value ? (l(), r("svg", {
|
|
602
|
+
key: 4,
|
|
603
|
+
ref_key: "svgRef",
|
|
604
|
+
ref: Y,
|
|
605
|
+
xmlns: f(tt),
|
|
606
|
+
viewBox: `${f(V).x} ${f(V).y} ${f(V).width} ${f(V).height}`,
|
|
607
|
+
class: $e({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
608
|
+
style: K(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
609
|
+
}, [
|
|
610
|
+
j(pt),
|
|
611
|
+
t.$slots["chart-background"] ? (l(), r("foreignObject", {
|
|
612
|
+
key: 0,
|
|
613
|
+
x: 0,
|
|
614
|
+
y: 0,
|
|
615
|
+
width: C.value.width <= 0 ? 10 : C.value.width,
|
|
616
|
+
height: C.value.height <= 0 ? 10 : C.value.height,
|
|
617
|
+
style: {
|
|
618
|
+
pointerEvents: "none"
|
|
619
|
+
}
|
|
620
|
+
}, [
|
|
621
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
622
|
+
], 8, Dt)) : h("", !0),
|
|
623
|
+
N("defs", null, [
|
|
624
|
+
(l(!0), r(p, null, U(Object.keys(Ue.value), (o) => (l(), r("radialGradient", {
|
|
625
|
+
id: `gradient_${o}`,
|
|
626
|
+
cx: "50%",
|
|
627
|
+
cy: "30%",
|
|
628
|
+
r: "50%",
|
|
629
|
+
fx: "50%",
|
|
630
|
+
fy: "50%"
|
|
631
|
+
}, [
|
|
632
|
+
N("stop", {
|
|
633
|
+
offset: "0%",
|
|
634
|
+
"stop-color": f(ot)(o, 0.5)
|
|
635
|
+
}, null, 8, Nt),
|
|
636
|
+
N("stop", {
|
|
637
|
+
offset: "100%",
|
|
638
|
+
"stop-color": o
|
|
639
|
+
}, null, 8, Lt)
|
|
640
|
+
], 8, It))), 256))
|
|
641
|
+
]),
|
|
642
|
+
j(xt, {
|
|
643
|
+
dataset: R.value,
|
|
644
|
+
color: e.value.style.chart.links.stroke,
|
|
645
|
+
backgroundColor: e.value.style.chart.backgroundColor
|
|
646
|
+
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
647
|
+
j(wt, {
|
|
648
|
+
dataset: R.value,
|
|
649
|
+
hoveredUid: M.value,
|
|
650
|
+
stroke: e.value.style.chart.nodes.stroke,
|
|
651
|
+
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
652
|
+
onClick: Me,
|
|
653
|
+
onHover: Ie
|
|
654
|
+
}, {
|
|
655
|
+
node: m(({ node: o }) => [
|
|
656
|
+
y(t.$slots, "node", D(I({ node: o })), void 0, !0)
|
|
657
|
+
]),
|
|
658
|
+
_: 3
|
|
659
|
+
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
660
|
+
$.value.showDataLabels ? (l(), O(Ot, {
|
|
661
|
+
key: 1,
|
|
662
|
+
dataset: R.value,
|
|
663
|
+
color: e.value.style.chart.color,
|
|
664
|
+
hoveredUid: M.value
|
|
665
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : h("", !0),
|
|
666
|
+
y(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
667
|
+
], 14, Ut)) : h("", !0),
|
|
668
|
+
t.$slots.watermark ? (l(), r("div", _t, [
|
|
669
|
+
y(t.$slots, "watermark", D(I({ isPrinting: f(ne) || f(ie) })), void 0, !0)
|
|
670
|
+
])) : h("", !0),
|
|
671
|
+
i.value ? h("", !0) : (l(), O(ht, {
|
|
672
|
+
key: 6,
|
|
673
|
+
config: {
|
|
674
|
+
type: "molecule",
|
|
675
|
+
style: {
|
|
676
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
677
|
+
molecule: {
|
|
678
|
+
color: "#CCCCCC"
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}, null, 8, ["config"])),
|
|
683
|
+
t.$slots.source ? (l(), r("div", Et, [
|
|
684
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
685
|
+
], 512)) : h("", !0),
|
|
686
|
+
j(vt, {
|
|
687
|
+
show: $.value.showTooltip && u.value,
|
|
688
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
689
|
+
color: e.value.style.chart.tooltip.color,
|
|
690
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
691
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
692
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
693
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
694
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
695
|
+
position: e.value.style.chart.tooltip.position,
|
|
696
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
697
|
+
parent: G.value,
|
|
698
|
+
content: P.value,
|
|
699
|
+
isFullscreen: z.value,
|
|
700
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
701
|
+
}, {
|
|
702
|
+
"tooltip-before": m(() => [
|
|
703
|
+
y(t.$slots, "tooltip-before", D(I({ ...q.value })), void 0, !0)
|
|
704
|
+
]),
|
|
705
|
+
"tooltip-after": m(() => [
|
|
706
|
+
y(t.$slots, "tooltip-after", D(I({ ...q.value })), void 0, !0)
|
|
707
|
+
]),
|
|
708
|
+
_: 3
|
|
709
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
710
|
+
i.value ? (l(), O(ft, {
|
|
711
|
+
key: 8,
|
|
712
|
+
hideDetails: "",
|
|
713
|
+
config: {
|
|
714
|
+
open: $.value.showTable,
|
|
715
|
+
maxHeight: 1e4,
|
|
716
|
+
body: {
|
|
717
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
718
|
+
color: e.value.style.chart.color
|
|
719
|
+
},
|
|
720
|
+
head: {
|
|
721
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
722
|
+
color: e.value.style.chart.color
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}, {
|
|
726
|
+
content: m(() => [
|
|
727
|
+
(l(), O(dt, {
|
|
728
|
+
key: `table_${le.value}`,
|
|
729
|
+
colNames: L.value.colNames,
|
|
730
|
+
head: L.value.head,
|
|
731
|
+
body: L.value.body,
|
|
732
|
+
config: L.value.config,
|
|
733
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
734
|
+
onClose: a[0] || (a[0] = (o) => $.value.showTable = !1)
|
|
735
|
+
}, {
|
|
736
|
+
th: m(({ th: o }) => [
|
|
737
|
+
N("div", {
|
|
738
|
+
innerHTML: o,
|
|
739
|
+
style: { display: "flex", "align-items": "center" }
|
|
740
|
+
}, null, 8, Ht)
|
|
741
|
+
]),
|
|
742
|
+
td: m(({ td: o }) => [
|
|
743
|
+
We(Fe(o.name || o), 1)
|
|
744
|
+
]),
|
|
745
|
+
_: 1
|
|
746
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
747
|
+
]),
|
|
748
|
+
_: 1
|
|
749
|
+
}, 8, ["config"])) : h("", !0)
|
|
750
|
+
], 46, Rt));
|
|
751
|
+
}
|
|
752
|
+
}, oo = /* @__PURE__ */ kt(Mt, [["__scopeId", "data-v-d296dc0b"]]);
|
|
753
|
+
export {
|
|
754
|
+
oo as default
|
|
755
|
+
};
|