vue-data-ui 2.3.74 → 2.3.76
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-DK6F5Fq3.cjs → Arrow-D7M4-bW7.cjs} +1 -1
- package/dist/{Arrow-CYCrAySW.js → Arrow-DY9RKUmG.js} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon-DB7Apwv_.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-rwm-10Hu.js} +1 -1
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-CsNozyz7.cjs} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-e2fnfjXV.js} +2 -2
- package/dist/{Legend-Cj7T-DqJ.js → Legend-5cQ0xZjK.js} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-DgFd-O0m.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-CiTElr_0.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-yPECDLiP.cjs} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-DaZgCKV7.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-DwBBu3kB.js} +2 -2
- package/dist/{Title-D5cATWsL.cjs → Title-3EduyW4p.cjs} +1 -1
- package/dist/{Title-DZjnxQdN.js → Title-gUz6GDA3.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DScSrYXJ.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-DfSM1mNP.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-BTgtr0F8.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-CaV1s-yZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-CisbRRo_.cjs} +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-tWCzZrLx.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-DzTaA1eh.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-rvJyT65A.js} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-BGkWRPUY.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-BO89gTtq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-CcTMIHiB.js} +499 -486
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +19 -0
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-7e4Myhcg.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-CpzGQ63y.js} +3 -3
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-D71ZLkVV.js} +182 -169
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-B8Iu6cYt.js} +1 -1
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-BKQrweqm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Bx4QVkY0.js} +295 -279
- package/dist/vue-ui-candlestick-DAc1FQ-i.cjs +2 -0
- package/dist/vue-ui-carousel-table-uFRqkghO.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-xuQG6bcH.js} +146 -129
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Bo6rDcU7.js} +215 -204
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +6 -0
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-BQbeuW-k.cjs} +1 -1
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-C0KOqEOq.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-0Hsjx-bO.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BT71xS7P.js} +2 -2
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-BRqpKYvD.js} +2 -2
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-C2ReH6w0.cjs} +1 -1
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-NQW-3prf.js} +376 -362
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-jbXQQGTc.js} +270 -255
- package/dist/vue-ui-donut-v81suIOX.cjs +1 -0
- package/dist/vue-ui-dumbbell-DXQSg6wa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-Dyz8xdtC.js} +232 -213
- package/dist/vue-ui-flow-BL3JWW1m.js +481 -0
- package/dist/vue-ui-flow-UqSNwH9d.cjs +1 -0
- package/dist/vue-ui-galaxy-DTQWGvRH.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-Dx9nsOuM.js} +175 -162
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +1 -0
- package/dist/vue-ui-gauge-CLaKGi0-.js +500 -0
- package/dist/vue-ui-gizmo-Kitfqu0J.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-of-4s5HG.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BIzjOMXO.js} +157 -143
- package/dist/vue-ui-heatmap-DUw2350O.cjs +1 -0
- package/dist/vue-ui-kpi-By3YPwgo.js +98 -0
- package/dist/vue-ui-kpi-DyL2Hcz-.cjs +1 -0
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-C048-8Kd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-DnK3V2z2.js} +2 -2
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-BfhbIqa5.js} +177 -167
- package/dist/vue-ui-molecule-D-ahly6R.cjs +1 -0
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-DXxEKr3x.js} +172 -161
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BdUdHFd-.js} +377 -364
- package/dist/vue-ui-nested-donuts-C7qM_FRw.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-D0vF5jBt.js} +191 -177
- package/dist/vue-ui-onion-DX3gofXZ.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-CTZY-pY8.js} +298 -284
- package/dist/vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs +8 -0
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-ByY8GP3y.js} +347 -334
- package/dist/vue-ui-quadrant-CgApzie6.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-DTxJ__7j.js} +483 -469
- package/dist/vue-ui-quick-chart-DWZEgUJF.cjs +15 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-5UBmAU6W.js} +202 -189
- package/dist/vue-ui-radar-DEED0rTz.cjs +1 -0
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-Ce_Ewqtl.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-Dr6jquxh.js} +2 -2
- package/dist/vue-ui-relation-circle-BU8i2miI.js +322 -0
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +1 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-Ctl3Jywh.js} +203 -189
- package/dist/vue-ui-rings-OQ8a1Ruw.cjs +2 -0
- package/dist/vue-ui-scatter-B8StSjt8.cjs +1 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-BwJ_koWT.js} +284 -270
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-BS3L5vhN.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-bAVk3EPl.cjs} +1 -1
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-CMQzFTs9.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-CvFX_ExX.js} +2 -2
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CGYZpNt9.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-sF8QIso1.cjs} +1 -1
- package/dist/vue-ui-spark-trend-B4XSSKl9.js +263 -0
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BbsJGDMZ.js} +95 -87
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BKyQoI7C.cjs +1 -0
- package/dist/vue-ui-sparkgauge-D4w_i_QJ.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-CYybrW-6.js} +79 -68
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +1 -0
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DjN1SVdO.js} +142 -123
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-BLMhJxaN.js} +120 -104
- package/dist/vue-ui-sparkstackbar-BZ2bESBi.cjs +1 -0
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-BTKOHUYc.js} +235 -222
- package/dist/vue-ui-stackbar-DRHaJFR8.cjs +6 -0
- package/dist/vue-ui-strip-plot-DxQxFbWg.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-o6GTsGAT.js} +246 -232
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-BFIj1Rgh.cjs} +1 -1
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-CnquiTpr.js} +1 -1
- package/dist/vue-ui-table-heatmap-CCGK12Fa.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CZRIwv-Q.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-B3zEeq6Z.js} +151 -138
- package/dist/vue-ui-table-sparkline-DYmgfHz4.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BopiohUh.js} +116 -104
- package/dist/vue-ui-thermometer-CzPRBt6c.cjs +1 -0
- package/dist/vue-ui-timer-Bonw69Lt.cjs +64 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-C7WkW8hK.js} +191 -176
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BurRtFv4.js} +115 -103
- package/dist/vue-ui-tiremarks-DkIGfq8t.cjs +1 -0
- package/dist/vue-ui-treemap-CalhJmnp.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-DWy4voIr.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-CJW1YhtY.js} +314 -299
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-DB7X6nTS.js} +285 -265
- package/dist/vue-ui-waffle-faQMBYNx.cjs +1 -0
- package/dist/vue-ui-wheel-BzjbGP6a.cjs +1 -0
- package/dist/vue-ui-wheel-CryKap2E.js +255 -0
- package/dist/vue-ui-word-cloud-COqUkvei.js +512 -0
- package/dist/vue-ui-word-cloud-DJN9I4q4.cjs +1 -0
- package/dist/vue-ui-xy-BmA0tspd.cjs +3 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-b1Z_HPsx.js} +300 -274
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-BgbLnY5B.js} +345 -327
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +9 -0
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
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
|
|
1
|
+
import { computed as k, ref as d, watch as Fe, onMounted as Xe, onBeforeUnmount as He, openBlock as s, createElementBlock as n, normalizeClass as P, normalizeStyle as se, createBlock as O, createCommentVNode as y, unref as r, createSlots as We, 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, F as Ie, d as ot, m as De, f as C, X as st, H as ut, k as V, n as ue, i as E, x as ze, y as nt, q as rt, r as it } from "./index-CaV1s-yZ.js";
|
|
3
|
+
import { t as dt, u as ct } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as vt } from "./Title-gUz6GDA3.js";
|
|
5
|
+
import { u as ht, U as ft } from "./usePrinter-rvJyT65A.js";
|
|
6
|
+
import { D as yt } from "./DataTable-e2fnfjXV.js";
|
|
7
|
+
import { _ as pt } from "./Tooltip-DfSM1mNP.js";
|
|
8
|
+
import { L as bt } from "./Legend-5cQ0xZjK.js";
|
|
9
|
+
import gt from "./vue-ui-skeleton-CvFX_ExX.js";
|
|
10
|
+
import mt from "./vue-ui-accordion-CpzGQ63y.js";
|
|
11
|
+
import { u as Pe } from "./useNestedProp-tWCzZrLx.js";
|
|
12
|
+
import { _ as wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const ne = (M) => (Ke("data-v-7e1c384d"), M = M(), Qe(), M), xt = ["id"], _t = ["xmlns", "viewBox"], kt = ["id", "fr"], $t = /* @__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)), Lt = ["offset", "stop-opacity"], Ct = /* @__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)), St = ["id"], Nt = ["id"], Tt = /* @__PURE__ */ ne(() => /* @__PURE__ */ b("feColorMatrix", {
|
|
22
22
|
type: "saturate",
|
|
23
23
|
values: "0"
|
|
24
|
-
}, null, -1)),
|
|
24
|
+
}, null, -1)), Ft = ["id"], It = ["flood-color"], Dt = ["cx", "cy", "r", "fill", "filter"], zt = ["d", "fill", "stroke", "stroke-width", "filter"], Pt = { key: 0 }, Ot = ["d", "fill"], At = { key: 1 }, Vt = ["x", "y", "font-size", "font-weight", "fill"], Mt = { key: 2 }, Bt = ["filter"], Ut = ["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"], Gt = ["d", "fill", "onMouseenter", "onClick"], Yt = {
|
|
25
25
|
key: 3,
|
|
26
26
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
27
|
+
}, Xt = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "vue-ui-nested-donuts-legend-title"
|
|
30
|
-
},
|
|
30
|
+
}, Ht = ["onClick"], Wt = ["innerHTML"], qt = {
|
|
31
31
|
__name: "vue-ui-nested-donuts",
|
|
32
32
|
props: {
|
|
33
33
|
config: {
|
|
@@ -44,243 +44,253 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectLegend", "selectDatapoint"],
|
|
47
|
-
setup(
|
|
48
|
-
const
|
|
49
|
-
function
|
|
50
|
-
|
|
47
|
+
setup(M, { expose: Oe, emit: re }) {
|
|
48
|
+
const I = M, { vue_ui_nested_donuts: Ae } = Ze(), G = 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
|
+
function Me(t) {
|
|
50
|
+
U.value = t, ie.value += 1;
|
|
51
51
|
}
|
|
52
|
-
const e =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
const e = k({
|
|
53
|
+
get: () => fe(),
|
|
54
|
+
set: (t) => t
|
|
55
|
+
});
|
|
56
|
+
function fe() {
|
|
57
|
+
const t = Pe({
|
|
58
|
+
userConfig: I.config,
|
|
59
|
+
defaultConfig: Ae
|
|
56
60
|
});
|
|
57
61
|
return t.theme ? {
|
|
58
|
-
...
|
|
59
|
-
userConfig:
|
|
62
|
+
...Pe({
|
|
63
|
+
userConfig: et.vue_ui_nested_donuts[t.theme] || I.config,
|
|
60
64
|
defaultConfig: t
|
|
61
65
|
}),
|
|
62
|
-
customPalette:
|
|
66
|
+
customPalette: tt[t.theme] || Q
|
|
63
67
|
} : t;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
}
|
|
69
|
+
Fe(() => I.config, (t) => {
|
|
70
|
+
e.value = fe(), ye(), ce.value += 1, ve.value += 1, he.value += 1;
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
const Y = d(null);
|
|
73
|
+
Xe(() => {
|
|
74
|
+
ye();
|
|
75
|
+
});
|
|
76
|
+
function ye() {
|
|
77
|
+
if (lt(I.dataset) && A({
|
|
67
78
|
componentName: "VueUiNestedDonuts",
|
|
68
79
|
type: "dataset"
|
|
69
80
|
}), e.value.responsive) {
|
|
70
|
-
const t =
|
|
71
|
-
const { width:
|
|
72
|
-
chart:
|
|
73
|
-
title: e.value.style.chart.title.text ?
|
|
81
|
+
const t = dt(() => {
|
|
82
|
+
const { width: u, height: a } = ct({
|
|
83
|
+
chart: B.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? de.value : null,
|
|
74
85
|
legend: e.value.style.chart.legend.show ? ee.value : null
|
|
75
86
|
});
|
|
76
|
-
v.value.width =
|
|
87
|
+
v.value.width = u, v.value.height = a;
|
|
77
88
|
});
|
|
78
|
-
|
|
89
|
+
Y.value = new ResizeObserver(t), Y.value.observe(B.value.parentNode);
|
|
79
90
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
91
|
+
}
|
|
92
|
+
He(() => {
|
|
93
|
+
Y.value && Y.value.disconnect();
|
|
82
94
|
});
|
|
83
|
-
const { isPrinting:
|
|
84
|
-
elementId: `nested_donuts_${
|
|
95
|
+
const { isPrinting: pe, isImaging: be, generatePdf: ge, generateImage: me } = ht({
|
|
96
|
+
elementId: `nested_donuts_${g.value}`,
|
|
85
97
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
86
|
-
}),
|
|
98
|
+
}), Be = k(() => at(e.value.customPalette)), x = d({
|
|
87
99
|
dataLabels: {
|
|
88
100
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
89
101
|
},
|
|
90
102
|
showTable: e.value.table.show,
|
|
91
103
|
showTooltip: e.value.style.chart.tooltip.show
|
|
92
|
-
}), v =
|
|
104
|
+
}), v = d({
|
|
93
105
|
height: 512,
|
|
94
106
|
width: 512
|
|
95
107
|
});
|
|
96
|
-
function
|
|
97
|
-
|
|
108
|
+
function Ue({ datapoint: t, index: u }) {
|
|
109
|
+
re("selectDatapoint", { datapoint: t, index: u });
|
|
98
110
|
}
|
|
99
|
-
const f =
|
|
100
|
-
[null, void 0].includes(t.name) &&
|
|
111
|
+
const f = d([]), S = k(() => (I.dataset.forEach((t, u) => {
|
|
112
|
+
[null, void 0].includes(t.name) && A({
|
|
101
113
|
componentName: "VueUiNestedDonuts",
|
|
102
114
|
type: "datasetSerieAttribute",
|
|
103
115
|
property: "name",
|
|
104
|
-
index:
|
|
105
|
-
}), [null, void 0].includes(t.series) ?
|
|
116
|
+
index: u
|
|
117
|
+
}), [null, void 0].includes(t.series) ? A({
|
|
106
118
|
componentName: "VueUiNestedDonuts",
|
|
107
119
|
type: "datasetSerieAttribute",
|
|
108
120
|
property: "series",
|
|
109
|
-
index:
|
|
110
|
-
}) : t.series.length === 0 ?
|
|
121
|
+
index: u
|
|
122
|
+
}) : t.series.length === 0 ? A({
|
|
111
123
|
componentName: "VueUiNestedDonuts",
|
|
112
124
|
type: "datasetAttributeEmpty",
|
|
113
|
-
property: `series at index ${
|
|
114
|
-
}) : t.series.forEach((
|
|
115
|
-
[null, void 0].includes(
|
|
125
|
+
property: `series at index ${u}`
|
|
126
|
+
}) : t.series.forEach((a, o) => {
|
|
127
|
+
[null, void 0].includes(a.name) && A({
|
|
116
128
|
componentName: "VueUiNestedDonuts",
|
|
117
129
|
type: "datasetSerieAttribute",
|
|
118
130
|
property: "name",
|
|
119
|
-
index:
|
|
131
|
+
index: o,
|
|
120
132
|
key: "serie"
|
|
121
|
-
}), [null, void 0].includes(
|
|
133
|
+
}), [null, void 0].includes(a.values) && A({
|
|
122
134
|
componentName: "VueUiNestedDonuts",
|
|
123
135
|
type: "datasetSerieAttribute",
|
|
124
136
|
property: "values",
|
|
125
|
-
index:
|
|
137
|
+
index: o,
|
|
126
138
|
key: "serie"
|
|
127
139
|
});
|
|
128
140
|
});
|
|
129
|
-
}),
|
|
141
|
+
}), I.dataset.map((t, u) => ({
|
|
130
142
|
...t,
|
|
131
|
-
total: t.series.filter((
|
|
132
|
-
datasetIndex:
|
|
133
|
-
id: `${
|
|
134
|
-
series: t.series.map((
|
|
135
|
-
name:
|
|
143
|
+
total: t.series.filter((a) => !f.value.includes(a.id)).map((a) => Ie(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
|
|
144
|
+
datasetIndex: u,
|
|
145
|
+
id: `${g.value}_${u}`,
|
|
146
|
+
series: t.series.map((a, o) => ({
|
|
147
|
+
name: a.name,
|
|
136
148
|
arcOf: t.name,
|
|
137
|
-
arcOfId: `${
|
|
138
|
-
id: `${
|
|
139
|
-
seriesIndex:
|
|
140
|
-
datasetIndex:
|
|
141
|
-
color:
|
|
142
|
-
value:
|
|
143
|
-
absoluteValues:
|
|
149
|
+
arcOfId: `${g.value}_${u}`,
|
|
150
|
+
id: `${g.value}_${u}_${o}`,
|
|
151
|
+
seriesIndex: o,
|
|
152
|
+
datasetIndex: u,
|
|
153
|
+
color: ot(a.color) || Be.value[o] || Q[o] || Q[o % Q.length],
|
|
154
|
+
value: Ie(a.values).reduce((l, i) => l + i, 0),
|
|
155
|
+
absoluteValues: a.values || []
|
|
144
156
|
}))
|
|
145
|
-
}))))
|
|
146
|
-
|
|
147
|
-
const S = L(() => Math.min(v.value.height, v.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), be = L(() => [...N.value].map((t, s) => {
|
|
148
|
-
const l = t.series.filter((a) => !f.value.includes(a.id)).map((a) => a.value).reduce((a, o) => a + o, 0);
|
|
157
|
+
})))), N = k(() => Math.min(v.value.height, v.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), we = k(() => [...S.value].map((t, u) => {
|
|
158
|
+
const a = t.series.filter((o) => !f.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
149
159
|
return {
|
|
150
160
|
...t,
|
|
151
|
-
total:
|
|
152
|
-
series: t.series.filter((
|
|
153
|
-
...
|
|
154
|
-
proportion:
|
|
161
|
+
total: a,
|
|
162
|
+
series: t.series.filter((o) => !f.value.includes(o.id)).map((o) => ({
|
|
163
|
+
...o,
|
|
164
|
+
proportion: o.value / a
|
|
155
165
|
}))
|
|
156
166
|
};
|
|
157
167
|
}));
|
|
158
|
-
function
|
|
159
|
-
let
|
|
160
|
-
for (let
|
|
161
|
-
|
|
162
|
-
return
|
|
168
|
+
function Re(t, u, a) {
|
|
169
|
+
let o = 0;
|
|
170
|
+
for (let l = 0; l < t.length; l += 1)
|
|
171
|
+
a.includes(t[l]) && (o += 1);
|
|
172
|
+
return o < u;
|
|
163
173
|
}
|
|
164
|
-
const h =
|
|
165
|
-
|
|
166
|
-
const
|
|
174
|
+
const h = d(we.value);
|
|
175
|
+
Fe(() => we.value, (t) => h.value = t);
|
|
176
|
+
const xe = d(null), _e = d(null);
|
|
167
177
|
function te(t) {
|
|
168
|
-
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
const i =
|
|
178
|
+
re("selectLegend", t);
|
|
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
|
+
let l = a ? a.value : 0;
|
|
181
|
+
const i = S.value.find((c) => c.id === u.arcOfId).series.map((c) => c.id), p = Re(i, i.length - 1, f.value);
|
|
172
182
|
if (f.value.includes(t.id)) {
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
...
|
|
176
|
-
series:
|
|
183
|
+
let c = function() {
|
|
184
|
+
l > u.value ? (cancelAnimationFrame(xe.value), h.value = h.value.map((_) => ({
|
|
185
|
+
..._,
|
|
186
|
+
series: _.series.map((T) => T.id == t.id ? {
|
|
177
187
|
...T,
|
|
178
|
-
value:
|
|
188
|
+
value: u.value
|
|
179
189
|
} : T)
|
|
180
|
-
}))) : (
|
|
181
|
-
...
|
|
182
|
-
series:
|
|
190
|
+
}))) : (l += u.value * 0.025, h.value = h.value.map((_) => ({
|
|
191
|
+
..._,
|
|
192
|
+
series: _.series.map((T) => T.id === t.id ? {
|
|
183
193
|
...T,
|
|
184
|
-
value:
|
|
194
|
+
value: l
|
|
185
195
|
} : T)
|
|
186
|
-
})),
|
|
196
|
+
})), xe.value = requestAnimationFrame(c));
|
|
187
197
|
};
|
|
188
|
-
f.value = f.value.filter((
|
|
189
|
-
} else if (
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
...
|
|
193
|
-
series:
|
|
198
|
+
f.value = f.value.filter((_) => _ !== t.id), c();
|
|
199
|
+
} else if (p) {
|
|
200
|
+
let c = function() {
|
|
201
|
+
l < 0.1 ? (cancelAnimationFrame(_e.value), f.value.push(t.id), h.value = h.value.map((_, T) => ({
|
|
202
|
+
..._,
|
|
203
|
+
series: _.series.map((z) => z.id === t.id ? {
|
|
194
204
|
...z,
|
|
195
205
|
value: 0
|
|
196
206
|
} : z)
|
|
197
|
-
}))) : (
|
|
198
|
-
...
|
|
199
|
-
series:
|
|
207
|
+
}))) : (l /= 1.1, h.value = h.value.map((_, T) => ({
|
|
208
|
+
..._,
|
|
209
|
+
series: _.series.map((z) => z.id === t.id ? {
|
|
200
210
|
...z,
|
|
201
|
-
value:
|
|
211
|
+
value: l
|
|
202
212
|
} : z)
|
|
203
|
-
})),
|
|
213
|
+
})), _e.value = requestAnimationFrame(c));
|
|
204
214
|
};
|
|
205
|
-
|
|
215
|
+
c();
|
|
206
216
|
}
|
|
207
217
|
}
|
|
208
|
-
const
|
|
209
|
-
const
|
|
218
|
+
const R = k(() => h.value.map((t, u) => {
|
|
219
|
+
const a = u * N.value / S.value.length;
|
|
210
220
|
return {
|
|
211
221
|
...t,
|
|
212
|
-
radius:
|
|
213
|
-
donut:
|
|
222
|
+
radius: N.value - a,
|
|
223
|
+
donut: De(
|
|
214
224
|
{ series: t.series },
|
|
215
225
|
v.value.width / 2,
|
|
216
226
|
v.value.height / 2,
|
|
217
|
-
|
|
218
|
-
|
|
227
|
+
N.value - a,
|
|
228
|
+
N.value - a,
|
|
219
229
|
1.99999,
|
|
220
230
|
2,
|
|
221
231
|
1,
|
|
222
232
|
360,
|
|
223
233
|
105.25,
|
|
224
|
-
|
|
234
|
+
N.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
225
235
|
)
|
|
226
236
|
};
|
|
227
|
-
})),
|
|
228
|
-
const
|
|
237
|
+
})), ke = k(() => [...S.value].map((t, u) => {
|
|
238
|
+
const a = u * N.value / S.value.length;
|
|
229
239
|
return {
|
|
230
|
-
sizeRatio:
|
|
231
|
-
donut:
|
|
240
|
+
sizeRatio: a,
|
|
241
|
+
donut: De(
|
|
232
242
|
{ series: [{ value: 1 }] },
|
|
233
243
|
v.value.width / 2,
|
|
234
244
|
v.value.height / 2,
|
|
235
|
-
|
|
236
|
-
|
|
245
|
+
N.value - a,
|
|
246
|
+
N.value - a,
|
|
237
247
|
1.99999,
|
|
238
248
|
2,
|
|
239
249
|
1,
|
|
240
250
|
360,
|
|
241
251
|
105.25,
|
|
242
|
-
|
|
252
|
+
N.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
243
253
|
)[0]
|
|
244
254
|
};
|
|
245
|
-
})),
|
|
246
|
-
function
|
|
247
|
-
|
|
255
|
+
})), $e = d(null), X = d(null), H = d(null), le = d(null);
|
|
256
|
+
function Ee({ datapoint: t, _relativeIndex: u, seriesIndex: a }) {
|
|
257
|
+
$e.value = t.arcOfId, X.value = t.id, H.value = a, le.value = {
|
|
248
258
|
datapoint: t,
|
|
249
|
-
seriesIndex:
|
|
259
|
+
seriesIndex: a,
|
|
250
260
|
series: h.value,
|
|
251
261
|
config: e.value
|
|
252
262
|
};
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
seriesIndex:
|
|
263
|
+
const o = e.value.style.chart.tooltip.customFormat;
|
|
264
|
+
if (ze(o) && nt(() => o({
|
|
265
|
+
seriesIndex: a,
|
|
256
266
|
datapoint: t,
|
|
257
267
|
series: h.value,
|
|
258
268
|
config: e.value
|
|
259
269
|
})))
|
|
260
|
-
j.value =
|
|
261
|
-
seriesIndex:
|
|
270
|
+
j.value = o({
|
|
271
|
+
seriesIndex: a,
|
|
262
272
|
datapoint: t,
|
|
263
273
|
series: h.value,
|
|
264
274
|
config: e.value
|
|
265
275
|
});
|
|
266
276
|
else {
|
|
267
|
-
let
|
|
277
|
+
let l = "";
|
|
268
278
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && f.value.length === 0) {
|
|
269
|
-
const i = h.value.map((
|
|
270
|
-
i.forEach((
|
|
271
|
-
if (!
|
|
272
|
-
|
|
273
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
279
|
+
const i = h.value.map((p) => p.series.find((c) => c.seriesIndex === a));
|
|
280
|
+
i.forEach((p, c) => {
|
|
281
|
+
if (!p) return "";
|
|
282
|
+
l += `
|
|
283
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${c < i.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
274
284
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
275
285
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
276
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
286
|
+
<circle cx="10" cy="10" r="10" fill="${p.color}"/>
|
|
277
287
|
</svg>
|
|
278
288
|
<span>
|
|
279
|
-
${
|
|
289
|
+
${p.arcOf ?? ""} - ${p.name}
|
|
280
290
|
</span>
|
|
281
291
|
</div>
|
|
282
292
|
<span>
|
|
283
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
293
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${E(
|
|
284
294
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
285
295
|
t.value,
|
|
286
296
|
C({
|
|
@@ -289,11 +299,11 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
289
299
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
290
300
|
r: e.value.style.chart.tooltip.roundingValue
|
|
291
301
|
}),
|
|
292
|
-
{ datapoint: t, seriesIndex:
|
|
302
|
+
{ datapoint: t, seriesIndex: a }
|
|
293
303
|
)}
|
|
294
304
|
</b>` : ""}
|
|
295
305
|
${e.value.style.chart.tooltip.showPercentage ? `(${C({
|
|
296
|
-
v:
|
|
306
|
+
v: p.proportion * 100,
|
|
297
307
|
s: "%",
|
|
298
308
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
299
309
|
})})` : ""}
|
|
@@ -302,7 +312,7 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
302
312
|
`;
|
|
303
313
|
});
|
|
304
314
|
} else
|
|
305
|
-
|
|
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>${E(
|
|
306
316
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
307
317
|
t.value,
|
|
308
318
|
C({
|
|
@@ -311,89 +321,89 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
311
321
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
312
322
|
r: e.value.style.chart.tooltip.roundingValue
|
|
313
323
|
}),
|
|
314
|
-
{ datapoint: t, seriesIndex:
|
|
315
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
324
|
+
{ datapoint: t, seriesIndex: a }
|
|
325
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${C({
|
|
316
326
|
v: t.proportion * 100,
|
|
317
327
|
s: "%",
|
|
318
328
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
319
|
-
})})</span></div>` :
|
|
329
|
+
})})</span></div>` : l += `<b>${C({
|
|
320
330
|
v: t.proportion * 100,
|
|
321
331
|
s: "%",
|
|
322
332
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
323
333
|
})}</b></div>`);
|
|
324
|
-
j.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${
|
|
334
|
+
j.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
|
|
325
335
|
}
|
|
326
336
|
Z.value = !0;
|
|
327
337
|
}
|
|
328
338
|
function ae(t) {
|
|
329
339
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
330
340
|
}
|
|
331
|
-
function
|
|
341
|
+
function Le(t, u) {
|
|
332
342
|
if (!e.value.useBlurOnHover)
|
|
333
343
|
return "";
|
|
334
344
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && f.value.length === 0)
|
|
335
|
-
return [null, void 0].includes(
|
|
345
|
+
return [null, void 0].includes(H.value) || H.value === u ? "" : `url(#blur_${g.value})`;
|
|
336
346
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || f.value.length)
|
|
337
|
-
return [null, void 0].includes(
|
|
347
|
+
return [null, void 0].includes(X.value) || X.value === t.id ? "" : `url(#blur_${g.value})`;
|
|
338
348
|
}
|
|
339
|
-
const oe =
|
|
340
|
-
name:
|
|
341
|
-
color:
|
|
342
|
-
value:
|
|
349
|
+
const oe = k(() => S.value.map((t, u) => t.series.map((a, o) => ({
|
|
350
|
+
name: a.name,
|
|
351
|
+
color: a.color,
|
|
352
|
+
value: a.value,
|
|
343
353
|
shape: "circle",
|
|
344
|
-
arcOf:
|
|
345
|
-
id:
|
|
346
|
-
seriesIndex:
|
|
347
|
-
datasetIndex:
|
|
348
|
-
total: t.series.filter((
|
|
349
|
-
})).map((
|
|
350
|
-
...
|
|
351
|
-
opacity: f.value.includes(
|
|
352
|
-
segregate: () => te(
|
|
353
|
-
isSegregated: f.value.includes(
|
|
354
|
-
})))),
|
|
354
|
+
arcOf: a.arcOf,
|
|
355
|
+
id: a.id,
|
|
356
|
+
seriesIndex: o,
|
|
357
|
+
datasetIndex: u,
|
|
358
|
+
total: t.series.filter((l) => !f.value.includes(l.id)).map((l) => l.value).reduce((l, i) => l + i, 0)
|
|
359
|
+
})).map((a) => ({
|
|
360
|
+
...a,
|
|
361
|
+
opacity: f.value.includes(a.id) ? 0.5 : 1,
|
|
362
|
+
segregate: () => te(a),
|
|
363
|
+
isSegregated: f.value.includes(a.id)
|
|
364
|
+
})))), Ge = k(() => ({
|
|
355
365
|
cy: "nested-donuts-legend",
|
|
356
366
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
357
367
|
color: e.value.style.chart.legend.color,
|
|
358
368
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
359
369
|
paddingBottom: 12,
|
|
360
370
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
361
|
-
})),
|
|
362
|
-
const t = h.value.flatMap((
|
|
363
|
-
name: `${
|
|
364
|
-
color:
|
|
365
|
-
total:
|
|
366
|
-
}))),
|
|
367
|
-
return { head: t, body:
|
|
371
|
+
})), D = k(() => {
|
|
372
|
+
const t = h.value.flatMap((a) => a.series.map((o) => ({
|
|
373
|
+
name: `${a.name} - ${o.name}`,
|
|
374
|
+
color: o.color,
|
|
375
|
+
total: a.total
|
|
376
|
+
}))), u = h.value.flatMap((a) => a.series.map((o) => o.value));
|
|
377
|
+
return { head: t, body: u };
|
|
368
378
|
});
|
|
369
|
-
function
|
|
370
|
-
|
|
371
|
-
const t =
|
|
372
|
-
|
|
373
|
-
], [
|
|
374
|
-
|
|
379
|
+
function Ce() {
|
|
380
|
+
Je(() => {
|
|
381
|
+
const t = D.value.head.map((o, l) => [[
|
|
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 = rt(u);
|
|
384
|
+
it({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
375
385
|
});
|
|
376
386
|
}
|
|
377
|
-
const W =
|
|
387
|
+
const W = k(() => {
|
|
378
388
|
const t = [
|
|
379
389
|
e.value.table.columnNames.series,
|
|
380
390
|
e.value.table.columnNames.value,
|
|
381
391
|
e.value.table.columnNames.percentage
|
|
382
|
-
],
|
|
383
|
-
const
|
|
392
|
+
], u = D.value.head.map((l, i) => {
|
|
393
|
+
const p = C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[i], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
384
394
|
return [
|
|
385
395
|
{
|
|
386
|
-
color:
|
|
387
|
-
name:
|
|
396
|
+
color: l.color,
|
|
397
|
+
name: l.name
|
|
388
398
|
},
|
|
389
|
-
|
|
390
|
-
isNaN(
|
|
391
|
-
v:
|
|
399
|
+
p,
|
|
400
|
+
isNaN(D.value.body[i] / l.total) ? "-" : C({
|
|
401
|
+
v: D.value.body[i] / l.total * 100,
|
|
392
402
|
s: "%",
|
|
393
403
|
r: e.value.table.td.roundingPercentage
|
|
394
404
|
})
|
|
395
405
|
];
|
|
396
|
-
}),
|
|
406
|
+
}), a = {
|
|
397
407
|
th: {
|
|
398
408
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
399
409
|
color: e.value.table.th.color,
|
|
@@ -413,43 +423,44 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
413
423
|
e.value.table.columnNames.percentage
|
|
414
424
|
],
|
|
415
425
|
head: t,
|
|
416
|
-
body:
|
|
417
|
-
config:
|
|
426
|
+
body: u,
|
|
427
|
+
config: a
|
|
418
428
|
};
|
|
419
429
|
});
|
|
420
|
-
function
|
|
421
|
-
return
|
|
430
|
+
function Ye() {
|
|
431
|
+
return S.value;
|
|
422
432
|
}
|
|
423
|
-
function
|
|
433
|
+
function Se() {
|
|
424
434
|
x.value.showTable = !x.value.showTable;
|
|
425
435
|
}
|
|
426
|
-
function
|
|
436
|
+
function Ne() {
|
|
427
437
|
x.value.dataLabels.show = !x.value.dataLabels.show;
|
|
428
438
|
}
|
|
429
|
-
function
|
|
439
|
+
function Te() {
|
|
430
440
|
x.value.showTooltip = !x.value.showTooltip;
|
|
431
441
|
}
|
|
432
|
-
return
|
|
433
|
-
getData:
|
|
434
|
-
generatePdf:
|
|
435
|
-
generateCsv:
|
|
436
|
-
generateImage:
|
|
437
|
-
toggleTable:
|
|
438
|
-
toggleLabels:
|
|
439
|
-
toggleTooltip:
|
|
440
|
-
}), (t,
|
|
442
|
+
return Oe({
|
|
443
|
+
getData: Ye,
|
|
444
|
+
generatePdf: ge,
|
|
445
|
+
generateCsv: Ce,
|
|
446
|
+
generateImage: me,
|
|
447
|
+
toggleTable: Se,
|
|
448
|
+
toggleLabels: Ne,
|
|
449
|
+
toggleTooltip: Te
|
|
450
|
+
}), (t, u) => (s(), n("div", {
|
|
441
451
|
ref_key: "nestedDonutsChart",
|
|
442
|
-
ref:
|
|
443
|
-
class: P(`vue-ui-nested-donuts ${
|
|
452
|
+
ref: B,
|
|
453
|
+
class: P(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
444
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}`),
|
|
445
|
-
id: `nested_donuts_${
|
|
455
|
+
id: `nested_donuts_${g.value}`
|
|
446
456
|
}, [
|
|
447
|
-
e.value.style.chart.title.text ? (
|
|
457
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
448
458
|
key: 0,
|
|
449
459
|
ref_key: "chartTitle",
|
|
450
|
-
ref:
|
|
460
|
+
ref: de
|
|
451
461
|
}, [
|
|
452
|
-
|
|
462
|
+
(s(), O(vt, {
|
|
463
|
+
key: `title_${ce.value}`,
|
|
453
464
|
config: {
|
|
454
465
|
title: {
|
|
455
466
|
cy: "donut-div-title",
|
|
@@ -460,16 +471,16 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
460
471
|
...e.value.style.chart.title.subtitle
|
|
461
472
|
}
|
|
462
473
|
}
|
|
463
|
-
}, null, 8, ["config"])
|
|
474
|
+
}, null, 8, ["config"]))
|
|
464
475
|
], 512)) : y("", !0),
|
|
465
|
-
e.value.userOptions.show &&
|
|
476
|
+
e.value.userOptions.show && G.value ? (s(), O(ft, {
|
|
466
477
|
ref: "details",
|
|
467
|
-
key: `user_option_${
|
|
478
|
+
key: `user_option_${ie.value}`,
|
|
468
479
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
469
480
|
color: e.value.style.chart.color,
|
|
470
|
-
isPrinting: r(
|
|
471
|
-
isImaging: r(
|
|
472
|
-
uid:
|
|
481
|
+
isPrinting: r(pe),
|
|
482
|
+
isImaging: r(be),
|
|
483
|
+
uid: g.value,
|
|
473
484
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
474
485
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
475
486
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -477,95 +488,95 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
477
488
|
hasTable: e.value.userOptions.buttons.table,
|
|
478
489
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
479
490
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
480
|
-
isFullscreen:
|
|
491
|
+
isFullscreen: U.value,
|
|
481
492
|
isTooltip: x.value.showTooltip,
|
|
482
493
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
483
|
-
chartElement:
|
|
484
|
-
onToggleFullscreen:
|
|
485
|
-
onGeneratePdf: r(
|
|
486
|
-
onGenerateCsv:
|
|
487
|
-
onGenerateImage: r(
|
|
488
|
-
onToggleTable:
|
|
489
|
-
onToggleLabels:
|
|
490
|
-
onToggleTooltip:
|
|
491
|
-
},
|
|
494
|
+
chartElement: B.value,
|
|
495
|
+
onToggleFullscreen: Me,
|
|
496
|
+
onGeneratePdf: r(ge),
|
|
497
|
+
onGenerateCsv: Ce,
|
|
498
|
+
onGenerateImage: r(me),
|
|
499
|
+
onToggleTable: Se,
|
|
500
|
+
onToggleLabels: Ne,
|
|
501
|
+
onToggleTooltip: Te
|
|
502
|
+
}, We({ _: 2 }, [
|
|
492
503
|
t.$slots.optionTooltip ? {
|
|
493
504
|
name: "optionTooltip",
|
|
494
505
|
fn: m(() => [
|
|
495
|
-
|
|
506
|
+
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
496
507
|
]),
|
|
497
508
|
key: "0"
|
|
498
509
|
} : void 0,
|
|
499
510
|
t.$slots.optionPdf ? {
|
|
500
511
|
name: "optionPdf",
|
|
501
512
|
fn: m(() => [
|
|
502
|
-
|
|
513
|
+
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
503
514
|
]),
|
|
504
515
|
key: "1"
|
|
505
516
|
} : void 0,
|
|
506
517
|
t.$slots.optionCsv ? {
|
|
507
518
|
name: "optionCsv",
|
|
508
519
|
fn: m(() => [
|
|
509
|
-
|
|
520
|
+
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
510
521
|
]),
|
|
511
522
|
key: "2"
|
|
512
523
|
} : void 0,
|
|
513
524
|
t.$slots.optionImg ? {
|
|
514
525
|
name: "optionImg",
|
|
515
526
|
fn: m(() => [
|
|
516
|
-
|
|
527
|
+
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
517
528
|
]),
|
|
518
529
|
key: "3"
|
|
519
530
|
} : void 0,
|
|
520
531
|
t.$slots.optionTable ? {
|
|
521
532
|
name: "optionTable",
|
|
522
533
|
fn: m(() => [
|
|
523
|
-
|
|
534
|
+
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
524
535
|
]),
|
|
525
536
|
key: "4"
|
|
526
537
|
} : void 0,
|
|
527
538
|
t.$slots.optionLabels ? {
|
|
528
539
|
name: "optionLabels",
|
|
529
540
|
fn: m(() => [
|
|
530
|
-
|
|
541
|
+
$(t.$slots, "optionLabels", {}, void 0, !0)
|
|
531
542
|
]),
|
|
532
543
|
key: "5"
|
|
533
544
|
} : void 0,
|
|
534
545
|
t.$slots.optionFullscreen ? {
|
|
535
546
|
name: "optionFullscreen",
|
|
536
|
-
fn: m(({ toggleFullscreen:
|
|
537
|
-
|
|
547
|
+
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
548
|
+
$(t.$slots, "optionFullscreen", q(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
538
549
|
]),
|
|
539
550
|
key: "6"
|
|
540
551
|
} : void 0
|
|
541
552
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
542
|
-
|
|
553
|
+
G.value ? (s(), n("svg", {
|
|
543
554
|
key: 2,
|
|
544
|
-
xmlns: r(
|
|
545
|
-
class: P({ "vue-data-ui-fullscreen--on":
|
|
555
|
+
xmlns: r(st),
|
|
556
|
+
class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
546
557
|
viewBox: `0 0 ${v.value.width <= 0 ? 1e-3 : v.value.width} ${v.value.height < 0 ? 1e-3 : v.value.height}`,
|
|
547
558
|
style: se(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
548
559
|
}, [
|
|
549
560
|
b("defs", null, [
|
|
550
|
-
(
|
|
551
|
-
id: `radial_${
|
|
561
|
+
(s(!0), n(w, null, L(ke.value, (a, o) => (s(), n("radialGradient", {
|
|
562
|
+
id: `radial_${g.value}_${o}`,
|
|
552
563
|
cx: "50%",
|
|
553
564
|
cy: "50%",
|
|
554
565
|
r: "50%",
|
|
555
|
-
fr: 30 - 1 * (
|
|
566
|
+
fr: 30 - 1 * (o + 1) + "%"
|
|
556
567
|
}, [
|
|
557
|
-
|
|
568
|
+
$t,
|
|
558
569
|
b("stop", {
|
|
559
|
-
offset: 70 - 20 *
|
|
570
|
+
offset: 70 - 20 * o + "%",
|
|
560
571
|
"stop-color": "#FFFFFF",
|
|
561
572
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
562
|
-
}, null, 8,
|
|
563
|
-
|
|
564
|
-
], 8,
|
|
573
|
+
}, null, 8, Lt),
|
|
574
|
+
Ct
|
|
575
|
+
], 8, kt))), 256))
|
|
565
576
|
]),
|
|
566
577
|
b("defs", null, [
|
|
567
578
|
b("filter", {
|
|
568
|
-
id: `blur_${
|
|
579
|
+
id: `blur_${g.value}`,
|
|
569
580
|
x: "-50%",
|
|
570
581
|
y: "-50%",
|
|
571
582
|
width: "200%",
|
|
@@ -574,12 +585,12 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
574
585
|
b("feGaussianBlur", {
|
|
575
586
|
in: "SourceGraphic",
|
|
576
587
|
stdDeviation: 2,
|
|
577
|
-
id: `blur_std_${
|
|
578
|
-
}, null, 8,
|
|
579
|
-
|
|
580
|
-
], 8,
|
|
588
|
+
id: `blur_std_${g.value}`
|
|
589
|
+
}, null, 8, Nt),
|
|
590
|
+
Tt
|
|
591
|
+
], 8, St),
|
|
581
592
|
b("filter", {
|
|
582
|
-
id: `shadow_${
|
|
593
|
+
id: `shadow_${g.value}`,
|
|
583
594
|
"color-interpolation-filters": "sRGB"
|
|
584
595
|
}, [
|
|
585
596
|
b("feDropShadow", {
|
|
@@ -588,136 +599,136 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
588
599
|
stdDeviation: "10",
|
|
589
600
|
"flood-opacity": "0.5",
|
|
590
601
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
591
|
-
}, null, 8,
|
|
592
|
-
], 8,
|
|
602
|
+
}, null, 8, It)
|
|
603
|
+
], 8, Ft)
|
|
593
604
|
]),
|
|
594
|
-
(
|
|
605
|
+
(s(!0), n(w, null, L(R.value, (a) => (s(), n("circle", {
|
|
595
606
|
cx: v.value.width / 2,
|
|
596
607
|
cy: v.value.height / 2,
|
|
597
|
-
r:
|
|
608
|
+
r: a.radius < 0 ? 1e-5 : a.radius,
|
|
598
609
|
fill: e.value.style.chart.backgroundColor,
|
|
599
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${
|
|
600
|
-
}, null, 8,
|
|
601
|
-
(
|
|
602
|
-
(
|
|
610
|
+
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${g.value})` : ""
|
|
611
|
+
}, null, 8, Dt))), 256)),
|
|
612
|
+
(s(!0), n(w, null, L(R.value, (a, o) => (s(), n("g", null, [
|
|
613
|
+
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
603
614
|
b("path", {
|
|
604
615
|
class: "vue-ui-donut-arc-path",
|
|
605
|
-
d:
|
|
606
|
-
fill: `${
|
|
616
|
+
d: l.arcSlice,
|
|
617
|
+
fill: `${l.color}CC`,
|
|
607
618
|
stroke: e.value.style.chart.backgroundColor,
|
|
608
619
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
609
|
-
filter:
|
|
610
|
-
}, null, 8,
|
|
620
|
+
filter: Le(l, i)
|
|
621
|
+
}, null, 8, zt)
|
|
611
622
|
]))), 256))
|
|
612
623
|
]))), 256)),
|
|
613
|
-
e.value.style.chart.useGradient ? (
|
|
614
|
-
(
|
|
624
|
+
e.value.style.chart.useGradient ? (s(), n("g", Pt, [
|
|
625
|
+
(s(!0), n(w, null, L(ke.value, (a, o) => (s(), n("g", null, [
|
|
615
626
|
b("path", {
|
|
616
|
-
d:
|
|
617
|
-
fill: `url(#radial_${
|
|
627
|
+
d: a.donut.arcSlice,
|
|
628
|
+
fill: `url(#radial_${g.value}_${o})`,
|
|
618
629
|
stroke: "transparent",
|
|
619
630
|
"stroke-width": "0"
|
|
620
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, Ot)
|
|
621
632
|
]))), 256))
|
|
622
633
|
])) : y("", !0),
|
|
623
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (
|
|
624
|
-
(
|
|
625
|
-
(
|
|
626
|
-
i === 0 && v.value.width && v.value.height ? (
|
|
634
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (s(), n("g", At, [
|
|
635
|
+
(s(!0), n(w, null, L(R.value, (a, o) => (s(), n("g", null, [
|
|
636
|
+
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
637
|
+
i === 0 && v.value.width && v.value.height ? (s(), n("text", {
|
|
627
638
|
key: 0,
|
|
628
639
|
class: P({ animated: e.value.useCssAnimation }),
|
|
629
640
|
x: v.value.width / 2,
|
|
630
|
-
y:
|
|
641
|
+
y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
631
642
|
"text-anchor": "middle",
|
|
632
643
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
633
644
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
634
645
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
635
|
-
}, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(
|
|
646
|
+
}, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(ut)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Vt)) : y("", !0)
|
|
636
647
|
]))), 256))
|
|
637
648
|
]))), 256))
|
|
638
649
|
])) : y("", !0),
|
|
639
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
640
|
-
(
|
|
641
|
-
(
|
|
642
|
-
filter:
|
|
650
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g", Mt, [
|
|
651
|
+
(s(!0), n(w, null, L(R.value, (a, o) => (s(), n("g", null, [
|
|
652
|
+
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", {
|
|
653
|
+
filter: Le(l, i)
|
|
643
654
|
}, [
|
|
644
|
-
ae(
|
|
655
|
+
ae(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (s(), n("text", {
|
|
645
656
|
key: 0,
|
|
646
657
|
class: P({ animated: e.value.useCssAnimation }),
|
|
647
|
-
"text-anchor": r(
|
|
648
|
-
x: r(
|
|
649
|
-
y: r(
|
|
650
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
658
|
+
"text-anchor": r(V)(l, !0).anchor,
|
|
659
|
+
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
660
|
+
y: r(ue)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
661
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
651
662
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
652
663
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
653
|
-
}, F(r(C)({ v:
|
|
654
|
-
ae(
|
|
664
|
+
}, F(r(C)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Ut)) : y("", !0),
|
|
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", {
|
|
655
666
|
key: 1,
|
|
656
667
|
class: P({ animated: e.value.useCssAnimation }),
|
|
657
|
-
"text-anchor": r(
|
|
658
|
-
x: r(
|
|
659
|
-
y: r(
|
|
660
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
668
|
+
"text-anchor": r(V)(l, !0).anchor,
|
|
669
|
+
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
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
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
661
672
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
662
673
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
663
|
-
}, " (" + F(r(
|
|
674
|
+
}, " (" + F(r(E)(
|
|
664
675
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
665
|
-
|
|
676
|
+
l.value,
|
|
666
677
|
r(C)({
|
|
667
678
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
668
|
-
v:
|
|
679
|
+
v: l.value,
|
|
669
680
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
670
681
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
671
682
|
}),
|
|
672
|
-
{ datapoint:
|
|
673
|
-
)) + ") ", 11,
|
|
674
|
-
ae(
|
|
683
|
+
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
684
|
+
)) + ") ", 11, Rt)) : y("", !0),
|
|
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", {
|
|
675
686
|
key: 2,
|
|
676
687
|
class: P({ animated: e.value.useCssAnimation }),
|
|
677
|
-
"text-anchor": r(
|
|
678
|
-
x: r(
|
|
679
|
-
y: r(
|
|
680
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
688
|
+
"text-anchor": r(V)(l, !0).anchor,
|
|
689
|
+
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
690
|
+
y: r(ue)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
691
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
681
692
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
682
693
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
683
|
-
}, F(r(
|
|
694
|
+
}, F(r(E)(
|
|
684
695
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
685
|
-
|
|
696
|
+
l.value,
|
|
686
697
|
r(C)({
|
|
687
698
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
688
|
-
v:
|
|
699
|
+
v: l.value,
|
|
689
700
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
690
701
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
691
702
|
}),
|
|
692
|
-
{ datapoint:
|
|
693
|
-
)), 11,
|
|
694
|
-
], 8,
|
|
703
|
+
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
704
|
+
)), 11, Et)) : y("", !0)
|
|
705
|
+
], 8, Bt))), 256))
|
|
695
706
|
]))), 256))
|
|
696
707
|
])) : y("", !0),
|
|
697
|
-
(
|
|
698
|
-
(
|
|
708
|
+
(s(!0), n(w, null, L(R.value, (a, o) => (s(), n("g", null, [
|
|
709
|
+
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
699
710
|
b("path", {
|
|
700
711
|
"data-cy-donut-trap": "",
|
|
701
|
-
d:
|
|
702
|
-
fill:
|
|
703
|
-
onMouseenter: (
|
|
704
|
-
datapoint:
|
|
705
|
-
relativeIndex:
|
|
706
|
-
seriesIndex:
|
|
712
|
+
d: l.arcSlice,
|
|
713
|
+
fill: Ve.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
714
|
+
onMouseenter: (p) => Ee({
|
|
715
|
+
datapoint: l,
|
|
716
|
+
relativeIndex: o,
|
|
717
|
+
seriesIndex: l.seriesIndex
|
|
707
718
|
}),
|
|
708
|
-
onClick: (
|
|
709
|
-
onMouseleave:
|
|
710
|
-
Z.value = !1,
|
|
719
|
+
onClick: (p) => Ue({ datapoint: l, index: i }),
|
|
720
|
+
onMouseleave: u[0] || (u[0] = (p) => {
|
|
721
|
+
Z.value = !1, $e.value = null, X.value = null, H.value = null;
|
|
711
722
|
})
|
|
712
|
-
}, null, 40,
|
|
723
|
+
}, null, 40, Gt)
|
|
713
724
|
]))), 256))
|
|
714
725
|
]))), 256)),
|
|
715
|
-
|
|
716
|
-
], 14,
|
|
717
|
-
t.$slots.watermark ? (
|
|
718
|
-
|
|
726
|
+
$(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
727
|
+
], 14, _t)) : y("", !0),
|
|
728
|
+
t.$slots.watermark ? (s(), n("div", Yt, [
|
|
729
|
+
$(t.$slots, "watermark", q(J({ isPrinting: r(pe) || r(be) })), void 0, !0)
|
|
719
730
|
])) : y("", !0),
|
|
720
|
-
|
|
731
|
+
G.value ? y("", !0) : (s(), O(gt, {
|
|
721
732
|
key: 4,
|
|
722
733
|
config: {
|
|
723
734
|
type: "donut",
|
|
@@ -729,7 +740,7 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
729
740
|
}
|
|
730
741
|
}
|
|
731
742
|
}, null, 8, ["config"])),
|
|
732
|
-
|
|
743
|
+
qe(pt, {
|
|
733
744
|
show: x.value.showTooltip && Z.value,
|
|
734
745
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
735
746
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -740,66 +751,67 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
740
751
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
741
752
|
position: e.value.style.chart.tooltip.position,
|
|
742
753
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
743
|
-
parent:
|
|
754
|
+
parent: B.value,
|
|
744
755
|
content: j.value,
|
|
745
|
-
isCustom: r(
|
|
756
|
+
isCustom: r(ze)(e.value.style.chart.tooltip.customFormat)
|
|
746
757
|
}, {
|
|
747
758
|
"tooltip-before": m(() => [
|
|
748
|
-
|
|
759
|
+
$(t.$slots, "tooltip-before", q(J({ ...le.value })), void 0, !0)
|
|
749
760
|
]),
|
|
750
761
|
"tooltip-after": m(() => [
|
|
751
|
-
|
|
762
|
+
$(t.$slots, "tooltip-after", q(J({ ...le.value })), void 0, !0)
|
|
752
763
|
]),
|
|
753
764
|
_: 3
|
|
754
765
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
755
|
-
e.value.style.chart.legend.show ? (
|
|
766
|
+
e.value.style.chart.legend.show ? (s(), n("div", {
|
|
756
767
|
key: 5,
|
|
757
768
|
ref_key: "chartLegend",
|
|
758
769
|
ref: ee,
|
|
759
770
|
class: P({ "vue-ui-nested-donuts-legend": oe.value.length > 1 })
|
|
760
771
|
}, [
|
|
761
|
-
(
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
772
|
+
(s(!0), n(w, null, L(oe.value, (a, o) => (s(), O(bt, {
|
|
773
|
+
key: `legend_${o}_${he.value}`,
|
|
774
|
+
legendSet: a,
|
|
775
|
+
config: Ge.value,
|
|
776
|
+
onClickMarker: u[1] || (u[1] = ({ legend: l }) => te(l))
|
|
765
777
|
}, {
|
|
766
|
-
legendTitle: m(({ titleSet:
|
|
767
|
-
|
|
778
|
+
legendTitle: m(({ titleSet: l }) => [
|
|
779
|
+
l[0] && l[0].arcOf ? (s(), n("div", Xt, F(l[0].arcOf), 1)) : y("", !0)
|
|
768
780
|
]),
|
|
769
|
-
item: m(({ legend:
|
|
781
|
+
item: m(({ legend: l, index: i }) => [
|
|
770
782
|
b("div", {
|
|
771
|
-
onClick: (
|
|
772
|
-
style: se(`opacity:${f.value.includes(
|
|
783
|
+
onClick: (p) => te(l),
|
|
784
|
+
style: se(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
773
785
|
}, [
|
|
774
|
-
K(F(
|
|
786
|
+
K(F(l.name) + ": " + F(r(E)(
|
|
775
787
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
776
|
-
|
|
788
|
+
l.value,
|
|
777
789
|
r(C)({
|
|
778
790
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
779
|
-
v:
|
|
791
|
+
v: l.value,
|
|
780
792
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
781
793
|
r: e.value.style.chart.legend.roundingValue
|
|
782
794
|
}),
|
|
783
|
-
{ datapoint:
|
|
795
|
+
{ datapoint: l, seriesIndex: i }
|
|
784
796
|
)) + " ", 1),
|
|
785
|
-
f.value.includes(
|
|
797
|
+
f.value.includes(l.id) ? (s(), n(w, { key: 1 }, [
|
|
786
798
|
K(" ( - % ) ")
|
|
787
|
-
], 64)) : (
|
|
788
|
-
K(" (" + F(isNaN(
|
|
799
|
+
], 64)) : (s(), n(w, { key: 0 }, [
|
|
800
|
+
K(" (" + F(isNaN(l.value / l.total) ? "-" : r(C)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
|
|
789
801
|
], 64))
|
|
790
|
-
], 12,
|
|
802
|
+
], 12, Ht)
|
|
791
803
|
]),
|
|
792
804
|
_: 2
|
|
793
|
-
}, 1032, ["legendSet", "config"]))),
|
|
805
|
+
}, 1032, ["legendSet", "config"]))), 128))
|
|
794
806
|
], 2)) : y("", !0),
|
|
795
|
-
e.value.style.chart.legend.show ? y("", !0) : (
|
|
807
|
+
e.value.style.chart.legend.show ? y("", !0) : (s(), n("div", {
|
|
796
808
|
key: 6,
|
|
797
809
|
ref_key: "chartLegend",
|
|
798
810
|
ref: ee
|
|
799
811
|
}, [
|
|
800
|
-
|
|
812
|
+
$(t.$slots, "legend", { legend: oe.value }, void 0, !0)
|
|
801
813
|
], 512)),
|
|
802
|
-
|
|
814
|
+
G.value ? (s(), O(mt, {
|
|
803
815
|
key: 7,
|
|
804
816
|
hideDetails: "",
|
|
805
817
|
config: {
|
|
@@ -816,31 +828,32 @@ const re = (V) => (Xe("data-v-7f596bd8"), V = V(), We(), V), bt = ["id"], pt = [
|
|
|
816
828
|
}
|
|
817
829
|
}, {
|
|
818
830
|
content: m(() => [
|
|
819
|
-
|
|
831
|
+
(s(), O(yt, {
|
|
832
|
+
key: `table_${ve.value}`,
|
|
820
833
|
colNames: W.value.colNames,
|
|
821
834
|
head: W.value.head,
|
|
822
835
|
body: W.value.body,
|
|
823
836
|
config: W.value.config,
|
|
824
837
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
825
|
-
onClose:
|
|
838
|
+
onClose: u[2] || (u[2] = (a) => x.value.showTable = !1)
|
|
826
839
|
}, {
|
|
827
|
-
th: m(({ th:
|
|
840
|
+
th: m(({ th: a }) => [
|
|
828
841
|
b("div", {
|
|
829
|
-
innerHTML:
|
|
842
|
+
innerHTML: a,
|
|
830
843
|
style: { display: "flex", "align-items": "center" }
|
|
831
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, Wt)
|
|
832
845
|
]),
|
|
833
|
-
td: m(({ td:
|
|
834
|
-
K(F(
|
|
846
|
+
td: m(({ td: a }) => [
|
|
847
|
+
K(F(a.name || a), 1)
|
|
835
848
|
]),
|
|
836
849
|
_: 1
|
|
837
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
850
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
838
851
|
]),
|
|
839
852
|
_: 1
|
|
840
853
|
}, 8, ["config"])) : y("", !0)
|
|
841
|
-
], 14,
|
|
854
|
+
], 14, xt));
|
|
842
855
|
}
|
|
843
|
-
},
|
|
856
|
+
}, nl = /* @__PURE__ */ wt(qt, [["__scopeId", "data-v-7e1c384d"]]);
|
|
844
857
|
export {
|
|
845
|
-
|
|
858
|
+
nl as default
|
|
846
859
|
};
|