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,23 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, ref as
|
|
2
|
-
import { c 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 { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
|
|
1
|
+
import { defineAsyncComponent as E, ref as i, shallowRef as xt, computed as y, onMounted as il, toRefs as cl, nextTick as Ie, watch as re, watchEffect as vl, onBeforeUnmount as dl, createElementBlock as n, openBlock as u, unref as c, normalizeStyle as Q, normalizeClass as N, createBlock as O, createCommentVNode as v, createElementVNode as b, createSlots as pt, withCtx as p, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as kt, Fragment as $, renderList as z, toDisplayString as k, Teleport as hl, resolveDynamicComponent as yl, mergeProps as gl, createTextVNode as De } from "vue";
|
|
2
|
+
import { c as wt, o as Ct, f as ie, g as fl, t as bl, b as ml, p as ce, B as _t, e as xl, h as Oe, J as pl, C as Lt, n as Te, a as Ne, d as ve, X as kl, s as te, K as wl, L as Cl, u as _l, v as Ll, w as At, x as Al, y as Sl, M as St, N as $l } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as $t, u as zl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Il, a as zt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Dl } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as Ol, B as Tl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Nl } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Pl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Rl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Fl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as El } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import Vl from "./img-6wPuVVtk.js";
|
|
13
|
+
import Bl from "./Title-D17CJXko.js";
|
|
14
|
+
import { t as Ml } from "./themes-Dw-dDudK.js";
|
|
15
|
+
import Hl from "./Legend-DsogCeTb.js";
|
|
16
|
+
import { S as Ul } from "./Slicer-D6T4aUhr.js";
|
|
17
|
+
import { _ as Xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "width", "height"], ql = ["id"], Jl = ["stop-color"], Kl = ["stop-color"], Ql = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["stop-color"], la = { key: 1 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = { key: 0 }, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["font-size", "fill", "transform"], ra = ["x", "y", "font-size", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, da = ["text-anchor", "font-size", "fill", "transform"], ha = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ya = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ga = { key: 1 }, fa = ["cx", "cy", "r", "fill"], ba = { key: 0 }, ma = { key: 0 }, xa = ["d", "stroke"], pa = ["text-anchor", "x", "y", "fill"], ka = ["cx", "cy", "r", "fill"], wa = { key: 0 }, Ca = ["cx", "cy", "fill"], _a = { key: 1 }, La = ["d", "fill", "stroke"], Aa = { key: 2 }, Sa = ["d", "fill", "stroke"], $a = ["x", "y", "font-size", "fill"], za = ["x", "y", "width", "height", "fill"], Ia = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Da = {
|
|
18
19
|
key: 4,
|
|
19
20
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
21
|
+
}, Oa = ["id"], Ta = ["onClick"], Na = { key: 0 }, Pa = { key: 1 }, Ra = {
|
|
21
22
|
__name: "vue-ui-donut-evolution",
|
|
22
23
|
props: {
|
|
23
24
|
config: {
|
|
@@ -34,19 +35,19 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const Tt = E(() => import("./vue-ui-accordion-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
setup(It, { expose: Dt, emit: Ot }) {
|
|
39
|
+
const Tt = E(() => import("./vue-ui-accordion-Dch9YrCi.js")), Nt = E(() => import("./BaseIcon-CtqN7W_g.js")), Pt = E(() => import("./DataTable-BeI6gYJX.js")), Rt = E(() => import("./PackageVersion-C9oklnuy.js")), Ft = E(() => import("./PenAndPaper-BxbYiPy4.js")), Et = E(() => import("./UserOptions-B3vCIe-u.js")), Vt = E(() => import("./vue-ui-donut-CqefukGp.js")), Pe = E(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_donut_evolution: Bt } = Il(), m = It, T = i(wt()), C = i([]), f = i(null), le = i(null), de = i(!1), V = i(null), P = i(null), Mt = i(null), Re = i(0), Fe = i(0), Ee = i(0), Ve = i(0), Be = i(0), he = i(null), ae = i(null), ye = i(null), ge = i(null), Me = i(!1), Y = i(null), fe = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), be = i(!1), j = xt(null), oe = xt(null), Ye = i(null), je = Ot, qe = y(() => !!m.dataset && m.dataset.length);
|
|
40
|
+
il(() => {
|
|
41
|
+
Me.value = !0, Je();
|
|
41
42
|
});
|
|
42
|
-
const ue =
|
|
43
|
-
function
|
|
44
|
-
if (
|
|
43
|
+
const ue = y(() => !!e.value.debug);
|
|
44
|
+
function Je() {
|
|
45
|
+
if (Ct(m.dataset) ? (ie({
|
|
45
46
|
componentName: "VueUiDonutEvolution",
|
|
46
47
|
type: "dataset",
|
|
47
48
|
debug: ue.value
|
|
48
|
-
}), se.value = !0) :
|
|
49
|
-
|
|
49
|
+
}), se.value = !0) : m.dataset.length && m.dataset.forEach((t, a) => {
|
|
50
|
+
fl({
|
|
50
51
|
datasetObject: t,
|
|
51
52
|
requiredAttributes: ["name", "values"]
|
|
52
53
|
}).forEach((l) => {
|
|
@@ -58,20 +59,20 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
58
59
|
debug: ue.value
|
|
59
60
|
}), se.value = !0;
|
|
60
61
|
});
|
|
61
|
-
}),
|
|
62
|
+
}), Ct(m.dataset) || (se.value = e.value.loading), setTimeout(() => {
|
|
62
63
|
be.value = !0;
|
|
63
64
|
}, 10), xe(), e.value.responsive) {
|
|
64
|
-
const t =
|
|
65
|
+
const t = $t(() => {
|
|
65
66
|
be.value = !1;
|
|
66
|
-
const { width: a, height: l } =
|
|
67
|
+
const { width: a, height: l } = zl({
|
|
67
68
|
chart: P.value,
|
|
68
|
-
title: e.value.style.chart.title.text ?
|
|
69
|
-
legend: e.value.style.chart.legend.show ?
|
|
70
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
71
|
-
source:
|
|
69
|
+
title: e.value.style.chart.title.text ? He.value : null,
|
|
70
|
+
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
71
|
+
slicer: e.value.style.chart.zoom.show && Qe.value > 1 ? Ge.value : null,
|
|
72
|
+
source: Xe.value
|
|
72
73
|
});
|
|
73
74
|
requestAnimationFrame(() => {
|
|
74
|
-
U.value.width = a, U.value.height = l - 12, clearTimeout(
|
|
75
|
+
U.value.width = a, U.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
|
|
75
76
|
be.value = !0;
|
|
76
77
|
}, 10);
|
|
77
78
|
});
|
|
@@ -79,10 +80,10 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
79
80
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(t), oe.value = P.value.parentNode, j.value.observe(oe.value);
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
const e =
|
|
83
|
-
...
|
|
83
|
+
const e = i(we()), { loading: Ke, FINAL_DATASET: me, manualLoading: se } = Ol({
|
|
84
|
+
...cl(m),
|
|
84
85
|
FINAL_CONFIG: e,
|
|
85
|
-
prepareConfig:
|
|
86
|
+
prepareConfig: we,
|
|
86
87
|
callback: () => {
|
|
87
88
|
Promise.resolve().then(async () => {
|
|
88
89
|
await xe();
|
|
@@ -105,7 +106,7 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
105
106
|
color: "#CACACA"
|
|
106
107
|
}
|
|
107
108
|
],
|
|
108
|
-
skeletonConfig:
|
|
109
|
+
skeletonConfig: bl({
|
|
109
110
|
defaultConfig: e.value,
|
|
110
111
|
userConfig: {
|
|
111
112
|
useCssAnimation: !1,
|
|
@@ -147,53 +148,53 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
150
|
})
|
|
150
|
-
}), U =
|
|
151
|
+
}), U = i({
|
|
151
152
|
width: e.value.style.chart.layout.width,
|
|
152
153
|
height: e.value.style.chart.layout.height
|
|
153
|
-
}),
|
|
154
|
+
}), Qe = y(() => Math.max(...me.value.map((t) => t.values.length))), h = i({
|
|
154
155
|
start: 0,
|
|
155
|
-
end:
|
|
156
|
+
end: Qe.value
|
|
156
157
|
});
|
|
157
|
-
function
|
|
158
|
+
function Ze() {
|
|
158
159
|
xe();
|
|
159
160
|
}
|
|
160
161
|
async function xe() {
|
|
161
|
-
await
|
|
162
|
-
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l =
|
|
163
|
-
h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(
|
|
162
|
+
await Ie(), await Ie();
|
|
163
|
+
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = We.value;
|
|
164
|
+
h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Ht(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
|
|
164
165
|
start: 0,
|
|
165
166
|
end: I.value
|
|
166
|
-
},
|
|
167
|
+
}, Fe.value += 1);
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function Ht(t) {
|
|
169
170
|
const a = I.value;
|
|
170
171
|
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
171
172
|
}
|
|
172
|
-
const { userOptionsVisible: pe, setUserOptionsVisibility:
|
|
173
|
-
function
|
|
173
|
+
const { userOptionsVisible: pe, setUserOptionsVisibility: et, keepUserOptionState: tt } = Rl({ config: e.value }), { svgRef: ke } = Fl({ config: e.value.style.chart.title });
|
|
174
|
+
function we() {
|
|
174
175
|
const t = zt({
|
|
175
|
-
userConfig:
|
|
176
|
-
defaultConfig:
|
|
176
|
+
userConfig: m.config,
|
|
177
|
+
defaultConfig: Bt
|
|
177
178
|
});
|
|
178
179
|
let a = {};
|
|
179
180
|
return t.theme ? a = {
|
|
180
181
|
...zt({
|
|
181
|
-
userConfig:
|
|
182
|
+
userConfig: Ml.vue_ui_donut_evolution[t.theme] || m.config,
|
|
182
183
|
defaultConfig: t
|
|
183
184
|
}),
|
|
184
|
-
customPalette:
|
|
185
|
-
} : a = t,
|
|
185
|
+
customPalette: ml[t.theme] || ce
|
|
186
|
+
} : a = t, m.config && _t(m.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = m.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, m.config && _t(m.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = m.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
186
187
|
}
|
|
187
|
-
re(() =>
|
|
188
|
-
|
|
189
|
-
}, { deep: !0 }), re(() =>
|
|
190
|
-
Array.isArray(t) && t.length > 0 && (se.value = !1),
|
|
188
|
+
re(() => m.config, (t) => {
|
|
189
|
+
Ke.value || (e.value = we()), pe.value = !e.value.userOptions.showOnChartHover, Je(), Ee.value += 1, Ve.value += 1, Be.value += 1, B.value.showTable = e.value.table.show;
|
|
190
|
+
}, { deep: !0 }), re(() => m.dataset, (t) => {
|
|
191
|
+
Array.isArray(t) && t.length > 0 && (se.value = !1), Ze();
|
|
191
192
|
}, { deep: !0 });
|
|
192
|
-
const { isPrinting:
|
|
193
|
-
elementId:
|
|
193
|
+
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Dl({
|
|
194
|
+
elementId: T.value,
|
|
194
195
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
195
196
|
options: e.value.userOptions.print
|
|
196
|
-
}),
|
|
197
|
+
}), Ut = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = y(() => xl(e.value.customPalette)), B = i({
|
|
197
198
|
showTable: e.value.table.show
|
|
198
199
|
});
|
|
199
200
|
re(e, () => {
|
|
@@ -201,54 +202,54 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
201
202
|
showTable: e.value.table.show
|
|
202
203
|
};
|
|
203
204
|
}, { immediate: !0 });
|
|
204
|
-
const M =
|
|
205
|
+
const M = y(() => ({
|
|
205
206
|
top: e.value.style.chart.layout.padding.top,
|
|
206
207
|
right: e.value.style.chart.layout.padding.right,
|
|
207
208
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
208
209
|
left: e.value.style.chart.layout.padding.left
|
|
209
210
|
}));
|
|
210
|
-
function
|
|
211
|
+
function Wt() {
|
|
211
212
|
let t = 0;
|
|
212
|
-
he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((
|
|
213
|
-
const d =
|
|
214
|
-
return (d >
|
|
213
|
+
he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((o, g) => {
|
|
214
|
+
const d = g.getComputedTextLength();
|
|
215
|
+
return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
|
|
215
216
|
}, 0));
|
|
216
|
-
const a =
|
|
217
|
+
const a = ge.value ? ge.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
217
218
|
return t + a + 5;
|
|
218
219
|
}
|
|
219
|
-
const
|
|
220
|
-
|
|
220
|
+
const Ce = i(0), Gt = $t((t) => {
|
|
221
|
+
Ce.value = t;
|
|
221
222
|
}, 100);
|
|
222
|
-
|
|
223
|
+
vl((t) => {
|
|
223
224
|
const a = ae.value;
|
|
224
225
|
if (!a) return;
|
|
225
226
|
const l = new ResizeObserver((s) => {
|
|
226
|
-
|
|
227
|
+
Gt(s[0].contentRect.height);
|
|
227
228
|
});
|
|
228
229
|
l.observe(a), t(() => l.disconnect());
|
|
229
|
-
}),
|
|
230
|
-
|
|
230
|
+
}), dl(() => {
|
|
231
|
+
Ce.value = 0;
|
|
231
232
|
});
|
|
232
|
-
const
|
|
233
|
+
const st = y(() => {
|
|
233
234
|
let t = 0;
|
|
234
235
|
ye.value && (t = ye.value.getBBox().height);
|
|
235
236
|
let a = 0;
|
|
236
|
-
return ae.value && (a =
|
|
237
|
-
}), r =
|
|
238
|
-
const t =
|
|
237
|
+
return ae.value && (a = Ce.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
238
|
+
}), r = y(() => {
|
|
239
|
+
const t = Wt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, o = M.value.left + t, g = l - M.value.right, d = l - o - M.value.right, x = s - M.value.top - M.value.bottom - a - st.value, G = M.value.top + a, F = s - M.value.bottom - st.value;
|
|
239
240
|
return {
|
|
240
241
|
top: G,
|
|
241
|
-
left:
|
|
242
|
-
right:
|
|
242
|
+
left: o,
|
|
243
|
+
right: g,
|
|
243
244
|
bottom: F,
|
|
244
245
|
absoluteHeight: s,
|
|
245
246
|
absoluteWidth: l,
|
|
246
|
-
centerX:
|
|
247
|
-
centerY: G + Math.max(10,
|
|
247
|
+
centerX: o + Math.max(10, d) / 2,
|
|
248
|
+
centerY: G + Math.max(10, x) / 2,
|
|
248
249
|
width: Math.max(10, d),
|
|
249
|
-
height: Math.max(10,
|
|
250
|
+
height: Math.max(10, x)
|
|
250
251
|
};
|
|
251
|
-
}), R =
|
|
252
|
+
}), R = y(() => (me.value.forEach((t, a) => {
|
|
252
253
|
[null, void 0].includes(t.name) && ie({
|
|
253
254
|
componentName: "VueUiDonutEvolution",
|
|
254
255
|
type: "datasetSerieAttribute",
|
|
@@ -264,66 +265,66 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
264
265
|
});
|
|
265
266
|
}), me.value.map((t, a) => ({
|
|
266
267
|
...t,
|
|
267
|
-
values:
|
|
268
|
-
color:
|
|
268
|
+
values: pl(t.values),
|
|
269
|
+
color: Oe(t.color) || Xt.value[a] || ce[a] || ce[a % ce.length],
|
|
269
270
|
length: (t.values || []).length,
|
|
270
|
-
uid:
|
|
271
|
-
})))), q =
|
|
271
|
+
uid: wt()
|
|
272
|
+
})))), q = y(() => R.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
|
|
272
273
|
...t,
|
|
273
274
|
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
274
|
-
}))), I =
|
|
275
|
+
}))), I = y(() => Math.max(...q.value.map((t) => t.length))), _ = y(() => Pl({
|
|
275
276
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
276
277
|
maxDatapoints: I.value,
|
|
277
278
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
278
279
|
start: h.value.start,
|
|
279
280
|
end: h.value.end
|
|
280
|
-
})), w =
|
|
281
|
+
})), w = y(() => r.value.width / (h.value.end - h.value.start)), L = y(() => {
|
|
281
282
|
const t = [];
|
|
282
|
-
for (let
|
|
283
|
-
const
|
|
283
|
+
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
284
|
+
const g = q.value.map((D) => D.values[o] ?? null), d = g.filter((D) => [void 0, null].includes(D)).length === g.length, x = g.reduce((D, A) => D + A, 0), G = g.map((D) => D / x), F = r.value.left + w.value * o + w.value / 2;
|
|
284
285
|
t.push({
|
|
285
|
-
index:
|
|
286
|
+
index: o,
|
|
286
287
|
percentages: G,
|
|
287
|
-
subtotal: d ||
|
|
288
|
-
values:
|
|
288
|
+
subtotal: d || x < 0 ? null : x,
|
|
289
|
+
values: g,
|
|
289
290
|
x: F
|
|
290
291
|
});
|
|
291
292
|
}
|
|
292
|
-
const a = 0, l = Math.max(...t.map((
|
|
293
|
-
return t.map((
|
|
294
|
-
const d = Math.min(r.value.width / 24, w.value / 2 * 0.7),
|
|
293
|
+
const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
294
|
+
return t.map((o, g) => {
|
|
295
|
+
const d = Math.min(r.value.width / 24, w.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, G = f.value === o.index ? r.value.width / 16 : x, F = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, D = r.value.bottom - r.value.height * o.subtotal / Lt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
295
296
|
return {
|
|
296
|
-
...
|
|
297
|
+
...o,
|
|
297
298
|
y: D,
|
|
298
|
-
radius:
|
|
299
|
+
radius: x,
|
|
299
300
|
activeRadius: G,
|
|
300
301
|
hoverRadius: F,
|
|
301
|
-
donut:
|
|
302
|
-
series: q.value.map((A,
|
|
302
|
+
donut: Te({
|
|
303
|
+
series: q.value.map((A, mt) => ({
|
|
303
304
|
color: A.color,
|
|
304
305
|
name: A.name,
|
|
305
|
-
value: A.values[
|
|
306
|
+
value: A.values[g] ?? 0
|
|
306
307
|
}))
|
|
307
|
-
},
|
|
308
|
-
donutHover:
|
|
309
|
-
series: q.value.map((A,
|
|
308
|
+
}, o.x, D, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
|
|
309
|
+
donutHover: Te({
|
|
310
|
+
series: q.value.map((A, mt) => ({
|
|
310
311
|
color: A.color,
|
|
311
312
|
name: A.name,
|
|
312
|
-
value: A.values[
|
|
313
|
+
value: A.values[g] ?? 0
|
|
313
314
|
}))
|
|
314
|
-
},
|
|
315
|
-
donutFocus:
|
|
316
|
-
series: q.value.map((A,
|
|
315
|
+
}, o.x, D, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
|
|
316
|
+
donutFocus: Te({
|
|
317
|
+
series: q.value.map((A, mt) => ({
|
|
317
318
|
color: A.color,
|
|
318
319
|
name: A.name,
|
|
319
|
-
value: A.values[
|
|
320
|
+
value: A.values[g] ?? 0
|
|
320
321
|
}))
|
|
321
322
|
}, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
|
|
322
323
|
};
|
|
323
324
|
});
|
|
324
325
|
});
|
|
325
|
-
function
|
|
326
|
-
return
|
|
326
|
+
function nt(t, a, l) {
|
|
327
|
+
return Ne(
|
|
327
328
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
328
329
|
t,
|
|
329
330
|
ve({
|
|
@@ -335,45 +336,60 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
335
336
|
{ datapoint: a, index: l }
|
|
336
337
|
);
|
|
337
338
|
}
|
|
338
|
-
const
|
|
339
|
+
const _e = y(() => ({
|
|
339
340
|
max: Math.max(...L.value.map((t) => t.subtotal)),
|
|
340
341
|
min: 0
|
|
341
|
-
})), X =
|
|
342
|
-
const t = L.value.length === 1 ?
|
|
343
|
-
return
|
|
342
|
+
})), X = y(() => {
|
|
343
|
+
const t = L.value.length === 1 ? _e.value.max * 2 : _e.value.max;
|
|
344
|
+
return Lt(_e.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
344
345
|
});
|
|
345
|
-
function
|
|
346
|
+
function Yt(t) {
|
|
346
347
|
return t / X.value.max;
|
|
347
348
|
}
|
|
348
|
-
const
|
|
349
|
-
y: r.value.bottom - r.value.height *
|
|
349
|
+
const jt = y(() => X.value.ticks.map((t) => ({
|
|
350
|
+
y: r.value.bottom - r.value.height * Yt(t),
|
|
350
351
|
value: t
|
|
351
352
|
})));
|
|
352
|
-
function
|
|
353
|
-
return isNaN(t.value /
|
|
353
|
+
function qt(t, a) {
|
|
354
|
+
return isNaN(t.value / St(a, "value")) ? 0 : (t.value / St(a, "value") * 100).toFixed(0) + "%";
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
356
|
+
function rt(t) {
|
|
357
|
+
f.value = null, le.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }),
|
|
359
|
+
function Jt(t) {
|
|
360
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), f.value = t.index, le.value = t;
|
|
360
361
|
}
|
|
361
|
-
const J =
|
|
362
|
-
function
|
|
363
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (le.value = null,
|
|
362
|
+
const J = i(null);
|
|
363
|
+
function it(t, a) {
|
|
364
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (le.value = null, f.value = null, de.value = !0, V.value = t, Zt(t), [null, void 0].includes(a) || (J.value = a));
|
|
364
365
|
}
|
|
365
|
-
const
|
|
366
|
+
const Le = y(() => R.value.map((t, a) => ({
|
|
366
367
|
name: t.name,
|
|
367
368
|
value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
|
|
368
369
|
shape: "circle",
|
|
369
370
|
uid: t.uid,
|
|
370
371
|
color: t.color
|
|
371
|
-
})).sort((t, a) => a.value - t.value).map((t) => ({
|
|
372
|
+
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
372
373
|
...t,
|
|
373
374
|
opacity: C.value.includes(t.uid) ? 0.5 : 1,
|
|
374
|
-
segregate: () =>
|
|
375
|
-
isSegregated: C.value.includes(t.uid)
|
|
376
|
-
|
|
375
|
+
segregate: () => Ae(t.uid),
|
|
376
|
+
isSegregated: C.value.includes(t.uid),
|
|
377
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ne(
|
|
378
|
+
e.value.style.chart.layout.dataLabels.formatter,
|
|
379
|
+
t.value,
|
|
380
|
+
ve({
|
|
381
|
+
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
382
|
+
v: t.value,
|
|
383
|
+
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
384
|
+
r: e.value.style.chart.legend.roundingValue
|
|
385
|
+
}),
|
|
386
|
+
{ datapoint: t, seriesIndex: a }
|
|
387
|
+
) : ""}${e.value.style.chart.legend.showPercentage ? C.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : ve({
|
|
388
|
+
v: t.value / ct.value * 100,
|
|
389
|
+
s: "%",
|
|
390
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
391
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
392
|
+
}))), ct = y(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Kt = y(() => ({
|
|
377
393
|
cy: "donut-div-legend",
|
|
378
394
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
379
395
|
color: e.value.style.chart.legend.color,
|
|
@@ -381,27 +397,27 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
381
397
|
paddingBottom: 12,
|
|
382
398
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
383
399
|
}));
|
|
384
|
-
function
|
|
400
|
+
function Ae(t) {
|
|
385
401
|
if (C.value.includes(t))
|
|
386
|
-
C.value = C.value.filter((a) => a !== t),
|
|
402
|
+
C.value = C.value.filter((a) => a !== t), je("selectLegend", null);
|
|
387
403
|
else {
|
|
388
404
|
if (C.value.length === R.value.length - 1) return;
|
|
389
|
-
C.value.push(t),
|
|
405
|
+
C.value.push(t), je("selectLegend", R.value.find((a) => a.uid === t));
|
|
390
406
|
}
|
|
391
|
-
V.value &&
|
|
407
|
+
V.value && it(L.value.find((a, l) => l === J.value));
|
|
392
408
|
}
|
|
393
|
-
const W =
|
|
394
|
-
const t = [""].concat(R.value.filter((
|
|
395
|
-
name:
|
|
396
|
-
color:
|
|
409
|
+
const W = y(() => {
|
|
410
|
+
const t = [""].concat(R.value.filter((o) => !C.value.includes(o.uid)).map((o) => ({
|
|
411
|
+
name: o.name,
|
|
412
|
+
color: o.color
|
|
397
413
|
}))).concat(["Σ"]);
|
|
398
414
|
let a = [];
|
|
399
|
-
for (let
|
|
400
|
-
const
|
|
401
|
-
a.push([_.value[
|
|
402
|
-
value: d.values[
|
|
403
|
-
percentage: d.values[
|
|
404
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(
|
|
415
|
+
for (let o = 0; o < I.value; o += 1) {
|
|
416
|
+
const g = R.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, x) => d + x, 0);
|
|
417
|
+
a.push([_.value[o] ? _.value[o].text : "-"].concat(R.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
|
|
418
|
+
value: d.values[o] ?? 0,
|
|
419
|
+
percentage: d.values[o] ? d.values[o] / g * 100 : 0
|
|
420
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
405
421
|
}
|
|
406
422
|
const l = {
|
|
407
423
|
th: {
|
|
@@ -417,58 +433,58 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
417
433
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
418
434
|
}, s = [
|
|
419
435
|
e.value.table.columnNames.period
|
|
420
|
-
].concat(R.value.filter((
|
|
436
|
+
].concat(R.value.filter((o) => !C.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
421
437
|
return { head: t, body: a, config: l, colNames: s };
|
|
422
438
|
});
|
|
423
|
-
function
|
|
439
|
+
function Qt() {
|
|
424
440
|
return R.value;
|
|
425
441
|
}
|
|
426
|
-
function
|
|
427
|
-
|
|
428
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((
|
|
429
|
-
t ? t(
|
|
442
|
+
function Se(t = null) {
|
|
443
|
+
Ie(() => {
|
|
444
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((x) => x.value ?? x))], o = a.concat([l]).concat(s), g = Al(o);
|
|
445
|
+
t ? t(g) : Sl({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
430
446
|
});
|
|
431
447
|
}
|
|
432
|
-
const H =
|
|
448
|
+
const H = i(!1);
|
|
433
449
|
function vt(t) {
|
|
434
|
-
H.value = t,
|
|
450
|
+
H.value = t, Re.value += 1;
|
|
435
451
|
}
|
|
436
452
|
function dt() {
|
|
437
453
|
B.value.showTable = !B.value.showTable;
|
|
438
454
|
}
|
|
439
|
-
const ne =
|
|
440
|
-
function
|
|
455
|
+
const ne = i(!1);
|
|
456
|
+
function $e() {
|
|
441
457
|
ne.value = !ne.value;
|
|
442
458
|
}
|
|
443
459
|
function ht(t) {
|
|
444
460
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
445
461
|
}
|
|
446
|
-
const yt =
|
|
447
|
-
function
|
|
462
|
+
const yt = i([]), gt = i({}), ze = i(null);
|
|
463
|
+
function Zt(t) {
|
|
448
464
|
yt.value = t.donut.map((a) => ({
|
|
449
465
|
name: a.name,
|
|
450
466
|
values: [a.value],
|
|
451
467
|
color: a.color
|
|
452
|
-
})),
|
|
468
|
+
})), gt.value = $l({
|
|
453
469
|
...e.value.style.chart.dialog.donutChart,
|
|
454
470
|
responsive: !0,
|
|
455
471
|
theme: e.value.theme
|
|
456
|
-
}),
|
|
472
|
+
}), ze.value && ze.value.open();
|
|
457
473
|
}
|
|
458
|
-
async function
|
|
474
|
+
async function el({ scale: t = 2 } = {}) {
|
|
459
475
|
if (!P.value) return;
|
|
460
|
-
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri:
|
|
476
|
+
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: g } = await Vl({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
461
477
|
return {
|
|
462
|
-
imageUri:
|
|
463
|
-
base64:
|
|
478
|
+
imageUri: o,
|
|
479
|
+
base64: g,
|
|
464
480
|
title: e.value.style.chart.title.text,
|
|
465
481
|
width: a,
|
|
466
482
|
height: l,
|
|
467
483
|
aspectRatio: s
|
|
468
484
|
};
|
|
469
485
|
}
|
|
470
|
-
const
|
|
471
|
-
|
|
486
|
+
const tl = y(() => U.value.width), ll = y(() => U.value.height);
|
|
487
|
+
El({
|
|
472
488
|
timeLabelsEls: ae,
|
|
473
489
|
timeLabels: _,
|
|
474
490
|
slicer: h,
|
|
@@ -476,14 +492,14 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
476
492
|
rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
477
493
|
autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
478
494
|
isAutoSize: !1,
|
|
479
|
-
width:
|
|
480
|
-
height:
|
|
495
|
+
width: tl,
|
|
496
|
+
height: ll,
|
|
481
497
|
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
482
498
|
});
|
|
483
|
-
const K =
|
|
499
|
+
const K = y(() => {
|
|
484
500
|
const t = e.value.table.useDialog && !e.value.table.show, a = B.value.showTable;
|
|
485
501
|
return {
|
|
486
|
-
component: t ?
|
|
502
|
+
component: t ? Pe : Tt,
|
|
487
503
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
488
504
|
props: t ? {
|
|
489
505
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -513,51 +529,69 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
513
529
|
re(() => B.value.showTable, (t) => {
|
|
514
530
|
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
|
|
515
531
|
});
|
|
516
|
-
function
|
|
517
|
-
B.value.showTable = !1,
|
|
532
|
+
function ft() {
|
|
533
|
+
B.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
|
|
534
|
+
}
|
|
535
|
+
const al = y(() => Le.value.map((t) => ({
|
|
536
|
+
...t,
|
|
537
|
+
name: t.display
|
|
538
|
+
}))), ol = y(() => e.value.style.chart.backgroundColor), ul = y(() => e.value.style.chart.legend), sl = y(() => e.value.style.chart.title), { exportSvg: nl, getSvg: rl } = Nl({
|
|
539
|
+
svg: ke,
|
|
540
|
+
title: sl,
|
|
541
|
+
legend: ul,
|
|
542
|
+
legendItems: al,
|
|
543
|
+
backgroundColor: ol
|
|
544
|
+
});
|
|
545
|
+
async function bt({ isCb: t }) {
|
|
546
|
+
if (t) {
|
|
547
|
+
const { blob: a, url: l, text: s, dataUrl: o } = await rl();
|
|
548
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: o });
|
|
549
|
+
} else
|
|
550
|
+
nl();
|
|
518
551
|
}
|
|
519
|
-
return
|
|
520
|
-
getData:
|
|
521
|
-
getImage:
|
|
522
|
-
generatePdf:
|
|
523
|
-
generateCsv:
|
|
524
|
-
generateImage:
|
|
552
|
+
return Dt({
|
|
553
|
+
getData: Qt,
|
|
554
|
+
getImage: el,
|
|
555
|
+
generatePdf: ot,
|
|
556
|
+
generateCsv: Se,
|
|
557
|
+
generateImage: ut,
|
|
558
|
+
generateSvg: bt,
|
|
525
559
|
toggleTable: dt,
|
|
526
|
-
toggleAnnotator:
|
|
560
|
+
toggleAnnotator: $e,
|
|
527
561
|
toggleFullscreen: vt
|
|
528
|
-
}), (t, a) => (
|
|
562
|
+
}), (t, a) => (u(), n("div", {
|
|
529
563
|
ref_key: "donutEvolutionChart",
|
|
530
564
|
ref: P,
|
|
531
565
|
class: N(`vue-data-ui-component vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
532
566
|
style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
533
|
-
id:
|
|
534
|
-
onMouseenter: a[5] || (a[5] = () =>
|
|
535
|
-
onMouseleave: a[6] || (a[6] = () =>
|
|
567
|
+
id: T.value,
|
|
568
|
+
onMouseenter: a[5] || (a[5] = () => c(et)(!0)),
|
|
569
|
+
onMouseleave: a[6] || (a[6] = () => c(et)(!1))
|
|
536
570
|
}, [
|
|
537
|
-
e.value.userOptions.buttons.annotator ? (
|
|
571
|
+
e.value.userOptions.buttons.annotator ? (u(), O(c(Ft), {
|
|
538
572
|
key: 0,
|
|
539
|
-
svgRef:
|
|
573
|
+
svgRef: c(ke),
|
|
540
574
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
541
575
|
color: e.value.style.chart.color,
|
|
542
576
|
active: ne.value,
|
|
543
|
-
onClose:
|
|
577
|
+
onClose: $e
|
|
544
578
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
545
|
-
|
|
579
|
+
Ut.value ? (u(), n("div", {
|
|
546
580
|
key: 1,
|
|
547
581
|
ref_key: "noTitle",
|
|
548
|
-
ref:
|
|
582
|
+
ref: Mt,
|
|
549
583
|
class: "vue-data-ui-no-title-space",
|
|
550
584
|
style: "height:36px; width: 100%;background:transparent"
|
|
551
585
|
}, null, 512)) : v("", !0),
|
|
552
|
-
e.value.style.chart.title.text ? (
|
|
586
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
553
587
|
key: 2,
|
|
554
588
|
ref_key: "chartTitle",
|
|
555
|
-
ref:
|
|
589
|
+
ref: He,
|
|
556
590
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
557
|
-
onMouseleave:
|
|
591
|
+
onMouseleave: rt
|
|
558
592
|
}, [
|
|
559
|
-
(
|
|
560
|
-
key: `title_${
|
|
593
|
+
(u(), O(Bl, {
|
|
594
|
+
key: `title_${Ee.value}`,
|
|
561
595
|
config: {
|
|
562
596
|
title: {
|
|
563
597
|
cy: "donut-evolution-div-title",
|
|
@@ -571,19 +605,20 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
571
605
|
}, null, 8, ["config"]))
|
|
572
606
|
], 544)) : v("", !0),
|
|
573
607
|
b("div", {
|
|
574
|
-
id: `legend-top-${
|
|
575
|
-
}, null, 8,
|
|
576
|
-
e.value.userOptions.show &&
|
|
608
|
+
id: `legend-top-${T.value}`
|
|
609
|
+
}, null, 8, Gl),
|
|
610
|
+
e.value.userOptions.show && qe.value && (c(tt) || c(pe)) ? (u(), O(c(Et), {
|
|
577
611
|
ref_key: "userOptionsRef",
|
|
578
|
-
ref:
|
|
579
|
-
key: `user_options_${
|
|
612
|
+
ref: fe,
|
|
613
|
+
key: `user_options_${Re.value}`,
|
|
580
614
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
581
615
|
color: e.value.style.chart.color,
|
|
582
|
-
isPrinting:
|
|
583
|
-
isImaging:
|
|
584
|
-
uid:
|
|
616
|
+
isPrinting: c(lt),
|
|
617
|
+
isImaging: c(at),
|
|
618
|
+
uid: T.value,
|
|
585
619
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
586
620
|
hasImg: e.value.userOptions.buttons.img,
|
|
621
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
587
622
|
hasXls: e.value.userOptions.buttons.csv,
|
|
588
623
|
hasTable: e.value.userOptions.buttons.table,
|
|
589
624
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -597,75 +632,76 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
597
632
|
printScale: e.value.userOptions.print.scale,
|
|
598
633
|
tableDialog: e.value.table.useDialog,
|
|
599
634
|
onToggleFullscreen: vt,
|
|
600
|
-
onGeneratePdf:
|
|
601
|
-
onGenerateCsv:
|
|
602
|
-
onGenerateImage:
|
|
635
|
+
onGeneratePdf: c(ot),
|
|
636
|
+
onGenerateCsv: Se,
|
|
637
|
+
onGenerateImage: c(ut),
|
|
638
|
+
onGenerateSvg: bt,
|
|
603
639
|
onToggleTable: dt,
|
|
604
|
-
onToggleAnnotator:
|
|
640
|
+
onToggleAnnotator: $e,
|
|
605
641
|
style: Q({
|
|
606
|
-
visibility:
|
|
642
|
+
visibility: c(tt) ? c(pe) ? "visible" : "hidden" : "visible"
|
|
607
643
|
})
|
|
608
|
-
},
|
|
644
|
+
}, pt({ _: 2 }, [
|
|
609
645
|
t.$slots.menuIcon ? {
|
|
610
646
|
name: "menuIcon",
|
|
611
|
-
fn:
|
|
647
|
+
fn: p(({ isOpen: l, color: s }) => [
|
|
612
648
|
S(t.$slots, "menuIcon", Z(ee({ isOpen: l, color: s })), void 0, !0)
|
|
613
649
|
]),
|
|
614
650
|
key: "0"
|
|
615
651
|
} : void 0,
|
|
616
652
|
t.$slots.optionPdf ? {
|
|
617
653
|
name: "optionPdf",
|
|
618
|
-
fn:
|
|
654
|
+
fn: p(() => [
|
|
619
655
|
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
620
656
|
]),
|
|
621
657
|
key: "1"
|
|
622
658
|
} : void 0,
|
|
623
659
|
t.$slots.optionCsv ? {
|
|
624
660
|
name: "optionCsv",
|
|
625
|
-
fn:
|
|
661
|
+
fn: p(() => [
|
|
626
662
|
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
627
663
|
]),
|
|
628
664
|
key: "2"
|
|
629
665
|
} : void 0,
|
|
630
666
|
t.$slots.optionImg ? {
|
|
631
667
|
name: "optionImg",
|
|
632
|
-
fn:
|
|
668
|
+
fn: p(() => [
|
|
633
669
|
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
634
670
|
]),
|
|
635
671
|
key: "3"
|
|
636
672
|
} : void 0,
|
|
637
673
|
t.$slots.optionTable ? {
|
|
638
674
|
name: "optionTable",
|
|
639
|
-
fn:
|
|
675
|
+
fn: p(() => [
|
|
640
676
|
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
641
677
|
]),
|
|
642
678
|
key: "4"
|
|
643
679
|
} : void 0,
|
|
644
680
|
t.$slots.optionFullscreen ? {
|
|
645
681
|
name: "optionFullscreen",
|
|
646
|
-
fn:
|
|
682
|
+
fn: p(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
647
683
|
S(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
648
684
|
]),
|
|
649
685
|
key: "5"
|
|
650
686
|
} : void 0,
|
|
651
687
|
t.$slots.optionAnnotator ? {
|
|
652
688
|
name: "optionAnnotator",
|
|
653
|
-
fn:
|
|
689
|
+
fn: p(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
654
690
|
S(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
655
691
|
]),
|
|
656
692
|
key: "6"
|
|
657
693
|
} : void 0
|
|
658
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
659
|
-
(
|
|
694
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
695
|
+
(u(), n("svg", {
|
|
660
696
|
ref_key: "svgRef",
|
|
661
|
-
ref:
|
|
662
|
-
xmlns:
|
|
697
|
+
ref: ke,
|
|
698
|
+
xmlns: c(kl),
|
|
663
699
|
class: N({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
664
700
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
665
701
|
style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
666
702
|
}, [
|
|
667
|
-
|
|
668
|
-
t.$slots["chart-background"] ? (
|
|
703
|
+
kt(c(Rt)),
|
|
704
|
+
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
669
705
|
key: 0,
|
|
670
706
|
x: r.value.left,
|
|
671
707
|
y: r.value.top,
|
|
@@ -676,10 +712,10 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
676
712
|
}
|
|
677
713
|
}, [
|
|
678
714
|
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
679
|
-
], 8,
|
|
715
|
+
], 8, jl)) : v("", !0),
|
|
680
716
|
b("defs", null, [
|
|
681
717
|
b("linearGradient", {
|
|
682
|
-
id: `hover_${
|
|
718
|
+
id: `hover_${T.value}`,
|
|
683
719
|
x1: "0%",
|
|
684
720
|
y1: "0%",
|
|
685
721
|
x2: "0%",
|
|
@@ -687,31 +723,31 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
687
723
|
}, [
|
|
688
724
|
b("stop", {
|
|
689
725
|
offset: "0%",
|
|
690
|
-
"stop-color":
|
|
691
|
-
}, null, 8,
|
|
726
|
+
"stop-color": c(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
727
|
+
}, null, 8, Jl),
|
|
692
728
|
b("stop", {
|
|
693
729
|
offset: "100%",
|
|
694
|
-
"stop-color":
|
|
695
|
-
}, null, 8,
|
|
696
|
-
], 8,
|
|
730
|
+
"stop-color": c(te)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
731
|
+
}, null, 8, Kl)
|
|
732
|
+
], 8, ql),
|
|
697
733
|
b("radialGradient", {
|
|
698
|
-
id: `focus_${
|
|
734
|
+
id: `focus_${T.value}`
|
|
699
735
|
}, [
|
|
700
736
|
b("stop", {
|
|
701
737
|
offset: "0%",
|
|
702
|
-
"stop-color":
|
|
703
|
-
}, null, 8,
|
|
738
|
+
"stop-color": c(te)(c(Oe)(e.value.style.chart.backgroundColor), 0)
|
|
739
|
+
}, null, 8, Zl),
|
|
704
740
|
b("stop", {
|
|
705
741
|
offset: "77%",
|
|
706
|
-
"stop-color":
|
|
707
|
-
}, null, 8,
|
|
742
|
+
"stop-color": c(te)("#FFFFFF", 30)
|
|
743
|
+
}, null, 8, ea),
|
|
708
744
|
b("stop", {
|
|
709
745
|
offset: "100%",
|
|
710
|
-
"stop-color":
|
|
711
|
-
}, null, 8,
|
|
712
|
-
], 8,
|
|
746
|
+
"stop-color": c(te)(c(Oe)(e.value.style.chart.backgroundColor), 0)
|
|
747
|
+
}, null, 8, ta)
|
|
748
|
+
], 8, Ql)
|
|
713
749
|
]),
|
|
714
|
-
e.value.style.chart.layout.grid.show ? (
|
|
750
|
+
e.value.style.chart.layout.grid.show ? (u(), n("g", la, [
|
|
715
751
|
b("line", {
|
|
716
752
|
x1: r.value.left,
|
|
717
753
|
x2: r.value.left,
|
|
@@ -720,7 +756,7 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
720
756
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
721
757
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
722
758
|
"stroke-linecap": "round"
|
|
723
|
-
}, null, 8,
|
|
759
|
+
}, null, 8, aa),
|
|
724
760
|
b("line", {
|
|
725
761
|
x1: r.value.left,
|
|
726
762
|
x2: r.value.right,
|
|
@@ -729,9 +765,9 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
729
765
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
730
766
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
731
767
|
"stroke-linecap": "round"
|
|
732
|
-
}, null, 8,
|
|
733
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
734
|
-
(
|
|
768
|
+
}, null, 8, oa),
|
|
769
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", ua, [
|
|
770
|
+
(u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("line", {
|
|
735
771
|
x1: r.value.left + (s + 1) * w.value,
|
|
736
772
|
x2: r.value.left + (s + 1) * w.value,
|
|
737
773
|
y1: r.value.top,
|
|
@@ -739,21 +775,21 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
739
775
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
740
776
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
741
777
|
"stroke-linecap": "round"
|
|
742
|
-
}, null, 8,
|
|
778
|
+
}, null, 8, sa))), 256))
|
|
743
779
|
])) : v("", !0)
|
|
744
780
|
])) : v("", !0),
|
|
745
781
|
b("g", null, [
|
|
746
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (
|
|
782
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (u(), n("text", {
|
|
747
783
|
key: 0,
|
|
748
784
|
ref_key: "yAxisLabel",
|
|
749
|
-
ref:
|
|
785
|
+
ref: ge,
|
|
750
786
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
751
787
|
fill: e.value.style.chart.layout.grid.axis.color,
|
|
752
788
|
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
753
789
|
"text-anchor": "middle",
|
|
754
790
|
style: { transition: "none" }
|
|
755
|
-
},
|
|
756
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (
|
|
791
|
+
}, k(e.value.style.chart.layout.grid.axis.yLabel), 9, na)) : v("", !0),
|
|
792
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (u(), n("text", {
|
|
757
793
|
key: 1,
|
|
758
794
|
ref_key: "xAxisLabel",
|
|
759
795
|
ref: ye,
|
|
@@ -762,16 +798,16 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
762
798
|
y: r.value.absoluteHeight - 3,
|
|
763
799
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
764
800
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
765
|
-
},
|
|
801
|
+
}, k(e.value.style.chart.layout.grid.axis.xLabel), 9, ra)) : v("", !0)
|
|
766
802
|
]),
|
|
767
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
803
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), n("g", {
|
|
768
804
|
key: 2,
|
|
769
805
|
ref_key: "scaleLabels",
|
|
770
806
|
ref: he,
|
|
771
|
-
class: N({ "donut-opacity": !0, "donut-behind":
|
|
807
|
+
class: N({ "donut-opacity": !0, "donut-behind": f.value !== null })
|
|
772
808
|
}, [
|
|
773
|
-
(
|
|
774
|
-
l.value >= X.value.min && l.value <= X.value.max ? (
|
|
809
|
+
(u(!0), n($, null, z(jt.value, (l, s) => (u(), n("g", null, [
|
|
810
|
+
l.value >= X.value.min && l.value <= X.value.max ? (u(), n("line", {
|
|
775
811
|
key: 0,
|
|
776
812
|
x1: r.value.left,
|
|
777
813
|
x2: r.value.left - 5,
|
|
@@ -779,8 +815,8 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
779
815
|
y2: l.y,
|
|
780
816
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
781
817
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
782
|
-
}, null, 8,
|
|
783
|
-
l.value >= X.value.min && l.value <= X.value.max ? (
|
|
818
|
+
}, null, 8, ia)) : v("", !0),
|
|
819
|
+
l.value >= X.value.min && l.value <= X.value.max ? (u(), n("text", {
|
|
784
820
|
key: 1,
|
|
785
821
|
x: r.value.left,
|
|
786
822
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -788,57 +824,57 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
788
824
|
"text-anchor": "end",
|
|
789
825
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
790
826
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
791
|
-
},
|
|
827
|
+
}, k(c(wl)(l.value) ? c(Ne)(
|
|
792
828
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
793
829
|
l.value,
|
|
794
|
-
|
|
830
|
+
c(ve)({
|
|
795
831
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
796
832
|
v: l.value,
|
|
797
833
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
798
834
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
799
835
|
}),
|
|
800
836
|
{ datapoint: l, seriesIndex: s }
|
|
801
|
-
) : ""), 9,
|
|
837
|
+
) : ""), 9, ca)) : v("", !0)
|
|
802
838
|
]))), 256))
|
|
803
839
|
], 2)) : v("", !0),
|
|
804
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
840
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), n("g", {
|
|
805
841
|
key: 3,
|
|
806
842
|
ref_key: "timeLabelsEls",
|
|
807
843
|
ref: ae,
|
|
808
844
|
class: N({ "donut-opacity": !0 })
|
|
809
845
|
}, [
|
|
810
|
-
(
|
|
811
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[s] && _.value[s].text ? (
|
|
846
|
+
(u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("g", null, [
|
|
847
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[s] && _.value[s].text ? (u(), n("g", va, [
|
|
812
848
|
String(_.value[s].text).includes(`
|
|
813
|
-
`) ? (
|
|
849
|
+
`) ? (u(), n("text", {
|
|
814
850
|
key: 1,
|
|
815
851
|
class: "vue-data-ui-time-label",
|
|
816
852
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
817
853
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
818
854
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
819
855
|
transform: `translate(${r.value.left + w.value * s + w.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
820
|
-
innerHTML:
|
|
856
|
+
innerHTML: c(Cl)({
|
|
821
857
|
content: String(_.value[s].text),
|
|
822
858
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
823
859
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
824
860
|
x: 0,
|
|
825
861
|
y: 0
|
|
826
862
|
})
|
|
827
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, ha)) : (u(), n("text", {
|
|
828
864
|
key: 0,
|
|
829
865
|
class: "vue-data-ui-time-label",
|
|
830
866
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
831
867
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
832
868
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
833
869
|
transform: `translate(${r.value.left + w.value * s + w.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
834
|
-
},
|
|
870
|
+
}, k(_.value[s].text || ""), 9, da))
|
|
835
871
|
])) : v("", !0)
|
|
836
872
|
]))), 256))
|
|
837
873
|
], 512)) : v("", !0),
|
|
838
|
-
(
|
|
839
|
-
e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (
|
|
874
|
+
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", null, [
|
|
875
|
+
e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (u(), n("line", {
|
|
840
876
|
key: 0,
|
|
841
|
-
class: N({ "donut-opacity": !0, "donut-behind":
|
|
877
|
+
class: N({ "donut-opacity": !0, "donut-behind": f.value !== null }),
|
|
842
878
|
x1: l.x,
|
|
843
879
|
y1: l.y,
|
|
844
880
|
x2: L.value[s + 1].x,
|
|
@@ -847,44 +883,44 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
847
883
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
848
884
|
"stroke-linecap": "round",
|
|
849
885
|
"stroke-linejoin": "round"
|
|
850
|
-
}, null, 10,
|
|
851
|
-
l.subtotal !== null ? (
|
|
852
|
-
l.subtotal ? (
|
|
886
|
+
}, null, 10, ya)) : v("", !0),
|
|
887
|
+
l.subtotal !== null ? (u(), n("g", ga, [
|
|
888
|
+
l.subtotal ? (u(), n("circle", {
|
|
853
889
|
key: 0,
|
|
854
890
|
cx: l.x,
|
|
855
891
|
cy: l.y,
|
|
856
892
|
r: l.activeRadius,
|
|
857
893
|
fill: e.value.style.chart.backgroundColor
|
|
858
|
-
}, null, 8,
|
|
894
|
+
}, null, 8, fa)) : v("", !0)
|
|
859
895
|
])) : v("", !0)
|
|
860
896
|
]))), 256)),
|
|
861
|
-
(
|
|
862
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
897
|
+
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
|
|
898
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
|
|
863
899
|
}, [
|
|
864
|
-
l.subtotal ? (
|
|
865
|
-
|
|
866
|
-
(
|
|
867
|
-
ht(
|
|
900
|
+
l.subtotal ? (u(), n("g", ba, [
|
|
901
|
+
f.value !== null && f.value === s ? (u(), n("g", ma, [
|
|
902
|
+
(u(!0), n($, null, z(l.donutHover, (o) => (u(), n("g", null, [
|
|
903
|
+
ht(o) ? (u(), n("path", {
|
|
868
904
|
key: 0,
|
|
869
|
-
d:
|
|
870
|
-
stroke:
|
|
905
|
+
d: c(_l)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
906
|
+
stroke: o.color,
|
|
871
907
|
"stroke-width": "1",
|
|
872
908
|
"stroke-linecap": "round",
|
|
873
909
|
"stroke-linejoin": "round",
|
|
874
910
|
fill: "none"
|
|
875
|
-
}, null, 8,
|
|
911
|
+
}, null, 8, xa)) : v("", !0)
|
|
876
912
|
]))), 256)),
|
|
877
|
-
(
|
|
878
|
-
ht(
|
|
913
|
+
(u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("g", null, [
|
|
914
|
+
ht(o) ? (u(), n("text", {
|
|
879
915
|
key: 0,
|
|
880
916
|
"data-cy-hover-label": "",
|
|
881
|
-
"text-anchor":
|
|
882
|
-
x:
|
|
883
|
-
y:
|
|
917
|
+
"text-anchor": c(At)(o, !0, 0).anchor,
|
|
918
|
+
x: c(At)(o, !0, 9).x,
|
|
919
|
+
y: c(Ll)(o, 14, 10),
|
|
884
920
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
885
921
|
"font-size": 8,
|
|
886
922
|
"font-weight": "bold"
|
|
887
|
-
},
|
|
923
|
+
}, k(o.name) + ": " + k(qt(o, l.donut)) + " (" + k(o.value === null ? "-" : nt(o.value, o, g)) + ") ", 9, pa)) : v("", !0)
|
|
888
924
|
]))), 256)),
|
|
889
925
|
b("g", null, [
|
|
890
926
|
b("circle", {
|
|
@@ -892,89 +928,89 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
892
928
|
cy: l.y,
|
|
893
929
|
r: l.hoverRadius,
|
|
894
930
|
fill: e.value.style.chart.backgroundColor
|
|
895
|
-
}, null, 8,
|
|
931
|
+
}, null, 8, ka)
|
|
896
932
|
])
|
|
897
933
|
])) : v("", !0)
|
|
898
934
|
])) : v("", !0)
|
|
899
935
|
], 2))), 256)),
|
|
900
|
-
(
|
|
901
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
936
|
+
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
|
|
937
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
|
|
902
938
|
}, [
|
|
903
|
-
l.subtotal !== null ? (
|
|
904
|
-
l.subtotal === 0 ? (
|
|
939
|
+
l.subtotal !== null ? (u(), n("g", wa, [
|
|
940
|
+
l.subtotal === 0 ? (u(), n("circle", {
|
|
905
941
|
key: 0,
|
|
906
942
|
cx: l.x,
|
|
907
943
|
cy: l.y,
|
|
908
944
|
r: 3,
|
|
909
945
|
fill: e.value.style.chart.color
|
|
910
|
-
}, null, 8,
|
|
911
|
-
(
|
|
912
|
-
d:
|
|
913
|
-
fill: `${
|
|
946
|
+
}, null, 8, Ca)) : f.value !== null && f.value === s ? (u(), n("g", _a, [
|
|
947
|
+
(u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("path", {
|
|
948
|
+
d: o.arcSlice,
|
|
949
|
+
fill: `${o.color}`,
|
|
914
950
|
"stroke-width": 1,
|
|
915
951
|
stroke: e.value.style.chart.backgroundColor
|
|
916
|
-
}, null, 8,
|
|
917
|
-
])) : (
|
|
918
|
-
(
|
|
919
|
-
d:
|
|
920
|
-
fill: `${
|
|
952
|
+
}, null, 8, La))), 256))
|
|
953
|
+
])) : (u(), n("g", Aa, [
|
|
954
|
+
(u(!0), n($, null, z(l.donut, (o, g) => (u(), n("path", {
|
|
955
|
+
d: o.arcSlice,
|
|
956
|
+
fill: `${o.color}`,
|
|
921
957
|
"stroke-width": 0.5,
|
|
922
958
|
stroke: e.value.style.chart.backgroundColor
|
|
923
|
-
}, null, 8,
|
|
959
|
+
}, null, 8, Sa))), 256))
|
|
924
960
|
]))
|
|
925
961
|
])) : v("", !0)
|
|
926
962
|
], 2))), 256)),
|
|
927
|
-
(
|
|
928
|
-
class: N({ "donut-opacity": !0, "donut-behind": s !==
|
|
963
|
+
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
|
|
964
|
+
class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null || de.value && s !== V.value.index })
|
|
929
965
|
}, [
|
|
930
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
966
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), n("text", {
|
|
931
967
|
key: 0,
|
|
932
968
|
"text-anchor": "middle",
|
|
933
969
|
x: l.x,
|
|
934
|
-
y:
|
|
970
|
+
y: f.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
|
|
935
971
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
936
972
|
"font-weight": "bold",
|
|
937
973
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
938
|
-
},
|
|
974
|
+
}, k(nt(l.subtotal, l, s)), 9, $a)) : v("", !0)
|
|
939
975
|
], 2))), 256)),
|
|
940
|
-
(
|
|
976
|
+
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
|
|
941
977
|
x: r.value.left + s * w.value,
|
|
942
978
|
y: r.value.top,
|
|
943
979
|
width: w.value,
|
|
944
980
|
height: r.value.height,
|
|
945
|
-
fill: [
|
|
946
|
-
class: N({ "donut-hover": l.subtotal && [
|
|
981
|
+
fill: [f.value, J.value].includes(l.index) ? `url(#hover_${T.value})` : "transparent",
|
|
982
|
+
class: N({ "donut-hover": l.subtotal && [f.value, J.value].includes(l.index) }),
|
|
947
983
|
style: {
|
|
948
984
|
pointerEvents: "none"
|
|
949
985
|
}
|
|
950
|
-
}, null, 10,
|
|
951
|
-
(
|
|
986
|
+
}, null, 10, za))), 256)),
|
|
987
|
+
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
|
|
952
988
|
"data-cy-trap": "",
|
|
953
989
|
x: r.value.left + s * w.value,
|
|
954
990
|
y: r.value.top,
|
|
955
991
|
width: w.value,
|
|
956
992
|
height: r.value.height,
|
|
957
993
|
fill: "transparent",
|
|
958
|
-
onMouseenter: (
|
|
959
|
-
onMouseleave: (
|
|
960
|
-
onClick: (
|
|
961
|
-
class: N({ "donut-hover":
|
|
962
|
-
}, null, 42,
|
|
994
|
+
onMouseenter: (o) => Jt(l),
|
|
995
|
+
onMouseleave: (o) => rt(l),
|
|
996
|
+
onClick: (o) => it(l, s),
|
|
997
|
+
class: N({ "donut-hover": f.value === l.index && l.subtotal })
|
|
998
|
+
}, null, 42, Ia))), 256)),
|
|
963
999
|
S(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
964
|
-
], 14,
|
|
965
|
-
t.$slots.watermark ? (
|
|
966
|
-
S(t.$slots, "watermark", Z(ee({ isPrinting:
|
|
1000
|
+
], 14, Yl)),
|
|
1001
|
+
t.$slots.watermark ? (u(), n("div", Da, [
|
|
1002
|
+
S(t.$slots, "watermark", Z(ee({ isPrinting: c(lt) || c(at) })), void 0, !0)
|
|
967
1003
|
])) : v("", !0),
|
|
968
1004
|
b("div", {
|
|
969
1005
|
ref_key: "chartSlicer",
|
|
970
|
-
ref:
|
|
1006
|
+
ref: Ge,
|
|
971
1007
|
style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
972
1008
|
"data-dom-to-png-ignore": ""
|
|
973
1009
|
}, [
|
|
974
|
-
I.value > 1 && e.value.style.chart.zoom.show ? (
|
|
1010
|
+
I.value > 1 && e.value.style.chart.zoom.show ? (u(), O(Ul, {
|
|
975
1011
|
ref_key: "slicerComponent",
|
|
976
|
-
ref:
|
|
977
|
-
key: `slicer_${
|
|
1012
|
+
ref: We,
|
|
1013
|
+
key: `slicer_${Fe.value}`,
|
|
978
1014
|
background: e.value.style.chart.zoom.color,
|
|
979
1015
|
borderColor: e.value.style.chart.backgroundColor,
|
|
980
1016
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -998,86 +1034,72 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
998
1034
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
999
1035
|
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
1000
1036
|
focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
|
|
1001
|
-
onReset:
|
|
1037
|
+
onReset: Ze
|
|
1002
1038
|
}, {
|
|
1003
|
-
"reset-action":
|
|
1039
|
+
"reset-action": p(({ reset: l }) => [
|
|
1004
1040
|
S(t.$slots, "reset-action", Z(ee({ reset: l })), void 0, !0)
|
|
1005
1041
|
]),
|
|
1006
1042
|
_: 3
|
|
1007
1043
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : v("", !0)
|
|
1008
1044
|
], 4),
|
|
1009
1045
|
b("div", {
|
|
1010
|
-
id: `legend-bottom-${
|
|
1011
|
-
}, null, 8,
|
|
1012
|
-
|
|
1046
|
+
id: `legend-bottom-${T.value}`
|
|
1047
|
+
}, null, 8, Oa),
|
|
1048
|
+
Me.value ? (u(), O(hl, {
|
|
1013
1049
|
key: 5,
|
|
1014
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1050
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1015
1051
|
}, [
|
|
1016
1052
|
b("div", {
|
|
1017
1053
|
ref_key: "chartLegend",
|
|
1018
|
-
ref:
|
|
1054
|
+
ref: Ue
|
|
1019
1055
|
}, [
|
|
1020
|
-
e.value.style.chart.legend.show ? (
|
|
1021
|
-
key: `legend_${
|
|
1022
|
-
legendSet:
|
|
1023
|
-
config:
|
|
1024
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) =>
|
|
1056
|
+
e.value.style.chart.legend.show ? (u(), O(Hl, {
|
|
1057
|
+
key: `legend_${Be.value}`,
|
|
1058
|
+
legendSet: Le.value,
|
|
1059
|
+
config: Kt.value,
|
|
1060
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => Ae(l.uid))
|
|
1025
1061
|
}, {
|
|
1026
|
-
item:
|
|
1062
|
+
item: p(({ legend: l, index: s }) => [
|
|
1027
1063
|
b("div", {
|
|
1028
|
-
onClick: (
|
|
1064
|
+
onClick: (o) => Ae(l.uid),
|
|
1029
1065
|
style: Q(`opacity:${C.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1030
|
-
},
|
|
1031
|
-
e.value.style.chart.layout.dataLabels.formatter,
|
|
1032
|
-
l.value,
|
|
1033
|
-
i(ve)({
|
|
1034
|
-
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
1035
|
-
v: l.value,
|
|
1036
|
-
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
1037
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1038
|
-
}),
|
|
1039
|
-
{ datapoint: l, seriesIndex: s }
|
|
1040
|
-
) : "") + " " + m(e.value.style.chart.legend.showPercentage ? C.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ct.value) ? "-" : i(ve)({
|
|
1041
|
-
v: l.value / ct.value * 100,
|
|
1042
|
-
s: "%",
|
|
1043
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
1044
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, La)
|
|
1066
|
+
}, k(l.display), 13, Ta)
|
|
1045
1067
|
]),
|
|
1046
1068
|
_: 1
|
|
1047
1069
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
1048
|
-
S(t.$slots, "legend", { legend:
|
|
1070
|
+
S(t.$slots, "legend", { legend: Le.value }, void 0, !0)
|
|
1049
1071
|
], 512)
|
|
1050
1072
|
], 8, ["to"])) : v("", !0),
|
|
1051
|
-
t.$slots.source ? (
|
|
1073
|
+
t.$slots.source ? (u(), n("div", {
|
|
1052
1074
|
key: 6,
|
|
1053
1075
|
ref_key: "source",
|
|
1054
|
-
ref:
|
|
1076
|
+
ref: Xe,
|
|
1055
1077
|
dir: "auto"
|
|
1056
1078
|
}, [
|
|
1057
1079
|
S(t.$slots, "source", {}, void 0, !0)
|
|
1058
1080
|
], 512)) : v("", !0),
|
|
1059
|
-
|
|
1081
|
+
qe.value && e.value.userOptions.buttons.table ? (u(), O(yl(K.value.component), gl({ key: 7 }, K.value.props, {
|
|
1060
1082
|
ref_key: "tableUnit",
|
|
1061
1083
|
ref: Y,
|
|
1062
|
-
onClose:
|
|
1063
|
-
}),
|
|
1064
|
-
content:
|
|
1065
|
-
(
|
|
1066
|
-
key: `table_${
|
|
1084
|
+
onClose: ft
|
|
1085
|
+
}), pt({
|
|
1086
|
+
content: p(() => [
|
|
1087
|
+
(u(), O(c(Pt), {
|
|
1088
|
+
key: `table_${Ve.value}`,
|
|
1067
1089
|
colNames: W.value.colNames,
|
|
1068
1090
|
head: W.value.head,
|
|
1069
1091
|
body: W.value.body,
|
|
1070
1092
|
config: W.value.config,
|
|
1071
1093
|
title: e.value.table.useDialog ? "" : K.value.title,
|
|
1072
1094
|
withCloseButton: !e.value.table.useDialog,
|
|
1073
|
-
onClose:
|
|
1095
|
+
onClose: ft
|
|
1074
1096
|
}, {
|
|
1075
|
-
th:
|
|
1076
|
-
|
|
1097
|
+
th: p(({ th: l }) => [
|
|
1098
|
+
De(k(l.name ?? l), 1)
|
|
1077
1099
|
]),
|
|
1078
|
-
td:
|
|
1079
|
-
l.value === null ? (
|
|
1080
|
-
b("span", null,
|
|
1100
|
+
td: p(({ td: l }) => [
|
|
1101
|
+
l.value === null ? (u(), n("span", Na, "-")) : (u(), n("b", Pa, k(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + k(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + k(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1102
|
+
b("span", null, k(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1081
1103
|
]),
|
|
1082
1104
|
_: 1
|
|
1083
1105
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1086,20 +1108,20 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
1086
1108
|
}, [
|
|
1087
1109
|
e.value.table.useDialog ? {
|
|
1088
1110
|
name: "title",
|
|
1089
|
-
fn:
|
|
1090
|
-
|
|
1111
|
+
fn: p(() => [
|
|
1112
|
+
De(k(K.value.title), 1)
|
|
1091
1113
|
]),
|
|
1092
1114
|
key: "0"
|
|
1093
1115
|
} : void 0,
|
|
1094
1116
|
e.value.table.useDialog ? {
|
|
1095
1117
|
name: "actions",
|
|
1096
|
-
fn:
|
|
1118
|
+
fn: p(() => [
|
|
1097
1119
|
b("button", {
|
|
1098
1120
|
tabindex: "0",
|
|
1099
1121
|
class: "vue-ui-user-options-button",
|
|
1100
|
-
onClick: a[3] || (a[3] = (l) =>
|
|
1122
|
+
onClick: a[3] || (a[3] = (l) => Se(e.value.userOptions.callbacks.csv))
|
|
1101
1123
|
}, [
|
|
1102
|
-
|
|
1124
|
+
kt(c(Nt), {
|
|
1103
1125
|
name: "excel",
|
|
1104
1126
|
stroke: K.value.props.color
|
|
1105
1127
|
}, null, 8, ["stroke"])
|
|
@@ -1108,12 +1130,12 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
1108
1130
|
key: "1"
|
|
1109
1131
|
} : void 0
|
|
1110
1132
|
]), 1040)) : v("", !0),
|
|
1111
|
-
e.value.style.chart.dialog.show ? (
|
|
1133
|
+
e.value.style.chart.dialog.show ? (u(), O(c(Pe), {
|
|
1112
1134
|
key: 8,
|
|
1113
1135
|
ref_key: "dialog",
|
|
1114
|
-
ref:
|
|
1136
|
+
ref: ze,
|
|
1115
1137
|
onClose: a[4] || (a[4] = (l) => {
|
|
1116
|
-
V.value = null, de.value = !1, le.value = null,
|
|
1138
|
+
V.value = null, de.value = !1, le.value = null, f.value = null, J.value = null;
|
|
1117
1139
|
}),
|
|
1118
1140
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1119
1141
|
color: e.value.style.chart.dialog.color,
|
|
@@ -1122,22 +1144,22 @@ const Fl = ["id"], El = ["id"], Vl = ["xmlns", "viewBox"], Bl = ["x", "y", "widt
|
|
|
1122
1144
|
isFullscreen: H.value,
|
|
1123
1145
|
fullscreenParent: P.value
|
|
1124
1146
|
}, {
|
|
1125
|
-
title:
|
|
1126
|
-
|
|
1147
|
+
title: p(() => [
|
|
1148
|
+
De(k(_.value[Number(V.value.index)] ? _.value[Number(V.value.index)].text : ""), 1)
|
|
1127
1149
|
]),
|
|
1128
|
-
content:
|
|
1129
|
-
V.value ? (
|
|
1150
|
+
content: p(() => [
|
|
1151
|
+
V.value ? (u(), O(c(Vt), {
|
|
1130
1152
|
key: 0,
|
|
1131
|
-
config:
|
|
1153
|
+
config: gt.value,
|
|
1132
1154
|
dataset: yt.value
|
|
1133
1155
|
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1134
1156
|
]),
|
|
1135
1157
|
_: 1
|
|
1136
1158
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1137
|
-
|
|
1138
|
-
], 46,
|
|
1159
|
+
c(Ke) ? (u(), O(Tl, { key: 9 })) : v("", !0)
|
|
1160
|
+
], 46, Wl));
|
|
1139
1161
|
}
|
|
1140
|
-
},
|
|
1162
|
+
}, eo = /* @__PURE__ */ Xl(Ra, [["__scopeId", "data-v-ccc6a583"]]);
|
|
1141
1163
|
export {
|
|
1142
|
-
|
|
1164
|
+
eo as default
|
|
1143
1165
|
};
|