vue-data-ui 2.3.27 → 2.3.29
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 +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,751 +0,0 @@
|
|
|
1
|
-
import { computed as g, ref as d, onMounted as Be, onBeforeUnmount as Me, watch as Ge, openBlock as n, createElementBlock as r, normalizeClass as ae, normalizeStyle as C, renderSlot as b, createVNode as oe, createCommentVNode as c, createBlock as J, unref as o, createSlots as Ue, withCtx as m, normalizeProps as E, guardReactiveProps as R, createElementVNode as y, Fragment as j, renderList as W, toDisplayString as k, createTextVNode as $e, nextTick as Ee, pushScopeId as Re, popScopeId as je } from "vue";
|
|
2
|
-
import { u as We, o as Ye, e as Se, g as He, c as Xe, t as qe, a as Je, p as O, b as Ke, d as K, m as Qe, f as N, X as Ze, r as el, i as ll, j as h, k as Y, v as Te, w as tl, n as al, q as ol } from "./index-DiWO-_ca.js";
|
|
3
|
-
import { t as ul, u as sl } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as nl } from "./Title-C3Ez1ceq.js";
|
|
5
|
-
import { u as rl, U as il } from "./usePrinter-BD40aUzH.js";
|
|
6
|
-
import { D as vl } from "./DataTable-EqeVt-K-.js";
|
|
7
|
-
import { _ as cl } from "./Tooltip-7SRMoiu-.js";
|
|
8
|
-
import { L as dl } from "./Legend-8eVERYMn.js";
|
|
9
|
-
import hl from "./vue-ui-skeleton-CeNL0kH-.js";
|
|
10
|
-
import fl from "./vue-ui-accordion-CiNdgRO9.js";
|
|
11
|
-
import { u as Le } from "./useNestedProp-DNX5EefQ.js";
|
|
12
|
-
import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const gl = (V) => (Re("data-v-b9acc50e"), V = V(), je(), V), bl = ["id"], pl = ["xmlns", "viewBox"], ml = ["id"], wl = ["stop-color"], kl = ["stop-color"], _l = ["stop-color"], xl = ["id"], Cl = ["id"], $l = /* @__PURE__ */ gl(() => /* @__PURE__ */ y("feColorMatrix", {
|
|
14
|
-
type: "saturate",
|
|
15
|
-
values: "0"
|
|
16
|
-
}, null, -1)), Sl = ["id"], Tl = ["flood-color"], Ll = ["d", "stroke", "filter"], Fl = ["cx", "cy", "r", "fill", "filter"], zl = ["stroke", "d"], Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Pl = ["cx", "cy", "r", "fill"], Ol = ["d", "fill", "onMouseenter", "onClick"], Il = ["cx", "cy", "r", "fill"], Al = ["x", "y", "fill", "font-size"], Dl = ["x", "y", "fill", "font-size"], Vl = ["x", "y", "fill", "font-size"], Bl = ["x", "y", "fill", "font-size"], Ml = ["filter"], Gl = { key: 0 }, Ul = ["x", "y"], El = { key: 1 }, Rl = ["cx", "cy", "fill", "filter", "onClick"], jl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Wl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Yl = { key: 2 }, Hl = ["x", "y", "width"], Xl = {
|
|
17
|
-
key: 3,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, ql = ["onClick"], Jl = {
|
|
20
|
-
key: 0,
|
|
21
|
-
style: { "font-variant-numeric": "tabular-nums" }
|
|
22
|
-
}, Kl = { key: 1 }, Ql = ["innerHTML"], Zl = {
|
|
23
|
-
__name: "vue-ui-donut",
|
|
24
|
-
props: {
|
|
25
|
-
config: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
dataset: {
|
|
32
|
-
type: Array,
|
|
33
|
-
default() {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
39
|
-
setup(V, { expose: Fe, emit: ue }) {
|
|
40
|
-
const $ = V, { vue_ui_donut: ze } = We(), B = g({
|
|
41
|
-
get() {
|
|
42
|
-
return !!$.dataset && $.dataset.length;
|
|
43
|
-
},
|
|
44
|
-
set(l) {
|
|
45
|
-
return l;
|
|
46
|
-
}
|
|
47
|
-
}), M = d(null), se = d(null), ne = d(null), H = d(null);
|
|
48
|
-
Be(() => {
|
|
49
|
-
if (Ye($.dataset) ? Se({
|
|
50
|
-
componentName: "VueUiDonut",
|
|
51
|
-
type: "dataset"
|
|
52
|
-
}) : $.dataset.forEach((l, a) => {
|
|
53
|
-
He({
|
|
54
|
-
datasetObject: l,
|
|
55
|
-
requiredAttributes: ["name", "values"]
|
|
56
|
-
}).forEach((t) => {
|
|
57
|
-
B.value = !1, Se({
|
|
58
|
-
componentName: "VueUiDonut",
|
|
59
|
-
type: "datasetSerieAttribute",
|
|
60
|
-
property: t,
|
|
61
|
-
index: a
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}), e.value.responsive) {
|
|
65
|
-
const l = ul(() => {
|
|
66
|
-
const { width: a, height: t } = sl({
|
|
67
|
-
chart: M.value,
|
|
68
|
-
title: e.value.style.chart.title.text ? se.value : null,
|
|
69
|
-
legend: e.value.style.chart.legend.show ? ne.value : null
|
|
70
|
-
});
|
|
71
|
-
i.value.width = a, i.value.height = t;
|
|
72
|
-
});
|
|
73
|
-
H.value = new ResizeObserver(l), H.value.observe(M.value.parentNode);
|
|
74
|
-
}
|
|
75
|
-
}), Me(() => {
|
|
76
|
-
H.value && H.value.disconnect();
|
|
77
|
-
});
|
|
78
|
-
const _ = d(Xe()), Ne = d(null), Q = d(!1), Z = d(""), S = d(null), re = d(0), e = g(() => {
|
|
79
|
-
const l = Le({
|
|
80
|
-
userConfig: $.config,
|
|
81
|
-
defaultConfig: ze
|
|
82
|
-
});
|
|
83
|
-
return l.theme ? {
|
|
84
|
-
...Le({
|
|
85
|
-
userConfig: qe.vue_ui_donut[l.theme] || $.config,
|
|
86
|
-
defaultConfig: l
|
|
87
|
-
}),
|
|
88
|
-
customPalette: Je[l.theme] || O
|
|
89
|
-
} : l;
|
|
90
|
-
}), { isPrinting: ie, isImaging: ve, generatePdf: ce, generateImage: de } = rl({
|
|
91
|
-
elementId: `donut__${_.value}`,
|
|
92
|
-
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
93
|
-
}), he = g(() => Ke(e.value.customPalette)), f = d({
|
|
94
|
-
dataLabels: {
|
|
95
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
96
|
-
},
|
|
97
|
-
showTable: e.value.table.show,
|
|
98
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
99
|
-
}), i = d({
|
|
100
|
-
height: 360,
|
|
101
|
-
width: 512
|
|
102
|
-
}), G = g(() => {
|
|
103
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512, a = i.value.width * l;
|
|
104
|
-
return a > e.value.style.chart.layout.donut.strokeWidth ? e.value.style.chart.layout.donut.strokeWidth : a;
|
|
105
|
-
}), L = g(() => $.dataset.map((l, a) => ({
|
|
106
|
-
name: l.name,
|
|
107
|
-
color: K(l.color) || he.value[a] || O[a] || O[a % O.length],
|
|
108
|
-
value: l.values.reduce((t, u) => t + u, 0),
|
|
109
|
-
absoluteValues: l.values,
|
|
110
|
-
comment: l.comment || ""
|
|
111
|
-
}))), w = d(L.value);
|
|
112
|
-
Ge(() => L.value, (l) => w.value = l);
|
|
113
|
-
function Pe() {
|
|
114
|
-
return L.value.map((l) => ({
|
|
115
|
-
name: l.name,
|
|
116
|
-
color: l.color,
|
|
117
|
-
value: l.value
|
|
118
|
-
}));
|
|
119
|
-
}
|
|
120
|
-
const x = d([]), fe = d(null), ye = d(null), I = d(!1);
|
|
121
|
-
function ge(l) {
|
|
122
|
-
const a = L.value.find((s, v) => v === l);
|
|
123
|
-
let u = w.value.find((s, v) => v === l).value;
|
|
124
|
-
if (x.value.includes(l)) {
|
|
125
|
-
let v = function() {
|
|
126
|
-
u > s ? (cancelAnimationFrame(fe.value), w.value = w.value.map((p, te) => l === te ? {
|
|
127
|
-
...p,
|
|
128
|
-
value: s
|
|
129
|
-
} : p), I.value = !1) : (I.value = !0, u += s * 0.025, w.value = w.value.map((p, te) => l === te ? {
|
|
130
|
-
...p,
|
|
131
|
-
value: u
|
|
132
|
-
} : p), fe.value = requestAnimationFrame(v));
|
|
133
|
-
};
|
|
134
|
-
x.value = x.value.filter((p) => p !== l);
|
|
135
|
-
const s = a.value;
|
|
136
|
-
v();
|
|
137
|
-
} else if (x.value.length < L.value.length - 1) {
|
|
138
|
-
let s = function() {
|
|
139
|
-
u < 0.1 ? (cancelAnimationFrame(ye.value), x.value.push(l), w.value = w.value.map((v, p) => l === p ? {
|
|
140
|
-
...v,
|
|
141
|
-
value: 0
|
|
142
|
-
} : v), I.value = !1) : (I.value = !0, u /= 1.1, w.value = w.value.map((v, p) => l === p ? {
|
|
143
|
-
...v,
|
|
144
|
-
value: u
|
|
145
|
-
} : v), ye.value = requestAnimationFrame(s));
|
|
146
|
-
};
|
|
147
|
-
s();
|
|
148
|
-
}
|
|
149
|
-
ue("selectLegend", A.value.map((s) => ({
|
|
150
|
-
name: s.name,
|
|
151
|
-
color: s.color,
|
|
152
|
-
value: s.value
|
|
153
|
-
})));
|
|
154
|
-
}
|
|
155
|
-
const A = g(() => (w.value.forEach((l, a) => {
|
|
156
|
-
if ([null, void 0].includes(l.values))
|
|
157
|
-
return {
|
|
158
|
-
...l,
|
|
159
|
-
values: []
|
|
160
|
-
};
|
|
161
|
-
}), w.value.map((l, a) => ({
|
|
162
|
-
...l,
|
|
163
|
-
seriesIndex: a
|
|
164
|
-
})).filter((l, a) => !x.value.includes(a)))), be = g(() => $.dataset.map((l, a) => ({
|
|
165
|
-
name: l.name,
|
|
166
|
-
color: K(l.color) || he.value[a] || O[a] || O[a % O.length],
|
|
167
|
-
value: (l.values || []).reduce((t, u) => t + u, 0),
|
|
168
|
-
shape: "circle"
|
|
169
|
-
})).map((l, a) => ({
|
|
170
|
-
...l,
|
|
171
|
-
proportion: l.value / $.dataset.map((t) => (t.values || []).reduce((u, s) => u + s, 0)).reduce((t, u) => t + u, 0),
|
|
172
|
-
opacity: x.value.includes(a) ? 0.5 : 1,
|
|
173
|
-
segregate: () => ge(a),
|
|
174
|
-
isSegregated: x.value.includes(a)
|
|
175
|
-
}))), Oe = g(() => ({
|
|
176
|
-
cy: "donut-div-legend",
|
|
177
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
178
|
-
color: e.value.style.chart.legend.color,
|
|
179
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
180
|
-
paddingBottom: 12,
|
|
181
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
182
|
-
})), F = g(() => {
|
|
183
|
-
const l = Math.min(i.value.width / 3, i.value.height / 3);
|
|
184
|
-
return l < 55 ? 55 : l;
|
|
185
|
-
}), P = g(() => Qe({ series: A.value }, i.value.width / 2, i.value.height / 2, F.value, F.value, 1.99999, 2, 1, 360, 105.25, G.value));
|
|
186
|
-
function D(l) {
|
|
187
|
-
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
188
|
-
}
|
|
189
|
-
function pe(l, a) {
|
|
190
|
-
return isNaN(l.value / me(a)) ? 0 : (l.value / me(a) * 100).toFixed(0) + "%";
|
|
191
|
-
}
|
|
192
|
-
function me(l) {
|
|
193
|
-
return [...l].map((a) => a.value).reduce((a, t) => a + t, 0);
|
|
194
|
-
}
|
|
195
|
-
const T = g(() => A.value.map((l) => l.value).reduce((l, a) => l + a, 0)), Ie = g(() => T.value / A.value.length), ee = d(null);
|
|
196
|
-
function Ae({ datapoint: l, relativeIndex: a, seriesIndex: t, show: u = !1 }) {
|
|
197
|
-
ee.value = { datapoint: l, seriesIndex: t, config: e.value, series: L.value }, Q.value = u, S.value = a;
|
|
198
|
-
let s = "";
|
|
199
|
-
const v = e.value.style.chart.tooltip.customFormat;
|
|
200
|
-
Te(v) && tl(() => v({
|
|
201
|
-
seriesIndex: t,
|
|
202
|
-
datapoint: l,
|
|
203
|
-
series: L.value,
|
|
204
|
-
config: e.value
|
|
205
|
-
})) ? Z.value = v({
|
|
206
|
-
seriesIndex: t,
|
|
207
|
-
datapoint: l,
|
|
208
|
-
series: L.value,
|
|
209
|
-
config: e.value
|
|
210
|
-
}) : (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>${N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: l.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.tooltip.roundingValue })}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${(l.proportion * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%)</span></div>` : s += `<b>${(l.proportion * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}%</b></div>`), e.value.style.chart.comments.showInTooltip && l.comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Z.value = `<div>${s}</div>`);
|
|
211
|
-
}
|
|
212
|
-
function le(l) {
|
|
213
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l ? `url(#blur_${_.value})` : "";
|
|
214
|
-
}
|
|
215
|
-
const z = g(() => {
|
|
216
|
-
const l = A.value.map((t) => ({
|
|
217
|
-
name: t.name,
|
|
218
|
-
color: t.color
|
|
219
|
-
})), a = A.value.map((t) => t.value);
|
|
220
|
-
return { head: l, body: a };
|
|
221
|
-
});
|
|
222
|
-
function we() {
|
|
223
|
-
Ee(() => {
|
|
224
|
-
const l = z.value.head.map((u, s) => [[
|
|
225
|
-
u.name
|
|
226
|
-
], [z.value.body[s]], [isNaN(z.value.body[s] / T.value) ? "-" : z.value.body[s] / T.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = al(a);
|
|
227
|
-
ol({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
const X = g(() => {
|
|
231
|
-
const l = [
|
|
232
|
-
' <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>',
|
|
233
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: T.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
234
|
-
"100%"
|
|
235
|
-
], a = z.value.head.map((s, v) => {
|
|
236
|
-
const p = N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: z.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
237
|
-
return [
|
|
238
|
-
{
|
|
239
|
-
color: s.color,
|
|
240
|
-
name: s.name
|
|
241
|
-
},
|
|
242
|
-
p,
|
|
243
|
-
isNaN(z.value.body[v] / T.value) ? "-" : (z.value.body[v] / T.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
244
|
-
];
|
|
245
|
-
}), t = {
|
|
246
|
-
th: {
|
|
247
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
248
|
-
color: e.value.table.th.color,
|
|
249
|
-
outline: e.value.table.th.outline
|
|
250
|
-
},
|
|
251
|
-
td: {
|
|
252
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
253
|
-
color: e.value.table.td.color,
|
|
254
|
-
outline: e.value.table.td.outline
|
|
255
|
-
},
|
|
256
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
257
|
-
};
|
|
258
|
-
return {
|
|
259
|
-
colNames: [
|
|
260
|
-
e.value.table.columnNames.series,
|
|
261
|
-
e.value.table.columnNames.value,
|
|
262
|
-
e.value.table.columnNames.percentage
|
|
263
|
-
],
|
|
264
|
-
head: l,
|
|
265
|
-
body: a,
|
|
266
|
-
config: t
|
|
267
|
-
};
|
|
268
|
-
}), U = d(!1);
|
|
269
|
-
function De(l) {
|
|
270
|
-
U.value = l, re.value += 1;
|
|
271
|
-
}
|
|
272
|
-
const ke = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
273
|
-
function Ve(l) {
|
|
274
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
275
|
-
}
|
|
276
|
-
function q(l, a) {
|
|
277
|
-
ue("selectDatapoint", { datapoint: l, index: a });
|
|
278
|
-
}
|
|
279
|
-
function _e() {
|
|
280
|
-
f.value.showTable = !f.value.showTable;
|
|
281
|
-
}
|
|
282
|
-
function xe() {
|
|
283
|
-
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
284
|
-
}
|
|
285
|
-
function Ce() {
|
|
286
|
-
f.value.showTooltip = !f.value.showTooltip;
|
|
287
|
-
}
|
|
288
|
-
return Fe({
|
|
289
|
-
getData: Pe,
|
|
290
|
-
generatePdf: ce,
|
|
291
|
-
generateCsv: we,
|
|
292
|
-
generateImage: de,
|
|
293
|
-
toggleTable: _e,
|
|
294
|
-
toggleLabels: xe,
|
|
295
|
-
toggleTooltip: Ce
|
|
296
|
-
}), (l, a) => (n(), r("div", {
|
|
297
|
-
ref_key: "donutChart",
|
|
298
|
-
ref: M,
|
|
299
|
-
class: ae(`vue-ui-donut ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
300
|
-
style: C(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
301
|
-
id: `donut__${_.value}`
|
|
302
|
-
}, [
|
|
303
|
-
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
304
|
-
e.value.style.chart.title.text ? (n(), r("div", {
|
|
305
|
-
key: 0,
|
|
306
|
-
ref_key: "chartTitle",
|
|
307
|
-
ref: se,
|
|
308
|
-
style: C(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
309
|
-
}, [
|
|
310
|
-
oe(nl, {
|
|
311
|
-
config: {
|
|
312
|
-
title: {
|
|
313
|
-
cy: "donut-div-title",
|
|
314
|
-
...e.value.style.chart.title
|
|
315
|
-
},
|
|
316
|
-
subtitle: {
|
|
317
|
-
cy: "donut-div-subtitle",
|
|
318
|
-
...e.value.style.chart.title.subtitle
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}, null, 8, ["config"])
|
|
322
|
-
], 4)) : c("", !0),
|
|
323
|
-
e.value.userOptions.show && B.value ? (n(), J(il, {
|
|
324
|
-
ref_key: "details",
|
|
325
|
-
ref: Ne,
|
|
326
|
-
key: `user_option_${re.value}`,
|
|
327
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
328
|
-
color: e.value.style.chart.color,
|
|
329
|
-
isPrinting: o(ie),
|
|
330
|
-
isImaging: o(ve),
|
|
331
|
-
uid: _.value,
|
|
332
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
333
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
334
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
335
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
336
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
337
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
338
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
339
|
-
isFullscreen: U.value,
|
|
340
|
-
chartElement: M.value,
|
|
341
|
-
isTooltip: f.value.showTooltip,
|
|
342
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
343
|
-
onToggleFullscreen: De,
|
|
344
|
-
onGeneratePdf: o(ce),
|
|
345
|
-
onGenerateCsv: we,
|
|
346
|
-
onGenerateImage: o(de),
|
|
347
|
-
onToggleTable: _e,
|
|
348
|
-
onToggleLabels: xe,
|
|
349
|
-
onToggleTooltip: Ce
|
|
350
|
-
}, Ue({ _: 2 }, [
|
|
351
|
-
l.$slots.optionTooltip ? {
|
|
352
|
-
name: "optionTooltip",
|
|
353
|
-
fn: m(() => [
|
|
354
|
-
b(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
355
|
-
]),
|
|
356
|
-
key: "0"
|
|
357
|
-
} : void 0,
|
|
358
|
-
l.$slots.optionPdf ? {
|
|
359
|
-
name: "optionPdf",
|
|
360
|
-
fn: m(() => [
|
|
361
|
-
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
362
|
-
]),
|
|
363
|
-
key: "1"
|
|
364
|
-
} : void 0,
|
|
365
|
-
l.$slots.optionCsv ? {
|
|
366
|
-
name: "optionCsv",
|
|
367
|
-
fn: m(() => [
|
|
368
|
-
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
369
|
-
]),
|
|
370
|
-
key: "2"
|
|
371
|
-
} : void 0,
|
|
372
|
-
l.$slots.optionImg ? {
|
|
373
|
-
name: "optionImg",
|
|
374
|
-
fn: m(() => [
|
|
375
|
-
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
376
|
-
]),
|
|
377
|
-
key: "3"
|
|
378
|
-
} : void 0,
|
|
379
|
-
l.$slots.optionTable ? {
|
|
380
|
-
name: "optionTable",
|
|
381
|
-
fn: m(() => [
|
|
382
|
-
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
383
|
-
]),
|
|
384
|
-
key: "4"
|
|
385
|
-
} : void 0,
|
|
386
|
-
l.$slots.optionLabels ? {
|
|
387
|
-
name: "optionLabels",
|
|
388
|
-
fn: m(() => [
|
|
389
|
-
b(l.$slots, "optionLabels", {}, void 0, !0)
|
|
390
|
-
]),
|
|
391
|
-
key: "5"
|
|
392
|
-
} : void 0,
|
|
393
|
-
l.$slots.optionFullscreen ? {
|
|
394
|
-
name: "optionFullscreen",
|
|
395
|
-
fn: m(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
396
|
-
b(l.$slots, "optionFullscreen", E(R({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
397
|
-
]),
|
|
398
|
-
key: "6"
|
|
399
|
-
} : void 0
|
|
400
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
401
|
-
B.value ? (n(), r("svg", {
|
|
402
|
-
key: 2,
|
|
403
|
-
xmlns: o(Ze),
|
|
404
|
-
class: ae({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
405
|
-
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
406
|
-
style: C(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
407
|
-
}, [
|
|
408
|
-
y("defs", null, [
|
|
409
|
-
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
410
|
-
key: 0,
|
|
411
|
-
id: `gradient_${_.value}`
|
|
412
|
-
}, [
|
|
413
|
-
y("stop", {
|
|
414
|
-
offset: "0%",
|
|
415
|
-
"stop-color": `${o(K)(e.value.style.chart.backgroundColor)}00`
|
|
416
|
-
}, null, 8, wl),
|
|
417
|
-
y("stop", {
|
|
418
|
-
offset: "77%",
|
|
419
|
-
"stop-color": "#FFFFFF" + o(el)[e.value.style.chart.gradientIntensity]
|
|
420
|
-
}, null, 8, kl),
|
|
421
|
-
y("stop", {
|
|
422
|
-
offset: "100%",
|
|
423
|
-
"stop-color": `${o(K)(e.value.style.chart.backgroundColor)}00`
|
|
424
|
-
}, null, 8, _l)
|
|
425
|
-
], 8, ml)) : c("", !0)
|
|
426
|
-
]),
|
|
427
|
-
y("defs", null, [
|
|
428
|
-
y("filter", {
|
|
429
|
-
id: `blur_${_.value}`,
|
|
430
|
-
x: "-50%",
|
|
431
|
-
y: "-50%",
|
|
432
|
-
width: "200%",
|
|
433
|
-
height: "200%"
|
|
434
|
-
}, [
|
|
435
|
-
y("feGaussianBlur", {
|
|
436
|
-
in: "SourceGraphic",
|
|
437
|
-
stdDeviation: 2,
|
|
438
|
-
id: `blur_std_${_.value}`
|
|
439
|
-
}, null, 8, Cl),
|
|
440
|
-
$l
|
|
441
|
-
], 8, xl),
|
|
442
|
-
y("filter", {
|
|
443
|
-
id: `shadow_${_.value}`,
|
|
444
|
-
"color-interpolation-filters": "sRGB"
|
|
445
|
-
}, [
|
|
446
|
-
y("feDropShadow", {
|
|
447
|
-
dx: "0",
|
|
448
|
-
dy: "0",
|
|
449
|
-
stdDeviation: "10",
|
|
450
|
-
"flood-opacity": "0.5",
|
|
451
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
452
|
-
}, null, 8, Tl)
|
|
453
|
-
], 8, Sl)
|
|
454
|
-
]),
|
|
455
|
-
(n(!0), r(j, null, W(P.value, (t, u) => (n(), r("g", null, [
|
|
456
|
-
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
457
|
-
key: 0,
|
|
458
|
-
d: o(ll)(t, { x: i.value.width / 2, y: i.value.height / 2 }, 16, 16, !1, !1, G.value),
|
|
459
|
-
stroke: t.color,
|
|
460
|
-
"stroke-width": "1",
|
|
461
|
-
"stroke-linecap": "round",
|
|
462
|
-
"stroke-linejoin": "round",
|
|
463
|
-
fill: "none",
|
|
464
|
-
filter: le(u)
|
|
465
|
-
}, null, 8, Ll)) : c("", !0)
|
|
466
|
-
]))), 256)),
|
|
467
|
-
y("circle", {
|
|
468
|
-
cx: i.value.width / 2,
|
|
469
|
-
cy: i.value.height / 2,
|
|
470
|
-
r: F.value <= 0 ? 10 : F.value,
|
|
471
|
-
fill: e.value.style.chart.backgroundColor,
|
|
472
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${_.value})` : ""
|
|
473
|
-
}, null, 8, Fl),
|
|
474
|
-
(n(!0), r(j, null, W(P.value, (t, u) => (n(), r("path", {
|
|
475
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
476
|
-
d: t.arcSlice,
|
|
477
|
-
fill: "#FFFFFF"
|
|
478
|
-
}, null, 8, zl))), 256)),
|
|
479
|
-
(n(!0), r(j, null, W(P.value, (t, u) => (n(), r("path", {
|
|
480
|
-
class: "vue-ui-donut-arc-path",
|
|
481
|
-
d: t.arcSlice,
|
|
482
|
-
fill: `${t.color}CC`,
|
|
483
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
484
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
485
|
-
filter: le(u)
|
|
486
|
-
}, null, 8, Nl))), 256)),
|
|
487
|
-
e.value.style.chart.useGradient ? (n(), r("circle", {
|
|
488
|
-
key: 0,
|
|
489
|
-
cx: i.value.width / 2,
|
|
490
|
-
cy: i.value.height / 2,
|
|
491
|
-
r: (
|
|
492
|
-
/* This might require adjustments */
|
|
493
|
-
F.value <= 0 ? 10 : F.value
|
|
494
|
-
),
|
|
495
|
-
fill: `url(#gradient_${_.value})`
|
|
496
|
-
}, null, 8, Pl)) : c("", !0),
|
|
497
|
-
(n(!0), r(j, null, W(P.value, (t, u) => (n(), r("path", {
|
|
498
|
-
"data-cy-donut-trap": "",
|
|
499
|
-
d: t.arcSlice,
|
|
500
|
-
fill: S.value === u ? "rgba(0,0,0,0.1)" : "transparent",
|
|
501
|
-
onMouseenter: (s) => Ae({
|
|
502
|
-
datapoint: t,
|
|
503
|
-
relativeIndex: u,
|
|
504
|
-
seriesIndex: t.seriesIndex,
|
|
505
|
-
show: !0
|
|
506
|
-
}),
|
|
507
|
-
onMouseleave: a[0] || (a[0] = (s) => {
|
|
508
|
-
Q.value = !1, S.value = null;
|
|
509
|
-
}),
|
|
510
|
-
onClick: (s) => q(t, u)
|
|
511
|
-
}, null, 40, Ol))), 256)),
|
|
512
|
-
e.value.style.chart.layout.labels.hollow.show ? (n(), r("circle", {
|
|
513
|
-
key: 1,
|
|
514
|
-
cx: i.value.width / 2,
|
|
515
|
-
cy: i.value.height / 2,
|
|
516
|
-
r: (
|
|
517
|
-
/* This might require adjustments */
|
|
518
|
-
F.value - G.value <= 0 ? 10 : F.value - G.value
|
|
519
|
-
),
|
|
520
|
-
fill: e.value.style.chart.backgroundColor
|
|
521
|
-
}, null, 8, Il)) : c("", !0),
|
|
522
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
523
|
-
key: 2,
|
|
524
|
-
"text-anchor": "middle",
|
|
525
|
-
x: i.value.width / 2,
|
|
526
|
-
y: i.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
527
|
-
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
528
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
529
|
-
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
530
|
-
}, k(e.value.style.chart.layout.labels.hollow.total.text), 13, Al)) : c("", !0),
|
|
531
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
532
|
-
key: 3,
|
|
533
|
-
"text-anchor": "middle",
|
|
534
|
-
x: i.value.width / 2,
|
|
535
|
-
y: i.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
536
|
-
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
537
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
538
|
-
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
539
|
-
}, k(o(N)({
|
|
540
|
-
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
541
|
-
v: T.value,
|
|
542
|
-
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
543
|
-
})), 13, Dl)) : c("", !0),
|
|
544
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
545
|
-
key: 4,
|
|
546
|
-
"text-anchor": "middle",
|
|
547
|
-
x: i.value.width / 2,
|
|
548
|
-
y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
549
|
-
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
550
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
551
|
-
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
552
|
-
}, k(e.value.style.chart.layout.labels.hollow.average.text), 13, Vl)) : c("", !0),
|
|
553
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
554
|
-
key: 5,
|
|
555
|
-
"text-anchor": "middle",
|
|
556
|
-
x: i.value.width / 2,
|
|
557
|
-
y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
558
|
-
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
559
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
560
|
-
style: C(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
561
|
-
}, k(I.value ? "--" : o(N)({
|
|
562
|
-
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
563
|
-
v: Ie.value,
|
|
564
|
-
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
565
|
-
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
566
|
-
})), 13, Bl)) : c("", !0),
|
|
567
|
-
(n(!0), r(j, null, W(P.value, (t, u) => (n(), r("g", {
|
|
568
|
-
filter: le(u),
|
|
569
|
-
class: ae({ animated: e.value.useCssAnimation })
|
|
570
|
-
}, [
|
|
571
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Gl, [
|
|
572
|
-
(n(), r("foreignObject", {
|
|
573
|
-
x: o(h)(t, !0).anchor === "end" ? o(h)(t).x - 120 : o(h)(t, !0).anchor === "middle" ? o(h)(t).x - 60 : o(h)(t).x,
|
|
574
|
-
y: o(Y)(t) - (ke.value ? 20 : 0),
|
|
575
|
-
width: "120",
|
|
576
|
-
height: "60",
|
|
577
|
-
style: { overflow: "visible" }
|
|
578
|
-
}, [
|
|
579
|
-
y("div", null, [
|
|
580
|
-
b(l.$slots, "dataLabel", E(R({
|
|
581
|
-
datapoint: t,
|
|
582
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === u,
|
|
583
|
-
isSafari: ke.value,
|
|
584
|
-
isVisible: D(t) && f.value.dataLabels.show,
|
|
585
|
-
textAlign: o(h)(t, !0, 16, !0).anchor,
|
|
586
|
-
flexAlign: o(h)(t, !0, 16).anchor,
|
|
587
|
-
percentage: pe(t, P.value)
|
|
588
|
-
})), void 0, !0)
|
|
589
|
-
])
|
|
590
|
-
], 8, Ul))
|
|
591
|
-
])) : (n(), r("g", El, [
|
|
592
|
-
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
593
|
-
key: 0,
|
|
594
|
-
cx: o(h)(t).x,
|
|
595
|
-
cy: o(Y)(t) - 3.5,
|
|
596
|
-
fill: t.color,
|
|
597
|
-
r: 3,
|
|
598
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === u ? "" : `url(#blur_${_.value})`,
|
|
599
|
-
onClick: (s) => q(t, u)
|
|
600
|
-
}, null, 8, Rl)) : c("", !0),
|
|
601
|
-
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
602
|
-
key: 1,
|
|
603
|
-
"text-anchor": o(h)(t, !0, 12).anchor,
|
|
604
|
-
x: o(h)(t, !0, 12).x,
|
|
605
|
-
y: o(Y)(t),
|
|
606
|
-
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
607
|
-
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
608
|
-
style: C(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
609
|
-
onClick: (s) => q(t, u)
|
|
610
|
-
}, k(pe(t, P.value)) + " " + k(e.value.style.chart.layout.labels.value.show ? `(${o(N)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: t.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, rounding: e.value.style.chart.layout.labels.value.rounding })})` : ""), 13, jl)) : c("", !0),
|
|
611
|
-
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
612
|
-
key: 2,
|
|
613
|
-
"text-anchor": o(h)(t).anchor,
|
|
614
|
-
x: o(h)(t, !0, 12).x,
|
|
615
|
-
y: o(Y)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
616
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
617
|
-
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
618
|
-
style: C(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
619
|
-
onClick: (s) => q(t, u)
|
|
620
|
-
}, k(t.name), 13, Wl)) : c("", !0)
|
|
621
|
-
])),
|
|
622
|
-
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Yl, [
|
|
623
|
-
D(t) ? (n(), r("foreignObject", {
|
|
624
|
-
key: 0,
|
|
625
|
-
x: e.value.style.chart.comments.offsetX + (o(h)(t, !0).anchor === "end" ? o(h)(t).x - e.value.style.chart.comments.width : o(h)(t, !0).anchor === "middle" ? o(h)(t).x - e.value.style.chart.comments.width / 2 : o(h)(t).x),
|
|
626
|
-
y: o(Y)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
627
|
-
width: e.value.style.chart.comments.width,
|
|
628
|
-
height: "200",
|
|
629
|
-
style: { overflow: "visible", "pointer-events": "none" }
|
|
630
|
-
}, [
|
|
631
|
-
y("div", null, [
|
|
632
|
-
b(l.$slots, "plot-comment", {
|
|
633
|
-
plot: { ...t, textAlign: o(h)(t, !0, 16, !0).anchor, flexAlign: o(h)(t, !0, 16).anchor }
|
|
634
|
-
}, void 0, !0)
|
|
635
|
-
])
|
|
636
|
-
], 8, Hl)) : c("", !0)
|
|
637
|
-
])) : c("", !0)
|
|
638
|
-
], 10, Ml))), 256)),
|
|
639
|
-
b(l.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
640
|
-
], 14, pl)) : c("", !0),
|
|
641
|
-
l.$slots.watermark ? (n(), r("div", Xl, [
|
|
642
|
-
b(l.$slots, "watermark", E(R({ isPrinting: o(ie) || o(ve) })), void 0, !0)
|
|
643
|
-
])) : c("", !0),
|
|
644
|
-
B.value ? c("", !0) : (n(), J(hl, {
|
|
645
|
-
key: 4,
|
|
646
|
-
config: {
|
|
647
|
-
type: "donut",
|
|
648
|
-
style: {
|
|
649
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
650
|
-
donut: {
|
|
651
|
-
color: "#CCCCCC",
|
|
652
|
-
strokeWidth: G.value * 0.8
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}, null, 8, ["config"])),
|
|
657
|
-
y("div", {
|
|
658
|
-
ref_key: "chartLegend",
|
|
659
|
-
ref: ne
|
|
660
|
-
}, [
|
|
661
|
-
e.value.style.chart.legend.show ? (n(), J(dl, {
|
|
662
|
-
key: 0,
|
|
663
|
-
legendSet: be.value,
|
|
664
|
-
config: Oe.value,
|
|
665
|
-
onClickMarker: a[1] || (a[1] = ({ i: t }) => ge(t))
|
|
666
|
-
}, {
|
|
667
|
-
item: m(({ legend: t, index: u }) => [
|
|
668
|
-
y("div", {
|
|
669
|
-
onClick: (s) => t.segregate(),
|
|
670
|
-
style: C(`opacity:${x.value.includes(u) ? 0.5 : 1}`)
|
|
671
|
-
}, [
|
|
672
|
-
$e(k(t.name) + ": " + k(o(N)({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: t.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.style.chart.legend.roundingValue })) + " ", 1),
|
|
673
|
-
x.value.includes(u) ? (n(), r("span", Kl, " ( " + k(Ve(t.proportion * 100)) + " % ) ", 1)) : (n(), r("span", Jl, " (" + k(isNaN(t.value / T.value) ? "-" : o(N)({
|
|
674
|
-
v: I.value ? t.proportion * 100 : t.value / T.value * 100,
|
|
675
|
-
s: "%",
|
|
676
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
677
|
-
})) + ") ", 1))
|
|
678
|
-
], 12, ql)
|
|
679
|
-
]),
|
|
680
|
-
_: 1
|
|
681
|
-
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
682
|
-
b(l.$slots, "legend", { legend: be.value }, void 0, !0)
|
|
683
|
-
], 512),
|
|
684
|
-
oe(cl, {
|
|
685
|
-
show: f.value.showTooltip && Q.value,
|
|
686
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
687
|
-
color: e.value.style.chart.tooltip.color,
|
|
688
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
689
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
690
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
691
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
692
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
693
|
-
position: e.value.style.chart.tooltip.position,
|
|
694
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
695
|
-
parent: M.value,
|
|
696
|
-
content: Z.value,
|
|
697
|
-
isCustom: o(Te)(e.value.style.chart.tooltip.customFormat)
|
|
698
|
-
}, {
|
|
699
|
-
"tooltip-before": m(() => [
|
|
700
|
-
b(l.$slots, "tooltip-before", E(R({ ...ee.value })), void 0, !0)
|
|
701
|
-
]),
|
|
702
|
-
"tooltip-after": m(() => [
|
|
703
|
-
b(l.$slots, "tooltip-after", E(R({ ...ee.value })), void 0, !0)
|
|
704
|
-
]),
|
|
705
|
-
_: 3
|
|
706
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
707
|
-
B.value ? (n(), J(fl, {
|
|
708
|
-
key: 5,
|
|
709
|
-
hideDetails: "",
|
|
710
|
-
config: {
|
|
711
|
-
open: f.value.showTable,
|
|
712
|
-
maxHeight: 1e4,
|
|
713
|
-
body: {
|
|
714
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
715
|
-
color: e.value.style.chart.color
|
|
716
|
-
},
|
|
717
|
-
head: {
|
|
718
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
719
|
-
color: e.value.style.chart.color
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}, {
|
|
723
|
-
content: m(() => [
|
|
724
|
-
oe(vl, {
|
|
725
|
-
colNames: X.value.colNames,
|
|
726
|
-
head: X.value.head,
|
|
727
|
-
body: X.value.body,
|
|
728
|
-
config: X.value.config,
|
|
729
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
730
|
-
onClose: a[2] || (a[2] = (t) => f.value.showTable = !1)
|
|
731
|
-
}, {
|
|
732
|
-
th: m(({ th: t }) => [
|
|
733
|
-
y("div", {
|
|
734
|
-
innerHTML: t,
|
|
735
|
-
style: { display: "flex", "align-items": "center" }
|
|
736
|
-
}, null, 8, Ql)
|
|
737
|
-
]),
|
|
738
|
-
td: m(({ td: t }) => [
|
|
739
|
-
$e(k(t.name || t), 1)
|
|
740
|
-
]),
|
|
741
|
-
_: 1
|
|
742
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
743
|
-
]),
|
|
744
|
-
_: 1
|
|
745
|
-
}, 8, ["config"])) : c("", !0)
|
|
746
|
-
], 14, bl));
|
|
747
|
-
}
|
|
748
|
-
}, dt = /* @__PURE__ */ yl(Zl, [["__scopeId", "data-v-b9acc50e"]]);
|
|
749
|
-
export {
|
|
750
|
-
dt as default
|
|
751
|
-
};
|