vue-data-ui 2.3.75 → 2.3.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BTG7M25z.js → Arrow-Dj2zuGLq.js} +1 -1
- package/dist/{Arrow-CZK77NmC.cjs → Arrow-VCEIU9wi.cjs} +1 -1
- package/dist/{BaseIcon--PMhZ3f-.cjs → BaseIcon-CP535rdy.cjs} +1 -1
- package/dist/{BaseIcon-BAOfPaXs.js → BaseIcon-Cbr8np30.js} +1 -1
- package/dist/{DataTable-DjQzrklZ.cjs → DataTable-CeHw-cqZ.cjs} +1 -1
- package/dist/{DataTable-CQANRZju.js → DataTable-OAUXdIYA.js} +2 -2
- package/dist/{Legend-DX1kv21U.js → Legend-BVByqGqZ.js} +1 -1
- package/dist/{Legend-CtbPB0Bo.cjs → Legend-DfU44fjz.cjs} +1 -1
- package/dist/{Shape-CadGs1Am.cjs → Shape-B6cEKeIN.cjs} +1 -1
- package/dist/{Shape-kqcyauhC.js → Shape-Clmb3iTX.js} +1 -1
- package/dist/{Slicer-yaJs-izT.js → Slicer-BlRQsQu0.js} +12 -12
- package/dist/{Slicer-i_oECHxH.cjs → Slicer-Dt9iqvAA.cjs} +1 -1
- package/dist/{Title-XBiDFYKD.cjs → Title-D9lSjLTg.cjs} +1 -1
- package/dist/{Title-C26I_HC3.js → Title-gvR5aS6q.js} +1 -1
- package/dist/{Tooltip-CH8GmDCG.js → Tooltip-BGmkuAK4.js} +23 -23
- package/dist/Tooltip-C0PSN8vf.cjs +1 -0
- package/dist/{index-Cm4Iry5c.js → index-0KN57HdM.js} +1147 -1145
- package/dist/index-TabZg_HV.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-w7AMWWmz.cjs → useNestedProp-CoLyVvV9.cjs} +1 -1
- package/dist/{useNestedProp-CurQIHTa.js → useNestedProp-NeGalTYk.js} +1 -1
- package/dist/{usePrinter-ZlHxdaEz.cjs → usePrinter--7sLxlpn.cjs} +1 -1
- package/dist/{usePrinter-B8RnF8_q.js → usePrinter-BvKYEc1z.js} +1 -1
- package/dist/{vue-data-ui-B7amrpT-.cjs → vue-data-ui-CNZP_Hk4.cjs} +1 -1
- package/dist/{vue-data-ui-Bj6kEIpq.js → vue-data-ui-Du0OReJH.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/vue-ui-3d-bar-AUSKibZS.cjs +19 -0
- package/dist/{vue-ui-3d-bar-Bg9IgVVc.js → vue-ui-3d-bar-Dasj0J9j.js} +342 -342
- package/dist/{vue-ui-accordion-1WxrfiCH.cjs → vue-ui-accordion-0uSZBHsp.cjs} +1 -1
- package/dist/{vue-ui-accordion-Cb6XBCbu.js → vue-ui-accordion-CczyfFaC.js} +3 -3
- package/dist/vue-ui-age-pyramid-CjBr4CXC.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BhwmnQru.js → vue-ui-age-pyramid-DZ7vnojR.js} +22 -22
- package/dist/{vue-ui-annotator-BiHQvMdW.js → vue-ui-annotator-BWwxpp_v.js} +39 -39
- package/dist/{vue-ui-annotator-B22cdlhA.cjs → vue-ui-annotator-CyYSiELS.cjs} +2 -2
- package/dist/{vue-ui-candlestick-D7DjdYyw.cjs → vue-ui-candlestick-B9oSgBPN.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Cl9dyh4l.js → vue-ui-candlestick-Dr9aS-Ku.js} +34 -34
- package/dist/vue-ui-carousel-table-CjDze14W.cjs +1 -0
- package/dist/{vue-ui-carousel-table-QsONwqNz.js → vue-ui-carousel-table-D2LK5a9p.js} +83 -81
- package/dist/{vue-ui-chestnut-Drb01WMC.js → vue-ui-chestnut-DIqR-vZo.js} +291 -288
- package/dist/vue-ui-chestnut-RhZaDeRG.cjs +6 -0
- package/dist/vue-ui-cursor-7QhVReKN.cjs +1 -0
- package/dist/{vue-ui-cursor-BP04_XbB.js → vue-ui-cursor-BxHK0bB7.js} +20 -20
- package/dist/{vue-ui-dashboard-Z63RE1XS.cjs → vue-ui-dashboard-DO-zVgDu.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BWdx5gjZ.js → vue-ui-dashboard-fYKECIc7.js} +2 -2
- package/dist/{vue-ui-digits-DUhkLcmd.js → vue-ui-digits-B8hAl2RW.js} +2 -2
- package/dist/{vue-ui-digits-CBQaHW6a.cjs → vue-ui-digits-CSsB4Zlr.cjs} +1 -1
- package/dist/{vue-ui-donut-DRPSwmGr.js → vue-ui-donut-D5DTvWXB.js} +60 -60
- package/dist/vue-ui-donut-D8evqk7g.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BUdWXb-N.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-gRXAyxq8.js → vue-ui-donut-evolution-CPTiiUY6.js} +106 -106
- package/dist/{vue-ui-dumbbell-CQo5jqSK.js → vue-ui-dumbbell-CfeTfNTU.js} +17 -17
- package/dist/{vue-ui-dumbbell-DLfZcrXq.cjs → vue-ui-dumbbell-Fm-Bqc5W.cjs} +1 -1
- package/dist/{vue-ui-flow-BlX2-eEC.cjs → vue-ui-flow-24WIcZVL.cjs} +1 -1
- package/dist/{vue-ui-flow-BQ3UbMUb.js → vue-ui-flow-B2WWQo6P.js} +28 -28
- package/dist/{vue-ui-galaxy-Cax5o6Yl.cjs → vue-ui-galaxy-DkRizJxm.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BHWugUKG.js → vue-ui-galaxy-yfpv7Hky.js} +22 -22
- package/dist/vue-ui-gauge-BkB7BlNM.cjs +1 -0
- package/dist/{vue-ui-gauge-DG6_kvKh.js → vue-ui-gauge-CRVB3wlV.js} +99 -108
- package/dist/{vue-ui-gizmo-bV148qAf.js → vue-ui-gizmo-DJYOx_YH.js} +2 -2
- package/dist/{vue-ui-gizmo-D9Vh9Rmr.cjs → vue-ui-gizmo-Zyo15xm3.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BZZUvnMa.js → vue-ui-heatmap-C6fDCc7O.js} +17 -17
- package/dist/{vue-ui-heatmap-B_ELXKKV.cjs → vue-ui-heatmap-uynT8kN9.cjs} +1 -1
- package/dist/{vue-ui-kpi-C5v7qQvZ.js → vue-ui-kpi-CGC4h9uF.js} +3 -3
- package/dist/{vue-ui-kpi-CwVAvTB2.cjs → vue-ui-kpi-CqEEFb04.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BdKizX_J.js → vue-ui-mini-loader-2A0YUUIB.js} +2 -2
- package/dist/{vue-ui-mini-loader-DZNY-3rr.cjs → vue-ui-mini-loader-ku9X16tx.cjs} +1 -1
- package/dist/{vue-ui-molecule-bva6OvPc.cjs → vue-ui-molecule-Bv1IBx1L.cjs} +1 -1
- package/dist/{vue-ui-molecule-MKyrhqqm.js → vue-ui-molecule-CwcUmg-k.js} +33 -33
- package/dist/vue-ui-mood-radar-Bf5g118s.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BNIFFvq0.js → vue-ui-mood-radar-V04waMIM.js} +129 -132
- package/dist/{vue-ui-nested-donuts-CxdZC6JF.cjs → vue-ui-nested-donuts-DgVrAToy.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-BDAlZrMF.js → vue-ui-nested-donuts-DoFALZtp.js} +98 -98
- package/dist/{vue-ui-onion-Df7YcsVR.cjs → vue-ui-onion-BdZC2qt8.cjs} +1 -1
- package/dist/{vue-ui-onion-CFa4VD-w.js → vue-ui-onion-_GaJ78t_.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs → vue-ui-parallel-coordinate-plot-BHYr1iqZ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DmqYXT-U.js → vue-ui-parallel-coordinate-plot-Eh0gXDVG.js} +24 -24
- package/dist/vue-ui-quadrant-BEhnCog2.cjs +1 -0
- package/dist/{vue-ui-quadrant-D5jHkq9g.js → vue-ui-quadrant-C4LHosyR.js} +35 -35
- package/dist/{vue-ui-quick-chart-BjXXSx7V.js → vue-ui-quick-chart-IqY67olA.js} +69 -69
- package/dist/{vue-ui-quick-chart-Dt9AsEU6.cjs → vue-ui-quick-chart-YFEmJP_6.cjs} +1 -1
- package/dist/{vue-ui-radar-CW8EKW4o.js → vue-ui-radar-BSsDvnVt.js} +39 -39
- package/dist/{vue-ui-radar-2EuZr7i2.cjs → vue-ui-radar-Cel3ZnfN.cjs} +1 -1
- package/dist/{vue-ui-rating-eSWsmJUU.js → vue-ui-rating-Bb1xXC_r.js} +6 -6
- package/dist/{vue-ui-rating-DrtLvVA0.cjs → vue-ui-rating-D-qBEM1w.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DiUCpEqa.js → vue-ui-relation-circle-CSqi6DqF.js} +29 -29
- package/dist/vue-ui-relation-circle-fb8g1ms8.cjs +1 -0
- package/dist/{vue-ui-rings-CHq-a5ZS.cjs → vue-ui-rings-Bgb538Wa.cjs} +2 -2
- package/dist/{vue-ui-rings-BxhLbyG0.js → vue-ui-rings-ezoy9PIq.js} +31 -31
- package/dist/vue-ui-scatter-B7z6AOLU.cjs +1 -0
- package/dist/{vue-ui-scatter-DQchX_mM.js → vue-ui-scatter-Ci5l--xS.js} +95 -95
- package/dist/{vue-ui-screenshot-CLa9vMzM.js → vue-ui-screenshot-C2X1am1d.js} +4 -4
- package/dist/{vue-ui-screenshot-SLSIpqx2.cjs → vue-ui-screenshot-DLXQWgeo.cjs} +1 -1
- package/dist/vue-ui-skeleton-CYeXVNFu.cjs +41 -0
- package/dist/{vue-ui-skeleton-C1oUnz7R.js → vue-ui-skeleton-dgMXr8k9.js} +96 -96
- package/dist/{vue-ui-smiley-Daw8fPDy.cjs → vue-ui-smiley-CDhXPYa7.cjs} +1 -1
- package/dist/{vue-ui-smiley-CmWHSt1S.js → vue-ui-smiley-DXb5VqXk.js} +2 -2
- package/dist/vue-ui-spark-trend-1hcgCu8H.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CO69Dg31.js → vue-ui-spark-trend-Bv1-LLRs.js} +21 -21
- package/dist/vue-ui-sparkbar-CWdFQTkx.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BRlqpe4e.js → vue-ui-sparkbar-CbmzVXcW.js} +10 -10
- package/dist/{vue-ui-sparkgauge-CbuFESsM.js → vue-ui-sparkgauge-CHODK9jn.js} +8 -8
- package/dist/{vue-ui-sparkgauge-CCxKzDjT.cjs → vue-ui-sparkgauge-r7VEpPtv.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B4-hrDHz.js → vue-ui-sparkhistogram-CKiO1LGI.js} +111 -101
- package/dist/vue-ui-sparkhistogram-Do5qTT2U.cjs +1 -0
- package/dist/vue-ui-sparkline-Bw3dw-vW.cjs +1 -0
- package/dist/{vue-ui-sparkline-DlXNmG6M.js → vue-ui-sparkline-DLU7hK0K.js} +34 -34
- package/dist/{vue-ui-sparkstackbar-J1YowQmP.js → vue-ui-sparkstackbar-B3TQVHlU.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CDmZeXnq.cjs → vue-ui-sparkstackbar-CD-HZ4Rq.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CXGWukoJ.cjs → vue-ui-stackbar-2WJh-QtY.cjs} +2 -2
- package/dist/{vue-ui-stackbar-CKIDqkkY.js → vue-ui-stackbar-BnIeIS12.js} +202 -200
- package/dist/{vue-ui-strip-plot-JVLwIy0j.js → vue-ui-strip-plot-CddHmHSX.js} +26 -26
- package/dist/{vue-ui-strip-plot-CvmoRcYN.cjs → vue-ui-strip-plot-DyL8FH29.cjs} +1 -1
- package/dist/{vue-ui-table-BSi_cHh7.js → vue-ui-table-BZ6yonvx.js} +1 -1
- package/dist/{vue-ui-table-Dqi64VE7.cjs → vue-ui-table-_Sxgp6iC.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CfvW3rcm.js → vue-ui-table-heatmap-CYOgunS2.js} +24 -24
- package/dist/{vue-ui-table-heatmap-BwghEh5t.cjs → vue-ui-table-heatmap-DGWhBhp0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Y6Lrrzxy.js → vue-ui-table-sparkline-D33NLyyx.js} +26 -26
- package/dist/{vue-ui-table-sparkline-bIy3kkHB.cjs → vue-ui-table-sparkline-IVMQG6tp.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DDtxYr7w.cjs → vue-ui-thermometer-8XDaKLt5.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BPTs7Nxc.js → vue-ui-thermometer-DMwZ2O16.js} +40 -40
- package/dist/{vue-ui-timer-DRSSYxOX.cjs → vue-ui-timer-B3_-DhDj.cjs} +1 -1
- package/dist/{vue-ui-timer-CkB7eZaE.js → vue-ui-timer-D59VSia6.js} +8 -8
- package/dist/{vue-ui-tiremarks-BbOaoY8S.js → vue-ui-tiremarks-Bczw28td.js} +18 -18
- package/dist/{vue-ui-tiremarks-Bttwg3-p.cjs → vue-ui-tiremarks-Br_jF9bH.cjs} +1 -1
- package/dist/{vue-ui-treemap-CoaK3wBl.js → vue-ui-treemap-DGJNw2WX.js} +29 -29
- package/dist/{vue-ui-treemap-Chq0WQPe.cjs → vue-ui-treemap-DLHdaXss.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BGYrmyAK.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-BA43_uHV.js → vue-ui-vertical-bar-De0N4Ggo.js} +14 -14
- package/dist/{vue-ui-waffle-NBjY0mko.cjs → vue-ui-waffle-CJPVEDgC.cjs} +1 -1
- package/dist/{vue-ui-waffle-BoEf8CcG.js → vue-ui-waffle-CnXLf5xd.js} +84 -84
- package/dist/{vue-ui-wheel-Bgo2jpj0.js → vue-ui-wheel-Bciq0JM9.js} +24 -24
- package/dist/{vue-ui-wheel-t5bI4a-P.cjs → vue-ui-wheel-CAKYmn0b.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DPW_-Hzz.cjs → vue-ui-word-cloud-4ooTRM2O.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Jd9_JUyi.js → vue-ui-word-cloud-CWm6r9Zf.js} +19 -19
- package/dist/{vue-ui-xy-BMBYAC4z.js → vue-ui-xy-B5nBhYgd.js} +351 -350
- package/dist/vue-ui-xy-Ch5hDEec.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-LOsQ_DM-.js → vue-ui-xy-canvas-CzLTSmDS.js} +18 -18
- package/dist/vue-ui-xy-canvas-d-EE9_dN.cjs +9 -0
- package/package.json +1 -1
- package/dist/Tooltip-DxtWkIt5.cjs +0 -1
- package/dist/index-DYUBiaGS.cjs +0 -4
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +0 -1
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +0 -1
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +0 -6
- package/dist/vue-ui-cursor-DZeTQBKz.cjs +0 -1
- package/dist/vue-ui-donut-D2YJYgOB.cjs +0 -1
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +0 -1
- package/dist/vue-ui-gauge-DpGcv_00.cjs +0 -1
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +0 -1
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +0 -1
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +0 -1
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +0 -1
- package/dist/vue-ui-skeleton-ClpTCY1x.cjs +0 -41
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +0 -1
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +0 -1
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +0 -4
- package/dist/vue-ui-xy-CBHEBcZK.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +0 -9
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { computed as k, ref as d, watch as Fe, onMounted as Xe, onBeforeUnmount as
|
|
2
|
-
import { u as Ze, c as je, t as et, a as tt, p as Q, o as lt, e as A, b as at,
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const ne = (M) => (Ke("data-v-
|
|
1
|
+
import { computed as k, ref as d, watch as Fe, onMounted as Xe, onBeforeUnmount as We, openBlock as s, createElementBlock as n, normalizeClass as O, normalizeStyle as se, createBlock as P, createCommentVNode as y, unref as r, createSlots as He, withCtx as m, renderSlot as $, normalizeProps as q, guardReactiveProps as J, createElementVNode as b, Fragment as w, renderList as L, toDisplayString as F, createVNode as qe, createTextVNode as K, nextTick as Je, pushScopeId as Ke, popScopeId as Qe } from "vue";
|
|
2
|
+
import { u as Ze, c as je, t as et, a as tt, p as Q, o as lt, e as A, b as at, G as Ie, d as ot, m as De, f as C, X as st, s as ut, I as nt, k as V, n as ue, i as R, x as ze, y as rt, q as it, r as dt } from "./index-0KN57HdM.js";
|
|
3
|
+
import { t as ct, u as vt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as ht } from "./Title-gvR5aS6q.js";
|
|
5
|
+
import { u as ft, U as yt } from "./usePrinter-BvKYEc1z.js";
|
|
6
|
+
import { D as pt } from "./DataTable-OAUXdIYA.js";
|
|
7
|
+
import { _ as bt } from "./Tooltip-BGmkuAK4.js";
|
|
8
|
+
import { L as gt } from "./Legend-BVByqGqZ.js";
|
|
9
|
+
import mt from "./vue-ui-skeleton-dgMXr8k9.js";
|
|
10
|
+
import wt from "./vue-ui-accordion-CczyfFaC.js";
|
|
11
|
+
import { u as Oe } from "./useNestedProp-NeGalTYk.js";
|
|
12
|
+
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = ["xmlns", "viewBox"], $t = ["id", "fr"], Lt = /* @__PURE__ */ ne(() => /* @__PURE__ */ b("stop", {
|
|
14
14
|
offset: "0%",
|
|
15
15
|
"stop-color": "#FFFFFF",
|
|
16
16
|
"stop-opacity": "0"
|
|
17
|
-
}, null, -1)),
|
|
17
|
+
}, null, -1)), Ct = ["offset", "stop-opacity"], St = /* @__PURE__ */ ne(() => /* @__PURE__ */ b("stop", {
|
|
18
18
|
offset: "100%",
|
|
19
19
|
"stop-color": "#FFFFFF",
|
|
20
20
|
"stop-opacity": "0"
|
|
21
|
-
}, null, -1)),
|
|
21
|
+
}, null, -1)), Nt = ["id"], Tt = ["id"], Ft = /* @__PURE__ */ ne(() => /* @__PURE__ */ b("feColorMatrix", {
|
|
22
22
|
type: "saturate",
|
|
23
23
|
values: "0"
|
|
24
|
-
}, null, -1)),
|
|
24
|
+
}, null, -1)), It = ["id"], Dt = ["flood-color"], zt = ["cx", "cy", "r", "fill", "filter"], Ot = ["d", "fill", "stroke", "stroke-width", "filter"], Pt = { key: 0 }, At = ["d", "fill"], Vt = { key: 1 }, Mt = ["x", "y", "font-size", "font-weight", "fill"], Bt = { key: 2 }, Ut = ["filter"], Gt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Rt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Et = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Yt = ["d", "fill", "onMouseenter", "onClick"], Xt = {
|
|
25
25
|
key: 3,
|
|
26
26
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
27
|
+
}, Wt = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "vue-ui-nested-donuts-legend-title"
|
|
30
|
-
}, Ht = ["onClick"],
|
|
30
|
+
}, Ht = ["onClick"], qt = ["innerHTML"], Jt = {
|
|
31
31
|
__name: "vue-ui-nested-donuts",
|
|
32
32
|
props: {
|
|
33
33
|
config: {
|
|
@@ -44,8 +44,8 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectLegend", "selectDatapoint"],
|
|
47
|
-
setup(M, { expose:
|
|
48
|
-
const I = M, { vue_ui_nested_donuts: Ae } = Ze(),
|
|
47
|
+
setup(M, { expose: Pe, emit: re }) {
|
|
48
|
+
const I = M, { vue_ui_nested_donuts: Ae } = Ze(), E = k(() => !!I.dataset && I.dataset.length), g = d(je()), Z = d(!1), j = d(""), Ve = d(null), ie = d(0), B = d(null), de = d(null), ee = d(null), ce = d(0), ve = d(0), he = d(0), U = d(!1);
|
|
49
49
|
function Me(t) {
|
|
50
50
|
U.value = t, ie.value += 1;
|
|
51
51
|
}
|
|
@@ -54,12 +54,12 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
54
54
|
set: (t) => t
|
|
55
55
|
});
|
|
56
56
|
function fe() {
|
|
57
|
-
const t =
|
|
57
|
+
const t = Oe({
|
|
58
58
|
userConfig: I.config,
|
|
59
59
|
defaultConfig: Ae
|
|
60
60
|
});
|
|
61
61
|
return t.theme ? {
|
|
62
|
-
...
|
|
62
|
+
...Oe({
|
|
63
63
|
userConfig: et.vue_ui_nested_donuts[t.theme] || I.config,
|
|
64
64
|
defaultConfig: t
|
|
65
65
|
}),
|
|
@@ -78,8 +78,8 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
78
78
|
componentName: "VueUiNestedDonuts",
|
|
79
79
|
type: "dataset"
|
|
80
80
|
}), e.value.responsive) {
|
|
81
|
-
const t =
|
|
82
|
-
const { width: u, height: a } =
|
|
81
|
+
const t = ct(() => {
|
|
82
|
+
const { width: u, height: a } = vt({
|
|
83
83
|
chart: B.value,
|
|
84
84
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
85
85
|
legend: e.value.style.chart.legend.show ? ee.value : null
|
|
@@ -89,10 +89,10 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
89
89
|
Y.value = new ResizeObserver(t), Y.value.observe(B.value.parentNode);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
We(() => {
|
|
93
93
|
Y.value && Y.value.disconnect();
|
|
94
94
|
});
|
|
95
|
-
const { isPrinting: pe, isImaging: be, generatePdf: ge, generateImage: me } =
|
|
95
|
+
const { isPrinting: pe, isImaging: be, generatePdf: ge, generateImage: me } = ft({
|
|
96
96
|
elementId: `nested_donuts_${g.value}`,
|
|
97
97
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
98
98
|
}), Be = k(() => at(e.value.customPalette)), x = d({
|
|
@@ -165,7 +165,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
165
165
|
}))
|
|
166
166
|
};
|
|
167
167
|
}));
|
|
168
|
-
function
|
|
168
|
+
function Ge(t, u, a) {
|
|
169
169
|
let o = 0;
|
|
170
170
|
for (let l = 0; l < t.length; l += 1)
|
|
171
171
|
a.includes(t[l]) && (o += 1);
|
|
@@ -178,7 +178,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
178
178
|
re("selectLegend", t);
|
|
179
179
|
const u = S.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = h.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
180
180
|
let l = a ? a.value : 0;
|
|
181
|
-
const i = S.value.find((c) => c.id === u.arcOfId).series.map((c) => c.id), p =
|
|
181
|
+
const i = S.value.find((c) => c.id === u.arcOfId).series.map((c) => c.id), p = Ge(i, i.length - 1, f.value);
|
|
182
182
|
if (f.value.includes(t.id)) {
|
|
183
183
|
let c = function() {
|
|
184
184
|
l > u.value ? (cancelAnimationFrame(xe.value), h.value = h.value.map((_) => ({
|
|
@@ -215,7 +215,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
215
215
|
c();
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
const
|
|
218
|
+
const G = k(() => h.value.map((t, u) => {
|
|
219
219
|
const a = u * N.value / S.value.length;
|
|
220
220
|
return {
|
|
221
221
|
...t,
|
|
@@ -252,16 +252,16 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
252
252
|
N.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
253
253
|
)[0]
|
|
254
254
|
};
|
|
255
|
-
})), $e = d(null), X = d(null),
|
|
256
|
-
function
|
|
257
|
-
$e.value = t.arcOfId, X.value = t.id,
|
|
255
|
+
})), $e = d(null), X = d(null), W = d(null), le = d(null);
|
|
256
|
+
function Re({ datapoint: t, _relativeIndex: u, seriesIndex: a }) {
|
|
257
|
+
$e.value = t.arcOfId, X.value = t.id, W.value = a, le.value = {
|
|
258
258
|
datapoint: t,
|
|
259
259
|
seriesIndex: a,
|
|
260
260
|
series: h.value,
|
|
261
261
|
config: e.value
|
|
262
262
|
};
|
|
263
263
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
264
|
-
if (ze(o) &&
|
|
264
|
+
if (ze(o) && rt(() => o({
|
|
265
265
|
seriesIndex: a,
|
|
266
266
|
datapoint: t,
|
|
267
267
|
series: h.value,
|
|
@@ -290,7 +290,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
290
290
|
</span>
|
|
291
291
|
</div>
|
|
292
292
|
<span>
|
|
293
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
293
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${R(
|
|
294
294
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
295
295
|
t.value,
|
|
296
296
|
C({
|
|
@@ -312,7 +312,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
312
312
|
`;
|
|
313
313
|
});
|
|
314
314
|
} else
|
|
315
|
-
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${
|
|
315
|
+
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${R(
|
|
316
316
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
317
317
|
t.value,
|
|
318
318
|
C({
|
|
@@ -342,7 +342,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
342
342
|
if (!e.value.useBlurOnHover)
|
|
343
343
|
return "";
|
|
344
344
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && f.value.length === 0)
|
|
345
|
-
return [null, void 0].includes(
|
|
345
|
+
return [null, void 0].includes(W.value) || W.value === u ? "" : `url(#blur_${g.value})`;
|
|
346
346
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || f.value.length)
|
|
347
347
|
return [null, void 0].includes(X.value) || X.value === t.id ? "" : `url(#blur_${g.value})`;
|
|
348
348
|
}
|
|
@@ -361,7 +361,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
361
361
|
opacity: f.value.includes(a.id) ? 0.5 : 1,
|
|
362
362
|
segregate: () => te(a),
|
|
363
363
|
isSegregated: f.value.includes(a.id)
|
|
364
|
-
})))),
|
|
364
|
+
})))), Ee = k(() => ({
|
|
365
365
|
cy: "nested-donuts-legend",
|
|
366
366
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
367
367
|
color: e.value.style.chart.legend.color,
|
|
@@ -380,11 +380,11 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
380
380
|
Je(() => {
|
|
381
381
|
const t = D.value.head.map((o, l) => [[
|
|
382
382
|
o.name
|
|
383
|
-
], [D.value.body[l]], [isNaN(D.value.body[l] / o.total) ? "-" : D.value.body[l] / o.total * 100]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a =
|
|
384
|
-
|
|
383
|
+
], [D.value.body[l]], [isNaN(D.value.body[l] / o.total) ? "-" : D.value.body[l] / o.total * 100]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = it(u);
|
|
384
|
+
dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
const
|
|
387
|
+
const H = k(() => {
|
|
388
388
|
const t = [
|
|
389
389
|
e.value.table.columnNames.series,
|
|
390
390
|
e.value.table.columnNames.value,
|
|
@@ -439,7 +439,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
439
439
|
function Te() {
|
|
440
440
|
x.value.showTooltip = !x.value.showTooltip;
|
|
441
441
|
}
|
|
442
|
-
return
|
|
442
|
+
return Pe({
|
|
443
443
|
getData: Ye,
|
|
444
444
|
generatePdf: ge,
|
|
445
445
|
generateCsv: Ce,
|
|
@@ -450,7 +450,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
450
450
|
}), (t, u) => (s(), n("div", {
|
|
451
451
|
ref_key: "nestedDonutsChart",
|
|
452
452
|
ref: B,
|
|
453
|
-
class:
|
|
453
|
+
class: O(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
454
454
|
style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${!e.value.style.chart.title.text && e.value.userOptions.show ? "padding-top:36px" : ""};background:${e.value.style.chart.backgroundColor}`),
|
|
455
455
|
id: `nested_donuts_${g.value}`
|
|
456
456
|
}, [
|
|
@@ -459,7 +459,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
459
459
|
ref_key: "chartTitle",
|
|
460
460
|
ref: de
|
|
461
461
|
}, [
|
|
462
|
-
(s(),
|
|
462
|
+
(s(), P(ht, {
|
|
463
463
|
key: `title_${ce.value}`,
|
|
464
464
|
config: {
|
|
465
465
|
title: {
|
|
@@ -473,7 +473,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
473
473
|
}
|
|
474
474
|
}, null, 8, ["config"]))
|
|
475
475
|
], 512)) : y("", !0),
|
|
476
|
-
e.value.userOptions.show &&
|
|
476
|
+
e.value.userOptions.show && E.value ? (s(), P(yt, {
|
|
477
477
|
ref: "details",
|
|
478
478
|
key: `user_option_${ie.value}`,
|
|
479
479
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -499,7 +499,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
499
499
|
onToggleTable: Se,
|
|
500
500
|
onToggleLabels: Ne,
|
|
501
501
|
onToggleTooltip: Te
|
|
502
|
-
},
|
|
502
|
+
}, He({ _: 2 }, [
|
|
503
503
|
t.$slots.optionTooltip ? {
|
|
504
504
|
name: "optionTooltip",
|
|
505
505
|
fn: m(() => [
|
|
@@ -550,10 +550,10 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
550
550
|
key: "6"
|
|
551
551
|
} : void 0
|
|
552
552
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
553
|
-
|
|
553
|
+
E.value ? (s(), n("svg", {
|
|
554
554
|
key: 2,
|
|
555
555
|
xmlns: r(st),
|
|
556
|
-
class:
|
|
556
|
+
class: O({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
557
557
|
viewBox: `0 0 ${v.value.width <= 0 ? 1e-3 : v.value.width} ${v.value.height < 0 ? 1e-3 : v.value.height}`,
|
|
558
558
|
style: se(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
559
559
|
}, [
|
|
@@ -565,14 +565,14 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
565
565
|
r: "50%",
|
|
566
566
|
fr: 30 - 1 * (o + 1) + "%"
|
|
567
567
|
}, [
|
|
568
|
-
|
|
568
|
+
Lt,
|
|
569
569
|
b("stop", {
|
|
570
570
|
offset: 70 - 20 * o + "%",
|
|
571
571
|
"stop-color": "#FFFFFF",
|
|
572
572
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
573
|
-
}, null, 8,
|
|
574
|
-
|
|
575
|
-
], 8,
|
|
573
|
+
}, null, 8, Ct),
|
|
574
|
+
St
|
|
575
|
+
], 8, $t))), 256))
|
|
576
576
|
]),
|
|
577
577
|
b("defs", null, [
|
|
578
578
|
b("filter", {
|
|
@@ -586,9 +586,9 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
586
586
|
in: "SourceGraphic",
|
|
587
587
|
stdDeviation: 2,
|
|
588
588
|
id: `blur_std_${g.value}`
|
|
589
|
-
}, null, 8,
|
|
590
|
-
|
|
591
|
-
], 8,
|
|
589
|
+
}, null, 8, Tt),
|
|
590
|
+
Ft
|
|
591
|
+
], 8, Nt),
|
|
592
592
|
b("filter", {
|
|
593
593
|
id: `shadow_${g.value}`,
|
|
594
594
|
"color-interpolation-filters": "sRGB"
|
|
@@ -599,26 +599,26 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
599
599
|
stdDeviation: "10",
|
|
600
600
|
"flood-opacity": "0.5",
|
|
601
601
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
602
|
-
}, null, 8,
|
|
603
|
-
], 8,
|
|
602
|
+
}, null, 8, Dt)
|
|
603
|
+
], 8, It)
|
|
604
604
|
]),
|
|
605
|
-
(s(!0), n(w, null, L(
|
|
605
|
+
(s(!0), n(w, null, L(G.value, (a) => (s(), n("circle", {
|
|
606
606
|
cx: v.value.width / 2,
|
|
607
607
|
cy: v.value.height / 2,
|
|
608
608
|
r: a.radius < 0 ? 1e-5 : a.radius,
|
|
609
609
|
fill: e.value.style.chart.backgroundColor,
|
|
610
610
|
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${g.value})` : ""
|
|
611
|
-
}, null, 8,
|
|
612
|
-
(s(!0), n(w, null, L(
|
|
611
|
+
}, null, 8, zt))), 256)),
|
|
612
|
+
(s(!0), n(w, null, L(G.value, (a, o) => (s(), n("g", null, [
|
|
613
613
|
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
614
614
|
b("path", {
|
|
615
615
|
class: "vue-ui-donut-arc-path",
|
|
616
616
|
d: l.arcSlice,
|
|
617
|
-
fill:
|
|
617
|
+
fill: r(ut)(l.color, 80),
|
|
618
618
|
stroke: e.value.style.chart.backgroundColor,
|
|
619
619
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
620
620
|
filter: Le(l, i)
|
|
621
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, Ot)
|
|
622
622
|
]))), 256))
|
|
623
623
|
]))), 256)),
|
|
624
624
|
e.value.style.chart.useGradient ? (s(), n("g", Pt, [
|
|
@@ -628,50 +628,50 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
628
628
|
fill: `url(#radial_${g.value}_${o})`,
|
|
629
629
|
stroke: "transparent",
|
|
630
630
|
"stroke-width": "0"
|
|
631
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, At)
|
|
632
632
|
]))), 256))
|
|
633
633
|
])) : y("", !0),
|
|
634
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (s(), n("g",
|
|
635
|
-
(s(!0), n(w, null, L(
|
|
634
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (s(), n("g", Vt, [
|
|
635
|
+
(s(!0), n(w, null, L(G.value, (a, o) => (s(), n("g", null, [
|
|
636
636
|
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
637
637
|
i === 0 && v.value.width && v.value.height ? (s(), n("text", {
|
|
638
638
|
key: 0,
|
|
639
|
-
class:
|
|
639
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
640
640
|
x: v.value.width / 2,
|
|
641
641
|
y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
642
642
|
"text-anchor": "middle",
|
|
643
643
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
644
644
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
645
645
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
646
|
-
}, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(
|
|
646
|
+
}, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(nt)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Mt)) : y("", !0)
|
|
647
647
|
]))), 256))
|
|
648
648
|
]))), 256))
|
|
649
649
|
])) : y("", !0),
|
|
650
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g",
|
|
651
|
-
(s(!0), n(w, null, L(
|
|
650
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g", Bt, [
|
|
651
|
+
(s(!0), n(w, null, L(G.value, (a, o) => (s(), n("g", null, [
|
|
652
652
|
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", {
|
|
653
653
|
filter: Le(l, i)
|
|
654
654
|
}, [
|
|
655
655
|
ae(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (s(), n("text", {
|
|
656
656
|
key: 0,
|
|
657
|
-
class:
|
|
657
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
658
658
|
"text-anchor": r(V)(l, !0).anchor,
|
|
659
659
|
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
660
660
|
y: r(ue)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
661
661
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
662
662
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
663
663
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
664
|
-
}, F(r(C)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11,
|
|
664
|
+
}, F(r(C)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Gt)) : y("", !0),
|
|
665
665
|
ae(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (s(), n("text", {
|
|
666
666
|
key: 1,
|
|
667
|
-
class:
|
|
667
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
668
668
|
"text-anchor": r(V)(l, !0).anchor,
|
|
669
669
|
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
670
670
|
y: r(ue)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
671
671
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
672
672
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
673
673
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
674
|
-
}, " (" + F(r(
|
|
674
|
+
}, " (" + F(r(R)(
|
|
675
675
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
676
676
|
l.value,
|
|
677
677
|
r(C)({
|
|
@@ -684,14 +684,14 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
684
684
|
)) + ") ", 11, Rt)) : y("", !0),
|
|
685
685
|
ae(l) && x.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (s(), n("text", {
|
|
686
686
|
key: 2,
|
|
687
|
-
class:
|
|
687
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
688
688
|
"text-anchor": r(V)(l, !0).anchor,
|
|
689
689
|
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
690
690
|
y: r(ue)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
691
691
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
692
692
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
693
693
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
694
|
-
}, F(r(
|
|
694
|
+
}, F(r(R)(
|
|
695
695
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
696
696
|
l.value,
|
|
697
697
|
r(C)({
|
|
@@ -702,33 +702,33 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
702
702
|
}),
|
|
703
703
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
704
704
|
)), 11, Et)) : y("", !0)
|
|
705
|
-
], 8,
|
|
705
|
+
], 8, Ut))), 256))
|
|
706
706
|
]))), 256))
|
|
707
707
|
])) : y("", !0),
|
|
708
|
-
(s(!0), n(w, null, L(
|
|
708
|
+
(s(!0), n(w, null, L(G.value, (a, o) => (s(), n("g", null, [
|
|
709
709
|
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
710
710
|
b("path", {
|
|
711
711
|
"data-cy-donut-trap": "",
|
|
712
712
|
d: l.arcSlice,
|
|
713
713
|
fill: Ve.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
714
|
-
onMouseenter: (p) =>
|
|
714
|
+
onMouseenter: (p) => Re({
|
|
715
715
|
datapoint: l,
|
|
716
716
|
relativeIndex: o,
|
|
717
717
|
seriesIndex: l.seriesIndex
|
|
718
718
|
}),
|
|
719
719
|
onClick: (p) => Ue({ datapoint: l, index: i }),
|
|
720
720
|
onMouseleave: u[0] || (u[0] = (p) => {
|
|
721
|
-
Z.value = !1, $e.value = null, X.value = null,
|
|
721
|
+
Z.value = !1, $e.value = null, X.value = null, W.value = null;
|
|
722
722
|
})
|
|
723
|
-
}, null, 40,
|
|
723
|
+
}, null, 40, Yt)
|
|
724
724
|
]))), 256))
|
|
725
725
|
]))), 256)),
|
|
726
726
|
$(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
727
|
-
], 14,
|
|
728
|
-
t.$slots.watermark ? (s(), n("div",
|
|
727
|
+
], 14, kt)) : y("", !0),
|
|
728
|
+
t.$slots.watermark ? (s(), n("div", Xt, [
|
|
729
729
|
$(t.$slots, "watermark", q(J({ isPrinting: r(pe) || r(be) })), void 0, !0)
|
|
730
730
|
])) : y("", !0),
|
|
731
|
-
|
|
731
|
+
E.value ? y("", !0) : (s(), P(mt, {
|
|
732
732
|
key: 4,
|
|
733
733
|
config: {
|
|
734
734
|
type: "donut",
|
|
@@ -740,7 +740,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
}, null, 8, ["config"])),
|
|
743
|
-
qe(
|
|
743
|
+
qe(bt, {
|
|
744
744
|
show: x.value.showTooltip && Z.value,
|
|
745
745
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
746
746
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -767,23 +767,23 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
767
767
|
key: 5,
|
|
768
768
|
ref_key: "chartLegend",
|
|
769
769
|
ref: ee,
|
|
770
|
-
class:
|
|
770
|
+
class: O({ "vue-ui-nested-donuts-legend": oe.value.length > 1 })
|
|
771
771
|
}, [
|
|
772
|
-
(s(!0), n(w, null, L(oe.value, (a, o) => (s(),
|
|
772
|
+
(s(!0), n(w, null, L(oe.value, (a, o) => (s(), P(gt, {
|
|
773
773
|
key: `legend_${o}_${he.value}`,
|
|
774
774
|
legendSet: a,
|
|
775
|
-
config:
|
|
775
|
+
config: Ee.value,
|
|
776
776
|
onClickMarker: u[1] || (u[1] = ({ legend: l }) => te(l))
|
|
777
777
|
}, {
|
|
778
778
|
legendTitle: m(({ titleSet: l }) => [
|
|
779
|
-
l[0] && l[0].arcOf ? (s(), n("div",
|
|
779
|
+
l[0] && l[0].arcOf ? (s(), n("div", Wt, F(l[0].arcOf), 1)) : y("", !0)
|
|
780
780
|
]),
|
|
781
781
|
item: m(({ legend: l, index: i }) => [
|
|
782
782
|
b("div", {
|
|
783
783
|
onClick: (p) => te(l),
|
|
784
784
|
style: se(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
785
785
|
}, [
|
|
786
|
-
K(F(l.name) + ": " + F(r(
|
|
786
|
+
K(F(l.name) + ": " + F(r(R)(
|
|
787
787
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
788
788
|
l.value,
|
|
789
789
|
r(C)({
|
|
@@ -811,7 +811,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
811
811
|
}, [
|
|
812
812
|
$(t.$slots, "legend", { legend: oe.value }, void 0, !0)
|
|
813
813
|
], 512)),
|
|
814
|
-
|
|
814
|
+
E.value ? (s(), P(wt, {
|
|
815
815
|
key: 7,
|
|
816
816
|
hideDetails: "",
|
|
817
817
|
config: {
|
|
@@ -828,12 +828,12 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
828
828
|
}
|
|
829
829
|
}, {
|
|
830
830
|
content: m(() => [
|
|
831
|
-
(s(),
|
|
831
|
+
(s(), P(pt, {
|
|
832
832
|
key: `table_${ve.value}`,
|
|
833
|
-
colNames:
|
|
834
|
-
head:
|
|
835
|
-
body:
|
|
836
|
-
config:
|
|
833
|
+
colNames: H.value.colNames,
|
|
834
|
+
head: H.value.head,
|
|
835
|
+
body: H.value.body,
|
|
836
|
+
config: H.value.config,
|
|
837
837
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
838
838
|
onClose: u[2] || (u[2] = (a) => x.value.showTable = !1)
|
|
839
839
|
}, {
|
|
@@ -841,7 +841,7 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
841
841
|
b("div", {
|
|
842
842
|
innerHTML: a,
|
|
843
843
|
style: { display: "flex", "align-items": "center" }
|
|
844
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, qt)
|
|
845
845
|
]),
|
|
846
846
|
td: m(({ td: a }) => [
|
|
847
847
|
K(F(a.name || a), 1)
|
|
@@ -851,9 +851,9 @@ const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = [
|
|
|
851
851
|
]),
|
|
852
852
|
_: 1
|
|
853
853
|
}, 8, ["config"])) : y("", !0)
|
|
854
|
-
], 14,
|
|
854
|
+
], 14, _t));
|
|
855
855
|
}
|
|
856
|
-
},
|
|
856
|
+
}, rl = /* @__PURE__ */ xt(Jt, [["__scopeId", "data-v-8ee0a3c3"]]);
|
|
857
857
|
export {
|
|
858
|
-
|
|
858
|
+
rl as default
|
|
859
859
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-TabZg_HV.cjs"),j=require("./useResponsive-B3TrDDIG.cjs"),he=require("./Title-D9lSjLTg.cjs"),J=require("./usePrinter--7sLxlpn.cjs"),pe=require("./Legend-DfU44fjz.cjs"),fe=require("./DataTable-CeHw-cqZ.cjs"),ge=require("./Tooltip-C0PSN8vf.cjs"),me=require("./vue-ui-skeleton-CYeXVNFu.cjs"),ye=require("./vue-ui-accordion-0uSZBHsp.cjs"),K=require("./useNestedProp-CoLyVvV9.cjs"),be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],we=["xmlns","viewBox"],Ce=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],$e=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],xe=["id"],Be=["stdDeviation"],Te=["filter"],Se=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],_e=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset","onMouseenter"],Pe={key:1},Ne=["onMouseenter"],Oe=["x","y","font-size","fill","font-weight"],Fe={key:3,class:"vue-data-ui-watermark"},Ie=["onClick"],Ee=["innerHTML"],Le={__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const p=Q,{vue_ui_onion:te}=u.useConfig(),C=e.computed(()=>!!p.dataset&&p.dataset.length),m=e.ref(u.createUid()),le=e.ref(null),F=e.ref(0),$=e.ref(!1),T=e.ref(""),d=e.ref([]),y=e.ref(null),I=e.ref(null),E=e.ref(null),L=e.ref(0),M=e.ref(0),V=e.ref(0),t=e.computed({get:()=>D(),set:a=>a});function D(){const a=K.useNestedProp({userConfig:p.config,defaultConfig:te});return a.theme?{...K.useNestedProp({userConfig:u.themes.vue_ui_onion[a.theme]||p.config,defaultConfig:a}),customPalette:u.themePalettes[a.theme]||u.palette}:a}e.watch(()=>p.config,a=>{t.value=D(),q(),L.value+=1,M.value+=1,V.value+=1},{deep:!0});const{isPrinting:R,isImaging:z,generatePdf:A,generateImage:Y}=J.usePrinter({elementId:`vue-ui-onion_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-onion"}),ae=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),f=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:512,width:512,padding:{top:64,left:64,right:64,bottom:64},minRadius:64}),x=e.ref(null);e.onMounted(()=>{q()});function q(){if(u.objectIsEmpty(p.dataset)&&u.error({componentName:"VueUiOnion",type:"dataset"}),t.value.responsive){const r=j.throttle(()=>{const{width:l,height:o}=j.useResponsive({chart:y.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?E.value:null});n.value.width=l,n.value.height=o,n.value.padding.top=Math.max(l,o)*.125,n.value.padding.right=Math.max(l,o)*.125,n.value.padding.bottom=Math.max(l,o)*.125,n.value.padding.left=Math.max(l,o)*.125,n.value.minRadius=Math.min(l,o)*.125});x.value=new ResizeObserver(r),x.value.observe(y.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const s=e.computed(()=>({top:n.value.padding.top,left:n.value.padding.left,right:n.value.width-n.value.padding.right,bottom:n.value.height-n.value.padding.bottom,centerX:n.value.width/2,centerY:n.value.height/2,width:n.value.width-n.value.padding.right-n.value.padding.left,height:n.value.height-n.value.padding.bottom-n.value.padding.top,minRadius:n.value.minRadius,maxRadius:Math.min(n.value.width,n.value.height)-n.value.padding.top*2})),i=e.computed(()=>(p.dataset.forEach((a,r)=>{[null,void 0].includes(a.name)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"name",index:r}),[void 0].includes(a.percentage)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"percentage",index:r})}),p.dataset.map((a,r)=>{const l=`onion_serie_${r}_${m.value}`;return{...a,percentage:a.percentage||0,targetPercentage:a.percentage||0,color:u.convertColorToHex(a.color)||ae.value[r]||u.palette[r],id:l,shape:"circle",opacity:d.value.includes(l)?.5:1,absoluteIndex:r,segregate:()=>X(l),isSegregated:d.value.includes(l)}}))),b=e.ref(i.value),oe=e.computed(()=>t.value.useStartAnimation),re=e.ref(null),ne=e.computed(()=>Math.max(...i.value.map(a=>a.percentage))),S=e.ref(!1);e.watch(()=>i.value,ue,{immediate:!0});function ue(){if(oe.value&&!S.value){let r=function(){a>=ne.value?(cancelAnimationFrame(re.value),b.value=i.value,S.value=!0):(b.value=i.value.map(l=>({...l,percentage:a<l.targetPercentage?a:l.targetPercentage})),a+=1,requestAnimationFrame(r),S.value=!0)};b.value=i.value.map(l=>({...l,percentage:0}));let a=0;r()}else b.value=i.value}const se=e.computed(()=>({cy:"onion-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":""})),ie=e.computed(()=>i.value.filter(a=>!d.value.includes(a.id)).length),g=e.computed(()=>{const a=Math.min(s.value.width,s.value.height)/2/i.value.length;return{gutter:(a>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:a)*t.value.style.chart.layout.gutter.width,track:(a>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:a)*t.value.style.chart.layout.track.width}}),v=e.computed(()=>b.value.filter(a=>!d.value.includes(a.id)).map((a,r)=>{const l=(s.value.maxRadius-g.value.track)/ie.value/2*(1+r),o=s.value.centerY-l;return{percentage:a.percentage||0,...a,labelY:o,radius:l,path:ce(l,a.percentage||0)}}));function ce(a,r){const l=2*Math.PI*a,o=l*.75,c=`${o} ${l}`,w=o*(1-r/100);return{bgDashArray:`${o} ${l}`,bgDashOffset:0,dashArray:c,dashOffset:w,fullOffset:0,active:`
|
|
2
2
|
M ${s.value.centerX},${s.value.centerY-a}
|
|
3
3
|
A ${a},${a} 0 1 1
|
|
4
4
|
${s.value.centerX+a*Math.cos(Math.PI*3/4)},${s.value.centerY+a*Math.sin(Math.PI*3/4)}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as d, ref as u, watch as he, onMounted as Fe, onBeforeUnmount as Ne, openBlock as s, createElementBlock as n, normalizeClass as z, normalizeStyle as Y, createBlock as x, createCommentVNode as b, unref as v, createSlots as Re, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as V, Fragment as M, renderList as F, createElementVNode as T, toDisplayString as _, createVNode as Ae, createTextVNode as De, nextTick as Le } from "vue";
|
|
2
|
-
import { u as ze, c as Ye, t as Be, a as Ve, p as fe, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as ge, q as He, r as We, y as je } from "./index-
|
|
2
|
+
import { u as ze, c as Ye, t as Be, a as Ve, p as fe, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as ge, q as He, r as We, y as je } from "./index-0KN57HdM.js";
|
|
3
3
|
import { t as qe, u as Je } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Ke } from "./Title-
|
|
5
|
-
import { u as Qe, U as Ze } from "./usePrinter-
|
|
6
|
-
import { L as et } from "./Legend-
|
|
7
|
-
import { D as tt } from "./DataTable-
|
|
8
|
-
import { _ as at } from "./Tooltip-
|
|
9
|
-
import lt from "./vue-ui-skeleton-
|
|
10
|
-
import ot from "./vue-ui-accordion-
|
|
11
|
-
import { u as pe } from "./useNestedProp-
|
|
4
|
+
import { _ as Ke } from "./Title-gvR5aS6q.js";
|
|
5
|
+
import { u as Qe, U as Ze } from "./usePrinter-BvKYEc1z.js";
|
|
6
|
+
import { L as et } from "./Legend-BVByqGqZ.js";
|
|
7
|
+
import { D as tt } from "./DataTable-OAUXdIYA.js";
|
|
8
|
+
import { _ as at } from "./Tooltip-BGmkuAK4.js";
|
|
9
|
+
import lt from "./vue-ui-skeleton-dgMXr8k9.js";
|
|
10
|
+
import ot from "./vue-ui-accordion-CczyfFaC.js";
|
|
11
|
+
import { u as pe } from "./useNestedProp-NeGalTYk.js";
|
|
12
12
|
import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], it = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ct = ["id"], dt = ["stdDeviation"], vt = ["filter"], ht = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], gt = { key: 1 }, pt = ["onMouseenter"], yt = ["x", "y", "font-size", "fill", "font-weight"], mt = {
|
|
14
14
|
key: 3,
|