vue-data-ui 2.4.1 → 2.4.3
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/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,774 +0,0 @@
|
|
|
1
|
-
import { toRef as re, resolveComponent as ie, openBlock as s, createElementBlock as r, Fragment as y, renderList as z, withModifiers as H, createBlock as F, createCommentVNode as m, createElementVNode as $, toDisplayString as Le, normalizeStyle as ne, createVNode as S, computed as O, onMounted as Ze, ref as f, watch as Je, normalizeClass as Pe, unref as N, createSlots as Ke, withCtx as C, renderSlot as P, normalizeProps as J, guardReactiveProps as K, createTextVNode as Qe, nextTick as Te } from "vue";
|
|
2
|
-
import { u as _e, o as et, e as tt, c as Fe, t as ot, a as lt, p as Re, b as at, X as st, l as nt, O as rt, q as it, r as ut, x as ct, y as dt } from "./index-DDXisDKy.js";
|
|
3
|
-
import { _ as vt } from "./Title-DYNLqCCT.js";
|
|
4
|
-
import { u as ft, U as pt } from "./usePrinter-8ofTb2MJ.js";
|
|
5
|
-
import { D as ht } from "./DataTable-DL2agEJ3.js";
|
|
6
|
-
import { _ as gt } from "./Tooltip-CICAYyQj.js";
|
|
7
|
-
import W from "./BaseIcon-CXDdkPfN.js";
|
|
8
|
-
import yt from "./vue-ui-skeleton-B2sRnIXX.js";
|
|
9
|
-
import mt from "./vue-ui-accordion-D_1fE5EF.js";
|
|
10
|
-
import { u as Se } from "./useNestedProp-S1UXxUgm.js";
|
|
11
|
-
import { _ as bt } from "./PackageVersion-DtnhR89q.js";
|
|
12
|
-
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Ct = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], $t = {
|
|
14
|
-
__name: "RecursiveCircles",
|
|
15
|
-
props: {
|
|
16
|
-
color: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "#000000"
|
|
19
|
-
},
|
|
20
|
-
dataset: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default: () => []
|
|
23
|
-
},
|
|
24
|
-
hoveredUid: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: null
|
|
27
|
-
},
|
|
28
|
-
linkColor: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "#CCCCCC"
|
|
31
|
-
},
|
|
32
|
-
stroke: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "#FFFFFF"
|
|
35
|
-
},
|
|
36
|
-
strokeHovered: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "#000000"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
emits: ["zoom", "hover"],
|
|
42
|
-
setup(a, { emit: k }) {
|
|
43
|
-
const b = a;
|
|
44
|
-
function u(n) {
|
|
45
|
-
k("zoom", n);
|
|
46
|
-
}
|
|
47
|
-
function c(n) {
|
|
48
|
-
k("hover", n);
|
|
49
|
-
}
|
|
50
|
-
return re(b, "dataset").value.forEach((n) => {
|
|
51
|
-
n.nodes && n.nodes.length > 0 && n.nodes.forEach((v) => {
|
|
52
|
-
v.ancestor = n;
|
|
53
|
-
});
|
|
54
|
-
}), (n, v) => {
|
|
55
|
-
const R = ie("RecursiveCircles", !0);
|
|
56
|
-
return s(!0), r(y, null, z(a.dataset, (p) => (s(), r(y, null, [
|
|
57
|
-
p.polygonPath && p.polygonPath.coordinates ? (s(), r(y, { key: 0 }, [
|
|
58
|
-
(s(!0), r(y, null, z(p.polygonPath.coordinates, (B, q) => (s(), r("circle", {
|
|
59
|
-
cx: B.x,
|
|
60
|
-
cy: B.y,
|
|
61
|
-
r: p.circleRadius,
|
|
62
|
-
fill: `url(#gradient_${p.color})`,
|
|
63
|
-
stroke: a.hoveredUid && a.hoveredUid === p.uid ? a.strokeHovered : a.stroke,
|
|
64
|
-
"stroke-width": a.hoveredUid && a.hoveredUid === p.uid ? p.circleRadius / 6 : p.circleRadius / 12,
|
|
65
|
-
style: { cursor: "pointer" },
|
|
66
|
-
onClick: H((D) => u(p), ["stop"]),
|
|
67
|
-
onMouseover: (D) => c(p),
|
|
68
|
-
onMouseleave: v[0] || (v[0] = (D) => c(null))
|
|
69
|
-
}, null, 40, Ct))), 256)),
|
|
70
|
-
p.nodes && p.nodes.length > 0 ? (s(), F(R, {
|
|
71
|
-
key: 0,
|
|
72
|
-
dataset: p.nodes,
|
|
73
|
-
color: a.color,
|
|
74
|
-
stroke: a.stroke,
|
|
75
|
-
strokeHovered: a.strokeHovered,
|
|
76
|
-
hoveredUid: a.hoveredUid,
|
|
77
|
-
onZoom: u,
|
|
78
|
-
onHover: c
|
|
79
|
-
}, null, 8, ["dataset", "color", "stroke", "strokeHovered", "hoveredUid"])) : m("", !0)
|
|
80
|
-
], 64)) : m("", !0)
|
|
81
|
-
], 64))), 256);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
}, xt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Pt = {
|
|
85
|
-
__name: "RecursiveLinks",
|
|
86
|
-
props: {
|
|
87
|
-
dataset: {
|
|
88
|
-
type: Array,
|
|
89
|
-
default: () => []
|
|
90
|
-
},
|
|
91
|
-
color: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: "#DDDDDD"
|
|
94
|
-
},
|
|
95
|
-
backgroundColor: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: "#FFFFFF"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
setup(a) {
|
|
101
|
-
return re(a, "dataset").value.forEach((u) => {
|
|
102
|
-
u.nodes && u.nodes.length > 0 && u.nodes.forEach((c) => {
|
|
103
|
-
c.ancestor = u;
|
|
104
|
-
});
|
|
105
|
-
}), (u, c) => {
|
|
106
|
-
const L = ie("RecursiveLinks", !0);
|
|
107
|
-
return s(), r(y, null, [
|
|
108
|
-
(s(!0), r(y, null, z(a.dataset, (n) => (s(), r(y, null, [
|
|
109
|
-
n.polygonPath && n.polygonPath.coordinates ? (s(!0), r(y, { key: 0 }, z(n.polygonPath.coordinates, (v, R) => (s(), r(y, null, [
|
|
110
|
-
n.ancestor && n.ancestor.polygonPath ? (s(), r(y, { key: 0 }, [
|
|
111
|
-
$("line", {
|
|
112
|
-
x1: v.x,
|
|
113
|
-
y1: v.y,
|
|
114
|
-
x2: n.ancestor.polygonPath.coordinates[0].x,
|
|
115
|
-
y2: n.ancestor.polygonPath.coordinates[0].y,
|
|
116
|
-
stroke: a.backgroundColor,
|
|
117
|
-
"stroke-width": n.circleRadius / 1.5
|
|
118
|
-
}, null, 8, xt),
|
|
119
|
-
$("line", {
|
|
120
|
-
x1: v.x,
|
|
121
|
-
y1: v.y,
|
|
122
|
-
x2: n.ancestor.polygonPath.coordinates[0].x,
|
|
123
|
-
y2: n.ancestor.polygonPath.coordinates[0].y,
|
|
124
|
-
stroke: a.color,
|
|
125
|
-
"stroke-width": n.circleRadius / 2
|
|
126
|
-
}, null, 8, wt)
|
|
127
|
-
], 64)) : m("", !0)
|
|
128
|
-
], 64))), 256)) : m("", !0)
|
|
129
|
-
], 64))), 256)),
|
|
130
|
-
(s(!0), r(y, null, z(a.dataset, (n) => (s(), r(y, null, [
|
|
131
|
-
n.polygonPath && n.polygonPath.coordinates ? (s(), r(y, { key: 0 }, [
|
|
132
|
-
n.nodes && n.nodes.length > 0 ? (s(), F(L, {
|
|
133
|
-
key: 0,
|
|
134
|
-
dataset: n.nodes,
|
|
135
|
-
color: a.color,
|
|
136
|
-
backgroundColor: a.backgroundColor
|
|
137
|
-
}, null, 8, ["dataset", "color", "backgroundColor"])) : m("", !0)
|
|
138
|
-
], 64)) : m("", !0)
|
|
139
|
-
], 64))), 256))
|
|
140
|
-
], 64);
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}, Tt = ["x", "y", "fill", "font-size"], Ft = {
|
|
144
|
-
__name: "RecursiveLabels",
|
|
145
|
-
props: {
|
|
146
|
-
color: {
|
|
147
|
-
type: String,
|
|
148
|
-
default: "#000000"
|
|
149
|
-
},
|
|
150
|
-
dataset: {
|
|
151
|
-
type: Array,
|
|
152
|
-
default: () => []
|
|
153
|
-
},
|
|
154
|
-
hoveredUid: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: null
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
emits: ["zoom", "hover"],
|
|
160
|
-
setup(a, { emit: k }) {
|
|
161
|
-
return re(a, "dataset").value.forEach((c) => {
|
|
162
|
-
c.nodes && c.nodes.length > 0 && c.nodes.forEach((L) => {
|
|
163
|
-
L.ancestor = c;
|
|
164
|
-
});
|
|
165
|
-
}), (c, L) => {
|
|
166
|
-
const n = ie("RecursiveLabels", !0);
|
|
167
|
-
return s(!0), r(y, null, z(a.dataset, (v) => (s(), r(y, null, [
|
|
168
|
-
v.polygonPath && v.polygonPath.coordinates ? (s(), r(y, { key: 0 }, [
|
|
169
|
-
(s(!0), r(y, null, z(v.polygonPath.coordinates, (R) => (s(), r("text", {
|
|
170
|
-
x: R.x,
|
|
171
|
-
y: R.y + v.circleRadius * 2,
|
|
172
|
-
fill: a.color,
|
|
173
|
-
"font-size": v.circleRadius,
|
|
174
|
-
"text-anchor": "middle",
|
|
175
|
-
style: { opacity: "0.8", "pointer-events": "none" }
|
|
176
|
-
}, Le(v.name), 9, Tt))), 256)),
|
|
177
|
-
v.nodes && v.nodes.length > 0 ? (s(), F(n, {
|
|
178
|
-
key: 0,
|
|
179
|
-
dataset: v.nodes,
|
|
180
|
-
color: a.color,
|
|
181
|
-
hoveredUid: a.hoveredUid
|
|
182
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0)
|
|
183
|
-
], 64)) : m("", !0)
|
|
184
|
-
], 64))), 256);
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
}, Rt = { style: { position: "relative", height: "100%", width: "100%" } }, St = {
|
|
188
|
-
__name: "BaseDirectionPad",
|
|
189
|
-
props: {
|
|
190
|
-
color: {
|
|
191
|
-
type: String,
|
|
192
|
-
default: "#FF0000"
|
|
193
|
-
},
|
|
194
|
-
isFullscreen: {
|
|
195
|
-
type: Boolean,
|
|
196
|
-
default: !1
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
emits: ["moveLeft", "moveTop", "moveRight", "moveBottom", "reset"],
|
|
200
|
-
setup(a, { emit: k }) {
|
|
201
|
-
return (b, u) => (s(), r("div", {
|
|
202
|
-
style: ne(`position: ${a.isFullscreen ? "fixed" : "absolute"};bottom:0;right:${a.isFullscreen ? "12px" : "0"};width:80px;height:80px`),
|
|
203
|
-
"data-html2canvas-ignore": ""
|
|
204
|
-
}, [
|
|
205
|
-
$("div", Rt, [
|
|
206
|
-
$("button", {
|
|
207
|
-
onClick: u[0] || (u[0] = H((c) => k("moveLeft"), ["stop"])),
|
|
208
|
-
style: { position: "absolute", left: "0", top: "50%", transform: "translateY(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
209
|
-
}, [
|
|
210
|
-
S(W, {
|
|
211
|
-
stroke: a.color,
|
|
212
|
-
name: "arrowLeft",
|
|
213
|
-
style: { cursor: "pointer" }
|
|
214
|
-
}, null, 8, ["stroke"])
|
|
215
|
-
]),
|
|
216
|
-
$("button", {
|
|
217
|
-
onClick: u[1] || (u[1] = H((c) => k("moveTop"), ["stop"])),
|
|
218
|
-
style: { position: "absolute", top: "0", left: "50%", transform: "translateX(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
219
|
-
}, [
|
|
220
|
-
S(W, {
|
|
221
|
-
stroke: a.color,
|
|
222
|
-
name: "arrowTop",
|
|
223
|
-
style: { cursor: "pointer" }
|
|
224
|
-
}, null, 8, ["stroke"])
|
|
225
|
-
]),
|
|
226
|
-
$("button", {
|
|
227
|
-
onClick: u[2] || (u[2] = H((c) => k("moveRight"), ["stop"])),
|
|
228
|
-
style: { position: "absolute", right: "0", top: "50%", transform: "translateY(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
229
|
-
}, [
|
|
230
|
-
S(W, {
|
|
231
|
-
stroke: a.color,
|
|
232
|
-
name: "arrowRight",
|
|
233
|
-
style: { cursor: "pointer" }
|
|
234
|
-
}, null, 8, ["stroke"])
|
|
235
|
-
]),
|
|
236
|
-
$("button", {
|
|
237
|
-
onClick: u[3] || (u[3] = H((c) => k("moveBottom"), ["stop"])),
|
|
238
|
-
style: { position: "absolute", bottom: "0", left: "50%", transform: "translateX(-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
239
|
-
}, [
|
|
240
|
-
S(W, {
|
|
241
|
-
stroke: a.color,
|
|
242
|
-
name: "arrowBottom",
|
|
243
|
-
style: { cursor: "pointer" }
|
|
244
|
-
}, null, 8, ["stroke"])
|
|
245
|
-
]),
|
|
246
|
-
$("button", {
|
|
247
|
-
onClick: u[4] || (u[4] = H((c) => k("reset"), ["stop"])),
|
|
248
|
-
style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-50%)", height: "24px", width: "24px", padding: "0", background: "transparent", border: "none", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
249
|
-
}, [
|
|
250
|
-
S(W, {
|
|
251
|
-
stroke: a.color,
|
|
252
|
-
name: "close",
|
|
253
|
-
style: { cursor: "pointer" },
|
|
254
|
-
strokeWidth: 2
|
|
255
|
-
}, null, 8, ["stroke"])
|
|
256
|
-
])
|
|
257
|
-
])
|
|
258
|
-
], 4));
|
|
259
|
-
}
|
|
260
|
-
}, Lt = ["id"], Dt = {
|
|
261
|
-
key: 0,
|
|
262
|
-
style: "width:100%;background:transparent;"
|
|
263
|
-
}, It = ["xmlns", "viewBox"], Ut = ["id"], Nt = ["stop-color"], zt = ["stop-color"], Bt = {
|
|
264
|
-
key: 4,
|
|
265
|
-
class: "vue-data-ui-watermark"
|
|
266
|
-
}, Mt = ["innerHTML"], Ot = {
|
|
267
|
-
__name: "vue-ui-molecule",
|
|
268
|
-
props: {
|
|
269
|
-
config: {
|
|
270
|
-
type: Object,
|
|
271
|
-
default() {
|
|
272
|
-
return {};
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
dataset: {
|
|
276
|
-
type: Array,
|
|
277
|
-
default() {
|
|
278
|
-
return [];
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
setup(a, { expose: k }) {
|
|
283
|
-
const b = a, { vue_ui_molecule: u } = _e(), c = O(() => !!b.dataset && b.dataset.length);
|
|
284
|
-
Ze(() => {
|
|
285
|
-
L();
|
|
286
|
-
});
|
|
287
|
-
function L() {
|
|
288
|
-
et(b.dataset) && tt({
|
|
289
|
-
componentName: "VueUiMolecule",
|
|
290
|
-
type: "dataset"
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
const n = f(Fe()), v = f(null), R = f(!1), p = f(""), B = f(null), q = f(null), D = f(!1), x = f(null), ue = f(null), Q = f(0), ce = f(0), de = f(0), t = O({
|
|
294
|
-
get: () => ve(),
|
|
295
|
-
set: (e) => e
|
|
296
|
-
});
|
|
297
|
-
function ve() {
|
|
298
|
-
const e = Se({
|
|
299
|
-
userConfig: b.config,
|
|
300
|
-
defaultConfig: u
|
|
301
|
-
});
|
|
302
|
-
return e.theme ? {
|
|
303
|
-
...Se({
|
|
304
|
-
userConfig: ot.vue_ui_molecule[e.theme] || b.config,
|
|
305
|
-
defaultConfig: e
|
|
306
|
-
}),
|
|
307
|
-
customPalette: lt[e.theme] || Re
|
|
308
|
-
} : e;
|
|
309
|
-
}
|
|
310
|
-
Je(() => b.config, (e) => {
|
|
311
|
-
t.value = ve(), L(), ce.value += 1, de.value += 1;
|
|
312
|
-
}, { deep: !0 });
|
|
313
|
-
const { isPrinting: fe, isImaging: pe, generatePdf: he, generateImage: ge } = ft({
|
|
314
|
-
elementId: `cluster_${n.value}`,
|
|
315
|
-
fileName: t.value.style.chart.title.text || "vue-ui-molecule"
|
|
316
|
-
}), De = O(() => at(t.value.customPalette)), w = f({
|
|
317
|
-
showTable: t.value.table.show,
|
|
318
|
-
showDataLabels: !0,
|
|
319
|
-
showTooltip: t.value.style.chart.tooltip.show
|
|
320
|
-
});
|
|
321
|
-
function ye(e, o = 0) {
|
|
322
|
-
return Array.isArray(e) && e.length > 0 && e[0].nodes ? ye(e[0].nodes, o + 1) : o;
|
|
323
|
-
}
|
|
324
|
-
function Ie() {
|
|
325
|
-
const e = ye(b.dataset);
|
|
326
|
-
let o = 100, l = o;
|
|
327
|
-
for (let d = 0; d < e; d += 1)
|
|
328
|
-
o /= 1, l += o;
|
|
329
|
-
return {
|
|
330
|
-
height: l,
|
|
331
|
-
width: l
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
const I = f(Ie()), _ = f(`0 0 ${I.value.width} ${I.value.height}`);
|
|
335
|
-
function me(e, o = { x: -I.value.width / 2.43, y: I.value.height / 2 }, l = I.value.width / 1.1, d = 24, i = 0, h = 0, j = "#BBBBBB") {
|
|
336
|
-
if (e && e.length > 0) {
|
|
337
|
-
const ae = rt({
|
|
338
|
-
plot: o,
|
|
339
|
-
radius: l,
|
|
340
|
-
sides: e.length,
|
|
341
|
-
rotation: i
|
|
342
|
-
});
|
|
343
|
-
e.forEach((g, M) => {
|
|
344
|
-
const V = ae.coordinates[M];
|
|
345
|
-
let U;
|
|
346
|
-
if (g.ancestor ? g.ancestor.ancestor ? U = g.ancestor.color || j : (U = De.value[h] || Re[h] || j, h += 1) : U = j, g.polygonPath = {
|
|
347
|
-
coordinates: [V]
|
|
348
|
-
}, g.circleRadius = d, g.color = U, g.uid = Fe(), g.nodes && g.nodes.length > 0) {
|
|
349
|
-
const se = !g.ancestor || !g.ancestor.ancestor ? h : 0;
|
|
350
|
-
g.nodes = me(
|
|
351
|
-
g.nodes,
|
|
352
|
-
V,
|
|
353
|
-
l / 2.9,
|
|
354
|
-
d / 2.2,
|
|
355
|
-
i + Math.PI * M / g.nodes.length,
|
|
356
|
-
se,
|
|
357
|
-
U
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
return e;
|
|
363
|
-
}
|
|
364
|
-
function Ue(e) {
|
|
365
|
-
const o = /* @__PURE__ */ new Set();
|
|
366
|
-
function l(i) {
|
|
367
|
-
i.forEach((h) => {
|
|
368
|
-
h.color && !o.has(h.color) && o.add(h.color), h.nodes && h.nodes.length > 0 && l(h.nodes);
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
l(e);
|
|
372
|
-
const d = {};
|
|
373
|
-
return Array.from(o).forEach((i, h) => {
|
|
374
|
-
d[i] = `gradient_${h}`;
|
|
375
|
-
}), d;
|
|
376
|
-
}
|
|
377
|
-
const Ne = O(() => Ue(T.value)), T = O(() => me(b.dataset));
|
|
378
|
-
function ee() {
|
|
379
|
-
D.value = !1, q.value = null, ue.value = null, x.value = null, oe({
|
|
380
|
-
polygonPath: {
|
|
381
|
-
coordinates: [{ x: I.value.width / 2, y: I.value.height / 2 }]
|
|
382
|
-
},
|
|
383
|
-
circleRadius: 24
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
const te = f(null);
|
|
387
|
-
function oe(e) {
|
|
388
|
-
B.value.focus(), Te(() => {
|
|
389
|
-
te.value && cancelAnimationFrame(te.value);
|
|
390
|
-
const o = _.value.split(" "), l = parseFloat(o[0]), d = parseFloat(o[1]), i = parseFloat(o[2]), h = parseFloat(o[3]), { x: j, y: ae } = e.polygonPath.coordinates[0], { circleRadius: g } = e, M = 8.34, V = j - g * M, U = ae - g * M, se = g * M * 2, Ge = g * M * 2, je = Math.sqrt((V - l) ** 2 + (U - d) ** 2), Y = Math.min(1200, Math.max(20, Math.floor(je / 10))), Ve = (V - l) / Y, Ye = (U - d) / Y, We = (se - i) / Y, qe = (Ge - h) / Y;
|
|
391
|
-
let A = 0;
|
|
392
|
-
function we() {
|
|
393
|
-
_.value = `${l + Ve * A} ${d + Ye * A} ${i + We * A} ${h + qe * A}`, A += t.value.style.chart.zoom.speed, A <= Y && (te.value = requestAnimationFrame(we));
|
|
394
|
-
}
|
|
395
|
-
we();
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
function ze(e) {
|
|
399
|
-
q.value === e.uid ? ee() : (q.value = e.uid, ue.value = e, x.value = {
|
|
400
|
-
circleRadius: e.circleRadius,
|
|
401
|
-
polygonPath: {
|
|
402
|
-
coordinates: [{ x: e.polygonPath.coordinates[0].x, y: e.polygonPath.coordinates[0].y }]
|
|
403
|
-
}
|
|
404
|
-
}, oe(e), D.value = e.uid !== T.value[0].uid);
|
|
405
|
-
}
|
|
406
|
-
function Be(e) {
|
|
407
|
-
if (e.target.nodeName !== "circle")
|
|
408
|
-
ee(), D.value = !1;
|
|
409
|
-
else
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
const le = f(null);
|
|
413
|
-
function Me(e) {
|
|
414
|
-
le.value = {
|
|
415
|
-
datapoint: e,
|
|
416
|
-
seriesIndex: -1,
|
|
417
|
-
series: T.value,
|
|
418
|
-
config: t.value
|
|
419
|
-
};
|
|
420
|
-
const o = t.value.style.chart.tooltip.customFormat;
|
|
421
|
-
if (ct(o) && dt(() => o({
|
|
422
|
-
seriesIndex: -1,
|
|
423
|
-
datapoint: e,
|
|
424
|
-
series: T.value,
|
|
425
|
-
config: t.value
|
|
426
|
-
})))
|
|
427
|
-
p.value = o({
|
|
428
|
-
seriesIndex: -1,
|
|
429
|
-
// well, ok
|
|
430
|
-
datapoint: e,
|
|
431
|
-
series: T.value,
|
|
432
|
-
config: t.value
|
|
433
|
-
});
|
|
434
|
-
else {
|
|
435
|
-
let l = "";
|
|
436
|
-
l += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${e.color}">⬤</div><div>${e.name}</div></div>`, e.details && (l += `<div style="width:100%;border-top:1px solid ${t.value.style.chart.tooltip.borderColor};margin-top: 2px">${e.details}</div>`), p.value = `<div style="font-family:inherit">${l}</div>`;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
const be = f(null), X = f(null);
|
|
440
|
-
function Oe(e) {
|
|
441
|
-
be.value = e, e ? (R.value = !0, Me(e), X.value = e.uid) : (R.value = !1, p.value = "", X.value = null);
|
|
442
|
-
}
|
|
443
|
-
function Z(e) {
|
|
444
|
-
e === "right" && (x.value.polygonPath.coordinates[0].x += x.value.circleRadius), e === "left" && (x.value.polygonPath.coordinates[0].x -= x.value.circleRadius), e === "top" && (x.value.polygonPath.coordinates[0].y -= x.value.circleRadius), e === "bottom" && (x.value.polygonPath.coordinates[0].y += x.value.circleRadius), oe(x.value);
|
|
445
|
-
}
|
|
446
|
-
function He(e) {
|
|
447
|
-
const o = [];
|
|
448
|
-
function l(d) {
|
|
449
|
-
d.forEach((i) => {
|
|
450
|
-
const h = {
|
|
451
|
-
name: i.name,
|
|
452
|
-
details: i.details || "-",
|
|
453
|
-
ancestor: i.ancestor && i.ancestor.name || "-",
|
|
454
|
-
color: i.color || ""
|
|
455
|
-
};
|
|
456
|
-
o.push(h), i.nodes && i.nodes.length > 0 && l(i.nodes, i.name);
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
return l(e), o;
|
|
460
|
-
}
|
|
461
|
-
const Ee = O(() => He(T.value)), E = O(() => {
|
|
462
|
-
const e = [
|
|
463
|
-
t.value.table.translations.nodeName,
|
|
464
|
-
t.value.table.translations.details,
|
|
465
|
-
t.value.table.translations.ancestor
|
|
466
|
-
], o = Ee.value.map((i, h) => [
|
|
467
|
-
{
|
|
468
|
-
color: i.color,
|
|
469
|
-
name: i.name
|
|
470
|
-
},
|
|
471
|
-
i.details,
|
|
472
|
-
i.ancestor || ""
|
|
473
|
-
]), l = {
|
|
474
|
-
th: {
|
|
475
|
-
backgroundColor: t.value.table.th.backgroundColor,
|
|
476
|
-
color: t.value.table.th.color,
|
|
477
|
-
outline: t.value.table.th.outline
|
|
478
|
-
},
|
|
479
|
-
td: {
|
|
480
|
-
backgroundColor: t.value.table.td.backgroundColor,
|
|
481
|
-
color: t.value.table.td.color,
|
|
482
|
-
outline: t.value.table.td.outline
|
|
483
|
-
},
|
|
484
|
-
breakpoint: t.value.table.responsiveBreakpoint
|
|
485
|
-
}, d = [
|
|
486
|
-
t.value.table.translations.nodeName,
|
|
487
|
-
t.value.table.translations.details,
|
|
488
|
-
t.value.table.translations.ancestor
|
|
489
|
-
];
|
|
490
|
-
return {
|
|
491
|
-
head: e,
|
|
492
|
-
body: o,
|
|
493
|
-
config: l,
|
|
494
|
-
colNames: d
|
|
495
|
-
};
|
|
496
|
-
});
|
|
497
|
-
function ke() {
|
|
498
|
-
Te(() => {
|
|
499
|
-
const e = E.value.body.map((d, i) => [[d[0].name], [d[1]], [d[2]]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[...E.value.head]]].concat(e), l = it(o);
|
|
500
|
-
ut({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-molecule" });
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
function Ae() {
|
|
504
|
-
return T.value;
|
|
505
|
-
}
|
|
506
|
-
const G = f(!1);
|
|
507
|
-
function Xe(e) {
|
|
508
|
-
G.value = e, Q.value += 1;
|
|
509
|
-
}
|
|
510
|
-
function Ce() {
|
|
511
|
-
w.value.showTable = !w.value.showTable;
|
|
512
|
-
}
|
|
513
|
-
function $e() {
|
|
514
|
-
w.value.showDataLabels = !w.value.showDataLabels;
|
|
515
|
-
}
|
|
516
|
-
function xe() {
|
|
517
|
-
w.value.showTooltip = !w.value.showTooltip;
|
|
518
|
-
}
|
|
519
|
-
return k({
|
|
520
|
-
getData: Ae,
|
|
521
|
-
generatePdf: he,
|
|
522
|
-
generateCsv: ke,
|
|
523
|
-
generateImage: ge,
|
|
524
|
-
toggleTable: Ce,
|
|
525
|
-
toggleLabels: $e,
|
|
526
|
-
toggleTooltip: xe
|
|
527
|
-
}), (e, o) => (s(), r("div", {
|
|
528
|
-
onMouseleave: o[7] || (o[7] = (l) => {
|
|
529
|
-
be.value = null, X.value = null;
|
|
530
|
-
}),
|
|
531
|
-
ref_key: "moleculeChart",
|
|
532
|
-
ref: B,
|
|
533
|
-
class: Pe(`vue-ui-molecule ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
534
|
-
style: ne(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
535
|
-
id: `cluster_${n.value}`
|
|
536
|
-
}, [
|
|
537
|
-
t.value.style.chart.title.text ? (s(), r("div", Dt, [
|
|
538
|
-
(s(), F(vt, {
|
|
539
|
-
key: `title_${ce.value}`,
|
|
540
|
-
config: {
|
|
541
|
-
title: {
|
|
542
|
-
cy: "molecule-div-title",
|
|
543
|
-
...t.value.style.chart.title
|
|
544
|
-
},
|
|
545
|
-
subtitle: {
|
|
546
|
-
cy: "molecule-div-subtitle",
|
|
547
|
-
...t.value.style.chart.title.subtitle
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}, null, 8, ["config"]))
|
|
551
|
-
])) : m("", !0),
|
|
552
|
-
t.value.userOptions.show && c.value ? (s(), F(pt, {
|
|
553
|
-
ref_key: "details",
|
|
554
|
-
ref: v,
|
|
555
|
-
key: `user_options_${Q.value}`,
|
|
556
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
557
|
-
color: t.value.style.chart.color,
|
|
558
|
-
isPrinting: N(fe),
|
|
559
|
-
isImaging: N(pe),
|
|
560
|
-
uid: n.value,
|
|
561
|
-
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
562
|
-
hasPdf: t.value.userOptions.buttons.pdf,
|
|
563
|
-
hasXls: t.value.userOptions.buttons.csv,
|
|
564
|
-
hasImg: t.value.userOptions.buttons.img,
|
|
565
|
-
hasTable: t.value.userOptions.buttons.table,
|
|
566
|
-
hasLabel: t.value.userOptions.buttons.labels,
|
|
567
|
-
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
568
|
-
isTooltip: w.value.showTooltip,
|
|
569
|
-
titles: { ...t.value.userOptions.buttonTitles },
|
|
570
|
-
chartElement: B.value,
|
|
571
|
-
position: t.value.userOptions.position,
|
|
572
|
-
onToggleFullscreen: Xe,
|
|
573
|
-
onGeneratePdf: N(he),
|
|
574
|
-
onGenerateCsv: ke,
|
|
575
|
-
onGenerateImage: N(ge),
|
|
576
|
-
onToggleTable: Ce,
|
|
577
|
-
onToggleLabels: $e,
|
|
578
|
-
onToggleTooltip: xe
|
|
579
|
-
}, Ke({ _: 2 }, [
|
|
580
|
-
e.$slots.optionTooltip ? {
|
|
581
|
-
name: "optionTooltip",
|
|
582
|
-
fn: C(() => [
|
|
583
|
-
P(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
584
|
-
]),
|
|
585
|
-
key: "0"
|
|
586
|
-
} : void 0,
|
|
587
|
-
e.$slots.optionPdf ? {
|
|
588
|
-
name: "optionPdf",
|
|
589
|
-
fn: C(() => [
|
|
590
|
-
P(e.$slots, "optionPdf", {}, void 0, !0)
|
|
591
|
-
]),
|
|
592
|
-
key: "1"
|
|
593
|
-
} : void 0,
|
|
594
|
-
e.$slots.optionCsv ? {
|
|
595
|
-
name: "optionCsv",
|
|
596
|
-
fn: C(() => [
|
|
597
|
-
P(e.$slots, "optionCsv", {}, void 0, !0)
|
|
598
|
-
]),
|
|
599
|
-
key: "2"
|
|
600
|
-
} : void 0,
|
|
601
|
-
e.$slots.optionImg ? {
|
|
602
|
-
name: "optionImg",
|
|
603
|
-
fn: C(() => [
|
|
604
|
-
P(e.$slots, "optionImg", {}, void 0, !0)
|
|
605
|
-
]),
|
|
606
|
-
key: "3"
|
|
607
|
-
} : void 0,
|
|
608
|
-
e.$slots.optionTable ? {
|
|
609
|
-
name: "optionTable",
|
|
610
|
-
fn: C(() => [
|
|
611
|
-
P(e.$slots, "optionTable", {}, void 0, !0)
|
|
612
|
-
]),
|
|
613
|
-
key: "4"
|
|
614
|
-
} : void 0,
|
|
615
|
-
e.$slots.optionLabels ? {
|
|
616
|
-
name: "optionLabels",
|
|
617
|
-
fn: C(() => [
|
|
618
|
-
P(e.$slots, "optionLabels", {}, void 0, !0)
|
|
619
|
-
]),
|
|
620
|
-
key: "5"
|
|
621
|
-
} : void 0,
|
|
622
|
-
e.$slots.optionFullscreen ? {
|
|
623
|
-
name: "optionFullscreen",
|
|
624
|
-
fn: C(({ toggleFullscreen: l, isFullscreen: d }) => [
|
|
625
|
-
P(e.$slots, "optionFullscreen", J(K({ toggleFullscreen: l, isFullscreen: d })), void 0, !0)
|
|
626
|
-
]),
|
|
627
|
-
key: "6"
|
|
628
|
-
} : void 0
|
|
629
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
|
|
630
|
-
c.value ? (s(), r("svg", {
|
|
631
|
-
key: 2,
|
|
632
|
-
xmlns: N(st),
|
|
633
|
-
viewBox: _.value,
|
|
634
|
-
class: Pe({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
635
|
-
style: ne(`overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
|
|
636
|
-
onClick: o[0] || (o[0] = H((l) => Be(l), ["stop"]))
|
|
637
|
-
}, [
|
|
638
|
-
S(bt),
|
|
639
|
-
$("defs", null, [
|
|
640
|
-
(s(!0), r(y, null, z(Object.keys(Ne.value), (l) => (s(), r("radialGradient", {
|
|
641
|
-
id: `gradient_${l}`,
|
|
642
|
-
cx: "50%",
|
|
643
|
-
cy: "30%",
|
|
644
|
-
r: "50%",
|
|
645
|
-
fx: "50%",
|
|
646
|
-
fy: "50%"
|
|
647
|
-
}, [
|
|
648
|
-
$("stop", {
|
|
649
|
-
offset: "0%",
|
|
650
|
-
"stop-color": N(nt)(l, 0.5)
|
|
651
|
-
}, null, 8, Nt),
|
|
652
|
-
$("stop", {
|
|
653
|
-
offset: "100%",
|
|
654
|
-
"stop-color": l
|
|
655
|
-
}, null, 8, zt)
|
|
656
|
-
], 8, Ut))), 256))
|
|
657
|
-
]),
|
|
658
|
-
S(Pt, {
|
|
659
|
-
dataset: T.value,
|
|
660
|
-
color: t.value.style.chart.links.stroke,
|
|
661
|
-
backgroundColor: t.value.style.chart.backgroundColor
|
|
662
|
-
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
663
|
-
S($t, {
|
|
664
|
-
dataset: T.value,
|
|
665
|
-
hoveredUid: X.value,
|
|
666
|
-
stroke: t.value.style.chart.nodes.stroke,
|
|
667
|
-
strokeHovered: t.value.style.chart.nodes.strokeHovered,
|
|
668
|
-
onZoom: ze,
|
|
669
|
-
onHover: Oe
|
|
670
|
-
}, null, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
671
|
-
w.value.showDataLabels ? (s(), F(Ft, {
|
|
672
|
-
key: 0,
|
|
673
|
-
dataset: T.value,
|
|
674
|
-
color: t.value.style.chart.color,
|
|
675
|
-
hoveredUid: X.value
|
|
676
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : m("", !0),
|
|
677
|
-
P(e.$slots, "svg", { svg: I.value }, void 0, !0)
|
|
678
|
-
], 14, It)) : m("", !0),
|
|
679
|
-
D.value ? (s(), F(St, {
|
|
680
|
-
key: `direction_pad_${Q.value}`,
|
|
681
|
-
color: t.value.style.chart.color,
|
|
682
|
-
isFullscreen: G.value,
|
|
683
|
-
onMoveLeft: o[1] || (o[1] = (l) => Z("left")),
|
|
684
|
-
onMoveRight: o[2] || (o[2] = (l) => Z("right")),
|
|
685
|
-
onMoveTop: o[3] || (o[3] = (l) => Z("top")),
|
|
686
|
-
onMoveBottom: o[4] || (o[4] = (l) => Z("bottom")),
|
|
687
|
-
onReset: o[5] || (o[5] = (l) => {
|
|
688
|
-
ee(), D.value = !1;
|
|
689
|
-
})
|
|
690
|
-
}, null, 8, ["color", "isFullscreen"])) : m("", !0),
|
|
691
|
-
e.$slots.watermark ? (s(), r("div", Bt, [
|
|
692
|
-
P(e.$slots, "watermark", J(K({ isPrinting: N(fe) || N(pe) })), void 0, !0)
|
|
693
|
-
])) : m("", !0),
|
|
694
|
-
c.value ? m("", !0) : (s(), F(yt, {
|
|
695
|
-
key: 5,
|
|
696
|
-
config: {
|
|
697
|
-
type: "molecule",
|
|
698
|
-
style: {
|
|
699
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
700
|
-
molecule: {
|
|
701
|
-
color: "#CCCCCC"
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
}, null, 8, ["config"])),
|
|
706
|
-
S(gt, {
|
|
707
|
-
show: w.value.showTooltip && R.value,
|
|
708
|
-
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
709
|
-
color: t.value.style.chart.tooltip.color,
|
|
710
|
-
borderRadius: t.value.style.chart.tooltip.borderRadius,
|
|
711
|
-
borderColor: t.value.style.chart.tooltip.borderColor,
|
|
712
|
-
borderWidth: t.value.style.chart.tooltip.borderWidth,
|
|
713
|
-
fontSize: t.value.style.chart.tooltip.fontSize,
|
|
714
|
-
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
715
|
-
position: t.value.style.chart.tooltip.position,
|
|
716
|
-
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
717
|
-
parent: B.value,
|
|
718
|
-
content: p.value,
|
|
719
|
-
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
720
|
-
}, {
|
|
721
|
-
"tooltip-before": C(() => [
|
|
722
|
-
P(e.$slots, "tooltip-before", J(K({ ...le.value })), void 0, !0)
|
|
723
|
-
]),
|
|
724
|
-
"tooltip-after": C(() => [
|
|
725
|
-
P(e.$slots, "tooltip-after", J(K({ ...le.value })), void 0, !0)
|
|
726
|
-
]),
|
|
727
|
-
_: 3
|
|
728
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
729
|
-
c.value ? (s(), F(mt, {
|
|
730
|
-
key: 6,
|
|
731
|
-
hideDetails: "",
|
|
732
|
-
config: {
|
|
733
|
-
open: w.value.showTable,
|
|
734
|
-
maxHeight: 1e4,
|
|
735
|
-
body: {
|
|
736
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
737
|
-
color: t.value.style.chart.color
|
|
738
|
-
},
|
|
739
|
-
head: {
|
|
740
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
741
|
-
color: t.value.style.chart.color
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}, {
|
|
745
|
-
content: C(() => [
|
|
746
|
-
(s(), F(ht, {
|
|
747
|
-
key: `table_${de.value}`,
|
|
748
|
-
colNames: E.value.colNames,
|
|
749
|
-
head: E.value.head,
|
|
750
|
-
body: E.value.body,
|
|
751
|
-
config: E.value.config,
|
|
752
|
-
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
753
|
-
onClose: o[6] || (o[6] = (l) => w.value.showTable = !1)
|
|
754
|
-
}, {
|
|
755
|
-
th: C(({ th: l }) => [
|
|
756
|
-
$("div", {
|
|
757
|
-
innerHTML: l,
|
|
758
|
-
style: { display: "flex", "align-items": "center" }
|
|
759
|
-
}, null, 8, Mt)
|
|
760
|
-
]),
|
|
761
|
-
td: C(({ td: l }) => [
|
|
762
|
-
Qe(Le(l.name || l), 1)
|
|
763
|
-
]),
|
|
764
|
-
_: 1
|
|
765
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
766
|
-
]),
|
|
767
|
-
_: 1
|
|
768
|
-
}, 8, ["config"])) : m("", !0)
|
|
769
|
-
], 46, Lt));
|
|
770
|
-
}
|
|
771
|
-
}, Kt = /* @__PURE__ */ kt(Ot, [["__scopeId", "data-v-aafaabe0"]]);
|
|
772
|
-
export {
|
|
773
|
-
Kt as default
|
|
774
|
-
};
|