vue-data-ui 2.4.0 → 2.4.2
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 +56 -54
- package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
- package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
- package/dist/Legend-YZ7Hz3o1.cjs +1 -0
- package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
- package/dist/Title-Co5jI5ed.cjs +1 -0
- package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/documentation/installation.md +10 -9
- package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +101 -20
- package/dist/types/vue-data-ui.d.ts +101 -20
- package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +52 -51
- package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
- package/dist/Legend-CHQgjBuK.cjs +0 -1
- package/dist/Title-BHmTg9iK.cjs +0 -1
- package/dist/index-Dfhvf8hT.cjs +0 -9
- package/dist/usePrinter-BQQasUin.cjs +0 -1
- package/dist/vue-data-ui-BdSFeW_X.js +0 -256
- package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
- package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
- package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
- package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
- package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
- package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
- package/dist/vue-ui-flow-DreN8go4.js +0 -484
- package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
- package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
- package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
- package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
- package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
- package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
- package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
- package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
- package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
- package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
- package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
- package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
- package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
- package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
- package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
- package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
- package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
- package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
- package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
- package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
- package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
- package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
- package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
- package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
- package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
- package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
- package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
- package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
- package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
- package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
- package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
- package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
import { ref as n, computed as d, watch as Oe, onMounted as Me, onBeforeUnmount as ze, openBlock as u, createElementBlock as m, normalizeClass as W, normalizeStyle as F, createBlock as T, createCommentVNode as _, unref as i, createSlots as Re, withCtx as p, renderSlot as g, normalizeProps as O, guardReactiveProps as M, createVNode as he, createElementVNode as k, Fragment as ge, renderList as fe, createTextVNode as ye, toDisplayString as E, nextTick as Ve } from "vue";
|
|
2
|
+
import { u as Be, c as me, t as De, a as Ue, p as x, o as We, e as Y, g as Ee, b as Ge, I as He, d as be, f as N, X as Xe, s as je, w as Ye, v as q, i as ke, x as qe, y as Je, q as Ke, r as Qe } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as Ze, u as et } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as tt } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as lt, U as ot } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import { _ as at } from "./Tooltip-Cj4EF7v1.js";
|
|
7
|
+
import { D as st } from "./DataTable-DTk7C4Pr.js";
|
|
8
|
+
import { L as nt } from "./Legend-CYF2gpXG.js";
|
|
9
|
+
import rt from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
10
|
+
import ut from "./vue-ui-accordion-DspS4q3f.js";
|
|
11
|
+
import { u as Ce } from "./useNestedProp-Cox0K0Y5.js";
|
|
12
|
+
import { _ as it } from "./PackageVersion-CvCRsT5_.js";
|
|
13
|
+
import { P as vt } from "./PenAndPaper-Jb0pLt3G.js";
|
|
14
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"], ft = ["stop-color"], yt = ["stroke", "cx", "cy", "r", "fill"], mt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], bt = ["cx", "cy", "r", "onMouseenter"], kt = {
|
|
16
|
+
key: 4,
|
|
17
|
+
class: "vue-data-ui-watermark"
|
|
18
|
+
}, Ct = ["onClick"], wt = { key: 0 }, $t = { key: 1 }, Tt = ["innerHTML"], _t = {
|
|
19
|
+
__name: "vue-ui-rings",
|
|
20
|
+
props: {
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
dataset: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default() {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["selectLegend"],
|
|
35
|
+
setup(we, { expose: $e, emit: Te }) {
|
|
36
|
+
const f = we, { vue_ui_rings: _e } = Be(), L = n(!1), z = d(() => !!f.dataset && f.dataset.length), S = n(me()), xe = n(null), R = n(!1), G = n(""), $ = n(null), J = n(0), P = n(null), K = n(null), Q = n(null), Z = n(0), ee = n(0), te = n(0), e = d({
|
|
37
|
+
get: () => le(),
|
|
38
|
+
set: (t) => t
|
|
39
|
+
});
|
|
40
|
+
function le() {
|
|
41
|
+
const t = Ce({
|
|
42
|
+
userConfig: f.config,
|
|
43
|
+
defaultConfig: _e
|
|
44
|
+
});
|
|
45
|
+
return t.theme ? {
|
|
46
|
+
...Ce({
|
|
47
|
+
userConfig: De.vue_ui_rings[t.theme] || f.config,
|
|
48
|
+
defaultConfig: t
|
|
49
|
+
}),
|
|
50
|
+
customPalette: Ue[t.theme] || x
|
|
51
|
+
} : t;
|
|
52
|
+
}
|
|
53
|
+
Oe(() => f.config, (t) => {
|
|
54
|
+
e.value = le(), oe(), Z.value += 1, ee.value += 1, te.value += 1;
|
|
55
|
+
}, { deep: !0 });
|
|
56
|
+
const V = n(null);
|
|
57
|
+
Me(() => {
|
|
58
|
+
oe();
|
|
59
|
+
});
|
|
60
|
+
function oe() {
|
|
61
|
+
if (We(f.dataset) ? Y({
|
|
62
|
+
componentName: "VueUiRings",
|
|
63
|
+
type: "dataset"
|
|
64
|
+
}) : f.dataset.forEach((t, o) => {
|
|
65
|
+
t.values.length || Y({
|
|
66
|
+
componentName: "VueUiRings",
|
|
67
|
+
type: "dataset"
|
|
68
|
+
}), Ee({
|
|
69
|
+
datasetObject: t,
|
|
70
|
+
requiredAttributes: ["name", "values"]
|
|
71
|
+
}).forEach((l) => {
|
|
72
|
+
Y({
|
|
73
|
+
componentName: "VueUiRings",
|
|
74
|
+
type: "datasetSerieAttribute",
|
|
75
|
+
property: l,
|
|
76
|
+
index: o
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}), e.value.responsive) {
|
|
80
|
+
const t = Ze(() => {
|
|
81
|
+
const { width: o, height: l } = et({
|
|
82
|
+
chart: P.value,
|
|
83
|
+
title: e.value.style.chart.title.text ? K.value : null,
|
|
84
|
+
legend: e.value.style.chart.legend.show ? Q.value : null
|
|
85
|
+
});
|
|
86
|
+
r.value.width = o, r.value.height = l;
|
|
87
|
+
});
|
|
88
|
+
V.value = new ResizeObserver(t), V.value.observe(P.value.parentNode);
|
|
89
|
+
}
|
|
90
|
+
setTimeout(() => {
|
|
91
|
+
L.value = !0;
|
|
92
|
+
}, 600);
|
|
93
|
+
}
|
|
94
|
+
ze(() => {
|
|
95
|
+
V.value && V.value.disconnect();
|
|
96
|
+
});
|
|
97
|
+
const { isPrinting: ae, isImaging: se, generatePdf: ne, generateImage: re } = lt({
|
|
98
|
+
elementId: `rings_${S.value}`,
|
|
99
|
+
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
100
|
+
}), ue = d(() => Ge(e.value.customPalette)), C = n({
|
|
101
|
+
showTable: e.value.table.show,
|
|
102
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
103
|
+
}), r = n({
|
|
104
|
+
height: 360,
|
|
105
|
+
width: 360
|
|
106
|
+
}), Ne = d(() => Math.min(r.value.height, r.value.width)), v = n([]);
|
|
107
|
+
function H(t) {
|
|
108
|
+
v.value.includes(t) ? v.value = v.value.filter((o) => o !== t) : v.value.push(t), Te("selectLegend", c.value.map((o) => ({
|
|
109
|
+
name: o.name,
|
|
110
|
+
color: o.color,
|
|
111
|
+
value: o.value
|
|
112
|
+
})));
|
|
113
|
+
}
|
|
114
|
+
const Pe = d(() => Math.max(
|
|
115
|
+
...B.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
|
|
116
|
+
));
|
|
117
|
+
function ie(t) {
|
|
118
|
+
return t / Pe.value;
|
|
119
|
+
}
|
|
120
|
+
const B = d(() => f.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
121
|
+
const s = He(t).reduce((b, I) => b + I, 0);
|
|
122
|
+
return {
|
|
123
|
+
name: o,
|
|
124
|
+
color: l || be(l) || ue.value[a] || x[a] || x[a % x.length],
|
|
125
|
+
value: s,
|
|
126
|
+
proportion: s / f.dataset.map((b) => (b.values || []).reduce((I, Fe) => I + Fe, 0)).reduce((b, I) => b + I, 0),
|
|
127
|
+
uid: me()
|
|
128
|
+
};
|
|
129
|
+
})), ve = d(() => B.value.map((t) => ({
|
|
130
|
+
...t,
|
|
131
|
+
shape: "circle",
|
|
132
|
+
opacity: v.value.includes(t.uid) ? 0.5 : 1,
|
|
133
|
+
segregate: () => H(t.uid),
|
|
134
|
+
isSegregated: v.value.includes(t.uid)
|
|
135
|
+
})).toSorted((t, o) => o.value - t.value)), Le = d(() => ({
|
|
136
|
+
cy: "rings-div-legend",
|
|
137
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
138
|
+
color: e.value.style.chart.legend.color,
|
|
139
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
140
|
+
paddingBottom: 12,
|
|
141
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
142
|
+
})), y = d(() => B.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), c = d(() => B.value.filter((t) => !v.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a }, s) => ({
|
|
143
|
+
uid: a,
|
|
144
|
+
name: t,
|
|
145
|
+
color: l || be(l) || ue.value[s] || x[s] || x[s % x.length],
|
|
146
|
+
value: o,
|
|
147
|
+
proportion: ie(o),
|
|
148
|
+
percentage: o / y.value * 100,
|
|
149
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ie(o)
|
|
150
|
+
})).toSorted((t, o) => o.value - t.value));
|
|
151
|
+
function Se() {
|
|
152
|
+
return c.value.map(
|
|
153
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
154
|
+
name: t,
|
|
155
|
+
color: o,
|
|
156
|
+
value: l,
|
|
157
|
+
absoluteValues: a,
|
|
158
|
+
percentage: s
|
|
159
|
+
})
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
const h = d(() => Ne.value - e.value.style.chart.layout.rings.strokeWidth * 2), X = n(null);
|
|
163
|
+
function Ae(t, o) {
|
|
164
|
+
if (v.value.length === f.dataset.length) return;
|
|
165
|
+
X.value = {
|
|
166
|
+
datapoint: o,
|
|
167
|
+
seriesIndex: t,
|
|
168
|
+
series: c.value,
|
|
169
|
+
config: e.value
|
|
170
|
+
}, $.value = t;
|
|
171
|
+
const l = c.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
172
|
+
if (qe(a) && Je(() => a({
|
|
173
|
+
seriesIndex: t,
|
|
174
|
+
datapoint: o,
|
|
175
|
+
series: c.value,
|
|
176
|
+
config: e.value
|
|
177
|
+
})))
|
|
178
|
+
G.value = a({
|
|
179
|
+
seriesIndex: t,
|
|
180
|
+
datapoint: o,
|
|
181
|
+
series: c.value,
|
|
182
|
+
config: e.value
|
|
183
|
+
});
|
|
184
|
+
else {
|
|
185
|
+
let s = "";
|
|
186
|
+
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${ke(
|
|
187
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
188
|
+
l.value,
|
|
189
|
+
N({
|
|
190
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
191
|
+
v: l.value,
|
|
192
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
193
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
194
|
+
}),
|
|
195
|
+
{ datapoint: o, seriesIndex: t }
|
|
196
|
+
)}
|
|
197
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${N({
|
|
198
|
+
v: l.value / y.value * 100,
|
|
199
|
+
s: "%",
|
|
200
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
201
|
+
})})</span></div>` : s += `<b>${N({
|
|
202
|
+
v: l.value / y.value * 100,
|
|
203
|
+
s: "%",
|
|
204
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
205
|
+
})}</b></div>`), G.value = s;
|
|
206
|
+
}
|
|
207
|
+
R.value = !0;
|
|
208
|
+
}
|
|
209
|
+
const w = d(() => {
|
|
210
|
+
const t = c.value.map((l) => ({
|
|
211
|
+
name: l.name,
|
|
212
|
+
color: l.color
|
|
213
|
+
})), o = c.value.map((l) => l.value);
|
|
214
|
+
return { head: t, body: o };
|
|
215
|
+
}), D = d(() => {
|
|
216
|
+
const t = [
|
|
217
|
+
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
218
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: y.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
219
|
+
"100%"
|
|
220
|
+
], o = w.value.head.map((s, b) => [
|
|
221
|
+
{
|
|
222
|
+
color: s.color,
|
|
223
|
+
name: s.name
|
|
224
|
+
},
|
|
225
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[b], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
226
|
+
isNaN(w.value.body[b] / y.value) ? "-" : (w.value.body[b] / y.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
227
|
+
]), l = {
|
|
228
|
+
th: {
|
|
229
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
230
|
+
color: e.value.table.th.color,
|
|
231
|
+
outline: e.value.table.th.outline
|
|
232
|
+
},
|
|
233
|
+
td: {
|
|
234
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
235
|
+
color: e.value.table.td.color,
|
|
236
|
+
outline: e.value.table.td.outline
|
|
237
|
+
},
|
|
238
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
239
|
+
}, a = [
|
|
240
|
+
e.value.table.columnNames.series,
|
|
241
|
+
e.value.table.columnNames.value,
|
|
242
|
+
e.value.table.columnNames.percentage
|
|
243
|
+
];
|
|
244
|
+
return {
|
|
245
|
+
head: t,
|
|
246
|
+
body: o,
|
|
247
|
+
config: l,
|
|
248
|
+
colNames: a
|
|
249
|
+
};
|
|
250
|
+
});
|
|
251
|
+
function ce() {
|
|
252
|
+
Ve(() => {
|
|
253
|
+
const t = w.value.head.map((a, s) => [[
|
|
254
|
+
a.name
|
|
255
|
+
], [w.value.body[s]], [isNaN(w.value.body[s] / y.value) ? "-" : w.value.body[s] / y.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Ke(o);
|
|
256
|
+
Qe({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
const A = n(!1);
|
|
260
|
+
function Ie(t) {
|
|
261
|
+
A.value = t, J.value += 1;
|
|
262
|
+
}
|
|
263
|
+
function de() {
|
|
264
|
+
C.value.showTable = !C.value.showTable;
|
|
265
|
+
}
|
|
266
|
+
function pe() {
|
|
267
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
268
|
+
}
|
|
269
|
+
const U = n(!1);
|
|
270
|
+
function j() {
|
|
271
|
+
U.value = !U.value;
|
|
272
|
+
}
|
|
273
|
+
return $e({
|
|
274
|
+
getData: Se,
|
|
275
|
+
generatePdf: ne,
|
|
276
|
+
generateCsv: ce,
|
|
277
|
+
generateImage: re,
|
|
278
|
+
toggleTable: de,
|
|
279
|
+
toggleTooltip: pe,
|
|
280
|
+
toggleAnnotator: j
|
|
281
|
+
}), (t, o) => (u(), m("div", {
|
|
282
|
+
ref_key: "ringsChart",
|
|
283
|
+
ref: P,
|
|
284
|
+
class: W(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
285
|
+
style: F(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
286
|
+
id: `rings_${S.value}`,
|
|
287
|
+
onMouseleave: o[3] || (o[3] = (l) => {
|
|
288
|
+
$.value = null, R.value = !1;
|
|
289
|
+
})
|
|
290
|
+
}, [
|
|
291
|
+
e.value.userOptions.buttons.annotator ? (u(), T(vt, {
|
|
292
|
+
key: 0,
|
|
293
|
+
parent: P.value,
|
|
294
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
295
|
+
color: e.value.style.chart.color,
|
|
296
|
+
active: U.value,
|
|
297
|
+
onClose: j
|
|
298
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0),
|
|
299
|
+
e.value.style.chart.title.text ? (u(), m("div", {
|
|
300
|
+
key: 1,
|
|
301
|
+
ref_key: "chartTitle",
|
|
302
|
+
ref: K,
|
|
303
|
+
style: "width:100%;background:transparent"
|
|
304
|
+
}, [
|
|
305
|
+
(u(), T(tt, {
|
|
306
|
+
key: `title_${Z.value}`,
|
|
307
|
+
config: {
|
|
308
|
+
title: {
|
|
309
|
+
cy: "rings-div-title",
|
|
310
|
+
...e.value.style.chart.title
|
|
311
|
+
},
|
|
312
|
+
subtitle: {
|
|
313
|
+
cy: "rings-div-subtitle",
|
|
314
|
+
...e.value.style.chart.title.subtitle
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}, null, 8, ["config"]))
|
|
318
|
+
], 512)) : _("", !0),
|
|
319
|
+
e.value.userOptions.show && z.value ? (u(), T(ot, {
|
|
320
|
+
ref_key: "details",
|
|
321
|
+
ref: xe,
|
|
322
|
+
key: `user_options_${J.value}`,
|
|
323
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
324
|
+
color: e.value.style.chart.color,
|
|
325
|
+
isPrinting: i(ae),
|
|
326
|
+
isImaging: i(se),
|
|
327
|
+
uid: S.value,
|
|
328
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
329
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
330
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
331
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
332
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
333
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
334
|
+
isTooltip: C.value.showTooltip,
|
|
335
|
+
isFullscreen: A.value,
|
|
336
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
337
|
+
chartElement: P.value,
|
|
338
|
+
position: e.value.userOptions.position,
|
|
339
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
340
|
+
isAnnotation: U.value,
|
|
341
|
+
onToggleFullscreen: Ie,
|
|
342
|
+
onGeneratePdf: i(ne),
|
|
343
|
+
onGenerateCsv: ce,
|
|
344
|
+
onGenerateImage: i(re),
|
|
345
|
+
onToggleTable: de,
|
|
346
|
+
onToggleTooltip: pe,
|
|
347
|
+
onToggleAnnotator: j
|
|
348
|
+
}, Re({ _: 2 }, [
|
|
349
|
+
t.$slots.optionTooltip ? {
|
|
350
|
+
name: "optionTooltip",
|
|
351
|
+
fn: p(() => [
|
|
352
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
353
|
+
]),
|
|
354
|
+
key: "0"
|
|
355
|
+
} : void 0,
|
|
356
|
+
t.$slots.optionPdf ? {
|
|
357
|
+
name: "optionPdf",
|
|
358
|
+
fn: p(() => [
|
|
359
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
360
|
+
]),
|
|
361
|
+
key: "1"
|
|
362
|
+
} : void 0,
|
|
363
|
+
t.$slots.optionCsv ? {
|
|
364
|
+
name: "optionCsv",
|
|
365
|
+
fn: p(() => [
|
|
366
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
367
|
+
]),
|
|
368
|
+
key: "2"
|
|
369
|
+
} : void 0,
|
|
370
|
+
t.$slots.optionImg ? {
|
|
371
|
+
name: "optionImg",
|
|
372
|
+
fn: p(() => [
|
|
373
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
374
|
+
]),
|
|
375
|
+
key: "3"
|
|
376
|
+
} : void 0,
|
|
377
|
+
t.$slots.optionTable ? {
|
|
378
|
+
name: "optionTable",
|
|
379
|
+
fn: p(() => [
|
|
380
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
381
|
+
]),
|
|
382
|
+
key: "4"
|
|
383
|
+
} : void 0,
|
|
384
|
+
t.$slots.optionFullscreen ? {
|
|
385
|
+
name: "optionFullscreen",
|
|
386
|
+
fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
387
|
+
g(t.$slots, "optionFullscreen", O(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
388
|
+
]),
|
|
389
|
+
key: "5"
|
|
390
|
+
} : void 0,
|
|
391
|
+
t.$slots.optionAnnotator ? {
|
|
392
|
+
name: "optionAnnotator",
|
|
393
|
+
fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
394
|
+
g(t.$slots, "optionAnnotator", O(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
395
|
+
]),
|
|
396
|
+
key: "6"
|
|
397
|
+
} : void 0
|
|
398
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
|
|
399
|
+
z.value ? (u(), m("svg", {
|
|
400
|
+
key: 3,
|
|
401
|
+
xmlns: i(Xe),
|
|
402
|
+
class: W({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
403
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
404
|
+
style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
405
|
+
}, [
|
|
406
|
+
he(it),
|
|
407
|
+
k("defs", null, [
|
|
408
|
+
(u(!0), m(ge, null, fe(c.value, (l, a) => (u(), m("radialGradient", {
|
|
409
|
+
cx: "50%",
|
|
410
|
+
cy: "30%",
|
|
411
|
+
r: "50%",
|
|
412
|
+
fx: "50%",
|
|
413
|
+
fy: "50%",
|
|
414
|
+
id: `gradient_${S.value}_${a}`
|
|
415
|
+
}, [
|
|
416
|
+
k("stop", {
|
|
417
|
+
offset: "0%",
|
|
418
|
+
"stop-color": i(je)(i(Ye)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
419
|
+
}, null, 8, gt),
|
|
420
|
+
k("stop", {
|
|
421
|
+
offset: "100%",
|
|
422
|
+
"stop-color": l.color
|
|
423
|
+
}, null, 8, ft)
|
|
424
|
+
], 8, ht))), 256))
|
|
425
|
+
]),
|
|
426
|
+
(u(!0), m(ge, null, fe(c.value, (l, a) => (u(), m("g", null, [
|
|
427
|
+
k("circle", {
|
|
428
|
+
class: W({
|
|
429
|
+
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
430
|
+
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
431
|
+
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
432
|
+
}),
|
|
433
|
+
style: F(`animation-delay:${a * 100}ms`),
|
|
434
|
+
stroke: e.value.style.chart.layout.rings.stroke,
|
|
435
|
+
cx: r.value.width / 2,
|
|
436
|
+
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
437
|
+
r: i(q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
438
|
+
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
439
|
+
}, null, 14, yt),
|
|
440
|
+
k("circle", {
|
|
441
|
+
class: W({
|
|
442
|
+
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
443
|
+
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
444
|
+
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
445
|
+
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
446
|
+
}),
|
|
447
|
+
style: F(`animation-delay:${a * 100}ms`),
|
|
448
|
+
stroke: e.value.style.chart.layout.rings.stroke,
|
|
449
|
+
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
450
|
+
cx: r.value.width / 2,
|
|
451
|
+
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
452
|
+
r: i(q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
453
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${S.value}_${a})` : l.color
|
|
454
|
+
}, null, 14, mt),
|
|
455
|
+
k("circle", {
|
|
456
|
+
"data-cy-trap": "",
|
|
457
|
+
stroke: "none",
|
|
458
|
+
cx: r.value.width / 2,
|
|
459
|
+
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
460
|
+
r: i(q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
461
|
+
fill: "transparent",
|
|
462
|
+
onMouseenter: (s) => Ae(a, l),
|
|
463
|
+
onMouseleave: o[0] || (o[0] = (s) => {
|
|
464
|
+
$.value = null, R.value = !1;
|
|
465
|
+
})
|
|
466
|
+
}, null, 40, bt)
|
|
467
|
+
]))), 256)),
|
|
468
|
+
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
469
|
+
], 14, pt)) : _("", !0),
|
|
470
|
+
t.$slots.watermark ? (u(), m("div", kt, [
|
|
471
|
+
g(t.$slots, "watermark", O(M({ isPrinting: i(ae) || i(se) })), void 0, !0)
|
|
472
|
+
])) : _("", !0),
|
|
473
|
+
z.value ? _("", !0) : (u(), T(rt, {
|
|
474
|
+
key: 5,
|
|
475
|
+
config: {
|
|
476
|
+
type: "rings",
|
|
477
|
+
style: {
|
|
478
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
479
|
+
rings: {
|
|
480
|
+
color: "#CCCCCC"
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}, null, 8, ["config"])),
|
|
485
|
+
k("div", {
|
|
486
|
+
ref_key: "chartLegend",
|
|
487
|
+
ref: Q
|
|
488
|
+
}, [
|
|
489
|
+
e.value.style.chart.legend.show ? (u(), T(nt, {
|
|
490
|
+
key: `legend_${te.value}`,
|
|
491
|
+
legendSet: ve.value,
|
|
492
|
+
config: Le.value,
|
|
493
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l.uid))
|
|
494
|
+
}, {
|
|
495
|
+
item: p(({ legend: l, index: a }) => [
|
|
496
|
+
k("div", {
|
|
497
|
+
"data-cy-legend-item": "",
|
|
498
|
+
onClick: (s) => H(l.uid),
|
|
499
|
+
style: F(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
|
|
500
|
+
}, [
|
|
501
|
+
ye(E(l.name) + ": " + E(i(ke)(
|
|
502
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
503
|
+
l.value,
|
|
504
|
+
i(N)({
|
|
505
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
506
|
+
v: l.value,
|
|
507
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
508
|
+
r: e.value.style.chart.legend.roundingValue
|
|
509
|
+
}),
|
|
510
|
+
{ datapoint: l, seriesIndex: a }
|
|
511
|
+
)) + " ", 1),
|
|
512
|
+
v.value.includes(l.uid) ? (u(), m("span", $t, " ( - % ) ")) : (u(), m("span", wt, " (" + E(isNaN(l.value / y.value) ? "-" : i(N)({
|
|
513
|
+
v: l.value / y.value * 100,
|
|
514
|
+
s: "%",
|
|
515
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
516
|
+
})) + ") ", 1))
|
|
517
|
+
], 12, Ct)
|
|
518
|
+
]),
|
|
519
|
+
_: 1
|
|
520
|
+
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
521
|
+
key: 1,
|
|
522
|
+
legend: ve.value
|
|
523
|
+
}, void 0, !0)
|
|
524
|
+
], 512),
|
|
525
|
+
he(at, {
|
|
526
|
+
show: C.value.showTooltip && R.value && v.value.length < f.dataset.length,
|
|
527
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
528
|
+
color: e.value.style.chart.tooltip.color,
|
|
529
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
530
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
531
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
532
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
533
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
534
|
+
position: e.value.style.chart.tooltip.position,
|
|
535
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
536
|
+
parent: P.value,
|
|
537
|
+
content: G.value,
|
|
538
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
539
|
+
}, {
|
|
540
|
+
"tooltip-before": p(() => [
|
|
541
|
+
g(t.$slots, "tooltip-before", O(M({ ...X.value })), void 0, !0)
|
|
542
|
+
]),
|
|
543
|
+
"tooltip-after": p(() => [
|
|
544
|
+
g(t.$slots, "tooltip-after", O(M({ ...X.value })), void 0, !0)
|
|
545
|
+
]),
|
|
546
|
+
_: 3
|
|
547
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
548
|
+
z.value ? (u(), T(ut, {
|
|
549
|
+
key: 6,
|
|
550
|
+
hideDetails: "",
|
|
551
|
+
config: {
|
|
552
|
+
open: C.value.showTable,
|
|
553
|
+
maxHeight: 1e4,
|
|
554
|
+
body: {
|
|
555
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
556
|
+
color: e.value.style.chart.color
|
|
557
|
+
},
|
|
558
|
+
head: {
|
|
559
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
560
|
+
color: e.value.style.chart.color
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}, {
|
|
564
|
+
content: p(() => [
|
|
565
|
+
(u(), T(st, {
|
|
566
|
+
key: `table_${ee.value}`,
|
|
567
|
+
colNames: D.value.colNames,
|
|
568
|
+
head: D.value.head,
|
|
569
|
+
body: D.value.body,
|
|
570
|
+
config: D.value.config,
|
|
571
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
572
|
+
onClose: o[2] || (o[2] = (l) => C.value.showTable = !1)
|
|
573
|
+
}, {
|
|
574
|
+
th: p(({ th: l }) => [
|
|
575
|
+
k("div", {
|
|
576
|
+
innerHTML: l,
|
|
577
|
+
style: { display: "flex", "align-items": "center" }
|
|
578
|
+
}, null, 8, Tt)
|
|
579
|
+
]),
|
|
580
|
+
td: p(({ td: l }) => [
|
|
581
|
+
ye(E(l.name || l), 1)
|
|
582
|
+
]),
|
|
583
|
+
_: 1
|
|
584
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
585
|
+
]),
|
|
586
|
+
_: 1
|
|
587
|
+
}, 8, ["config"])) : _("", !0)
|
|
588
|
+
], 46, dt));
|
|
589
|
+
}
|
|
590
|
+
}, Dt = /* @__PURE__ */ ct(_t, [["__scopeId", "data-v-985560ab"]]);
|
|
591
|
+
export {
|
|
592
|
+
Dt as default
|
|
593
|
+
};
|