vue-data-ui 2.4.3 → 2.4.5
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 +3 -1
- package/dist/{Arrow-Dz6AomGr.cjs → Arrow-BeQLfJqp.cjs} +1 -1
- package/dist/{Arrow-C7lNL7sY.js → Arrow-Dvaq-qLp.js} +1 -1
- package/dist/{BaseIcon-uALK38Ov.cjs → BaseIcon-BQM6PtJu.cjs} +1 -1
- package/dist/{BaseIcon-BbvG1AlW.js → BaseIcon-D9DRVW03.js} +1 -1
- package/dist/{DataTable-DTzynbND.cjs → DataTable-DO2GAcBm.cjs} +1 -1
- package/dist/{DataTable-DYqC2pqu.js → DataTable-rs_YrvMR.js} +2 -2
- package/dist/{Legend-Cgw4lO2O.cjs → Legend-BoBvZGqQ.cjs} +1 -1
- package/dist/{Legend-DNgTCgEK.js → Legend-DrmUpnIK.js} +1 -1
- package/dist/{PackageVersion-VkaUzgmt.js → PackageVersion-D9rYHrFZ.js} +1 -1
- package/dist/{PackageVersion-DwI-KhXH.cjs → PackageVersion-DdLmDkTt.cjs} +1 -1
- package/dist/PenAndPaper-C-KjtyNA.js +308 -0
- package/dist/PenAndPaper-DyMNuRla.cjs +1 -0
- package/dist/{Shape-D2Dpshg1.cjs → Shape-BGqIhzPX.cjs} +1 -1
- package/dist/{Shape-Bwon0l0g.js → Shape-CBrmBvYy.js} +1 -1
- package/dist/{Slicer-TfpN2Cr4.js → Slicer-4R6np1wa.js} +3 -3
- package/dist/{Slicer-uSjfNJjG.cjs → Slicer-BLkkkNUl.cjs} +1 -1
- package/dist/{Title-0Tp4hZ4u.cjs → Title-Dn00hErp.cjs} +1 -1
- package/dist/{Title-C5pIfQAz.js → Title-W7iJGPjg.js} +1 -1
- package/dist/{Tooltip-9Tp2Yrd1.cjs → Tooltip-DJiwKA4y.cjs} +1 -1
- package/dist/{Tooltip-Cz24YLfw.js → Tooltip-Pv3Bhir5.js} +1 -1
- package/dist/{index-Bya_q1J-.js → index-C1GB0E49.js} +1 -1
- package/dist/{index-eFox7weK.cjs → index-C9HllqQA.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B33hazbH.js → useNestedProp-CNAPgW6E.js} +1 -1
- package/dist/{useNestedProp-BkgEhTQY.cjs → useNestedProp-DOr0hj4s.cjs} +1 -1
- package/dist/{usePrinter-CSRFnDBU.cjs → usePrinter-FSAw5pod.cjs} +1 -1
- package/dist/{usePrinter-CiHd1FwD.js → usePrinter-y5uHyknw.js} +1 -1
- package/dist/useResponsive-BJ7DTGpm.cjs +1 -0
- package/dist/{useResponsive-BY8tgM1n.js → useResponsive-CoxXLe23.js} +8 -7
- package/dist/{vue-data-ui-Bduq4f2p.js → vue-data-ui-Bg5KOKEX.js} +58 -58
- package/dist/{vue-data-ui-BTtxyUc3.cjs → vue-data-ui-Bnkz3Xmu.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BUEq_VdY.js → vue-ui-3d-bar-mUrcbG6J.js} +9 -9
- package/dist/{vue-ui-3d-bar-B-P7PMHs.cjs → vue-ui-3d-bar-sjkBzHFn.cjs} +1 -1
- package/dist/{vue-ui-accordion-TEMpM1hO.cjs → vue-ui-accordion-BkUGNe2H.cjs} +1 -1
- package/dist/{vue-ui-accordion-DfUfL2dI.js → vue-ui-accordion-DWyRC3-h.js} +3 -3
- package/dist/vue-ui-age-pyramid-CKQ8OHuS.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CH72tAMb.js → vue-ui-age-pyramid-CVktvXpY.js} +145 -137
- package/dist/{vue-ui-annotator-DPeJ2its.js → vue-ui-annotator-Cp8KDkuP.js} +1 -1
- package/dist/{vue-ui-annotator-DU_DJKCw.cjs → vue-ui-annotator-DSJ25l4s.cjs} +1 -1
- package/dist/vue-ui-bullet-Bg3TPFgV.cjs +34 -0
- package/dist/{vue-ui-bullet-CtP3MlUT.js → vue-ui-bullet-D4atsFQx.js} +75 -69
- package/dist/vue-ui-candlestick-BhdG9CY1.cjs +2 -0
- package/dist/{vue-ui-candlestick-DDil13a0.js → vue-ui-candlestick-DUNyCQ6Z.js} +240 -232
- package/dist/{vue-ui-carousel-table-BaeIxyc0.js → vue-ui-carousel-table-BRrYpr-2.js} +4 -4
- package/dist/{vue-ui-carousel-table-C7SJIOG-.cjs → vue-ui-carousel-table-DF4FhrBd.cjs} +1 -1
- package/dist/vue-ui-chestnut-BLBS9QO2.cjs +6 -0
- package/dist/{vue-ui-chestnut-BczSJF6S.js → vue-ui-chestnut-CjS4qC_J.js} +262 -256
- package/dist/{vue-ui-cursor-Dg_Dmww-.js → vue-ui-cursor-C3SpabMF.js} +2 -2
- package/dist/{vue-ui-cursor-C2Pj_CI_.cjs → vue-ui-cursor-DzVt5_py.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Bul9dqx1.js → vue-ui-dashboard-BCOKtsyJ.js} +2 -2
- package/dist/{vue-ui-dashboard-Cg020NiT.cjs → vue-ui-dashboard-CIv7W8Yn.cjs} +1 -1
- package/dist/{vue-ui-digits-B8iAa4YZ.js → vue-ui-digits-DaMKAZkt.js} +2 -2
- package/dist/{vue-ui-digits-Ctgd84JR.cjs → vue-ui-digits-yNfQgOLZ.cjs} +1 -1
- package/dist/{vue-ui-donut-DUcp-fat.js → vue-ui-donut-B_-VAqBw.js} +338 -330
- package/dist/vue-ui-donut-Bo4SbdEe.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-C_YMbTwq.js → vue-ui-donut-evolution-C9TXFzCm.js} +163 -156
- package/dist/vue-ui-donut-evolution-DOPY3I3Q.cjs +1 -0
- package/dist/{vue-ui-dumbbell-Buwngz_V.js → vue-ui-dumbbell-BP_Vf_u2.js} +208 -200
- package/dist/vue-ui-dumbbell-Cgwng71s.cjs +9 -0
- package/dist/vue-ui-flow-BiQj4v8i.cjs +1 -0
- package/dist/{vue-ui-flow-Bz3c0K5P.js → vue-ui-flow-DHoxK4t1.js} +130 -124
- package/dist/vue-ui-galaxy-C5ZaT8pw.cjs +1 -0
- package/dist/{vue-ui-galaxy-Cjh0XGTX.js → vue-ui-galaxy-DuLPsC4Q.js} +125 -119
- package/dist/vue-ui-gauge-26eHgOjR.cjs +1 -0
- package/dist/{vue-ui-gauge-B1UvGkQa.js → vue-ui-gauge-BhrXiD4S.js} +167 -159
- package/dist/{vue-ui-gizmo-DFW6HnHp.cjs → vue-ui-gizmo-Bb_SWCsE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DUQ4t-At.js → vue-ui-gizmo-D3kBYI1G.js} +3 -3
- package/dist/vue-ui-heatmap-Bc4HvgMk.cjs +1 -0
- package/dist/{vue-ui-heatmap-C-poazUw.js → vue-ui-heatmap-wjsvn1_e.js} +156 -149
- package/dist/{vue-ui-kpi-Z4Oi4raz.cjs → vue-ui-kpi-BbvfVZn0.cjs} +1 -1
- package/dist/{vue-ui-kpi-DXe-vxAk.js → vue-ui-kpi-DLJuo47I.js} +3 -3
- package/dist/{vue-ui-mini-loader-MMvpm9pz.cjs → vue-ui-mini-loader-BaxwhF7o.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BVtHTqxS.js → vue-ui-mini-loader-D4aLvv-D.js} +2 -2
- package/dist/{vue-ui-molecule-BaJpDZND.js → vue-ui-molecule-DXpMMgdW.js} +109 -103
- package/dist/vue-ui-molecule-ZqAJHh6x.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BUNDwsEI.js → vue-ui-mood-radar-B_uWY92C.js} +173 -166
- package/dist/vue-ui-mood-radar-BhteAPWH.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-mDy2hXa6.js → vue-ui-nested-donuts-By32x0Y7.js} +311 -303
- package/dist/vue-ui-nested-donuts-ClgkX1-p.cjs +17 -0
- package/dist/vue-ui-onion-BdIxJpfA.cjs +5 -0
- package/dist/{vue-ui-onion-DwFG3HAI.js → vue-ui-onion-dQTXKNju.js} +149 -141
- package/dist/{vue-ui-parallel-coordinate-plot-ImET_zeo.js → vue-ui-parallel-coordinate-plot-CTF9Ujab.js} +186 -178
- package/dist/vue-ui-parallel-coordinate-plot-D6MUp-5W.cjs +8 -0
- package/dist/vue-ui-quadrant-CArA4Vmm.cjs +1 -0
- package/dist/{vue-ui-quadrant-BeveRihK.js → vue-ui-quadrant-Coqh0pYO.js} +225 -217
- package/dist/vue-ui-quick-chart-6Av74TTC.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DAhllTfa.js → vue-ui-quick-chart-Bfdddr_B.js} +386 -378
- package/dist/{vue-ui-radar-BllatzRa.js → vue-ui-radar-BpdGMVHw.js} +172 -164
- package/dist/vue-ui-radar-CLr-gu1X.cjs +1 -0
- package/dist/{vue-ui-rating-D1ykV4xO.js → vue-ui-rating-B-YedcK0.js} +2 -2
- package/dist/{vue-ui-rating-BoZo7caL.cjs → vue-ui-rating-KFJoH-JV.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BLVThOqT.js +366 -0
- package/dist/vue-ui-relation-circle-DuGQKFor.cjs +1 -0
- package/dist/{vue-ui-rings-B-ZcX6y1.js → vue-ui-rings-BGeYkj-O.js} +196 -188
- package/dist/vue-ui-rings-DzgehQZ5.cjs +2 -0
- package/dist/{vue-ui-scatter-DG43ck1g.js → vue-ui-scatter-CsBPCCco.js} +288 -280
- package/dist/vue-ui-scatter-jPnr8qI0.cjs +1 -0
- package/dist/{vue-ui-screenshot-C1JBP_N0.cjs → vue-ui-screenshot-1nXVH-hp.cjs} +1 -1
- package/dist/{vue-ui-screenshot-p3ca8cAl.js → vue-ui-screenshot-B2FTnuxH.js} +1 -1
- package/dist/{vue-ui-skeleton-BYssP0K4.js → vue-ui-skeleton-CE6ibl1T.js} +3 -3
- package/dist/{vue-ui-skeleton-BqKzuhkB.cjs → vue-ui-skeleton-CPwED1As.cjs} +1 -1
- package/dist/{vue-ui-smiley-D7dDCdpq.js → vue-ui-smiley-2H9hMFZ_.js} +2 -2
- package/dist/{vue-ui-smiley-BXKVpHl2.cjs → vue-ui-smiley-DqOZwhT4.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-9V60hM3Z.cjs → vue-ui-spark-trend-CLW85O32.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-GWFrO_0z.js → vue-ui-spark-trend-Dx9xVq9a.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bgn6AY0q.cjs → vue-ui-sparkbar-DJDXrRyp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CwqlyAyv.js → vue-ui-sparkbar-zafUIv1n.js} +4 -4
- package/dist/{vue-ui-sparkgauge-F2XbiXyA.js → vue-ui-sparkgauge-CFAdhTLk.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dqntz2Zv.cjs → vue-ui-sparkgauge-CPNAXUyl.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DRIKK6Ym.js → vue-ui-sparkhistogram-B3DIjpaE.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DnY4-Sdn.cjs → vue-ui-sparkhistogram-CHc3_xRE.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cxtzdlhi.js → vue-ui-sparkline-C-LE7J9H.js} +5 -5
- package/dist/{vue-ui-sparkline-CAEs-gtK.cjs → vue-ui-sparkline-U22Yhwy7.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-0A1klq9s.js → vue-ui-sparkstackbar-BzLoGC-y.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-D37ms1rx.cjs → vue-ui-sparkstackbar-nx-Lt8sX.cjs} +1 -1
- package/dist/{vue-ui-stackbar-wun4S3C0.cjs → vue-ui-stackbar-BwgHLhj2.cjs} +1 -1
- package/dist/{vue-ui-stackbar-ByOuJSdM.js → vue-ui-stackbar-C5xNRXnW.js} +13 -13
- package/dist/{vue-ui-strip-plot-CMD0MSqY.js → vue-ui-strip-plot-6khUDDeA.js} +204 -196
- package/dist/vue-ui-strip-plot-BFUtZW4b.cjs +1 -0
- package/dist/{vue-ui-table-aj0XZ7T5.cjs → vue-ui-table-B3Eng0fH.cjs} +1 -1
- package/dist/{vue-ui-table-B75DJ39t.js → vue-ui-table-DsBM7Osw.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Ce93TyBF.cjs → vue-ui-table-heatmap-DwCdS68z.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BO2ugWqD.js → vue-ui-table-heatmap-ccQKInFD.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CbjfAaj2.js → vue-ui-table-sparkline-BU-hOCZ7.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D6KJjDnU.cjs → vue-ui-table-sparkline-CDmrQFKv.cjs} +1 -1
- package/dist/vue-ui-thermometer-BhHYcxmT.cjs +1 -0
- package/dist/{vue-ui-thermometer-Pq4PvSIP.js → vue-ui-thermometer-DuI3uDCZ.js} +171 -165
- package/dist/{vue-ui-timer-B6IB6yS6.cjs → vue-ui-timer-D7EKaAqa.cjs} +1 -1
- package/dist/{vue-ui-timer-Bk3BvB-B.js → vue-ui-timer-Gk3bl_em.js} +6 -6
- package/dist/{vue-ui-tiremarks-CU9HJIqf.js → vue-ui-tiremarks-AcEjMpJH.js} +119 -112
- package/dist/vue-ui-tiremarks-UX2FbnyG.cjs +1 -0
- package/dist/{vue-ui-treemap-DY-lRAhC.js → vue-ui-treemap-CFTpzgX5.js} +266 -258
- package/dist/vue-ui-treemap-D6CTMfsm.cjs +1 -0
- package/dist/vue-ui-vertical-bar-BzY2H3UC.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CtnIKsM1.js → vue-ui-vertical-bar-CuBJx5l1.js} +245 -237
- package/dist/vue-ui-waffle-CZxR13EG.cjs +1 -0
- package/dist/{vue-ui-waffle-reOsx-gJ.js → vue-ui-waffle-rDfZLxvH.js} +224 -216
- package/dist/{vue-ui-wheel-kYxny3vn.js → vue-ui-wheel-BFt2o4yO.js} +125 -117
- package/dist/vue-ui-wheel-BM-St3xT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DwLY4QdB.cjs → vue-ui-word-cloud-DjKyKUbA.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DbMqrHAf.js → vue-ui-word-cloud-pNPIrJ-g.js} +11 -11
- package/dist/vue-ui-xy-CBZUMMlP.cjs +3 -0
- package/dist/{vue-ui-xy-rbACig0h.js → vue-ui-xy-DwkEc4Np.js} +302 -291
- package/dist/{vue-ui-xy-canvas-B0HTR7OV.js → vue-ui-xy-canvas-CW90CROL.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CgJd5FiT.cjs → vue-ui-xy-canvas-DWGGLom_.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +0 -1
- package/dist/PenAndPaper-DAZYA8Ew.js +0 -269
- package/dist/useResponsive-CodiGUOE.cjs +0 -1
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +0 -1
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +0 -34
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +0 -2
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +0 -6
- package/dist/vue-ui-donut-D7KT9EAp.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +0 -1
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +0 -9
- package/dist/vue-ui-flow-D6rc8J-8.cjs +0 -1
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +0 -1
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +0 -1
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +0 -1
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +0 -17
- package/dist/vue-ui-onion-GWNoZRhw.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +0 -8
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +0 -1
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +0 -15
- package/dist/vue-ui-radar-BJH5SE6-.cjs +0 -1
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +0 -1
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +0 -358
- package/dist/vue-ui-rings-DjH3CK23.cjs +0 -2
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +0 -1
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +0 -1
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +0 -1
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +0 -1
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +0 -1
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +0 -4
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +0 -1
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +0 -1
- package/dist/vue-ui-xy-CGWzriYn.cjs +0 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as n, computed 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
|
|
16
|
-
key:
|
|
1
|
+
import { ref as n, computed as v, watch as Re, onMounted as Ve, onBeforeUnmount as Be, openBlock as r, createElementBlock as f, normalizeClass as W, normalizeStyle as I, createBlock as _, createCommentVNode as k, unref as i, createSlots as De, withCtx as p, renderSlot as h, normalizeProps as F, guardReactiveProps as M, createVNode as fe, createElementVNode as C, Fragment as ye, renderList as me, createTextVNode as be, toDisplayString as E, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as We, c as ke, t as Ee, a as Ge, p as x, o as He, e as Y, g as Xe, b as je, I as Ye, d as Ce, f as N, X as qe, s as Je, w as Ke, v as q, i as we, x as Qe, y as Ze, q as et, r as tt } from "./index-C1GB0E49.js";
|
|
3
|
+
import { t as lt, u as ot } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as at } from "./Title-W7iJGPjg.js";
|
|
5
|
+
import { u as st, U as nt } from "./usePrinter-y5uHyknw.js";
|
|
6
|
+
import { _ as rt } from "./Tooltip-Pv3Bhir5.js";
|
|
7
|
+
import { D as ut } from "./DataTable-rs_YrvMR.js";
|
|
8
|
+
import { L as it } from "./Legend-DrmUpnIK.js";
|
|
9
|
+
import vt from "./vue-ui-skeleton-CE6ibl1T.js";
|
|
10
|
+
import ct from "./vue-ui-accordion-DWyRC3-h.js";
|
|
11
|
+
import { u as $e } from "./useNestedProp-CNAPgW6E.js";
|
|
12
|
+
import { _ as dt } from "./PackageVersion-D9rYHrFZ.js";
|
|
13
|
+
import { P as pt } from "./PenAndPaper-C-KjtyNA.js";
|
|
14
|
+
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"], bt = ["stop-color"], kt = ["stroke", "cx", "cy", "r", "fill"], Ct = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], wt = ["cx", "cy", "r", "onMouseenter"], $t = {
|
|
16
|
+
key: 5,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, Tt = ["onClick"], _t = { key: 0 }, xt = { key: 1 }, Nt = ["innerHTML"], Pt = {
|
|
19
19
|
__name: "vue-ui-rings",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,40 +32,40 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
get: () =>
|
|
35
|
+
setup(Te, { expose: _e, emit: xe }) {
|
|
36
|
+
const y = Te, { vue_ui_rings: Ne } = We(), L = n(!1), z = v(() => !!y.dataset && y.dataset.length), S = n(ke()), Pe = 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(null), te = n(0), le = n(0), oe = n(0), e = v({
|
|
37
|
+
get: () => ae(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
});
|
|
40
|
-
function
|
|
41
|
-
const t =
|
|
42
|
-
userConfig:
|
|
43
|
-
defaultConfig:
|
|
40
|
+
function ae() {
|
|
41
|
+
const t = $e({
|
|
42
|
+
userConfig: y.config,
|
|
43
|
+
defaultConfig: Ne
|
|
44
44
|
});
|
|
45
45
|
return t.theme ? {
|
|
46
|
-
|
|
47
|
-
userConfig:
|
|
46
|
+
...$e({
|
|
47
|
+
userConfig: Ee.vue_ui_rings[t.theme] || y.config,
|
|
48
48
|
defaultConfig: t
|
|
49
49
|
}),
|
|
50
|
-
customPalette:
|
|
50
|
+
customPalette: Ge[t.theme] || x
|
|
51
51
|
} : t;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
e.value =
|
|
53
|
+
Re(() => y.config, (t) => {
|
|
54
|
+
e.value = ae(), se(), te.value += 1, le.value += 1, oe.value += 1;
|
|
55
55
|
}, { deep: !0 });
|
|
56
56
|
const V = n(null);
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Ve(() => {
|
|
58
|
+
se();
|
|
59
59
|
});
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
60
|
+
function se() {
|
|
61
|
+
if (He(y.dataset) ? Y({
|
|
62
62
|
componentName: "VueUiRings",
|
|
63
63
|
type: "dataset"
|
|
64
|
-
}) :
|
|
64
|
+
}) : y.dataset.forEach((t, o) => {
|
|
65
65
|
t.values.length || Y({
|
|
66
66
|
componentName: "VueUiRings",
|
|
67
67
|
type: "dataset"
|
|
68
|
-
}),
|
|
68
|
+
}), Xe({
|
|
69
69
|
datasetObject: t,
|
|
70
70
|
requiredAttributes: ["name", "values"]
|
|
71
71
|
}).forEach((l) => {
|
|
@@ -77,14 +77,15 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
}), e.value.responsive) {
|
|
80
|
-
const t =
|
|
81
|
-
const { width: o, height: l } =
|
|
80
|
+
const t = lt(() => {
|
|
81
|
+
const { width: o, height: l } = ot({
|
|
82
82
|
chart: P.value,
|
|
83
83
|
title: e.value.style.chart.title.text ? K.value : null,
|
|
84
84
|
legend: e.value.style.chart.legend.show ? Q.value : null,
|
|
85
|
-
source: Z.value
|
|
85
|
+
source: Z.value,
|
|
86
|
+
noTitle: ee.value
|
|
86
87
|
});
|
|
87
|
-
|
|
88
|
+
u.value.width = o, u.value.height = l;
|
|
88
89
|
});
|
|
89
90
|
V.value = new ResizeObserver(t), V.value.observe(P.value.parentNode);
|
|
90
91
|
}
|
|
@@ -92,65 +93,65 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
92
93
|
L.value = !0;
|
|
93
94
|
}, 600);
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
+
Be(() => {
|
|
96
97
|
V.value && V.value.disconnect();
|
|
97
98
|
});
|
|
98
|
-
const { isPrinting:
|
|
99
|
+
const { isPrinting: ne, isImaging: re, generatePdf: ue, generateImage: ie } = st({
|
|
99
100
|
elementId: `rings_${S.value}`,
|
|
100
101
|
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
101
|
-
}),
|
|
102
|
+
}), Le = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), ve = v(() => je(e.value.customPalette)), w = n({
|
|
102
103
|
showTable: e.value.table.show,
|
|
103
104
|
showTooltip: e.value.style.chart.tooltip.show
|
|
104
|
-
}),
|
|
105
|
+
}), u = n({
|
|
105
106
|
height: 360,
|
|
106
107
|
width: 360
|
|
107
|
-
}),
|
|
108
|
+
}), Se = v(() => Math.min(u.value.height, u.value.width)), c = n([]);
|
|
108
109
|
function H(t) {
|
|
109
|
-
|
|
110
|
+
c.value.includes(t) ? c.value = c.value.filter((o) => o !== t) : c.value.push(t), xe("selectLegend", d.value.map((o) => ({
|
|
110
111
|
name: o.name,
|
|
111
112
|
color: o.color,
|
|
112
113
|
value: o.value
|
|
113
114
|
})));
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
-
...B.value.filter((t) => !
|
|
116
|
+
const Ae = v(() => Math.max(
|
|
117
|
+
...B.value.filter((t) => !c.value.includes(t.uid)).map(({ value: t }) => t)
|
|
117
118
|
));
|
|
118
|
-
function
|
|
119
|
-
return t /
|
|
119
|
+
function ce(t) {
|
|
120
|
+
return t / Ae.value;
|
|
120
121
|
}
|
|
121
|
-
const B =
|
|
122
|
-
const s =
|
|
122
|
+
const B = v(() => y.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
123
|
+
const s = Ye(t).reduce((b, O) => b + O, 0);
|
|
123
124
|
return {
|
|
124
125
|
name: o,
|
|
125
|
-
color: l ||
|
|
126
|
+
color: l || Ce(l) || ve.value[a] || x[a] || x[a % x.length],
|
|
126
127
|
value: s,
|
|
127
|
-
proportion: s /
|
|
128
|
-
uid:
|
|
128
|
+
proportion: s / y.dataset.map((b) => (b.values || []).reduce((O, ze) => O + ze, 0)).reduce((b, O) => b + O, 0),
|
|
129
|
+
uid: ke()
|
|
129
130
|
};
|
|
130
|
-
})),
|
|
131
|
+
})), de = v(() => B.value.map((t) => ({
|
|
131
132
|
...t,
|
|
132
133
|
shape: "circle",
|
|
133
|
-
opacity:
|
|
134
|
+
opacity: c.value.includes(t.uid) ? 0.5 : 1,
|
|
134
135
|
segregate: () => H(t.uid),
|
|
135
|
-
isSegregated:
|
|
136
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
136
|
+
isSegregated: c.value.includes(t.uid)
|
|
137
|
+
})).toSorted((t, o) => o.value - t.value)), Oe = v(() => ({
|
|
137
138
|
cy: "rings-div-legend",
|
|
138
139
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
139
140
|
color: e.value.style.chart.legend.color,
|
|
140
141
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
141
142
|
paddingBottom: 12,
|
|
142
143
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
143
|
-
})), m =
|
|
144
|
+
})), m = v(() => B.value.filter((t) => !c.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), d = v(() => B.value.filter((t) => !c.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a }, s) => ({
|
|
144
145
|
uid: a,
|
|
145
146
|
name: t,
|
|
146
|
-
color: l ||
|
|
147
|
+
color: l || Ce(l) || ve.value[s] || x[s] || x[s % x.length],
|
|
147
148
|
value: o,
|
|
148
|
-
proportion:
|
|
149
|
+
proportion: ce(o),
|
|
149
150
|
percentage: o / m.value * 100,
|
|
150
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
151
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ce(o)
|
|
151
152
|
})).toSorted((t, o) => o.value - t.value));
|
|
152
|
-
function
|
|
153
|
-
return
|
|
153
|
+
function Ie() {
|
|
154
|
+
return d.value.map(
|
|
154
155
|
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
155
156
|
name: t,
|
|
156
157
|
color: o,
|
|
@@ -160,31 +161,31 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
160
161
|
})
|
|
161
162
|
);
|
|
162
163
|
}
|
|
163
|
-
const g =
|
|
164
|
-
function
|
|
165
|
-
if (
|
|
164
|
+
const g = v(() => Se.value - e.value.style.chart.layout.rings.strokeWidth * 2), X = n(null);
|
|
165
|
+
function Fe(t, o) {
|
|
166
|
+
if (c.value.length === y.dataset.length) return;
|
|
166
167
|
X.value = {
|
|
167
168
|
datapoint: o,
|
|
168
169
|
seriesIndex: t,
|
|
169
|
-
series:
|
|
170
|
+
series: d.value,
|
|
170
171
|
config: e.value
|
|
171
172
|
}, T.value = t;
|
|
172
|
-
const l =
|
|
173
|
-
if (
|
|
173
|
+
const l = d.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
174
|
+
if (Qe(a) && Ze(() => a({
|
|
174
175
|
seriesIndex: t,
|
|
175
176
|
datapoint: o,
|
|
176
|
-
series:
|
|
177
|
+
series: d.value,
|
|
177
178
|
config: e.value
|
|
178
179
|
})))
|
|
179
180
|
G.value = a({
|
|
180
181
|
seriesIndex: t,
|
|
181
182
|
datapoint: o,
|
|
182
|
-
series:
|
|
183
|
+
series: d.value,
|
|
183
184
|
config: e.value
|
|
184
185
|
});
|
|
185
186
|
else {
|
|
186
187
|
let s = "";
|
|
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>${
|
|
188
|
+
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>${we(
|
|
188
189
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
189
190
|
l.value,
|
|
190
191
|
N({
|
|
@@ -207,24 +208,24 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
207
208
|
}
|
|
208
209
|
R.value = !0;
|
|
209
210
|
}
|
|
210
|
-
const
|
|
211
|
-
const t =
|
|
211
|
+
const $ = v(() => {
|
|
212
|
+
const t = d.value.map((l) => ({
|
|
212
213
|
name: l.name,
|
|
213
214
|
color: l.color
|
|
214
|
-
})), o =
|
|
215
|
+
})), o = d.value.map((l) => l.value);
|
|
215
216
|
return { head: t, body: o };
|
|
216
|
-
}), D =
|
|
217
|
+
}), D = v(() => {
|
|
217
218
|
const t = [
|
|
218
219
|
' <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>',
|
|
219
220
|
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 }),
|
|
220
221
|
"100%"
|
|
221
|
-
], o =
|
|
222
|
+
], o = $.value.head.map((s, b) => [
|
|
222
223
|
{
|
|
223
224
|
color: s.color,
|
|
224
225
|
name: s.name
|
|
225
226
|
},
|
|
226
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
227
|
-
isNaN(
|
|
227
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[b], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
228
|
+
isNaN($.value.body[b] / m.value) ? "-" : ($.value.body[b] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
228
229
|
]), l = {
|
|
229
230
|
th: {
|
|
230
231
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -249,62 +250,69 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
249
250
|
colNames: a
|
|
250
251
|
};
|
|
251
252
|
});
|
|
252
|
-
function
|
|
253
|
-
|
|
254
|
-
const t =
|
|
253
|
+
function pe() {
|
|
254
|
+
Ue(() => {
|
|
255
|
+
const t = $.value.head.map((a, s) => [[
|
|
255
256
|
a.name
|
|
256
|
-
], [
|
|
257
|
-
|
|
257
|
+
], [$.value.body[s]], [isNaN($.value.body[s] / m.value) ? "-" : $.value.body[s] / m.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = et(o);
|
|
258
|
+
tt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
258
259
|
});
|
|
259
260
|
}
|
|
260
261
|
const A = n(!1);
|
|
261
|
-
function
|
|
262
|
+
function Me(t) {
|
|
262
263
|
A.value = t, J.value += 1;
|
|
263
264
|
}
|
|
264
|
-
function pe() {
|
|
265
|
-
C.value.showTable = !C.value.showTable;
|
|
266
|
-
}
|
|
267
265
|
function he() {
|
|
268
|
-
|
|
266
|
+
w.value.showTable = !w.value.showTable;
|
|
267
|
+
}
|
|
268
|
+
function ge() {
|
|
269
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
269
270
|
}
|
|
270
271
|
const U = n(!1);
|
|
271
272
|
function j() {
|
|
272
273
|
U.value = !U.value;
|
|
273
274
|
}
|
|
274
|
-
return
|
|
275
|
-
getData:
|
|
276
|
-
generatePdf:
|
|
277
|
-
generateCsv:
|
|
278
|
-
generateImage:
|
|
279
|
-
toggleTable:
|
|
280
|
-
toggleTooltip:
|
|
275
|
+
return _e({
|
|
276
|
+
getData: Ie,
|
|
277
|
+
generatePdf: ue,
|
|
278
|
+
generateCsv: pe,
|
|
279
|
+
generateImage: ie,
|
|
280
|
+
toggleTable: he,
|
|
281
|
+
toggleTooltip: ge,
|
|
281
282
|
toggleAnnotator: j
|
|
282
|
-
}), (t, o) => (
|
|
283
|
+
}), (t, o) => (r(), f("div", {
|
|
283
284
|
ref_key: "ringsChart",
|
|
284
285
|
ref: P,
|
|
285
286
|
class: W(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
286
|
-
style:
|
|
287
|
+
style: I(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
287
288
|
id: `rings_${S.value}`,
|
|
288
289
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
289
290
|
T.value = null, R.value = !1;
|
|
290
291
|
})
|
|
291
292
|
}, [
|
|
292
|
-
e.value.userOptions.buttons.annotator ? (
|
|
293
|
+
e.value.userOptions.buttons.annotator ? (r(), _(pt, {
|
|
293
294
|
key: 0,
|
|
294
295
|
parent: P.value,
|
|
295
296
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
296
297
|
color: e.value.style.chart.color,
|
|
297
298
|
active: U.value,
|
|
298
299
|
onClose: j
|
|
299
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
300
|
-
|
|
300
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
|
|
301
|
+
Le.value ? (r(), f("div", {
|
|
301
302
|
key: 1,
|
|
303
|
+
ref_key: "noTitle",
|
|
304
|
+
ref: ee,
|
|
305
|
+
class: "vue-data-ui-no-title-space",
|
|
306
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
307
|
+
}, null, 512)) : k("", !0),
|
|
308
|
+
e.value.style.chart.title.text ? (r(), f("div", {
|
|
309
|
+
key: 2,
|
|
302
310
|
ref_key: "chartTitle",
|
|
303
311
|
ref: K,
|
|
304
312
|
style: "width:100%;background:transparent"
|
|
305
313
|
}, [
|
|
306
|
-
(
|
|
307
|
-
key: `title_${
|
|
314
|
+
(r(), _(at, {
|
|
315
|
+
key: `title_${te.value}`,
|
|
308
316
|
config: {
|
|
309
317
|
title: {
|
|
310
318
|
cy: "rings-div-title",
|
|
@@ -316,15 +324,15 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
316
324
|
}
|
|
317
325
|
}
|
|
318
326
|
}, null, 8, ["config"]))
|
|
319
|
-
], 512)) :
|
|
320
|
-
e.value.userOptions.show && z.value ? (
|
|
327
|
+
], 512)) : k("", !0),
|
|
328
|
+
e.value.userOptions.show && z.value ? (r(), _(nt, {
|
|
321
329
|
ref_key: "details",
|
|
322
|
-
ref:
|
|
330
|
+
ref: Pe,
|
|
323
331
|
key: `user_options_${J.value}`,
|
|
324
332
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
325
333
|
color: e.value.style.chart.color,
|
|
326
|
-
isPrinting: i(
|
|
327
|
-
isImaging: i(
|
|
334
|
+
isPrinting: i(ne),
|
|
335
|
+
isImaging: i(re),
|
|
328
336
|
uid: S.value,
|
|
329
337
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
330
338
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -332,21 +340,21 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
332
340
|
hasImg: e.value.userOptions.buttons.img,
|
|
333
341
|
hasTable: e.value.userOptions.buttons.table,
|
|
334
342
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
335
|
-
isTooltip:
|
|
343
|
+
isTooltip: w.value.showTooltip,
|
|
336
344
|
isFullscreen: A.value,
|
|
337
345
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
338
346
|
chartElement: P.value,
|
|
339
347
|
position: e.value.userOptions.position,
|
|
340
348
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
341
349
|
isAnnotation: U.value,
|
|
342
|
-
onToggleFullscreen:
|
|
343
|
-
onGeneratePdf: i(
|
|
344
|
-
onGenerateCsv:
|
|
345
|
-
onGenerateImage: i(
|
|
346
|
-
onToggleTable:
|
|
347
|
-
onToggleTooltip:
|
|
350
|
+
onToggleFullscreen: Me,
|
|
351
|
+
onGeneratePdf: i(ue),
|
|
352
|
+
onGenerateCsv: pe,
|
|
353
|
+
onGenerateImage: i(ie),
|
|
354
|
+
onToggleTable: he,
|
|
355
|
+
onToggleTooltip: ge,
|
|
348
356
|
onToggleAnnotator: j
|
|
349
|
-
},
|
|
357
|
+
}, De({ _: 2 }, [
|
|
350
358
|
t.$slots.optionTooltip ? {
|
|
351
359
|
name: "optionTooltip",
|
|
352
360
|
fn: p(() => [
|
|
@@ -385,28 +393,28 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
385
393
|
t.$slots.optionFullscreen ? {
|
|
386
394
|
name: "optionFullscreen",
|
|
387
395
|
fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
388
|
-
h(t.$slots, "optionFullscreen",
|
|
396
|
+
h(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
389
397
|
]),
|
|
390
398
|
key: "5"
|
|
391
399
|
} : void 0,
|
|
392
400
|
t.$slots.optionAnnotator ? {
|
|
393
401
|
name: "optionAnnotator",
|
|
394
402
|
fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
395
|
-
h(t.$slots, "optionAnnotator",
|
|
403
|
+
h(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
396
404
|
]),
|
|
397
405
|
key: "6"
|
|
398
406
|
} : void 0
|
|
399
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
400
|
-
z.value ? (
|
|
401
|
-
key:
|
|
402
|
-
xmlns: i(
|
|
407
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : k("", !0),
|
|
408
|
+
z.value ? (r(), f("svg", {
|
|
409
|
+
key: 4,
|
|
410
|
+
xmlns: i(qe),
|
|
403
411
|
class: W({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
404
|
-
viewBox: `0 0 ${
|
|
405
|
-
style:
|
|
412
|
+
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
413
|
+
style: I(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
406
414
|
}, [
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
(
|
|
415
|
+
fe(dt),
|
|
416
|
+
C("defs", null, [
|
|
417
|
+
(r(!0), f(ye, null, me(d.value, (l, a) => (r(), f("radialGradient", {
|
|
410
418
|
cx: "50%",
|
|
411
419
|
cy: "30%",
|
|
412
420
|
r: "50%",
|
|
@@ -414,65 +422,65 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
414
422
|
fy: "50%",
|
|
415
423
|
id: `gradient_${S.value}_${a}`
|
|
416
424
|
}, [
|
|
417
|
-
|
|
425
|
+
C("stop", {
|
|
418
426
|
offset: "0%",
|
|
419
|
-
"stop-color": i(
|
|
420
|
-
}, null, 8,
|
|
421
|
-
|
|
427
|
+
"stop-color": i(Je)(i(Ke)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
428
|
+
}, null, 8, mt),
|
|
429
|
+
C("stop", {
|
|
422
430
|
offset: "100%",
|
|
423
431
|
"stop-color": l.color
|
|
424
|
-
}, null, 8,
|
|
425
|
-
], 8,
|
|
432
|
+
}, null, 8, bt)
|
|
433
|
+
], 8, yt))), 256))
|
|
426
434
|
]),
|
|
427
|
-
(
|
|
428
|
-
|
|
435
|
+
(r(!0), f(ye, null, me(d.value, (l, a) => (r(), f("g", null, [
|
|
436
|
+
C("circle", {
|
|
429
437
|
class: W({
|
|
430
438
|
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
431
439
|
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
432
440
|
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
433
441
|
}),
|
|
434
|
-
style:
|
|
442
|
+
style: I(`animation-delay:${a * 100}ms`),
|
|
435
443
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
436
|
-
cx:
|
|
437
|
-
cy: a === 0 ?
|
|
444
|
+
cx: u.value.width / 2,
|
|
445
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
438
446
|
r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
439
447
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
440
|
-
}, null, 14,
|
|
441
|
-
|
|
448
|
+
}, null, 14, kt),
|
|
449
|
+
C("circle", {
|
|
442
450
|
class: W({
|
|
443
451
|
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
444
452
|
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
445
453
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
446
454
|
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
447
455
|
}),
|
|
448
|
-
style:
|
|
456
|
+
style: I(`animation-delay:${a * 100}ms`),
|
|
449
457
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
450
458
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
451
|
-
cx:
|
|
452
|
-
cy: a === 0 ?
|
|
459
|
+
cx: u.value.width / 2,
|
|
460
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
453
461
|
r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
454
462
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${S.value}_${a})` : l.color
|
|
455
|
-
}, null, 14,
|
|
456
|
-
|
|
463
|
+
}, null, 14, Ct),
|
|
464
|
+
C("circle", {
|
|
457
465
|
"data-cy-trap": "",
|
|
458
466
|
stroke: "none",
|
|
459
|
-
cx:
|
|
460
|
-
cy: a === 0 ?
|
|
467
|
+
cx: u.value.width / 2,
|
|
468
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
461
469
|
r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
462
470
|
fill: "transparent",
|
|
463
|
-
onMouseenter: (s) =>
|
|
471
|
+
onMouseenter: (s) => Fe(a, l),
|
|
464
472
|
onMouseleave: o[0] || (o[0] = (s) => {
|
|
465
473
|
T.value = null, R.value = !1;
|
|
466
474
|
})
|
|
467
|
-
}, null, 40,
|
|
475
|
+
}, null, 40, wt)
|
|
468
476
|
]))), 256)),
|
|
469
|
-
h(t.$slots, "svg", { svg:
|
|
470
|
-
], 14,
|
|
471
|
-
t.$slots.watermark ? (
|
|
472
|
-
h(t.$slots, "watermark",
|
|
473
|
-
])) :
|
|
474
|
-
z.value ?
|
|
475
|
-
key:
|
|
477
|
+
h(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
478
|
+
], 14, ft)) : k("", !0),
|
|
479
|
+
t.$slots.watermark ? (r(), f("div", $t, [
|
|
480
|
+
h(t.$slots, "watermark", F(M({ isPrinting: i(ne) || i(re) })), void 0, !0)
|
|
481
|
+
])) : k("", !0),
|
|
482
|
+
z.value ? k("", !0) : (r(), _(vt, {
|
|
483
|
+
key: 6,
|
|
476
484
|
config: {
|
|
477
485
|
type: "rings",
|
|
478
486
|
style: {
|
|
@@ -483,23 +491,23 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
483
491
|
}
|
|
484
492
|
}
|
|
485
493
|
}, null, 8, ["config"])),
|
|
486
|
-
|
|
494
|
+
C("div", {
|
|
487
495
|
ref_key: "chartLegend",
|
|
488
496
|
ref: Q
|
|
489
497
|
}, [
|
|
490
|
-
e.value.style.chart.legend.show ? (
|
|
491
|
-
key: `legend_${
|
|
492
|
-
legendSet:
|
|
493
|
-
config:
|
|
498
|
+
e.value.style.chart.legend.show ? (r(), _(it, {
|
|
499
|
+
key: `legend_${oe.value}`,
|
|
500
|
+
legendSet: de.value,
|
|
501
|
+
config: Oe.value,
|
|
494
502
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l.uid))
|
|
495
503
|
}, {
|
|
496
504
|
item: p(({ legend: l, index: a }) => [
|
|
497
|
-
|
|
505
|
+
C("div", {
|
|
498
506
|
"data-cy-legend-item": "",
|
|
499
507
|
onClick: (s) => H(l.uid),
|
|
500
|
-
style:
|
|
508
|
+
style: I(`opacity:${c.value.includes(l.uid) ? 0.5 : 1}`)
|
|
501
509
|
}, [
|
|
502
|
-
|
|
510
|
+
be(E(l.name) + ": " + E(i(we)(
|
|
503
511
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
504
512
|
l.value,
|
|
505
513
|
i(N)({
|
|
@@ -510,29 +518,29 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
510
518
|
}),
|
|
511
519
|
{ datapoint: l, seriesIndex: a }
|
|
512
520
|
)) + " ", 1),
|
|
513
|
-
|
|
521
|
+
c.value.includes(l.uid) ? (r(), f("span", xt, " ( - % ) ")) : (r(), f("span", _t, " (" + E(isNaN(l.value / m.value) ? "-" : i(N)({
|
|
514
522
|
v: l.value / m.value * 100,
|
|
515
523
|
s: "%",
|
|
516
524
|
r: e.value.style.chart.legend.roundingPercentage
|
|
517
525
|
})) + ") ", 1))
|
|
518
|
-
], 12,
|
|
526
|
+
], 12, Tt)
|
|
519
527
|
]),
|
|
520
528
|
_: 1
|
|
521
529
|
}, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
522
530
|
key: 1,
|
|
523
|
-
legend:
|
|
531
|
+
legend: de.value
|
|
524
532
|
}, void 0, !0)
|
|
525
533
|
], 512),
|
|
526
|
-
t.$slots.source ? (
|
|
527
|
-
key:
|
|
534
|
+
t.$slots.source ? (r(), f("div", {
|
|
535
|
+
key: 7,
|
|
528
536
|
ref_key: "source",
|
|
529
537
|
ref: Z,
|
|
530
538
|
dir: "auto"
|
|
531
539
|
}, [
|
|
532
540
|
h(t.$slots, "source", {}, void 0, !0)
|
|
533
|
-
], 512)) :
|
|
534
|
-
|
|
535
|
-
show:
|
|
541
|
+
], 512)) : k("", !0),
|
|
542
|
+
fe(rt, {
|
|
543
|
+
show: w.value.showTooltip && R.value && c.value.length < y.dataset.length,
|
|
536
544
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
537
545
|
color: e.value.style.chart.tooltip.color,
|
|
538
546
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -547,18 +555,18 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
547
555
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
548
556
|
}, {
|
|
549
557
|
"tooltip-before": p(() => [
|
|
550
|
-
h(t.$slots, "tooltip-before",
|
|
558
|
+
h(t.$slots, "tooltip-before", F(M({ ...X.value })), void 0, !0)
|
|
551
559
|
]),
|
|
552
560
|
"tooltip-after": p(() => [
|
|
553
|
-
h(t.$slots, "tooltip-after",
|
|
561
|
+
h(t.$slots, "tooltip-after", F(M({ ...X.value })), void 0, !0)
|
|
554
562
|
]),
|
|
555
563
|
_: 3
|
|
556
564
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
557
|
-
z.value ? (
|
|
558
|
-
key:
|
|
565
|
+
z.value ? (r(), _(ct, {
|
|
566
|
+
key: 8,
|
|
559
567
|
hideDetails: "",
|
|
560
568
|
config: {
|
|
561
|
-
open:
|
|
569
|
+
open: w.value.showTable,
|
|
562
570
|
maxHeight: 1e4,
|
|
563
571
|
body: {
|
|
564
572
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -571,32 +579,32 @@ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"],
|
|
|
571
579
|
}
|
|
572
580
|
}, {
|
|
573
581
|
content: p(() => [
|
|
574
|
-
(
|
|
575
|
-
key: `table_${
|
|
582
|
+
(r(), _(ut, {
|
|
583
|
+
key: `table_${le.value}`,
|
|
576
584
|
colNames: D.value.colNames,
|
|
577
585
|
head: D.value.head,
|
|
578
586
|
body: D.value.body,
|
|
579
587
|
config: D.value.config,
|
|
580
588
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
581
|
-
onClose: o[2] || (o[2] = (l) =>
|
|
589
|
+
onClose: o[2] || (o[2] = (l) => w.value.showTable = !1)
|
|
582
590
|
}, {
|
|
583
591
|
th: p(({ th: l }) => [
|
|
584
|
-
|
|
592
|
+
C("div", {
|
|
585
593
|
innerHTML: l,
|
|
586
594
|
style: { display: "flex", "align-items": "center" }
|
|
587
|
-
}, null, 8,
|
|
595
|
+
}, null, 8, Nt)
|
|
588
596
|
]),
|
|
589
597
|
td: p(({ td: l }) => [
|
|
590
|
-
|
|
598
|
+
be(E(l.name || l), 1)
|
|
591
599
|
]),
|
|
592
600
|
_: 1
|
|
593
601
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
594
602
|
]),
|
|
595
603
|
_: 1
|
|
596
|
-
}, 8, ["config"])) :
|
|
597
|
-
], 46,
|
|
604
|
+
}, 8, ["config"])) : k("", !0)
|
|
605
|
+
], 46, gt));
|
|
598
606
|
}
|
|
599
|
-
},
|
|
607
|
+
}, Et = /* @__PURE__ */ ht(Pt, [["__scopeId", "data-v-2a4f4cb4"]]);
|
|
600
608
|
export {
|
|
601
|
-
|
|
609
|
+
Et as default
|
|
602
610
|
};
|