vue-data-ui 3.3.2 → 3.4.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-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-C0YT60JN.js} +2 -2
- 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-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as ee, useSlots as kl, computed as y, shallowRef as H, ref as g, onMounted as
|
|
2
|
-
import { o as Lt, f as He, g as Al, c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as El, a as Dt } from "./useNestedProp-
|
|
5
|
-
import { u as Rl } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as ee, useSlots as kl, computed as y, shallowRef as H, ref as g, onMounted as Tt, onBeforeUnmount as St, 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 Te, unref as u, createSlots as We, withCtx as A, normalizeProps as ue, guardReactiveProps as re, Fragment as w, renderList as L, mergeProps as qe, toDisplayString as V, withDirectives as Pt, createTextVNode as Se, vShow as Ft, Teleport as _l, resolveDynamicComponent as $l, nextTick as Cl } from "vue";
|
|
2
|
+
import { o as Lt, f as He, g as Al, c as Tl, t as Sl, e as Pl, x as Fl, h as It, p as ie, a as E, d as O, T as Mt, Z as Ll, X as Il, s as Pe, i as Ml, V as zl, _ as P, W as ge, Y as x, $ as zt, l as Ol, b as Dl, O as je, P as Nl, Q as Yl, G as Xl, a0 as Ot } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { t as Bl, u as Vl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as El, a as Dt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as Rl } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as Gl, B as Ul } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
7
|
+
import { u as Wl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as Hl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import jl from "./img-
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import
|
|
10
|
+
import jl from "./img-CFY3JivG.js";
|
|
11
|
+
import { _ as Ql } from "./Shape-BhNvlGIN.js";
|
|
12
|
+
import Zl from "./Title-CFmv95In.js";
|
|
13
|
+
import { t as Jl } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import Kl from "./Legend-C8u37J42.js";
|
|
15
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"],
|
|
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"], Ta = { key: 0 }, Sa = ["d", "fill", "stroke", "stroke-width", "filter"], Pa = { key: 0 }, Fa = ["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"], Xa = { key: 0 }, Ba = ["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"], Wa = { key: 1 }, qa = ["cx", "cy", "r"], Ha = ["x", "y", "fill", "font-size"], ja = ["x", "y", "fill", "font-size"], Qa = ["x", "y", "fill", "font-size"], Za = ["x", "y", "fill", "font-size"], Ja = ["filter"], Ka = { 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 = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, ho = ["id"], yo = ["onClick"], fo = {
|
|
@@ -36,18 +36,18 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend", "selectDatapoint"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
39
|
+
setup(Qe, { expose: Nt, emit: Yt }) {
|
|
40
|
+
const Xt = ee(() => import("./Tooltip-Cs4v8OnI.js")), Bt = ee(() => import("./BaseIcon-B5KaGWWC.js")), Vt = ee(() => import("./vue-ui-accordion-BKkTS12x.js")), Et = ee(() => import("./DataTable-DOx3zgih.js")), Rt = ee(() => import("./PenAndPaper-Dj2diYr0.js")), Gt = ee(() => import("./UserOptions-C0YT60JN.js")), Ut = ee(() => import("./PackageVersion-DyDViSOy.js")), Wt = ee(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_donut: qt } = El(), Ht = kl(), k = Qe, we = y({
|
|
41
41
|
get() {
|
|
42
42
|
return !!k.dataset && k.dataset.length;
|
|
43
43
|
},
|
|
44
44
|
set(t) {
|
|
45
45
|
return t;
|
|
46
46
|
}
|
|
47
|
-
}), D = H(null), ke = g(null), jt = g(null),
|
|
47
|
+
}), D = H(null), ke = g(null), jt = g(null), Qt = g(null), Ze = H(null), Je = H(null), j = H(null), ve = H(null), Ke = H(null), et = H(null), tt = g(0), lt = g(0), at = g(0), ot = g(!1), pe = g(null), Fe = g(null), xe = y({
|
|
48
48
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
49
49
|
set: (t) => t
|
|
50
|
-
}),
|
|
50
|
+
}), Q = y({
|
|
51
51
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
52
52
|
set: (t) => t
|
|
53
53
|
});
|
|
@@ -68,15 +68,15 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
68
68
|
selector: ".vue-data-ui-datalabel-name",
|
|
69
69
|
baseSize: t.style.chart.layout.labels.name.fontSize,
|
|
70
70
|
minSize: t.style.chart.layout.labels.name.minFontSize,
|
|
71
|
-
sizeRef:
|
|
71
|
+
sizeRef: Q
|
|
72
72
|
}
|
|
73
73
|
];
|
|
74
|
-
M.map((
|
|
75
|
-
o.querySelectorAll(
|
|
74
|
+
M.map((B) => o.querySelectorAll(B.selector).length).reduce((B, K) => B + K, 0) !== 0 && M.forEach(({ selector: B, baseSize: K, minSize: Ge, sizeRef: ml }) => {
|
|
75
|
+
o.querySelectorAll(B).forEach((bl) => {
|
|
76
76
|
const wl = Ol({
|
|
77
77
|
el: bl,
|
|
78
78
|
bounds: C,
|
|
79
|
-
currentFontSize:
|
|
79
|
+
currentFontSize: K,
|
|
80
80
|
minFontSize: Ge,
|
|
81
81
|
attempts: 200,
|
|
82
82
|
padding: 1
|
|
@@ -86,11 +86,11 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
Tt(async () => {
|
|
90
90
|
ot.value = !0, st(), requestAnimationFrame(R);
|
|
91
91
|
});
|
|
92
92
|
let Ie;
|
|
93
|
-
|
|
93
|
+
Tt(() => {
|
|
94
94
|
D.value && (Ie = new ResizeObserver((t) => {
|
|
95
95
|
for (const o of t) {
|
|
96
96
|
const { width: l, height: a } = o.contentRect;
|
|
@@ -100,9 +100,9 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}), Ie.observe(D.value.parentElement));
|
|
103
|
-
}),
|
|
103
|
+
}), St(() => {
|
|
104
104
|
Ie?.disconnect();
|
|
105
|
-
}),
|
|
105
|
+
}), St(() => {
|
|
106
106
|
j.value && (ve.value && j.value.unobserve(ve.value), j.value.disconnect());
|
|
107
107
|
});
|
|
108
108
|
const Me = y(() => !!e.value.debug);
|
|
@@ -133,12 +133,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
133
133
|
debug: Me.value
|
|
134
134
|
});
|
|
135
135
|
})), Lt(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
136
|
-
const t =
|
|
136
|
+
const t = Bl(() => {
|
|
137
137
|
const { width: o, height: l } = Vl({
|
|
138
138
|
chart: D.value,
|
|
139
|
-
title: e.value.style.chart.title.text ?
|
|
140
|
-
legend: e.value.style.chart.legend.show ?
|
|
141
|
-
source:
|
|
139
|
+
title: e.value.style.chart.title.text ? Ze.value : null,
|
|
140
|
+
legend: e.value.style.chart.legend.show ? Je.value : null,
|
|
141
|
+
source: Ke.value,
|
|
142
142
|
noTitle: et.value,
|
|
143
143
|
padding: e.value.autoSize ? void 0 : vt.value
|
|
144
144
|
});
|
|
@@ -149,24 +149,24 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
149
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);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
const f = g(
|
|
152
|
+
const f = g(Tl());
|
|
153
153
|
g(null);
|
|
154
154
|
const ze = g(!1), Oe = g(""), N = g(null), nt = g(0);
|
|
155
155
|
function De() {
|
|
156
156
|
const t = Dt({
|
|
157
157
|
userConfig: k.config,
|
|
158
|
-
defaultConfig:
|
|
158
|
+
defaultConfig: qt
|
|
159
159
|
});
|
|
160
160
|
let o = {};
|
|
161
161
|
return t.theme ? o = {
|
|
162
162
|
...Dt({
|
|
163
|
-
userConfig:
|
|
163
|
+
userConfig: Jl.vue_ui_donut[t.theme] || k.config,
|
|
164
164
|
defaultConfig: t
|
|
165
165
|
}),
|
|
166
166
|
customPalette: Dl[t.theme] || ie
|
|
167
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;
|
|
168
168
|
}
|
|
169
|
-
const e = g(De()), { loading: _e, FINAL_DATASET: de, manualLoading: $e, skeletonDataset:
|
|
169
|
+
const e = g(De()), { loading: _e, FINAL_DATASET: de, manualLoading: $e, skeletonDataset: Zt } = Gl({
|
|
170
170
|
...xl(k),
|
|
171
171
|
FINAL_CONFIG: e,
|
|
172
172
|
prepareConfig: De,
|
|
@@ -187,7 +187,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
187
187
|
color: "#CACACA"
|
|
188
188
|
}
|
|
189
189
|
],
|
|
190
|
-
skeletonConfig:
|
|
190
|
+
skeletonConfig: Sl({
|
|
191
191
|
defaultConfig: e.value,
|
|
192
192
|
userConfig: {
|
|
193
193
|
useCssAnimation: !1,
|
|
@@ -224,18 +224,18 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
})
|
|
227
|
-
}),
|
|
228
|
-
function
|
|
227
|
+
}), T = g(!0), W = H([]);
|
|
228
|
+
function Jt(t, o = 1e3, l = 50) {
|
|
229
229
|
return new Promise((a) => {
|
|
230
230
|
const i = t.length;
|
|
231
|
-
|
|
231
|
+
W.value = Array(i).fill(0);
|
|
232
232
|
let c = 0;
|
|
233
233
|
t.forEach((m, C) => {
|
|
234
234
|
setTimeout(() => {
|
|
235
235
|
const M = performance.now();
|
|
236
|
-
function z(
|
|
237
|
-
const
|
|
238
|
-
|
|
236
|
+
function z(B) {
|
|
237
|
+
const K = Math.min((B - M) / o, 1), Ge = Ot(K);
|
|
238
|
+
W.value[C] = m * Ge, W.value = [...W.value], K < 1 ? (requestAnimationFrame(z), requestAnimationFrame(R)) : (W.value[C] = m, W.value = [...W.value], c += 1, c === i && a(), requestAnimationFrame(R));
|
|
239
239
|
}
|
|
240
240
|
requestAnimationFrame(z);
|
|
241
241
|
}, C * l);
|
|
@@ -247,24 +247,24 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
247
247
|
() => _e.value,
|
|
248
248
|
async (t) => {
|
|
249
249
|
if (t || ut.value) return;
|
|
250
|
-
const o = de.value ===
|
|
250
|
+
const o = de.value === Zt, l = e.value.startAnimation?.show;
|
|
251
251
|
if (!o && l) {
|
|
252
252
|
ut.value = !0;
|
|
253
253
|
const a = de.value.map(
|
|
254
254
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
255
255
|
);
|
|
256
|
-
await
|
|
256
|
+
await Jt(
|
|
257
257
|
a,
|
|
258
258
|
e.value.startAnimation.durationMs,
|
|
259
259
|
e.value.startAnimation.staggerMs
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
T.value = !1;
|
|
263
263
|
},
|
|
264
264
|
{ immediate: !0 }
|
|
265
265
|
);
|
|
266
|
-
const { userOptionsVisible: Ne, setUserOptionsVisibility: rt, keepUserOptionState: it } =
|
|
267
|
-
function
|
|
266
|
+
const { userOptionsVisible: Ne, setUserOptionsVisibility: rt, keepUserOptionState: it } = ql({ config: e.value }), { svgRef: le } = Hl({ config: e.value.style.chart.title });
|
|
267
|
+
function Kt() {
|
|
268
268
|
rt(!0);
|
|
269
269
|
}
|
|
270
270
|
function el() {
|
|
@@ -286,7 +286,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
286
286
|
elementId: `donut__${f.value}`,
|
|
287
287
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
288
288
|
options: e.value.userOptions.print
|
|
289
|
-
}), tl = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ft = y(() =>
|
|
289
|
+
}), tl = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ft = y(() => Pl(e.value.customPalette)), p = g({
|
|
290
290
|
dataLabels: {
|
|
291
291
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
292
292
|
},
|
|
@@ -313,7 +313,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
313
313
|
}), gt = Yt, G = y(() => de.value.map((t, o) => ({
|
|
314
314
|
name: t.name,
|
|
315
315
|
color: It(t.color) || ft.value[o] || ie[o] || ie[o % ie.length],
|
|
316
|
-
value:
|
|
316
|
+
value: Fl(t.values.reduce((l, a) => l + a, 0)),
|
|
317
317
|
absoluteValues: t.values,
|
|
318
318
|
comment: t.comment || "",
|
|
319
319
|
patternIndex: o,
|
|
@@ -339,8 +339,8 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
339
339
|
function pt({ from: t, to: o, duration: l, onUpdate: a, onDone: i, easing: c = Ot }) {
|
|
340
340
|
const m = performance.now();
|
|
341
341
|
function C(M) {
|
|
342
|
-
const z = Math.min((M - m) / l, 1),
|
|
343
|
-
a(
|
|
342
|
+
const z = Math.min((M - m) / l, 1), B = c(z), K = t + (o - t) * B;
|
|
343
|
+
a(K, z), z < 1 ? requestAnimationFrame(C) : (a(o, 1), i && i());
|
|
344
344
|
}
|
|
345
345
|
requestAnimationFrame(C);
|
|
346
346
|
}
|
|
@@ -359,7 +359,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
359
359
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
360
360
|
onUpdate: (C, M) => {
|
|
361
361
|
I.value = I.value.map(
|
|
362
|
-
(z,
|
|
362
|
+
(z, B) => t === B ? { ...z, value: C } : z
|
|
363
363
|
), requestAnimationFrame(R);
|
|
364
364
|
},
|
|
365
365
|
onDone: () => {
|
|
@@ -392,20 +392,20 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
392
392
|
};
|
|
393
393
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
394
394
|
}
|
|
395
|
-
gt("selectLegend",
|
|
395
|
+
gt("selectLegend", q.value.map((i) => ({
|
|
396
396
|
name: i.name,
|
|
397
397
|
color: i.color,
|
|
398
398
|
value: i.value
|
|
399
399
|
})));
|
|
400
400
|
}
|
|
401
|
-
const al = y(() => de.value.reduce((t, o) => t + o.values.reduce((l, a) => l + a, 0), 0)),
|
|
402
|
-
if (
|
|
403
|
-
const t =
|
|
401
|
+
const al = y(() => de.value.reduce((t, o) => t + o.values.reduce((l, a) => l + a, 0), 0)), q = y(() => {
|
|
402
|
+
if (T.value && !_e.value) {
|
|
403
|
+
const t = W.value.map((l, a) => ({
|
|
404
404
|
...G.value[a],
|
|
405
405
|
value: l,
|
|
406
406
|
color: G.value[a].color,
|
|
407
407
|
ghost: !1
|
|
408
|
-
})), o = al.value -
|
|
408
|
+
})), o = al.value - W.value.reduce((l, a) => l + a, 0);
|
|
409
409
|
return o > 0 && t.push({
|
|
410
410
|
name: "__ghost__",
|
|
411
411
|
value: o,
|
|
@@ -443,7 +443,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
443
443
|
v: t.value,
|
|
444
444
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
445
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 /
|
|
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 / F.value) ? "-" : E(e.value.style.chart.layout.labels.percentage.formatter, bt(t), O({
|
|
447
447
|
v: bt(t),
|
|
448
448
|
s: "%",
|
|
449
449
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -458,7 +458,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
458
458
|
})), _ = y(() => {
|
|
459
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
460
|
return Math.max(12, l);
|
|
461
|
-
}),
|
|
461
|
+
}), S = y(() => Mt({ series: q.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), sl = y(() => Math.abs(q.value.map((t) => t.value).reduce((t, o) => t + o, 0)) > 0), nl = y(() => Mt({
|
|
462
462
|
series: [
|
|
463
463
|
{
|
|
464
464
|
value: 1,
|
|
@@ -470,8 +470,8 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
470
470
|
absoluteValues: [1]
|
|
471
471
|
}
|
|
472
472
|
]
|
|
473
|
-
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), Y = y(() =>
|
|
474
|
-
const t = Math.max(...
|
|
473
|
+
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), Y = y(() => S.value.filter((t) => !t.ghost)), d = y(() => {
|
|
474
|
+
const t = Math.max(...q.value.map((l) => l.value)), o = q.value.map((l) => l.value / t);
|
|
475
475
|
return Ll({
|
|
476
476
|
series: o,
|
|
477
477
|
center: {
|
|
@@ -479,19 +479,19 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
479
479
|
y: s.value.height / 2
|
|
480
480
|
},
|
|
481
481
|
maxRadius: Math.min(s.value.width, s.value.height) / 3,
|
|
482
|
-
hasGhost:
|
|
482
|
+
hasGhost: T.value
|
|
483
483
|
});
|
|
484
484
|
});
|
|
485
485
|
function ce(t) {
|
|
486
486
|
return t.x > s.value.width / 2 + 6 ? "start" : t.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
487
487
|
}
|
|
488
488
|
function ul(t) {
|
|
489
|
-
return t.middlePoint.y > s.value.height / 2 ?
|
|
489
|
+
return t.middlePoint.y > s.value.height / 2 ? P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function X(t) {
|
|
492
492
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Xe(t, o) {
|
|
495
495
|
const l = t.value / rl(o);
|
|
496
496
|
return isNaN(l) ? 0 : E(
|
|
497
497
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
@@ -507,9 +507,9 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
507
507
|
function rl(t) {
|
|
508
508
|
return [...t].map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const F = y(() => q.value.map((t) => t.value).reduce((t, o) => t + o, 0)), Be = y(() => F.value / q.value.length);
|
|
511
511
|
function bt(t) {
|
|
512
|
-
return oe.value ? t.proportion * 100 : t.value /
|
|
512
|
+
return oe.value ? t.proportion * 100 : t.value / F.value * 100;
|
|
513
513
|
}
|
|
514
514
|
const Ve = g(null), me = g(!1);
|
|
515
515
|
function he({ datapoint: t, seriesIndex: o }) {
|
|
@@ -519,7 +519,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
519
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;
|
|
520
520
|
let i = "";
|
|
521
521
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
522
|
-
if (me.value = !1,
|
|
522
|
+
if (me.value = !1, Xl(c))
|
|
523
523
|
try {
|
|
524
524
|
const m = c({
|
|
525
525
|
seriesIndex: l,
|
|
@@ -569,33 +569,33 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
569
569
|
function se(t) {
|
|
570
570
|
return e.value.useBlurOnHover && ![null, void 0].includes(N.value) && N.value !== t ? `url(#blur_${f.value})` : "";
|
|
571
571
|
}
|
|
572
|
-
const
|
|
573
|
-
const t =
|
|
572
|
+
const Z = y(() => {
|
|
573
|
+
const t = q.value.map((l) => ({
|
|
574
574
|
name: l.name,
|
|
575
575
|
color: l.color
|
|
576
|
-
})), o =
|
|
576
|
+
})), o = q.value.map((l) => l.value);
|
|
577
577
|
return { head: t, body: o };
|
|
578
578
|
});
|
|
579
579
|
function Ee(t = null) {
|
|
580
580
|
Cl(() => {
|
|
581
|
-
const o =
|
|
581
|
+
const o = Z.value.head.map((i, c) => [[
|
|
582
582
|
i.name
|
|
583
|
-
], [
|
|
583
|
+
], [Z.value.body[c]], [isNaN(Z.value.body[c] / F.value) ? "-" : Z.value.body[c] / F.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Nl(l);
|
|
584
584
|
t ? t(a) : Yl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
const Ce = y(() => {
|
|
588
588
|
const t = [
|
|
589
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>',
|
|
590
|
-
O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
590
|
+
O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
591
591
|
"100%"
|
|
592
|
-
], o =
|
|
592
|
+
], o = Z.value.head.map((i, c) => [
|
|
593
593
|
{
|
|
594
594
|
color: i.color,
|
|
595
595
|
name: i.name || "-"
|
|
596
596
|
},
|
|
597
|
-
|
|
598
|
-
isNaN(
|
|
597
|
+
Z.value.body[c],
|
|
598
|
+
isNaN(Z.value.body[c] / F.value) ? "-" : (Z.value.body[c] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
599
599
|
]), l = {
|
|
600
600
|
th: {
|
|
601
601
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -627,7 +627,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
627
627
|
function il(t) {
|
|
628
628
|
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function J(t, o) {
|
|
631
631
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), gt("selectDatapoint", { datapoint: t, index: o });
|
|
632
632
|
}
|
|
633
633
|
function xt() {
|
|
@@ -663,7 +663,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
663
663
|
const be = y(() => {
|
|
664
664
|
const t = e.value.table.useDialog && !e.value.table.show, o = p.value.showTable;
|
|
665
665
|
return {
|
|
666
|
-
component: t ?
|
|
666
|
+
component: t ? Wt : Vt,
|
|
667
667
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
668
668
|
props: t ? {
|
|
669
669
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -694,12 +694,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
694
694
|
e.value.table.show || (t && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
695
695
|
});
|
|
696
696
|
function Ct() {
|
|
697
|
-
p.value.showTable = !1,
|
|
697
|
+
p.value.showTable = !1, Fe.value && Fe.value.setTableIconState(!1);
|
|
698
698
|
}
|
|
699
699
|
const cl = y(() => Ye.value.map((t) => ({
|
|
700
700
|
...t,
|
|
701
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 } =
|
|
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 } = Wl({
|
|
703
703
|
svg: le,
|
|
704
704
|
title: fl,
|
|
705
705
|
legend: yl,
|
|
@@ -732,7 +732,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
732
732
|
class: Ue(`vue-data-ui-component vue-ui-donut ${ne.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
733
733
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
734
734
|
id: `donut__${f.value}`,
|
|
735
|
-
onMouseenter:
|
|
735
|
+
onMouseenter: Kt,
|
|
736
736
|
onMouseleave: el
|
|
737
737
|
}, [
|
|
738
738
|
e.value.userOptions.buttons.annotator && u(le) ? (n(), te(u(Rt), {
|
|
@@ -754,10 +754,10 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
754
754
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
755
755
|
key: 2,
|
|
756
756
|
ref_key: "chartTitle",
|
|
757
|
-
ref:
|
|
757
|
+
ref: Ze,
|
|
758
758
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
759
759
|
}, [
|
|
760
|
-
(n(), te(
|
|
760
|
+
(n(), te(Zl, {
|
|
761
761
|
key: `title_${tt.value}`,
|
|
762
762
|
config: {
|
|
763
763
|
title: {
|
|
@@ -776,7 +776,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
776
776
|
}, null, 8, la),
|
|
777
777
|
e.value.userOptions.show && we.value && (u(it) || u(Ne)) ? (n(), te(u(Gt), {
|
|
778
778
|
ref_key: "userOptionsRef",
|
|
779
|
-
ref:
|
|
779
|
+
ref: Fe,
|
|
780
780
|
key: `user_option_${nt.value}`,
|
|
781
781
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
782
782
|
color: e.value.style.chart.color,
|
|
@@ -811,7 +811,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
811
811
|
onToggleTooltip: $t,
|
|
812
812
|
onToggleAnnotator: Re,
|
|
813
813
|
style: $({ visibility: u(it) ? u(Ne) ? "visible" : "hidden" : "visible" })
|
|
814
|
-
},
|
|
814
|
+
}, We({ _: 2 }, [
|
|
815
815
|
t.$slots.menuIcon ? {
|
|
816
816
|
name: "menuIcon",
|
|
817
817
|
fn: A(({ isOpen: l, color: a }) => [
|
|
@@ -889,7 +889,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
889
889
|
ref: ke,
|
|
890
890
|
class: "vue-data-ui-g"
|
|
891
891
|
}, [
|
|
892
|
-
|
|
892
|
+
Te(u(Ut)),
|
|
893
893
|
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
894
894
|
key: 0,
|
|
895
895
|
x: 0,
|
|
@@ -909,21 +909,21 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
909
909
|
}, [
|
|
910
910
|
h("stop", {
|
|
911
911
|
offset: "0%",
|
|
912
|
-
"stop-color": u(
|
|
912
|
+
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
913
913
|
"stop-opacity": "0"
|
|
914
914
|
}, null, 8, ua),
|
|
915
915
|
h("stop", {
|
|
916
916
|
offset: `${(1 - ae.value / _.value) * 100}%`,
|
|
917
|
-
"stop-color": u(
|
|
917
|
+
"stop-color": u(Pe)("#FFFFFF", 0),
|
|
918
918
|
"stop-opacity": "0"
|
|
919
919
|
}, null, 8, ra),
|
|
920
920
|
h("stop", {
|
|
921
921
|
offset: `${(1 - ae.value / _.value / 2) * 100}%`,
|
|
922
|
-
"stop-color": u(
|
|
922
|
+
"stop-color": u(Pe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
923
923
|
}, null, 8, ia),
|
|
924
924
|
h("stop", {
|
|
925
925
|
offset: "100%",
|
|
926
|
-
"stop-color": u(
|
|
926
|
+
"stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
|
|
927
927
|
"stop-opacity": "0"
|
|
928
928
|
}, null, 8, va)
|
|
929
929
|
], 8, na)) : v("", !0)
|
|
@@ -937,12 +937,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
937
937
|
}, [
|
|
938
938
|
h("stop", {
|
|
939
939
|
offset: "0%",
|
|
940
|
-
"stop-color": u(Ml)(
|
|
940
|
+
"stop-color": u(Ml)(S.value[a].color, 0.05),
|
|
941
941
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
942
942
|
}, null, 8, ha),
|
|
943
943
|
h("stop", {
|
|
944
944
|
offset: "100%",
|
|
945
|
-
"stop-color":
|
|
945
|
+
"stop-color": S.value[a].color
|
|
946
946
|
}, null, 8, ya)
|
|
947
947
|
], 8, ca))), 256))
|
|
948
948
|
])) : v("", !0),
|
|
@@ -993,8 +993,8 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
993
993
|
}, null, 8, wa)
|
|
994
994
|
], 8, ba)
|
|
995
995
|
]),
|
|
996
|
-
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(
|
|
997
|
-
|
|
996
|
+
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((l) => !l.ghost), (l, a) => (n(), r("g", null, [
|
|
997
|
+
X(l) && p.value.dataLabels.show ? (n(), r("path", {
|
|
998
998
|
key: 0,
|
|
999
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
1000
|
stroke: l.color,
|
|
@@ -1005,10 +1005,10 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1005
1005
|
filter: se(a)
|
|
1006
1006
|
}, null, 8, ka)) : v("", !0)
|
|
1007
1007
|
]))), 256)) : v("", !0),
|
|
1008
|
-
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(
|
|
1009
|
-
|
|
1008
|
+
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((l) => !l.ghost), (l, a) => (n(), r("g", null, [
|
|
1009
|
+
X(l) && p.value.dataLabels.show ? (n(), r("path", {
|
|
1010
1010
|
key: 0,
|
|
1011
|
-
d: `M ${u(
|
|
1011
|
+
d: `M ${u(P)({ 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(P)({ 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}`,
|
|
1012
1012
|
stroke: l.color,
|
|
1013
1013
|
"stroke-width": "1",
|
|
1014
1014
|
"stroke-linecap": "round",
|
|
@@ -1016,7 +1016,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1016
1016
|
fill: "none",
|
|
1017
1017
|
filter: se(a),
|
|
1018
1018
|
style: $({
|
|
1019
|
-
transition:
|
|
1019
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1020
1020
|
})
|
|
1021
1021
|
}, null, 12, xa)) : v("", !0)
|
|
1022
1022
|
]))), 256)) : v("", !0),
|
|
@@ -1029,13 +1029,13 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1029
1029
|
filter: `url(#shadow_${f.value})`
|
|
1030
1030
|
}, null, 8, _a)) : v("", !0),
|
|
1031
1031
|
t.$slots.pattern ? (n(), r("g", $a, [
|
|
1032
|
-
(n(!0), r(w, null, L(
|
|
1032
|
+
(n(!0), r(w, null, L(Qe.dataset, (l, a) => (n(), r("defs", {
|
|
1033
1033
|
key: `pattern-${l.patternIndex}`
|
|
1034
1034
|
}, [
|
|
1035
|
-
b(t.$slots, "pattern",
|
|
1035
|
+
b(t.$slots, "pattern", qe({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${f.value}_${a}` }), void 0, !0)
|
|
1036
1036
|
]))), 128))
|
|
1037
1037
|
])) : v("", !0),
|
|
1038
|
-
|
|
1038
|
+
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
1039
1039
|
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1040
1040
|
stroke: e.value.style.chart.backgroundColor,
|
|
1041
1041
|
d: l.arcSlice,
|
|
@@ -1049,7 +1049,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1049
1049
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1050
1050
|
filter: se(a)
|
|
1051
1051
|
}, null, 8, Aa))), 256)),
|
|
1052
|
-
t.$slots.pattern ? (n(), r("g",
|
|
1052
|
+
t.$slots.pattern ? (n(), r("g", Ta, [
|
|
1053
1053
|
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1054
1054
|
class: "vue-ui-donut-arc-path",
|
|
1055
1055
|
d: l.arcSlice,
|
|
@@ -1057,19 +1057,19 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1057
1057
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1058
1058
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1059
1059
|
filter: se(a)
|
|
1060
|
-
}, null, 8,
|
|
1060
|
+
}, null, 8, Sa))), 256))
|
|
1061
1061
|
])) : v("", !0)
|
|
1062
1062
|
], 64)) : v("", !0),
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
1064
|
+
S.value.length > 1 ? (n(), r("g", Pa, [
|
|
1065
1065
|
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1066
1066
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1067
1067
|
d: d.value[a].path,
|
|
1068
1068
|
fill: "#FFFFFF",
|
|
1069
1069
|
style: $({
|
|
1070
|
-
transition:
|
|
1070
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1071
1071
|
})
|
|
1072
|
-
}, null, 12,
|
|
1072
|
+
}, null, 12, Fa))), 256)),
|
|
1073
1073
|
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", La, [
|
|
1074
1074
|
(n(!0), r(w, null, L(Y.value, (l, a) => (n(), r("path", {
|
|
1075
1075
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1079,7 +1079,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1079
1079
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1080
1080
|
filter: `url(#drop_shadow_${f.value})`,
|
|
1081
1081
|
style: $({
|
|
1082
|
-
transition:
|
|
1082
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1083
1083
|
})
|
|
1084
1084
|
}, null, 12, Ia))), 256))
|
|
1085
1085
|
])) : v("", !0),
|
|
@@ -1092,7 +1092,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1092
1092
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1093
1093
|
filter: se(a),
|
|
1094
1094
|
style: $({
|
|
1095
|
-
transition:
|
|
1095
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1096
1096
|
transformOrigin: "center"
|
|
1097
1097
|
})
|
|
1098
1098
|
}, null, 12, za))), 256))
|
|
@@ -1105,7 +1105,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1105
1105
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1106
1106
|
filter: se(a),
|
|
1107
1107
|
style: $({
|
|
1108
|
-
transition:
|
|
1108
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1109
1109
|
})
|
|
1110
1110
|
}, null, 12, Oa))), 256))
|
|
1111
1111
|
])) : (n(), r("g", Da, [
|
|
@@ -1114,7 +1114,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1114
1114
|
cx: s.value.width / 2,
|
|
1115
1115
|
cy: s.value.height / 2,
|
|
1116
1116
|
r: _.value,
|
|
1117
|
-
fill: `url(#pattern_${f.value}_${
|
|
1117
|
+
fill: `url(#pattern_${f.value}_${S.value[0].patternIndex})`,
|
|
1118
1118
|
stroke: e.value.style.chart.backgroundColor,
|
|
1119
1119
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1120
1120
|
}, null, 8, Na)) : v("", !0),
|
|
@@ -1122,20 +1122,20 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1122
1122
|
cx: s.value.width / 2,
|
|
1123
1123
|
cy: s.value.height / 2,
|
|
1124
1124
|
r: _.value,
|
|
1125
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${f.value})` :
|
|
1125
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${f.value})` : S.value[0].color,
|
|
1126
1126
|
stroke: e.value.style.chart.backgroundColor,
|
|
1127
1127
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1128
1128
|
}, null, 8, Ya)
|
|
1129
1129
|
]))
|
|
1130
1130
|
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1131
|
-
e.value.type === "classic" && !sl.value ? (n(), r("g",
|
|
1131
|
+
e.value.type === "classic" && !sl.value ? (n(), r("g", Xa, [
|
|
1132
1132
|
(n(!0), r(w, null, L(nl.value, (l, a) => (n(), r("path", {
|
|
1133
1133
|
class: "vue-ui-donut-arc-path",
|
|
1134
1134
|
d: l.arcSlice,
|
|
1135
1135
|
fill: l.color,
|
|
1136
1136
|
stroke: e.value.style.chart.backgroundColor,
|
|
1137
1137
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1138
|
-
}, null, 8,
|
|
1138
|
+
}, null, 8, Ba))), 256))
|
|
1139
1139
|
])) : v("", !0),
|
|
1140
1140
|
h("circle", {
|
|
1141
1141
|
cx: s.value.width / 2,
|
|
@@ -1157,16 +1157,16 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1157
1157
|
}, null, 8, Ea)) : v("", !0),
|
|
1158
1158
|
h("circle", {
|
|
1159
1159
|
ref_key: "circle_hollow",
|
|
1160
|
-
ref:
|
|
1160
|
+
ref: Qt,
|
|
1161
1161
|
style: { pointerEvents: "none" },
|
|
1162
1162
|
fill: "none",
|
|
1163
1163
|
cx: s.value.width / 2,
|
|
1164
1164
|
cy: s.value.height / 2,
|
|
1165
1165
|
r: Math.max(0.1, ae.value * 1.7)
|
|
1166
1166
|
}, null, 8, Ra),
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
(n(!0), r(w, null, L(
|
|
1167
|
+
F.value ? (n(), r(w, { key: 11 }, [
|
|
1168
|
+
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Ga, [
|
|
1169
|
+
(n(!0), r(w, null, L(S.value.filter((l) => !l.ghost), (l, a) => (n(), r("path", {
|
|
1170
1170
|
d: e.value.type === "classic" ? l.arcSlice : d.value[a].path,
|
|
1171
1171
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1172
1172
|
fill: N.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
@@ -1177,23 +1177,23 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1177
1177
|
show: !0
|
|
1178
1178
|
}),
|
|
1179
1179
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1180
|
-
onClick: (i) =>
|
|
1180
|
+
onClick: (i) => J(l, a)
|
|
1181
1181
|
}, null, 40, Ua))), 256))
|
|
1182
|
-
])) : (n(), r("g",
|
|
1182
|
+
])) : (n(), r("g", Wa, [
|
|
1183
1183
|
h("circle", {
|
|
1184
1184
|
cx: s.value.width / 2,
|
|
1185
1185
|
cy: s.value.height / 2,
|
|
1186
1186
|
r: _.value,
|
|
1187
1187
|
fill: "transparent",
|
|
1188
1188
|
onMouseenter: o[0] || (o[0] = (l) => ye({
|
|
1189
|
-
datapoint:
|
|
1189
|
+
datapoint: S.value[0],
|
|
1190
1190
|
relativeIndex: 0,
|
|
1191
|
-
seriesIndex:
|
|
1191
|
+
seriesIndex: S.value[0].seriesIndex,
|
|
1192
1192
|
show: !0
|
|
1193
1193
|
})),
|
|
1194
|
-
onMouseleave: o[1] || (o[1] = (l) => he({ datapoint:
|
|
1195
|
-
onClick: o[2] || (o[2] = (l) =>
|
|
1196
|
-
}, null, 40,
|
|
1194
|
+
onMouseleave: o[1] || (o[1] = (l) => he({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1195
|
+
onClick: o[2] || (o[2] = (l) => J(S.value[0], t.i))
|
|
1196
|
+
}, null, 40, qa)
|
|
1197
1197
|
]))
|
|
1198
1198
|
], 64)) : v("", !0),
|
|
1199
1199
|
e.value.type === "classic" ? (n(), r("g", {
|
|
@@ -1221,10 +1221,10 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1221
1221
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1222
1222
|
}, V(u(E)(
|
|
1223
1223
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1224
|
-
|
|
1224
|
+
F.value,
|
|
1225
1225
|
u(O)({
|
|
1226
1226
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1227
|
-
v:
|
|
1227
|
+
v: F.value,
|
|
1228
1228
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1229
1229
|
})
|
|
1230
1230
|
)), 13, ja)) : v("", !0),
|
|
@@ -1236,7 +1236,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1236
1236
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1237
1237
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1238
1238
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1239
|
-
}, V(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1239
|
+
}, V(e.value.style.chart.layout.labels.hollow.average.text), 13, Qa)) : v("", !0),
|
|
1240
1240
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1241
1241
|
key: 3,
|
|
1242
1242
|
"text-anchor": "middle",
|
|
@@ -1245,23 +1245,23 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1245
1245
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1246
1246
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1247
1247
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1248
|
-
}, V(oe.value ||
|
|
1248
|
+
}, V(oe.value || T.value ? "--" : u(E)(
|
|
1249
1249
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1250
|
-
|
|
1250
|
+
Be.value,
|
|
1251
1251
|
u(O)({
|
|
1252
1252
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1253
|
-
v:
|
|
1253
|
+
v: Be.value,
|
|
1254
1254
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1255
1255
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1256
1256
|
})
|
|
1257
|
-
)), 13,
|
|
1257
|
+
)), 13, Za)) : v("", !0)
|
|
1258
1258
|
], 512)) : v("", !0),
|
|
1259
1259
|
(n(!0), r(w, null, L(Y.value.filter((l) => !l.ghost), (l, a) => (n(), r("g", {
|
|
1260
1260
|
filter: se(a),
|
|
1261
1261
|
class: Ue({ animated: e.value.useCssAnimation }),
|
|
1262
1262
|
key: l.seriesIndex
|
|
1263
1263
|
}, [
|
|
1264
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1264
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Ka, [
|
|
1265
1265
|
(n(), r("foreignObject", {
|
|
1266
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
1267
|
y: u(ge)(l) - (kt.value ? 20 : 0),
|
|
@@ -1270,20 +1270,20 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1270
1270
|
style: { overflow: "visible" }
|
|
1271
1271
|
}, [
|
|
1272
1272
|
h("div", null, [
|
|
1273
|
-
b(t.$slots, "dataLabel",
|
|
1273
|
+
b(t.$slots, "dataLabel", qe({ ref_for: !0 }, {
|
|
1274
1274
|
datapoint: l,
|
|
1275
1275
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(N.value) || N.value === a,
|
|
1276
1276
|
isSafari: kt.value,
|
|
1277
|
-
isVisible:
|
|
1277
|
+
isVisible: X(l) && p.value.dataLabels.show,
|
|
1278
1278
|
textAlign: u(x)(l, !0, 16, !0).anchor,
|
|
1279
1279
|
flexAlign: u(x)(l, !0, 16).anchor,
|
|
1280
|
-
percentage:
|
|
1280
|
+
percentage: Xe(l, Y.value)
|
|
1281
1281
|
}), void 0, !0)
|
|
1282
1282
|
])
|
|
1283
1283
|
], 8, eo))
|
|
1284
1284
|
])) : (n(), r("g", to, [
|
|
1285
1285
|
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1286
|
-
|
|
1286
|
+
X(l) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1287
1287
|
key: 0,
|
|
1288
1288
|
cx: u(x)(l).x,
|
|
1289
1289
|
cy: u(ge)(l) - 3.5,
|
|
@@ -1292,7 +1292,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1292
1292
|
"stroke-width": 1,
|
|
1293
1293
|
r: 3,
|
|
1294
1294
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(N.value) || N.value === a ? "" : `url(#blur_${f.value})`,
|
|
1295
|
-
onClick: (i) =>
|
|
1295
|
+
onClick: (i) => J(l, a),
|
|
1296
1296
|
onMouseenter: (i) => ye({
|
|
1297
1297
|
datapoint: l,
|
|
1298
1298
|
relativeIndex: a,
|
|
@@ -1303,16 +1303,16 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1303
1303
|
}, null, 40, lo)) : v("", !0)
|
|
1304
1304
|
], 64)) : v("", !0),
|
|
1305
1305
|
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1306
|
-
|
|
1306
|
+
X(l) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1307
1307
|
key: 0,
|
|
1308
|
-
cx: u(
|
|
1309
|
-
cy: u(
|
|
1308
|
+
cx: u(P)({ 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,
|
|
1309
|
+
cy: u(P)({ 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,
|
|
1310
1310
|
fill: l.color,
|
|
1311
1311
|
stroke: e.value.style.chart.backgroundColor,
|
|
1312
1312
|
"stroke-width": 1,
|
|
1313
1313
|
r: 3,
|
|
1314
1314
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(N.value) || N.value === a ? "" : `url(#blur_${f.value})`,
|
|
1315
|
-
onClick: (i) =>
|
|
1315
|
+
onClick: (i) => J(l, a),
|
|
1316
1316
|
onMouseenter: (i) => ye({
|
|
1317
1317
|
datapoint: l,
|
|
1318
1318
|
relativeIndex: a,
|
|
@@ -1321,12 +1321,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1321
1321
|
}),
|
|
1322
1322
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1323
1323
|
style: $({
|
|
1324
|
-
transition:
|
|
1324
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1325
1325
|
})
|
|
1326
1326
|
}, null, 44, ao)) : v("", !0)
|
|
1327
1327
|
], 64)) : v("", !0),
|
|
1328
1328
|
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1329
|
-
|
|
1329
|
+
Pt(h("text", {
|
|
1330
1330
|
class: "vue-data-ui-datalabel-value",
|
|
1331
1331
|
"text-anchor": u(x)(l, !0, 12).anchor,
|
|
1332
1332
|
x: u(x)(l, !0, 12).x,
|
|
@@ -1334,7 +1334,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1334
1334
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1335
1335
|
"font-size": xe.value + "px",
|
|
1336
1336
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1337
|
-
onClick: (i) =>
|
|
1337
|
+
onClick: (i) => J(l, a),
|
|
1338
1338
|
onMouseenter: (i) => ye({
|
|
1339
1339
|
datapoint: l,
|
|
1340
1340
|
relativeIndex: a,
|
|
@@ -1342,7 +1342,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1342
1342
|
show: !0
|
|
1343
1343
|
}),
|
|
1344
1344
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1345
|
-
}, V(
|
|
1345
|
+
}, V(Xe(l, Y.value)) + " " + V(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1346
1346
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1347
1347
|
l.value,
|
|
1348
1348
|
u(O)({
|
|
@@ -1353,43 +1353,43 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1353
1353
|
}),
|
|
1354
1354
|
{ datapoint: l }
|
|
1355
1355
|
)})` : ""), 45, oo), [
|
|
1356
|
-
[
|
|
1356
|
+
[Ft, X(l) && p.value.dataLabels.show]
|
|
1357
1357
|
]),
|
|
1358
|
-
|
|
1358
|
+
Pt(h("text", {
|
|
1359
1359
|
class: "vue-data-ui-datalabel-name",
|
|
1360
1360
|
"text-anchor": u(x)(l).anchor,
|
|
1361
1361
|
x: u(x)(l, !0, 12).x,
|
|
1362
|
-
y: u(ge)(l) +
|
|
1362
|
+
y: u(ge)(l) + Q.value * 1.2,
|
|
1363
1363
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1364
|
-
"font-size":
|
|
1364
|
+
"font-size": Q.value + "px",
|
|
1365
1365
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1366
|
-
onClick: (i) =>
|
|
1366
|
+
onClick: (i) => J(l, a),
|
|
1367
1367
|
innerHTML: u(zt)({
|
|
1368
1368
|
content: l.name,
|
|
1369
|
-
fontSize:
|
|
1369
|
+
fontSize: Q.value,
|
|
1370
1370
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1371
1371
|
x: u(x)(l, !0, 12).x,
|
|
1372
|
-
y: u(ge)(l) +
|
|
1372
|
+
y: u(ge)(l) + Q.value
|
|
1373
1373
|
})
|
|
1374
1374
|
}, null, 12, so), [
|
|
1375
|
-
[
|
|
1375
|
+
[Ft, X(l) && p.value.dataLabels.show]
|
|
1376
1376
|
]),
|
|
1377
|
-
o[6] || (o[6] =
|
|
1377
|
+
o[6] || (o[6] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1378
1378
|
], 64)) : v("", !0),
|
|
1379
1379
|
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1380
|
-
|
|
1380
|
+
X(l) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1381
1381
|
key: 0,
|
|
1382
1382
|
class: "vue-data-ui-datalabel-value",
|
|
1383
1383
|
"text-anchor": ce(d.value[a].middlePoint),
|
|
1384
|
-
x: u(
|
|
1385
|
-
y: u(
|
|
1384
|
+
x: u(P)({ 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,
|
|
1385
|
+
y: u(P)({ 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,
|
|
1386
1386
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1387
1387
|
"font-size": xe.value,
|
|
1388
1388
|
style: $({
|
|
1389
|
-
transition:
|
|
1389
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1390
1390
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1391
1391
|
}),
|
|
1392
|
-
onClick: (i) =>
|
|
1392
|
+
onClick: (i) => J(l, a),
|
|
1393
1393
|
onMouseenter: (i) => ye({
|
|
1394
1394
|
datapoint: l,
|
|
1395
1395
|
relativeIndex: a,
|
|
@@ -1397,7 +1397,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1397
1397
|
show: !0
|
|
1398
1398
|
}),
|
|
1399
1399
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1400
|
-
}, V(
|
|
1400
|
+
}, V(Xe(l, Y.value)) + " " + V(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
|
|
1401
1401
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1402
1402
|
l.value,
|
|
1403
1403
|
u(O)({
|
|
@@ -1408,32 +1408,32 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1408
1408
|
}),
|
|
1409
1409
|
{ datapoint: l }
|
|
1410
1410
|
)})` : ""), 45, no)) : v("", !0),
|
|
1411
|
-
|
|
1411
|
+
X(l) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1412
1412
|
key: 1,
|
|
1413
1413
|
class: "vue-data-ui-datalabel-name",
|
|
1414
1414
|
"text-anchor": ce(d.value[a].middlePoint),
|
|
1415
|
-
x: u(
|
|
1416
|
-
y: u(
|
|
1415
|
+
x: u(P)({ 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,
|
|
1416
|
+
y: u(P)({ 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 + Q.value * 1.2,
|
|
1417
1417
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1418
|
-
"font-size":
|
|
1418
|
+
"font-size": Q.value,
|
|
1419
1419
|
style: $({
|
|
1420
|
-
transition:
|
|
1420
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1421
1421
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1422
1422
|
}),
|
|
1423
|
-
onClick: (i) =>
|
|
1423
|
+
onClick: (i) => J(l, a),
|
|
1424
1424
|
innerHTML: u(zt)({
|
|
1425
1425
|
content: l.name,
|
|
1426
1426
|
fontSize: xe.value,
|
|
1427
1427
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1428
|
-
x: u(
|
|
1429
|
-
y: u(
|
|
1428
|
+
x: u(P)({ 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,
|
|
1429
|
+
y: u(P)({ 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 + Q.value * 1.2
|
|
1430
1430
|
})
|
|
1431
1431
|
}, null, 12, uo)) : v("", !0),
|
|
1432
|
-
o[7] || (o[7] =
|
|
1432
|
+
o[7] || (o[7] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1433
1433
|
], 64)) : v("", !0)
|
|
1434
1434
|
])),
|
|
1435
1435
|
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (n(), r("g", ro, [
|
|
1436
|
-
|
|
1436
|
+
X(l) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1437
1437
|
key: 0,
|
|
1438
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
1439
|
y: u(ge)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -1443,30 +1443,30 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1443
1443
|
}, [
|
|
1444
1444
|
h("div", null, [
|
|
1445
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:
|
|
1446
|
+
plot: { ...l, textAlign: u(x)(l, !0, 16, !0).anchor, flexAlign: u(x)(l, !0, 16).anchor, isFirstLoad: T.value }
|
|
1447
1447
|
}, void 0, !0)
|
|
1448
1448
|
])
|
|
1449
1449
|
], 8, io)) : v("", !0),
|
|
1450
|
-
|
|
1450
|
+
X(l) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1451
1451
|
key: 1,
|
|
1452
|
-
x: e.value.style.chart.comments.offsetX + (ce(d.value[a].middlePoint) === "end" ? u(
|
|
1452
|
+
x: e.value.style.chart.comments.offsetX + (ce(d.value[a].middlePoint) === "end" ? u(P)({ 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(P)({ 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(P)({ 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),
|
|
1453
1453
|
y: ul(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1454
1454
|
width: e.value.style.chart.comments.width,
|
|
1455
1455
|
height: "200",
|
|
1456
1456
|
style: $({
|
|
1457
|
-
transition:
|
|
1457
|
+
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1458
1458
|
overflow: "visible",
|
|
1459
1459
|
pointerEvents: "none"
|
|
1460
1460
|
})
|
|
1461
1461
|
}, [
|
|
1462
1462
|
h("div", null, [
|
|
1463
1463
|
b(t.$slots, "plot-comment", {
|
|
1464
|
-
plot: { ...l, textAlign: ce(d.value[a].middlePoint), flexAlign: ce(d.value[a].middlePoint), isFirstLoad:
|
|
1464
|
+
plot: { ...l, textAlign: ce(d.value[a].middlePoint), flexAlign: ce(d.value[a].middlePoint), isFirstLoad: T.value }
|
|
1465
1465
|
}, void 0, !0)
|
|
1466
1466
|
])
|
|
1467
1467
|
], 12, vo)) : v("", !0)
|
|
1468
1468
|
])) : v("", !0)
|
|
1469
|
-
], 10,
|
|
1469
|
+
], 10, Ja))), 128)),
|
|
1470
1470
|
b(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1471
1471
|
], 512)
|
|
1472
1472
|
], 14, aa)),
|
|
@@ -1482,14 +1482,14 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1482
1482
|
}, [
|
|
1483
1483
|
h("div", {
|
|
1484
1484
|
ref_key: "chartLegend",
|
|
1485
|
-
ref:
|
|
1485
|
+
ref: Je
|
|
1486
1486
|
}, [
|
|
1487
|
-
e.value.style.chart.legend.show ? (n(), te(
|
|
1487
|
+
e.value.style.chart.legend.show ? (n(), te(Kl, {
|
|
1488
1488
|
key: `legend_${at.value}`,
|
|
1489
1489
|
legendSet: Ye.value,
|
|
1490
1490
|
config: ol.value,
|
|
1491
1491
|
onClickMarker: o[3] || (o[3] = ({ i: l }) => mt(l))
|
|
1492
|
-
},
|
|
1492
|
+
}, We({
|
|
1493
1493
|
item: A(({ legend: l, index: a }) => [
|
|
1494
1494
|
h("div", {
|
|
1495
1495
|
style: $(`opacity:${U.value.includes(a) ? 0.5 : 1}`),
|
|
@@ -1501,7 +1501,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1501
1501
|
t.$slots.pattern ? {
|
|
1502
1502
|
name: "legend-pattern",
|
|
1503
1503
|
fn: A(({ legend: l, index: a }) => [
|
|
1504
|
-
|
|
1504
|
+
Te(Ql, {
|
|
1505
1505
|
shape: l.shape,
|
|
1506
1506
|
radius: 30,
|
|
1507
1507
|
stroke: "none",
|
|
@@ -1518,19 +1518,19 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1518
1518
|
t.$slots.source ? (n(), r("div", {
|
|
1519
1519
|
key: 6,
|
|
1520
1520
|
ref_key: "source",
|
|
1521
|
-
ref:
|
|
1521
|
+
ref: Ke,
|
|
1522
1522
|
dir: "auto"
|
|
1523
1523
|
}, [
|
|
1524
1524
|
b(t.$slots, "source", {}, void 0, !0)
|
|
1525
1525
|
], 512)) : v("", !0),
|
|
1526
1526
|
t.$slots.hollow ? (n(), r("div", fo, [
|
|
1527
1527
|
b(t.$slots, "hollow", ue(re({
|
|
1528
|
-
total:
|
|
1529
|
-
average:
|
|
1528
|
+
total: F.value,
|
|
1529
|
+
average: Be.value,
|
|
1530
1530
|
dataset: G.value
|
|
1531
1531
|
})), void 0, !0)
|
|
1532
1532
|
])) : v("", !0),
|
|
1533
|
-
|
|
1533
|
+
Te(u(Xt), {
|
|
1534
1534
|
show: p.value.showTooltip && ze.value,
|
|
1535
1535
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1536
1536
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1558,11 +1558,11 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1558
1558
|
]),
|
|
1559
1559
|
_: 3
|
|
1560
1560
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1561
|
-
we.value && e.value.userOptions.buttons.table ? (n(), te($l(be.value.component),
|
|
1561
|
+
we.value && e.value.userOptions.buttons.table ? (n(), te($l(be.value.component), qe({ key: 8 }, be.value.props, {
|
|
1562
1562
|
ref_key: "tableUnit",
|
|
1563
1563
|
ref: pe,
|
|
1564
1564
|
onClose: Ct
|
|
1565
|
-
}),
|
|
1565
|
+
}), We({
|
|
1566
1566
|
content: A(() => [
|
|
1567
1567
|
(n(), te(u(Et), {
|
|
1568
1568
|
key: `table_${lt.value}`,
|
|
@@ -1581,7 +1581,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1581
1581
|
}, null, 8, go)
|
|
1582
1582
|
]),
|
|
1583
1583
|
td: A(({ td: l }) => [
|
|
1584
|
-
|
|
1584
|
+
Se(V(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(E)(
|
|
1585
1585
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1586
1586
|
l,
|
|
1587
1587
|
u(O)({
|
|
@@ -1608,7 +1608,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1608
1608
|
e.value.table.useDialog ? {
|
|
1609
1609
|
name: "title",
|
|
1610
1610
|
fn: A(() => [
|
|
1611
|
-
|
|
1611
|
+
Se(V(be.value.title), 1)
|
|
1612
1612
|
]),
|
|
1613
1613
|
key: "0"
|
|
1614
1614
|
} : void 0,
|
|
@@ -1620,7 +1620,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1620
1620
|
class: "vue-ui-user-options-button",
|
|
1621
1621
|
onClick: o[4] || (o[4] = (l) => Ee(e.value.userOptions.callbacks.csv))
|
|
1622
1622
|
}, [
|
|
1623
|
-
|
|
1623
|
+
Te(u(Bt), {
|
|
1624
1624
|
name: "excel",
|
|
1625
1625
|
stroke: be.value.props.color
|
|
1626
1626
|
}, null, 8, ["stroke"])
|