vue-data-ui 3.2.8 → 3.3.0
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-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as ee, useSlots as
|
|
2
|
-
import { o as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as ee, useSlots as kl, computed as y, shallowRef as H, ref as g, onMounted as St, onBeforeUnmount as Tt, toRefs as xl, watch as fe, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Ue, createBlock as te, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Se, unref as u, createSlots as qe, withCtx as A, normalizeProps as ue, guardReactiveProps as re, Fragment as w, renderList as L, mergeProps as We, toDisplayString as V, withDirectives as Ft, createTextVNode as Te, vShow as Pt, Teleport as _l, resolveDynamicComponent as $l, nextTick as Cl } from "vue";
|
|
2
|
+
import { o as Lt, f as He, g as Al, c as Sl, t as Tl, e as Fl, q as Pl, h as It, p as ie, a as E, d as O, n as Mt, F as Ll, X as Il, s as Fe, i as Ml, u as zl, G as F, v as ge, w as x, H as zt, l as Ol, b as Dl, B as je, x as Nl, y as Yl, z as Bl, I as Ot } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as Xl, u as Vl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as El, a as Dt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Rl } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as Gl, B as Ul } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as ql } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Wl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Hl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import jl from "./img-6wPuVVtk.js";
|
|
11
|
+
import { _ as Jl } from "./Shape-DJG2zW7b.js";
|
|
12
|
+
import Kl from "./Title-D17CJXko.js";
|
|
13
|
+
import { t as Ql } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import Zl from "./Legend-DsogCeTb.js";
|
|
15
|
+
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "height"], sa = { key: 1 }, na = ["id"], ua = ["stop-color"], ra = ["offset", "stop-color"], ia = ["offset", "stop-color"], va = ["stop-color"], da = { key: 2 }, ca = ["id", "cx", "cy"], ha = ["stop-color", "stop-opacity"], ya = ["stop-color"], fa = ["id"], ga = ["id"], pa = ["id"], ma = ["flood-color"], ba = ["id"], wa = ["flood-color"], ka = ["d", "stroke", "filter"], xa = ["d", "stroke", "filter"], _a = ["cx", "cy", "r", "fill", "filter"], $a = { key: 6 }, Ca = ["stroke", "d"], Aa = ["d", "fill", "stroke", "stroke-width", "filter"], Sa = { key: 0 }, Ta = ["d", "fill", "stroke", "stroke-width", "filter"], Fa = { key: 0 }, Pa = ["stroke", "d"], La = { key: 0 }, Ia = ["d", "stroke", "stroke-width", "filter"], Ma = { key: 1 }, za = ["d", "fill", "stroke", "stroke-width", "filter"], Oa = ["d", "fill", "stroke", "stroke-width", "filter"], Da = { key: 1 }, Na = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ya = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ba = { key: 0 }, Xa = ["d", "fill", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke"], Ea = ["cx", "cy", "r", "fill"], Ra = ["cx", "cy", "r"], Ga = { key: 0 }, Ua = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], qa = { key: 1 }, Wa = ["cx", "cy", "r"], Ha = ["x", "y", "fill", "font-size"], ja = ["x", "y", "fill", "font-size"], Ja = ["x", "y", "fill", "font-size"], Ka = ["x", "y", "fill", "font-size"], Qa = ["filter"], Za = { key: 0 }, eo = ["x", "y"], to = { key: 1 }, lo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ao = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], oo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], so = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], no = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], ro = { key: 2 }, io = ["x", "y", "width"], vo = ["x", "y", "width"], co = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, ho = ["id"], yo = ["onClick"], fo = {
|
|
19
20
|
key: 7,
|
|
20
21
|
class: "vue-ui-donut-hollow"
|
|
21
|
-
},
|
|
22
|
+
}, go = ["innerHTML"], po = {
|
|
22
23
|
__name: "vue-ui-donut",
|
|
23
24
|
props: {
|
|
24
25
|
config: {
|
|
@@ -35,138 +36,138 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
emits: ["selectLegend", "selectDatapoint"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
39
|
+
setup(Je, { expose: Nt, emit: Yt }) {
|
|
40
|
+
const Bt = ee(() => import("./Tooltip-CtVdvbZi.js")), Xt = ee(() => import("./BaseIcon-CtqN7W_g.js")), Vt = ee(() => import("./vue-ui-accordion-Dch9YrCi.js")), Et = ee(() => import("./DataTable-BeI6gYJX.js")), Rt = ee(() => import("./PenAndPaper-BxbYiPy4.js")), Gt = ee(() => import("./UserOptions-B3vCIe-u.js")), Ut = ee(() => import("./PackageVersion-C9oklnuy.js")), qt = ee(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_donut: Wt } = El(), Ht = kl(), k = Je, we = y({
|
|
40
41
|
get() {
|
|
41
42
|
return !!k.dataset && k.dataset.length;
|
|
42
43
|
},
|
|
43
|
-
set(
|
|
44
|
-
return
|
|
44
|
+
set(t) {
|
|
45
|
+
return t;
|
|
45
46
|
}
|
|
46
|
-
}),
|
|
47
|
+
}), D = H(null), ke = g(null), jt = g(null), Jt = g(null), Ke = H(null), Qe = H(null), j = H(null), ve = H(null), Ze = H(null), et = H(null), tt = g(0), lt = g(0), at = g(0), ot = g(!1), pe = g(null), Pe = g(null), xe = y({
|
|
47
48
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
48
|
-
set: (
|
|
49
|
-
}), J =
|
|
49
|
+
set: (t) => t
|
|
50
|
+
}), J = y({
|
|
50
51
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
51
|
-
set: (
|
|
52
|
+
set: (t) => t
|
|
52
53
|
});
|
|
53
54
|
let Le = !1;
|
|
54
55
|
const R = () => {
|
|
55
56
|
!e.value.autoSize || Le || (Le = !0, requestAnimationFrame(() => {
|
|
56
57
|
Le = !1;
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
59
|
-
const [a, i, c, m] =
|
|
58
|
+
const t = e.value, o = ke.value, l = le.value;
|
|
59
|
+
if (!t.autoSize || !o || !l) return;
|
|
60
|
+
const [a, i, c, m] = l.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: i, width: c, height: m }, M = [
|
|
60
61
|
{
|
|
61
62
|
selector: ".vue-data-ui-datalabel-value",
|
|
62
|
-
baseSize:
|
|
63
|
-
minSize:
|
|
63
|
+
baseSize: t.style.chart.layout.labels.percentage.fontSize,
|
|
64
|
+
minSize: t.style.chart.layout.labels.percentage.minFontSize,
|
|
64
65
|
sizeRef: xe
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
selector: ".vue-data-ui-datalabel-name",
|
|
68
|
-
baseSize:
|
|
69
|
-
minSize:
|
|
69
|
+
baseSize: t.style.chart.layout.labels.name.fontSize,
|
|
70
|
+
minSize: t.style.chart.layout.labels.name.minFontSize,
|
|
70
71
|
sizeRef: J
|
|
71
72
|
}
|
|
72
73
|
];
|
|
73
|
-
|
|
74
|
-
o.querySelectorAll(
|
|
75
|
-
const
|
|
76
|
-
el:
|
|
74
|
+
M.map((X) => o.querySelectorAll(X.selector).length).reduce((X, Z) => X + Z, 0) !== 0 && M.forEach(({ selector: X, baseSize: Z, minSize: Ge, sizeRef: ml }) => {
|
|
75
|
+
o.querySelectorAll(X).forEach((bl) => {
|
|
76
|
+
const wl = Ol({
|
|
77
|
+
el: bl,
|
|
77
78
|
bounds: C,
|
|
78
79
|
currentFontSize: Z,
|
|
79
|
-
minFontSize:
|
|
80
|
+
minFontSize: Ge,
|
|
80
81
|
attempts: 200,
|
|
81
82
|
padding: 1
|
|
82
83
|
});
|
|
83
|
-
|
|
84
|
+
ml.value = wl;
|
|
84
85
|
});
|
|
85
86
|
});
|
|
86
87
|
}));
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
St(async () => {
|
|
90
|
+
ot.value = !0, st(), requestAnimationFrame(R);
|
|
90
91
|
});
|
|
91
92
|
let Ie;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
for (const o of
|
|
95
|
-
const { width:
|
|
96
|
-
if (
|
|
93
|
+
St(() => {
|
|
94
|
+
D.value && (Ie = new ResizeObserver((t) => {
|
|
95
|
+
for (const o of t) {
|
|
96
|
+
const { width: l, height: a } = o.contentRect;
|
|
97
|
+
if (l > 0 && a > 0) {
|
|
97
98
|
R();
|
|
98
99
|
break;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
}), Ie.observe(
|
|
102
|
+
}), Ie.observe(D.value.parentElement));
|
|
102
103
|
}), Tt(() => {
|
|
103
104
|
Ie?.disconnect();
|
|
104
105
|
}), Tt(() => {
|
|
105
|
-
j.value && (
|
|
106
|
+
j.value && (ve.value && j.value.unobserve(ve.value), j.value.disconnect());
|
|
106
107
|
});
|
|
107
|
-
const Me =
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
108
|
+
const Me = y(() => !!e.value.debug);
|
|
109
|
+
function st() {
|
|
110
|
+
if (Lt(k.dataset) ? (He({
|
|
110
111
|
componentName: "VueUiDonut",
|
|
111
112
|
type: "dataset",
|
|
112
113
|
debug: Me.value
|
|
113
|
-
}), we.value = !1, $e.value = !0) : (k.dataset.forEach((
|
|
114
|
-
|
|
115
|
-
datasetObject:
|
|
114
|
+
}), we.value = !1, $e.value = !0) : (k.dataset.forEach((t, o) => {
|
|
115
|
+
Al({
|
|
116
|
+
datasetObject: t,
|
|
116
117
|
requiredAttributes: ["name", "values"]
|
|
117
|
-
}).forEach((
|
|
118
|
-
|
|
118
|
+
}).forEach((l) => {
|
|
119
|
+
He({
|
|
119
120
|
componentName: "VueUiDonut",
|
|
120
121
|
type: "datasetSerieAttribute",
|
|
121
|
-
property:
|
|
122
|
+
property: l,
|
|
122
123
|
index: o,
|
|
123
124
|
debug: Me.value
|
|
124
125
|
}), we.value = !1, $e.value = !0;
|
|
125
126
|
});
|
|
126
|
-
}), k.dataset.forEach((
|
|
127
|
-
(!
|
|
127
|
+
}), k.dataset.forEach((t, o) => {
|
|
128
|
+
(!t.name || t.name === "") && He({
|
|
128
129
|
componentName: "VueUiDonut",
|
|
129
130
|
type: "datasetAttributeEmpty",
|
|
130
131
|
property: "name",
|
|
131
132
|
index: o,
|
|
132
133
|
debug: Me.value
|
|
133
134
|
});
|
|
134
|
-
})),
|
|
135
|
-
const
|
|
136
|
-
const { width: o, height:
|
|
137
|
-
chart:
|
|
138
|
-
title: e.value.style.chart.title.text ?
|
|
139
|
-
legend: e.value.style.chart.legend.show ?
|
|
140
|
-
source:
|
|
141
|
-
noTitle:
|
|
142
|
-
padding: e.value.autoSize ? void 0 :
|
|
135
|
+
})), Lt(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
136
|
+
const t = Xl(() => {
|
|
137
|
+
const { width: o, height: l } = Vl({
|
|
138
|
+
chart: D.value,
|
|
139
|
+
title: e.value.style.chart.title.text ? Ke.value : null,
|
|
140
|
+
legend: e.value.style.chart.legend.show ? Qe.value : null,
|
|
141
|
+
source: Ze.value,
|
|
142
|
+
noTitle: et.value,
|
|
143
|
+
padding: e.value.autoSize ? void 0 : vt.value
|
|
143
144
|
});
|
|
144
145
|
requestAnimationFrame(() => {
|
|
145
|
-
s.value.width = o, s.value.height =
|
|
146
|
+
s.value.width = o, s.value.height = l, R();
|
|
146
147
|
});
|
|
147
148
|
});
|
|
148
|
-
j.value && (
|
|
149
|
+
j.value && (ve.value && j.value.unobserve(ve.value), j.value.disconnect()), j.value = new ResizeObserver(t), ve.value = D.value.parentNode, j.value.observe(ve.value);
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
const ze =
|
|
152
|
+
const f = g(Sl());
|
|
153
|
+
g(null);
|
|
154
|
+
const ze = g(!1), Oe = g(""), N = g(null), nt = g(0);
|
|
154
155
|
function De() {
|
|
155
|
-
const
|
|
156
|
+
const t = Dt({
|
|
156
157
|
userConfig: k.config,
|
|
157
|
-
defaultConfig:
|
|
158
|
+
defaultConfig: Wt
|
|
158
159
|
});
|
|
159
160
|
let o = {};
|
|
160
|
-
return
|
|
161
|
-
...
|
|
162
|
-
userConfig:
|
|
163
|
-
defaultConfig:
|
|
161
|
+
return t.theme ? o = {
|
|
162
|
+
...Dt({
|
|
163
|
+
userConfig: Ql.vue_ui_donut[t.theme] || k.config,
|
|
164
|
+
defaultConfig: t
|
|
164
165
|
}),
|
|
165
|
-
customPalette:
|
|
166
|
-
} : o =
|
|
166
|
+
customPalette: Dl[t.theme] || ie
|
|
167
|
+
} : o = t, k.config && je(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && je(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && je(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
167
168
|
}
|
|
168
|
-
const e =
|
|
169
|
-
...
|
|
169
|
+
const e = g(De()), { loading: _e, FINAL_DATASET: de, manualLoading: $e, skeletonDataset: Kt } = Gl({
|
|
170
|
+
...xl(k),
|
|
170
171
|
FINAL_CONFIG: e,
|
|
171
172
|
prepareConfig: De,
|
|
172
173
|
skeletonDataset: [
|
|
@@ -186,7 +187,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
186
187
|
color: "#CACACA"
|
|
187
188
|
}
|
|
188
189
|
],
|
|
189
|
-
skeletonConfig:
|
|
190
|
+
skeletonConfig: Tl({
|
|
190
191
|
defaultConfig: e.value,
|
|
191
192
|
userConfig: {
|
|
192
193
|
useCssAnimation: !1,
|
|
@@ -223,69 +224,69 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
})
|
|
226
|
-
}),
|
|
227
|
-
function
|
|
227
|
+
}), S = g(!0), q = H([]);
|
|
228
|
+
function Qt(t, o = 1e3, l = 50) {
|
|
228
229
|
return new Promise((a) => {
|
|
229
|
-
const i =
|
|
230
|
-
|
|
230
|
+
const i = t.length;
|
|
231
|
+
q.value = Array(i).fill(0);
|
|
231
232
|
let c = 0;
|
|
232
|
-
|
|
233
|
+
t.forEach((m, C) => {
|
|
233
234
|
setTimeout(() => {
|
|
234
|
-
const
|
|
235
|
-
function
|
|
236
|
-
const Z = Math.min((
|
|
237
|
-
|
|
235
|
+
const M = performance.now();
|
|
236
|
+
function z(X) {
|
|
237
|
+
const Z = Math.min((X - M) / o, 1), Ge = Ot(Z);
|
|
238
|
+
q.value[C] = m * Ge, q.value = [...q.value], Z < 1 ? (requestAnimationFrame(z), requestAnimationFrame(R)) : (q.value[C] = m, q.value = [...q.value], c += 1, c === i && a(), requestAnimationFrame(R));
|
|
238
239
|
}
|
|
239
|
-
requestAnimationFrame(
|
|
240
|
-
}, C *
|
|
240
|
+
requestAnimationFrame(z);
|
|
241
|
+
}, C * l);
|
|
241
242
|
});
|
|
242
243
|
});
|
|
243
244
|
}
|
|
244
|
-
const
|
|
245
|
+
const ut = g(!1);
|
|
245
246
|
fe(
|
|
246
247
|
() => _e.value,
|
|
247
|
-
async (
|
|
248
|
-
if (
|
|
249
|
-
const o =
|
|
250
|
-
if (!o &&
|
|
251
|
-
|
|
252
|
-
const a =
|
|
248
|
+
async (t) => {
|
|
249
|
+
if (t || ut.value) return;
|
|
250
|
+
const o = de.value === Kt, l = e.value.startAnimation?.show;
|
|
251
|
+
if (!o && l) {
|
|
252
|
+
ut.value = !0;
|
|
253
|
+
const a = de.value.map(
|
|
253
254
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
254
255
|
);
|
|
255
|
-
await
|
|
256
|
+
await Qt(
|
|
256
257
|
a,
|
|
257
258
|
e.value.startAnimation.durationMs,
|
|
258
259
|
e.value.startAnimation.staggerMs
|
|
259
260
|
);
|
|
260
261
|
}
|
|
261
|
-
|
|
262
|
+
S.value = !1;
|
|
262
263
|
},
|
|
263
264
|
{ immediate: !0 }
|
|
264
265
|
);
|
|
265
|
-
const { userOptionsVisible: Ne, setUserOptionsVisibility:
|
|
266
|
-
function Qt() {
|
|
267
|
-
ut(!0);
|
|
268
|
-
}
|
|
266
|
+
const { userOptionsVisible: Ne, setUserOptionsVisibility: rt, keepUserOptionState: it } = Wl({ config: e.value }), { svgRef: le } = Hl({ config: e.value.style.chart.title });
|
|
269
267
|
function Zt() {
|
|
270
|
-
|
|
268
|
+
rt(!0);
|
|
269
|
+
}
|
|
270
|
+
function el() {
|
|
271
|
+
rt(!1);
|
|
271
272
|
}
|
|
272
|
-
fe(() => k.config, (
|
|
273
|
-
_e.value || (e.value = De()), Ne.value = !e.value.userOptions.showOnChartHover,
|
|
273
|
+
fe(() => k.config, (t) => {
|
|
274
|
+
_e.value || (e.value = De()), Ne.value = !e.value.userOptions.showOnChartHover, st(), tt.value += 1, lt.value += 1, at.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
|
|
274
275
|
}, { deep: !0 });
|
|
275
|
-
const
|
|
276
|
-
const { top:
|
|
276
|
+
const vt = y(() => {
|
|
277
|
+
const { top: t, right: o, bottom: l, left: a } = e.value.style.chart.padding;
|
|
277
278
|
return {
|
|
278
|
-
css: `padding:${
|
|
279
|
-
top:
|
|
279
|
+
css: `padding:${t}px ${o}px ${l}px ${a}px`,
|
|
280
|
+
top: t,
|
|
280
281
|
right: o,
|
|
281
|
-
bottom:
|
|
282
|
+
bottom: l,
|
|
282
283
|
left: a
|
|
283
284
|
};
|
|
284
|
-
}), { isPrinting:
|
|
285
|
-
elementId: `donut__${
|
|
285
|
+
}), { isPrinting: dt, isImaging: ct, generatePdf: ht, generateImage: yt } = Rl({
|
|
286
|
+
elementId: `donut__${f.value}`,
|
|
286
287
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
287
288
|
options: e.value.userOptions.print
|
|
288
|
-
}),
|
|
289
|
+
}), tl = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ft = y(() => Fl(e.value.customPalette)), p = g({
|
|
289
290
|
dataLabels: {
|
|
290
291
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
291
292
|
},
|
|
@@ -293,7 +294,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
293
294
|
showTooltip: e.value.style.chart.tooltip.show
|
|
294
295
|
});
|
|
295
296
|
fe(e, () => {
|
|
296
|
-
|
|
297
|
+
p.value = {
|
|
297
298
|
dataLabels: {
|
|
298
299
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
299
300
|
},
|
|
@@ -301,150 +302,163 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
301
302
|
showTooltip: e.value.style.chart.tooltip.show
|
|
302
303
|
};
|
|
303
304
|
}, { immediate: !0 });
|
|
304
|
-
const s =
|
|
305
|
+
const s = g({
|
|
305
306
|
height: e.value.style.chart.height,
|
|
306
307
|
width: e.value.style.chart.width
|
|
307
|
-
}),
|
|
308
|
+
}), ae = y(() => {
|
|
308
309
|
if (e.value.pie)
|
|
309
310
|
return _.value;
|
|
310
|
-
const
|
|
311
|
-
return Math.max(
|
|
312
|
-
}),
|
|
313
|
-
name:
|
|
314
|
-
color:
|
|
315
|
-
value:
|
|
316
|
-
absoluteValues:
|
|
317
|
-
comment:
|
|
311
|
+
const t = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * t, l = o > _.value ? _.value : o;
|
|
312
|
+
return Math.max(l, 12 * (1 + t));
|
|
313
|
+
}), gt = Yt, G = y(() => de.value.map((t, o) => ({
|
|
314
|
+
name: t.name,
|
|
315
|
+
color: It(t.color) || ft.value[o] || ie[o] || ie[o % ie.length],
|
|
316
|
+
value: Pl(t.values.reduce((l, a) => l + a, 0)),
|
|
317
|
+
absoluteValues: t.values,
|
|
318
|
+
comment: t.comment || "",
|
|
318
319
|
patternIndex: o,
|
|
319
320
|
seriesIndex: o,
|
|
320
321
|
ghost: !1,
|
|
321
|
-
pattern: `pattern_${
|
|
322
|
+
pattern: `pattern_${f.value}_${o}`
|
|
322
323
|
})));
|
|
323
|
-
fe(() => k.dataset, (
|
|
324
|
-
Array.isArray(
|
|
324
|
+
fe(() => k.dataset, (t) => {
|
|
325
|
+
Array.isArray(t) && t.length > 0 && ($e.value = !1);
|
|
325
326
|
}, { immediate: !0 });
|
|
326
|
-
const
|
|
327
|
-
fe(() => G.value, (
|
|
328
|
-
|
|
327
|
+
const I = H(G.value);
|
|
328
|
+
fe(() => G.value, (t) => {
|
|
329
|
+
I.value = t, requestAnimationFrame(R);
|
|
329
330
|
});
|
|
330
|
-
function
|
|
331
|
-
return G.value.map((
|
|
332
|
-
name:
|
|
333
|
-
color:
|
|
334
|
-
value:
|
|
331
|
+
function ll() {
|
|
332
|
+
return G.value.map((t) => ({
|
|
333
|
+
name: t.name,
|
|
334
|
+
color: t.color,
|
|
335
|
+
value: t.value
|
|
335
336
|
}));
|
|
336
337
|
}
|
|
337
|
-
const
|
|
338
|
-
function pt({ from:
|
|
338
|
+
const U = g([]), oe = g(!1);
|
|
339
|
+
function pt({ from: t, to: o, duration: l, onUpdate: a, onDone: i, easing: c = Ot }) {
|
|
339
340
|
const m = performance.now();
|
|
340
|
-
function C(
|
|
341
|
-
const
|
|
342
|
-
a(Z,
|
|
341
|
+
function C(M) {
|
|
342
|
+
const z = Math.min((M - m) / l, 1), X = c(z), Z = t + (o - t) * X;
|
|
343
|
+
a(Z, z), z < 1 ? requestAnimationFrame(C) : (a(o, 1), i && i());
|
|
343
344
|
}
|
|
344
345
|
requestAnimationFrame(C);
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
-
const o = G.value.find((i, c) => c ===
|
|
348
|
-
let a =
|
|
349
|
-
if (
|
|
347
|
+
function mt(t) {
|
|
348
|
+
const o = G.value.find((i, c) => c === t);
|
|
349
|
+
let a = I.value.find((i, c) => c === t).value;
|
|
350
|
+
if (U.value.includes(t)) {
|
|
350
351
|
let c = function() {
|
|
351
|
-
|
|
352
|
-
(C,
|
|
352
|
+
I.value = I.value.map(
|
|
353
|
+
(C, M) => t === M ? { ...C, value: i } : C
|
|
353
354
|
);
|
|
354
355
|
}, m = function() {
|
|
355
|
-
|
|
356
|
+
oe.value = !0, pt({
|
|
356
357
|
from: a,
|
|
357
358
|
to: i,
|
|
358
359
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
359
|
-
onUpdate: (C,
|
|
360
|
-
|
|
361
|
-
(
|
|
360
|
+
onUpdate: (C, M) => {
|
|
361
|
+
I.value = I.value.map(
|
|
362
|
+
(z, X) => t === X ? { ...z, value: C } : z
|
|
362
363
|
), requestAnimationFrame(R);
|
|
363
364
|
},
|
|
364
365
|
onDone: () => {
|
|
365
|
-
c(),
|
|
366
|
+
c(), oe.value = !1;
|
|
366
367
|
}
|
|
367
368
|
});
|
|
368
369
|
};
|
|
369
|
-
|
|
370
|
+
U.value = U.value.filter((C) => C !== t);
|
|
370
371
|
const i = o.value;
|
|
371
372
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(R));
|
|
372
|
-
} else if (
|
|
373
|
+
} else if (U.value.length < G.value.length - 1) {
|
|
373
374
|
let i = function() {
|
|
374
|
-
|
|
375
|
-
(m, C) =>
|
|
375
|
+
U.value.push(t), I.value = I.value.map(
|
|
376
|
+
(m, C) => t === C ? { ...m, value: 0 } : m
|
|
376
377
|
);
|
|
377
378
|
}, c = function() {
|
|
378
|
-
|
|
379
|
+
oe.value = !0, pt({
|
|
379
380
|
from: a,
|
|
380
381
|
to: 0,
|
|
381
382
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
382
383
|
onUpdate: (m, C) => {
|
|
383
|
-
|
|
384
|
-
(
|
|
384
|
+
I.value = I.value.map(
|
|
385
|
+
(M, z) => t === z ? { ...M, value: m } : M
|
|
385
386
|
), requestAnimationFrame(R);
|
|
386
387
|
},
|
|
387
388
|
onDone: () => {
|
|
388
|
-
i(), requestAnimationFrame(R),
|
|
389
|
+
i(), requestAnimationFrame(R), oe.value = !1;
|
|
389
390
|
}
|
|
390
391
|
});
|
|
391
392
|
};
|
|
392
393
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
393
394
|
}
|
|
394
|
-
|
|
395
|
+
gt("selectLegend", W.value.map((i) => ({
|
|
395
396
|
name: i.name,
|
|
396
397
|
color: i.color,
|
|
397
398
|
value: i.value
|
|
398
399
|
})));
|
|
399
400
|
}
|
|
400
|
-
const
|
|
401
|
-
if (
|
|
402
|
-
const
|
|
401
|
+
const al = y(() => de.value.reduce((t, o) => t + o.values.reduce((l, a) => l + a, 0), 0)), W = y(() => {
|
|
402
|
+
if (S.value && !_e.value) {
|
|
403
|
+
const t = q.value.map((l, a) => ({
|
|
403
404
|
...G.value[a],
|
|
404
|
-
value:
|
|
405
|
+
value: l,
|
|
405
406
|
color: G.value[a].color,
|
|
406
407
|
ghost: !1
|
|
407
|
-
})), o =
|
|
408
|
-
return o > 0 &&
|
|
408
|
+
})), o = al.value - q.value.reduce((l, a) => l + a, 0);
|
|
409
|
+
return o > 0 && t.push({
|
|
409
410
|
name: "__ghost__",
|
|
410
411
|
value: o,
|
|
411
412
|
color: "transparent",
|
|
412
413
|
ghost: !0
|
|
413
|
-
}),
|
|
414
|
+
}), t;
|
|
414
415
|
} else
|
|
415
|
-
return
|
|
416
|
-
if ([null, void 0].includes(
|
|
416
|
+
return I.value.forEach((t, o) => {
|
|
417
|
+
if ([null, void 0].includes(t.values))
|
|
417
418
|
return {
|
|
418
|
-
...
|
|
419
|
+
...t,
|
|
419
420
|
values: []
|
|
420
421
|
};
|
|
421
|
-
}),
|
|
422
|
-
...
|
|
422
|
+
}), I.value.map((t, o) => ({
|
|
423
|
+
...t,
|
|
423
424
|
seriesIndex: o
|
|
424
|
-
})).filter((
|
|
425
|
-
}),
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
425
|
+
})).filter((t, o) => !U.value.includes(o));
|
|
426
|
+
}), Ye = y(() => de.value.map((t, o) => {
|
|
427
|
+
const l = (t.values || []).reduce((i, c) => i + c, 0), a = l / de.value.map((i) => (i.values || []).reduce((c, m) => c + m, 0)).reduce((i, c) => i + c, 0);
|
|
428
|
+
return {
|
|
429
|
+
name: t.name,
|
|
430
|
+
color: It(t.color) || ft.value[o] || ie[o] || ie[o % ie.length],
|
|
431
|
+
value: l,
|
|
432
|
+
shape: "circle",
|
|
433
|
+
patternIndex: o,
|
|
434
|
+
proportion: a
|
|
435
|
+
};
|
|
436
|
+
}).map((t, o) => ({
|
|
437
|
+
...t,
|
|
438
|
+
opacity: U.value.includes(o) ? 0.5 : 1,
|
|
439
|
+
segregate: () => !oe.value && mt(o),
|
|
440
|
+
isSegregated: U.value.includes(o),
|
|
441
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? E(e.value.style.chart.layout.labels.value.formatter, t.value, O({
|
|
442
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
443
|
+
v: t.value,
|
|
444
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
445
|
+
r: e.value.style.chart.legend.roundingValue
|
|
446
|
+
}), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? U.value.includes(o) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${il(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / P.value) ? "-" : E(e.value.style.chart.layout.labels.percentage.formatter, bt(t), O({
|
|
447
|
+
v: bt(t),
|
|
448
|
+
s: "%",
|
|
449
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
450
|
+
}))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
451
|
+
}))), ol = y(() => ({
|
|
438
452
|
cy: "donut-div-legend",
|
|
439
453
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
440
454
|
color: e.value.style.chart.legend.color,
|
|
441
455
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
442
456
|
paddingBottom: 12,
|
|
443
457
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
444
|
-
})), _ =
|
|
445
|
-
const
|
|
446
|
-
return Math.max(12,
|
|
447
|
-
}),
|
|
458
|
+
})), _ = y(() => {
|
|
459
|
+
const t = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(s.value.width * o, s.value.height * o);
|
|
460
|
+
return Math.max(12, l);
|
|
461
|
+
}), T = y(() => Mt({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), sl = y(() => Math.abs(W.value.map((t) => t.value).reduce((t, o) => t + o, 0)) > 0), nl = y(() => Mt({
|
|
448
462
|
series: [
|
|
449
463
|
{
|
|
450
464
|
value: 1,
|
|
@@ -456,56 +470,60 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
456
470
|
absoluteValues: [1]
|
|
457
471
|
}
|
|
458
472
|
]
|
|
459
|
-
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25,
|
|
460
|
-
const
|
|
461
|
-
return
|
|
473
|
+
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), Y = y(() => T.value.filter((t) => !t.ghost)), d = y(() => {
|
|
474
|
+
const t = Math.max(...W.value.map((l) => l.value)), o = W.value.map((l) => l.value / t);
|
|
475
|
+
return Ll({
|
|
462
476
|
series: o,
|
|
463
477
|
center: {
|
|
464
478
|
x: s.value.width / 2,
|
|
465
479
|
y: s.value.height / 2
|
|
466
480
|
},
|
|
467
481
|
maxRadius: Math.min(s.value.width, s.value.height) / 3,
|
|
468
|
-
hasGhost:
|
|
482
|
+
hasGhost: S.value
|
|
469
483
|
});
|
|
470
484
|
});
|
|
471
|
-
function ce(
|
|
472
|
-
return
|
|
485
|
+
function ce(t) {
|
|
486
|
+
return t.x > s.value.width / 2 + 6 ? "start" : t.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
473
487
|
}
|
|
474
|
-
function
|
|
475
|
-
return
|
|
488
|
+
function ul(t) {
|
|
489
|
+
return t.middlePoint.y > s.value.height / 2 ? F({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : F({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
476
490
|
}
|
|
477
|
-
function B(
|
|
478
|
-
return
|
|
491
|
+
function B(t) {
|
|
492
|
+
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
479
493
|
}
|
|
480
|
-
function
|
|
481
|
-
const
|
|
482
|
-
return isNaN(
|
|
494
|
+
function Be(t, o) {
|
|
495
|
+
const l = t.value / rl(o);
|
|
496
|
+
return isNaN(l) ? 0 : E(
|
|
483
497
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
v:
|
|
498
|
+
l * 100,
|
|
499
|
+
O({
|
|
500
|
+
v: l * 100,
|
|
487
501
|
s: "%",
|
|
488
502
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
489
503
|
}),
|
|
490
|
-
{ datapoint:
|
|
504
|
+
{ datapoint: t }
|
|
491
505
|
);
|
|
492
506
|
}
|
|
493
|
-
function
|
|
494
|
-
return [...
|
|
507
|
+
function rl(t) {
|
|
508
|
+
return [...t].map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
509
|
+
}
|
|
510
|
+
const P = y(() => W.value.map((t) => t.value).reduce((t, o) => t + o, 0)), Xe = y(() => P.value / W.value.length);
|
|
511
|
+
function bt(t) {
|
|
512
|
+
return oe.value ? t.proportion * 100 : t.value / P.value * 100;
|
|
495
513
|
}
|
|
496
|
-
const
|
|
497
|
-
function he({ datapoint:
|
|
498
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
514
|
+
const Ve = g(null), me = g(!1);
|
|
515
|
+
function he({ datapoint: t, seriesIndex: o }) {
|
|
516
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), ze.value = !1, N.value = null;
|
|
499
517
|
}
|
|
500
|
-
function ye({ datapoint:
|
|
501
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
518
|
+
function ye({ datapoint: t, relativeIndex: o, seriesIndex: l, show: a = !1 }) {
|
|
519
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ve.value = { datapoint: t, seriesIndex: l, config: e.value, series: G.value }, ze.value = a, N.value = o;
|
|
502
520
|
let i = "";
|
|
503
521
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
504
|
-
if (me.value = !1,
|
|
522
|
+
if (me.value = !1, Bl(c))
|
|
505
523
|
try {
|
|
506
524
|
const m = c({
|
|
507
|
-
seriesIndex:
|
|
508
|
-
datapoint:
|
|
525
|
+
seriesIndex: l,
|
|
526
|
+
datapoint: t,
|
|
509
527
|
series: G.value,
|
|
510
528
|
config: e.value
|
|
511
529
|
});
|
|
@@ -514,62 +532,62 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
514
532
|
console.warn("Custom format cannot be applied."), me.value = !1;
|
|
515
533
|
}
|
|
516
534
|
if (!me.value) {
|
|
517
|
-
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
535
|
+
if (i += `<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>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${Ht.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${f.value}_${l})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${E(
|
|
518
536
|
e.value.style.chart.layout.labels.value.formatter,
|
|
519
|
-
|
|
520
|
-
|
|
537
|
+
t.value,
|
|
538
|
+
O({
|
|
521
539
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
522
|
-
v:
|
|
540
|
+
v: t.value,
|
|
523
541
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
524
542
|
r: e.value.style.chart.tooltip.roundingValue
|
|
525
543
|
}),
|
|
526
544
|
{
|
|
527
|
-
datapoint:
|
|
545
|
+
datapoint: t,
|
|
528
546
|
relativeIndex: o,
|
|
529
|
-
seriesIndex:
|
|
547
|
+
seriesIndex: l
|
|
530
548
|
}
|
|
531
549
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
532
550
|
const m = E(
|
|
533
551
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
v:
|
|
552
|
+
t.proportion * 100,
|
|
553
|
+
O({
|
|
554
|
+
v: t.proportion * 100,
|
|
537
555
|
s: "%",
|
|
538
556
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
539
557
|
}),
|
|
540
558
|
{
|
|
541
|
-
datapoint:
|
|
559
|
+
datapoint: t,
|
|
542
560
|
relativeIndex: o,
|
|
543
|
-
seriesIndex:
|
|
561
|
+
seriesIndex: l
|
|
544
562
|
}
|
|
545
563
|
);
|
|
546
564
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
547
565
|
}
|
|
548
|
-
e.value.style.chart.comments.showInTooltip &&
|
|
566
|
+
e.value.style.chart.comments.showInTooltip && t.comment && (i += `<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>`), Oe.value = `<div>${i}</div>`;
|
|
549
567
|
}
|
|
550
568
|
}
|
|
551
|
-
function
|
|
552
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
569
|
+
function se(t) {
|
|
570
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(N.value) && N.value !== t ? `url(#blur_${f.value})` : "";
|
|
553
571
|
}
|
|
554
|
-
const K =
|
|
555
|
-
const
|
|
556
|
-
name:
|
|
557
|
-
color:
|
|
558
|
-
})), o = W.value.map((
|
|
559
|
-
return { head:
|
|
572
|
+
const K = y(() => {
|
|
573
|
+
const t = W.value.map((l) => ({
|
|
574
|
+
name: l.name,
|
|
575
|
+
color: l.color
|
|
576
|
+
})), o = W.value.map((l) => l.value);
|
|
577
|
+
return { head: t, body: o };
|
|
560
578
|
});
|
|
561
|
-
function
|
|
562
|
-
|
|
579
|
+
function Ee(t = null) {
|
|
580
|
+
Cl(() => {
|
|
563
581
|
const o = K.value.head.map((i, c) => [[
|
|
564
582
|
i.name
|
|
565
|
-
], [K.value.body[c]], [isNaN(K.value.body[c] / P.value) ? "-" : K.value.body[c] / P.value * 100]]),
|
|
566
|
-
|
|
583
|
+
], [K.value.body[c]], [isNaN(K.value.body[c] / P.value) ? "-" : K.value.body[c] / P.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Nl(l);
|
|
584
|
+
t ? t(a) : Yl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
567
585
|
});
|
|
568
586
|
}
|
|
569
|
-
const Ce =
|
|
570
|
-
const
|
|
587
|
+
const Ce = y(() => {
|
|
588
|
+
const t = [
|
|
571
589
|
' <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>',
|
|
572
|
-
|
|
590
|
+
O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: P.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
573
591
|
"100%"
|
|
574
592
|
], o = K.value.head.map((i, c) => [
|
|
575
593
|
{
|
|
@@ -578,7 +596,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
578
596
|
},
|
|
579
597
|
K.value.body[c],
|
|
580
598
|
isNaN(K.value.body[c] / P.value) ? "-" : (K.value.body[c] / P.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
581
|
-
]),
|
|
599
|
+
]), l = {
|
|
582
600
|
th: {
|
|
583
601
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
584
602
|
color: e.value.table.th.color,
|
|
@@ -597,63 +615,63 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
597
615
|
e.value.table.columnNames.value,
|
|
598
616
|
e.value.table.columnNames.percentage
|
|
599
617
|
],
|
|
600
|
-
head:
|
|
618
|
+
head: t,
|
|
601
619
|
body: o,
|
|
602
|
-
config:
|
|
620
|
+
config: l
|
|
603
621
|
};
|
|
604
|
-
}),
|
|
605
|
-
function wt(
|
|
606
|
-
|
|
622
|
+
}), ne = g(!1);
|
|
623
|
+
function wt(t) {
|
|
624
|
+
ne.value = t, nt.value += 1;
|
|
607
625
|
}
|
|
608
|
-
const kt =
|
|
609
|
-
function
|
|
610
|
-
return
|
|
626
|
+
const kt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
627
|
+
function il(t) {
|
|
628
|
+
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
611
629
|
}
|
|
612
|
-
function Q(
|
|
613
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
630
|
+
function Q(t, o) {
|
|
631
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), gt("selectDatapoint", { datapoint: t, index: o });
|
|
614
632
|
}
|
|
615
633
|
function xt() {
|
|
616
|
-
|
|
634
|
+
p.value.showTable = !p.value.showTable;
|
|
617
635
|
}
|
|
618
636
|
function _t() {
|
|
619
|
-
|
|
637
|
+
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
620
638
|
}
|
|
621
639
|
function $t() {
|
|
622
|
-
|
|
640
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
623
641
|
}
|
|
624
|
-
const Ae =
|
|
625
|
-
function
|
|
642
|
+
const Ae = g(!1);
|
|
643
|
+
function Re() {
|
|
626
644
|
Ae.value = !Ae.value;
|
|
627
645
|
}
|
|
628
|
-
async function
|
|
629
|
-
if (!
|
|
630
|
-
const { width: o, height:
|
|
646
|
+
async function vl({ scale: t = 2 } = {}) {
|
|
647
|
+
if (!D.value) return;
|
|
648
|
+
const { width: o, height: l } = D.value.getBoundingClientRect(), a = o / l, { imageUri: i, base64: c } = await jl({ domElement: D.value, base64: !0, img: !0, scale: t });
|
|
631
649
|
return {
|
|
632
650
|
imageUri: i,
|
|
633
651
|
base64: c,
|
|
634
652
|
title: e.value.style.chart.title.text,
|
|
635
653
|
width: o,
|
|
636
|
-
height:
|
|
654
|
+
height: l,
|
|
637
655
|
aspectRatio: a
|
|
638
656
|
};
|
|
639
657
|
}
|
|
640
|
-
function
|
|
658
|
+
function dl() {
|
|
641
659
|
if (!ke.value) return;
|
|
642
|
-
const { x:
|
|
643
|
-
|
|
660
|
+
const { x: t, y: o, width: l, height: a } = ke.value.getBBox();
|
|
661
|
+
le.value && le.value.setAttribute("viewBox", `${t} ${o} ${l + Math.min(0, t)} ${a + Math.min(0, o)}`);
|
|
644
662
|
}
|
|
645
|
-
const be =
|
|
646
|
-
const
|
|
663
|
+
const be = y(() => {
|
|
664
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = p.value.showTable;
|
|
647
665
|
return {
|
|
648
|
-
component:
|
|
666
|
+
component: t ? qt : Vt,
|
|
649
667
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
650
|
-
props:
|
|
668
|
+
props: t ? {
|
|
651
669
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
652
670
|
color: e.value.table.th.color,
|
|
653
671
|
headerColor: e.value.table.th.color,
|
|
654
672
|
headerBg: e.value.table.th.backgroundColor,
|
|
655
|
-
isFullscreen:
|
|
656
|
-
fullscreenParent:
|
|
673
|
+
isFullscreen: ne.value,
|
|
674
|
+
fullscreenParent: D.value,
|
|
657
675
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
658
676
|
} : {
|
|
659
677
|
hideDetails: !0,
|
|
@@ -672,57 +690,75 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
672
690
|
}
|
|
673
691
|
};
|
|
674
692
|
});
|
|
675
|
-
fe(() =>
|
|
676
|
-
e.value.table.show || (
|
|
693
|
+
fe(() => p.value.showTable, (t) => {
|
|
694
|
+
e.value.table.show || (t && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
677
695
|
});
|
|
678
696
|
function Ct() {
|
|
679
|
-
|
|
697
|
+
p.value.showTable = !1, Pe.value && Pe.value.setTableIconState(!1);
|
|
680
698
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
699
|
+
const cl = y(() => Ye.value.map((t) => ({
|
|
700
|
+
...t,
|
|
701
|
+
name: t.display
|
|
702
|
+
}))), hl = y(() => e.value.style.chart.backgroundColor), yl = y(() => e.value.style.chart.legend), fl = y(() => e.value.style.chart.title), { exportSvg: gl, getSvg: pl } = ql({
|
|
703
|
+
svg: le,
|
|
704
|
+
title: fl,
|
|
705
|
+
legend: yl,
|
|
706
|
+
legendItems: cl,
|
|
707
|
+
backgroundColor: hl
|
|
708
|
+
});
|
|
709
|
+
async function At({ isCb: t }) {
|
|
710
|
+
if (t) {
|
|
711
|
+
const { blob: o, url: l, text: a, dataUrl: i } = await pl();
|
|
712
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: i });
|
|
713
|
+
} else
|
|
714
|
+
gl();
|
|
715
|
+
}
|
|
716
|
+
return Nt({
|
|
717
|
+
autoSize: dl,
|
|
718
|
+
getData: ll,
|
|
719
|
+
getImage: vl,
|
|
720
|
+
generatePdf: ht,
|
|
721
|
+
generateCsv: Ee,
|
|
722
|
+
generateImage: yt,
|
|
723
|
+
generateSvg: At,
|
|
688
724
|
toggleTable: xt,
|
|
689
725
|
toggleLabels: _t,
|
|
690
726
|
toggleTooltip: $t,
|
|
691
|
-
toggleAnnotator:
|
|
727
|
+
toggleAnnotator: Re,
|
|
692
728
|
toggleFullscreen: wt
|
|
693
|
-
}), (
|
|
729
|
+
}), (t, o) => (n(), r("div", {
|
|
694
730
|
ref_key: "donutChart",
|
|
695
|
-
ref:
|
|
696
|
-
class:
|
|
731
|
+
ref: D,
|
|
732
|
+
class: Ue(`vue-data-ui-component vue-ui-donut ${ne.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
697
733
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
698
|
-
id: `donut__${
|
|
699
|
-
onMouseenter:
|
|
700
|
-
onMouseleave:
|
|
734
|
+
id: `donut__${f.value}`,
|
|
735
|
+
onMouseenter: Zt,
|
|
736
|
+
onMouseleave: el
|
|
701
737
|
}, [
|
|
702
|
-
e.value.userOptions.buttons.annotator && u(
|
|
738
|
+
e.value.userOptions.buttons.annotator && u(le) ? (n(), te(u(Rt), {
|
|
703
739
|
key: 0,
|
|
704
740
|
color: e.value.style.chart.color,
|
|
705
741
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
706
742
|
active: Ae.value,
|
|
707
|
-
svgRef: u(
|
|
708
|
-
onClose:
|
|
743
|
+
svgRef: u(le),
|
|
744
|
+
onClose: Re
|
|
709
745
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
710
|
-
b(
|
|
711
|
-
|
|
746
|
+
b(t.$slots, "userConfig", {}, void 0, !0),
|
|
747
|
+
tl.value ? (n(), r("div", {
|
|
712
748
|
key: 1,
|
|
713
749
|
ref_key: "noTitle",
|
|
714
|
-
ref:
|
|
750
|
+
ref: et,
|
|
715
751
|
class: "vue-data-ui-no-title-space",
|
|
716
752
|
style: "height:36px; width: 100%;background:transparent"
|
|
717
753
|
}, null, 512)) : v("", !0),
|
|
718
754
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
719
755
|
key: 2,
|
|
720
756
|
ref_key: "chartTitle",
|
|
721
|
-
ref:
|
|
757
|
+
ref: Ke,
|
|
722
758
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
723
759
|
}, [
|
|
724
|
-
(n(), te(
|
|
725
|
-
key: `title_${
|
|
760
|
+
(n(), te(Kl, {
|
|
761
|
+
key: `title_${tt.value}`,
|
|
726
762
|
config: {
|
|
727
763
|
title: {
|
|
728
764
|
cy: "donut-div-title",
|
|
@@ -736,123 +772,125 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
736
772
|
}, null, 8, ["config"]))
|
|
737
773
|
], 512)) : v("", !0),
|
|
738
774
|
h("div", {
|
|
739
|
-
id: `legend-top-${
|
|
740
|
-
}, null, 8,
|
|
741
|
-
e.value.userOptions.show && we.value && (u(
|
|
775
|
+
id: `legend-top-${f.value}`
|
|
776
|
+
}, null, 8, la),
|
|
777
|
+
e.value.userOptions.show && we.value && (u(it) || u(Ne)) ? (n(), te(u(Gt), {
|
|
742
778
|
ref_key: "userOptionsRef",
|
|
743
779
|
ref: Pe,
|
|
744
|
-
key: `user_option_${
|
|
780
|
+
key: `user_option_${nt.value}`,
|
|
745
781
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
746
782
|
color: e.value.style.chart.color,
|
|
747
|
-
isPrinting: u(
|
|
748
|
-
isImaging: u(
|
|
749
|
-
uid:
|
|
783
|
+
isPrinting: u(dt),
|
|
784
|
+
isImaging: u(ct),
|
|
785
|
+
uid: f.value,
|
|
750
786
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
751
787
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
752
788
|
hasImg: e.value.userOptions.buttons.img,
|
|
789
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
753
790
|
hasXls: e.value.userOptions.buttons.csv,
|
|
754
791
|
hasTable: e.value.userOptions.buttons.table,
|
|
755
792
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
756
793
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
757
|
-
isFullscreen:
|
|
758
|
-
chartElement:
|
|
794
|
+
isFullscreen: ne.value,
|
|
795
|
+
chartElement: D.value,
|
|
759
796
|
position: e.value.userOptions.position,
|
|
760
797
|
callbacks: e.value.userOptions.callbacks,
|
|
761
|
-
isTooltip:
|
|
798
|
+
isTooltip: p.value.showTooltip,
|
|
762
799
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
763
800
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
764
801
|
isAnnotation: Ae.value,
|
|
765
802
|
printScale: e.value.userOptions.print.scale,
|
|
766
803
|
tableDialog: e.value.table.useDialog,
|
|
767
804
|
onToggleFullscreen: wt,
|
|
768
|
-
onGeneratePdf: u(
|
|
769
|
-
onGenerateCsv:
|
|
770
|
-
onGenerateImage: u(
|
|
805
|
+
onGeneratePdf: u(ht),
|
|
806
|
+
onGenerateCsv: Ee,
|
|
807
|
+
onGenerateImage: u(yt),
|
|
808
|
+
onGenerateSvg: At,
|
|
771
809
|
onToggleTable: xt,
|
|
772
810
|
onToggleLabels: _t,
|
|
773
811
|
onToggleTooltip: $t,
|
|
774
|
-
onToggleAnnotator:
|
|
775
|
-
style: $({ visibility: u(
|
|
812
|
+
onToggleAnnotator: Re,
|
|
813
|
+
style: $({ visibility: u(it) ? u(Ne) ? "visible" : "hidden" : "visible" })
|
|
776
814
|
}, qe({ _: 2 }, [
|
|
777
|
-
|
|
815
|
+
t.$slots.menuIcon ? {
|
|
778
816
|
name: "menuIcon",
|
|
779
|
-
fn: A(({ isOpen:
|
|
780
|
-
b(
|
|
817
|
+
fn: A(({ isOpen: l, color: a }) => [
|
|
818
|
+
b(t.$slots, "menuIcon", ue(re({ isOpen: l, color: a })), void 0, !0)
|
|
781
819
|
]),
|
|
782
820
|
key: "0"
|
|
783
821
|
} : void 0,
|
|
784
|
-
|
|
822
|
+
t.$slots.optionTooltip ? {
|
|
785
823
|
name: "optionTooltip",
|
|
786
824
|
fn: A(() => [
|
|
787
|
-
b(
|
|
825
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
788
826
|
]),
|
|
789
827
|
key: "1"
|
|
790
828
|
} : void 0,
|
|
791
|
-
|
|
829
|
+
t.$slots.optionPdf ? {
|
|
792
830
|
name: "optionPdf",
|
|
793
831
|
fn: A(() => [
|
|
794
|
-
b(
|
|
832
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
795
833
|
]),
|
|
796
834
|
key: "2"
|
|
797
835
|
} : void 0,
|
|
798
|
-
|
|
836
|
+
t.$slots.optionCsv ? {
|
|
799
837
|
name: "optionCsv",
|
|
800
838
|
fn: A(() => [
|
|
801
|
-
b(
|
|
839
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
802
840
|
]),
|
|
803
841
|
key: "3"
|
|
804
842
|
} : void 0,
|
|
805
|
-
|
|
843
|
+
t.$slots.optionImg ? {
|
|
806
844
|
name: "optionImg",
|
|
807
845
|
fn: A(() => [
|
|
808
|
-
b(
|
|
846
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
809
847
|
]),
|
|
810
848
|
key: "4"
|
|
811
849
|
} : void 0,
|
|
812
|
-
|
|
850
|
+
t.$slots.optionTable ? {
|
|
813
851
|
name: "optionTable",
|
|
814
852
|
fn: A(() => [
|
|
815
|
-
b(
|
|
853
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
816
854
|
]),
|
|
817
855
|
key: "5"
|
|
818
856
|
} : void 0,
|
|
819
|
-
|
|
857
|
+
t.$slots.optionLabels ? {
|
|
820
858
|
name: "optionLabels",
|
|
821
859
|
fn: A(() => [
|
|
822
|
-
b(
|
|
860
|
+
b(t.$slots, "optionLabels", {}, void 0, !0)
|
|
823
861
|
]),
|
|
824
862
|
key: "6"
|
|
825
863
|
} : void 0,
|
|
826
|
-
|
|
864
|
+
t.$slots.optionFullscreen ? {
|
|
827
865
|
name: "optionFullscreen",
|
|
828
|
-
fn: A(({ toggleFullscreen:
|
|
829
|
-
b(
|
|
866
|
+
fn: A(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
867
|
+
b(t.$slots, "optionFullscreen", ue(re({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
830
868
|
]),
|
|
831
869
|
key: "7"
|
|
832
870
|
} : void 0,
|
|
833
|
-
|
|
871
|
+
t.$slots.optionAnnotator ? {
|
|
834
872
|
name: "optionAnnotator",
|
|
835
|
-
fn: A(({ toggleAnnotator:
|
|
836
|
-
b(
|
|
873
|
+
fn: A(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
874
|
+
b(t.$slots, "optionAnnotator", ue(re({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
837
875
|
]),
|
|
838
876
|
key: "8"
|
|
839
877
|
} : void 0
|
|
840
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
878
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
841
879
|
(n(), r("svg", {
|
|
842
880
|
ref_key: "svgRef",
|
|
843
|
-
ref:
|
|
844
|
-
xmlns: u(
|
|
845
|
-
class:
|
|
881
|
+
ref: le,
|
|
882
|
+
xmlns: u(Il),
|
|
883
|
+
class: Ue({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value, "vue-data-ui-svg": !0 }),
|
|
846
884
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
847
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
885
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${vt.value.css}`)
|
|
848
886
|
}, [
|
|
849
887
|
h("g", {
|
|
850
888
|
ref_key: "G",
|
|
851
889
|
ref: ke,
|
|
852
890
|
class: "vue-data-ui-g"
|
|
853
891
|
}, [
|
|
854
|
-
|
|
855
|
-
|
|
892
|
+
Se(u(Ut)),
|
|
893
|
+
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
856
894
|
key: 0,
|
|
857
895
|
x: 0,
|
|
858
896
|
y: 0,
|
|
@@ -862,55 +900,55 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
862
900
|
pointerEvents: "none"
|
|
863
901
|
}
|
|
864
902
|
}, [
|
|
865
|
-
b(
|
|
866
|
-
], 8,
|
|
867
|
-
e.value.type === "classic" && !isNaN(
|
|
903
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
904
|
+
], 8, oa)) : v("", !0),
|
|
905
|
+
e.value.type === "classic" && !isNaN(ae.value / _.value) ? (n(), r("defs", sa, [
|
|
868
906
|
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
869
907
|
key: 0,
|
|
870
|
-
id: `gradient_${
|
|
908
|
+
id: `gradient_${f.value}`
|
|
871
909
|
}, [
|
|
872
910
|
h("stop", {
|
|
873
911
|
offset: "0%",
|
|
874
912
|
"stop-color": u(Fe)(e.value.style.chart.backgroundColor, 0),
|
|
875
913
|
"stop-opacity": "0"
|
|
876
|
-
}, null, 8,
|
|
914
|
+
}, null, 8, ua),
|
|
877
915
|
h("stop", {
|
|
878
|
-
offset: `${(1 -
|
|
916
|
+
offset: `${(1 - ae.value / _.value) * 100}%`,
|
|
879
917
|
"stop-color": u(Fe)("#FFFFFF", 0),
|
|
880
918
|
"stop-opacity": "0"
|
|
881
|
-
}, null, 8,
|
|
919
|
+
}, null, 8, ra),
|
|
882
920
|
h("stop", {
|
|
883
|
-
offset: `${(1 -
|
|
921
|
+
offset: `${(1 - ae.value / _.value / 2) * 100}%`,
|
|
884
922
|
"stop-color": u(Fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
885
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, ia),
|
|
886
924
|
h("stop", {
|
|
887
925
|
offset: "100%",
|
|
888
926
|
"stop-color": u(Fe)(e.value.style.chart.backgroundColor, 0),
|
|
889
927
|
"stop-opacity": "0"
|
|
890
|
-
}, null, 8,
|
|
891
|
-
], 8,
|
|
928
|
+
}, null, 8, va)
|
|
929
|
+
], 8, na)) : v("", !0)
|
|
892
930
|
])) : v("", !0),
|
|
893
|
-
e.value.type === "polar" ? (n(), r("defs",
|
|
894
|
-
(n(!0), r(w, null, L(d.value, (
|
|
895
|
-
id: `polar_gradient_${a}_${
|
|
896
|
-
cx: (isNaN(
|
|
897
|
-
cy: (isNaN(
|
|
931
|
+
e.value.type === "polar" ? (n(), r("defs", da, [
|
|
932
|
+
(n(!0), r(w, null, L(d.value, (l, a) => (n(), r("radialGradient", {
|
|
933
|
+
id: `polar_gradient_${a}_${f.value}`,
|
|
934
|
+
cx: (isNaN(l.middlePoint.x / s.value.width * 100) ? 0 : l.middlePoint.x / s.value.width * 100) + "%",
|
|
935
|
+
cy: (isNaN(l.middlePoint.y / s.value.height * 100) ? 0 : l.middlePoint.y / s.value.height * 100) + "%",
|
|
898
936
|
r: "62%"
|
|
899
937
|
}, [
|
|
900
938
|
h("stop", {
|
|
901
939
|
offset: "0%",
|
|
902
|
-
"stop-color": u(
|
|
940
|
+
"stop-color": u(Ml)(T.value[a].color, 0.05),
|
|
903
941
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
904
|
-
}, null, 8,
|
|
942
|
+
}, null, 8, ha),
|
|
905
943
|
h("stop", {
|
|
906
944
|
offset: "100%",
|
|
907
|
-
"stop-color":
|
|
908
|
-
}, null, 8,
|
|
909
|
-
], 8,
|
|
945
|
+
"stop-color": T.value[a].color
|
|
946
|
+
}, null, 8, ya)
|
|
947
|
+
], 8, ca))), 256))
|
|
910
948
|
])) : v("", !0),
|
|
911
949
|
h("defs", null, [
|
|
912
950
|
h("filter", {
|
|
913
|
-
id: `blur_${
|
|
951
|
+
id: `blur_${f.value}`,
|
|
914
952
|
x: "-50%",
|
|
915
953
|
y: "-50%",
|
|
916
954
|
width: "200%",
|
|
@@ -919,15 +957,15 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
919
957
|
h("feGaussianBlur", {
|
|
920
958
|
in: "SourceGraphic",
|
|
921
959
|
stdDeviation: 2,
|
|
922
|
-
id: `blur_std_${
|
|
923
|
-
}, null, 8,
|
|
960
|
+
id: `blur_std_${f.value}`
|
|
961
|
+
}, null, 8, ga),
|
|
924
962
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
925
963
|
type: "saturate",
|
|
926
964
|
values: "0"
|
|
927
965
|
}, null, -1))
|
|
928
|
-
], 8,
|
|
966
|
+
], 8, fa),
|
|
929
967
|
h("filter", {
|
|
930
|
-
id: `shadow_${
|
|
968
|
+
id: `shadow_${f.value}`,
|
|
931
969
|
"color-interpolation-filters": "sRGB"
|
|
932
970
|
}, [
|
|
933
971
|
h("feDropShadow", {
|
|
@@ -936,10 +974,10 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
936
974
|
stdDeviation: "10",
|
|
937
975
|
"flood-opacity": "0.5",
|
|
938
976
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
939
|
-
}, null, 8,
|
|
940
|
-
], 8,
|
|
977
|
+
}, null, 8, ma)
|
|
978
|
+
], 8, pa),
|
|
941
979
|
h("filter", {
|
|
942
|
-
id: `drop_shadow_${
|
|
980
|
+
id: `drop_shadow_${f.value}`,
|
|
943
981
|
"color-interpolation-filters": "sRGB",
|
|
944
982
|
x: "-50%",
|
|
945
983
|
y: "-50%",
|
|
@@ -952,35 +990,35 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
952
990
|
stdDeviation: "3",
|
|
953
991
|
"flood-opacity": "1",
|
|
954
992
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
955
|
-
}, null, 8,
|
|
956
|
-
], 8,
|
|
993
|
+
}, null, 8, wa)
|
|
994
|
+
], 8, ba)
|
|
957
995
|
]),
|
|
958
|
-
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(
|
|
959
|
-
B(
|
|
996
|
+
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(T.value.filter((l) => !l.ghost), (l, a) => (n(), r("g", null, [
|
|
997
|
+
B(l) && p.value.dataLabels.show ? (n(), r("path", {
|
|
960
998
|
key: 0,
|
|
961
|
-
d: u(
|
|
962
|
-
stroke:
|
|
999
|
+
d: u(zl)(l, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, ae.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
1000
|
+
stroke: l.color,
|
|
963
1001
|
"stroke-width": "1",
|
|
964
1002
|
"stroke-linecap": "round",
|
|
965
1003
|
"stroke-linejoin": "round",
|
|
966
1004
|
fill: "none",
|
|
967
|
-
filter:
|
|
968
|
-
}, null, 8,
|
|
1005
|
+
filter: se(a)
|
|
1006
|
+
}, null, 8, ka)) : v("", !0)
|
|
969
1007
|
]))), 256)) : v("", !0),
|
|
970
|
-
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(
|
|
971
|
-
B(
|
|
1008
|
+
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(T.value.filter((l) => !l.ghost), (l, a) => (n(), r("g", null, [
|
|
1009
|
+
B(l) && p.value.dataLabels.show ? (n(), r("path", {
|
|
972
1010
|
key: 0,
|
|
973
1011
|
d: `M ${u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
|
|
974
|
-
stroke:
|
|
1012
|
+
stroke: l.color,
|
|
975
1013
|
"stroke-width": "1",
|
|
976
1014
|
"stroke-linecap": "round",
|
|
977
1015
|
"stroke-linejoin": "round",
|
|
978
1016
|
fill: "none",
|
|
979
|
-
filter:
|
|
1017
|
+
filter: se(a),
|
|
980
1018
|
style: $({
|
|
981
|
-
transition:
|
|
1019
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
982
1020
|
})
|
|
983
|
-
}, null, 12,
|
|
1021
|
+
}, null, 12, xa)) : v("", !0)
|
|
984
1022
|
]))), 256)) : v("", !0),
|
|
985
1023
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
986
1024
|
key: 5,
|
|
@@ -988,116 +1026,116 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
988
1026
|
cy: s.value.height / 2,
|
|
989
1027
|
r: _.value <= 0 ? 10 : _.value,
|
|
990
1028
|
fill: e.value.style.chart.backgroundColor,
|
|
991
|
-
filter: `url(#shadow_${
|
|
992
|
-
}, null, 8,
|
|
993
|
-
|
|
994
|
-
(n(!0), r(w, null, L(
|
|
995
|
-
key: `pattern-${
|
|
1029
|
+
filter: `url(#shadow_${f.value})`
|
|
1030
|
+
}, null, 8, _a)) : v("", !0),
|
|
1031
|
+
t.$slots.pattern ? (n(), r("g", $a, [
|
|
1032
|
+
(n(!0), r(w, null, L(Je.dataset, (l, a) => (n(), r("defs", {
|
|
1033
|
+
key: `pattern-${l.patternIndex}`
|
|
996
1034
|
}, [
|
|
997
|
-
b(
|
|
1035
|
+
b(t.$slots, "pattern", We({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${f.value}_${a}` }), void 0, !0)
|
|
998
1036
|
]))), 128))
|
|
999
1037
|
])) : v("", !0),
|
|
1000
1038
|
P.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
1001
|
-
(n(!0), r(w, null, L(
|
|
1039
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1002
1040
|
stroke: e.value.style.chart.backgroundColor,
|
|
1003
|
-
d:
|
|
1041
|
+
d: l.arcSlice,
|
|
1004
1042
|
fill: "#FFFFFF"
|
|
1005
|
-
}, null, 8,
|
|
1006
|
-
(n(!0), r(w, null, L(
|
|
1043
|
+
}, null, 8, Ca))), 256)),
|
|
1044
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1007
1045
|
class: "vue-ui-donut-arc-path",
|
|
1008
|
-
d:
|
|
1009
|
-
fill:
|
|
1046
|
+
d: l.arcSlice,
|
|
1047
|
+
fill: l.color,
|
|
1010
1048
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1011
1049
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1012
|
-
filter:
|
|
1013
|
-
}, null, 8,
|
|
1014
|
-
|
|
1015
|
-
(n(!0), r(w, null, L(
|
|
1050
|
+
filter: se(a)
|
|
1051
|
+
}, null, 8, Aa))), 256)),
|
|
1052
|
+
t.$slots.pattern ? (n(), r("g", Sa, [
|
|
1053
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1016
1054
|
class: "vue-ui-donut-arc-path",
|
|
1017
|
-
d:
|
|
1018
|
-
fill: `url(#${
|
|
1055
|
+
d: l.arcSlice,
|
|
1056
|
+
fill: `url(#${l.pattern})`,
|
|
1019
1057
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1020
1058
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1021
|
-
filter:
|
|
1022
|
-
}, null, 8,
|
|
1059
|
+
filter: se(a)
|
|
1060
|
+
}, null, 8, Ta))), 256))
|
|
1023
1061
|
])) : v("", !0)
|
|
1024
1062
|
], 64)) : v("", !0),
|
|
1025
1063
|
P.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
1026
|
-
|
|
1027
|
-
(n(!0), r(w, null, L(
|
|
1064
|
+
T.value.length > 1 ? (n(), r("g", Fa, [
|
|
1065
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1028
1066
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1029
1067
|
d: d.value[a].path,
|
|
1030
1068
|
fill: "#FFFFFF",
|
|
1031
1069
|
style: $({
|
|
1032
|
-
transition:
|
|
1070
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1033
1071
|
})
|
|
1034
|
-
}, null, 12,
|
|
1035
|
-
e.value.style.chart.layout.donut.useShadow ? (n(), r("g",
|
|
1036
|
-
(n(!0), r(w, null, L(
|
|
1072
|
+
}, null, 12, Pa))), 256)),
|
|
1073
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", La, [
|
|
1074
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1037
1075
|
class: "vue-ui-donut-arc-path",
|
|
1038
1076
|
d: d.value[a].path,
|
|
1039
1077
|
fill: "transparent",
|
|
1040
1078
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1041
1079
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1042
|
-
filter: `url(#drop_shadow_${
|
|
1080
|
+
filter: `url(#drop_shadow_${f.value})`,
|
|
1043
1081
|
style: $({
|
|
1044
|
-
transition:
|
|
1082
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1045
1083
|
})
|
|
1046
|
-
}, null, 12,
|
|
1084
|
+
}, null, 12, Ia))), 256))
|
|
1047
1085
|
])) : v("", !0),
|
|
1048
|
-
|
|
1049
|
-
(n(!0), r(w, null, L(
|
|
1086
|
+
t.$slots.pattern ? (n(), r("g", Ma, [
|
|
1087
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1050
1088
|
class: "vue-ui-donut-arc-path",
|
|
1051
1089
|
d: d.value[a].path,
|
|
1052
|
-
fill: `url(#${
|
|
1090
|
+
fill: `url(#${l.pattern})`,
|
|
1053
1091
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1054
1092
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1055
|
-
filter:
|
|
1093
|
+
filter: se(a),
|
|
1056
1094
|
style: $({
|
|
1057
|
-
transition:
|
|
1095
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1058
1096
|
transformOrigin: "center"
|
|
1059
1097
|
})
|
|
1060
|
-
}, null, 12,
|
|
1098
|
+
}, null, 12, za))), 256))
|
|
1061
1099
|
])) : v("", !0),
|
|
1062
|
-
(n(!0), r(w, null, L(
|
|
1100
|
+
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1063
1101
|
class: "vue-ui-donut-arc-path",
|
|
1064
1102
|
d: d.value[a].path,
|
|
1065
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
1103
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${f.value})` : l.color,
|
|
1066
1104
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1067
1105
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1068
|
-
filter:
|
|
1106
|
+
filter: se(a),
|
|
1069
1107
|
style: $({
|
|
1070
|
-
transition:
|
|
1108
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1071
1109
|
})
|
|
1072
|
-
}, null, 12,
|
|
1073
|
-
])) : (n(), r("g",
|
|
1074
|
-
|
|
1110
|
+
}, null, 12, Oa))), 256))
|
|
1111
|
+
])) : (n(), r("g", Da, [
|
|
1112
|
+
t.$slots.pattern ? (n(), r("circle", {
|
|
1075
1113
|
key: 0,
|
|
1076
1114
|
cx: s.value.width / 2,
|
|
1077
1115
|
cy: s.value.height / 2,
|
|
1078
1116
|
r: _.value,
|
|
1079
|
-
fill: `url(#pattern_${
|
|
1117
|
+
fill: `url(#pattern_${f.value}_${T.value[0].patternIndex})`,
|
|
1080
1118
|
stroke: e.value.style.chart.backgroundColor,
|
|
1081
1119
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1082
|
-
}, null, 8,
|
|
1120
|
+
}, null, 8, Na)) : v("", !0),
|
|
1083
1121
|
h("circle", {
|
|
1084
1122
|
cx: s.value.width / 2,
|
|
1085
1123
|
cy: s.value.height / 2,
|
|
1086
1124
|
r: _.value,
|
|
1087
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
1125
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${f.value})` : T.value[0].color,
|
|
1088
1126
|
stroke: e.value.style.chart.backgroundColor,
|
|
1089
1127
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1090
|
-
}, null, 8,
|
|
1128
|
+
}, null, 8, Ya)
|
|
1091
1129
|
]))
|
|
1092
1130
|
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1093
|
-
e.value.type === "classic" && !
|
|
1094
|
-
(n(!0), r(w, null, L(
|
|
1131
|
+
e.value.type === "classic" && !sl.value ? (n(), r("g", Ba, [
|
|
1132
|
+
(n(!0), r(w, null, L(nl.value, (l, a) => (n(), r("path", {
|
|
1095
1133
|
class: "vue-ui-donut-arc-path",
|
|
1096
|
-
d:
|
|
1097
|
-
fill:
|
|
1134
|
+
d: l.arcSlice,
|
|
1135
|
+
fill: l.color,
|
|
1098
1136
|
stroke: e.value.style.chart.backgroundColor,
|
|
1099
1137
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1100
|
-
}, null, 8,
|
|
1138
|
+
}, null, 8, Xa))), 256))
|
|
1101
1139
|
])) : v("", !0),
|
|
1102
1140
|
h("circle", {
|
|
1103
1141
|
cx: s.value.width / 2,
|
|
@@ -1105,7 +1143,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1105
1143
|
r: _.value <= 0 ? 10 : _.value,
|
|
1106
1144
|
fill: "transparent",
|
|
1107
1145
|
stroke: e.value.style.chart.backgroundColor
|
|
1108
|
-
}, null, 8,
|
|
1146
|
+
}, null, 8, Va)
|
|
1109
1147
|
], 64)),
|
|
1110
1148
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1111
1149
|
key: 10,
|
|
@@ -1115,53 +1153,53 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1115
1153
|
/* This might require adjustments */
|
|
1116
1154
|
_.value <= 0 ? 10 : _.value
|
|
1117
1155
|
),
|
|
1118
|
-
fill: `url(#gradient_${
|
|
1119
|
-
}, null, 8,
|
|
1156
|
+
fill: `url(#gradient_${f.value})`
|
|
1157
|
+
}, null, 8, Ea)) : v("", !0),
|
|
1120
1158
|
h("circle", {
|
|
1121
1159
|
ref_key: "circle_hollow",
|
|
1122
|
-
ref:
|
|
1160
|
+
ref: Jt,
|
|
1123
1161
|
style: { pointerEvents: "none" },
|
|
1124
1162
|
fill: "none",
|
|
1125
1163
|
cx: s.value.width / 2,
|
|
1126
1164
|
cy: s.value.height / 2,
|
|
1127
|
-
r: Math.max(0.1,
|
|
1128
|
-
}, null, 8,
|
|
1165
|
+
r: Math.max(0.1, ae.value * 1.7)
|
|
1166
|
+
}, null, 8, Ra),
|
|
1129
1167
|
P.value ? (n(), r(w, { key: 11 }, [
|
|
1130
|
-
|
|
1131
|
-
(n(!0), r(w, null, L(
|
|
1132
|
-
d: e.value.type === "classic" ?
|
|
1168
|
+
T.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Ga, [
|
|
1169
|
+
(n(!0), r(w, null, L(T.value.filter((l) => !l.ghost), (l, a) => (n(), r("path", {
|
|
1170
|
+
d: e.value.type === "classic" ? l.arcSlice : d.value[a].path,
|
|
1133
1171
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1134
|
-
fill:
|
|
1172
|
+
fill: N.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1135
1173
|
onMouseenter: (i) => ye({
|
|
1136
|
-
datapoint:
|
|
1174
|
+
datapoint: l,
|
|
1137
1175
|
relativeIndex: a,
|
|
1138
|
-
seriesIndex:
|
|
1176
|
+
seriesIndex: l.seriesIndex,
|
|
1139
1177
|
show: !0
|
|
1140
1178
|
}),
|
|
1141
|
-
onMouseleave: (i) => he({ datapoint:
|
|
1142
|
-
onClick: (i) => Q(
|
|
1143
|
-
}, null, 40,
|
|
1144
|
-
])) : (n(), r("g",
|
|
1179
|
+
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1180
|
+
onClick: (i) => Q(l, a)
|
|
1181
|
+
}, null, 40, Ua))), 256))
|
|
1182
|
+
])) : (n(), r("g", qa, [
|
|
1145
1183
|
h("circle", {
|
|
1146
1184
|
cx: s.value.width / 2,
|
|
1147
1185
|
cy: s.value.height / 2,
|
|
1148
1186
|
r: _.value,
|
|
1149
1187
|
fill: "transparent",
|
|
1150
|
-
onMouseenter: o[0] || (o[0] = (
|
|
1151
|
-
datapoint:
|
|
1188
|
+
onMouseenter: o[0] || (o[0] = (l) => ye({
|
|
1189
|
+
datapoint: T.value[0],
|
|
1152
1190
|
relativeIndex: 0,
|
|
1153
|
-
seriesIndex:
|
|
1191
|
+
seriesIndex: T.value[0].seriesIndex,
|
|
1154
1192
|
show: !0
|
|
1155
1193
|
})),
|
|
1156
|
-
onMouseleave: o[1] || (o[1] = (
|
|
1157
|
-
onClick: o[2] || (o[2] = (
|
|
1158
|
-
}, null, 40,
|
|
1194
|
+
onMouseleave: o[1] || (o[1] = (l) => he({ datapoint: T.value[0], seriesIndex: T.value[0].seriesIndex })),
|
|
1195
|
+
onClick: o[2] || (o[2] = (l) => Q(T.value[0], t.i))
|
|
1196
|
+
}, null, 40, Wa)
|
|
1159
1197
|
]))
|
|
1160
1198
|
], 64)) : v("", !0),
|
|
1161
1199
|
e.value.type === "classic" ? (n(), r("g", {
|
|
1162
1200
|
key: 12,
|
|
1163
1201
|
ref_key: "G_hollow",
|
|
1164
|
-
ref:
|
|
1202
|
+
ref: jt,
|
|
1165
1203
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1166
1204
|
}, [
|
|
1167
1205
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
@@ -1172,7 +1210,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1172
1210
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1173
1211
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1174
1212
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1175
|
-
},
|
|
1213
|
+
}, V(e.value.style.chart.layout.labels.hollow.total.text), 13, Ha)) : v("", !0),
|
|
1176
1214
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1177
1215
|
key: 1,
|
|
1178
1216
|
"text-anchor": "middle",
|
|
@@ -1181,15 +1219,15 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1181
1219
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1182
1220
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1183
1221
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1184
|
-
},
|
|
1222
|
+
}, V(u(E)(
|
|
1185
1223
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1186
1224
|
P.value,
|
|
1187
|
-
u(
|
|
1225
|
+
u(O)({
|
|
1188
1226
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1189
1227
|
v: P.value,
|
|
1190
1228
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1191
1229
|
})
|
|
1192
|
-
)), 13,
|
|
1230
|
+
)), 13, ja)) : v("", !0),
|
|
1193
1231
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1194
1232
|
key: 2,
|
|
1195
1233
|
"text-anchor": "middle",
|
|
@@ -1198,7 +1236,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1198
1236
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1199
1237
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1200
1238
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1201
|
-
},
|
|
1239
|
+
}, V(e.value.style.chart.layout.labels.hollow.average.text), 13, Ja)) : v("", !0),
|
|
1202
1240
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1203
1241
|
key: 3,
|
|
1204
1242
|
"text-anchor": "middle",
|
|
@@ -1207,139 +1245,139 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1207
1245
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1208
1246
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1209
1247
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1210
|
-
},
|
|
1248
|
+
}, V(oe.value || S.value ? "--" : u(E)(
|
|
1211
1249
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1212
1250
|
Xe.value,
|
|
1213
|
-
u(
|
|
1251
|
+
u(O)({
|
|
1214
1252
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1215
1253
|
v: Xe.value,
|
|
1216
1254
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1217
1255
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1218
1256
|
})
|
|
1219
|
-
)), 13,
|
|
1257
|
+
)), 13, Ka)) : v("", !0)
|
|
1220
1258
|
], 512)) : v("", !0),
|
|
1221
|
-
(n(!0), r(w, null, L(
|
|
1222
|
-
filter:
|
|
1223
|
-
class:
|
|
1224
|
-
key:
|
|
1259
|
+
(n(!0), r(w, null, L(Y.value.filter((l) => !l.ghost), (l, a) => (n(), r("g", {
|
|
1260
|
+
filter: se(a),
|
|
1261
|
+
class: Ue({ animated: e.value.useCssAnimation }),
|
|
1262
|
+
key: l.seriesIndex
|
|
1225
1263
|
}, [
|
|
1226
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1264
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Za, [
|
|
1227
1265
|
(n(), r("foreignObject", {
|
|
1228
|
-
x: u(x)(
|
|
1229
|
-
y: u(
|
|
1266
|
+
x: u(x)(l, !0).anchor === "end" ? u(x)(l).x - 120 : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - 60 : u(x)(l).x,
|
|
1267
|
+
y: u(ge)(l) - (kt.value ? 20 : 0),
|
|
1230
1268
|
width: "120",
|
|
1231
1269
|
height: "60",
|
|
1232
1270
|
style: { overflow: "visible" }
|
|
1233
1271
|
}, [
|
|
1234
1272
|
h("div", null, [
|
|
1235
|
-
b(
|
|
1236
|
-
datapoint:
|
|
1237
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1273
|
+
b(t.$slots, "dataLabel", We({ ref_for: !0 }, {
|
|
1274
|
+
datapoint: l,
|
|
1275
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(N.value) || N.value === a,
|
|
1238
1276
|
isSafari: kt.value,
|
|
1239
|
-
isVisible: B(
|
|
1240
|
-
textAlign: u(x)(
|
|
1241
|
-
flexAlign: u(x)(
|
|
1242
|
-
percentage:
|
|
1277
|
+
isVisible: B(l) && p.value.dataLabels.show,
|
|
1278
|
+
textAlign: u(x)(l, !0, 16, !0).anchor,
|
|
1279
|
+
flexAlign: u(x)(l, !0, 16).anchor,
|
|
1280
|
+
percentage: Be(l, Y.value)
|
|
1243
1281
|
}), void 0, !0)
|
|
1244
1282
|
])
|
|
1245
|
-
], 8,
|
|
1246
|
-
])) : (n(), r("g",
|
|
1283
|
+
], 8, eo))
|
|
1284
|
+
])) : (n(), r("g", to, [
|
|
1247
1285
|
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1248
|
-
B(
|
|
1286
|
+
B(l) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1249
1287
|
key: 0,
|
|
1250
|
-
cx: u(x)(
|
|
1251
|
-
cy: u(
|
|
1252
|
-
fill:
|
|
1288
|
+
cx: u(x)(l).x,
|
|
1289
|
+
cy: u(ge)(l) - 3.5,
|
|
1290
|
+
fill: l.color,
|
|
1253
1291
|
stroke: e.value.style.chart.backgroundColor,
|
|
1254
1292
|
"stroke-width": 1,
|
|
1255
1293
|
r: 3,
|
|
1256
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1257
|
-
onClick: (i) => Q(
|
|
1294
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(N.value) || N.value === a ? "" : `url(#blur_${f.value})`,
|
|
1295
|
+
onClick: (i) => Q(l, a),
|
|
1258
1296
|
onMouseenter: (i) => ye({
|
|
1259
|
-
datapoint:
|
|
1297
|
+
datapoint: l,
|
|
1260
1298
|
relativeIndex: a,
|
|
1261
|
-
seriesIndex:
|
|
1299
|
+
seriesIndex: l.seriesIndex,
|
|
1262
1300
|
show: !0
|
|
1263
1301
|
}),
|
|
1264
|
-
onMouseleave: (i) => he({ datapoint:
|
|
1265
|
-
}, null, 40,
|
|
1302
|
+
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1303
|
+
}, null, 40, lo)) : v("", !0)
|
|
1266
1304
|
], 64)) : v("", !0),
|
|
1267
1305
|
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1268
|
-
B(
|
|
1306
|
+
B(l) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1269
1307
|
key: 0,
|
|
1270
1308
|
cx: u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1271
1309
|
cy: u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1272
|
-
fill:
|
|
1310
|
+
fill: l.color,
|
|
1273
1311
|
stroke: e.value.style.chart.backgroundColor,
|
|
1274
1312
|
"stroke-width": 1,
|
|
1275
1313
|
r: 3,
|
|
1276
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1277
|
-
onClick: (i) => Q(
|
|
1314
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(N.value) || N.value === a ? "" : `url(#blur_${f.value})`,
|
|
1315
|
+
onClick: (i) => Q(l, a),
|
|
1278
1316
|
onMouseenter: (i) => ye({
|
|
1279
|
-
datapoint:
|
|
1317
|
+
datapoint: l,
|
|
1280
1318
|
relativeIndex: a,
|
|
1281
|
-
seriesIndex:
|
|
1319
|
+
seriesIndex: l.seriesIndex,
|
|
1282
1320
|
show: !0
|
|
1283
1321
|
}),
|
|
1284
|
-
onMouseleave: (i) => he({ datapoint:
|
|
1322
|
+
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1285
1323
|
style: $({
|
|
1286
|
-
transition:
|
|
1324
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1287
1325
|
})
|
|
1288
|
-
}, null, 44,
|
|
1326
|
+
}, null, 44, ao)) : v("", !0)
|
|
1289
1327
|
], 64)) : v("", !0),
|
|
1290
1328
|
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1291
|
-
|
|
1329
|
+
Ft(h("text", {
|
|
1292
1330
|
class: "vue-data-ui-datalabel-value",
|
|
1293
|
-
"text-anchor": u(x)(
|
|
1294
|
-
x: u(x)(
|
|
1295
|
-
y: u(
|
|
1331
|
+
"text-anchor": u(x)(l, !0, 12).anchor,
|
|
1332
|
+
x: u(x)(l, !0, 12).x,
|
|
1333
|
+
y: u(ge)(l),
|
|
1296
1334
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1297
1335
|
"font-size": xe.value + "px",
|
|
1298
1336
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1299
|
-
onClick: (i) => Q(
|
|
1337
|
+
onClick: (i) => Q(l, a),
|
|
1300
1338
|
onMouseenter: (i) => ye({
|
|
1301
|
-
datapoint:
|
|
1339
|
+
datapoint: l,
|
|
1302
1340
|
relativeIndex: a,
|
|
1303
|
-
seriesIndex:
|
|
1341
|
+
seriesIndex: l.seriesIndex,
|
|
1304
1342
|
show: !0
|
|
1305
1343
|
}),
|
|
1306
|
-
onMouseleave: (i) => he({ datapoint:
|
|
1307
|
-
},
|
|
1344
|
+
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1345
|
+
}, V(Be(l, Y.value)) + " " + V(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1308
1346
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1309
|
-
|
|
1310
|
-
u(
|
|
1347
|
+
l.value,
|
|
1348
|
+
u(O)({
|
|
1311
1349
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1312
|
-
v:
|
|
1350
|
+
v: l.value,
|
|
1313
1351
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1314
1352
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1315
1353
|
}),
|
|
1316
|
-
{ datapoint:
|
|
1317
|
-
)})` : ""), 45,
|
|
1318
|
-
[
|
|
1354
|
+
{ datapoint: l }
|
|
1355
|
+
)})` : ""), 45, oo), [
|
|
1356
|
+
[Pt, B(l) && p.value.dataLabels.show]
|
|
1319
1357
|
]),
|
|
1320
|
-
|
|
1358
|
+
Ft(h("text", {
|
|
1321
1359
|
class: "vue-data-ui-datalabel-name",
|
|
1322
|
-
"text-anchor": u(x)(
|
|
1323
|
-
x: u(x)(
|
|
1324
|
-
y: u(
|
|
1360
|
+
"text-anchor": u(x)(l).anchor,
|
|
1361
|
+
x: u(x)(l, !0, 12).x,
|
|
1362
|
+
y: u(ge)(l) + J.value * 1.2,
|
|
1325
1363
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1326
1364
|
"font-size": J.value + "px",
|
|
1327
1365
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1328
|
-
onClick: (i) => Q(
|
|
1329
|
-
innerHTML: u(
|
|
1330
|
-
content:
|
|
1366
|
+
onClick: (i) => Q(l, a),
|
|
1367
|
+
innerHTML: u(zt)({
|
|
1368
|
+
content: l.name,
|
|
1331
1369
|
fontSize: J.value,
|
|
1332
1370
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1333
|
-
x: u(x)(
|
|
1334
|
-
y: u(
|
|
1371
|
+
x: u(x)(l, !0, 12).x,
|
|
1372
|
+
y: u(ge)(l) + J.value
|
|
1335
1373
|
})
|
|
1336
|
-
}, null, 12,
|
|
1337
|
-
[
|
|
1374
|
+
}, null, 12, so), [
|
|
1375
|
+
[Pt, B(l) && p.value.dataLabels.show]
|
|
1338
1376
|
]),
|
|
1339
|
-
o[6] || (o[6] =
|
|
1377
|
+
o[6] || (o[6] = Te(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1340
1378
|
], 64)) : v("", !0),
|
|
1341
1379
|
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1342
|
-
B(
|
|
1380
|
+
B(l) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1343
1381
|
key: 0,
|
|
1344
1382
|
class: "vue-data-ui-datalabel-value",
|
|
1345
1383
|
"text-anchor": ce(d.value[a].middlePoint),
|
|
@@ -1348,29 +1386,29 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1348
1386
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1349
1387
|
"font-size": xe.value,
|
|
1350
1388
|
style: $({
|
|
1351
|
-
transition:
|
|
1389
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1352
1390
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1353
1391
|
}),
|
|
1354
|
-
onClick: (i) => Q(
|
|
1392
|
+
onClick: (i) => Q(l, a),
|
|
1355
1393
|
onMouseenter: (i) => ye({
|
|
1356
|
-
datapoint:
|
|
1394
|
+
datapoint: l,
|
|
1357
1395
|
relativeIndex: a,
|
|
1358
|
-
seriesIndex:
|
|
1396
|
+
seriesIndex: l.seriesIndex,
|
|
1359
1397
|
show: !0
|
|
1360
1398
|
}),
|
|
1361
|
-
onMouseleave: (i) => he({ datapoint:
|
|
1362
|
-
},
|
|
1399
|
+
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1400
|
+
}, V(Be(l, Y.value)) + " " + V(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1363
1401
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1364
|
-
|
|
1365
|
-
u(
|
|
1402
|
+
l.value,
|
|
1403
|
+
u(O)({
|
|
1366
1404
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1367
|
-
v:
|
|
1405
|
+
v: l.value,
|
|
1368
1406
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1369
1407
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1370
1408
|
}),
|
|
1371
|
-
{ datapoint:
|
|
1372
|
-
)})` : ""), 45,
|
|
1373
|
-
B(
|
|
1409
|
+
{ datapoint: l }
|
|
1410
|
+
)})` : ""), 45, no)) : v("", !0),
|
|
1411
|
+
B(l) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1374
1412
|
key: 1,
|
|
1375
1413
|
class: "vue-data-ui-datalabel-name",
|
|
1376
1414
|
"text-anchor": ce(d.value[a].middlePoint),
|
|
@@ -1379,142 +1417,121 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1379
1417
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1380
1418
|
"font-size": J.value,
|
|
1381
1419
|
style: $({
|
|
1382
|
-
transition:
|
|
1420
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1383
1421
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1384
1422
|
}),
|
|
1385
|
-
onClick: (i) => Q(
|
|
1386
|
-
innerHTML: u(
|
|
1387
|
-
content:
|
|
1423
|
+
onClick: (i) => Q(l, a),
|
|
1424
|
+
innerHTML: u(zt)({
|
|
1425
|
+
content: l.name,
|
|
1388
1426
|
fontSize: xe.value,
|
|
1389
1427
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1390
1428
|
x: u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1391
1429
|
y: u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2
|
|
1392
1430
|
})
|
|
1393
|
-
}, null, 12,
|
|
1394
|
-
o[7] || (o[7] =
|
|
1431
|
+
}, null, 12, uo)) : v("", !0),
|
|
1432
|
+
o[7] || (o[7] = Te(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1395
1433
|
], 64)) : v("", !0)
|
|
1396
1434
|
])),
|
|
1397
|
-
|
|
1398
|
-
B(
|
|
1435
|
+
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (n(), r("g", ro, [
|
|
1436
|
+
B(l) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1399
1437
|
key: 0,
|
|
1400
|
-
x: e.value.style.chart.comments.offsetX + (u(x)(
|
|
1401
|
-
y: u(
|
|
1438
|
+
x: e.value.style.chart.comments.offsetX + (u(x)(l, !0).anchor === "end" ? u(x)(l).x - e.value.style.chart.comments.width : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - e.value.style.chart.comments.width / 2 : u(x)(l).x),
|
|
1439
|
+
y: u(ge)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
1402
1440
|
width: e.value.style.chart.comments.width,
|
|
1403
1441
|
height: "200",
|
|
1404
1442
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1405
1443
|
}, [
|
|
1406
1444
|
h("div", null, [
|
|
1407
|
-
b(
|
|
1408
|
-
plot: { ...
|
|
1445
|
+
b(t.$slots, "plot-comment", {
|
|
1446
|
+
plot: { ...l, textAlign: u(x)(l, !0, 16, !0).anchor, flexAlign: u(x)(l, !0, 16).anchor, isFirstLoad: S.value }
|
|
1409
1447
|
}, void 0, !0)
|
|
1410
1448
|
])
|
|
1411
|
-
], 8,
|
|
1412
|
-
B(
|
|
1449
|
+
], 8, io)) : v("", !0),
|
|
1450
|
+
B(l) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1413
1451
|
key: 1,
|
|
1414
1452
|
x: e.value.style.chart.comments.offsetX + (ce(d.value[a].middlePoint) === "end" ? u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ce(d.value[a].middlePoint) === "middle" ? u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(F)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1415
|
-
y:
|
|
1453
|
+
y: ul(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1416
1454
|
width: e.value.style.chart.comments.width,
|
|
1417
1455
|
height: "200",
|
|
1418
1456
|
style: $({
|
|
1419
|
-
transition:
|
|
1457
|
+
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1420
1458
|
overflow: "visible",
|
|
1421
1459
|
pointerEvents: "none"
|
|
1422
1460
|
})
|
|
1423
1461
|
}, [
|
|
1424
1462
|
h("div", null, [
|
|
1425
|
-
b(
|
|
1426
|
-
plot: { ...
|
|
1463
|
+
b(t.$slots, "plot-comment", {
|
|
1464
|
+
plot: { ...l, textAlign: ce(d.value[a].middlePoint), flexAlign: ce(d.value[a].middlePoint), isFirstLoad: S.value }
|
|
1427
1465
|
}, void 0, !0)
|
|
1428
1466
|
])
|
|
1429
|
-
], 12,
|
|
1467
|
+
], 12, vo)) : v("", !0)
|
|
1430
1468
|
])) : v("", !0)
|
|
1431
|
-
], 10,
|
|
1432
|
-
b(
|
|
1469
|
+
], 10, Qa))), 128)),
|
|
1470
|
+
b(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1433
1471
|
], 512)
|
|
1434
|
-
], 14,
|
|
1435
|
-
|
|
1436
|
-
b(
|
|
1472
|
+
], 14, aa)),
|
|
1473
|
+
t.$slots.watermark ? (n(), r("div", co, [
|
|
1474
|
+
b(t.$slots, "watermark", ue(re({ isPrinting: u(dt) || u(ct) })), void 0, !0)
|
|
1437
1475
|
])) : v("", !0),
|
|
1438
1476
|
h("div", {
|
|
1439
|
-
id: `legend-bottom-${
|
|
1440
|
-
}, null, 8,
|
|
1441
|
-
|
|
1477
|
+
id: `legend-bottom-${f.value}`
|
|
1478
|
+
}, null, 8, ho),
|
|
1479
|
+
ot.value ? (n(), te(_l, {
|
|
1442
1480
|
key: 5,
|
|
1443
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1481
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1444
1482
|
}, [
|
|
1445
1483
|
h("div", {
|
|
1446
1484
|
ref_key: "chartLegend",
|
|
1447
|
-
ref:
|
|
1485
|
+
ref: Qe
|
|
1448
1486
|
}, [
|
|
1449
|
-
e.value.style.chart.legend.show ? (n(), te(
|
|
1450
|
-
key: `legend_${
|
|
1451
|
-
legendSet:
|
|
1452
|
-
config:
|
|
1453
|
-
onClickMarker: o[3] || (o[3] = ({ i:
|
|
1487
|
+
e.value.style.chart.legend.show ? (n(), te(Zl, {
|
|
1488
|
+
key: `legend_${at.value}`,
|
|
1489
|
+
legendSet: Ye.value,
|
|
1490
|
+
config: ol.value,
|
|
1491
|
+
onClickMarker: o[3] || (o[3] = ({ i: l }) => mt(l))
|
|
1454
1492
|
}, qe({
|
|
1455
|
-
item: A(({ legend:
|
|
1493
|
+
item: A(({ legend: l, index: a }) => [
|
|
1456
1494
|
h("div", {
|
|
1457
|
-
style: $(`opacity:${
|
|
1458
|
-
onClick: (i) =>
|
|
1459
|
-
},
|
|
1460
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
1461
|
-
t.value,
|
|
1462
|
-
u(D)({
|
|
1463
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1464
|
-
v: t.value,
|
|
1465
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1466
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1467
|
-
}),
|
|
1468
|
-
{
|
|
1469
|
-
datapoint: t,
|
|
1470
|
-
index: a
|
|
1471
|
-
}
|
|
1472
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${rl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / P.value) ? "-" : u(E)(
|
|
1473
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1474
|
-
bt.value(t),
|
|
1475
|
-
u(D)({
|
|
1476
|
-
v: bt.value(t),
|
|
1477
|
-
s: "%",
|
|
1478
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
1479
|
-
})
|
|
1480
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, so)
|
|
1495
|
+
style: $(`opacity:${U.value.includes(a) ? 0.5 : 1}`),
|
|
1496
|
+
onClick: (i) => l.segregate()
|
|
1497
|
+
}, V(l.display), 13, yo)
|
|
1481
1498
|
]),
|
|
1482
1499
|
_: 2
|
|
1483
1500
|
}, [
|
|
1484
|
-
|
|
1501
|
+
t.$slots.pattern ? {
|
|
1485
1502
|
name: "legend-pattern",
|
|
1486
|
-
fn: A(({ legend:
|
|
1487
|
-
|
|
1488
|
-
shape:
|
|
1503
|
+
fn: A(({ legend: l, index: a }) => [
|
|
1504
|
+
Se(Jl, {
|
|
1505
|
+
shape: l.shape,
|
|
1489
1506
|
radius: 30,
|
|
1490
1507
|
stroke: "none",
|
|
1491
1508
|
plot: { x: 30, y: 30 },
|
|
1492
|
-
fill: `url(#pattern_${
|
|
1509
|
+
fill: `url(#pattern_${f.value}_${a})`
|
|
1493
1510
|
}, null, 8, ["shape", "fill"])
|
|
1494
1511
|
]),
|
|
1495
1512
|
key: "0"
|
|
1496
1513
|
} : void 0
|
|
1497
1514
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1498
|
-
b(
|
|
1515
|
+
b(t.$slots, "legend", { legend: Ye.value }, void 0, !0)
|
|
1499
1516
|
], 512)
|
|
1500
1517
|
], 8, ["to"])) : v("", !0),
|
|
1501
|
-
|
|
1518
|
+
t.$slots.source ? (n(), r("div", {
|
|
1502
1519
|
key: 6,
|
|
1503
1520
|
ref_key: "source",
|
|
1504
|
-
ref:
|
|
1521
|
+
ref: Ze,
|
|
1505
1522
|
dir: "auto"
|
|
1506
1523
|
}, [
|
|
1507
|
-
b(
|
|
1524
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
1508
1525
|
], 512)) : v("", !0),
|
|
1509
|
-
|
|
1510
|
-
b(
|
|
1526
|
+
t.$slots.hollow ? (n(), r("div", fo, [
|
|
1527
|
+
b(t.$slots, "hollow", ue(re({
|
|
1511
1528
|
total: P.value,
|
|
1512
1529
|
average: Xe.value,
|
|
1513
1530
|
dataset: G.value
|
|
1514
1531
|
})), void 0, !0)
|
|
1515
1532
|
])) : v("", !0),
|
|
1516
|
-
|
|
1517
|
-
show:
|
|
1533
|
+
Se(u(Bt), {
|
|
1534
|
+
show: p.value.showTooltip && ze.value,
|
|
1518
1535
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1519
1536
|
color: e.value.style.chart.tooltip.color,
|
|
1520
1537
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1524,31 +1541,31 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1524
1541
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1525
1542
|
position: e.value.style.chart.tooltip.position,
|
|
1526
1543
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1527
|
-
parent:
|
|
1544
|
+
parent: D.value,
|
|
1528
1545
|
content: Oe.value,
|
|
1529
1546
|
isCustom: me.value,
|
|
1530
|
-
isFullscreen:
|
|
1547
|
+
isFullscreen: ne.value,
|
|
1531
1548
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1532
1549
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1533
1550
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1534
1551
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1535
1552
|
}, {
|
|
1536
1553
|
"tooltip-before": A(() => [
|
|
1537
|
-
b(
|
|
1554
|
+
b(t.$slots, "tooltip-before", ue(re({ ...Ve.value })), void 0, !0)
|
|
1538
1555
|
]),
|
|
1539
1556
|
"tooltip-after": A(() => [
|
|
1540
|
-
b(
|
|
1557
|
+
b(t.$slots, "tooltip-after", ue(re({ ...Ve.value })), void 0, !0)
|
|
1541
1558
|
]),
|
|
1542
1559
|
_: 3
|
|
1543
1560
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1544
|
-
we.value && e.value.userOptions.buttons.table ? (n(), te(
|
|
1561
|
+
we.value && e.value.userOptions.buttons.table ? (n(), te($l(be.value.component), We({ key: 8 }, be.value.props, {
|
|
1545
1562
|
ref_key: "tableUnit",
|
|
1546
|
-
ref:
|
|
1563
|
+
ref: pe,
|
|
1547
1564
|
onClose: Ct
|
|
1548
1565
|
}), qe({
|
|
1549
1566
|
content: A(() => [
|
|
1550
|
-
(n(), te(u(
|
|
1551
|
-
key: `table_${
|
|
1567
|
+
(n(), te(u(Et), {
|
|
1568
|
+
key: `table_${lt.value}`,
|
|
1552
1569
|
colNames: Ce.value.colNames,
|
|
1553
1570
|
head: Ce.value.head,
|
|
1554
1571
|
body: Ce.value.body,
|
|
@@ -1557,27 +1574,27 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1557
1574
|
withCloseButton: !e.value.table.useDialog,
|
|
1558
1575
|
onClose: Ct
|
|
1559
1576
|
}, {
|
|
1560
|
-
th: A(({ th:
|
|
1577
|
+
th: A(({ th: l }) => [
|
|
1561
1578
|
h("div", {
|
|
1562
|
-
innerHTML:
|
|
1579
|
+
innerHTML: l,
|
|
1563
1580
|
style: { display: "flex", "align-items": "center" }
|
|
1564
|
-
}, null, 8,
|
|
1581
|
+
}, null, 8, go)
|
|
1565
1582
|
]),
|
|
1566
|
-
td: A(({ td:
|
|
1567
|
-
|
|
1583
|
+
td: A(({ td: l }) => [
|
|
1584
|
+
Te(V(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(E)(
|
|
1568
1585
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1569
|
-
|
|
1570
|
-
u(
|
|
1571
|
-
v:
|
|
1586
|
+
l,
|
|
1587
|
+
u(O)({
|
|
1588
|
+
v: l,
|
|
1572
1589
|
s: "%",
|
|
1573
1590
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1574
1591
|
})
|
|
1575
1592
|
) : u(E)(
|
|
1576
1593
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1577
|
-
|
|
1578
|
-
u(
|
|
1594
|
+
l,
|
|
1595
|
+
u(O)({
|
|
1579
1596
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1580
|
-
v:
|
|
1597
|
+
v: l,
|
|
1581
1598
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1582
1599
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1583
1600
|
})
|
|
@@ -1591,7 +1608,7 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1591
1608
|
e.value.table.useDialog ? {
|
|
1592
1609
|
name: "title",
|
|
1593
1610
|
fn: A(() => [
|
|
1594
|
-
|
|
1611
|
+
Te(V(be.value.title), 1)
|
|
1595
1612
|
]),
|
|
1596
1613
|
key: "0"
|
|
1597
1614
|
} : void 0,
|
|
@@ -1601,9 +1618,9 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1601
1618
|
h("button", {
|
|
1602
1619
|
tabindex: "0",
|
|
1603
1620
|
class: "vue-ui-user-options-button",
|
|
1604
|
-
onClick: o[4] || (o[4] = (
|
|
1621
|
+
onClick: o[4] || (o[4] = (l) => Ee(e.value.userOptions.callbacks.csv))
|
|
1605
1622
|
}, [
|
|
1606
|
-
|
|
1623
|
+
Se(u(Xt), {
|
|
1607
1624
|
name: "excel",
|
|
1608
1625
|
stroke: be.value.props.color
|
|
1609
1626
|
}, null, 8, ["stroke"])
|
|
@@ -1612,10 +1629,10 @@ const Wl = ["id"], Hl = ["id"], jl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
1612
1629
|
key: "1"
|
|
1613
1630
|
} : void 0
|
|
1614
1631
|
]), 1040)) : v("", !0),
|
|
1615
|
-
u(_e) ? (n(), te(
|
|
1616
|
-
], 46,
|
|
1632
|
+
u(_e) ? (n(), te(Ul, { key: 9 })) : v("", !0)
|
|
1633
|
+
], 46, ta));
|
|
1617
1634
|
}
|
|
1618
|
-
},
|
|
1635
|
+
}, Mo = /* @__PURE__ */ ea(po, [["__scopeId", "data-v-e95e3a20"]]);
|
|
1619
1636
|
export {
|
|
1620
|
-
|
|
1637
|
+
Mo as default
|
|
1621
1638
|
};
|