vue-data-ui 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-JuK2z9IB.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DLTRnzcG.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-rRli6Sfv.js → BaseIcon-BbvG1AlW.js} +1 -1
- package/dist/{BaseIcon-BGExhz6v.cjs → BaseIcon-uALK38Ov.cjs} +1 -1
- package/dist/{DataTable-DJzhv96s.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DTk7C4Pr.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-YZ7Hz3o1.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-CYF2gpXG.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-DVZtsuy4.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-CvCRsT5_.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/{PenAndPaper-CyXm-yVL.cjs → PenAndPaper-CDFVOo7X.cjs} +1 -1
- package/dist/{PenAndPaper-Jb0pLt3G.js → PenAndPaper-DAZYA8Ew.js} +2 -2
- package/dist/{Shape-BpPn4eWR.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-X2F-QV_B.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-CU7dRZR0.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CL0tP5a5.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-Co5jI5ed.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-5VmBwT4i.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-Bl6W8Zn7.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-Cj4EF7v1.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DnVHQ2xI.js → index-Bya_q1J-.js} +4 -1
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -1
- package/dist/types/vue-data-ui.d.ts +4 -1
- package/dist/{useNestedProp-Cox0K0Y5.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-q7byAAIJ.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/{usePrinter-BCAFeO_J.cjs → usePrinter-CSRFnDBU.cjs} +1 -1
- package/dist/{usePrinter-BEeNAqS5.js → usePrinter-CiHd1FwD.js} +1 -1
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/{vue-data-ui-CRLLZpt0.cjs → vue-data-ui-BTtxyUc3.cjs} +1 -1
- package/dist/{vue-data-ui-W7nnqn0v.js → vue-data-ui-Bduq4f2p.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-bD_n6qL_.cjs → vue-ui-3d-bar-B-P7PMHs.cjs} +2 -2
- package/dist/{vue-ui-3d-bar-BwBrUabe.js → vue-ui-3d-bar-BUEq_VdY.js} +41 -34
- package/dist/{vue-ui-accordion-DspS4q3f.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-xXgqfR2l.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CxBvm3uM.js → vue-ui-age-pyramid-CH72tAMb.js} +163 -154
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-BOofWpzv.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-C6T5_7ZV.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/{vue-ui-bullet-DraC-oFu.js → vue-ui-bullet-CtP3MlUT.js} +167 -136
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-DQZ5eT1f.js → vue-ui-candlestick-DDil13a0.js} +173 -164
- package/dist/{vue-ui-carousel-table-PdLjpH1p.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-ByI_O5hB.js → vue-ui-chestnut-BczSJF6S.js} +96 -89
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-BvadpA2m.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-BM74l93B.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-CoANBhAM.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-OP51Gs8I.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-DioaBnkB.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-C7jJJg9k.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-ldqSm_JV.js → vue-ui-donut-DUcp-fat.js} +244 -235
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DAb1xzNd.js → vue-ui-donut-evolution-C_YMbTwq.js} +125 -118
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dg7PkiKJ.js → vue-ui-dumbbell-Buwngz_V.js} +192 -183
- package/dist/{vue-ui-flow-DKT7ZEnr.js → vue-ui-flow-Bz3c0K5P.js} +78 -71
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-qAA9be3S.js → vue-ui-galaxy-Cjh0XGTX.js} +49 -42
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/{vue-ui-gauge-D8yVTIgP.js → vue-ui-gauge-B1UvGkQa.js} +160 -151
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-W6bTkg59.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DC0uUwI3.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-u1raIzBQ.js → vue-ui-heatmap-C-poazUw.js} +110 -103
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-C-iTxMD2.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-DY_2WF7U.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7x7S0hi.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bfq2MNWu.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/{vue-ui-molecule-BFnOIxxs.js → vue-ui-molecule-BaJpDZND.js} +78 -71
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-CR1v5v2x.js → vue-ui-mood-radar-BUNDwsEI.js} +132 -125
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-DEiloQzq.js → vue-ui-nested-donuts-mDy2hXa6.js} +198 -189
- package/dist/{vue-ui-onion-LsEhBe4x.js → vue-ui-onion-DwFG3HAI.js} +248 -239
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CTlIjJqG.js → vue-ui-parallel-coordinate-plot-ImET_zeo.js} +233 -224
- package/dist/{vue-ui-quadrant-DKVVFufb.js → vue-ui-quadrant-BeveRihK.js} +188 -179
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-8vJikiGH.js → vue-ui-quick-chart-DAhllTfa.js} +343 -334
- package/dist/{vue-ui-quick-chart-gG5Ar8-i.cjs → vue-ui-quick-chart-DgFDBzjS.cjs} +2 -2
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-20QhOUer.js → vue-ui-radar-BllatzRa.js} +174 -165
- package/dist/{vue-ui-rating-Bbzm5nUK.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-DRWJsve1.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/{vue-ui-relation-circle-I45_Sk5l.js → vue-ui-relation-circle-xv2l5Be9.js} +142 -133
- package/dist/{vue-ui-rings-DG8GCi3y.js → vue-ui-rings-B-ZcX6y1.js} +165 -156
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-Hqu5-F2H.js → vue-ui-scatter-DG43ck1g.js} +269 -260
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-D8nxd5RV.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cjiqbtLK.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-aZmkNzAe.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-B1TA19Hv.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-ChNvxygm.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CQxELQcf.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-0ixbKZzf.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-pdYb7OwH.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-N69h2q0U.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-2BKYZMOb.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-sh03cuOU.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/{vue-ui-stackbar-B1si-1RM.js → vue-ui-stackbar-ByOuJSdM.js} +205 -196
- package/dist/{vue-ui-stackbar-Dy_saeSe.cjs → vue-ui-stackbar-wun4S3C0.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-BYn-QrTQ.js → vue-ui-strip-plot-CMD0MSqY.js} +218 -209
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-DQORPCDJ.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-Ce4waJaj.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Csp7Tx8N.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-DdwVrfUj.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/{vue-ui-thermometer-I6ZnlfAv.js → vue-ui-thermometer-Pq4PvSIP.js} +67 -60
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-COOXcn14.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-pi1SazTU.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/{vue-ui-tiremarks-vdPQYiDp.js → vue-ui-tiremarks-CU9HJIqf.js} +84 -77
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/{vue-ui-treemap-3FNUlKxL.js → vue-ui-treemap-DY-lRAhC.js} +211 -202
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-DwxpB46q.js → vue-ui-vertical-bar-CtnIKsM1.js} +359 -350
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/{vue-ui-waffle-XecHJIc-.js → vue-ui-waffle-reOsx-gJ.js} +177 -168
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/{vue-ui-wheel-Bbih5sSL.js → vue-ui-wheel-kYxny3vn.js} +95 -86
- package/dist/{vue-ui-word-cloud-DnhXUn5x.js → vue-ui-word-cloud-DbMqrHAf.js} +192 -183
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-C8c2X5fk.js → vue-ui-xy-canvas-B0HTR7OV.js} +255 -246
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-CqlRuFMc.js → vue-ui-xy-rbACig0h.js} +131 -122
- package/package.json +1 -1
- package/dist/index-FfZRtJ6A.cjs +0 -9
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +0 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +0 -23
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +0 -2
- package/dist/vue-ui-carousel-table-DpRQklDZ.cjs +0 -1
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +0 -6
- package/dist/vue-ui-donut-CplNylps.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +0 -1
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +0 -9
- package/dist/vue-ui-flow-BPt35d5K.cjs +0 -1
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +0 -1
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +0 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +0 -1
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +0 -1
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +0 -17
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +0 -8
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +0 -1
- package/dist/vue-ui-radar-CAaHjDO7.cjs +0 -1
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +0 -1
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +0 -2
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +0 -1
- package/dist/vue-ui-skeleton-Djv08J67.cjs +0 -41
- package/dist/vue-ui-spark-trend-BqrPr63O.cjs +0 -1
- package/dist/vue-ui-sparkbar-CrTEPTU5.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BYxpe_WV.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D21XDUH2.cjs +0 -1
- package/dist/vue-ui-sparkline-Cf4m-Fxo.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-dAS8XoJs.cjs +0 -1
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-EqHt-O7Y.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DONmVOMh.cjs +0 -1
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +0 -1
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +0 -1
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +0 -4
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +0 -1
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +0 -1
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +0 -1
- package/dist/vue-ui-xy-BDpqVzAq.cjs +0 -3
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +0 -9
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as n, computed as d, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { ref as n, computed as d, watch as Me, onMounted as ze, onBeforeUnmount as Re, openBlock as u, createElementBlock as y, normalizeClass as W, normalizeStyle as F, createBlock as _, createCommentVNode as $, unref as i, createSlots as Ve, withCtx as p, renderSlot as h, normalizeProps as O, guardReactiveProps as M, createVNode as ge, createElementVNode as k, Fragment as fe, renderList as ye, createTextVNode as me, toDisplayString as E, nextTick as Be } from "vue";
|
|
2
|
+
import { u as De, c as be, t as Ue, a as We, p as x, o as Ee, e as Y, g as Ge, b as He, I as Xe, d as ke, f as N, X as je, s as Ye, w as qe, v as q, i as Ce, x as Je, y as Ke, q as Qe, r as Ze } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as et, u as tt } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import { _ as lt } from "./Title-C5pIfQAz.js";
|
|
5
|
+
import { u as ot, U as at } from "./usePrinter-CiHd1FwD.js";
|
|
6
|
+
import { _ as st } from "./Tooltip-Cz24YLfw.js";
|
|
7
|
+
import { D as nt } from "./DataTable-DYqC2pqu.js";
|
|
8
|
+
import { L as rt } from "./Legend-DNgTCgEK.js";
|
|
9
|
+
import ut from "./vue-ui-skeleton-BYssP0K4.js";
|
|
10
|
+
import it from "./vue-ui-accordion-DfUfL2dI.js";
|
|
11
|
+
import { u as we } from "./useNestedProp-B33hazbH.js";
|
|
12
|
+
import { _ as vt } from "./PackageVersion-VkaUzgmt.js";
|
|
13
|
+
import { P as ct } from "./PenAndPaper-DAZYA8Ew.js";
|
|
14
|
+
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"], yt = ["stop-color"], mt = ["stroke", "cx", "cy", "r", "fill"], bt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], kt = ["cx", "cy", "r", "onMouseenter"], Ct = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, wt = ["onClick"], $t = { key: 0 }, Tt = { key: 1 }, _t = ["innerHTML"], xt = {
|
|
19
19
|
__name: "vue-ui-rings",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,40 +32,40 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const f =
|
|
37
|
-
get: () =>
|
|
35
|
+
setup($e, { expose: Te, emit: _e }) {
|
|
36
|
+
const f = $e, { vue_ui_rings: xe } = De(), L = n(!1), z = d(() => !!f.dataset && f.dataset.length), S = n(be()), Ne = n(null), R = n(!1), G = n(""), T = n(null), J = n(0), P = n(null), K = n(null), Q = n(null), Z = n(null), ee = n(0), te = n(0), le = n(0), e = d({
|
|
37
|
+
get: () => oe(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
});
|
|
40
|
-
function
|
|
41
|
-
const t =
|
|
40
|
+
function oe() {
|
|
41
|
+
const t = we({
|
|
42
42
|
userConfig: f.config,
|
|
43
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: xe
|
|
44
44
|
});
|
|
45
45
|
return t.theme ? {
|
|
46
|
-
...
|
|
47
|
-
userConfig:
|
|
46
|
+
...we({
|
|
47
|
+
userConfig: Ue.vue_ui_rings[t.theme] || f.config,
|
|
48
48
|
defaultConfig: t
|
|
49
49
|
}),
|
|
50
|
-
customPalette:
|
|
50
|
+
customPalette: We[t.theme] || x
|
|
51
51
|
} : t;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
e.value =
|
|
53
|
+
Me(() => f.config, (t) => {
|
|
54
|
+
e.value = oe(), ae(), ee.value += 1, te.value += 1, le.value += 1;
|
|
55
55
|
}, { deep: !0 });
|
|
56
56
|
const V = n(null);
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
ze(() => {
|
|
58
|
+
ae();
|
|
59
59
|
});
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
60
|
+
function ae() {
|
|
61
|
+
if (Ee(f.dataset) ? Y({
|
|
62
62
|
componentName: "VueUiRings",
|
|
63
63
|
type: "dataset"
|
|
64
64
|
}) : f.dataset.forEach((t, o) => {
|
|
65
65
|
t.values.length || Y({
|
|
66
66
|
componentName: "VueUiRings",
|
|
67
67
|
type: "dataset"
|
|
68
|
-
}),
|
|
68
|
+
}), Ge({
|
|
69
69
|
datasetObject: t,
|
|
70
70
|
requiredAttributes: ["name", "values"]
|
|
71
71
|
}).forEach((l) => {
|
|
@@ -77,11 +77,12 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
}), e.value.responsive) {
|
|
80
|
-
const t =
|
|
81
|
-
const { width: o, height: l } =
|
|
80
|
+
const t = et(() => {
|
|
81
|
+
const { width: o, height: l } = tt({
|
|
82
82
|
chart: P.value,
|
|
83
83
|
title: e.value.style.chart.title.text ? K.value : null,
|
|
84
|
-
legend: e.value.style.chart.legend.show ? Q.value : null
|
|
84
|
+
legend: e.value.style.chart.legend.show ? Q.value : null,
|
|
85
|
+
source: Z.value
|
|
85
86
|
});
|
|
86
87
|
r.value.width = o, r.value.height = l;
|
|
87
88
|
});
|
|
@@ -91,64 +92,64 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
91
92
|
L.value = !0;
|
|
92
93
|
}, 600);
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
+
Re(() => {
|
|
95
96
|
V.value && V.value.disconnect();
|
|
96
97
|
});
|
|
97
|
-
const { isPrinting:
|
|
98
|
+
const { isPrinting: se, isImaging: ne, generatePdf: re, generateImage: ue } = ot({
|
|
98
99
|
elementId: `rings_${S.value}`,
|
|
99
100
|
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
100
|
-
}),
|
|
101
|
+
}), ie = d(() => He(e.value.customPalette)), C = n({
|
|
101
102
|
showTable: e.value.table.show,
|
|
102
103
|
showTooltip: e.value.style.chart.tooltip.show
|
|
103
104
|
}), r = n({
|
|
104
105
|
height: 360,
|
|
105
106
|
width: 360
|
|
106
|
-
}),
|
|
107
|
+
}), Pe = d(() => Math.min(r.value.height, r.value.width)), v = n([]);
|
|
107
108
|
function H(t) {
|
|
108
|
-
v.value.includes(t) ? v.value = v.value.filter((o) => o !== t) : v.value.push(t),
|
|
109
|
+
v.value.includes(t) ? v.value = v.value.filter((o) => o !== t) : v.value.push(t), _e("selectLegend", c.value.map((o) => ({
|
|
109
110
|
name: o.name,
|
|
110
111
|
color: o.color,
|
|
111
112
|
value: o.value
|
|
112
113
|
})));
|
|
113
114
|
}
|
|
114
|
-
const
|
|
115
|
+
const Le = d(() => Math.max(
|
|
115
116
|
...B.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
|
|
116
117
|
));
|
|
117
|
-
function
|
|
118
|
-
return t /
|
|
118
|
+
function ve(t) {
|
|
119
|
+
return t / Le.value;
|
|
119
120
|
}
|
|
120
121
|
const B = d(() => f.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
121
|
-
const s =
|
|
122
|
+
const s = Xe(t).reduce((b, I) => b + I, 0);
|
|
122
123
|
return {
|
|
123
124
|
name: o,
|
|
124
|
-
color: l ||
|
|
125
|
+
color: l || ke(l) || ie.value[a] || x[a] || x[a % x.length],
|
|
125
126
|
value: s,
|
|
126
|
-
proportion: s / f.dataset.map((b) => (b.values || []).reduce((I,
|
|
127
|
-
uid:
|
|
127
|
+
proportion: s / f.dataset.map((b) => (b.values || []).reduce((I, Oe) => I + Oe, 0)).reduce((b, I) => b + I, 0),
|
|
128
|
+
uid: be()
|
|
128
129
|
};
|
|
129
|
-
})),
|
|
130
|
+
})), ce = d(() => B.value.map((t) => ({
|
|
130
131
|
...t,
|
|
131
132
|
shape: "circle",
|
|
132
133
|
opacity: v.value.includes(t.uid) ? 0.5 : 1,
|
|
133
134
|
segregate: () => H(t.uid),
|
|
134
135
|
isSegregated: v.value.includes(t.uid)
|
|
135
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
136
|
+
})).toSorted((t, o) => o.value - t.value)), Se = d(() => ({
|
|
136
137
|
cy: "rings-div-legend",
|
|
137
138
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
138
139
|
color: e.value.style.chart.legend.color,
|
|
139
140
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
140
141
|
paddingBottom: 12,
|
|
141
142
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
142
|
-
})),
|
|
143
|
+
})), m = 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
144
|
uid: a,
|
|
144
145
|
name: t,
|
|
145
|
-
color: l ||
|
|
146
|
+
color: l || ke(l) || ie.value[s] || x[s] || x[s % x.length],
|
|
146
147
|
value: o,
|
|
147
|
-
proportion:
|
|
148
|
-
percentage: o /
|
|
149
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
148
|
+
proportion: ve(o),
|
|
149
|
+
percentage: o / m.value * 100,
|
|
150
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ve(o)
|
|
150
151
|
})).toSorted((t, o) => o.value - t.value));
|
|
151
|
-
function
|
|
152
|
+
function Ae() {
|
|
152
153
|
return c.value.map(
|
|
153
154
|
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
154
155
|
name: t,
|
|
@@ -159,17 +160,17 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
159
160
|
})
|
|
160
161
|
);
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
-
function
|
|
163
|
+
const g = d(() => Pe.value - e.value.style.chart.layout.rings.strokeWidth * 2), X = n(null);
|
|
164
|
+
function Ie(t, o) {
|
|
164
165
|
if (v.value.length === f.dataset.length) return;
|
|
165
166
|
X.value = {
|
|
166
167
|
datapoint: o,
|
|
167
168
|
seriesIndex: t,
|
|
168
169
|
series: c.value,
|
|
169
170
|
config: e.value
|
|
170
|
-
},
|
|
171
|
+
}, T.value = t;
|
|
171
172
|
const l = c.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
172
|
-
if (
|
|
173
|
+
if (Je(a) && Ke(() => a({
|
|
173
174
|
seriesIndex: t,
|
|
174
175
|
datapoint: o,
|
|
175
176
|
series: c.value,
|
|
@@ -183,7 +184,7 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
183
184
|
});
|
|
184
185
|
else {
|
|
185
186
|
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>${
|
|
187
|
+
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>${Ce(
|
|
187
188
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
188
189
|
l.value,
|
|
189
190
|
N({
|
|
@@ -195,11 +196,11 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
195
196
|
{ datapoint: o, seriesIndex: t }
|
|
196
197
|
)}
|
|
197
198
|
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${N({
|
|
198
|
-
v: l.value /
|
|
199
|
+
v: l.value / m.value * 100,
|
|
199
200
|
s: "%",
|
|
200
201
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
201
202
|
})})</span></div>` : s += `<b>${N({
|
|
202
|
-
v: l.value /
|
|
203
|
+
v: l.value / m.value * 100,
|
|
203
204
|
s: "%",
|
|
204
205
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
205
206
|
})}</b></div>`), G.value = s;
|
|
@@ -215,7 +216,7 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
215
216
|
}), D = d(() => {
|
|
216
217
|
const t = [
|
|
217
218
|
' <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:
|
|
219
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
219
220
|
"100%"
|
|
220
221
|
], o = w.value.head.map((s, b) => [
|
|
221
222
|
{
|
|
@@ -223,7 +224,7 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
223
224
|
name: s.name
|
|
224
225
|
},
|
|
225
226
|
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] /
|
|
227
|
+
isNaN(w.value.body[b] / m.value) ? "-" : (w.value.body[b] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
227
228
|
]), l = {
|
|
228
229
|
th: {
|
|
229
230
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -248,62 +249,62 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
248
249
|
colNames: a
|
|
249
250
|
};
|
|
250
251
|
});
|
|
251
|
-
function
|
|
252
|
-
|
|
252
|
+
function de() {
|
|
253
|
+
Be(() => {
|
|
253
254
|
const t = w.value.head.map((a, s) => [[
|
|
254
255
|
a.name
|
|
255
|
-
], [w.value.body[s]], [isNaN(w.value.body[s] /
|
|
256
|
-
|
|
256
|
+
], [w.value.body[s]], [isNaN(w.value.body[s] / m.value) ? "-" : w.value.body[s] / m.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Qe(o);
|
|
257
|
+
Ze({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
257
258
|
});
|
|
258
259
|
}
|
|
259
260
|
const A = n(!1);
|
|
260
|
-
function
|
|
261
|
+
function Fe(t) {
|
|
261
262
|
A.value = t, J.value += 1;
|
|
262
263
|
}
|
|
263
|
-
function
|
|
264
|
+
function pe() {
|
|
264
265
|
C.value.showTable = !C.value.showTable;
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
+
function he() {
|
|
267
268
|
C.value.showTooltip = !C.value.showTooltip;
|
|
268
269
|
}
|
|
269
270
|
const U = n(!1);
|
|
270
271
|
function j() {
|
|
271
272
|
U.value = !U.value;
|
|
272
273
|
}
|
|
273
|
-
return
|
|
274
|
-
getData:
|
|
275
|
-
generatePdf:
|
|
276
|
-
generateCsv:
|
|
277
|
-
generateImage:
|
|
278
|
-
toggleTable:
|
|
279
|
-
toggleTooltip:
|
|
274
|
+
return Te({
|
|
275
|
+
getData: Ae,
|
|
276
|
+
generatePdf: re,
|
|
277
|
+
generateCsv: de,
|
|
278
|
+
generateImage: ue,
|
|
279
|
+
toggleTable: pe,
|
|
280
|
+
toggleTooltip: he,
|
|
280
281
|
toggleAnnotator: j
|
|
281
|
-
}), (t, o) => (u(),
|
|
282
|
+
}), (t, o) => (u(), y("div", {
|
|
282
283
|
ref_key: "ringsChart",
|
|
283
284
|
ref: P,
|
|
284
285
|
class: W(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
285
286
|
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
287
|
id: `rings_${S.value}`,
|
|
287
288
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
288
|
-
|
|
289
|
+
T.value = null, R.value = !1;
|
|
289
290
|
})
|
|
290
291
|
}, [
|
|
291
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
292
|
+
e.value.userOptions.buttons.annotator ? (u(), _(ct, {
|
|
292
293
|
key: 0,
|
|
293
294
|
parent: P.value,
|
|
294
295
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
295
296
|
color: e.value.style.chart.color,
|
|
296
297
|
active: U.value,
|
|
297
298
|
onClose: j
|
|
298
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
299
|
-
e.value.style.chart.title.text ? (u(),
|
|
299
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : $("", !0),
|
|
300
|
+
e.value.style.chart.title.text ? (u(), y("div", {
|
|
300
301
|
key: 1,
|
|
301
302
|
ref_key: "chartTitle",
|
|
302
303
|
ref: K,
|
|
303
304
|
style: "width:100%;background:transparent"
|
|
304
305
|
}, [
|
|
305
|
-
(u(),
|
|
306
|
-
key: `title_${
|
|
306
|
+
(u(), _(lt, {
|
|
307
|
+
key: `title_${ee.value}`,
|
|
307
308
|
config: {
|
|
308
309
|
title: {
|
|
309
310
|
cy: "rings-div-title",
|
|
@@ -315,15 +316,15 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
}, null, 8, ["config"]))
|
|
318
|
-
], 512)) :
|
|
319
|
-
e.value.userOptions.show && z.value ? (u(),
|
|
319
|
+
], 512)) : $("", !0),
|
|
320
|
+
e.value.userOptions.show && z.value ? (u(), _(at, {
|
|
320
321
|
ref_key: "details",
|
|
321
|
-
ref:
|
|
322
|
+
ref: Ne,
|
|
322
323
|
key: `user_options_${J.value}`,
|
|
323
324
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
324
325
|
color: e.value.style.chart.color,
|
|
325
|
-
isPrinting: i(
|
|
326
|
-
isImaging: i(
|
|
326
|
+
isPrinting: i(se),
|
|
327
|
+
isImaging: i(ne),
|
|
327
328
|
uid: S.value,
|
|
328
329
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
329
330
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -338,74 +339,74 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
338
339
|
position: e.value.userOptions.position,
|
|
339
340
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
340
341
|
isAnnotation: U.value,
|
|
341
|
-
onToggleFullscreen:
|
|
342
|
-
onGeneratePdf: i(
|
|
343
|
-
onGenerateCsv:
|
|
344
|
-
onGenerateImage: i(
|
|
345
|
-
onToggleTable:
|
|
346
|
-
onToggleTooltip:
|
|
342
|
+
onToggleFullscreen: Fe,
|
|
343
|
+
onGeneratePdf: i(re),
|
|
344
|
+
onGenerateCsv: de,
|
|
345
|
+
onGenerateImage: i(ue),
|
|
346
|
+
onToggleTable: pe,
|
|
347
|
+
onToggleTooltip: he,
|
|
347
348
|
onToggleAnnotator: j
|
|
348
|
-
},
|
|
349
|
+
}, Ve({ _: 2 }, [
|
|
349
350
|
t.$slots.optionTooltip ? {
|
|
350
351
|
name: "optionTooltip",
|
|
351
352
|
fn: p(() => [
|
|
352
|
-
|
|
353
|
+
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
353
354
|
]),
|
|
354
355
|
key: "0"
|
|
355
356
|
} : void 0,
|
|
356
357
|
t.$slots.optionPdf ? {
|
|
357
358
|
name: "optionPdf",
|
|
358
359
|
fn: p(() => [
|
|
359
|
-
|
|
360
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
360
361
|
]),
|
|
361
362
|
key: "1"
|
|
362
363
|
} : void 0,
|
|
363
364
|
t.$slots.optionCsv ? {
|
|
364
365
|
name: "optionCsv",
|
|
365
366
|
fn: p(() => [
|
|
366
|
-
|
|
367
|
+
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
367
368
|
]),
|
|
368
369
|
key: "2"
|
|
369
370
|
} : void 0,
|
|
370
371
|
t.$slots.optionImg ? {
|
|
371
372
|
name: "optionImg",
|
|
372
373
|
fn: p(() => [
|
|
373
|
-
|
|
374
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
374
375
|
]),
|
|
375
376
|
key: "3"
|
|
376
377
|
} : void 0,
|
|
377
378
|
t.$slots.optionTable ? {
|
|
378
379
|
name: "optionTable",
|
|
379
380
|
fn: p(() => [
|
|
380
|
-
|
|
381
|
+
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
381
382
|
]),
|
|
382
383
|
key: "4"
|
|
383
384
|
} : void 0,
|
|
384
385
|
t.$slots.optionFullscreen ? {
|
|
385
386
|
name: "optionFullscreen",
|
|
386
387
|
fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
387
|
-
|
|
388
|
+
h(t.$slots, "optionFullscreen", O(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
388
389
|
]),
|
|
389
390
|
key: "5"
|
|
390
391
|
} : void 0,
|
|
391
392
|
t.$slots.optionAnnotator ? {
|
|
392
393
|
name: "optionAnnotator",
|
|
393
394
|
fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
394
|
-
|
|
395
|
+
h(t.$slots, "optionAnnotator", O(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
395
396
|
]),
|
|
396
397
|
key: "6"
|
|
397
398
|
} : void 0
|
|
398
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
399
|
-
z.value ? (u(),
|
|
399
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : $("", !0),
|
|
400
|
+
z.value ? (u(), y("svg", {
|
|
400
401
|
key: 3,
|
|
401
|
-
xmlns: i(
|
|
402
|
+
xmlns: i(je),
|
|
402
403
|
class: W({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
403
404
|
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
404
405
|
style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
405
406
|
}, [
|
|
406
|
-
|
|
407
|
+
ge(vt),
|
|
407
408
|
k("defs", null, [
|
|
408
|
-
(u(!0),
|
|
409
|
+
(u(!0), y(fe, null, ye(c.value, (l, a) => (u(), y("radialGradient", {
|
|
409
410
|
cx: "50%",
|
|
410
411
|
cy: "30%",
|
|
411
412
|
r: "50%",
|
|
@@ -415,62 +416,62 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
415
416
|
}, [
|
|
416
417
|
k("stop", {
|
|
417
418
|
offset: "0%",
|
|
418
|
-
"stop-color": i(
|
|
419
|
-
}, null, 8,
|
|
419
|
+
"stop-color": i(Ye)(i(qe)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
420
|
+
}, null, 8, ft),
|
|
420
421
|
k("stop", {
|
|
421
422
|
offset: "100%",
|
|
422
423
|
"stop-color": l.color
|
|
423
|
-
}, null, 8,
|
|
424
|
-
], 8,
|
|
424
|
+
}, null, 8, yt)
|
|
425
|
+
], 8, gt))), 256))
|
|
425
426
|
]),
|
|
426
|
-
(u(!0),
|
|
427
|
+
(u(!0), y(fe, null, ye(c.value, (l, a) => (u(), y("g", null, [
|
|
427
428
|
k("circle", {
|
|
428
429
|
class: W({
|
|
429
430
|
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
430
431
|
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
431
|
-
"vue-ui-rings-opacity":
|
|
432
|
+
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
432
433
|
}),
|
|
433
434
|
style: F(`animation-delay:${a * 100}ms`),
|
|
434
435
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
435
436
|
cx: r.value.width / 2,
|
|
436
|
-
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 +
|
|
437
|
-
r: i(q)(
|
|
437
|
+
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + g.value * c.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
438
|
+
r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
438
439
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
439
|
-
}, null, 14,
|
|
440
|
+
}, null, 14, mt),
|
|
440
441
|
k("circle", {
|
|
441
442
|
class: W({
|
|
442
443
|
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
443
444
|
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
444
445
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
445
|
-
"vue-ui-rings-blur":
|
|
446
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
446
447
|
}),
|
|
447
448
|
style: F(`animation-delay:${a * 100}ms`),
|
|
448
449
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
449
450
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
450
451
|
cx: r.value.width / 2,
|
|
451
|
-
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 +
|
|
452
|
-
r: i(q)(
|
|
452
|
+
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + g.value * c.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
453
|
+
r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
453
454
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${S.value}_${a})` : l.color
|
|
454
|
-
}, null, 14,
|
|
455
|
+
}, null, 14, bt),
|
|
455
456
|
k("circle", {
|
|
456
457
|
"data-cy-trap": "",
|
|
457
458
|
stroke: "none",
|
|
458
459
|
cx: r.value.width / 2,
|
|
459
|
-
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 +
|
|
460
|
-
r: i(q)(
|
|
460
|
+
cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + g.value * c.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
461
|
+
r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
461
462
|
fill: "transparent",
|
|
462
|
-
onMouseenter: (s) =>
|
|
463
|
+
onMouseenter: (s) => Ie(a, l),
|
|
463
464
|
onMouseleave: o[0] || (o[0] = (s) => {
|
|
464
|
-
|
|
465
|
+
T.value = null, R.value = !1;
|
|
465
466
|
})
|
|
466
|
-
}, null, 40,
|
|
467
|
+
}, null, 40, kt)
|
|
467
468
|
]))), 256)),
|
|
468
|
-
|
|
469
|
-
], 14,
|
|
470
|
-
t.$slots.watermark ? (u(),
|
|
471
|
-
|
|
472
|
-
])) :
|
|
473
|
-
z.value ?
|
|
469
|
+
h(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
470
|
+
], 14, ht)) : $("", !0),
|
|
471
|
+
t.$slots.watermark ? (u(), y("div", Ct, [
|
|
472
|
+
h(t.$slots, "watermark", O(M({ isPrinting: i(se) || i(ne) })), void 0, !0)
|
|
473
|
+
])) : $("", !0),
|
|
474
|
+
z.value ? $("", !0) : (u(), _(ut, {
|
|
474
475
|
key: 5,
|
|
475
476
|
config: {
|
|
476
477
|
type: "rings",
|
|
@@ -486,10 +487,10 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
486
487
|
ref_key: "chartLegend",
|
|
487
488
|
ref: Q
|
|
488
489
|
}, [
|
|
489
|
-
e.value.style.chart.legend.show ? (u(),
|
|
490
|
-
key: `legend_${
|
|
491
|
-
legendSet:
|
|
492
|
-
config:
|
|
490
|
+
e.value.style.chart.legend.show ? (u(), _(rt, {
|
|
491
|
+
key: `legend_${le.value}`,
|
|
492
|
+
legendSet: ce.value,
|
|
493
|
+
config: Se.value,
|
|
493
494
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l.uid))
|
|
494
495
|
}, {
|
|
495
496
|
item: p(({ legend: l, index: a }) => [
|
|
@@ -498,7 +499,7 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
498
499
|
onClick: (s) => H(l.uid),
|
|
499
500
|
style: F(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
|
|
500
501
|
}, [
|
|
501
|
-
|
|
502
|
+
me(E(l.name) + ": " + E(i(Ce)(
|
|
502
503
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
503
504
|
l.value,
|
|
504
505
|
i(N)({
|
|
@@ -509,20 +510,28 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
509
510
|
}),
|
|
510
511
|
{ datapoint: l, seriesIndex: a }
|
|
511
512
|
)) + " ", 1),
|
|
512
|
-
v.value.includes(l.uid) ? (u(),
|
|
513
|
-
v: l.value /
|
|
513
|
+
v.value.includes(l.uid) ? (u(), y("span", Tt, " ( - % ) ")) : (u(), y("span", $t, " (" + E(isNaN(l.value / m.value) ? "-" : i(N)({
|
|
514
|
+
v: l.value / m.value * 100,
|
|
514
515
|
s: "%",
|
|
515
516
|
r: e.value.style.chart.legend.roundingPercentage
|
|
516
517
|
})) + ") ", 1))
|
|
517
|
-
], 12,
|
|
518
|
+
], 12, wt)
|
|
518
519
|
]),
|
|
519
520
|
_: 1
|
|
520
|
-
}, 8, ["legendSet", "config"])) :
|
|
521
|
+
}, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
521
522
|
key: 1,
|
|
522
|
-
legend:
|
|
523
|
+
legend: ce.value
|
|
523
524
|
}, void 0, !0)
|
|
524
525
|
], 512),
|
|
525
|
-
|
|
526
|
+
t.$slots.source ? (u(), y("div", {
|
|
527
|
+
key: 6,
|
|
528
|
+
ref_key: "source",
|
|
529
|
+
ref: Z,
|
|
530
|
+
dir: "auto"
|
|
531
|
+
}, [
|
|
532
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
533
|
+
], 512)) : $("", !0),
|
|
534
|
+
ge(st, {
|
|
526
535
|
show: C.value.showTooltip && R.value && v.value.length < f.dataset.length,
|
|
527
536
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
528
537
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -538,15 +547,15 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
538
547
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
539
548
|
}, {
|
|
540
549
|
"tooltip-before": p(() => [
|
|
541
|
-
|
|
550
|
+
h(t.$slots, "tooltip-before", O(M({ ...X.value })), void 0, !0)
|
|
542
551
|
]),
|
|
543
552
|
"tooltip-after": p(() => [
|
|
544
|
-
|
|
553
|
+
h(t.$slots, "tooltip-after", O(M({ ...X.value })), void 0, !0)
|
|
545
554
|
]),
|
|
546
555
|
_: 3
|
|
547
556
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
548
|
-
z.value ? (u(),
|
|
549
|
-
key:
|
|
557
|
+
z.value ? (u(), _(it, {
|
|
558
|
+
key: 7,
|
|
550
559
|
hideDetails: "",
|
|
551
560
|
config: {
|
|
552
561
|
open: C.value.showTable,
|
|
@@ -562,8 +571,8 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
562
571
|
}
|
|
563
572
|
}, {
|
|
564
573
|
content: p(() => [
|
|
565
|
-
(u(),
|
|
566
|
-
key: `table_${
|
|
574
|
+
(u(), _(nt, {
|
|
575
|
+
key: `table_${te.value}`,
|
|
567
576
|
colNames: D.value.colNames,
|
|
568
577
|
head: D.value.head,
|
|
569
578
|
body: D.value.body,
|
|
@@ -575,19 +584,19 @@ const dt = ["id"], pt = ["xmlns", "viewBox"], ht = ["id"], gt = ["stop-color"],
|
|
|
575
584
|
k("div", {
|
|
576
585
|
innerHTML: l,
|
|
577
586
|
style: { display: "flex", "align-items": "center" }
|
|
578
|
-
}, null, 8,
|
|
587
|
+
}, null, 8, _t)
|
|
579
588
|
]),
|
|
580
589
|
td: p(({ td: l }) => [
|
|
581
|
-
|
|
590
|
+
me(E(l.name || l), 1)
|
|
582
591
|
]),
|
|
583
592
|
_: 1
|
|
584
593
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
585
594
|
]),
|
|
586
595
|
_: 1
|
|
587
|
-
}, 8, ["config"])) :
|
|
588
|
-
], 46,
|
|
596
|
+
}, 8, ["config"])) : $("", !0)
|
|
597
|
+
], 46, pt));
|
|
589
598
|
}
|
|
590
|
-
},
|
|
599
|
+
}, Ut = /* @__PURE__ */ dt(xt, [["__scopeId", "data-v-eda91fd5"]]);
|
|
591
600
|
export {
|
|
592
|
-
|
|
601
|
+
Ut as default
|
|
593
602
|
};
|