vue-data-ui 2.4.63 → 2.4.65
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 +66 -34
- package/dist/{Arrow-BpZBF7Ak.cjs → Arrow-BKPURRQ6.cjs} +1 -1
- package/dist/{Arrow-nOy23OOV.js → Arrow-C7ihyW4O.js} +1 -1
- package/dist/{BaseIcon-rzIvDo2Q.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
- package/dist/{BaseIcon-CrqNvGTs.js → BaseIcon-DpaRUsHC.js} +1 -1
- package/dist/{DataTable-CCJGHIVo.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
- package/dist/{DataTable-BBh7_ttv.js → DataTable-DX_jYNWG.js} +2 -2
- package/dist/Legend-BMTBtkoQ.cjs +1 -0
- package/dist/Legend-DGUxLqhs.js +70 -0
- package/dist/{PackageVersion-dR8EUy_P.js → PackageVersion-B9_Ed72C.js} +1 -1
- package/dist/{PackageVersion-eZ5Dmuid.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
- package/dist/{PenAndPaper-D_w2N2qM.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
- package/dist/{PenAndPaper-CrXlqi9I.js → PenAndPaper-CzjoEhsO.js} +3 -3
- package/dist/{Shape-qkkvCKyp.cjs → Shape-CZB2KQ0L.cjs} +1 -1
- package/dist/{Shape-CwmKWYzq.js → Shape-aXd72O71.js} +1 -1
- package/dist/{Slicer-oNEtv1s3.cjs → Slicer-ChxjRhai.cjs} +1 -1
- package/dist/{Slicer-DvdU-uf8.js → Slicer-CopZgIzh.js} +2 -2
- package/dist/{Title-CoNtoGH9.cjs → Title-BnRtxxP4.cjs} +1 -1
- package/dist/{Title-obqvTiXP.js → Title-DyUTj8GI.js} +1 -1
- package/dist/{Tooltip-BK-ACGDE.js → Tooltip-B-0uEV3l.js} +1 -1
- package/dist/{Tooltip-Dz4wVJkz.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
- package/dist/documentation/installation.md +34 -34
- package/dist/{index-Z_vzxZTo.js → index-BVNcFEqn.js} +398 -393
- package/dist/{index-ChOY3hT9.cjs → index-CKgv8c-A.cjs} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CA8PjFJH.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
- package/dist/{useNestedProp-Buhi5uyL.js → useNestedProp-D79dWdel.js} +1 -1
- package/dist/{usePrinter-Ck0oiMlt.js → usePrinter-Bcfs_I6G.js} +1 -1
- package/dist/{usePrinter-c3c7_uAW.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
- package/dist/{vue-data-ui-BGng_wXI.js → vue-data-ui-CXxR_hXg.js} +60 -60
- package/dist/{vue-data-ui-CihfnXFF.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/{vue-ui-3d-bar-BsxFEhMN.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B7k4LzL1.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
- package/dist/{vue-ui-accordion-CV2-8b1O.js → vue-ui-accordion-GNblUy42.js} +3 -3
- package/dist/{vue-ui-accordion-CZ8AlriN.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Bc4DaLIy.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
- package/dist/{vue-ui-age-pyramid-C1crnKk7.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
- package/dist/{vue-ui-annotator-DNKcAaEh.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
- package/dist/{vue-ui-annotator-DLbAn_Mz.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
- package/dist/{vue-ui-bullet-ClODxNrk.js → vue-ui-bullet-D_CS85II.js} +8 -8
- package/dist/{vue-ui-bullet-CEO3AsWC.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DI7t6jqz.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
- package/dist/{vue-ui-candlestick-B00zQB4B.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-5jXlkslq.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
- package/dist/{vue-ui-carousel-table-Bm2D_0pZ.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DP6-Gie6.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CRZsXRUH.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
- package/dist/{vue-ui-cursor-BGe0gZK8.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
- package/dist/{vue-ui-cursor-DA8bsmEc.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
- package/dist/{vue-ui-dashboard-D2v4oSiB.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZD-6Pz7.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
- package/dist/{vue-ui-digits-CKvrL9Wc.js → vue-ui-digits-B5P9UheE.js} +2 -2
- package/dist/{vue-ui-digits-DC8ZuHOj.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
- package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
- package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-CBsxmrTO.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
- package/dist/{vue-ui-donut-evolution-AlCGLfzy.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DB7jNjQP.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
- package/dist/{vue-ui-dumbbell-B9cELz3z.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
- package/dist/{vue-ui-flow-Cw1Vfk_e.js → vue-ui-flow-cKQSDKfP.js} +9 -9
- package/dist/{vue-ui-flow-CCM51fzQ.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
- package/dist/{vue-ui-funnel--4JhwVwW.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
- package/dist/{vue-ui-funnel-CU72MuGg.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
- package/dist/{vue-ui-galaxy-BKInqdOk.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
- package/dist/{vue-ui-galaxy-BJrkygeR.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
- package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
- package/dist/{vue-ui-gauge-DBPB11Eo.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
- package/dist/{vue-ui-gizmo-BSDdKP_q.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
- package/dist/{vue-ui-gizmo-D7hHruEs.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CysVyR78.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DhoDd6I_.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
- package/dist/{vue-ui-history-plot-C1IcR5tn.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
- package/dist/{vue-ui-history-plot-D97p0C8E.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
- package/dist/{vue-ui-kpi-Cu2PoWud.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
- package/dist/{vue-ui-kpi-C43FJnkn.js → vue-ui-kpi-HyZOfh63.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bdr0862F.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DgPnsWaW.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
- package/dist/{vue-ui-molecule-CvxtHapj.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
- package/dist/{vue-ui-molecule-CEJzQ7RY.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DIn_Oars.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B6EmzBGf.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-D4pAkaZH.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
- package/dist/{vue-ui-nested-donuts-c2pJF_ex.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
- package/dist/{vue-ui-onion-DHOhnx2s.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
- package/dist/{vue-ui-onion-98XPhnVF.js → vue-ui-onion-CID0DNSa.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DLOtv_NO.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CrVVxflg.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DWM3zE7x.js → vue-ui-quadrant-063Cq0di.js} +12 -12
- package/dist/{vue-ui-quadrant-DbDQtcxz.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DP0hSesI.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CFVAisN4.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
- package/dist/{vue-ui-radar-CNBN5GF9.js → vue-ui-radar-BmY47r3J.js} +12 -12
- package/dist/{vue-ui-radar-CDhwXWfs.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
- package/dist/{vue-ui-rating-cHW6zh7i.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
- package/dist/{vue-ui-rating-CEfg8aGb.js → vue-ui-rating-b2SThMJw.js} +2 -2
- package/dist/{vue-ui-relation-circle-92LvehQf.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
- package/dist/{vue-ui-relation-circle-olDAN0lU.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
- package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
- package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
- package/dist/{vue-ui-scatter-BvdgtUHX.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
- package/dist/{vue-ui-scatter-6wDrQ5fP.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
- package/dist/{vue-ui-screenshot-CIAlcAvq.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-ChB7VFUO.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DlnPFtb4.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BMRe3SzB.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
- package/dist/{vue-ui-smiley-DkrQ5gDD.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
- package/dist/{vue-ui-smiley-CN5FWJ1G.js → vue-ui-smiley-ne5pBMum.js} +2 -2
- package/dist/{vue-ui-spark-trend-MNkadB41.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
- package/dist/{vue-ui-spark-trend-BlOdnAb4.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CBPO2mUa.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
- package/dist/{vue-ui-sparkbar-ChTbwY11.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-VLkIev3p.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B7yvQfZW.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DbOxX4Ks.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-mYU6RAK_.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
- package/dist/vue-ui-sparkline-BFlRfhM6.cjs +1 -0
- package/dist/{vue-ui-sparkline-D_-31O2S.js → vue-ui-sparkline-lY0wS6kU.js} +96 -96
- package/dist/{vue-ui-sparkstackbar-KaFMlIAL.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-gW7rpJmQ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
- package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
- package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
- package/dist/{vue-ui-strip-plot-MlP5pDNx.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-4o1zAxG_.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
- package/dist/{vue-ui-table-B0PFrkLI.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
- package/dist/{vue-ui-table-DWNrd7zM.js → vue-ui-table-DZV-uDG2.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BSKCS8Lq.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
- package/dist/{vue-ui-table-heatmap-4k74Ux7O.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DCCogh2-.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BrImSTh0.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
- package/dist/{vue-ui-thermometer-DswmMXiU.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DHEoT4yB.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
- package/dist/{vue-ui-timer-Tv94CYqL.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
- package/dist/{vue-ui-timer-BNFihNgK.js → vue-ui-timer-D2_1bbpl.js} +5 -5
- package/dist/{vue-ui-tiremarks-B2kuKLe-.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DzaUfiET.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
- package/dist/{vue-ui-treemap-qKZJcEYe.js → vue-ui-treemap-CgzgE20q.js} +11 -11
- package/dist/{vue-ui-treemap-Dmt3RPF2.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
- package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
- package/dist/{vue-ui-waffle-DjJoezg-.js → vue-ui-waffle-0mHE8fud.js} +11 -11
- package/dist/{vue-ui-waffle-fWQvVbAH.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
- package/dist/{vue-ui-wheel-DOrWSWt6.js → vue-ui-wheel-BWL-td7-.js} +7 -7
- package/dist/{vue-ui-wheel-2qIHyZe1.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Tgg5jCE6.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-UPPKGsXt.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
- package/dist/{vue-ui-xy-zCJv-Vao.js → vue-ui-xy-C8E2WzGt.js} +866 -819
- package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-paHHRtqs.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
- package/dist/{vue-ui-xy-canvas-Dm3YUQ3g.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Legend-CqilK5CI.cjs +0 -1
- package/dist/Legend-WOejx9sp.js +0 -68
- package/dist/vue-ui-donut-D5mDCNky.cjs +0 -1
- package/dist/vue-ui-donut-DDayabSz.js +0 -1122
- package/dist/vue-ui-gauge-Uo_1rs0Z.cjs +0 -1
- package/dist/vue-ui-rings-Bp0WLW4E.js +0 -628
- package/dist/vue-ui-rings-BwvTmRCE.cjs +0 -2
- package/dist/vue-ui-sparkline-DO496Tk5.cjs +0 -1
- package/dist/vue-ui-stackbar-CYHsSzEK.cjs +0 -6
- package/dist/vue-ui-stackbar-vIyS6oag.js +0 -1061
- package/dist/vue-ui-vertical-bar-CMXtevyE.js +0 -888
- package/dist/vue-ui-vertical-bar-CQ_qEJ_O.cjs +0 -4
- package/dist/vue-ui-xy-CMde0Kq-.cjs +0 -3
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
import { useSlots as De, ref as r, computed as h, watch as Ee, onMounted as Ge, onBeforeUnmount as He, openBlock as n, createElementBlock as v, normalizeClass as V, normalizeStyle as N, unref as i, createBlock as O, createCommentVNode as m, createSlots as $e, withCtx as g, renderSlot as p, normalizeProps as L, guardReactiveProps as F, createVNode as J, createElementVNode as w, Fragment as K, renderList as Q, createTextVNode as we, toDisplayString as E, nextTick as je } from "vue";
|
|
2
|
+
import { u as Xe, c as _e, t as Ye, a as qe, p as I, o as Je, e as Z, g as Ke, b as Qe, J as Ze, d as Te, f as P, X as et, s as tt, w as lt, v as G, i as xe, x as ot, y as at, q as st, r as nt } from "./index-BVNcFEqn.js";
|
|
3
|
+
import { t as ut, u as rt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as it } from "./Title-DyUTj8GI.js";
|
|
5
|
+
import { u as vt, U as ct } from "./usePrinter-Bcfs_I6G.js";
|
|
6
|
+
import { _ as dt } from "./Tooltip-B-0uEV3l.js";
|
|
7
|
+
import { D as pt } from "./DataTable-DX_jYNWG.js";
|
|
8
|
+
import { L as ht } from "./Legend-DGUxLqhs.js";
|
|
9
|
+
import gt from "./vue-ui-skeleton-Bgf16k10.js";
|
|
10
|
+
import ft from "./vue-ui-accordion-GNblUy42.js";
|
|
11
|
+
import { u as Ne } from "./useNestedProp-D79dWdel.js";
|
|
12
|
+
import { _ as yt } from "./PackageVersion-B9_Ed72C.js";
|
|
13
|
+
import { P as mt } from "./PenAndPaper-CzjoEhsO.js";
|
|
14
|
+
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as kt } from "./Shape-aXd72O71.js";
|
|
16
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const $t = ["id"], wt = ["xmlns", "viewBox"], _t = ["width", "height"], Tt = ["id"], xt = ["stop-color"], Nt = ["stop-color"], Ot = { key: 1 }, It = ["stroke", "cx", "cy", "r", "fill"], Pt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], St = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], At = ["cx", "cy", "r", "onMouseenter"], Lt = {
|
|
18
|
+
key: 5,
|
|
19
|
+
class: "vue-data-ui-watermark"
|
|
20
|
+
}, Ft = ["onClick"], Mt = { key: 0 }, Vt = { key: 1 }, zt = ["innerHTML"], Rt = {
|
|
21
|
+
__name: "vue-ui-rings",
|
|
22
|
+
props: {
|
|
23
|
+
config: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default() {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
dataset: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default() {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["selectLegend"],
|
|
37
|
+
setup(Oe, { expose: Ie, emit: Pe }) {
|
|
38
|
+
const b = Oe, { vue_ui_rings: Se } = Xe(), Ae = De(), x = r(!1), z = h(() => !!b.dataset && b.dataset.length), C = r(_e()), Le = r(null), R = r(!1), H = r(""), $ = r(null), ee = r(0), S = r(null), te = r(null), le = r(null), oe = r(null), ae = r(null), se = r(0), ne = r(0), ue = r(0), e = h({
|
|
39
|
+
get: () => ve(),
|
|
40
|
+
set: (t) => t
|
|
41
|
+
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = bt({ config: e.value });
|
|
42
|
+
function ve() {
|
|
43
|
+
const t = Ne({
|
|
44
|
+
userConfig: b.config,
|
|
45
|
+
defaultConfig: Se
|
|
46
|
+
});
|
|
47
|
+
return t.theme ? {
|
|
48
|
+
...Ne({
|
|
49
|
+
userConfig: Ye.vue_ui_rings[t.theme] || b.config,
|
|
50
|
+
defaultConfig: t
|
|
51
|
+
}),
|
|
52
|
+
customPalette: qe[t.theme] || I
|
|
53
|
+
} : t;
|
|
54
|
+
}
|
|
55
|
+
Ee(() => b.config, (t) => {
|
|
56
|
+
e.value = ve(), j.value = !e.value.showOnChartHover, ce(), se.value += 1, ne.value += 1, ue.value += 1;
|
|
57
|
+
}, { deep: !0 });
|
|
58
|
+
const U = r(null);
|
|
59
|
+
Ge(() => {
|
|
60
|
+
ce();
|
|
61
|
+
});
|
|
62
|
+
function ce() {
|
|
63
|
+
if (Je(b.dataset) ? Z({
|
|
64
|
+
componentName: "VueUiRings",
|
|
65
|
+
type: "dataset"
|
|
66
|
+
}) : b.dataset.forEach((t, o) => {
|
|
67
|
+
t.values.length || Z({
|
|
68
|
+
componentName: "VueUiRings",
|
|
69
|
+
type: "dataset"
|
|
70
|
+
}), Ke({
|
|
71
|
+
datasetObject: t,
|
|
72
|
+
requiredAttributes: ["name", "values"]
|
|
73
|
+
}).forEach((l) => {
|
|
74
|
+
Z({
|
|
75
|
+
componentName: "VueUiRings",
|
|
76
|
+
type: "datasetSerieAttribute",
|
|
77
|
+
property: l,
|
|
78
|
+
index: o
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}), e.value.responsive) {
|
|
82
|
+
const t = ut(() => {
|
|
83
|
+
const { width: o, height: l } = rt({
|
|
84
|
+
chart: S.value,
|
|
85
|
+
title: e.value.style.chart.title.text ? te.value : null,
|
|
86
|
+
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
87
|
+
source: oe.value,
|
|
88
|
+
noTitle: ae.value
|
|
89
|
+
});
|
|
90
|
+
s.value.width = o, s.value.height = l;
|
|
91
|
+
});
|
|
92
|
+
U.value = new ResizeObserver(t), U.value.observe(S.value.parentNode);
|
|
93
|
+
}
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
x.value = !0;
|
|
96
|
+
}, 600);
|
|
97
|
+
}
|
|
98
|
+
He(() => {
|
|
99
|
+
U.value && U.value.disconnect();
|
|
100
|
+
});
|
|
101
|
+
const { isPrinting: de, isImaging: pe, generatePdf: he, generateImage: ge } = vt({
|
|
102
|
+
elementId: `rings_${C.value}`,
|
|
103
|
+
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
104
|
+
}), Fe = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), fe = h(() => Qe(e.value.customPalette)), _ = r({
|
|
105
|
+
showTable: e.value.table.show,
|
|
106
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
107
|
+
}), s = r({
|
|
108
|
+
height: 360,
|
|
109
|
+
width: 360
|
|
110
|
+
}), Me = h(() => Math.min(s.value.height, s.value.width)), f = r([]);
|
|
111
|
+
function X(t) {
|
|
112
|
+
f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t), Pe("selectLegend", d.value.map((o) => ({
|
|
113
|
+
name: o.name,
|
|
114
|
+
color: o.color,
|
|
115
|
+
value: o.value
|
|
116
|
+
})));
|
|
117
|
+
}
|
|
118
|
+
const Ve = h(() => Math.max(
|
|
119
|
+
...W.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
|
|
120
|
+
));
|
|
121
|
+
function ye(t) {
|
|
122
|
+
return t / Ve.value;
|
|
123
|
+
}
|
|
124
|
+
const W = h(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
125
|
+
const u = Ze(t).reduce((y, M) => y + M, 0);
|
|
126
|
+
return {
|
|
127
|
+
name: o,
|
|
128
|
+
color: l || Te(l) || fe.value[a] || I[a] || I[a % I.length],
|
|
129
|
+
value: u,
|
|
130
|
+
proportion: u / b.dataset.map((y) => (y.values || []).reduce((M, Be) => M + Be, 0)).reduce((y, M) => y + M, 0),
|
|
131
|
+
uid: _e(),
|
|
132
|
+
absoluteIndex: a
|
|
133
|
+
};
|
|
134
|
+
})), me = h(() => W.value.map((t) => ({
|
|
135
|
+
...t,
|
|
136
|
+
shape: "circle",
|
|
137
|
+
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
138
|
+
segregate: () => X(t.uid),
|
|
139
|
+
isSegregated: f.value.includes(t.uid)
|
|
140
|
+
})).toSorted((t, o) => o.value - t.value)), ze = h(() => ({
|
|
141
|
+
cy: "rings-div-legend",
|
|
142
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
143
|
+
color: e.value.style.chart.legend.color,
|
|
144
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
145
|
+
paddingBottom: 12,
|
|
146
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
147
|
+
})), k = h(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), d = h(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: u }, y) => ({
|
|
148
|
+
absoluteIndex: u,
|
|
149
|
+
uid: a,
|
|
150
|
+
name: t,
|
|
151
|
+
color: l || Te(l) || fe.value[y] || I[y] || I[y % I.length],
|
|
152
|
+
value: o,
|
|
153
|
+
proportion: ye(o),
|
|
154
|
+
percentage: o / k.value * 100,
|
|
155
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ye(o)
|
|
156
|
+
})).toSorted((t, o) => o.value - t.value));
|
|
157
|
+
function Re() {
|
|
158
|
+
return d.value.map(
|
|
159
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: u }) => ({
|
|
160
|
+
name: t,
|
|
161
|
+
color: o,
|
|
162
|
+
value: l,
|
|
163
|
+
absoluteValues: a,
|
|
164
|
+
percentage: u
|
|
165
|
+
})
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
const c = h(() => Me.value - e.value.style.chart.layout.rings.strokeWidth * 2), Y = r(null);
|
|
169
|
+
function Ue(t, o) {
|
|
170
|
+
if (f.value.length === b.dataset.length) return;
|
|
171
|
+
Y.value = {
|
|
172
|
+
datapoint: o,
|
|
173
|
+
seriesIndex: t,
|
|
174
|
+
series: d.value,
|
|
175
|
+
config: e.value
|
|
176
|
+
}, $.value = t;
|
|
177
|
+
const l = d.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
178
|
+
if (ot(a) && at(() => a({
|
|
179
|
+
seriesIndex: t,
|
|
180
|
+
datapoint: o,
|
|
181
|
+
series: d.value,
|
|
182
|
+
config: e.value
|
|
183
|
+
})))
|
|
184
|
+
H.value = a({
|
|
185
|
+
seriesIndex: t,
|
|
186
|
+
datapoint: o,
|
|
187
|
+
series: d.value,
|
|
188
|
+
config: e.value
|
|
189
|
+
});
|
|
190
|
+
else {
|
|
191
|
+
let u = "";
|
|
192
|
+
u += `<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>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Ae.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${xe(
|
|
193
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
194
|
+
l.value,
|
|
195
|
+
P({
|
|
196
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
197
|
+
v: l.value,
|
|
198
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
199
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
200
|
+
}),
|
|
201
|
+
{ datapoint: o, seriesIndex: t }
|
|
202
|
+
)}
|
|
203
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${P({
|
|
204
|
+
v: l.value / k.value * 100,
|
|
205
|
+
s: "%",
|
|
206
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
207
|
+
})})</span></div>` : u += `<b>${P({
|
|
208
|
+
v: l.value / k.value * 100,
|
|
209
|
+
s: "%",
|
|
210
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
211
|
+
})}</b></div>`), H.value = u;
|
|
212
|
+
}
|
|
213
|
+
R.value = !0;
|
|
214
|
+
}
|
|
215
|
+
const T = h(() => {
|
|
216
|
+
const t = d.value.map((l) => ({
|
|
217
|
+
name: l.name,
|
|
218
|
+
color: l.color
|
|
219
|
+
})), o = d.value.map((l) => l.value);
|
|
220
|
+
return { head: t, body: o };
|
|
221
|
+
}), B = h(() => {
|
|
222
|
+
const t = [
|
|
223
|
+
' <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>',
|
|
224
|
+
P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: k.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
225
|
+
"100%"
|
|
226
|
+
], o = T.value.head.map((u, y) => [
|
|
227
|
+
{
|
|
228
|
+
color: u.color,
|
|
229
|
+
name: u.name
|
|
230
|
+
},
|
|
231
|
+
P({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: T.value.body[y], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
232
|
+
isNaN(T.value.body[y] / k.value) ? "-" : (T.value.body[y] / k.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
233
|
+
]), l = {
|
|
234
|
+
th: {
|
|
235
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
236
|
+
color: e.value.table.th.color,
|
|
237
|
+
outline: e.value.table.th.outline
|
|
238
|
+
},
|
|
239
|
+
td: {
|
|
240
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
241
|
+
color: e.value.table.td.color,
|
|
242
|
+
outline: e.value.table.td.outline
|
|
243
|
+
},
|
|
244
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
245
|
+
}, a = [
|
|
246
|
+
e.value.table.columnNames.series,
|
|
247
|
+
e.value.table.columnNames.value,
|
|
248
|
+
e.value.table.columnNames.percentage
|
|
249
|
+
];
|
|
250
|
+
return {
|
|
251
|
+
head: t,
|
|
252
|
+
body: o,
|
|
253
|
+
config: l,
|
|
254
|
+
colNames: a
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
function be() {
|
|
258
|
+
je(() => {
|
|
259
|
+
const t = T.value.head.map((a, u) => [[
|
|
260
|
+
a.name
|
|
261
|
+
], [T.value.body[u]], [isNaN(T.value.body[u] / k.value) ? "-" : T.value.body[u] / k.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = st(o);
|
|
262
|
+
nt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
const A = r(!1);
|
|
266
|
+
function We(t) {
|
|
267
|
+
A.value = t, ee.value += 1;
|
|
268
|
+
}
|
|
269
|
+
function ke() {
|
|
270
|
+
_.value.showTable = !_.value.showTable;
|
|
271
|
+
}
|
|
272
|
+
function Ce() {
|
|
273
|
+
_.value.showTooltip = !_.value.showTooltip;
|
|
274
|
+
}
|
|
275
|
+
const D = r(!1);
|
|
276
|
+
function q() {
|
|
277
|
+
D.value = !D.value;
|
|
278
|
+
}
|
|
279
|
+
return Ie({
|
|
280
|
+
getData: Re,
|
|
281
|
+
generatePdf: he,
|
|
282
|
+
generateCsv: be,
|
|
283
|
+
generateImage: ge,
|
|
284
|
+
toggleTable: ke,
|
|
285
|
+
toggleTooltip: Ce,
|
|
286
|
+
toggleAnnotator: q
|
|
287
|
+
}), (t, o) => (n(), v("div", {
|
|
288
|
+
ref_key: "ringsChart",
|
|
289
|
+
ref: S,
|
|
290
|
+
class: V(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
291
|
+
style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
292
|
+
id: `rings_${C.value}`,
|
|
293
|
+
onMouseleave: o[3] || (o[3] = (l) => {
|
|
294
|
+
$.value = null, R.value = !1, i(re)(!1);
|
|
295
|
+
}),
|
|
296
|
+
onMouseenter: o[4] || (o[4] = () => i(re)(!0))
|
|
297
|
+
}, [
|
|
298
|
+
e.value.userOptions.buttons.annotator ? (n(), O(mt, {
|
|
299
|
+
key: 0,
|
|
300
|
+
parent: S.value,
|
|
301
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
302
|
+
color: e.value.style.chart.color,
|
|
303
|
+
active: D.value,
|
|
304
|
+
onClose: q
|
|
305
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : m("", !0),
|
|
306
|
+
Fe.value ? (n(), v("div", {
|
|
307
|
+
key: 1,
|
|
308
|
+
ref_key: "noTitle",
|
|
309
|
+
ref: ae,
|
|
310
|
+
class: "vue-data-ui-no-title-space",
|
|
311
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
312
|
+
}, null, 512)) : m("", !0),
|
|
313
|
+
e.value.style.chart.title.text ? (n(), v("div", {
|
|
314
|
+
key: 2,
|
|
315
|
+
ref_key: "chartTitle",
|
|
316
|
+
ref: te,
|
|
317
|
+
style: "width:100%;background:transparent"
|
|
318
|
+
}, [
|
|
319
|
+
(n(), O(it, {
|
|
320
|
+
key: `title_${se.value}`,
|
|
321
|
+
config: {
|
|
322
|
+
title: {
|
|
323
|
+
cy: "rings-div-title",
|
|
324
|
+
...e.value.style.chart.title
|
|
325
|
+
},
|
|
326
|
+
subtitle: {
|
|
327
|
+
cy: "rings-div-subtitle",
|
|
328
|
+
...e.value.style.chart.title.subtitle
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}, null, 8, ["config"]))
|
|
332
|
+
], 512)) : m("", !0),
|
|
333
|
+
e.value.userOptions.show && z.value && (i(ie) || i(j)) ? (n(), O(ct, {
|
|
334
|
+
ref_key: "details",
|
|
335
|
+
ref: Le,
|
|
336
|
+
key: `user_options_${ee.value}`,
|
|
337
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
338
|
+
color: e.value.style.chart.color,
|
|
339
|
+
isPrinting: i(de),
|
|
340
|
+
isImaging: i(pe),
|
|
341
|
+
uid: C.value,
|
|
342
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
343
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
344
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
345
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
346
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
347
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
348
|
+
isTooltip: _.value.showTooltip,
|
|
349
|
+
isFullscreen: A.value,
|
|
350
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
351
|
+
chartElement: S.value,
|
|
352
|
+
position: e.value.userOptions.position,
|
|
353
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
354
|
+
isAnnotation: D.value,
|
|
355
|
+
onToggleFullscreen: We,
|
|
356
|
+
onGeneratePdf: i(he),
|
|
357
|
+
onGenerateCsv: be,
|
|
358
|
+
onGenerateImage: i(ge),
|
|
359
|
+
onToggleTable: ke,
|
|
360
|
+
onToggleTooltip: Ce,
|
|
361
|
+
onToggleAnnotator: q,
|
|
362
|
+
style: N({
|
|
363
|
+
visibility: i(ie) ? i(j) ? "visible" : "hidden" : "visible"
|
|
364
|
+
})
|
|
365
|
+
}, $e({ _: 2 }, [
|
|
366
|
+
t.$slots.optionTooltip ? {
|
|
367
|
+
name: "optionTooltip",
|
|
368
|
+
fn: g(() => [
|
|
369
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
370
|
+
]),
|
|
371
|
+
key: "0"
|
|
372
|
+
} : void 0,
|
|
373
|
+
t.$slots.optionPdf ? {
|
|
374
|
+
name: "optionPdf",
|
|
375
|
+
fn: g(() => [
|
|
376
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
377
|
+
]),
|
|
378
|
+
key: "1"
|
|
379
|
+
} : void 0,
|
|
380
|
+
t.$slots.optionCsv ? {
|
|
381
|
+
name: "optionCsv",
|
|
382
|
+
fn: g(() => [
|
|
383
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
384
|
+
]),
|
|
385
|
+
key: "2"
|
|
386
|
+
} : void 0,
|
|
387
|
+
t.$slots.optionImg ? {
|
|
388
|
+
name: "optionImg",
|
|
389
|
+
fn: g(() => [
|
|
390
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
391
|
+
]),
|
|
392
|
+
key: "3"
|
|
393
|
+
} : void 0,
|
|
394
|
+
t.$slots.optionTable ? {
|
|
395
|
+
name: "optionTable",
|
|
396
|
+
fn: g(() => [
|
|
397
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
398
|
+
]),
|
|
399
|
+
key: "4"
|
|
400
|
+
} : void 0,
|
|
401
|
+
t.$slots.optionFullscreen ? {
|
|
402
|
+
name: "optionFullscreen",
|
|
403
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
404
|
+
p(t.$slots, "optionFullscreen", L(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
405
|
+
]),
|
|
406
|
+
key: "5"
|
|
407
|
+
} : void 0,
|
|
408
|
+
t.$slots.optionAnnotator ? {
|
|
409
|
+
name: "optionAnnotator",
|
|
410
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
411
|
+
p(t.$slots, "optionAnnotator", L(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
412
|
+
]),
|
|
413
|
+
key: "6"
|
|
414
|
+
} : void 0
|
|
415
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
416
|
+
z.value ? (n(), v("svg", {
|
|
417
|
+
key: 4,
|
|
418
|
+
xmlns: i(et),
|
|
419
|
+
class: V({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
420
|
+
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
421
|
+
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
422
|
+
}, [
|
|
423
|
+
J(yt),
|
|
424
|
+
t.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
425
|
+
key: 0,
|
|
426
|
+
x: 0,
|
|
427
|
+
y: 0,
|
|
428
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
429
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
430
|
+
style: {
|
|
431
|
+
pointerEvents: "none"
|
|
432
|
+
}
|
|
433
|
+
}, [
|
|
434
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
435
|
+
], 8, _t)) : m("", !0),
|
|
436
|
+
w("defs", null, [
|
|
437
|
+
(n(!0), v(K, null, Q(d.value, (l, a) => (n(), v("radialGradient", {
|
|
438
|
+
cx: "50%",
|
|
439
|
+
cy: "30%",
|
|
440
|
+
r: "50%",
|
|
441
|
+
fx: "50%",
|
|
442
|
+
fy: "50%",
|
|
443
|
+
id: `gradient_${C.value}_${a}`
|
|
444
|
+
}, [
|
|
445
|
+
w("stop", {
|
|
446
|
+
offset: "0%",
|
|
447
|
+
"stop-color": i(tt)(i(lt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
448
|
+
}, null, 8, xt),
|
|
449
|
+
w("stop", {
|
|
450
|
+
offset: "100%",
|
|
451
|
+
"stop-color": l.color
|
|
452
|
+
}, null, 8, Nt)
|
|
453
|
+
], 8, Tt))), 256))
|
|
454
|
+
]),
|
|
455
|
+
t.$slots.pattern ? (n(), v("g", Ot, [
|
|
456
|
+
(n(!0), v(K, null, Q(d.value, (l) => (n(), v("defs", null, [
|
|
457
|
+
p(t.$slots, "pattern", L(F({ seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` })), void 0, !0)
|
|
458
|
+
]))), 256))
|
|
459
|
+
])) : m("", !0),
|
|
460
|
+
(n(!0), v(K, null, Q(d.value, (l, a) => (n(), v("g", null, [
|
|
461
|
+
w("circle", {
|
|
462
|
+
class: V({
|
|
463
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
464
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation,
|
|
465
|
+
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
466
|
+
}),
|
|
467
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
468
|
+
stroke: e.value.style.chart.layout.rings.stroke,
|
|
469
|
+
cx: s.value.width / 2,
|
|
470
|
+
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
471
|
+
r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
472
|
+
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
473
|
+
}, null, 14, It),
|
|
474
|
+
w("circle", {
|
|
475
|
+
class: V({
|
|
476
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
477
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation,
|
|
478
|
+
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
479
|
+
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
480
|
+
}),
|
|
481
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
482
|
+
stroke: e.value.style.chart.layout.rings.stroke,
|
|
483
|
+
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
484
|
+
cx: s.value.width / 2,
|
|
485
|
+
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
486
|
+
r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
487
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${C.value}_${a})` : l.color
|
|
488
|
+
}, null, 14, Pt),
|
|
489
|
+
t.$slots.pattern ? (n(), v("circle", {
|
|
490
|
+
key: 0,
|
|
491
|
+
class: V({
|
|
492
|
+
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
493
|
+
"vue-rings-item-onload": !x.value && e.value.useCssAnimation,
|
|
494
|
+
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
495
|
+
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
496
|
+
}),
|
|
497
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
498
|
+
stroke: e.value.style.chart.layout.rings.stroke,
|
|
499
|
+
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
500
|
+
cx: s.value.width / 2,
|
|
501
|
+
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
502
|
+
r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
503
|
+
fill: `url(#pattern_${C.value}_${l.absoluteIndex})`
|
|
504
|
+
}, null, 14, St)) : m("", !0),
|
|
505
|
+
w("circle", {
|
|
506
|
+
"data-cy-trap": "",
|
|
507
|
+
stroke: "none",
|
|
508
|
+
cx: s.value.width / 2,
|
|
509
|
+
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
510
|
+
r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
511
|
+
fill: "transparent",
|
|
512
|
+
onMouseenter: (u) => Ue(a, l),
|
|
513
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
514
|
+
$.value = null, R.value = !1;
|
|
515
|
+
})
|
|
516
|
+
}, null, 40, At)
|
|
517
|
+
]))), 256)),
|
|
518
|
+
p(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
519
|
+
], 14, wt)) : m("", !0),
|
|
520
|
+
t.$slots.watermark ? (n(), v("div", Lt, [
|
|
521
|
+
p(t.$slots, "watermark", L(F({ isPrinting: i(de) || i(pe) })), void 0, !0)
|
|
522
|
+
])) : m("", !0),
|
|
523
|
+
z.value ? m("", !0) : (n(), O(gt, {
|
|
524
|
+
key: 6,
|
|
525
|
+
config: {
|
|
526
|
+
type: "rings",
|
|
527
|
+
style: {
|
|
528
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
529
|
+
rings: {
|
|
530
|
+
color: "#CCCCCC"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}, null, 8, ["config"])),
|
|
535
|
+
w("div", {
|
|
536
|
+
ref_key: "chartLegend",
|
|
537
|
+
ref: le
|
|
538
|
+
}, [
|
|
539
|
+
e.value.style.chart.legend.show ? (n(), O(ht, {
|
|
540
|
+
key: `legend_${ue.value}`,
|
|
541
|
+
legendSet: me.value,
|
|
542
|
+
config: ze.value,
|
|
543
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => X(l.uid))
|
|
544
|
+
}, $e({
|
|
545
|
+
item: g(({ legend: l, index: a }) => [
|
|
546
|
+
w("div", {
|
|
547
|
+
"data-cy-legend-item": "",
|
|
548
|
+
onClick: (u) => X(l.uid),
|
|
549
|
+
style: N(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
550
|
+
}, [
|
|
551
|
+
we(E(l.name) + ": " + E(i(xe)(
|
|
552
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
553
|
+
l.value,
|
|
554
|
+
i(P)({
|
|
555
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
556
|
+
v: l.value,
|
|
557
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
558
|
+
r: e.value.style.chart.legend.roundingValue
|
|
559
|
+
}),
|
|
560
|
+
{ datapoint: l, seriesIndex: a }
|
|
561
|
+
)) + " ", 1),
|
|
562
|
+
f.value.includes(l.uid) ? (n(), v("span", Vt, " ( - % ) ")) : (n(), v("span", Mt, " (" + E(isNaN(l.value / k.value) ? "-" : i(P)({
|
|
563
|
+
v: l.value / k.value * 100,
|
|
564
|
+
s: "%",
|
|
565
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
566
|
+
})) + ") ", 1))
|
|
567
|
+
], 12, Ft)
|
|
568
|
+
]),
|
|
569
|
+
_: 2
|
|
570
|
+
}, [
|
|
571
|
+
t.$slots.pattern ? {
|
|
572
|
+
name: "legend-pattern",
|
|
573
|
+
fn: g(({ legend: l, index: a }) => [
|
|
574
|
+
J(kt, {
|
|
575
|
+
shape: l.shape,
|
|
576
|
+
radius: 30,
|
|
577
|
+
stroke: "none",
|
|
578
|
+
plot: { x: 30, y: 30 },
|
|
579
|
+
fill: `url(#pattern_${C.value}_${a})`
|
|
580
|
+
}, null, 8, ["shape", "fill"])
|
|
581
|
+
]),
|
|
582
|
+
key: "0"
|
|
583
|
+
} : void 0
|
|
584
|
+
]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
585
|
+
key: 1,
|
|
586
|
+
legend: me.value
|
|
587
|
+
}, void 0, !0)
|
|
588
|
+
], 512),
|
|
589
|
+
t.$slots.source ? (n(), v("div", {
|
|
590
|
+
key: 7,
|
|
591
|
+
ref_key: "source",
|
|
592
|
+
ref: oe,
|
|
593
|
+
dir: "auto"
|
|
594
|
+
}, [
|
|
595
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
596
|
+
], 512)) : m("", !0),
|
|
597
|
+
J(dt, {
|
|
598
|
+
show: _.value.showTooltip && R.value && f.value.length < b.dataset.length,
|
|
599
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
600
|
+
color: e.value.style.chart.tooltip.color,
|
|
601
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
602
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
603
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
604
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
605
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
606
|
+
position: e.value.style.chart.tooltip.position,
|
|
607
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
608
|
+
parent: S.value,
|
|
609
|
+
content: H.value,
|
|
610
|
+
isFullscreen: A.value,
|
|
611
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
612
|
+
}, {
|
|
613
|
+
"tooltip-before": g(() => [
|
|
614
|
+
p(t.$slots, "tooltip-before", L(F({ ...Y.value })), void 0, !0)
|
|
615
|
+
]),
|
|
616
|
+
"tooltip-after": g(() => [
|
|
617
|
+
p(t.$slots, "tooltip-after", L(F({ ...Y.value })), void 0, !0)
|
|
618
|
+
]),
|
|
619
|
+
_: 3
|
|
620
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
621
|
+
z.value ? (n(), O(ft, {
|
|
622
|
+
key: 8,
|
|
623
|
+
hideDetails: "",
|
|
624
|
+
config: {
|
|
625
|
+
open: _.value.showTable,
|
|
626
|
+
maxHeight: 1e4,
|
|
627
|
+
body: {
|
|
628
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
629
|
+
color: e.value.style.chart.color
|
|
630
|
+
},
|
|
631
|
+
head: {
|
|
632
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
633
|
+
color: e.value.style.chart.color
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}, {
|
|
637
|
+
content: g(() => [
|
|
638
|
+
(n(), O(pt, {
|
|
639
|
+
key: `table_${ne.value}`,
|
|
640
|
+
colNames: B.value.colNames,
|
|
641
|
+
head: B.value.head,
|
|
642
|
+
body: B.value.body,
|
|
643
|
+
config: B.value.config,
|
|
644
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
645
|
+
onClose: o[2] || (o[2] = (l) => _.value.showTable = !1)
|
|
646
|
+
}, {
|
|
647
|
+
th: g(({ th: l }) => [
|
|
648
|
+
w("div", {
|
|
649
|
+
innerHTML: l,
|
|
650
|
+
style: { display: "flex", "align-items": "center" }
|
|
651
|
+
}, null, 8, zt)
|
|
652
|
+
]),
|
|
653
|
+
td: g(({ td: l }) => [
|
|
654
|
+
we(E(l.name || l), 1)
|
|
655
|
+
]),
|
|
656
|
+
_: 1
|
|
657
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
658
|
+
]),
|
|
659
|
+
_: 1
|
|
660
|
+
}, 8, ["config"])) : m("", !0)
|
|
661
|
+
], 46, $t));
|
|
662
|
+
}
|
|
663
|
+
}, tl = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-966f63d3"]]);
|
|
664
|
+
export {
|
|
665
|
+
tl as default
|
|
666
|
+
};
|