vue-data-ui 2.10.11 → 2.11.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/README.md +7 -1
- package/dist/{Arrow-B0YRTzCj.js → Arrow-BSsIs5Aj.js} +1 -1
- package/dist/{Arrow-C6ETniRR.cjs → Arrow-BfdnOsct.cjs} +1 -1
- package/dist/{BaseIcon-V0HD2AAD.js → BaseIcon-BPehVcsN.js} +4 -3
- package/dist/{BaseIcon-CObkWSlF.cjs → BaseIcon-dtfVrHa7.cjs} +1 -1
- package/dist/{ColorPicker-BMSFl1XZ.js → ColorPicker-ByaQGf5i.js} +3 -3
- package/dist/{ColorPicker-Czm9Mx_k.cjs → ColorPicker-C-nhrZ-J.cjs} +1 -1
- package/dist/{DataTable-CVSajw4G.js → DataTable-BdekL1Hc.js} +55 -53
- package/dist/DataTable-pT39kn0W.cjs +1 -0
- package/dist/{Legend-DUZ-tBhF.cjs → Legend-C8PTNFsH.cjs} +1 -1
- package/dist/{Legend-B61dtd8W.js → Legend-HckkoJBL.js} +2 -2
- package/dist/PackageVersion-B6nxekEz.cjs +1 -0
- package/dist/{PackageVersion-DqsC6J9R.js → PackageVersion-BPCzY_N5.js} +1 -1
- package/dist/{PenAndPaper-Bqjmruhh.js → PenAndPaper-B3KDT2of.js} +3 -3
- package/dist/{PenAndPaper-CU0ABvzv.cjs → PenAndPaper-BC1d2zL5.cjs} +1 -1
- package/dist/{Shape-CWSam3QO.js → Shape-B0OqBXWl.js} +1 -1
- package/dist/{Shape-x9QWqySR.cjs → Shape-Cr-Qt6IO.cjs} +1 -1
- package/dist/{Slicer-VF0Mi4Gp.cjs → Slicer-BWr1nt8v.cjs} +1 -1
- package/dist/{Slicer-BbMNT2AI.js → Slicer-BXBqgQau.js} +3 -3
- package/dist/{Title-CxubvuEh.js → Title-Cq5kGGhS.js} +1 -1
- package/dist/{Title-LLvOAGEi.cjs → Title-GpO-QNhg.cjs} +1 -1
- package/dist/{Tooltip-C0W6IWVK.js → Tooltip-CxzDtoXn.js} +1 -1
- package/dist/{Tooltip-B1xW8AQT.cjs → Tooltip-eL97y6Ym.cjs} +1 -1
- package/dist/documentation/installation.md +1 -0
- package/dist/{dom-to-png-CNF-s1oi.cjs → dom-to-png-BeN7LHfC.cjs} +1 -1
- package/dist/{dom-to-png-D2P_vWEM.js → dom-to-png-G_nLlvER.js} +1 -1
- package/dist/{img-BDamDFQb.cjs → img-08K-Su3g.cjs} +1 -1
- package/dist/{img-DacIcr83.js → img-BzMFujbd.js} +1 -1
- package/dist/{index-CO-5OgQA.js → index-BMcwUsiG.js} +541 -457
- package/dist/{index-B7zOq_yO.cjs → index-CG-euAJp.cjs} +5 -5
- package/dist/{pdf-DflC6mtT.js → pdf-BJNBeUWV.js} +1 -1
- package/dist/{pdf-D6wHFpvv.cjs → pdf-achyloML.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +92 -5
- package/dist/types/vue-data-ui.d.ts +92 -5
- package/dist/{useNestedProp-DUH233CH.cjs → useNestedProp-DYDoE86w.cjs} +1 -1
- package/dist/{useNestedProp-D8sa_wYF.js → useNestedProp-DwQWwt5e.js} +1 -1
- package/dist/{usePrinter-u4erwqXt.cjs → usePrinter-BBqldIVF.cjs} +1 -1
- package/dist/{usePrinter-DldU0tBx.js → usePrinter-BpCNa5RW.js} +3 -3
- package/dist/{useResponsive-DQmBAoBf.cjs → useResponsive-BBkmXXaa.cjs} +1 -1
- package/dist/{useResponsive-Cw4oZ8sQ.js → useResponsive-JZ9xq-JV.js} +4 -1
- package/dist/vue-data-ui-BTz28Upr.cjs +9 -0
- package/dist/{vue-data-ui-DaG_fJyV.js → vue-data-ui-DXciuF6V.js} +115 -107
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +60 -59
- package/dist/{vue-ui-3d-bar-1L_FJakQ.cjs → vue-ui-3d-bar-Cv0XQSLU.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CKaPvMis.js → vue-ui-3d-bar-D-x0k_IG.js} +9 -9
- package/dist/{vue-ui-accordion-RRHvINsj.js → vue-ui-accordion-DKw3ZQgh.js} +3 -3
- package/dist/{vue-ui-accordion-DkOSgEPp.cjs → vue-ui-accordion-dJGHfrMl.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BsfpBP5o.js → vue-ui-age-pyramid-BKOh2L3c.js} +11 -11
- package/dist/{vue-ui-age-pyramid-BX5nAmcR.cjs → vue-ui-age-pyramid-DzQ9EYPB.cjs} +1 -1
- package/dist/{vue-ui-annotator-CSSRY4KB.js → vue-ui-annotator-BSGf2Uh1.js} +2 -2
- package/dist/{vue-ui-annotator-BCfRHpTL.cjs → vue-ui-annotator-DJDY5xOf.cjs} +1 -1
- package/dist/{vue-ui-bullet-BuoFM_Qt.cjs → vue-ui-bullet-BHaeMobd.cjs} +1 -1
- package/dist/{vue-ui-bullet-wcXiBQsu.js → vue-ui-bullet-CJLZA5Lf.js} +8 -8
- package/dist/{vue-ui-candlestick-DLPBk-z0.js → vue-ui-candlestick-BLqrtK2S.js} +12 -12
- package/dist/{vue-ui-candlestick-D_UWn-gv.cjs → vue-ui-candlestick-D5aSctEq.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-B-FxYow7.js → vue-ui-carousel-table-CvDic9rq.js} +4 -4
- package/dist/{vue-ui-carousel-table-DZWUAetO.cjs → vue-ui-carousel-table-DoQSiBlh.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ds2IXobn.cjs → vue-ui-chestnut-BW9_1uRo.cjs} +1 -1
- package/dist/{vue-ui-chestnut-D_GtQRUL.js → vue-ui-chestnut-Co3ZtHYQ.js} +8 -8
- package/dist/vue-ui-chord-CUREQYhU.cjs +16 -0
- package/dist/vue-ui-chord-XU2pSfEx.js +924 -0
- package/dist/{vue-ui-circle-pack-DZjwCJfn.cjs → vue-ui-circle-pack-Bdtr6z4Z.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-IFKy_EXs.js → vue-ui-circle-pack-DpbWAZFC.js} +10 -10
- package/dist/{vue-ui-cursor-CFcWzQ_a.cjs → vue-ui-cursor-BAMt5dcz.cjs} +1 -1
- package/dist/{vue-ui-cursor-CpXWkh96.js → vue-ui-cursor-CuvyoiLa.js} +2 -2
- package/dist/{vue-ui-dashboard-BMVLKe5Z.cjs → vue-ui-dashboard-Bvrpw4EQ.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CLULzCgo.js → vue-ui-dashboard-_LJuvqRE.js} +62 -62
- package/dist/{vue-ui-digits-VMbRXMfP.cjs → vue-ui-digits-CGzSArOS.cjs} +1 -1
- package/dist/{vue-ui-digits-B3J16TA3.js → vue-ui-digits-CeLZoNoA.js} +2 -2
- package/dist/{vue-ui-donut-BjGbzLsC.cjs → vue-ui-donut-BV_QLVp2.cjs} +1 -1
- package/dist/{vue-ui-donut-DUAbkhZV.js → vue-ui-donut-BegwljuG.js} +13 -13
- package/dist/{vue-ui-donut-evolution-BlMjAI3c.js → vue-ui-donut-evolution-CQ-1_Xak.js} +11 -11
- package/dist/{vue-ui-donut-evolution-B2MMB7lY.cjs → vue-ui-donut-evolution-euIDGiH3.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DgizrVYM.cjs → vue-ui-dumbbell-BO0h5wGp.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B_88Pzkq.js → vue-ui-dumbbell-CPylAaR8.js} +11 -11
- package/dist/{vue-ui-flow-CGYd2Iko.js → vue-ui-flow-B8fyDK8A.js} +11 -11
- package/dist/{vue-ui-flow-v5zjc5i3.cjs → vue-ui-flow-DWiA9yFS.cjs} +1 -1
- package/dist/{vue-ui-funnel-D8Ql3Fu9.js → vue-ui-funnel-BAa1OwMy.js} +10 -10
- package/dist/{vue-ui-funnel-AOnxjmTY.cjs → vue-ui-funnel-yRS_OJcF.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C5XKP863.js → vue-ui-galaxy-DEZ-rfXE.js} +11 -11
- package/dist/{vue-ui-galaxy-qIl1Sp2I.cjs → vue-ui-galaxy-DF41DbY7.cjs} +1 -1
- package/dist/{vue-ui-gauge-BzmlwkZO.cjs → vue-ui-gauge-CCGMpnvM.cjs} +1 -1
- package/dist/{vue-ui-gauge-CnS0ZVac.js → vue-ui-gauge-k3ejBVZj.js} +8 -8
- package/dist/{vue-ui-gizmo-oMF4Uxgv.cjs → vue-ui-gizmo-DGRDcoNW.cjs} +1 -1
- package/dist/{vue-ui-gizmo-w7f-RuqD.js → vue-ui-gizmo-uSaL0tgk.js} +3 -3
- package/dist/{vue-ui-heatmap-DdbtuK1j.js → vue-ui-heatmap-WgeuA6rb.js} +10 -10
- package/dist/{vue-ui-heatmap-CjUYm6Y8.cjs → vue-ui-heatmap-dKn60iwF.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CPEbWJv-.cjs → vue-ui-history-plot-Dnb4txKX.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DJ5eSSra.js → vue-ui-history-plot-jBlXPR4I.js} +12 -12
- package/dist/{vue-ui-kpi-BBpWvss7.cjs → vue-ui-kpi-C13Zgi4k.cjs} +1 -1
- package/dist/{vue-ui-kpi-T-hxtGRX.js → vue-ui-kpi-N3ugHMNs.js} +3 -3
- package/dist/{vue-ui-mini-loader-CnEXcdzr.cjs → vue-ui-mini-loader-BnblpH8s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BUdcns7l.js → vue-ui-mini-loader-BukHpIuC.js} +2 -2
- package/dist/{vue-ui-molecule-9zI34I22.js → vue-ui-molecule-DQADG59C.js} +11 -11
- package/dist/{vue-ui-molecule-CXda1TRy.cjs → vue-ui-molecule-zkjb68lX.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-3FsJtJ1q.js → vue-ui-mood-radar-BdpZWnM1.js} +11 -11
- package/dist/{vue-ui-mood-radar-DCz7WxHl.cjs → vue-ui-mood-radar-oO1NjJsj.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-D5-RAGOC.js → vue-ui-nested-donuts-6EYydl-l.js} +12 -12
- package/dist/{vue-ui-nested-donuts-CQHTFClA.cjs → vue-ui-nested-donuts-8PBCRUKI.cjs} +1 -1
- package/dist/{vue-ui-onion-C3tsgeYq.cjs → vue-ui-onion-D0Y-pJox.cjs} +1 -1
- package/dist/{vue-ui-onion-DyNY3aLe.js → vue-ui-onion-Dqfii-y3.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-tnKZr6bC.cjs → vue-ui-parallel-coordinate-plot-cETB0SSp.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-D3C5xDkx.js → vue-ui-parallel-coordinate-plot-yUVuNHbG.js} +13 -13
- package/dist/{vue-ui-quadrant-Oyf18Bj4.js → vue-ui-quadrant-Bk24QzXW.js} +13 -13
- package/dist/{vue-ui-quadrant-CF7YSzrp.cjs → vue-ui-quadrant-C2Z9igq-.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Y8-adLxE.cjs → vue-ui-quick-chart-BNYO7nMz.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-TbLTi-d3.js → vue-ui-quick-chart-BTBzFVVt.js} +10 -10
- package/dist/{vue-ui-radar-BvNWx4a8.cjs → vue-ui-radar-DpJ6BjWE.cjs} +1 -1
- package/dist/{vue-ui-radar-BfHQxjpG.js → vue-ui-radar-d5WGxBWb.js} +13 -13
- package/dist/{vue-ui-rating-BDM0NHP6.js → vue-ui-rating-DHP9cn7v.js} +2 -2
- package/dist/{vue-ui-rating-DitReQ9n.cjs → vue-ui-rating-DlpuX8_4.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DcZyVpqG.cjs → vue-ui-relation-circle-C9r2L_By.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DpwaksSx.js → vue-ui-relation-circle-DFFnj0G-.js} +8 -8
- package/dist/{vue-ui-ridgeline-BXEg60Vj.js → vue-ui-ridgeline-B6SmiN8e.js} +13 -13
- package/dist/{vue-ui-ridgeline-DgzMstgJ.cjs → vue-ui-ridgeline-CWcW0CKH.cjs} +1 -1
- package/dist/{vue-ui-rings-Bsvdt8jo.js → vue-ui-rings-07YzKS3V.js} +13 -13
- package/dist/{vue-ui-rings-DqF707hp.cjs → vue-ui-rings-BZ6huPcE.cjs} +1 -1
- package/dist/{vue-ui-scatter-D9sIS4Dp.cjs → vue-ui-scatter-DYRw6p9i.cjs} +1 -1
- package/dist/{vue-ui-scatter-qQ-795VY.js → vue-ui-scatter-DZZtUBuf.js} +13 -13
- package/dist/{vue-ui-skeleton-BeEBd4CC.js → vue-ui-skeleton-BoZyBfQF.js} +503 -467
- package/dist/vue-ui-skeleton-LYOlEoA_.cjs +41 -0
- package/dist/{vue-ui-smiley-B3JFedE5.cjs → vue-ui-smiley-C9Au0iXl.cjs} +1 -1
- package/dist/{vue-ui-smiley-Bba04Gln.js → vue-ui-smiley-D3A8OqM8.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB2vKJ0m.js → vue-ui-spark-trend-BfR_RtZy.js} +5 -5
- package/dist/{vue-ui-spark-trend-DiZvQzSb.cjs → vue-ui-spark-trend-DnoxMeF3.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B1pBe2b4.cjs → vue-ui-sparkbar-CAHDM61K.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DjsNBWGs.js → vue-ui-sparkbar-CJUkmhnj.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BJ0vTnKL.js → vue-ui-sparkgauge-CXt_UXa0.js} +4 -4
- package/dist/{vue-ui-sparkgauge-ByMA0D5w.cjs → vue-ui-sparkgauge-DngkG6ub.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-WxGpd0TA.cjs → vue-ui-sparkhistogram-BGSXZdYJ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cv-hyUbF.js → vue-ui-sparkhistogram-e1KLP3lx.js} +5 -5
- package/dist/{vue-ui-sparkline-DPlkEVV6.cjs → vue-ui-sparkline-4HHF_g27.cjs} +1 -1
- package/dist/{vue-ui-sparkline-tnMT43CD.js → vue-ui-sparkline-C1c0gnoE.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BFkweUWm.cjs → vue-ui-sparkstackbar-CYI8Q-A7.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-8WSy0M8S.js → vue-ui-sparkstackbar-WWHBMDoc.js} +5 -5
- package/dist/{vue-ui-stackbar-BfkOVox7.js → vue-ui-stackbar-Dswh_YhD.js} +14 -14
- package/dist/{vue-ui-stackbar-BFgWt2oG.cjs → vue-ui-stackbar-LROMB081.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BKsixkUU.cjs → vue-ui-strip-plot-BHLCEMtE.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CN06Oh8m.js → vue-ui-strip-plot-CkTMHioN.js} +12 -12
- package/dist/{vue-ui-table-B-sy0kOZ.js → vue-ui-table-BQLFbWJu.js} +3 -3
- package/dist/{vue-ui-table-o_zUZsUz.cjs → vue-ui-table-ClPvrWk1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Dur8rhk6.js → vue-ui-table-heatmap-Cq0Ayqw9.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BidbeObz.cjs → vue-ui-table-heatmap-CzXQ_Jyj.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BeWSYBle.cjs → vue-ui-table-sparkline-CrWRDJhv.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Ccw_ekS8.js → vue-ui-table-sparkline-kApN7-VK.js} +5 -5
- package/dist/{vue-ui-thermometer-BOw4FvGD.js → vue-ui-thermometer-BqtB3WF_.js} +7 -7
- package/dist/{vue-ui-thermometer-Ds9lWEE_.cjs → vue-ui-thermometer-DYo8ZTAM.cjs} +1 -1
- package/dist/{vue-ui-timer-B2gMYwCj.js → vue-ui-timer-DcHNiJK0.js} +6 -6
- package/dist/{vue-ui-timer-OAHpNcTb.cjs → vue-ui-timer-DprIzsAY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B8dltsA4.cjs → vue-ui-tiremarks-Dpn0SavO.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BlfDeAAZ.js → vue-ui-tiremarks-fEn67LmT.js} +7 -7
- package/dist/{vue-ui-treemap-BjWTRcbW.cjs → vue-ui-treemap-C8uX5Ilw.cjs} +1 -1
- package/dist/{vue-ui-treemap-meoOt_AQ.js → vue-ui-treemap-Cq5QKrAX.js} +13 -13
- package/dist/{vue-ui-vertical-bar-8EaYa2I2.js → vue-ui-vertical-bar-BctpxL75.js} +13 -13
- package/dist/{vue-ui-vertical-bar-kRBUbvs6.cjs → vue-ui-vertical-bar-Bj-tNmvd.cjs} +1 -1
- package/dist/{vue-ui-waffle-XM92kEwZ.cjs → vue-ui-waffle-B3XGM76l.cjs} +1 -1
- package/dist/{vue-ui-waffle-ThNptuVQ.js → vue-ui-waffle-inmP6xJa.js} +13 -13
- package/dist/{vue-ui-wheel-B_DSO7Ko.js → vue-ui-wheel-BExyiteC.js} +8 -8
- package/dist/{vue-ui-wheel-DMiRno4r.cjs → vue-ui-wheel-D4quM69U.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-tsIW_o0M.js → vue-ui-word-cloud-CO6OX7uL.js} +11 -11
- package/dist/{vue-ui-word-cloud-8-CU7ACz.cjs → vue-ui-word-cloud-D3O3LDR0.cjs} +1 -1
- package/dist/{vue-ui-world-C-TO7n_r.cjs → vue-ui-world-BWv7KvDY.cjs} +1 -1
- package/dist/{vue-ui-world-DizUMTdP.js → vue-ui-world-j_aAVyB8.js} +11 -11
- package/dist/{vue-ui-xy-CKNq6i3B.js → vue-ui-xy-BLnXnpd-.js} +16 -16
- package/dist/{vue-ui-xy-CHcCU9pB.cjs → vue-ui-xy-CnLejNy1.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DgLV6VWJ.js → vue-ui-xy-canvas-2hhjtxZN.js} +13 -13
- package/dist/{vue-ui-xy-canvas-Cmax9zNa.cjs → vue-ui-xy-canvas-t3XI0Z_d.cjs} +1 -1
- package/package.json +1 -1
- package/dist/DataTable-DypMcnH2.cjs +0 -1
- package/dist/PackageVersion-BS7Jybcw.cjs +0 -1
- package/dist/vue-data-ui-C3o_PUJM.cjs +0 -9
- package/dist/vue-ui-skeleton-Br6xw2QW.cjs +0 -41
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
import { useCssVars as pt, ref as d, computed as x, watch as mt, onMounted as Ge, onBeforeUnmount as Ve, createElementBlock as i, openBlock as n, unref as k, normalizeStyle as N, normalizeClass as X, createBlock as j, createCommentVNode as v, renderSlot as $, createElementVNode as O, createSlots as We, withCtx as P, normalizeProps as oe, guardReactiveProps as le, withModifiers as qe, createVNode as de, Fragment as z, renderList as U, mergeProps as yt, toDisplayString as V, createTextVNode as kt, nextTick as $t } from "vue";
|
|
2
|
+
import { u as wt, c as ve, t as Ct, p as se, a as Mt, o as xt, e as He, g as _t, b as It, d as At, X as Pt, G as Tt, q as St, r as Bt, i as Ot, f as Lt } from "./index-BMcwUsiG.js";
|
|
3
|
+
import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Qe } from "./useNestedProp-DwQWwt5e.js";
|
|
5
|
+
import { u as Nt } from "./useChartAccessibility-BWojgys7.js";
|
|
6
|
+
import { _ as zt } from "./Title-Cq5kGGhS.js";
|
|
7
|
+
import { _ as Ft } from "./PackageVersion-BPCzY_N5.js";
|
|
8
|
+
import { _ as Xt } from "./PenAndPaper-B3KDT2of.js";
|
|
9
|
+
import Rt from "./BaseIcon-BPehVcsN.js";
|
|
10
|
+
import { u as Dt, U as jt } from "./usePrinter-BpCNa5RW.js";
|
|
11
|
+
import { L as Ut } from "./Legend-HckkoJBL.js";
|
|
12
|
+
import { _ as Yt } from "./Shape-B0OqBXWl.js";
|
|
13
|
+
import { D as Gt } from "./DataTable-BdekL1Hc.js";
|
|
14
|
+
import Vt from "./vue-ui-accordion-DKw3ZQgh.js";
|
|
15
|
+
import Wt from "./vue-ui-skeleton-BoZyBfQF.js";
|
|
16
|
+
import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
|
|
17
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill", "stroke", "stroke-width"], ca = ["d", "fill", "stroke", "stroke-width"], da = { key: 0 }, va = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ga = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ba = { key: 1 }, pa = ["font-size", "font-weight", "fill"], ma = ["href"], ya = ["transform", "text-anchor", "font-size", "font-weight", "fill"], ka = {
|
|
19
|
+
key: 5,
|
|
20
|
+
class: "vue-data-ui-watermark"
|
|
21
|
+
}, $a = ["onClick"], wa = {
|
|
22
|
+
key: 8,
|
|
23
|
+
"data-dom-to-png-ignore": "",
|
|
24
|
+
class: "reset-wrapper"
|
|
25
|
+
}, Ca = { style: { "text-align": "right", width: "100%" } }, Ma = {
|
|
26
|
+
__name: "vue-ui-chord",
|
|
27
|
+
props: {
|
|
28
|
+
dataset: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default() {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
config: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default() {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
42
|
+
setup(Ze, { expose: Je, emit: Ke }) {
|
|
43
|
+
pt((t) => ({
|
|
44
|
+
"7187d07a": t.slicerColor
|
|
45
|
+
}));
|
|
46
|
+
const { vue_ui_chord: et } = wt(), g = Ze, Z = Ke, L = d(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = d(ve()), w = d(null), p = d(null), f = d(null), he = d(0), Y = d(null), fe = d(null), ge = d(null), be = d(null), pe = d(null), me = d(0), ye = d(0), ke = d(0), G = d(!1), ne = d(null), a = x({
|
|
47
|
+
get: () => Ie(),
|
|
48
|
+
set: (t) => t
|
|
49
|
+
}), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: a.value }), { svgRef: W } = Nt({ config: a.value.style.chart.title }), { isPrinting: Ce, isImaging: Me, generatePdf: xe, generateImage: _e } = Dt({
|
|
50
|
+
elementId: `chord_${T.value}`,
|
|
51
|
+
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
52
|
+
options: a.value.userOptions.print
|
|
53
|
+
}), q = d({
|
|
54
|
+
showTable: a.value.table.show
|
|
55
|
+
});
|
|
56
|
+
function Ie() {
|
|
57
|
+
const t = Qe({
|
|
58
|
+
userConfig: g.config,
|
|
59
|
+
defaultConfig: et
|
|
60
|
+
});
|
|
61
|
+
return t.theme ? {
|
|
62
|
+
...Qe({
|
|
63
|
+
userConfig: Mt.vue_ui_chord[t.theme] || g.config,
|
|
64
|
+
defaultConfig: t
|
|
65
|
+
}),
|
|
66
|
+
customPalette: Ct[t.theme] || se
|
|
67
|
+
} : t;
|
|
68
|
+
}
|
|
69
|
+
mt(() => g.config, (t) => {
|
|
70
|
+
a.value = Ie(), re.value = !a.value.userOptions.showOnChartHover, Ae(), me.value += 1, ye.value += 1, ke.value += 1, I.value = a.value.initialRotation, q.value.showTable = a.value.table.show;
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
function Ae() {
|
|
73
|
+
if (xt(g.dataset) ? He({
|
|
74
|
+
componentName: "VueUiChord",
|
|
75
|
+
type: "dataset"
|
|
76
|
+
}) : _t({
|
|
77
|
+
datasetObject: g.dataset,
|
|
78
|
+
requiredAttributes: ["matrix"]
|
|
79
|
+
}).forEach((t) => {
|
|
80
|
+
L.value = !1, He({
|
|
81
|
+
componentName: "VueUiChord",
|
|
82
|
+
type: "datasetAttribute",
|
|
83
|
+
property: t
|
|
84
|
+
});
|
|
85
|
+
}), L.value && Pe(), a.value.responsive) {
|
|
86
|
+
const t = Y.value.parentNode, o = qt(() => {
|
|
87
|
+
const { width: l, height: u, heightNoTitle: s, heightSource: r, heightTitle: h, heightLegend: C } = Ht({
|
|
88
|
+
chart: Y.value,
|
|
89
|
+
title: a.value.style.chart.title.text ? fe.value : null,
|
|
90
|
+
legend: a.value.style.chart.legend.show ? ge.value : null,
|
|
91
|
+
source: be.value,
|
|
92
|
+
noTitle: pe.value
|
|
93
|
+
}), M = h + C + r + s;
|
|
94
|
+
l < u ? Y.value.style.width = "100%" : (Y.value.style.height = "100%", W.value.style.height = `calc(100% - ${M}px)`);
|
|
95
|
+
}, 100), e = new ResizeObserver(o);
|
|
96
|
+
e.observe(t), ne.value = e, o();
|
|
97
|
+
}
|
|
98
|
+
Te.value = setTimeout(() => {
|
|
99
|
+
G.value = !0;
|
|
100
|
+
}, 500);
|
|
101
|
+
}
|
|
102
|
+
function Pe() {
|
|
103
|
+
g.dataset.matrix.length < 2 && (console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
104
|
+
|
|
105
|
+
matrix:[
|
|
106
|
+
[1, 1],
|
|
107
|
+
[1, 1]
|
|
108
|
+
]`), L.value = !1), g.dataset.matrix.forEach((t, o) => {
|
|
109
|
+
t.length !== g.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${g.dataset.matrix.length}
|
|
110
|
+
|
|
111
|
+
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${g.dataset.matrix.length})`), L.value = !1);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const Te = d(null);
|
|
115
|
+
Ge(() => {
|
|
116
|
+
Ae();
|
|
117
|
+
});
|
|
118
|
+
const S = d({
|
|
119
|
+
height: 600,
|
|
120
|
+
width: 600
|
|
121
|
+
}), tt = x(() => a.value.userOptions.show && !a.value.style.chart.title.text), at = x(() => It(a.value.customPalette)), b = x(() => ({
|
|
122
|
+
inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
123
|
+
outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
124
|
+
})), ot = x(() => a.value.style.chart.arcs.padAngle / 100), m = x(() => L.value ? {
|
|
125
|
+
matrix: g.dataset.matrix ?? [[0]],
|
|
126
|
+
labels: g.dataset.labels ?? [""],
|
|
127
|
+
colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => At(t)) : g.dataset.matrix.map((t, o) => at.value[o] || se[o] || se[o % se.length])
|
|
128
|
+
} : {
|
|
129
|
+
matrix: [],
|
|
130
|
+
labels: [],
|
|
131
|
+
colors: []
|
|
132
|
+
});
|
|
133
|
+
function lt(t, o) {
|
|
134
|
+
const e = t.length, l = b.value.inner, u = new Array(e).fill(0);
|
|
135
|
+
let s = 0;
|
|
136
|
+
for (let c = 0; c < e; c += 1)
|
|
137
|
+
for (let y = 0; y < e; y += 1)
|
|
138
|
+
u[c] += t[c][y], s += t[c][y];
|
|
139
|
+
const r = (2 * Math.PI - o * e) / s, h = [];
|
|
140
|
+
let C = 0;
|
|
141
|
+
for (let c = 0; c < e; c += 1) {
|
|
142
|
+
const y = C, A = y + u[c] * r;
|
|
143
|
+
h.push({
|
|
144
|
+
index: c,
|
|
145
|
+
pattern: `pattern_${T.value}_${c}`,
|
|
146
|
+
startAngle: y,
|
|
147
|
+
endAngle: A,
|
|
148
|
+
name: m.value.labels[c],
|
|
149
|
+
id: ve(),
|
|
150
|
+
color: m.value.colors[c]
|
|
151
|
+
}), C = A + o;
|
|
152
|
+
}
|
|
153
|
+
const M = [];
|
|
154
|
+
for (let c = 0; c < e; c += 1) {
|
|
155
|
+
const y = t[c].map((B, F) => ({ j: F, v: B }));
|
|
156
|
+
y.sort((B, F) => F.v - B.v);
|
|
157
|
+
let A = h[c].startAngle;
|
|
158
|
+
for (const { j: B, v: F } of y) {
|
|
159
|
+
const D = A, Q = D + F * r;
|
|
160
|
+
M.push({
|
|
161
|
+
index: c,
|
|
162
|
+
subIndex: B,
|
|
163
|
+
pattern: `pattern_${T.value}_${c}`,
|
|
164
|
+
startAngle: D,
|
|
165
|
+
endAngle: Q,
|
|
166
|
+
value: F,
|
|
167
|
+
groupName: m.value.labels[c],
|
|
168
|
+
groupId: h[c].id,
|
|
169
|
+
groupColor: m.value.colors[c],
|
|
170
|
+
midAngle: (D + Q) / 2,
|
|
171
|
+
midBaseX: Math.cos((D + Q) / 2 - Math.PI / 2) * l,
|
|
172
|
+
midBaseY: Math.sin((D + Q) / 2 - Math.PI / 2) * l
|
|
173
|
+
}), A = Q;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const E = [];
|
|
177
|
+
for (const c of M) {
|
|
178
|
+
const y = M.find(
|
|
179
|
+
(A) => A.index === c.subIndex && A.subIndex === c.index
|
|
180
|
+
);
|
|
181
|
+
E.push({ source: c, target: y, id: ve() });
|
|
182
|
+
}
|
|
183
|
+
return { groups: h, chords: E };
|
|
184
|
+
}
|
|
185
|
+
const _ = x(() => {
|
|
186
|
+
const t = lt(m.value.matrix, ot.value);
|
|
187
|
+
return Pe(), t.chords.sort(
|
|
188
|
+
(o, e) => Math.max(e.source.value, e.target.value) - Math.max(o.source.value, o.target.value)
|
|
189
|
+
), t;
|
|
190
|
+
}), st = x(() => {
|
|
191
|
+
const t = b.value.outer + a.value.style.chart.ribbons.labels.offset + 12, e = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
192
|
+
if (p.value) {
|
|
193
|
+
const s = p.value;
|
|
194
|
+
if (s.source.value) {
|
|
195
|
+
const r = String(s.source.value);
|
|
196
|
+
l.push({
|
|
197
|
+
id: s.id + "-src",
|
|
198
|
+
theta: s.source.midAngle,
|
|
199
|
+
w: r.length * e / t,
|
|
200
|
+
midBaseX: s.source.midBaseX,
|
|
201
|
+
midBaseY: s.source.midBaseY,
|
|
202
|
+
groupColor: s.source.groupColor,
|
|
203
|
+
value: s.source.value
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
if (s.target && s.target.value && s.target.value !== s.source.value) {
|
|
207
|
+
const r = String(s.target.value);
|
|
208
|
+
l.push({
|
|
209
|
+
id: s.id + "-tgt",
|
|
210
|
+
theta: s.target.midAngle,
|
|
211
|
+
w: r.length * e / t,
|
|
212
|
+
midBaseX: s.target.midBaseX,
|
|
213
|
+
midBaseY: s.target.midBaseY,
|
|
214
|
+
groupColor: s.target.groupColor,
|
|
215
|
+
value: s.target.value
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
return l;
|
|
219
|
+
}
|
|
220
|
+
function u(s) {
|
|
221
|
+
_.value.chords.filter((r) => r.source.groupId === s && r.source.value).forEach((r) => {
|
|
222
|
+
{
|
|
223
|
+
const h = String(r.source.value);
|
|
224
|
+
l.push({
|
|
225
|
+
id: r.id + "-src",
|
|
226
|
+
theta: r.source.midAngle,
|
|
227
|
+
w: h.length * e / t,
|
|
228
|
+
midBaseX: r.source.midBaseX,
|
|
229
|
+
midBaseY: r.source.midBaseY,
|
|
230
|
+
groupColor: r.source.groupColor,
|
|
231
|
+
value: r.source.value
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
if (r.target && r.target.value && r.target.value !== r.source.value) {
|
|
235
|
+
const h = String(r.target.value);
|
|
236
|
+
l.push({
|
|
237
|
+
id: r.id + "-tgt",
|
|
238
|
+
theta: r.target.midAngle,
|
|
239
|
+
w: h.length * e / t,
|
|
240
|
+
midBaseX: r.target.midBaseX,
|
|
241
|
+
midBaseY: r.target.midBaseY,
|
|
242
|
+
groupColor: r.target.groupColor,
|
|
243
|
+
value: r.target.value
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
return f.value && u(f.value), w.value && u(w.value.id), l;
|
|
249
|
+
}), nt = x(() => {
|
|
250
|
+
const t = st.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
251
|
+
let e = !0, l = 0;
|
|
252
|
+
for (; e && l++ < 10; ) {
|
|
253
|
+
e = !1;
|
|
254
|
+
for (let h = 1; h < t.length; h += 1) {
|
|
255
|
+
const C = t[h - 1], M = t[h], E = C.theta + C.w + o;
|
|
256
|
+
M.theta < E && (M.theta = E, e = !0);
|
|
257
|
+
}
|
|
258
|
+
const u = t[0], s = t[t.length - 1], r = s.theta + s.w + o - 2 * Math.PI;
|
|
259
|
+
u.theta < r && (u.theta = r, e = !0);
|
|
260
|
+
}
|
|
261
|
+
return t;
|
|
262
|
+
});
|
|
263
|
+
function Se(t, o, e, l) {
|
|
264
|
+
const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, E = Math.cos(s) * l, c = Math.sin(s) * l, y = Math.cos(u) * l, A = Math.sin(u) * l, B = o - t > Math.PI ? 1 : 0;
|
|
265
|
+
return `M${r},${h} A${e},${e} 0 ${B} 1 ${C},${M} L${E},${c} A${l},${l} 0 ${B} 0 ${y},${A} Z`;
|
|
266
|
+
}
|
|
267
|
+
function J(t, o) {
|
|
268
|
+
const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, E = Math.sin(u) * e, c = Math.cos(s) * e, y = Math.sin(s) * e, A = Math.cos(r) * e, B = Math.sin(r) * e, F = t.endAngle - t.startAngle > Math.PI ? 1 : 0, D = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
269
|
+
return `M${h},${C}A${e},${e} 0 ${F} 1 ${M},${E}Q0,0 ${c},${y}A${e},${e} 0 ${D} 1 ${A},${B}Q0,0 ${h},${C}Z`;
|
|
270
|
+
}
|
|
271
|
+
const Be = x(() => I.value * Math.PI / 180);
|
|
272
|
+
function rt(t) {
|
|
273
|
+
return (t.startAngle + t.endAngle) / 2;
|
|
274
|
+
}
|
|
275
|
+
function ut(t) {
|
|
276
|
+
return ((rt(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
277
|
+
}
|
|
278
|
+
function it(t) {
|
|
279
|
+
let o = t + Be.value;
|
|
280
|
+
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
281
|
+
}
|
|
282
|
+
function ct(t) {
|
|
283
|
+
const o = t - Math.PI / 2, e = Math.cos(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + a.value.style.chart.arcs.labels.offset + 24);
|
|
284
|
+
return `translate(${e},${l})`;
|
|
285
|
+
}
|
|
286
|
+
function dt(t, o, e) {
|
|
287
|
+
const l = t - Math.PI / 2, u = o - Math.PI / 2, s = Math.cos(l) * e, r = Math.sin(l) * e, h = Math.cos(u) * e, C = Math.sin(u) * e, M = o - t > Math.PI ? 1 : 0;
|
|
288
|
+
return `M${s},${r} A${e},${e} 0 ${M} 1 ${h},${C}`;
|
|
289
|
+
}
|
|
290
|
+
const I = d(a.value.initialRotation), ue = d(!1);
|
|
291
|
+
let Oe = 0, Le = 0;
|
|
292
|
+
function Ee(t) {
|
|
293
|
+
const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, u = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
|
|
294
|
+
return Math.atan2(s - l, u - e);
|
|
295
|
+
}
|
|
296
|
+
function Ne(t) {
|
|
297
|
+
!a.value.enableRotation || H.value || (t.preventDefault(), ue.value = !0, Oe = I.value, Le = Ee(t));
|
|
298
|
+
}
|
|
299
|
+
function K(t) {
|
|
300
|
+
if (!ue.value) return;
|
|
301
|
+
const o = Ee(t);
|
|
302
|
+
I.value = Oe + (o - Le) * 180 / Math.PI;
|
|
303
|
+
}
|
|
304
|
+
function ee() {
|
|
305
|
+
ue.value = !1;
|
|
306
|
+
}
|
|
307
|
+
function ze(t) {
|
|
308
|
+
return Ot(
|
|
309
|
+
a.value.style.chart.ribbons.labels.formatter,
|
|
310
|
+
t,
|
|
311
|
+
Lt({
|
|
312
|
+
p: a.value.style.chart.ribbons.labels.prefix,
|
|
313
|
+
v: t,
|
|
314
|
+
s: a.value.style.chart.ribbons.labels.suffix,
|
|
315
|
+
r: a.value.style.chart.ribbons.labels.rounding
|
|
316
|
+
})
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
Ge(() => {
|
|
320
|
+
window.addEventListener("mousemove", K), window.addEventListener("mouseup", ee), window.addEventListener("touchmove", K, { passive: !1 }), window.addEventListener("touchend", ee);
|
|
321
|
+
}), Ve(() => {
|
|
322
|
+
window.removeEventListener("mousemove", K), window.removeEventListener("mouseup", ee), window.removeEventListener("touchmove", K), window.removeEventListener("touchend", ee), clearTimeout(Te.value), ne.value && ne.value.disconnect();
|
|
323
|
+
});
|
|
324
|
+
const ie = d(!1);
|
|
325
|
+
function vt(t) {
|
|
326
|
+
ie.value = t, he.value += 1;
|
|
327
|
+
}
|
|
328
|
+
function ht(t) {
|
|
329
|
+
f.value || (w.value = t);
|
|
330
|
+
}
|
|
331
|
+
function ft(t) {
|
|
332
|
+
f.value || (p.value = t);
|
|
333
|
+
}
|
|
334
|
+
function Fe(t) {
|
|
335
|
+
var l;
|
|
336
|
+
return !f.value && !w.value && !p.value ? 0.8 : (f.value ? f.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = p.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
|
|
337
|
+
}
|
|
338
|
+
function Xe(t) {
|
|
339
|
+
var l, u;
|
|
340
|
+
return !f.value && !w.value && !p.value || (f.value ? f.value === t.id : w.value ? w.value.id === t.id : [(l = p.value) == null ? void 0 : l.source.groupId, (u = p.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
341
|
+
}
|
|
342
|
+
const H = d(!1);
|
|
343
|
+
function ce() {
|
|
344
|
+
H.value = !H.value;
|
|
345
|
+
}
|
|
346
|
+
function Re() {
|
|
347
|
+
q.value.showTable = !q.value.showTable;
|
|
348
|
+
}
|
|
349
|
+
function gt() {
|
|
350
|
+
return _.value;
|
|
351
|
+
}
|
|
352
|
+
const R = d(null);
|
|
353
|
+
function De() {
|
|
354
|
+
const t = a.value.initialRotation;
|
|
355
|
+
R.value !== null && cancelAnimationFrame(R.value);
|
|
356
|
+
const o = () => {
|
|
357
|
+
I.value += (t - I.value) * 0.05, Math.abs(I.value - t) < 0.1 ? (I.value = t, R.value = null) : R.value = requestAnimationFrame(o);
|
|
358
|
+
};
|
|
359
|
+
R.value = requestAnimationFrame(o);
|
|
360
|
+
}
|
|
361
|
+
Ve(() => {
|
|
362
|
+
R.value !== null && cancelAnimationFrame(R.value);
|
|
363
|
+
});
|
|
364
|
+
function je(t) {
|
|
365
|
+
t === f.value ? (f.value = null, Z("selectLegend", null)) : (f.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
|
|
366
|
+
}
|
|
367
|
+
const Ue = x(() => _.value.groups.map((t, o) => ({
|
|
368
|
+
name: t.name,
|
|
369
|
+
color: t.color,
|
|
370
|
+
shape: "circle",
|
|
371
|
+
patternIndex: o,
|
|
372
|
+
pattern: `pattern_${T.value}_${o}`,
|
|
373
|
+
id: t.id,
|
|
374
|
+
select: () => je(t.id),
|
|
375
|
+
opacity: f.value ? f.value === t.id ? 1 : 0.3 : 1
|
|
376
|
+
}))), bt = x(() => ({
|
|
377
|
+
cy: "chord-div-legend",
|
|
378
|
+
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
379
|
+
color: a.value.style.chart.legend.color,
|
|
380
|
+
fontSize: a.value.style.chart.legend.fontSize,
|
|
381
|
+
paddingBottom: 12,
|
|
382
|
+
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
383
|
+
})), te = x(() => {
|
|
384
|
+
const t = _.value.groups.map((e, l) => ({
|
|
385
|
+
name: e.name || l,
|
|
386
|
+
color: e.color
|
|
387
|
+
})), o = m.value.matrix;
|
|
388
|
+
return { head: t, body: o };
|
|
389
|
+
}), ae = x(() => {
|
|
390
|
+
const t = [{ name: "", color: null }, ...te.value.head], o = te.value.body.map((u, s) => [
|
|
391
|
+
te.value.head[s],
|
|
392
|
+
...te.value.body[s]
|
|
393
|
+
]), e = {
|
|
394
|
+
th: {
|
|
395
|
+
backgroundColor: a.value.table.th.backgroundColor,
|
|
396
|
+
color: a.value.table.th.color,
|
|
397
|
+
outline: a.value.table.th.outline
|
|
398
|
+
},
|
|
399
|
+
td: {
|
|
400
|
+
backgroundColor: a.value.table.td.backgroundColor,
|
|
401
|
+
color: a.value.table.td.color,
|
|
402
|
+
outline: a.value.table.td.outline
|
|
403
|
+
},
|
|
404
|
+
breakpoint: a.value.table.responsiveBreakpoint
|
|
405
|
+
};
|
|
406
|
+
return {
|
|
407
|
+
colNames: t,
|
|
408
|
+
head: t,
|
|
409
|
+
body: o,
|
|
410
|
+
config: e
|
|
411
|
+
};
|
|
412
|
+
});
|
|
413
|
+
function Ye() {
|
|
414
|
+
$t(() => {
|
|
415
|
+
const t = m.value.matrix.map((l, u) => [
|
|
416
|
+
[m.value.labels[u] || u],
|
|
417
|
+
l
|
|
418
|
+
]), o = [
|
|
419
|
+
[a.value.style.chart.title.text],
|
|
420
|
+
[a.value.style.chart.title.subtitle.text],
|
|
421
|
+
[
|
|
422
|
+
[""],
|
|
423
|
+
...m.value.labels.map((l, u) => [l || u])
|
|
424
|
+
]
|
|
425
|
+
].concat(t), e = St(o);
|
|
426
|
+
Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
return Je({
|
|
430
|
+
getData: gt,
|
|
431
|
+
generateCsv: Ye,
|
|
432
|
+
generateImage: _e,
|
|
433
|
+
generatePdf: xe,
|
|
434
|
+
toggleAnnotator: ce,
|
|
435
|
+
toggleTable: Re
|
|
436
|
+
}), (t, o) => (n(), i("div", {
|
|
437
|
+
ref_key: "chordChart",
|
|
438
|
+
ref: Y,
|
|
439
|
+
class: X({
|
|
440
|
+
"vue-ui-chord": !0,
|
|
441
|
+
"vue-data-ui-wrapper-fullscreen": ie.value,
|
|
442
|
+
"vue-data-ui-responsive": a.value.responsive
|
|
443
|
+
}),
|
|
444
|
+
style: N(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
445
|
+
id: `chord_${T.value}`,
|
|
446
|
+
onMouseenter: o[4] || (o[4] = () => k($e)(!0)),
|
|
447
|
+
onMouseleave: o[5] || (o[5] = () => k($e)(!1))
|
|
448
|
+
}, [
|
|
449
|
+
a.value.userOptions.buttons.annotator && k(W) ? (n(), j(Xt, {
|
|
450
|
+
key: 0,
|
|
451
|
+
color: a.value.style.chart.color,
|
|
452
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
453
|
+
active: H.value,
|
|
454
|
+
svgRef: k(W),
|
|
455
|
+
onClose: ce
|
|
456
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
457
|
+
$(t.$slots, "userConfig", {}, void 0, !0),
|
|
458
|
+
tt.value ? (n(), i("div", {
|
|
459
|
+
key: 1,
|
|
460
|
+
ref_key: "noTitle",
|
|
461
|
+
ref: pe,
|
|
462
|
+
class: "vue-data-ui-no-title-space",
|
|
463
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
464
|
+
}, null, 512)) : v("", !0),
|
|
465
|
+
a.value.style.chart.title.text ? (n(), i("div", {
|
|
466
|
+
key: 2,
|
|
467
|
+
ref_key: "chartTitle",
|
|
468
|
+
ref: fe,
|
|
469
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
470
|
+
}, [
|
|
471
|
+
(n(), j(zt, {
|
|
472
|
+
key: `title_${me.value}`,
|
|
473
|
+
config: {
|
|
474
|
+
title: {
|
|
475
|
+
cy: "chord-div-title",
|
|
476
|
+
...a.value.style.chart.title
|
|
477
|
+
},
|
|
478
|
+
subtitle: {
|
|
479
|
+
cy: "chord-div-subtitle",
|
|
480
|
+
...a.value.style.chart.title.subtitle
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}, null, 8, ["config"]))
|
|
484
|
+
], 512)) : v("", !0),
|
|
485
|
+
a.value.userOptions.show && L.value && (k(we) || k(re)) ? (n(), j(jt, {
|
|
486
|
+
ref: "details",
|
|
487
|
+
key: `user_option_${he.value}`,
|
|
488
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
489
|
+
color: a.value.style.chart.color,
|
|
490
|
+
isPrinting: k(Ce),
|
|
491
|
+
isImaging: k(Me),
|
|
492
|
+
uid: T.value,
|
|
493
|
+
hasTooltip: !1,
|
|
494
|
+
hasPdf: a.value.userOptions.buttons.pdf,
|
|
495
|
+
hasImg: a.value.userOptions.buttons.img,
|
|
496
|
+
hasXls: a.value.userOptions.buttons.csv,
|
|
497
|
+
hasTable: a.value.userOptions.buttons.table,
|
|
498
|
+
hasLabel: !1,
|
|
499
|
+
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
500
|
+
isFullscreen: ie.value,
|
|
501
|
+
chartElement: Y.value,
|
|
502
|
+
position: a.value.userOptions.position,
|
|
503
|
+
titles: { ...a.value.userOptions.buttonTitles },
|
|
504
|
+
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
505
|
+
isAnnotation: H.value,
|
|
506
|
+
onToggleFullscreen: vt,
|
|
507
|
+
onGeneratePdf: k(xe),
|
|
508
|
+
onGenerateCsv: Ye,
|
|
509
|
+
onGenerateImage: k(_e),
|
|
510
|
+
onToggleTable: Re,
|
|
511
|
+
onToggleAnnotator: ce,
|
|
512
|
+
style: N({
|
|
513
|
+
visibility: k(we) ? k(re) ? "visible" : "hidden" : "visible"
|
|
514
|
+
})
|
|
515
|
+
}, We({ _: 2 }, [
|
|
516
|
+
t.$slots.menuIcon ? {
|
|
517
|
+
name: "menuIcon",
|
|
518
|
+
fn: P(({ isOpen: e, color: l }) => [
|
|
519
|
+
$(t.$slots, "menuIcon", oe(le({ isOpen: e, color: l })), void 0, !0)
|
|
520
|
+
]),
|
|
521
|
+
key: "0"
|
|
522
|
+
} : void 0,
|
|
523
|
+
t.$slots.optionPdf ? {
|
|
524
|
+
name: "optionPdf",
|
|
525
|
+
fn: P(() => [
|
|
526
|
+
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
527
|
+
]),
|
|
528
|
+
key: "1"
|
|
529
|
+
} : void 0,
|
|
530
|
+
t.$slots.optionCsv ? {
|
|
531
|
+
name: "optionCsv",
|
|
532
|
+
fn: P(() => [
|
|
533
|
+
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
534
|
+
]),
|
|
535
|
+
key: "2"
|
|
536
|
+
} : void 0,
|
|
537
|
+
t.$slots.optionImg ? {
|
|
538
|
+
name: "optionImg",
|
|
539
|
+
fn: P(() => [
|
|
540
|
+
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
541
|
+
]),
|
|
542
|
+
key: "3"
|
|
543
|
+
} : void 0,
|
|
544
|
+
t.$slots.optionTable ? {
|
|
545
|
+
name: "optionTable",
|
|
546
|
+
fn: P(() => [
|
|
547
|
+
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
548
|
+
]),
|
|
549
|
+
key: "4"
|
|
550
|
+
} : void 0,
|
|
551
|
+
t.$slots.optionFullscreen ? {
|
|
552
|
+
name: "optionFullscreen",
|
|
553
|
+
fn: P(({ toggleFullscreen: e, isFullscreen: l }) => [
|
|
554
|
+
$(t.$slots, "optionFullscreen", oe(le({ toggleFullscreen: e, isFullscreen: l })), void 0, !0)
|
|
555
|
+
]),
|
|
556
|
+
key: "5"
|
|
557
|
+
} : void 0,
|
|
558
|
+
t.$slots.optionAnnotator ? {
|
|
559
|
+
name: "optionAnnotator",
|
|
560
|
+
fn: P(({ toggleAnnotator: e, isAnnotator: l }) => [
|
|
561
|
+
$(t.$slots, "optionAnnotator", oe(le({ toggleAnnotator: e, isAnnotator: l })), void 0, !0)
|
|
562
|
+
]),
|
|
563
|
+
key: "6"
|
|
564
|
+
} : void 0
|
|
565
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
566
|
+
L.value ? (n(), i("svg", {
|
|
567
|
+
key: 4,
|
|
568
|
+
xmlns: k(Pt),
|
|
569
|
+
ref_key: "svgRef",
|
|
570
|
+
ref: W,
|
|
571
|
+
viewBox: `0 0 ${S.value.width} ${S.value.height}`,
|
|
572
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
573
|
+
style: {
|
|
574
|
+
overflow: "visible"
|
|
575
|
+
},
|
|
576
|
+
onMousedown: qe(Ne, ["prevent"]),
|
|
577
|
+
onTouchstart: qe(Ne, ["prevent"])
|
|
578
|
+
}, [
|
|
579
|
+
de(Ft),
|
|
580
|
+
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
581
|
+
key: 0,
|
|
582
|
+
x: 0,
|
|
583
|
+
y: 0,
|
|
584
|
+
width: S.value.width <= 0 ? 10 : S.value.width,
|
|
585
|
+
height: S.value.height <= 0 ? 10 : S.value.height,
|
|
586
|
+
style: {
|
|
587
|
+
pointerEvents: "none"
|
|
588
|
+
}
|
|
589
|
+
}, [
|
|
590
|
+
$(t.$slots, "chart-background", {}, void 0, !0)
|
|
591
|
+
], 8, Kt)) : v("", !0),
|
|
592
|
+
a.value.style.chart.arcs.labels.curved ? (n(), i("defs", ea, [
|
|
593
|
+
(n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("path", {
|
|
594
|
+
key: `labelPath-${l}`,
|
|
595
|
+
id: `labelPath-${l}_${T.value}`,
|
|
596
|
+
d: dt(
|
|
597
|
+
e.startAngle,
|
|
598
|
+
e.endAngle,
|
|
599
|
+
(b.value.inner + b.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
600
|
+
),
|
|
601
|
+
fill: "none"
|
|
602
|
+
}, null, 8, ta))), 128))
|
|
603
|
+
])) : v("", !0),
|
|
604
|
+
t.$slots.pattern ? (n(), i("g", aa, [
|
|
605
|
+
(n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("defs", null, [
|
|
606
|
+
$(t.$slots, "pattern", yt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
|
|
607
|
+
]))), 256))
|
|
608
|
+
])) : v("", !0),
|
|
609
|
+
O("g", {
|
|
610
|
+
transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
|
|
611
|
+
}, [
|
|
612
|
+
(n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("g", null, [
|
|
613
|
+
(n(), i("path", {
|
|
614
|
+
class: X({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !G.value }),
|
|
615
|
+
key: `arc-${l}`,
|
|
616
|
+
d: Se(
|
|
617
|
+
e.startAngle,
|
|
618
|
+
e.endAngle,
|
|
619
|
+
b.value.outer,
|
|
620
|
+
b.value.inner
|
|
621
|
+
),
|
|
622
|
+
fill: m.value.colors[l],
|
|
623
|
+
stroke: a.value.style.chart.arcs.stroke,
|
|
624
|
+
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
625
|
+
"stroke-linecap": "round",
|
|
626
|
+
"stroke-linejoin": "round",
|
|
627
|
+
style: N({
|
|
628
|
+
opacity: Xe(e)
|
|
629
|
+
}),
|
|
630
|
+
onMouseenter: () => ht(e),
|
|
631
|
+
onMouseleave: o[0] || (o[0] = (u) => w.value = null),
|
|
632
|
+
onClick: (u) => Z("selectGroup", e)
|
|
633
|
+
}, null, 46, la)),
|
|
634
|
+
t.$slots.pattern ? (n(), i("path", {
|
|
635
|
+
class: X({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": a.value.useCssAnimation && !G.value }),
|
|
636
|
+
key: `arc-${l}`,
|
|
637
|
+
d: Se(
|
|
638
|
+
e.startAngle,
|
|
639
|
+
e.endAngle,
|
|
640
|
+
b.value.outer,
|
|
641
|
+
b.value.inner
|
|
642
|
+
),
|
|
643
|
+
fill: `url(#${e.pattern})`,
|
|
644
|
+
stroke: a.value.style.chart.arcs.stroke,
|
|
645
|
+
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
646
|
+
"stroke-linecap": "round",
|
|
647
|
+
"stroke-linejoin": "round",
|
|
648
|
+
style: N({
|
|
649
|
+
opacity: Xe(e),
|
|
650
|
+
pointerEvents: "none"
|
|
651
|
+
})
|
|
652
|
+
}, null, 14, sa)) : v("", !0)
|
|
653
|
+
]))), 256)),
|
|
654
|
+
O("g", null, [
|
|
655
|
+
(n(!0), i(z, null, U(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : f.value ? _.value.chords.filter((e) => e.source.groupId === f.value) : _.value.chords, (e) => (n(), i(z, {
|
|
656
|
+
key: `ribbon-${e.id}`
|
|
657
|
+
}, [
|
|
658
|
+
e.source.value ? (n(), i("path", {
|
|
659
|
+
key: 0,
|
|
660
|
+
class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
|
|
661
|
+
d: J(e.source, e.target),
|
|
662
|
+
fill: a.value.style.chart.backgroundColor,
|
|
663
|
+
style: N({ opacity: a.value.style.chart.ribbons.underlayerOpacity })
|
|
664
|
+
}, null, 14, na)) : v("", !0),
|
|
665
|
+
e.source.value ? (n(), i("path", {
|
|
666
|
+
key: 1,
|
|
667
|
+
class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
|
|
668
|
+
d: J(e.source, e.target),
|
|
669
|
+
fill: m.value.colors[e.source.index],
|
|
670
|
+
stroke: a.value.style.chart.ribbons.stroke,
|
|
671
|
+
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
672
|
+
"stroke-linecap": "round",
|
|
673
|
+
"stroke-linejoin": "round",
|
|
674
|
+
style: N({ opacity: Fe(e) }),
|
|
675
|
+
onMouseenter: () => ft({
|
|
676
|
+
...e,
|
|
677
|
+
path: J(e.source, e.target),
|
|
678
|
+
color: m.value.colors[e.source.index]
|
|
679
|
+
}),
|
|
680
|
+
onClick: (l) => Z("selectRibbon", {
|
|
681
|
+
...e,
|
|
682
|
+
color: m.value.colors[e.source.index]
|
|
683
|
+
}),
|
|
684
|
+
onMouseleave: o[1] || (o[1] = (l) => p.value = null)
|
|
685
|
+
}, null, 46, ra)) : v("", !0),
|
|
686
|
+
e.source.value && t.$slots.pattern ? (n(), i("path", {
|
|
687
|
+
key: 2,
|
|
688
|
+
class: X({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !G.value }),
|
|
689
|
+
d: J(e.source, e.target),
|
|
690
|
+
fill: `url(#pattern_${T.value}_${e.source.index})`,
|
|
691
|
+
stroke: a.value.style.chart.ribbons.stroke,
|
|
692
|
+
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
693
|
+
"stroke-linecap": "round",
|
|
694
|
+
"stroke-linejoin": "round",
|
|
695
|
+
style: N({
|
|
696
|
+
opacity: Fe(e),
|
|
697
|
+
pointerEvents: "none"
|
|
698
|
+
})
|
|
699
|
+
}, null, 14, ua)) : v("", !0)
|
|
700
|
+
], 64))), 128)),
|
|
701
|
+
p.value ? (n(), i("path", {
|
|
702
|
+
key: 0,
|
|
703
|
+
d: p.value.path,
|
|
704
|
+
fill: p.value.color,
|
|
705
|
+
stroke: a.value.style.chart.ribbons.stroke,
|
|
706
|
+
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
707
|
+
"stroke-linecap": "round",
|
|
708
|
+
"stroke-linejoin": "round",
|
|
709
|
+
class: X({ "vue-ui-chord-ribbon": !0 }),
|
|
710
|
+
style: {
|
|
711
|
+
pointerEvents: "none"
|
|
712
|
+
}
|
|
713
|
+
}, null, 8, ia)) : v("", !0),
|
|
714
|
+
p.value && t.$slots.pattern ? (n(), i("path", {
|
|
715
|
+
key: 1,
|
|
716
|
+
d: p.value.path,
|
|
717
|
+
fill: `url(#${p.value.source.pattern})`,
|
|
718
|
+
stroke: a.value.style.chart.ribbons.stroke,
|
|
719
|
+
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
720
|
+
"stroke-linecap": "round",
|
|
721
|
+
"stroke-linejoin": "round",
|
|
722
|
+
class: X({ "vue-ui-chord-ribbon": !0 }),
|
|
723
|
+
style: {
|
|
724
|
+
pointerEvents: "none"
|
|
725
|
+
}
|
|
726
|
+
}, null, 8, ca)) : v("", !0)
|
|
727
|
+
]),
|
|
728
|
+
(w.value || p.value || f.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", da, [
|
|
729
|
+
(n(!0), i(z, null, U(nt.value, (e) => (n(), i(z, {
|
|
730
|
+
key: e.id
|
|
731
|
+
}, [
|
|
732
|
+
O("line", {
|
|
733
|
+
x1: e.midBaseX,
|
|
734
|
+
y1: e.midBaseY,
|
|
735
|
+
x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
736
|
+
y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
737
|
+
stroke: a.value.style.chart.backgroundColor,
|
|
738
|
+
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
739
|
+
"pointer-events": "none"
|
|
740
|
+
}, null, 8, va),
|
|
741
|
+
O("line", {
|
|
742
|
+
x1: e.midBaseX,
|
|
743
|
+
y1: e.midBaseY,
|
|
744
|
+
x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
745
|
+
y2: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
746
|
+
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
747
|
+
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
748
|
+
"pointer-events": "none"
|
|
749
|
+
}, null, 8, ha),
|
|
750
|
+
a.value.style.chart.ribbons.labels.marker.show ? (n(), i("circle", {
|
|
751
|
+
key: 0,
|
|
752
|
+
cx: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
753
|
+
cy: Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
754
|
+
r: a.value.style.chart.ribbons.labels.marker.radius,
|
|
755
|
+
stroke: a.value.style.chart.ribbons.labels.marker.stroke,
|
|
756
|
+
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
757
|
+
fill: e.groupColor,
|
|
758
|
+
"pointer-events": "none"
|
|
759
|
+
}, null, 8, fa)) : v("", !0),
|
|
760
|
+
O("text", {
|
|
761
|
+
transform: `
|
|
762
|
+
translate(
|
|
763
|
+
${Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
|
|
764
|
+
${Math.sin(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
|
|
765
|
+
) rotate(${-I.value})
|
|
766
|
+
`,
|
|
767
|
+
fill: a.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
768
|
+
"text-anchor": it(e.theta),
|
|
769
|
+
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
770
|
+
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
771
|
+
dy: ".35em",
|
|
772
|
+
"pointer-events": "none"
|
|
773
|
+
}, V(ze(e.value)), 9, ga)
|
|
774
|
+
], 64))), 128))
|
|
775
|
+
])) : v("", !0),
|
|
776
|
+
a.value.style.chart.arcs.labels.show ? (n(), i("g", ba, [
|
|
777
|
+
a.value.style.chart.arcs.labels.curved ? (n(!0), i(z, { key: 0 }, U(_.value.groups, (e, l) => (n(), i("text", {
|
|
778
|
+
key: `curved-label-${l}`,
|
|
779
|
+
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
780
|
+
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
781
|
+
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? k(Tt)(m.value.colors[l]) : a.value.style.chart.arcs.labels.color
|
|
782
|
+
}, [
|
|
783
|
+
O("textPath", {
|
|
784
|
+
href: `#labelPath-${l}_${T.value}`,
|
|
785
|
+
startOffset: "50%",
|
|
786
|
+
"text-anchor": "middle"
|
|
787
|
+
}, V(m.value.labels[l]), 9, ma)
|
|
788
|
+
], 8, pa))), 128)) : !w.value && !p.value && !f.value ? (n(!0), i(z, { key: 1 }, U(_.value.groups, (e, l) => (n(), i("text", {
|
|
789
|
+
key: `label-${l}`,
|
|
790
|
+
transform: `
|
|
791
|
+
${ct((e.startAngle + e.endAngle) / 2)}
|
|
792
|
+
rotate(${-I.value})
|
|
793
|
+
`,
|
|
794
|
+
dy: ".35em",
|
|
795
|
+
"text-anchor": ut(e) > Math.PI ? "end" : "start",
|
|
796
|
+
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
797
|
+
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
798
|
+
fill: a.value.style.chart.arcs.labels.color
|
|
799
|
+
}, V(m.value.labels[l]), 9, ya))), 128)) : v("", !0)
|
|
800
|
+
])) : v("", !0)
|
|
801
|
+
], 8, oa),
|
|
802
|
+
$(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
803
|
+
], 40, Jt)) : v("", !0),
|
|
804
|
+
t.$slots.watermark ? (n(), i("div", ka, [
|
|
805
|
+
$(t.$slots, "watermark", oe(le({ isPrinting: k(Ce) || k(Me) })), void 0, !0)
|
|
806
|
+
])) : v("", !0),
|
|
807
|
+
L.value ? v("", !0) : (n(), j(Wt, {
|
|
808
|
+
key: 6,
|
|
809
|
+
config: {
|
|
810
|
+
type: "chord",
|
|
811
|
+
style: {
|
|
812
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
813
|
+
chord: {
|
|
814
|
+
color: "#CCCCCC"
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}, null, 8, ["config"])),
|
|
819
|
+
O("div", {
|
|
820
|
+
ref_key: "chartLegend",
|
|
821
|
+
ref: ge
|
|
822
|
+
}, [
|
|
823
|
+
a.value.style.chart.legend.show ? (n(), j(Ut, {
|
|
824
|
+
key: `legend_${ke.value}`,
|
|
825
|
+
legendSet: Ue.value,
|
|
826
|
+
config: bt.value,
|
|
827
|
+
onClickMarker: o[2] || (o[2] = ({ legend: e }) => je(e.id))
|
|
828
|
+
}, We({
|
|
829
|
+
item: P(({ legend: e, index: l }) => [
|
|
830
|
+
O("div", {
|
|
831
|
+
style: N({
|
|
832
|
+
opacity: f.value ? f.value === e.id ? 1 : 0.3 : 1
|
|
833
|
+
}),
|
|
834
|
+
onClick: (u) => e.select()
|
|
835
|
+
}, V(e.name), 13, $a)
|
|
836
|
+
]),
|
|
837
|
+
_: 2
|
|
838
|
+
}, [
|
|
839
|
+
t.$slots.pattern ? {
|
|
840
|
+
name: "legend-pattern",
|
|
841
|
+
fn: P(({ legend: e, index: l }) => [
|
|
842
|
+
de(Yt, {
|
|
843
|
+
shape: e.shape,
|
|
844
|
+
radius: 30,
|
|
845
|
+
stroke: "none",
|
|
846
|
+
plot: { x: 30, y: 30 },
|
|
847
|
+
fill: `url(#pattern_${T.value}_${l})`
|
|
848
|
+
}, null, 8, ["shape", "fill"])
|
|
849
|
+
]),
|
|
850
|
+
key: "0"
|
|
851
|
+
} : void 0
|
|
852
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
853
|
+
$(t.$slots, "legend", { legend: Ue.value }, void 0, !0)
|
|
854
|
+
], 512),
|
|
855
|
+
t.$slots.source ? (n(), i("div", {
|
|
856
|
+
key: 7,
|
|
857
|
+
ref_key: "source",
|
|
858
|
+
ref: be,
|
|
859
|
+
dir: "auto"
|
|
860
|
+
}, [
|
|
861
|
+
$(t.$slots, "source", {}, void 0, !0)
|
|
862
|
+
], 512)) : v("", !0),
|
|
863
|
+
I.value !== a.value.initialRotation ? (n(), i("div", wa, [
|
|
864
|
+
$(t.$slots, "reset-action", { reset: De }, () => [
|
|
865
|
+
O("button", {
|
|
866
|
+
"data-cy-reset": "",
|
|
867
|
+
tabindex: "0",
|
|
868
|
+
role: "button",
|
|
869
|
+
class: "vue-data-ui-refresh-button",
|
|
870
|
+
style: N({
|
|
871
|
+
background: a.value.style.chart.backgroundColor
|
|
872
|
+
}),
|
|
873
|
+
onClick: De
|
|
874
|
+
}, [
|
|
875
|
+
de(Rt, {
|
|
876
|
+
name: "refresh",
|
|
877
|
+
stroke: a.value.style.chart.color
|
|
878
|
+
}, null, 8, ["stroke"])
|
|
879
|
+
], 4)
|
|
880
|
+
], !0)
|
|
881
|
+
])) : v("", !0),
|
|
882
|
+
L.value ? (n(), j(Vt, {
|
|
883
|
+
key: 9,
|
|
884
|
+
hideDetails: "",
|
|
885
|
+
config: {
|
|
886
|
+
open: q.value.showTable,
|
|
887
|
+
maxHeight: 1e4,
|
|
888
|
+
body: {
|
|
889
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
890
|
+
color: a.value.style.chart.color
|
|
891
|
+
},
|
|
892
|
+
head: {
|
|
893
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
894
|
+
color: a.value.style.chart.color
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}, {
|
|
898
|
+
content: P(() => [
|
|
899
|
+
(n(), j(Gt, {
|
|
900
|
+
key: `table_${ye.value}`,
|
|
901
|
+
colNames: ae.value.colNames,
|
|
902
|
+
head: ae.value.head,
|
|
903
|
+
body: ae.value.body,
|
|
904
|
+
config: ae.value.config,
|
|
905
|
+
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
906
|
+
onClose: o[3] || (o[3] = (e) => q.value.showTable = !1)
|
|
907
|
+
}, {
|
|
908
|
+
th: P(({ th: e }) => [
|
|
909
|
+
kt(V(e.name), 1)
|
|
910
|
+
]),
|
|
911
|
+
td: P(({ td: e }) => [
|
|
912
|
+
O("div", Ca, V(e.name ? e.name : ze(e)), 1)
|
|
913
|
+
]),
|
|
914
|
+
_: 1
|
|
915
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
916
|
+
]),
|
|
917
|
+
_: 1
|
|
918
|
+
}, 8, ["config"])) : v("", !0)
|
|
919
|
+
], 46, Zt));
|
|
920
|
+
}
|
|
921
|
+
}, ja = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-5f1eebd5"]]);
|
|
922
|
+
export {
|
|
923
|
+
ja as default
|
|
924
|
+
};
|