vue-data-ui 2.3.93 → 2.3.95
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-tI6NQ7Cn.js → Arrow-ClB1PHpS.js} +1 -1
- package/dist/{Arrow-DvOpIAlY.cjs → Arrow-OPbsbOoM.cjs} +1 -1
- package/dist/{BaseIcon-CNOWc7Xz.cjs → BaseIcon-CGKu0qTV.cjs} +1 -1
- package/dist/{BaseIcon-4CP9SAhe.js → BaseIcon-ZChy8GeS.js} +1 -1
- package/dist/{DataTable-BUgJSK3f.js → DataTable-B9SSwFM2.js} +2 -2
- package/dist/{DataTable-DhUk55WP.cjs → DataTable-CUi5w5e6.cjs} +1 -1
- package/dist/{Legend-C2KtRxbi.js → Legend-D4PxDNTf.js} +1 -1
- package/dist/{Legend-WO0bF0ud.cjs → Legend-DP-Tm5Kr.cjs} +1 -1
- package/dist/{PackageVersion-B_T5VqI7.cjs → PackageVersion-DdGAD2ox.cjs} +1 -1
- package/dist/{PackageVersion-Cy2QrPIN.js → PackageVersion-I1_4jcn_.js} +1 -1
- package/dist/{Shape-CvvlB7a8.cjs → Shape-DRb45Knl.cjs} +1 -1
- package/dist/{Shape-ovEGVZTS.js → Shape-DVc7K58k.js} +1 -1
- package/dist/{Slicer-C4yPLRzp.js → Slicer-Bk9LTQad.js} +15 -15
- package/dist/{Slicer-ChxIxUKY.cjs → Slicer-D7S48Lno.cjs} +1 -1
- package/dist/{Title-CczWCvrd.js → Title-Cxlu3Etv.js} +1 -1
- package/dist/{Title-BRktfjVS.cjs → Title-DcXqsD3c.cjs} +1 -1
- package/dist/{Tooltip-CLelGHFy.js → Tooltip-Bt9pHzBM.js} +1 -1
- package/dist/{Tooltip-iisamh_I.cjs → Tooltip-onlvaIFL.cjs} +1 -1
- package/dist/index-BwtKB_oG.cjs +9 -0
- package/dist/{index-B9ExL-Ae.js → index-DK7qqHGP.js} +725 -705
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-BI1wvb44.js → useNestedProp-0nRX_rTi.js} +1 -1
- package/dist/{useNestedProp-CQjoDc6x.cjs → useNestedProp-CE6ustAp.cjs} +1 -1
- package/dist/{usePrinter-BYx8odJu.cjs → usePrinter-BMJj8aqh.cjs} +1 -1
- package/dist/{usePrinter-CUStN20z.js → usePrinter-Cza87yNE.js} +1 -1
- package/dist/{vue-data-ui-CUhpUmv_.js → vue-data-ui-C_TmwtMr.js} +57 -57
- package/dist/{vue-data-ui-Bn0hx7hG.cjs → vue-data-ui-Hk08-jMu.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +5 -5
- package/dist/{vue-ui-3d-bar-CxlYseaq.js → vue-ui-3d-bar-C7dVjCP4.js} +8 -8
- package/dist/{vue-ui-3d-bar-BL-ZhuNx.cjs → vue-ui-3d-bar-DLpRGWHF.cjs} +1 -1
- package/dist/{vue-ui-accordion-SZPrlCJb.js → vue-ui-accordion-5C4CP3gA.js} +3 -3
- package/dist/{vue-ui-accordion-DzbFctbI.cjs → vue-ui-accordion-CM2NnUan.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vnFYLLSN.cjs → vue-ui-age-pyramid-CTvGXHzp.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-B1IVehHW.js → vue-ui-age-pyramid-mLYneMWu.js} +9 -9
- package/dist/{vue-ui-annotator-DGedspml.js → vue-ui-annotator-BB0EN1X8.js} +1 -1
- package/dist/{vue-ui-annotator-Cv6XubR6.cjs → vue-ui-annotator-CPZoIz9j.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DGN9u4Fc.js → vue-ui-candlestick-91SHWtIZ.js} +10 -10
- package/dist/{vue-ui-candlestick-CIJdWFvp.cjs → vue-ui-candlestick-BqH7QdhN.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-kawG2Va2.cjs → vue-ui-carousel-table-Cj9K0i-8.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BgDKAsLu.js → vue-ui-carousel-table-Dvr8K0wL.js} +4 -4
- package/dist/{vue-ui-chestnut-mz-4OECX.cjs → vue-ui-chestnut-BMbO3LQx.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CtFOgJmT.js → vue-ui-chestnut-C8-hqYVj.js} +7 -7
- package/dist/{vue-ui-cursor-BVS2YR2w.cjs → vue-ui-cursor-CiNq70Vh.cjs} +1 -1
- package/dist/{vue-ui-cursor-BJ2nafdy.js → vue-ui-cursor-fOFRnGWg.js} +2 -2
- package/dist/{vue-ui-dashboard-D93KqjL8.js → vue-ui-dashboard-XROIeMZs.js} +2 -2
- package/dist/{vue-ui-dashboard-wvzwXNCc.cjs → vue-ui-dashboard-emcX9lzJ.cjs} +1 -1
- package/dist/{vue-ui-digits-CTpbhzau.js → vue-ui-digits-Dao_RHVG.js} +2 -2
- package/dist/{vue-ui-digits-2e8Z2Ynp.cjs → vue-ui-digits-Fx6hf8lh.cjs} +1 -1
- package/dist/vue-ui-donut-Bf7irbZr.cjs +1 -0
- package/dist/vue-ui-donut-D5q_f9RX.js +1032 -0
- package/dist/{vue-ui-donut-evolution-DJpu3Zul.cjs → vue-ui-donut-evolution-Dnx-o2Ok.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Cj4VUlYA.js → vue-ui-donut-evolution-ciU7PKzb.js} +53 -53
- package/dist/{vue-ui-dumbbell-DW9hFZTK.cjs → vue-ui-dumbbell-DkX4VmBe.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B5K8A6JO.js → vue-ui-dumbbell-nLr7lvcv.js} +9 -9
- package/dist/{vue-ui-flow-D7G8pT5u.js → vue-ui-flow-B6HJtYfr.js} +20 -20
- package/dist/{vue-ui-flow-BPZIx63s.cjs → vue-ui-flow-smeC886u.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CJwQngRy.cjs → vue-ui-galaxy-Buek4k31.cjs} +1 -1
- package/dist/{vue-ui-galaxy-zxi6Dh6-.js → vue-ui-galaxy-Ts-pIaqK.js} +23 -23
- package/dist/{vue-ui-gauge-BCOp8MfJ.cjs → vue-ui-gauge-CB1FXw50.cjs} +1 -1
- package/dist/{vue-ui-gauge-Dl84wBq2.js → vue-ui-gauge-CokjkUw7.js} +19 -19
- package/dist/{vue-ui-gizmo-PUYvN73T.cjs → vue-ui-gizmo-CQzBf-wG.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BGeEyNk4.js → vue-ui-gizmo-DcGemMpp.js} +3 -3
- package/dist/{vue-ui-heatmap-9Upu_lU9.cjs → vue-ui-heatmap-B3eEfpF_.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B98p2zoa.js → vue-ui-heatmap-BBVeSW2b.js} +9 -9
- package/dist/{vue-ui-kpi-BjucxBZ5.cjs → vue-ui-kpi-0FoMbSuC.cjs} +1 -1
- package/dist/{vue-ui-kpi-1_lGwzeP.js → vue-ui-kpi-CPMnrH0b.js} +3 -3
- package/dist/{vue-ui-mini-loader-OY5XrOYB.cjs → vue-ui-mini-loader-DNrvLX3D.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B6595FMr.js → vue-ui-mini-loader-Dpn4tXn2.js} +2 -2
- package/dist/{vue-ui-molecule-DaJsYbo1.js → vue-ui-molecule-C98VGiyq.js} +29 -29
- package/dist/{vue-ui-molecule-xmP8sBoH.cjs → vue-ui-molecule-CKFgcQYg.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CdGd-5lQ.js → vue-ui-mood-radar-CD3cjrDN.js} +21 -21
- package/dist/{vue-ui-mood-radar-CB1zZjs3.cjs → vue-ui-mood-radar-DN0allOW.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CYmpCetP.js → vue-ui-nested-donuts-B__WecmQ.js} +46 -46
- package/dist/{vue-ui-nested-donuts-BkKTALZ7.cjs → vue-ui-nested-donuts-Bdl_tUXJ.cjs} +1 -1
- package/dist/{vue-ui-onion-BuimOxUF.cjs → vue-ui-onion-4g5ewsye.cjs} +1 -1
- package/dist/{vue-ui-onion-BOi0j3dJ.js → vue-ui-onion-U8VRuYjQ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DfRYipb8.js → vue-ui-parallel-coordinate-plot-9WvsfJtY.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Bah-cYZ5.cjs → vue-ui-parallel-coordinate-plot-CdegwDSr.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CVUZ1p2G.cjs → vue-ui-quadrant-D2SDPxFH.cjs} +1 -1
- package/dist/{vue-ui-quadrant-39hB1-rW.js → vue-ui-quadrant-DMto8r-E.js} +11 -11
- package/dist/{vue-ui-quick-chart-DJET2y_F.cjs → vue-ui-quick-chart-BLom9Z1d.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-8aeQmszL.js → vue-ui-quick-chart-YlkEojCz.js} +8 -8
- package/dist/{vue-ui-radar-mk61hrfQ.cjs → vue-ui-radar-DdPAZvLB.cjs} +1 -1
- package/dist/{vue-ui-radar-BHV5OcIH.js → vue-ui-radar-lg4R0yio.js} +11 -11
- package/dist/{vue-ui-rating-Dt46yKur.cjs → vue-ui-rating-B7erplTm.cjs} +1 -1
- package/dist/{vue-ui-rating-D0eIeFuP.js → vue-ui-rating-BxV1W8_t.js} +7 -7
- package/dist/{vue-ui-relation-circle-CLWjo7gq.js → vue-ui-relation-circle-BviKM7qW.js} +6 -6
- package/dist/{vue-ui-relation-circle-D8tlElyL.cjs → vue-ui-relation-circle-RHy8p_Rq.cjs} +1 -1
- package/dist/{vue-ui-rings-BrcZ1Q6y.js → vue-ui-rings-Bn-nQaV1.js} +37 -37
- package/dist/{vue-ui-rings-CjOr2fTq.cjs → vue-ui-rings-DMksrRmV.cjs} +1 -1
- package/dist/{vue-ui-scatter-wq1Ygozo.js → vue-ui-scatter-BdTMgLFD.js} +34 -34
- package/dist/{vue-ui-scatter-DElf7q_o.cjs → vue-ui-scatter-DJ0wpNbL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-WpUmWa8T.cjs → vue-ui-screenshot-D0XIDX5K.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BD6eevS2.js → vue-ui-screenshot-beg_Jx2O.js} +1 -1
- package/dist/{vue-ui-skeleton-DokgyuHD.js → vue-ui-skeleton-CQnYuosp.js} +49 -49
- package/dist/{vue-ui-skeleton-7g5Z7tL8.cjs → vue-ui-skeleton-snFRuZgs.cjs} +1 -1
- package/dist/{vue-ui-smiley-BTzWzbXj.js → vue-ui-smiley-3x3w-9Zh.js} +2 -2
- package/dist/{vue-ui-smiley-M433_VGc.cjs → vue-ui-smiley-BUlMGmlz.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CVY2563q.cjs → vue-ui-spark-trend-Ds7Vnwpb.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DVYSjWgR.js → vue-ui-spark-trend-LsojHGxX.js} +20 -20
- package/dist/{vue-ui-sparkbar-CW6U_9yF.js → vue-ui-sparkbar-45yFHmFN.js} +4 -4
- package/dist/{vue-ui-sparkbar-B5bm048m.cjs → vue-ui-sparkbar-DJAZa23-.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-P6vT35bq.cjs → vue-ui-sparkgauge-CnMl3jNc.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Da2vhyRe.js → vue-ui-sparkgauge-D-hauinY.js} +11 -11
- package/dist/{vue-ui-sparkhistogram-DgyNNNYs.js → vue-ui-sparkhistogram-DaeMxgM8.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BRE4BZ1r.cjs → vue-ui-sparkhistogram-vLsGWKZe.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BNzFzh6O.cjs → vue-ui-sparkline-DDwGkMVO.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B6F6GG5I.js → vue-ui-sparkline-Ddi4Jz8I.js} +21 -21
- package/dist/{vue-ui-sparkstackbar-DAZsawIt.js → vue-ui-sparkstackbar-1_EPRHfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-uWzUzXeY.cjs → vue-ui-sparkstackbar-wbl8ZH9S.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Dm2aCHhH.js → vue-ui-stackbar-0cKpezVg.js} +11 -11
- package/dist/{vue-ui-stackbar-DuvFbd8S.cjs → vue-ui-stackbar-BKojs76u.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-XYPsVx2s.cjs → vue-ui-strip-plot-BPICqL2j.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B_j6rXqf.js → vue-ui-strip-plot-D_7VbcMM.js} +10 -10
- package/dist/{vue-ui-table-BZjBiutU.cjs → vue-ui-table-B1kfbP6Q.cjs} +1 -1
- package/dist/{vue-ui-table-Ba8yWxlH.js → vue-ui-table-BTdufdp5.js} +10 -10
- package/dist/{vue-ui-table-heatmap-ChZ4LL-2.cjs → vue-ui-table-heatmap-CrXS3ruF.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B72rWSp8.js → vue-ui-table-heatmap-UKF0bVRc.js} +23 -23
- package/dist/{vue-ui-table-sparkline-g1tiRXu-.js → vue-ui-table-sparkline-CbhcBl__.js} +15 -15
- package/dist/{vue-ui-table-sparkline-D9KYyLun.cjs → vue-ui-table-sparkline-DnViPd7H.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BUj-EXSI.js → vue-ui-thermometer-BTb0KKkD.js} +6 -6
- package/dist/{vue-ui-thermometer-Bx9kCvPP.cjs → vue-ui-thermometer-CGlN3EdJ.cjs} +1 -1
- package/dist/{vue-ui-timer-DgVg5v8D.cjs → vue-ui-timer-Ca8z8fpL.cjs} +1 -1
- package/dist/{vue-ui-timer-BMi1tOzP.js → vue-ui-timer-DsXON-oQ.js} +5 -5
- package/dist/{vue-ui-tiremarks-B8E61MPf.js → vue-ui-tiremarks-C2FsHymJ.js} +6 -6
- package/dist/{vue-ui-tiremarks-gGC8LSGo.cjs → vue-ui-tiremarks-DfQgIZ-v.cjs} +1 -1
- package/dist/{vue-ui-treemap-D5QTDSSq.js → vue-ui-treemap-COGNksGL.js} +10 -10
- package/dist/{vue-ui-treemap-Cha1rQBU.cjs → vue-ui-treemap-Ijgu5Uxo.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BSzFwrWa.cjs → vue-ui-vertical-bar-C8q8aSVA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BL5Issc0.js → vue-ui-vertical-bar-CSk11lJL.js} +10 -10
- package/dist/{vue-ui-waffle-DxTyNZYn.cjs → vue-ui-waffle-BAFi3Ix0.cjs} +1 -1
- package/dist/{vue-ui-waffle-Dh08N5SM.js → vue-ui-waffle-nhWigJK4.js} +23 -23
- package/dist/{vue-ui-wheel-DyjcbZnB.cjs → vue-ui-wheel-CDcGk_zm.cjs} +1 -1
- package/dist/{vue-ui-wheel-DpywOj9b.js → vue-ui-wheel-DjPcnznT.js} +6 -6
- package/dist/{vue-ui-word-cloud-C7cBuLEd.cjs → vue-ui-word-cloud-BwgErpI2.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CEtvW8ZU.js → vue-ui-word-cloud-DFGYfQfb.js} +36 -36
- package/dist/{vue-ui-xy-C1EbGmWi.js → vue-ui-xy-BT3XcRoD.js} +28 -28
- package/dist/{vue-ui-xy-WnaajCFT.cjs → vue-ui-xy-CTxjevvM.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-nbhxY42M.js → vue-ui-xy-canvas-AgaDG8-s.js} +34 -34
- package/dist/{vue-ui-xy-canvas-7YaG0Huj.cjs → vue-ui-xy-canvas-BPRpgAOu.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CYdWUfPi.cjs +0 -4
- package/dist/vue-ui-donut-CJ4HeqiO.cjs +0 -1
- package/dist/vue-ui-donut-CjkJB0CP.js +0 -871
|
@@ -1,871 +0,0 @@
|
|
|
1
|
-
import { computed as b, ref as v, onMounted as He, onBeforeUnmount as We, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as z, renderSlot as g, createBlock as V, createCommentVNode as d, unref as o, createSlots as Xe, withCtx as w, normalizeProps as H, guardReactiveProps as W, createVNode as Oe, createElementVNode as y, Fragment as M, renderList as X, toDisplayString as C, createTextVNode as Pe, nextTick as qe, pushScopeId as Je, popScopeId as Ke } from "vue";
|
|
2
|
-
import { u as Qe, o as Ze, e as Ae, g as el, c as ll, b as tl, d as De, p as D, m as al, f as x, X as ol, s as q, j as ul, F as sl, i as F, k as f, n as J, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-B9ExL-Ae.js";
|
|
3
|
-
import { t as dl, u as hl } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as fl } from "./Title-CczWCvrd.js";
|
|
5
|
-
import { u as yl, U as pl } from "./usePrinter-CUStN20z.js";
|
|
6
|
-
import { D as bl } from "./DataTable-BUgJSK3f.js";
|
|
7
|
-
import { _ as gl } from "./Tooltip-CLelGHFy.js";
|
|
8
|
-
import { L as ml } from "./Legend-C2KtRxbi.js";
|
|
9
|
-
import wl from "./vue-ui-skeleton-DokgyuHD.js";
|
|
10
|
-
import kl from "./vue-ui-accordion-SZPrlCJb.js";
|
|
11
|
-
import { u as Ie } from "./useNestedProp-BI1wvb44.js";
|
|
12
|
-
import { _ as _l } from "./PackageVersion-Cy2QrPIN.js";
|
|
13
|
-
import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const xl = (G) => (Je("data-v-98fd948d"), G = G(), Ke(), G), $l = ["id"], Sl = ["xmlns", "viewBox"], Ll = ["id"], Fl = ["stop-color"], Tl = ["offset", "stop-color"], zl = ["offset", "stop-color"], Nl = ["stop-color"], Ol = ["id"], Pl = ["id"], Al = /* @__PURE__ */ xl(() => /* @__PURE__ */ y("feColorMatrix", {
|
|
15
|
-
type: "saturate",
|
|
16
|
-
values: "0"
|
|
17
|
-
}, null, -1)), Dl = ["id"], Il = ["flood-color"], Bl = ["d", "stroke", "filter"], Vl = ["cx", "cy", "r", "fill", "filter"], Ml = ["stroke", "d"], Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Ul = ["cx", "cy", "r", "fill", "stroke"], jl = ["cx", "cy", "r", "fill"], El = ["d", "fill", "onMouseenter", "onClick"], Rl = ["x", "y", "fill", "font-size"], Yl = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], Wl = ["x", "y", "fill", "font-size"], Xl = ["filter"], ql = { key: 0 }, Jl = ["x", "y"], Kl = { key: 1 }, Ql = ["cx", "cy", "fill", "filter", "onClick"], Zl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], et = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], lt = { key: 2 }, tt = ["x", "y", "width"], at = {
|
|
18
|
-
key: 3,
|
|
19
|
-
class: "vue-data-ui-watermark"
|
|
20
|
-
}, ot = ["onClick"], ut = {
|
|
21
|
-
key: 0,
|
|
22
|
-
style: { "font-variant-numeric": "tabular-nums" }
|
|
23
|
-
}, st = { key: 1 }, rt = ["innerHTML"], nt = {
|
|
24
|
-
__name: "vue-ui-donut",
|
|
25
|
-
props: {
|
|
26
|
-
config: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default() {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
dataset: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default() {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
40
|
-
setup(G, { expose: Be, emit: se }) {
|
|
41
|
-
const S = G, { vue_ui_donut: Ve } = Qe(), U = b({
|
|
42
|
-
get() {
|
|
43
|
-
return !!S.dataset && S.dataset.length;
|
|
44
|
-
},
|
|
45
|
-
set(t) {
|
|
46
|
-
return t;
|
|
47
|
-
}
|
|
48
|
-
}), j = v(null), re = v(null), ne = v(null), K = v(null), ie = v(0), ve = v(0), ce = v(0);
|
|
49
|
-
He(() => {
|
|
50
|
-
de();
|
|
51
|
-
}), We(() => {
|
|
52
|
-
K.value && K.value.disconnect();
|
|
53
|
-
});
|
|
54
|
-
function de() {
|
|
55
|
-
if (Ze(S.dataset) ? Ae({
|
|
56
|
-
componentName: "VueUiDonut",
|
|
57
|
-
type: "dataset"
|
|
58
|
-
}) : S.dataset.forEach((t, a) => {
|
|
59
|
-
el({
|
|
60
|
-
datasetObject: t,
|
|
61
|
-
requiredAttributes: ["name", "values"]
|
|
62
|
-
}).forEach((l) => {
|
|
63
|
-
U.value = !1, Ae({
|
|
64
|
-
componentName: "VueUiDonut",
|
|
65
|
-
type: "datasetSerieAttribute",
|
|
66
|
-
property: l,
|
|
67
|
-
index: a
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
}), e.value.responsive) {
|
|
71
|
-
const t = dl(() => {
|
|
72
|
-
const { width: a, height: l } = hl({
|
|
73
|
-
chart: j.value,
|
|
74
|
-
title: e.value.style.chart.title.text ? re.value : null,
|
|
75
|
-
legend: e.value.style.chart.legend.show ? ne.value : null
|
|
76
|
-
});
|
|
77
|
-
i.value.width = a, i.value.height = l;
|
|
78
|
-
});
|
|
79
|
-
K.value = new ResizeObserver(t), K.value.observe(j.value.parentNode);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const $ = v(ll()), Me = v(null), ee = v(!1), le = v(""), T = v(null), he = v(0);
|
|
83
|
-
function fe() {
|
|
84
|
-
const t = Ie({
|
|
85
|
-
userConfig: S.config,
|
|
86
|
-
defaultConfig: Ve
|
|
87
|
-
});
|
|
88
|
-
return t.theme ? {
|
|
89
|
-
...Ie({
|
|
90
|
-
userConfig: rl.vue_ui_donut[t.theme] || S.config,
|
|
91
|
-
defaultConfig: t
|
|
92
|
-
}),
|
|
93
|
-
customPalette: nl[t.theme] || D
|
|
94
|
-
} : t;
|
|
95
|
-
}
|
|
96
|
-
const e = b({
|
|
97
|
-
get: () => fe(),
|
|
98
|
-
set: (t) => t
|
|
99
|
-
});
|
|
100
|
-
Ne(() => S.config, (t) => {
|
|
101
|
-
e.value = fe(), de(), ie.value += 1, ve.value += 1, ce.value += 1;
|
|
102
|
-
}, { deep: !0 });
|
|
103
|
-
const { isPrinting: ye, isImaging: pe, generatePdf: be, generateImage: ge } = yl({
|
|
104
|
-
elementId: `donut__${$.value}`,
|
|
105
|
-
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
106
|
-
}), me = b(() => tl(e.value.customPalette)), p = v({
|
|
107
|
-
dataLabels: {
|
|
108
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
109
|
-
},
|
|
110
|
-
showTable: e.value.table.show,
|
|
111
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
112
|
-
}), i = v({
|
|
113
|
-
height: 360,
|
|
114
|
-
width: 512
|
|
115
|
-
}), E = b(() => {
|
|
116
|
-
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = i.value.width * t, l = a > _.value ? _.value : a;
|
|
117
|
-
return l < 24 ? 24 : l;
|
|
118
|
-
}), O = b(() => S.dataset.map((t, a) => ({
|
|
119
|
-
name: t.name,
|
|
120
|
-
color: De(t.color) || me.value[a] || D[a] || D[a % D.length],
|
|
121
|
-
value: t.values.reduce((l, u) => l + u, 0),
|
|
122
|
-
absoluteValues: t.values,
|
|
123
|
-
comment: t.comment || ""
|
|
124
|
-
}))), k = v(O.value);
|
|
125
|
-
Ne(() => O.value, (t) => k.value = t);
|
|
126
|
-
function Ge() {
|
|
127
|
-
return O.value.map((t) => ({
|
|
128
|
-
name: t.name,
|
|
129
|
-
color: t.color,
|
|
130
|
-
value: t.value
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
const L = v([]), we = v(null), ke = v(null), P = v(!1);
|
|
134
|
-
function _e(t) {
|
|
135
|
-
const a = O.value.find((r, h) => h === t);
|
|
136
|
-
let u = k.value.find((r, h) => h === t).value;
|
|
137
|
-
if (L.value.includes(t)) {
|
|
138
|
-
let h = function() {
|
|
139
|
-
u > r ? (cancelAnimationFrame(we.value), k.value = k.value.map((c, oe) => t === oe ? {
|
|
140
|
-
...c,
|
|
141
|
-
value: r
|
|
142
|
-
} : c), P.value = !1) : (P.value = !0, u += r * 0.025, k.value = k.value.map((c, oe) => t === oe ? {
|
|
143
|
-
...c,
|
|
144
|
-
value: u
|
|
145
|
-
} : c), we.value = requestAnimationFrame(h));
|
|
146
|
-
};
|
|
147
|
-
L.value = L.value.filter((c) => c !== t);
|
|
148
|
-
const r = a.value;
|
|
149
|
-
h();
|
|
150
|
-
} else if (L.value.length < O.value.length - 1) {
|
|
151
|
-
let r = function() {
|
|
152
|
-
u < 0.1 ? (cancelAnimationFrame(ke.value), L.value.push(t), k.value = k.value.map((h, c) => t === c ? {
|
|
153
|
-
...h,
|
|
154
|
-
value: 0
|
|
155
|
-
} : h), P.value = !1) : (P.value = !0, u /= 1.1, k.value = k.value.map((h, c) => t === c ? {
|
|
156
|
-
...h,
|
|
157
|
-
value: u
|
|
158
|
-
} : h), ke.value = requestAnimationFrame(r));
|
|
159
|
-
};
|
|
160
|
-
r();
|
|
161
|
-
}
|
|
162
|
-
se("selectLegend", I.value.map((r) => ({
|
|
163
|
-
name: r.name,
|
|
164
|
-
color: r.color,
|
|
165
|
-
value: r.value
|
|
166
|
-
})));
|
|
167
|
-
}
|
|
168
|
-
const I = b(() => (k.value.forEach((t, a) => {
|
|
169
|
-
if ([null, void 0].includes(t.values))
|
|
170
|
-
return {
|
|
171
|
-
...t,
|
|
172
|
-
values: []
|
|
173
|
-
};
|
|
174
|
-
}), k.value.map((t, a) => ({
|
|
175
|
-
...t,
|
|
176
|
-
seriesIndex: a
|
|
177
|
-
})).filter((t, a) => !L.value.includes(a)))), Ce = b(() => S.dataset.map((t, a) => ({
|
|
178
|
-
name: t.name,
|
|
179
|
-
color: De(t.color) || me.value[a] || D[a] || D[a % D.length],
|
|
180
|
-
value: (t.values || []).reduce((l, u) => l + u, 0),
|
|
181
|
-
shape: "circle"
|
|
182
|
-
})).map((t, a) => ({
|
|
183
|
-
...t,
|
|
184
|
-
proportion: t.value / S.dataset.map((l) => (l.values || []).reduce((u, r) => u + r, 0)).reduce((l, u) => l + u, 0),
|
|
185
|
-
opacity: L.value.includes(a) ? 0.5 : 1,
|
|
186
|
-
segregate: () => _e(a),
|
|
187
|
-
isSegregated: L.value.includes(a)
|
|
188
|
-
}))), Ue = b(() => ({
|
|
189
|
-
cy: "donut-div-legend",
|
|
190
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
191
|
-
color: e.value.style.chart.legend.color,
|
|
192
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
193
|
-
paddingBottom: 12,
|
|
194
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
195
|
-
})), _ = b(() => {
|
|
196
|
-
const t = Math.min(i.value.width / 3, i.value.height / 3);
|
|
197
|
-
return t < 55 ? 55 : t;
|
|
198
|
-
}), A = b(() => al({ series: I.value }, i.value.width / 2, i.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, E.value));
|
|
199
|
-
function B(t) {
|
|
200
|
-
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
201
|
-
}
|
|
202
|
-
function xe(t, a) {
|
|
203
|
-
const l = t.value / je(a);
|
|
204
|
-
return isNaN(l) ? 0 : F(
|
|
205
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
206
|
-
l * 100,
|
|
207
|
-
x({
|
|
208
|
-
v: l * 100,
|
|
209
|
-
s: "%",
|
|
210
|
-
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
211
|
-
}),
|
|
212
|
-
{ datapoint: t }
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
function je(t) {
|
|
216
|
-
return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
|
|
217
|
-
}
|
|
218
|
-
const m = b(() => I.value.map((t) => t.value).reduce((t, a) => t + a, 0)), $e = b(() => m.value / I.value.length), te = v(null), R = v(!1);
|
|
219
|
-
function Ee({ datapoint: t, relativeIndex: a, seriesIndex: l, show: u = !1 }) {
|
|
220
|
-
te.value = { datapoint: t, seriesIndex: l, config: e.value, series: O.value }, ee.value = u, T.value = a;
|
|
221
|
-
let r = "";
|
|
222
|
-
const h = e.value.style.chart.tooltip.customFormat;
|
|
223
|
-
if (R.value = !1, il(h))
|
|
224
|
-
try {
|
|
225
|
-
const c = h({
|
|
226
|
-
seriesIndex: l,
|
|
227
|
-
datapoint: t,
|
|
228
|
-
series: O.value,
|
|
229
|
-
config: e.value
|
|
230
|
-
});
|
|
231
|
-
typeof c == "string" && (le.value = c, R.value = !0);
|
|
232
|
-
} catch {
|
|
233
|
-
console.warn("Custom format cannot be applied."), R.value = !1;
|
|
234
|
-
}
|
|
235
|
-
if (!R.value) {
|
|
236
|
-
if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<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 && (r += `<b>${F(
|
|
237
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
238
|
-
t.value,
|
|
239
|
-
x({
|
|
240
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
241
|
-
v: t.value,
|
|
242
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
243
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
244
|
-
}),
|
|
245
|
-
{
|
|
246
|
-
datapoint: t,
|
|
247
|
-
relativeIndex: a,
|
|
248
|
-
seriesIndex: l
|
|
249
|
-
}
|
|
250
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
251
|
-
const c = F(
|
|
252
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
253
|
-
t.proportion * 100,
|
|
254
|
-
x({
|
|
255
|
-
v: t.proportion * 100,
|
|
256
|
-
s: "%",
|
|
257
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
258
|
-
}),
|
|
259
|
-
{
|
|
260
|
-
datapoint: t,
|
|
261
|
-
relativeIndex: a,
|
|
262
|
-
seriesIndex: l
|
|
263
|
-
}
|
|
264
|
-
);
|
|
265
|
-
e.value.style.chart.tooltip.showValue ? r += `<span>(${c})</span></div>` : r += `<b>${c}</b></div>`;
|
|
266
|
-
}
|
|
267
|
-
e.value.style.chart.comments.showInTooltip && t.comment && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), le.value = `<div>${r}</div>`;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
function ae(t) {
|
|
271
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(T.value) && T.value !== t ? `url(#blur_${$.value})` : "";
|
|
272
|
-
}
|
|
273
|
-
const N = b(() => {
|
|
274
|
-
const t = I.value.map((l) => ({
|
|
275
|
-
name: l.name,
|
|
276
|
-
color: l.color
|
|
277
|
-
})), a = I.value.map((l) => l.value);
|
|
278
|
-
return { head: t, body: a };
|
|
279
|
-
});
|
|
280
|
-
function Se() {
|
|
281
|
-
qe(() => {
|
|
282
|
-
const t = N.value.head.map((u, r) => [[
|
|
283
|
-
u.name
|
|
284
|
-
], [N.value.body[r]], [isNaN(N.value.body[r] / m.value) ? "-" : N.value.body[r] / m.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = vl(a);
|
|
285
|
-
cl({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
const Q = b(() => {
|
|
289
|
-
const t = [
|
|
290
|
-
' <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>',
|
|
291
|
-
x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
292
|
-
"100%"
|
|
293
|
-
], a = N.value.head.map((r, h) => {
|
|
294
|
-
const c = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: N.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
295
|
-
return [
|
|
296
|
-
{
|
|
297
|
-
color: r.color,
|
|
298
|
-
name: r.name
|
|
299
|
-
},
|
|
300
|
-
c,
|
|
301
|
-
isNaN(N.value.body[h] / m.value) ? "-" : (N.value.body[h] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
302
|
-
];
|
|
303
|
-
}), l = {
|
|
304
|
-
th: {
|
|
305
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
306
|
-
color: e.value.table.th.color,
|
|
307
|
-
outline: e.value.table.th.outline
|
|
308
|
-
},
|
|
309
|
-
td: {
|
|
310
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
311
|
-
color: e.value.table.td.color,
|
|
312
|
-
outline: e.value.table.td.outline
|
|
313
|
-
},
|
|
314
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
315
|
-
};
|
|
316
|
-
return {
|
|
317
|
-
colNames: [
|
|
318
|
-
e.value.table.columnNames.series,
|
|
319
|
-
e.value.table.columnNames.value,
|
|
320
|
-
e.value.table.columnNames.percentage
|
|
321
|
-
],
|
|
322
|
-
head: t,
|
|
323
|
-
body: a,
|
|
324
|
-
config: l
|
|
325
|
-
};
|
|
326
|
-
}), Y = v(!1);
|
|
327
|
-
function Re(t) {
|
|
328
|
-
Y.value = t, he.value += 1;
|
|
329
|
-
}
|
|
330
|
-
const Le = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
331
|
-
function Ye(t) {
|
|
332
|
-
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
333
|
-
}
|
|
334
|
-
function Z(t, a) {
|
|
335
|
-
se("selectDatapoint", { datapoint: t, index: a });
|
|
336
|
-
}
|
|
337
|
-
function Fe() {
|
|
338
|
-
p.value.showTable = !p.value.showTable;
|
|
339
|
-
}
|
|
340
|
-
function Te() {
|
|
341
|
-
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
342
|
-
}
|
|
343
|
-
function ze() {
|
|
344
|
-
p.value.showTooltip = !p.value.showTooltip;
|
|
345
|
-
}
|
|
346
|
-
return Be({
|
|
347
|
-
getData: Ge,
|
|
348
|
-
generatePdf: be,
|
|
349
|
-
generateCsv: Se,
|
|
350
|
-
generateImage: ge,
|
|
351
|
-
toggleTable: Fe,
|
|
352
|
-
toggleLabels: Te,
|
|
353
|
-
toggleTooltip: ze
|
|
354
|
-
}), (t, a) => (s(), n("div", {
|
|
355
|
-
ref_key: "donutChart",
|
|
356
|
-
ref: j,
|
|
357
|
-
class: ue(`vue-ui-donut ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
358
|
-
style: z(`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}`),
|
|
359
|
-
id: `donut__${$.value}`
|
|
360
|
-
}, [
|
|
361
|
-
g(t.$slots, "userConfig", {}, void 0, !0),
|
|
362
|
-
e.value.style.chart.title.text ? (s(), n("div", {
|
|
363
|
-
key: 0,
|
|
364
|
-
ref_key: "chartTitle",
|
|
365
|
-
ref: re,
|
|
366
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
367
|
-
}, [
|
|
368
|
-
(s(), V(fl, {
|
|
369
|
-
key: `title_${ie.value}`,
|
|
370
|
-
config: {
|
|
371
|
-
title: {
|
|
372
|
-
cy: "donut-div-title",
|
|
373
|
-
...e.value.style.chart.title
|
|
374
|
-
},
|
|
375
|
-
subtitle: {
|
|
376
|
-
cy: "donut-div-subtitle",
|
|
377
|
-
...e.value.style.chart.title.subtitle
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}, null, 8, ["config"]))
|
|
381
|
-
], 512)) : d("", !0),
|
|
382
|
-
e.value.userOptions.show && U.value ? (s(), V(pl, {
|
|
383
|
-
ref_key: "details",
|
|
384
|
-
ref: Me,
|
|
385
|
-
key: `user_option_${he.value}`,
|
|
386
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
387
|
-
color: e.value.style.chart.color,
|
|
388
|
-
isPrinting: o(ye),
|
|
389
|
-
isImaging: o(pe),
|
|
390
|
-
uid: $.value,
|
|
391
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
392
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
393
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
394
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
395
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
396
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
397
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
398
|
-
isFullscreen: Y.value,
|
|
399
|
-
chartElement: j.value,
|
|
400
|
-
position: e.value.userOptions.position,
|
|
401
|
-
isTooltip: p.value.showTooltip,
|
|
402
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
403
|
-
onToggleFullscreen: Re,
|
|
404
|
-
onGeneratePdf: o(be),
|
|
405
|
-
onGenerateCsv: Se,
|
|
406
|
-
onGenerateImage: o(ge),
|
|
407
|
-
onToggleTable: Fe,
|
|
408
|
-
onToggleLabels: Te,
|
|
409
|
-
onToggleTooltip: ze
|
|
410
|
-
}, Xe({ _: 2 }, [
|
|
411
|
-
t.$slots.optionTooltip ? {
|
|
412
|
-
name: "optionTooltip",
|
|
413
|
-
fn: w(() => [
|
|
414
|
-
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
415
|
-
]),
|
|
416
|
-
key: "0"
|
|
417
|
-
} : void 0,
|
|
418
|
-
t.$slots.optionPdf ? {
|
|
419
|
-
name: "optionPdf",
|
|
420
|
-
fn: w(() => [
|
|
421
|
-
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
422
|
-
]),
|
|
423
|
-
key: "1"
|
|
424
|
-
} : void 0,
|
|
425
|
-
t.$slots.optionCsv ? {
|
|
426
|
-
name: "optionCsv",
|
|
427
|
-
fn: w(() => [
|
|
428
|
-
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
429
|
-
]),
|
|
430
|
-
key: "2"
|
|
431
|
-
} : void 0,
|
|
432
|
-
t.$slots.optionImg ? {
|
|
433
|
-
name: "optionImg",
|
|
434
|
-
fn: w(() => [
|
|
435
|
-
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
436
|
-
]),
|
|
437
|
-
key: "3"
|
|
438
|
-
} : void 0,
|
|
439
|
-
t.$slots.optionTable ? {
|
|
440
|
-
name: "optionTable",
|
|
441
|
-
fn: w(() => [
|
|
442
|
-
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
443
|
-
]),
|
|
444
|
-
key: "4"
|
|
445
|
-
} : void 0,
|
|
446
|
-
t.$slots.optionLabels ? {
|
|
447
|
-
name: "optionLabels",
|
|
448
|
-
fn: w(() => [
|
|
449
|
-
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
450
|
-
]),
|
|
451
|
-
key: "5"
|
|
452
|
-
} : void 0,
|
|
453
|
-
t.$slots.optionFullscreen ? {
|
|
454
|
-
name: "optionFullscreen",
|
|
455
|
-
fn: w(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
456
|
-
g(t.$slots, "optionFullscreen", H(W({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
457
|
-
]),
|
|
458
|
-
key: "6"
|
|
459
|
-
} : void 0
|
|
460
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
461
|
-
U.value ? (s(), n("svg", {
|
|
462
|
-
key: 2,
|
|
463
|
-
xmlns: o(ol),
|
|
464
|
-
class: ue({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
465
|
-
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
466
|
-
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
467
|
-
}, [
|
|
468
|
-
Oe(_l),
|
|
469
|
-
y("defs", null, [
|
|
470
|
-
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
471
|
-
key: 0,
|
|
472
|
-
id: `gradient_${$.value}`
|
|
473
|
-
}, [
|
|
474
|
-
y("stop", {
|
|
475
|
-
offset: "0%",
|
|
476
|
-
"stop-color": o(q)(e.value.style.chart.backgroundColor, 0),
|
|
477
|
-
"stop-opacity": "0"
|
|
478
|
-
}, null, 8, Fl),
|
|
479
|
-
y("stop", {
|
|
480
|
-
offset: `${(1 - E.value / _.value) * 100}%`,
|
|
481
|
-
"stop-color": o(q)("#FFFFFF", 0),
|
|
482
|
-
"stop-opacity": "0"
|
|
483
|
-
}, null, 8, Tl),
|
|
484
|
-
y("stop", {
|
|
485
|
-
offset: `${(1 - E.value / _.value / 2) * 100}%`,
|
|
486
|
-
"stop-color": o(q)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
487
|
-
}, null, 8, zl),
|
|
488
|
-
y("stop", {
|
|
489
|
-
offset: "100%",
|
|
490
|
-
"stop-color": o(q)(e.value.style.chart.backgroundColor, 0),
|
|
491
|
-
"stop-opacity": "0"
|
|
492
|
-
}, null, 8, Nl)
|
|
493
|
-
], 8, Ll)) : d("", !0)
|
|
494
|
-
]),
|
|
495
|
-
y("defs", null, [
|
|
496
|
-
y("filter", {
|
|
497
|
-
id: `blur_${$.value}`,
|
|
498
|
-
x: "-50%",
|
|
499
|
-
y: "-50%",
|
|
500
|
-
width: "200%",
|
|
501
|
-
height: "200%"
|
|
502
|
-
}, [
|
|
503
|
-
y("feGaussianBlur", {
|
|
504
|
-
in: "SourceGraphic",
|
|
505
|
-
stdDeviation: 2,
|
|
506
|
-
id: `blur_std_${$.value}`
|
|
507
|
-
}, null, 8, Pl),
|
|
508
|
-
Al
|
|
509
|
-
], 8, Ol),
|
|
510
|
-
y("filter", {
|
|
511
|
-
id: `shadow_${$.value}`,
|
|
512
|
-
"color-interpolation-filters": "sRGB"
|
|
513
|
-
}, [
|
|
514
|
-
y("feDropShadow", {
|
|
515
|
-
dx: "0",
|
|
516
|
-
dy: "0",
|
|
517
|
-
stdDeviation: "10",
|
|
518
|
-
"flood-opacity": "0.5",
|
|
519
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
520
|
-
}, null, 8, Il)
|
|
521
|
-
], 8, Dl)
|
|
522
|
-
]),
|
|
523
|
-
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("g", null, [
|
|
524
|
-
B(l) && p.value.dataLabels.show ? (s(), n("path", {
|
|
525
|
-
key: 0,
|
|
526
|
-
d: o(ul)(l, { x: i.value.width / 2, y: i.value.height / 2 }, 16, 16, !1, !1, E.value),
|
|
527
|
-
stroke: l.color,
|
|
528
|
-
"stroke-width": "1",
|
|
529
|
-
"stroke-linecap": "round",
|
|
530
|
-
"stroke-linejoin": "round",
|
|
531
|
-
fill: "none",
|
|
532
|
-
filter: ae(u)
|
|
533
|
-
}, null, 8, Bl)) : d("", !0)
|
|
534
|
-
]))), 256)),
|
|
535
|
-
y("circle", {
|
|
536
|
-
cx: i.value.width / 2,
|
|
537
|
-
cy: i.value.height / 2,
|
|
538
|
-
r: _.value <= 0 ? 10 : _.value,
|
|
539
|
-
fill: e.value.style.chart.backgroundColor,
|
|
540
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${$.value})` : ""
|
|
541
|
-
}, null, 8, Vl),
|
|
542
|
-
m.value ? (s(), n(M, { key: 0 }, [
|
|
543
|
-
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("path", {
|
|
544
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
545
|
-
d: l.arcSlice,
|
|
546
|
-
fill: "#FFFFFF"
|
|
547
|
-
}, null, 8, Ml))), 256)),
|
|
548
|
-
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("path", {
|
|
549
|
-
class: "vue-ui-donut-arc-path",
|
|
550
|
-
d: l.arcSlice,
|
|
551
|
-
fill: o(q)(l.color, 80),
|
|
552
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
553
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
554
|
-
filter: ae(u)
|
|
555
|
-
}, null, 8, Gl))), 256))
|
|
556
|
-
], 64)) : (s(), n("circle", {
|
|
557
|
-
key: 1,
|
|
558
|
-
cx: i.value.width / 2,
|
|
559
|
-
cy: i.value.height / 2,
|
|
560
|
-
r: _.value <= 0 ? 10 : _.value,
|
|
561
|
-
fill: e.value.style.chart.backgroundColor,
|
|
562
|
-
stroke: o(sl)(e.value.style.chart.background)
|
|
563
|
-
}, null, 8, Ul)),
|
|
564
|
-
e.value.style.chart.useGradient ? (s(), n("circle", {
|
|
565
|
-
key: 2,
|
|
566
|
-
cx: i.value.width / 2,
|
|
567
|
-
cy: i.value.height / 2,
|
|
568
|
-
r: (
|
|
569
|
-
/* This might require adjustments */
|
|
570
|
-
_.value <= 0 ? 10 : _.value
|
|
571
|
-
),
|
|
572
|
-
fill: `url(#gradient_${$.value})`
|
|
573
|
-
}, null, 8, jl)) : d("", !0),
|
|
574
|
-
m.value ? (s(!0), n(M, { key: 3 }, X(A.value, (l, u) => (s(), n("path", {
|
|
575
|
-
"data-cy-donut-trap": "",
|
|
576
|
-
d: l.arcSlice,
|
|
577
|
-
fill: T.value === u ? "rgba(0,0,0,0.1)" : "transparent",
|
|
578
|
-
onMouseenter: (r) => Ee({
|
|
579
|
-
datapoint: l,
|
|
580
|
-
relativeIndex: u,
|
|
581
|
-
seriesIndex: l.seriesIndex,
|
|
582
|
-
show: !0
|
|
583
|
-
}),
|
|
584
|
-
onMouseleave: a[0] || (a[0] = (r) => {
|
|
585
|
-
ee.value = !1, T.value = null;
|
|
586
|
-
}),
|
|
587
|
-
onClick: (r) => Z(l, u)
|
|
588
|
-
}, null, 40, El))), 256)) : d("", !0),
|
|
589
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
590
|
-
key: 4,
|
|
591
|
-
"text-anchor": "middle",
|
|
592
|
-
x: i.value.width / 2,
|
|
593
|
-
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,
|
|
594
|
-
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
595
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
596
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
597
|
-
}, C(e.value.style.chart.layout.labels.hollow.total.text), 13, Rl)) : d("", !0),
|
|
598
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
599
|
-
key: 5,
|
|
600
|
-
"text-anchor": "middle",
|
|
601
|
-
x: i.value.width / 2,
|
|
602
|
-
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,
|
|
603
|
-
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
604
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
605
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
606
|
-
}, C(o(F)(
|
|
607
|
-
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
608
|
-
m.value,
|
|
609
|
-
o(x)({
|
|
610
|
-
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
611
|
-
v: m.value,
|
|
612
|
-
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
613
|
-
})
|
|
614
|
-
)), 13, Yl)) : d("", !0),
|
|
615
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
616
|
-
key: 6,
|
|
617
|
-
"text-anchor": "middle",
|
|
618
|
-
x: i.value.width / 2,
|
|
619
|
-
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,
|
|
620
|
-
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
621
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
622
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
623
|
-
}, C(e.value.style.chart.layout.labels.hollow.average.text), 13, Hl)) : d("", !0),
|
|
624
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
625
|
-
key: 7,
|
|
626
|
-
"text-anchor": "middle",
|
|
627
|
-
x: i.value.width / 2,
|
|
628
|
-
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,
|
|
629
|
-
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
630
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
631
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
632
|
-
}, C(P.value ? "--" : o(F)(
|
|
633
|
-
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
634
|
-
$e.value,
|
|
635
|
-
o(x)({
|
|
636
|
-
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
637
|
-
v: $e.value,
|
|
638
|
-
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
639
|
-
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
640
|
-
})
|
|
641
|
-
)), 13, Wl)) : d("", !0),
|
|
642
|
-
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("g", {
|
|
643
|
-
filter: ae(u),
|
|
644
|
-
class: ue({ animated: e.value.useCssAnimation })
|
|
645
|
-
}, [
|
|
646
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", ql, [
|
|
647
|
-
(s(), n("foreignObject", {
|
|
648
|
-
x: o(f)(l, !0).anchor === "end" ? o(f)(l).x - 120 : o(f)(l, !0).anchor === "middle" ? o(f)(l).x - 60 : o(f)(l).x,
|
|
649
|
-
y: o(J)(l) - (Le.value ? 20 : 0),
|
|
650
|
-
width: "120",
|
|
651
|
-
height: "60",
|
|
652
|
-
style: { overflow: "visible" }
|
|
653
|
-
}, [
|
|
654
|
-
y("div", null, [
|
|
655
|
-
g(t.$slots, "dataLabel", H(W({
|
|
656
|
-
datapoint: l,
|
|
657
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(T.value) || T.value === u,
|
|
658
|
-
isSafari: Le.value,
|
|
659
|
-
isVisible: B(l) && p.value.dataLabels.show,
|
|
660
|
-
textAlign: o(f)(l, !0, 16, !0).anchor,
|
|
661
|
-
flexAlign: o(f)(l, !0, 16).anchor,
|
|
662
|
-
percentage: xe(l, A.value)
|
|
663
|
-
})), void 0, !0)
|
|
664
|
-
])
|
|
665
|
-
], 8, Jl))
|
|
666
|
-
])) : (s(), n("g", Kl, [
|
|
667
|
-
B(l) && p.value.dataLabels.show ? (s(), n("circle", {
|
|
668
|
-
key: 0,
|
|
669
|
-
cx: o(f)(l).x,
|
|
670
|
-
cy: o(J)(l) - 3.5,
|
|
671
|
-
fill: l.color,
|
|
672
|
-
r: 3,
|
|
673
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(T.value) || T.value === u ? "" : `url(#blur_${$.value})`,
|
|
674
|
-
onClick: (r) => Z(l, u)
|
|
675
|
-
}, null, 8, Ql)) : d("", !0),
|
|
676
|
-
B(l) && p.value.dataLabels.show ? (s(), n("text", {
|
|
677
|
-
key: 1,
|
|
678
|
-
"text-anchor": o(f)(l, !0, 12).anchor,
|
|
679
|
-
x: o(f)(l, !0, 12).x,
|
|
680
|
-
y: o(J)(l),
|
|
681
|
-
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
682
|
-
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
683
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
684
|
-
onClick: (r) => Z(l, u)
|
|
685
|
-
}, C(xe(l, A.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${o(F)(
|
|
686
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
687
|
-
l.value,
|
|
688
|
-
o(x)({
|
|
689
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
690
|
-
v: l.value,
|
|
691
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
692
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
693
|
-
}),
|
|
694
|
-
{ datapoint: l }
|
|
695
|
-
)})` : ""), 13, Zl)) : d("", !0),
|
|
696
|
-
B(l) && p.value.dataLabels.show ? (s(), n("text", {
|
|
697
|
-
key: 2,
|
|
698
|
-
"text-anchor": o(f)(l).anchor,
|
|
699
|
-
x: o(f)(l, !0, 12).x,
|
|
700
|
-
y: o(J)(l) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
701
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
702
|
-
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
703
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
704
|
-
onClick: (r) => Z(l, u)
|
|
705
|
-
}, C(l.name), 13, et)) : d("", !0)
|
|
706
|
-
])),
|
|
707
|
-
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), n("g", lt, [
|
|
708
|
-
B(l) ? (s(), n("foreignObject", {
|
|
709
|
-
key: 0,
|
|
710
|
-
x: e.value.style.chart.comments.offsetX + (o(f)(l, !0).anchor === "end" ? o(f)(l).x - e.value.style.chart.comments.width : o(f)(l, !0).anchor === "middle" ? o(f)(l).x - e.value.style.chart.comments.width / 2 : o(f)(l).x),
|
|
711
|
-
y: o(J)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
712
|
-
width: e.value.style.chart.comments.width,
|
|
713
|
-
height: "200",
|
|
714
|
-
style: { overflow: "visible", "pointer-events": "none" }
|
|
715
|
-
}, [
|
|
716
|
-
y("div", null, [
|
|
717
|
-
g(t.$slots, "plot-comment", {
|
|
718
|
-
plot: { ...l, textAlign: o(f)(l, !0, 16, !0).anchor, flexAlign: o(f)(l, !0, 16).anchor }
|
|
719
|
-
}, void 0, !0)
|
|
720
|
-
])
|
|
721
|
-
], 8, tt)) : d("", !0)
|
|
722
|
-
])) : d("", !0)
|
|
723
|
-
], 10, Xl))), 256)),
|
|
724
|
-
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
725
|
-
], 14, Sl)) : d("", !0),
|
|
726
|
-
t.$slots.watermark ? (s(), n("div", at, [
|
|
727
|
-
g(t.$slots, "watermark", H(W({ isPrinting: o(ye) || o(pe) })), void 0, !0)
|
|
728
|
-
])) : d("", !0),
|
|
729
|
-
U.value ? d("", !0) : (s(), V(wl, {
|
|
730
|
-
key: 4,
|
|
731
|
-
config: {
|
|
732
|
-
type: "donut",
|
|
733
|
-
style: {
|
|
734
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
735
|
-
donut: {
|
|
736
|
-
color: "#CCCCCC",
|
|
737
|
-
strokeWidth: E.value * 0.8
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
}, null, 8, ["config"])),
|
|
742
|
-
y("div", {
|
|
743
|
-
ref_key: "chartLegend",
|
|
744
|
-
ref: ne
|
|
745
|
-
}, [
|
|
746
|
-
e.value.style.chart.legend.show ? (s(), V(ml, {
|
|
747
|
-
key: `legend_${ce.value}`,
|
|
748
|
-
legendSet: Ce.value,
|
|
749
|
-
config: Ue.value,
|
|
750
|
-
onClickMarker: a[1] || (a[1] = ({ i: l }) => _e(l))
|
|
751
|
-
}, {
|
|
752
|
-
item: w(({ legend: l, index: u }) => [
|
|
753
|
-
y("div", {
|
|
754
|
-
onClick: (r) => l.segregate(),
|
|
755
|
-
style: z(`opacity:${L.value.includes(u) ? 0.5 : 1}`)
|
|
756
|
-
}, [
|
|
757
|
-
Pe(C(l.name) + ": " + C(o(F)(
|
|
758
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
759
|
-
l.value,
|
|
760
|
-
o(x)({
|
|
761
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
762
|
-
v: l.value,
|
|
763
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
764
|
-
r: e.value.style.chart.legend.roundingValue
|
|
765
|
-
}),
|
|
766
|
-
{
|
|
767
|
-
datapoint: l,
|
|
768
|
-
index: u
|
|
769
|
-
}
|
|
770
|
-
)) + " ", 1),
|
|
771
|
-
L.value.includes(u) ? (s(), n("span", st, " ( " + C(Ye(l.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ut, " (" + C(isNaN(l.value / m.value) ? "-" : o(F)(
|
|
772
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
773
|
-
P.value ? l.proportion * 100 : l.value / m.value * 100,
|
|
774
|
-
o(x)({
|
|
775
|
-
v: P.value ? l.proportion * 100 : l.value / m.value * 100,
|
|
776
|
-
s: "%",
|
|
777
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
778
|
-
})
|
|
779
|
-
)) + ") ", 1))
|
|
780
|
-
], 12, ot)
|
|
781
|
-
]),
|
|
782
|
-
_: 1
|
|
783
|
-
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
784
|
-
g(t.$slots, "legend", { legend: Ce.value }, void 0, !0)
|
|
785
|
-
], 512),
|
|
786
|
-
Oe(gl, {
|
|
787
|
-
show: p.value.showTooltip && ee.value,
|
|
788
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
789
|
-
color: e.value.style.chart.tooltip.color,
|
|
790
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
791
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
792
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
793
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
794
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
795
|
-
position: e.value.style.chart.tooltip.position,
|
|
796
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
797
|
-
parent: j.value,
|
|
798
|
-
content: le.value,
|
|
799
|
-
isCustom: R.value
|
|
800
|
-
}, {
|
|
801
|
-
"tooltip-before": w(() => [
|
|
802
|
-
g(t.$slots, "tooltip-before", H(W({ ...te.value })), void 0, !0)
|
|
803
|
-
]),
|
|
804
|
-
"tooltip-after": w(() => [
|
|
805
|
-
g(t.$slots, "tooltip-after", H(W({ ...te.value })), void 0, !0)
|
|
806
|
-
]),
|
|
807
|
-
_: 3
|
|
808
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
809
|
-
U.value ? (s(), V(kl, {
|
|
810
|
-
key: 5,
|
|
811
|
-
hideDetails: "",
|
|
812
|
-
config: {
|
|
813
|
-
open: p.value.showTable,
|
|
814
|
-
maxHeight: 1e4,
|
|
815
|
-
body: {
|
|
816
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
817
|
-
color: e.value.style.chart.color
|
|
818
|
-
},
|
|
819
|
-
head: {
|
|
820
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
821
|
-
color: e.value.style.chart.color
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
}, {
|
|
825
|
-
content: w(() => [
|
|
826
|
-
(s(), V(bl, {
|
|
827
|
-
key: `table_${ve.value}`,
|
|
828
|
-
colNames: Q.value.colNames,
|
|
829
|
-
head: Q.value.head,
|
|
830
|
-
body: Q.value.body,
|
|
831
|
-
config: Q.value.config,
|
|
832
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
833
|
-
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
834
|
-
}, {
|
|
835
|
-
th: w(({ th: l }) => [
|
|
836
|
-
y("div", {
|
|
837
|
-
innerHTML: l,
|
|
838
|
-
style: { display: "flex", "align-items": "center" }
|
|
839
|
-
}, null, 8, rt)
|
|
840
|
-
]),
|
|
841
|
-
td: w(({ td: l }) => [
|
|
842
|
-
Pe(C(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? o(F)(
|
|
843
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
844
|
-
l,
|
|
845
|
-
o(x)({
|
|
846
|
-
v: l,
|
|
847
|
-
s: "%",
|
|
848
|
-
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
849
|
-
})
|
|
850
|
-
) : l : o(F)(
|
|
851
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
852
|
-
l,
|
|
853
|
-
o(x)({
|
|
854
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
855
|
-
v: l,
|
|
856
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
857
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
858
|
-
})
|
|
859
|
-
)), 1)
|
|
860
|
-
]),
|
|
861
|
-
_: 1
|
|
862
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
863
|
-
]),
|
|
864
|
-
_: 1
|
|
865
|
-
}, 8, ["config"])) : d("", !0)
|
|
866
|
-
], 14, $l));
|
|
867
|
-
}
|
|
868
|
-
}, _t = /* @__PURE__ */ Cl(nt, [["__scopeId", "data-v-98fd948d"]]);
|
|
869
|
-
export {
|
|
870
|
-
_t as default
|
|
871
|
-
};
|