vue-data-ui 2.4.64 → 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-DSkIkWAr.cjs → Arrow-BKPURRQ6.cjs} +1 -1
- package/dist/{Arrow-CRM8J83L.js → Arrow-C7ihyW4O.js} +1 -1
- package/dist/{BaseIcon-D13bKBUN.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
- package/dist/{BaseIcon-Axko0XAg.js → BaseIcon-DpaRUsHC.js} +1 -1
- package/dist/{DataTable-DnrSae6c.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
- package/dist/{DataTable-B2hVpPSW.js → DataTable-DX_jYNWG.js} +2 -2
- package/dist/Legend-BMTBtkoQ.cjs +1 -0
- package/dist/Legend-DGUxLqhs.js +70 -0
- package/dist/{PackageVersion-B684aQUP.js → PackageVersion-B9_Ed72C.js} +1 -1
- package/dist/{PackageVersion-FzHnQSp-.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
- package/dist/{PenAndPaper-C6I0ckZw.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
- package/dist/{PenAndPaper-mC0kh-S8.js → PenAndPaper-CzjoEhsO.js} +3 -3
- package/dist/{Shape-eJUVLesM.cjs → Shape-CZB2KQ0L.cjs} +1 -1
- package/dist/{Shape-DbnYh6z4.js → Shape-aXd72O71.js} +1 -1
- package/dist/{Slicer-C9bF7-B-.cjs → Slicer-ChxjRhai.cjs} +1 -1
- package/dist/{Slicer-BBolqweG.js → Slicer-CopZgIzh.js} +2 -2
- package/dist/{Title-DuMgnso9.cjs → Title-BnRtxxP4.cjs} +1 -1
- package/dist/{Title-DqZErnpZ.js → Title-DyUTj8GI.js} +1 -1
- package/dist/{Tooltip-DddRc8qD.js → Tooltip-B-0uEV3l.js} +1 -1
- package/dist/{Tooltip-Cz3eQmMV.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
- package/dist/documentation/installation.md +34 -34
- package/dist/{index-DjTPIx3R.js → index-BVNcFEqn.js} +398 -393
- package/dist/{index-D-xYtUSL.cjs → index-CKgv8c-A.cjs} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BN-VfUfj.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
- package/dist/{useNestedProp-BNmCbG1v.js → useNestedProp-D79dWdel.js} +1 -1
- package/dist/{usePrinter-BFF1xn1s.js → usePrinter-Bcfs_I6G.js} +1 -1
- package/dist/{usePrinter-pT-a_sFr.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
- package/dist/{vue-data-ui-CPMtS74M.js → vue-data-ui-CXxR_hXg.js} +60 -60
- package/dist/{vue-data-ui-rWaUsffe.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-CxcO1rW_.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cpx0rTUr.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
- package/dist/{vue-ui-accordion-CDTXGeL0.js → vue-ui-accordion-GNblUy42.js} +3 -3
- package/dist/{vue-ui-accordion-B1MkyNta.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CSwlc2bd.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CEvYSZnY.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
- package/dist/{vue-ui-annotator-BUoz1Y87.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
- package/dist/{vue-ui-annotator-D5dS0BTP.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
- package/dist/{vue-ui-bullet-RDyK79l0.js → vue-ui-bullet-D_CS85II.js} +8 -8
- package/dist/{vue-ui-bullet-Bcx-V2GQ.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-s-Z42Lns.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
- package/dist/{vue-ui-candlestick-CkjNRVDz.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DJNIAgAU.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
- package/dist/{vue-ui-carousel-table-CoLBbF34.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
- package/dist/{vue-ui-chestnut-P1hAffNt.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
- package/dist/{vue-ui-chestnut-_90914ye.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
- package/dist/{vue-ui-cursor-BoGnTfem.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
- package/dist/{vue-ui-cursor-Doo6HM0B.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
- package/dist/{vue-ui-dashboard-mC_BLuIN.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZKKb8cZ.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
- package/dist/{vue-ui-digits-Z8AprQhX.js → vue-ui-digits-B5P9UheE.js} +2 -2
- package/dist/{vue-ui-digits-DFwg7Et3.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-CK_0JI6T.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
- package/dist/{vue-ui-donut-evolution-D-6gM9JV.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C4y9e7Gz.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
- package/dist/{vue-ui-dumbbell-DS_3Z5cT.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
- package/dist/{vue-ui-flow-XrJvcKqr.js → vue-ui-flow-cKQSDKfP.js} +9 -9
- package/dist/{vue-ui-flow-C2sVVaok.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
- package/dist/{vue-ui-funnel-DxhsOEbU.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
- package/dist/{vue-ui-funnel-CHhVPjnM.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
- package/dist/{vue-ui-galaxy-Bd8p21nC.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
- package/dist/{vue-ui-galaxy-CRsan4r5.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
- package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
- package/dist/{vue-ui-gauge-B-nOtSwD.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
- package/dist/{vue-ui-gizmo-tQNlhr2p.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
- package/dist/{vue-ui-gizmo-C3GRBcSW.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DwalrFVm.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-6MpvCBmt.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
- package/dist/{vue-ui-history-plot-Hk-UrZtS.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
- package/dist/{vue-ui-history-plot-FgapeA0e.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
- package/dist/{vue-ui-kpi-CKZQsJnV.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
- package/dist/{vue-ui-kpi-DrCH9EuP.js → vue-ui-kpi-HyZOfh63.js} +3 -3
- package/dist/{vue-ui-mini-loader-BSKXq7CA.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BLvcc-fM.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
- package/dist/{vue-ui-molecule-Ch4_SJxL.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
- package/dist/{vue-ui-molecule-D0IHSilQ.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DNPseOpJ.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Gv0k1T46.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DY8Hig_-.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
- package/dist/{vue-ui-nested-donuts-QOvJJc30.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
- package/dist/{vue-ui-onion-Ca0Tcbu3.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
- package/dist/{vue-ui-onion-Ct_1j1fA.js → vue-ui-onion-CID0DNSa.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DkYcNRQk.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-C_opo0qJ.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DwAKm2Yj.js → vue-ui-quadrant-063Cq0di.js} +12 -12
- package/dist/{vue-ui-quadrant-BJuoZ_lv.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-5ga8waQS.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D5V73GXO.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
- package/dist/{vue-ui-radar-CmE4wCWD.js → vue-ui-radar-BmY47r3J.js} +12 -12
- package/dist/{vue-ui-radar-C3kzmi1G.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
- package/dist/{vue-ui-rating-CE7LGiFS.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
- package/dist/{vue-ui-rating-SAph_BKh.js → vue-ui-rating-b2SThMJw.js} +2 -2
- package/dist/{vue-ui-relation-circle-D1JdWshk.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
- package/dist/{vue-ui-relation-circle-dQQw_mgd.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-BrOg2xiN.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
- package/dist/{vue-ui-scatter-DE4X0DQI.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
- package/dist/{vue-ui-screenshot-CyWEEkg_.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-BXq82cfA.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D3zg7qd2.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dt9cA-wa.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
- package/dist/{vue-ui-smiley-FUNmIUpN.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
- package/dist/{vue-ui-smiley-uRlPgN-A.js → vue-ui-smiley-ne5pBMum.js} +2 -2
- package/dist/{vue-ui-spark-trend-5KFnHsjs.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
- package/dist/{vue-ui-spark-trend-DYXJMJLz.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D-Yk9z4E.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
- package/dist/{vue-ui-sparkbar-BUg0DhGI.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DVLZofTg.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DvDPPyau.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Dqgl_5RN.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-GMZxK2oC.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C96IUWwW.cjs → vue-ui-sparkline-BFlRfhM6.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CPEHgvq0.js → vue-ui-sparkline-lY0wS6kU.js} +92 -92
- package/dist/{vue-ui-sparkstackbar-BroOR6B-.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DCceVnjJ.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-BYO72loZ.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CJxPAY9n.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
- package/dist/{vue-ui-table-BTuCiJb7.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
- package/dist/{vue-ui-table-DKoRX7gX.js → vue-ui-table-DZV-uDG2.js} +1 -1
- package/dist/{vue-ui-table-heatmap-4RZ4Bo12.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
- package/dist/{vue-ui-table-heatmap-L3Pg7wC0.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-GaHw2cTh.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CVWPCRfz.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
- package/dist/{vue-ui-thermometer-VC967j2q.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BFqURwxY.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
- package/dist/{vue-ui-timer-Bou1Zg22.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
- package/dist/{vue-ui-timer-mPQTAvi1.js → vue-ui-timer-D2_1bbpl.js} +5 -5
- package/dist/{vue-ui-tiremarks-ClzgPlHg.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DyEXFKpK.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
- package/dist/{vue-ui-treemap-pCrT4KlF.js → vue-ui-treemap-CgzgE20q.js} +11 -11
- package/dist/{vue-ui-treemap-DEUSAGw0.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-DkHP1plA.js → vue-ui-waffle-0mHE8fud.js} +11 -11
- package/dist/{vue-ui-waffle-DjcwBxNh.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
- package/dist/{vue-ui-wheel-L8vxpKcv.js → vue-ui-wheel-BWL-td7-.js} +7 -7
- package/dist/{vue-ui-wheel-Y2Sny-6a.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B9UJmesc.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DIBB7HIj.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
- package/dist/{vue-ui-xy-QmsiPNcv.js → vue-ui-xy-C8E2WzGt.js} +866 -819
- package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CeKH8VIR.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
- package/dist/{vue-ui-xy-canvas-2aqG9yv5.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Legend-CzY3Yhr8.js +0 -68
- package/dist/Legend-DIfEhYtz.cjs +0 -1
- package/dist/vue-ui-donut-C6i_KVvc.js +0 -1122
- package/dist/vue-ui-donut-uH8SS5Ms.cjs +0 -1
- package/dist/vue-ui-gauge-D0Mk9_aI.cjs +0 -1
- package/dist/vue-ui-rings-C-7vrgjN.js +0 -628
- package/dist/vue-ui-rings-kFhuaBvY.cjs +0 -2
- package/dist/vue-ui-stackbar-Bv7RiRae.cjs +0 -6
- package/dist/vue-ui-stackbar-KznnSCkj.js +0 -1061
- package/dist/vue-ui-vertical-bar-DxkQK0tN.cjs +0 -4
- package/dist/vue-ui-vertical-bar-QF9epdei.js +0 -888
- package/dist/vue-ui-xy-DwidR-Vl.cjs +0 -3
|
@@ -1,628 +0,0 @@
|
|
|
1
|
-
import { ref as r, computed as v, watch as Be, onMounted as De, onBeforeUnmount as Ee, openBlock as i, createElementBlock as h, normalizeClass as E, normalizeStyle as S, unref as u, createBlock as _, createCommentVNode as b, createSlots as We, withCtx as g, renderSlot as c, normalizeProps as I, guardReactiveProps as M, createVNode as be, createElementVNode as C, Fragment as ke, renderList as Ce, createTextVNode as we, toDisplayString as W, nextTick as Ge } from "vue";
|
|
2
|
-
import { u as He, c as $e, t as je, a as Xe, p as x, o as Ye, e as q, g as qe, b as Je, J as Ke, d as Te, f as N, X as Qe, s as Ze, w as et, v as J, i as _e, x as tt, y as lt, q as ot, r as at } from "./index-DjTPIx3R.js";
|
|
3
|
-
import { t as st, u as nt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as rt } from "./Title-DqZErnpZ.js";
|
|
5
|
-
import { u as ut, U as it } from "./usePrinter-BFF1xn1s.js";
|
|
6
|
-
import { _ as vt } from "./Tooltip-DddRc8qD.js";
|
|
7
|
-
import { D as ct } from "./DataTable-B2hVpPSW.js";
|
|
8
|
-
import { L as dt } from "./Legend-CzY3Yhr8.js";
|
|
9
|
-
import pt from "./vue-ui-skeleton-Dt9cA-wa.js";
|
|
10
|
-
import ht from "./vue-ui-accordion-CDTXGeL0.js";
|
|
11
|
-
import { u as xe } from "./useNestedProp-BNmCbG1v.js";
|
|
12
|
-
import { _ as gt } from "./PackageVersion-B684aQUP.js";
|
|
13
|
-
import { P as ft } from "./PenAndPaper-mC0kh-S8.js";
|
|
14
|
-
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["width", "height"], wt = ["id"], $t = ["stop-color"], Tt = ["stop-color"], _t = ["stroke", "cx", "cy", "r", "fill"], xt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Nt = ["cx", "cy", "r", "onMouseenter"], Ot = {
|
|
17
|
-
key: 5,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, Pt = ["onClick"], St = { key: 0 }, Lt = { key: 1 }, At = ["innerHTML"], Ft = {
|
|
20
|
-
__name: "vue-ui-rings",
|
|
21
|
-
props: {
|
|
22
|
-
config: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default() {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
dataset: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default() {
|
|
31
|
-
return [];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["selectLegend"],
|
|
36
|
-
setup(Ne, { expose: Oe, emit: Pe }) {
|
|
37
|
-
const y = Ne, { vue_ui_rings: Se } = He(), L = r(!1), V = v(() => !!y.dataset && y.dataset.length), A = r($e()), Le = r(null), z = r(!1), G = r(""), T = r(null), K = r(0), O = r(null), Q = r(null), Z = r(null), ee = r(null), te = r(null), le = r(0), oe = r(0), ae = r(0), e = v({
|
|
38
|
-
get: () => re(),
|
|
39
|
-
set: (t) => t
|
|
40
|
-
}), { userOptionsVisible: H, setUserOptionsVisibility: se, keepUserOptionState: ne } = yt({ config: e.value });
|
|
41
|
-
function re() {
|
|
42
|
-
const t = xe({
|
|
43
|
-
userConfig: y.config,
|
|
44
|
-
defaultConfig: Se
|
|
45
|
-
});
|
|
46
|
-
return t.theme ? {
|
|
47
|
-
...xe({
|
|
48
|
-
userConfig: je.vue_ui_rings[t.theme] || y.config,
|
|
49
|
-
defaultConfig: t
|
|
50
|
-
}),
|
|
51
|
-
customPalette: Xe[t.theme] || x
|
|
52
|
-
} : t;
|
|
53
|
-
}
|
|
54
|
-
Be(() => y.config, (t) => {
|
|
55
|
-
e.value = re(), H.value = !e.value.showOnChartHover, ue(), le.value += 1, oe.value += 1, ae.value += 1;
|
|
56
|
-
}, { deep: !0 });
|
|
57
|
-
const R = r(null);
|
|
58
|
-
De(() => {
|
|
59
|
-
ue();
|
|
60
|
-
});
|
|
61
|
-
function ue() {
|
|
62
|
-
if (Ye(y.dataset) ? q({
|
|
63
|
-
componentName: "VueUiRings",
|
|
64
|
-
type: "dataset"
|
|
65
|
-
}) : y.dataset.forEach((t, o) => {
|
|
66
|
-
t.values.length || q({
|
|
67
|
-
componentName: "VueUiRings",
|
|
68
|
-
type: "dataset"
|
|
69
|
-
}), qe({
|
|
70
|
-
datasetObject: t,
|
|
71
|
-
requiredAttributes: ["name", "values"]
|
|
72
|
-
}).forEach((l) => {
|
|
73
|
-
q({
|
|
74
|
-
componentName: "VueUiRings",
|
|
75
|
-
type: "datasetSerieAttribute",
|
|
76
|
-
property: l,
|
|
77
|
-
index: o
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
}), e.value.responsive) {
|
|
81
|
-
const t = st(() => {
|
|
82
|
-
const { width: o, height: l } = nt({
|
|
83
|
-
chart: O.value,
|
|
84
|
-
title: e.value.style.chart.title.text ? Q.value : null,
|
|
85
|
-
legend: e.value.style.chart.legend.show ? Z.value : null,
|
|
86
|
-
source: ee.value,
|
|
87
|
-
noTitle: te.value
|
|
88
|
-
});
|
|
89
|
-
n.value.width = o, n.value.height = l;
|
|
90
|
-
});
|
|
91
|
-
R.value = new ResizeObserver(t), R.value.observe(O.value.parentNode);
|
|
92
|
-
}
|
|
93
|
-
setTimeout(() => {
|
|
94
|
-
L.value = !0;
|
|
95
|
-
}, 600);
|
|
96
|
-
}
|
|
97
|
-
Ee(() => {
|
|
98
|
-
R.value && R.value.disconnect();
|
|
99
|
-
});
|
|
100
|
-
const { isPrinting: ie, isImaging: ve, generatePdf: ce, generateImage: de } = ut({
|
|
101
|
-
elementId: `rings_${A.value}`,
|
|
102
|
-
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
103
|
-
}), Ae = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), pe = v(() => Je(e.value.customPalette)), w = r({
|
|
104
|
-
showTable: e.value.table.show,
|
|
105
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
106
|
-
}), n = r({
|
|
107
|
-
height: 360,
|
|
108
|
-
width: 360
|
|
109
|
-
}), Fe = v(() => Math.min(n.value.height, n.value.width)), d = r([]);
|
|
110
|
-
function j(t) {
|
|
111
|
-
d.value.includes(t) ? d.value = d.value.filter((o) => o !== t) : d.value.push(t), Pe("selectLegend", p.value.map((o) => ({
|
|
112
|
-
name: o.name,
|
|
113
|
-
color: o.color,
|
|
114
|
-
value: o.value
|
|
115
|
-
})));
|
|
116
|
-
}
|
|
117
|
-
const Ie = v(() => Math.max(
|
|
118
|
-
...U.value.filter((t) => !d.value.includes(t.uid)).map(({ value: t }) => t)
|
|
119
|
-
));
|
|
120
|
-
function he(t) {
|
|
121
|
-
return t / Ie.value;
|
|
122
|
-
}
|
|
123
|
-
const U = v(() => y.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
124
|
-
const s = Ke(t).reduce((k, F) => k + F, 0);
|
|
125
|
-
return {
|
|
126
|
-
name: o,
|
|
127
|
-
color: l || Te(l) || pe.value[a] || x[a] || x[a % x.length],
|
|
128
|
-
value: s,
|
|
129
|
-
proportion: s / y.dataset.map((k) => (k.values || []).reduce((F, Ue) => F + Ue, 0)).reduce((k, F) => k + F, 0),
|
|
130
|
-
uid: $e()
|
|
131
|
-
};
|
|
132
|
-
})), ge = v(() => U.value.map((t) => ({
|
|
133
|
-
...t,
|
|
134
|
-
shape: "circle",
|
|
135
|
-
opacity: d.value.includes(t.uid) ? 0.5 : 1,
|
|
136
|
-
segregate: () => j(t.uid),
|
|
137
|
-
isSegregated: d.value.includes(t.uid)
|
|
138
|
-
})).toSorted((t, o) => o.value - t.value)), Me = v(() => ({
|
|
139
|
-
cy: "rings-div-legend",
|
|
140
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
141
|
-
color: e.value.style.chart.legend.color,
|
|
142
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
143
|
-
paddingBottom: 12,
|
|
144
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
145
|
-
})), m = v(() => U.value.filter((t) => !d.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), p = v(() => U.value.filter((t) => !d.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a }, s) => ({
|
|
146
|
-
uid: a,
|
|
147
|
-
name: t,
|
|
148
|
-
color: l || Te(l) || pe.value[s] || x[s] || x[s % x.length],
|
|
149
|
-
value: o,
|
|
150
|
-
proportion: he(o),
|
|
151
|
-
percentage: o / m.value * 100,
|
|
152
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * he(o)
|
|
153
|
-
})).toSorted((t, o) => o.value - t.value));
|
|
154
|
-
function Ve() {
|
|
155
|
-
return p.value.map(
|
|
156
|
-
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
157
|
-
name: t,
|
|
158
|
-
color: o,
|
|
159
|
-
value: l,
|
|
160
|
-
absoluteValues: a,
|
|
161
|
-
percentage: s
|
|
162
|
-
})
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
const f = v(() => Fe.value - e.value.style.chart.layout.rings.strokeWidth * 2), X = r(null);
|
|
166
|
-
function ze(t, o) {
|
|
167
|
-
if (d.value.length === y.dataset.length) return;
|
|
168
|
-
X.value = {
|
|
169
|
-
datapoint: o,
|
|
170
|
-
seriesIndex: t,
|
|
171
|
-
series: p.value,
|
|
172
|
-
config: e.value
|
|
173
|
-
}, T.value = t;
|
|
174
|
-
const l = p.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
175
|
-
if (tt(a) && lt(() => a({
|
|
176
|
-
seriesIndex: t,
|
|
177
|
-
datapoint: o,
|
|
178
|
-
series: p.value,
|
|
179
|
-
config: e.value
|
|
180
|
-
})))
|
|
181
|
-
G.value = a({
|
|
182
|
-
seriesIndex: t,
|
|
183
|
-
datapoint: o,
|
|
184
|
-
series: p.value,
|
|
185
|
-
config: e.value
|
|
186
|
-
});
|
|
187
|
-
else {
|
|
188
|
-
let s = "";
|
|
189
|
-
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>${_e(
|
|
190
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
191
|
-
l.value,
|
|
192
|
-
N({
|
|
193
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
194
|
-
v: l.value,
|
|
195
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
196
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
197
|
-
}),
|
|
198
|
-
{ datapoint: o, seriesIndex: t }
|
|
199
|
-
)}
|
|
200
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${N({
|
|
201
|
-
v: l.value / m.value * 100,
|
|
202
|
-
s: "%",
|
|
203
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
204
|
-
})})</span></div>` : s += `<b>${N({
|
|
205
|
-
v: l.value / m.value * 100,
|
|
206
|
-
s: "%",
|
|
207
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
208
|
-
})}</b></div>`), G.value = s;
|
|
209
|
-
}
|
|
210
|
-
z.value = !0;
|
|
211
|
-
}
|
|
212
|
-
const $ = v(() => {
|
|
213
|
-
const t = p.value.map((l) => ({
|
|
214
|
-
name: l.name,
|
|
215
|
-
color: l.color
|
|
216
|
-
})), o = p.value.map((l) => l.value);
|
|
217
|
-
return { head: t, body: o };
|
|
218
|
-
}), B = v(() => {
|
|
219
|
-
const t = [
|
|
220
|
-
' <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>',
|
|
221
|
-
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 }),
|
|
222
|
-
"100%"
|
|
223
|
-
], o = $.value.head.map((s, k) => [
|
|
224
|
-
{
|
|
225
|
-
color: s.color,
|
|
226
|
-
name: s.name
|
|
227
|
-
},
|
|
228
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[k], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
229
|
-
isNaN($.value.body[k] / m.value) ? "-" : ($.value.body[k] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
230
|
-
]), l = {
|
|
231
|
-
th: {
|
|
232
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
233
|
-
color: e.value.table.th.color,
|
|
234
|
-
outline: e.value.table.th.outline
|
|
235
|
-
},
|
|
236
|
-
td: {
|
|
237
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
238
|
-
color: e.value.table.td.color,
|
|
239
|
-
outline: e.value.table.td.outline
|
|
240
|
-
},
|
|
241
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
242
|
-
}, a = [
|
|
243
|
-
e.value.table.columnNames.series,
|
|
244
|
-
e.value.table.columnNames.value,
|
|
245
|
-
e.value.table.columnNames.percentage
|
|
246
|
-
];
|
|
247
|
-
return {
|
|
248
|
-
head: t,
|
|
249
|
-
body: o,
|
|
250
|
-
config: l,
|
|
251
|
-
colNames: a
|
|
252
|
-
};
|
|
253
|
-
});
|
|
254
|
-
function fe() {
|
|
255
|
-
Ge(() => {
|
|
256
|
-
const t = $.value.head.map((a, s) => [[
|
|
257
|
-
a.name
|
|
258
|
-
], [$.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 = ot(o);
|
|
259
|
-
at({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
const P = r(!1);
|
|
263
|
-
function Re(t) {
|
|
264
|
-
P.value = t, K.value += 1;
|
|
265
|
-
}
|
|
266
|
-
function ye() {
|
|
267
|
-
w.value.showTable = !w.value.showTable;
|
|
268
|
-
}
|
|
269
|
-
function me() {
|
|
270
|
-
w.value.showTooltip = !w.value.showTooltip;
|
|
271
|
-
}
|
|
272
|
-
const D = r(!1);
|
|
273
|
-
function Y() {
|
|
274
|
-
D.value = !D.value;
|
|
275
|
-
}
|
|
276
|
-
return Oe({
|
|
277
|
-
getData: Ve,
|
|
278
|
-
generatePdf: ce,
|
|
279
|
-
generateCsv: fe,
|
|
280
|
-
generateImage: de,
|
|
281
|
-
toggleTable: ye,
|
|
282
|
-
toggleTooltip: me,
|
|
283
|
-
toggleAnnotator: Y
|
|
284
|
-
}), (t, o) => (i(), h("div", {
|
|
285
|
-
ref_key: "ringsChart",
|
|
286
|
-
ref: O,
|
|
287
|
-
class: E(`vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
288
|
-
style: S(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
289
|
-
id: `rings_${A.value}`,
|
|
290
|
-
onMouseleave: o[3] || (o[3] = (l) => {
|
|
291
|
-
T.value = null, z.value = !1, u(se)(!1);
|
|
292
|
-
}),
|
|
293
|
-
onMouseenter: o[4] || (o[4] = () => u(se)(!0))
|
|
294
|
-
}, [
|
|
295
|
-
e.value.userOptions.buttons.annotator ? (i(), _(ft, {
|
|
296
|
-
key: 0,
|
|
297
|
-
parent: O.value,
|
|
298
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
299
|
-
color: e.value.style.chart.color,
|
|
300
|
-
active: D.value,
|
|
301
|
-
onClose: Y
|
|
302
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : b("", !0),
|
|
303
|
-
Ae.value ? (i(), h("div", {
|
|
304
|
-
key: 1,
|
|
305
|
-
ref_key: "noTitle",
|
|
306
|
-
ref: te,
|
|
307
|
-
class: "vue-data-ui-no-title-space",
|
|
308
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
309
|
-
}, null, 512)) : b("", !0),
|
|
310
|
-
e.value.style.chart.title.text ? (i(), h("div", {
|
|
311
|
-
key: 2,
|
|
312
|
-
ref_key: "chartTitle",
|
|
313
|
-
ref: Q,
|
|
314
|
-
style: "width:100%;background:transparent"
|
|
315
|
-
}, [
|
|
316
|
-
(i(), _(rt, {
|
|
317
|
-
key: `title_${le.value}`,
|
|
318
|
-
config: {
|
|
319
|
-
title: {
|
|
320
|
-
cy: "rings-div-title",
|
|
321
|
-
...e.value.style.chart.title
|
|
322
|
-
},
|
|
323
|
-
subtitle: {
|
|
324
|
-
cy: "rings-div-subtitle",
|
|
325
|
-
...e.value.style.chart.title.subtitle
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}, null, 8, ["config"]))
|
|
329
|
-
], 512)) : b("", !0),
|
|
330
|
-
e.value.userOptions.show && V.value && (u(ne) || u(H)) ? (i(), _(it, {
|
|
331
|
-
ref_key: "details",
|
|
332
|
-
ref: Le,
|
|
333
|
-
key: `user_options_${K.value}`,
|
|
334
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
335
|
-
color: e.value.style.chart.color,
|
|
336
|
-
isPrinting: u(ie),
|
|
337
|
-
isImaging: u(ve),
|
|
338
|
-
uid: A.value,
|
|
339
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
340
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
341
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
342
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
343
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
344
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
345
|
-
isTooltip: w.value.showTooltip,
|
|
346
|
-
isFullscreen: P.value,
|
|
347
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
348
|
-
chartElement: O.value,
|
|
349
|
-
position: e.value.userOptions.position,
|
|
350
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
351
|
-
isAnnotation: D.value,
|
|
352
|
-
onToggleFullscreen: Re,
|
|
353
|
-
onGeneratePdf: u(ce),
|
|
354
|
-
onGenerateCsv: fe,
|
|
355
|
-
onGenerateImage: u(de),
|
|
356
|
-
onToggleTable: ye,
|
|
357
|
-
onToggleTooltip: me,
|
|
358
|
-
onToggleAnnotator: Y,
|
|
359
|
-
style: S({
|
|
360
|
-
visibility: u(ne) ? u(H) ? "visible" : "hidden" : "visible"
|
|
361
|
-
})
|
|
362
|
-
}, We({ _: 2 }, [
|
|
363
|
-
t.$slots.optionTooltip ? {
|
|
364
|
-
name: "optionTooltip",
|
|
365
|
-
fn: g(() => [
|
|
366
|
-
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
367
|
-
]),
|
|
368
|
-
key: "0"
|
|
369
|
-
} : void 0,
|
|
370
|
-
t.$slots.optionPdf ? {
|
|
371
|
-
name: "optionPdf",
|
|
372
|
-
fn: g(() => [
|
|
373
|
-
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
374
|
-
]),
|
|
375
|
-
key: "1"
|
|
376
|
-
} : void 0,
|
|
377
|
-
t.$slots.optionCsv ? {
|
|
378
|
-
name: "optionCsv",
|
|
379
|
-
fn: g(() => [
|
|
380
|
-
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
381
|
-
]),
|
|
382
|
-
key: "2"
|
|
383
|
-
} : void 0,
|
|
384
|
-
t.$slots.optionImg ? {
|
|
385
|
-
name: "optionImg",
|
|
386
|
-
fn: g(() => [
|
|
387
|
-
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
388
|
-
]),
|
|
389
|
-
key: "3"
|
|
390
|
-
} : void 0,
|
|
391
|
-
t.$slots.optionTable ? {
|
|
392
|
-
name: "optionTable",
|
|
393
|
-
fn: g(() => [
|
|
394
|
-
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
395
|
-
]),
|
|
396
|
-
key: "4"
|
|
397
|
-
} : void 0,
|
|
398
|
-
t.$slots.optionFullscreen ? {
|
|
399
|
-
name: "optionFullscreen",
|
|
400
|
-
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
401
|
-
c(t.$slots, "optionFullscreen", I(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
402
|
-
]),
|
|
403
|
-
key: "5"
|
|
404
|
-
} : void 0,
|
|
405
|
-
t.$slots.optionAnnotator ? {
|
|
406
|
-
name: "optionAnnotator",
|
|
407
|
-
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
408
|
-
c(t.$slots, "optionAnnotator", I(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
409
|
-
]),
|
|
410
|
-
key: "6"
|
|
411
|
-
} : void 0
|
|
412
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
413
|
-
V.value ? (i(), h("svg", {
|
|
414
|
-
key: 4,
|
|
415
|
-
xmlns: u(Qe),
|
|
416
|
-
class: E({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
417
|
-
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
418
|
-
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
419
|
-
}, [
|
|
420
|
-
be(gt),
|
|
421
|
-
t.$slots["chart-background"] ? (i(), h("foreignObject", {
|
|
422
|
-
key: 0,
|
|
423
|
-
x: 0,
|
|
424
|
-
y: 0,
|
|
425
|
-
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
426
|
-
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
427
|
-
style: {
|
|
428
|
-
pointerEvents: "none"
|
|
429
|
-
}
|
|
430
|
-
}, [
|
|
431
|
-
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
432
|
-
], 8, Ct)) : b("", !0),
|
|
433
|
-
C("defs", null, [
|
|
434
|
-
(i(!0), h(ke, null, Ce(p.value, (l, a) => (i(), h("radialGradient", {
|
|
435
|
-
cx: "50%",
|
|
436
|
-
cy: "30%",
|
|
437
|
-
r: "50%",
|
|
438
|
-
fx: "50%",
|
|
439
|
-
fy: "50%",
|
|
440
|
-
id: `gradient_${A.value}_${a}`
|
|
441
|
-
}, [
|
|
442
|
-
C("stop", {
|
|
443
|
-
offset: "0%",
|
|
444
|
-
"stop-color": u(Ze)(u(et)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
445
|
-
}, null, 8, $t),
|
|
446
|
-
C("stop", {
|
|
447
|
-
offset: "100%",
|
|
448
|
-
"stop-color": l.color
|
|
449
|
-
}, null, 8, Tt)
|
|
450
|
-
], 8, wt))), 256))
|
|
451
|
-
]),
|
|
452
|
-
(i(!0), h(ke, null, Ce(p.value, (l, a) => (i(), h("g", null, [
|
|
453
|
-
C("circle", {
|
|
454
|
-
class: E({
|
|
455
|
-
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
456
|
-
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
457
|
-
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
458
|
-
}),
|
|
459
|
-
style: S(`animation-delay:${a * 100}ms`),
|
|
460
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
461
|
-
cx: n.value.width / 2,
|
|
462
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + f.value * p.value[0].proportion / 2 - f.value * l.proportion / 2 - 2 * (a + 1),
|
|
463
|
-
r: u(J)(f.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : f.value * l.proportion / 2 * 0.9),
|
|
464
|
-
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
465
|
-
}, null, 14, _t),
|
|
466
|
-
C("circle", {
|
|
467
|
-
class: E({
|
|
468
|
-
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
469
|
-
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
470
|
-
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
471
|
-
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
472
|
-
}),
|
|
473
|
-
style: S(`animation-delay:${a * 100}ms`),
|
|
474
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
475
|
-
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
476
|
-
cx: n.value.width / 2,
|
|
477
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + f.value * p.value[0].proportion / 2 - f.value * l.proportion / 2 - 2 * (a + 1),
|
|
478
|
-
r: u(J)(f.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : f.value * l.proportion / 2 * 0.9),
|
|
479
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${A.value}_${a})` : l.color
|
|
480
|
-
}, null, 14, xt),
|
|
481
|
-
C("circle", {
|
|
482
|
-
"data-cy-trap": "",
|
|
483
|
-
stroke: "none",
|
|
484
|
-
cx: n.value.width / 2,
|
|
485
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + f.value * p.value[0].proportion / 2 - f.value * l.proportion / 2 - 2 * (a + 1),
|
|
486
|
-
r: u(J)(f.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : f.value * l.proportion / 2 * 0.9),
|
|
487
|
-
fill: "transparent",
|
|
488
|
-
onMouseenter: (s) => ze(a, l),
|
|
489
|
-
onMouseleave: o[0] || (o[0] = (s) => {
|
|
490
|
-
T.value = null, z.value = !1;
|
|
491
|
-
})
|
|
492
|
-
}, null, 40, Nt)
|
|
493
|
-
]))), 256)),
|
|
494
|
-
c(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
495
|
-
], 14, kt)) : b("", !0),
|
|
496
|
-
t.$slots.watermark ? (i(), h("div", Ot, [
|
|
497
|
-
c(t.$slots, "watermark", I(M({ isPrinting: u(ie) || u(ve) })), void 0, !0)
|
|
498
|
-
])) : b("", !0),
|
|
499
|
-
V.value ? b("", !0) : (i(), _(pt, {
|
|
500
|
-
key: 6,
|
|
501
|
-
config: {
|
|
502
|
-
type: "rings",
|
|
503
|
-
style: {
|
|
504
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
505
|
-
rings: {
|
|
506
|
-
color: "#CCCCCC"
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}, null, 8, ["config"])),
|
|
511
|
-
C("div", {
|
|
512
|
-
ref_key: "chartLegend",
|
|
513
|
-
ref: Z
|
|
514
|
-
}, [
|
|
515
|
-
e.value.style.chart.legend.show ? (i(), _(dt, {
|
|
516
|
-
key: `legend_${ae.value}`,
|
|
517
|
-
legendSet: ge.value,
|
|
518
|
-
config: Me.value,
|
|
519
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) => j(l.uid))
|
|
520
|
-
}, {
|
|
521
|
-
item: g(({ legend: l, index: a }) => [
|
|
522
|
-
C("div", {
|
|
523
|
-
"data-cy-legend-item": "",
|
|
524
|
-
onClick: (s) => j(l.uid),
|
|
525
|
-
style: S(`opacity:${d.value.includes(l.uid) ? 0.5 : 1}`)
|
|
526
|
-
}, [
|
|
527
|
-
we(W(l.name) + ": " + W(u(_e)(
|
|
528
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
529
|
-
l.value,
|
|
530
|
-
u(N)({
|
|
531
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
532
|
-
v: l.value,
|
|
533
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
534
|
-
r: e.value.style.chart.legend.roundingValue
|
|
535
|
-
}),
|
|
536
|
-
{ datapoint: l, seriesIndex: a }
|
|
537
|
-
)) + " ", 1),
|
|
538
|
-
d.value.includes(l.uid) ? (i(), h("span", Lt, " ( - % ) ")) : (i(), h("span", St, " (" + W(isNaN(l.value / m.value) ? "-" : u(N)({
|
|
539
|
-
v: l.value / m.value * 100,
|
|
540
|
-
s: "%",
|
|
541
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
542
|
-
})) + ") ", 1))
|
|
543
|
-
], 12, Pt)
|
|
544
|
-
]),
|
|
545
|
-
_: 1
|
|
546
|
-
}, 8, ["legendSet", "config"])) : c(t.$slots, "legend", {
|
|
547
|
-
key: 1,
|
|
548
|
-
legend: ge.value
|
|
549
|
-
}, void 0, !0)
|
|
550
|
-
], 512),
|
|
551
|
-
t.$slots.source ? (i(), h("div", {
|
|
552
|
-
key: 7,
|
|
553
|
-
ref_key: "source",
|
|
554
|
-
ref: ee,
|
|
555
|
-
dir: "auto"
|
|
556
|
-
}, [
|
|
557
|
-
c(t.$slots, "source", {}, void 0, !0)
|
|
558
|
-
], 512)) : b("", !0),
|
|
559
|
-
be(vt, {
|
|
560
|
-
show: w.value.showTooltip && z.value && d.value.length < y.dataset.length,
|
|
561
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
562
|
-
color: e.value.style.chart.tooltip.color,
|
|
563
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
564
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
565
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
566
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
567
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
568
|
-
position: e.value.style.chart.tooltip.position,
|
|
569
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
570
|
-
parent: O.value,
|
|
571
|
-
content: G.value,
|
|
572
|
-
isFullscreen: P.value,
|
|
573
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
574
|
-
}, {
|
|
575
|
-
"tooltip-before": g(() => [
|
|
576
|
-
c(t.$slots, "tooltip-before", I(M({ ...X.value })), void 0, !0)
|
|
577
|
-
]),
|
|
578
|
-
"tooltip-after": g(() => [
|
|
579
|
-
c(t.$slots, "tooltip-after", I(M({ ...X.value })), void 0, !0)
|
|
580
|
-
]),
|
|
581
|
-
_: 3
|
|
582
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
583
|
-
V.value ? (i(), _(ht, {
|
|
584
|
-
key: 8,
|
|
585
|
-
hideDetails: "",
|
|
586
|
-
config: {
|
|
587
|
-
open: w.value.showTable,
|
|
588
|
-
maxHeight: 1e4,
|
|
589
|
-
body: {
|
|
590
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
591
|
-
color: e.value.style.chart.color
|
|
592
|
-
},
|
|
593
|
-
head: {
|
|
594
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
595
|
-
color: e.value.style.chart.color
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}, {
|
|
599
|
-
content: g(() => [
|
|
600
|
-
(i(), _(ct, {
|
|
601
|
-
key: `table_${oe.value}`,
|
|
602
|
-
colNames: B.value.colNames,
|
|
603
|
-
head: B.value.head,
|
|
604
|
-
body: B.value.body,
|
|
605
|
-
config: B.value.config,
|
|
606
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
607
|
-
onClose: o[2] || (o[2] = (l) => w.value.showTable = !1)
|
|
608
|
-
}, {
|
|
609
|
-
th: g(({ th: l }) => [
|
|
610
|
-
C("div", {
|
|
611
|
-
innerHTML: l,
|
|
612
|
-
style: { display: "flex", "align-items": "center" }
|
|
613
|
-
}, null, 8, At)
|
|
614
|
-
]),
|
|
615
|
-
td: g(({ td: l }) => [
|
|
616
|
-
we(W(l.name || l), 1)
|
|
617
|
-
]),
|
|
618
|
-
_: 1
|
|
619
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
620
|
-
]),
|
|
621
|
-
_: 1
|
|
622
|
-
}, 8, ["config"])) : b("", !0)
|
|
623
|
-
], 46, bt));
|
|
624
|
-
}
|
|
625
|
-
}, qt = /* @__PURE__ */ mt(Ft, [["__scopeId", "data-v-b8e475ba"]]);
|
|
626
|
-
export {
|
|
627
|
-
qt as default
|
|
628
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D-xYtUSL.cjs"),oe=require("./useResponsive-BJ7DTGpm.cjs"),ye=require("./Title-DuMgnso9.cjs"),le=require("./usePrinter-pT-a_sFr.cjs"),be=require("./Tooltip-Cz3eQmMV.cjs"),ke=require("./DataTable-DnrSae6c.cjs"),Ce=require("./Legend-DIfEhYtz.cjs"),we=require("./vue-ui-skeleton-D3zg7qd2.cjs"),Te=require("./vue-ui-accordion-B1MkyNta.cjs"),ae=require("./useNestedProp-BN-VfUfj.cjs"),Ne=require("./PackageVersion-FzHnQSp-.cjs"),$e=require("./PenAndPaper-C6I0ckZw.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Be=["id"],Pe=["xmlns","viewBox"],_e=["width","height"],Ve=["id"],Le=["stop-color"],Oe=["stop-color"],Ee=["stroke","cx","cy","r","fill"],ze=["stroke","stroke-width","cx","cy","r","fill"],Ae=["cx","cy","r","onMouseenter"],Fe={key:5,class:"vue-data-ui-watermark"},Ie=["onClick"],Re={key:0},Me={key:1},qe=["innerHTML"],Ue={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ne,emit:ue}){const v=re,{vue_ui_rings:se}=r.useConfig(),k=e.ref(!1),T=e.computed(()=>!!v.dataset&&v.dataset.length),C=e.ref(r.createUid()),ie=e.ref(null),N=e.ref(!1),P=e.ref(""),m=e.ref(null),E=e.ref(0),y=e.ref(null),z=e.ref(null),A=e.ref(null),F=e.ref(null),I=e.ref(null),R=e.ref(0),M=e.ref(0),q=e.ref(0),t=e.computed({get:()=>H(),set:o=>o}),{userOptionsVisible:_,setUserOptionsVisibility:U,keepUserOptionState:D}=xe.useUserOptionState({config:t.value});function H(){const o=ae.useNestedProp({userConfig:v.config,defaultConfig:se});return o.theme?{...ae.useNestedProp({userConfig:r.themes.vue_ui_rings[o.theme]||v.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>v.config,o=>{t.value=H(),_.value=!t.value.showOnChartHover,W(),R.value+=1,M.value+=1,q.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{W()});function W(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((o,a)=>{o.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive){const o=oe.throttle(()=>{const{width:a,height:l}=oe.useResponsive({chart:y.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:F.value,noTitle:I.value});s.value.width=a,s.value.height=l});$.value=new ResizeObserver(o),$.value.observe(y.value.parentNode)}setTimeout(()=>{k.value=!0},600)}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:G,isImaging:j,generatePdf:X,generateImage:Y}=le.usePrinter({elementId:`rings_${C.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),ce=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),J=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),de=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function V(o){i.value.includes(o)?i.value=i.value.filter(a=>a!==o):i.value.push(o),ue("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ve=e.computed(()=>Math.max(...x.value.filter(o=>!i.value.includes(o.uid)).map(({value:o})=>o)));function K(o){return o/ve.value}const x=e.computed(()=>v.dataset.map(({values:o,name:a,color:l=null},n)=>{const u=r.sanitizeArray(o).reduce((h,w)=>h+w,0);return{name:a,color:l||r.convertColorToHex(l)||J.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,me)=>w+me,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),Q=e.computed(()=>x.value.map(o=>({...o,shape:"circle",opacity:i.value.includes(o.uid)?.5:1,segregate:()=>V(o.uid),isSegregated:i.value.includes(o.uid)})).toSorted((o,a)=>a.value-o.value)),pe=e.computed(()=>({cy:"rings-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),p=e.computed(()=>x.value.filter(o=>!i.value.includes(o.uid)).map(({value:o})=>o).reduce((o,a)=>o+a,0)),c=e.computed(()=>x.value.filter(o=>!i.value.includes(o.uid)).map(({name:o,value:a,color:l=null,uid:n},u)=>({uid:n,name:o,color:l||r.convertColorToHex(l)||J.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:K(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*K(a)})).toSorted((o,a)=>a.value-o.value));function he(){return c.value.map(({name:o,color:a,value:l,absoluteValues:n,percentage:u})=>({name:o,color:a,value:l,absoluteValues:n,percentage:u}))}const d=e.computed(()=>de.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ge(o,a){if(i.value.length===v.dataset.length)return;L.value={datapoint:a,seriesIndex:o,series:c.value,config:t.value},m.value=o;const l=c.value[o],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:a,series:c.value,config:t.value})))P.value=n({seriesIndex:o,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.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 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}
|
|
2
|
-
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:l.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:l.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),P.value=u}N.value=!0}const f=e.computed(()=>{const o=c.value.map(l=>({name:l.name,color:l.color})),a=c.value.map(l=>l.value);return{head:o,body:a}}),S=e.computed(()=>{const o=[' <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>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=f.value.head.map((u,h)=>[{color:u.color,name:u.name},r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(f.value.body[h]/p.value)?"-":(f.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:o,body:a,config:l,colNames:n}});function Z(){e.nextTick(()=>{const o=f.value.head.map((n,u)=>[[n.name],[f.value.body[u]],[isNaN(f.value.body[u]/p.value)?"-":f.value.body[u]/p.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const b=e.ref(!1);function fe(o){b.value=o,E.value+=1}function ee(){g.value.showTable=!g.value.showTable}function te(){g.value.showTooltip=!g.value.showTooltip}const B=e.ref(!1);function O(){B.value=!B.value}return ne({getData:he,generatePdf:X,generateCsv:Z,generateImage:Y,toggleTable:ee,toggleTooltip:te,toggleAnnotator:O}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:y,class:e.normalizeClass(`vue-ui-rings ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${C.value}`,onMouseleave:a[3]||(a[3]=l=>{m.value=null,N.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock($e.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ce.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:I,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&T.value&&(e.unref(D)||e.unref(_))?(e.openBlock(),e.createBlock(le.UserOptions,{ref_key:"details",ref:ie,key:`user_options_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(G),isImaging:e.unref(j),uid:C.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:g.value.showTooltip,isFullscreen:b.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(X),onGenerateCsv:Z,onGenerateImage:e.unref(Y),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,_e)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${C.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(l.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Le),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Oe)],8,Ve))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":k.value&&t.value.useCssAnimation,"vue-rings-item-onload":!k.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,Ee),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":k.value&&t.value.useCssAnimation,"vue-rings-item-onload":!k.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":l.strokeWidth<.5?.5:l.strokeWidth,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${C.value}_${n})`:l.color},null,14,ze),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:"transparent",onMouseenter:u=>ge(n,l),onMouseleave:a[0]||(a[0]=u=>{m.value=null,N.value=!1})},null,40,Ae)]))),256)),e.renderSlot(o.$slots,"svg",{svg:s.value},void 0,!0)],14,Pe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ce.Legend,{key:`legend_${q.value}`,legendSet:Q.value,config:pe.value,onClickMarker:a[1]||(a[1]=({legend:l})=>V(l.uid))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>V(l.uid),style:e.normalizeStyle(`opacity:${i.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:n}))+" ",1),i.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",Me," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Re," ("+e.toDisplayString(isNaN(l.value/p.value)?"-":e.unref(r.dataLabel)({v:l.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ie)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:Q.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:g.value.showTooltip&&N.value&&i.value.length<v.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:P.value,isFullscreen:b.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),T.value?(e.openBlock(),e.createBlock(Te.default,{key:8,hideDetails:"",config:{open:g.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ke.DataTable,{key:`table_${M.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>g.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,qe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Be))}},De=Se._export_sfc(Ue,[["__scopeId","data-v-b8e475ba"]]);exports.default=De;
|