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,21 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent 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
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as _, computed as i, ref as r, toRefs as Ot, watch as E, shallowRef as Ve, onMounted as St, onBeforeUnmount as _t, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as D, normalizeClass as j, createBlock as A, createCommentVNode as p, createElementVNode as I, createVNode as ie, createSlots as Ue, withCtx as h, renderSlot as g, normalizeProps as R, guardReactiveProps as z, Fragment as Y, renderList as X, toDisplayString as L, Teleport as At, resolveDynamicComponent as It, mergeProps as Pt, createTextVNode as Ee, nextTick as Ye } from "vue";
|
|
2
|
+
import { c as Ft, t as Dt, b as Mt, p as Xe, e as Rt, o as Ge, f as ce, h as zt, d as B, X as Lt, a as ve, z as He, x as Bt, y as Nt, A as Vt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as Ut, u as Et } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Yt, a as We } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Xt, B as Gt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ht } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as Wt } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Jt } from "./useAutoSizeLabelsInsideViewbox-Csv3pVmh.js";
|
|
11
|
+
import Kt from "./img-6wPuVVtk.js";
|
|
12
|
+
import Qt from "./Title-D17CJXko.js";
|
|
13
|
+
import Zt from "./Legend-DsogCeTb.js";
|
|
14
|
+
import { t as ea } from "./themes-Dw-dDudK.js";
|
|
15
|
+
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "height"], sa = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ua = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ra = ["id"], ia = ["stdDeviation"], ca = ["filter"], va = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], da = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], ha = { key: 2 }, ga = ["onMouseenter", "onMouseleave", "onClick"], pa = ["x", "y", "font-size", "fill", "font-weight"], fa = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, ma = ["id"], ya = ["onClick"], ba = ["innerHTML"], ka = {
|
|
19
20
|
__name: "vue-ui-onion",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,14 +33,14 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
...
|
|
36
|
+
setup(je, { expose: qe, emit: Je }) {
|
|
37
|
+
const Ke = _(() => import("./Tooltip-CtVdvbZi.js")), Qe = _(() => import("./BaseIcon-CtqN7W_g.js")), Ze = _(() => import("./vue-ui-accordion-Dch9YrCi.js")), et = _(() => import("./DataTable-BeI6gYJX.js")), tt = _(() => import("./UserOptions-B3vCIe-u.js")), at = _(() => import("./PenAndPaper-BxbYiPy4.js")), lt = _(() => import("./PackageVersion-C9oklnuy.js")), ot = _(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_onion: nt } = Yt(), C = je, de = i(() => !!C.dataset && C.dataset.length), y = r(Ft()), st = r(null), he = r(0), q = r(!1), J = r(""), b = r([]), $ = r(null), ge = r(null), pe = r(null), fe = r(null), me = r(null), ye = r(0), be = r(0), ke = r(0), x = r(!1), we = r(!1), N = r(null), e = r(Z()), { loading: k, FINAL_DATASET: Ce, manualLoading: K } = Xt({
|
|
38
|
+
...Ot(C),
|
|
38
39
|
FINAL_CONFIG: e,
|
|
39
40
|
prepareConfig: Z,
|
|
40
41
|
callback: () => {
|
|
41
42
|
Promise.resolve().then(async () => {
|
|
42
|
-
await
|
|
43
|
+
await Ye(), Pe();
|
|
43
44
|
});
|
|
44
45
|
},
|
|
45
46
|
skeletonDataset: [
|
|
@@ -48,7 +49,7 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
48
49
|
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
49
50
|
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
50
51
|
],
|
|
51
|
-
skeletonConfig:
|
|
52
|
+
skeletonConfig: Dt({
|
|
52
53
|
defaultConfig: e.value,
|
|
53
54
|
userConfig: {
|
|
54
55
|
userOptions: { show: !1 },
|
|
@@ -69,33 +70,33 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
})
|
|
72
|
-
}), { userOptionsVisible:
|
|
73
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: $e, keepUserOptionState: xe } = jt({ config: e.value }), { svgRef: G } = qt({ config: e.value.style.chart.title });
|
|
73
74
|
function Z() {
|
|
74
|
-
const t =
|
|
75
|
+
const t = We({
|
|
75
76
|
userConfig: C.config,
|
|
76
|
-
defaultConfig:
|
|
77
|
+
defaultConfig: nt
|
|
77
78
|
});
|
|
78
79
|
return t.theme ? {
|
|
79
|
-
...
|
|
80
|
-
userConfig:
|
|
80
|
+
...We({
|
|
81
|
+
userConfig: ea.vue_ui_onion[t.theme] || C.config,
|
|
81
82
|
defaultConfig: t
|
|
82
83
|
}),
|
|
83
|
-
customPalette:
|
|
84
|
+
customPalette: Mt[t.theme] || Xe
|
|
84
85
|
} : t;
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
k.value || (e.value = Z()),
|
|
87
|
+
E(() => C.config, (t) => {
|
|
88
|
+
k.value || (e.value = Z()), Q.value = !e.value.userOptions.showOnChartHover, Ie(), ye.value += 1, be.value += 1, ke.value += 1, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
88
89
|
}, { deep: !0 });
|
|
89
|
-
const { isPrinting:
|
|
90
|
+
const { isPrinting: Te, isImaging: Oe, generatePdf: Se, generateImage: _e } = Ht({
|
|
90
91
|
elementId: `vue-ui-onion_${y.value}`,
|
|
91
92
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
92
93
|
options: e.value.userOptions.print
|
|
93
|
-
}),
|
|
94
|
+
}), ut = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), rt = i(() => Rt(e.value.customPalette)), f = r({
|
|
94
95
|
showTable: e.value.table.show,
|
|
95
96
|
showTooltip: e.value.style.chart.tooltip.show
|
|
96
97
|
});
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
E(e, () => {
|
|
99
|
+
f.value = {
|
|
99
100
|
showTable: e.value.table.show,
|
|
100
101
|
showTooltip: e.value.style.chart.tooltip.show
|
|
101
102
|
};
|
|
@@ -110,35 +111,35 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
110
111
|
bottom: 64
|
|
111
112
|
},
|
|
112
113
|
minRadius: 64
|
|
113
|
-
}), O =
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
}), O = Ve(null), M = Ve(null);
|
|
115
|
+
St(() => {
|
|
116
|
+
we.value = !0, Ie();
|
|
116
117
|
});
|
|
117
|
-
const
|
|
118
|
+
const it = i({
|
|
118
119
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
119
120
|
set: (t) => t
|
|
120
|
-
}), { autoSizeLabels: Ae } =
|
|
121
|
-
svgRef:
|
|
121
|
+
}), { autoSizeLabels: Ae } = Jt({
|
|
122
|
+
svgRef: G,
|
|
122
123
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
123
124
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
124
|
-
sizeRef:
|
|
125
|
+
sizeRef: it,
|
|
125
126
|
labelClass: ".vue-ui-onion-label"
|
|
126
|
-
}),
|
|
127
|
+
}), ct = i(() => e.value.debug);
|
|
127
128
|
let ee = null;
|
|
128
|
-
function
|
|
129
|
-
if (
|
|
129
|
+
function Ie() {
|
|
130
|
+
if (Ge(C.dataset) && (ce({
|
|
130
131
|
componentName: "VueUiOnion",
|
|
131
132
|
type: "dataset",
|
|
132
|
-
debug:
|
|
133
|
-
}),
|
|
134
|
-
const o =
|
|
133
|
+
debug: ct.value
|
|
134
|
+
}), K.value = !0), Ge(C.dataset) || (K.value = e.value.loading), e.value.responsive) {
|
|
135
|
+
const o = Ut(() => {
|
|
135
136
|
ee && clearTimeout(ee), x.value = !0;
|
|
136
|
-
let { width: a, height: l } =
|
|
137
|
+
let { width: a, height: l } = Et({
|
|
137
138
|
chart: $.value,
|
|
138
|
-
title: e.value.style.chart.title.text ?
|
|
139
|
+
title: e.value.style.chart.title.text ? ge.value : null,
|
|
139
140
|
legend: e.value.style.chart.legend.show ? pe.value : null,
|
|
140
141
|
source: fe.value,
|
|
141
|
-
noTitle:
|
|
142
|
+
noTitle: me.value
|
|
142
143
|
});
|
|
143
144
|
l -= 12, requestAnimationFrame(async () => {
|
|
144
145
|
n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, ee = setTimeout(() => {
|
|
@@ -146,14 +147,14 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
146
147
|
}, 0);
|
|
147
148
|
});
|
|
148
149
|
});
|
|
149
|
-
O.value && (
|
|
150
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(o), M.value = $.value.parentNode, O.value.observe(M.value);
|
|
150
151
|
}
|
|
151
152
|
requestAnimationFrame(Ae);
|
|
152
153
|
}
|
|
153
|
-
|
|
154
|
-
O.value && (
|
|
154
|
+
_t(() => {
|
|
155
|
+
O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
|
|
155
156
|
});
|
|
156
|
-
const
|
|
157
|
+
const d = i(() => ({
|
|
157
158
|
top: n.value.padding.top,
|
|
158
159
|
left: n.value.padding.left,
|
|
159
160
|
right: n.value.width - n.value.padding.right,
|
|
@@ -164,107 +165,114 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
164
165
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
165
166
|
minRadius: n.value.minRadius,
|
|
166
167
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
167
|
-
})),
|
|
168
|
-
[null, void 0].includes(t.name) &&
|
|
168
|
+
})), m = i(() => (Ce.value.forEach((t, o) => {
|
|
169
|
+
[null, void 0].includes(t.name) && ce({
|
|
169
170
|
componentName: "VueUiOnion",
|
|
170
171
|
type: "datasetSerieAttribute",
|
|
171
172
|
property: "name",
|
|
172
173
|
index: o
|
|
173
|
-
}), [void 0].includes(t.percentage) &&
|
|
174
|
+
}), [void 0].includes(t.percentage) && ce({
|
|
174
175
|
componentName: "VueUiOnion",
|
|
175
176
|
type: "datasetSerieAttribute",
|
|
176
177
|
property: "percentage",
|
|
177
178
|
index: o
|
|
178
179
|
});
|
|
179
|
-
}),
|
|
180
|
+
}), Ce.value.map((t, o) => {
|
|
180
181
|
const a = `onion_serie_${o}_${y.value}`;
|
|
181
182
|
return {
|
|
182
183
|
...t,
|
|
183
184
|
percentage: t.percentage || 0,
|
|
184
185
|
targetPercentage: t.percentage || 0,
|
|
185
|
-
color:
|
|
186
|
+
color: zt(t.color) || rt.value[o] || Xe[o],
|
|
186
187
|
id: a,
|
|
187
188
|
shape: "circle",
|
|
188
189
|
opacity: b.value.includes(a) ? 0.5 : 1,
|
|
189
190
|
absoluteIndex: o,
|
|
190
|
-
segregate: () =>
|
|
191
|
+
segregate: () => Fe(a),
|
|
191
192
|
isSegregated: b.value.includes(a)
|
|
192
193
|
};
|
|
193
|
-
}))),
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
}))), te = i(() => m.value.map((t, o) => ({
|
|
195
|
+
...t,
|
|
196
|
+
display: `${t.name ? t.name + ": " : ""}${B({
|
|
197
|
+
v: t.percentage ?? 0,
|
|
198
|
+
s: "%",
|
|
199
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
200
|
+
})}`
|
|
201
|
+
}))), V = r(m.value), vt = i(() => e.value.useStartAnimation), dt = r(null), ht = i(() => Math.max(...m.value.map((t) => t.percentage))), ae = r(!1);
|
|
202
|
+
E(() => m.value, Pe, { immediate: !0, deep: !0 }), E(() => C.dataset, (t) => {
|
|
203
|
+
Array.isArray(t) && t.length > 0 && (K.value = !1);
|
|
196
204
|
}, { deep: !0 });
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
205
|
+
function Pe() {
|
|
206
|
+
if (vt.value && !ae.value && !k.value) {
|
|
199
207
|
let o = function() {
|
|
200
|
-
t >=
|
|
208
|
+
t >= ht.value ? (cancelAnimationFrame(dt.value), V.value = m.value, ae.value = !0) : (V.value = m.value.map((a) => ({
|
|
201
209
|
...a,
|
|
202
210
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
203
|
-
})), t += 1, requestAnimationFrame(o),
|
|
211
|
+
})), t += 1, requestAnimationFrame(o), ae.value = !0);
|
|
204
212
|
};
|
|
205
|
-
|
|
213
|
+
V.value = m.value.map((a) => ({
|
|
206
214
|
...a,
|
|
207
215
|
percentage: 0
|
|
208
216
|
}));
|
|
209
217
|
let t = 0;
|
|
210
218
|
o();
|
|
211
219
|
} else
|
|
212
|
-
|
|
220
|
+
V.value = m.value;
|
|
213
221
|
}
|
|
214
|
-
const
|
|
222
|
+
const gt = i(() => ({
|
|
215
223
|
cy: "onion-div-legend",
|
|
216
224
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
217
225
|
color: e.value.style.chart.legend.color,
|
|
218
226
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
219
227
|
paddingBottom: 12,
|
|
220
228
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
221
|
-
})),
|
|
222
|
-
const t = Math.min(
|
|
229
|
+
})), pt = i(() => m.value.filter((t) => !b.value.includes(t.id)).length), P = i(() => {
|
|
230
|
+
const t = Math.min(d.value.width, d.value.height) / 2 / m.value.length;
|
|
223
231
|
return {
|
|
224
232
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
225
233
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
226
234
|
};
|
|
227
|
-
}), T =
|
|
228
|
-
const a = (
|
|
235
|
+
}), T = i(() => V.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
|
|
236
|
+
const a = (d.value.maxRadius - P.value.track) / pt.value / 2 * (1 + o), l = d.value.centerY - a;
|
|
229
237
|
return {
|
|
230
238
|
percentage: t.percentage || 0,
|
|
231
239
|
...t,
|
|
232
240
|
labelY: l,
|
|
233
241
|
radius: a,
|
|
234
|
-
path:
|
|
242
|
+
path: ft(a, t.percentage || 0)
|
|
235
243
|
};
|
|
236
244
|
}));
|
|
237
|
-
function
|
|
238
|
-
const a = 2 * Math.PI * t, l = a * 0.75,
|
|
245
|
+
function ft(t, o) {
|
|
246
|
+
const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`, w = l * (1 - o / 100);
|
|
239
247
|
return {
|
|
240
248
|
bgDashArray: `${l} ${a}`,
|
|
241
249
|
bgDashOffset: 0,
|
|
242
|
-
dashArray:
|
|
250
|
+
dashArray: v,
|
|
243
251
|
dashOffset: w,
|
|
244
252
|
fullOffset: 0,
|
|
245
253
|
active: `
|
|
246
|
-
M ${
|
|
254
|
+
M ${d.value.centerX},${d.value.centerY - t}
|
|
247
255
|
A ${t},${t} 0 1 1
|
|
248
|
-
${
|
|
256
|
+
${d.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${d.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
|
|
249
257
|
`.trim()
|
|
250
258
|
};
|
|
251
259
|
}
|
|
252
|
-
const
|
|
253
|
-
function
|
|
254
|
-
b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t),
|
|
260
|
+
const mt = Je;
|
|
261
|
+
function Fe(t) {
|
|
262
|
+
b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), mt("selectLegend", T.value);
|
|
255
263
|
}
|
|
256
|
-
function
|
|
264
|
+
function yt() {
|
|
257
265
|
return T.value;
|
|
258
266
|
}
|
|
259
|
-
const
|
|
267
|
+
const le = i(() => {
|
|
260
268
|
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = T.value.map((a) => [
|
|
261
269
|
a.name,
|
|
262
270
|
a.percentage,
|
|
263
271
|
a.value
|
|
264
272
|
]);
|
|
265
273
|
return { head: t, body: o };
|
|
266
|
-
}),
|
|
267
|
-
const t =
|
|
274
|
+
}), H = i(() => {
|
|
275
|
+
const t = le.value.head, o = T.value.map((l) => [
|
|
268
276
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
269
277
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
270
278
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -283,76 +291,76 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
283
291
|
};
|
|
284
292
|
return { head: t, body: o, config: a, colNames: t };
|
|
285
293
|
});
|
|
286
|
-
function
|
|
287
|
-
|
|
288
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
289
|
-
t ? t(w) :
|
|
294
|
+
function oe(t = null) {
|
|
295
|
+
Ye(() => {
|
|
296
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = le.value.head, l = le.value.body, v = o.concat([a]).concat(l), w = Bt(v);
|
|
297
|
+
t ? t(w) : Nt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
290
298
|
});
|
|
291
299
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
294
|
-
F.value = t,
|
|
300
|
+
const S = r(void 0), F = r(!1);
|
|
301
|
+
function De(t) {
|
|
302
|
+
F.value = t, he.value += 1;
|
|
295
303
|
}
|
|
296
|
-
function
|
|
304
|
+
function Me({ datapoint: t }) {
|
|
297
305
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
298
306
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
307
|
+
function Re({ datapoint: t }) {
|
|
308
|
+
S.value = void 0, q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
301
309
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
310
|
+
const ne = r(null);
|
|
311
|
+
function ze({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
304
312
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
305
313
|
const l = t.absoluteIndex;
|
|
306
|
-
|
|
314
|
+
S.value = o, ne.value = {
|
|
307
315
|
datapoint: t,
|
|
308
316
|
seriesIndex: l,
|
|
309
|
-
series:
|
|
317
|
+
series: m.value,
|
|
310
318
|
config: e.value
|
|
311
|
-
},
|
|
312
|
-
let
|
|
319
|
+
}, q.value = a;
|
|
320
|
+
let v = "";
|
|
313
321
|
const w = e.value.style.chart.tooltip.customFormat;
|
|
314
|
-
if (
|
|
322
|
+
if (He(w) && Vt(() => w({
|
|
315
323
|
seriesIndex: l,
|
|
316
324
|
datapoint: t,
|
|
317
|
-
series:
|
|
325
|
+
series: m.value,
|
|
318
326
|
config: e.value
|
|
319
327
|
})))
|
|
320
|
-
|
|
328
|
+
J.value = w({
|
|
321
329
|
seriesIndex: l,
|
|
322
330
|
datapoint: t,
|
|
323
|
-
series:
|
|
331
|
+
series: m.value,
|
|
324
332
|
config: e.value
|
|
325
333
|
});
|
|
326
334
|
else {
|
|
327
|
-
const
|
|
328
|
-
|
|
335
|
+
const ue = e.value.style.chart.tooltip.showPercentage, re = e.value.style.chart.tooltip.showValue;
|
|
336
|
+
v += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, v += `<div style="width:100%;text-align:left;"><b>${ue ? B({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${ue && re ? "(" : ""}${re ? ve(
|
|
329
337
|
e.value.style.chart.layout.labels.value.formatter,
|
|
330
338
|
t.value,
|
|
331
|
-
|
|
339
|
+
B({
|
|
332
340
|
p: t.prefix || "",
|
|
333
341
|
v: t.value,
|
|
334
342
|
s: t.suffix || "",
|
|
335
343
|
r: e.value.style.chart.tooltip.roundingValue
|
|
336
344
|
}),
|
|
337
345
|
{ datapoint: t, seriesIndex: o }
|
|
338
|
-
) : ""}${
|
|
346
|
+
) : ""}${ue && re ? ")" : ""}</div>`, J.value = `<div>${v}</div>`;
|
|
339
347
|
}
|
|
340
348
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
349
|
+
function Le() {
|
|
350
|
+
f.value.showTable = !f.value.showTable;
|
|
343
351
|
}
|
|
344
|
-
function
|
|
345
|
-
|
|
352
|
+
function Be() {
|
|
353
|
+
f.value.showTooltip = !f.value.showTooltip;
|
|
346
354
|
}
|
|
347
|
-
const
|
|
348
|
-
function
|
|
349
|
-
|
|
355
|
+
const W = r(!1);
|
|
356
|
+
function se() {
|
|
357
|
+
W.value = !W.value;
|
|
350
358
|
}
|
|
351
|
-
async function
|
|
359
|
+
async function bt({ scale: t = 2 } = {}) {
|
|
352
360
|
if (!$.value) return;
|
|
353
|
-
const { width: o, height: a } = $.value.getBoundingClientRect(), l = o / a, { imageUri:
|
|
361
|
+
const { width: o, height: a } = $.value.getBoundingClientRect(), l = o / a, { imageUri: v, base64: w } = await Kt({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
354
362
|
return {
|
|
355
|
-
imageUri:
|
|
363
|
+
imageUri: v,
|
|
356
364
|
base64: w,
|
|
357
365
|
title: e.value.style.chart.title.text,
|
|
358
366
|
width: o,
|
|
@@ -360,10 +368,10 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
360
368
|
aspectRatio: l
|
|
361
369
|
};
|
|
362
370
|
}
|
|
363
|
-
const
|
|
364
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
371
|
+
const U = i(() => {
|
|
372
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = f.value.showTable;
|
|
365
373
|
return {
|
|
366
|
-
component: t ?
|
|
374
|
+
component: t ? ot : Ze,
|
|
367
375
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
368
376
|
props: t ? {
|
|
369
377
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -390,50 +398,69 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
390
398
|
}
|
|
391
399
|
};
|
|
392
400
|
});
|
|
393
|
-
|
|
394
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
395
|
-
})
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
401
|
+
E(() => f.value.showTable, (t) => {
|
|
402
|
+
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
403
|
+
});
|
|
404
|
+
const kt = i(() => te.value.map((t) => ({
|
|
405
|
+
...t,
|
|
406
|
+
name: t.display
|
|
407
|
+
}))), wt = i(() => e.value.style.chart.backgroundColor), Ct = i(() => e.value.style.chart.legend), $t = i(() => e.value.style.chart.title), { exportSvg: xt, getSvg: Tt } = Wt({
|
|
408
|
+
svg: G,
|
|
409
|
+
title: $t,
|
|
410
|
+
legend: Ct,
|
|
411
|
+
legendItems: kt,
|
|
412
|
+
backgroundColor: wt
|
|
413
|
+
});
|
|
414
|
+
async function Ne({ isCb: t }) {
|
|
415
|
+
if (t) {
|
|
416
|
+
const { blob: o, url: a, text: l, dataUrl: v } = await Tt();
|
|
417
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: v });
|
|
418
|
+
} else
|
|
419
|
+
xt();
|
|
420
|
+
}
|
|
421
|
+
return qe({
|
|
422
|
+
getData: yt,
|
|
423
|
+
getImage: bt,
|
|
424
|
+
generatePdf: Se,
|
|
425
|
+
generateCsv: oe,
|
|
400
426
|
generateImage: _e,
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
427
|
+
generateSvg: Ne,
|
|
428
|
+
toggleTable: Le,
|
|
429
|
+
toggleTooltip: Be,
|
|
430
|
+
toggleAnnotator: se,
|
|
431
|
+
toggleFullscreen: De
|
|
432
|
+
}), (t, o) => (u(), c("div", {
|
|
433
|
+
class: j(`vue-data-ui-component vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
407
434
|
ref_key: "onionChart",
|
|
408
435
|
ref: $,
|
|
409
436
|
id: `vue-ui-onion_${y.value}`,
|
|
410
437
|
style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
411
|
-
onMouseenter: o[4] || (o[4] = () => s(
|
|
412
|
-
onMouseleave: o[5] || (o[5] = () => s(
|
|
438
|
+
onMouseenter: o[4] || (o[4] = () => s($e)(!0)),
|
|
439
|
+
onMouseleave: o[5] || (o[5] = () => s($e)(!1))
|
|
413
440
|
}, [
|
|
414
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
441
|
+
e.value.userOptions.buttons.annotator ? (u(), A(s(at), {
|
|
415
442
|
key: 0,
|
|
416
|
-
svgRef: s(
|
|
443
|
+
svgRef: s(G),
|
|
417
444
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
418
445
|
color: e.value.style.chart.color,
|
|
419
|
-
active:
|
|
420
|
-
onClose:
|
|
421
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
422
|
-
|
|
446
|
+
active: W.value,
|
|
447
|
+
onClose: se
|
|
448
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
449
|
+
ut.value ? (u(), c("div", {
|
|
423
450
|
key: 1,
|
|
424
451
|
ref_key: "noTitle",
|
|
425
|
-
ref:
|
|
452
|
+
ref: me,
|
|
426
453
|
class: "vue-data-ui-no-title-space",
|
|
427
454
|
style: "height:36px; width: 100%;background:transparent"
|
|
428
|
-
}, null, 512)) :
|
|
429
|
-
e.value.style.chart.title.text ? (u(),
|
|
455
|
+
}, null, 512)) : p("", !0),
|
|
456
|
+
e.value.style.chart.title.text ? (u(), c("div", {
|
|
430
457
|
key: 2,
|
|
431
458
|
ref_key: "chartTitle",
|
|
432
|
-
ref:
|
|
459
|
+
ref: ge,
|
|
433
460
|
style: "width:100%;background:transparent"
|
|
434
461
|
}, [
|
|
435
|
-
(u(),
|
|
436
|
-
key: `title_${
|
|
462
|
+
(u(), A(Qt, {
|
|
463
|
+
key: `title_${ye.value}`,
|
|
437
464
|
config: {
|
|
438
465
|
title: {
|
|
439
466
|
cy: "onion-div-title",
|
|
@@ -445,113 +472,115 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
445
472
|
}
|
|
446
473
|
}
|
|
447
474
|
}, null, 8, ["config"]))
|
|
448
|
-
], 512)) :
|
|
475
|
+
], 512)) : p("", !0),
|
|
449
476
|
I("div", {
|
|
450
477
|
id: `legend-top-${y.value}`
|
|
451
|
-
}, null, 8,
|
|
452
|
-
e.value.userOptions.show &&
|
|
478
|
+
}, null, 8, la),
|
|
479
|
+
e.value.userOptions.show && de.value && (s(xe) || s(Q)) ? (u(), A(s(tt), {
|
|
453
480
|
ref_key: "details",
|
|
454
|
-
ref:
|
|
455
|
-
key: `user_options${
|
|
481
|
+
ref: st,
|
|
482
|
+
key: `user_options${he.value}`,
|
|
456
483
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
457
484
|
color: e.value.style.chart.color,
|
|
458
|
-
isImaging: s(
|
|
459
|
-
isPrinting: s(
|
|
485
|
+
isImaging: s(Oe),
|
|
486
|
+
isPrinting: s(Te),
|
|
460
487
|
uid: y.value,
|
|
461
488
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
462
489
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
463
490
|
hasImg: e.value.userOptions.buttons.img,
|
|
491
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
464
492
|
hasXls: e.value.userOptions.buttons.csv,
|
|
465
493
|
hasTable: e.value.userOptions.buttons.table,
|
|
466
494
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
467
495
|
isFullscreen: F.value,
|
|
468
|
-
isTooltip:
|
|
496
|
+
isTooltip: f.value.showTooltip,
|
|
469
497
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
470
498
|
chartElement: $.value,
|
|
471
499
|
position: e.value.userOptions.position,
|
|
472
500
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
473
|
-
isAnnotation:
|
|
501
|
+
isAnnotation: W.value,
|
|
474
502
|
callbacks: e.value.userOptions.callbacks,
|
|
475
503
|
printScale: e.value.userOptions.print.scale,
|
|
476
504
|
tableDialog: e.value.table.useDialog,
|
|
477
|
-
onToggleFullscreen:
|
|
478
|
-
onGeneratePdf: s(
|
|
479
|
-
onGenerateCsv:
|
|
505
|
+
onToggleFullscreen: De,
|
|
506
|
+
onGeneratePdf: s(Se),
|
|
507
|
+
onGenerateCsv: oe,
|
|
480
508
|
onGenerateImage: s(_e),
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
509
|
+
onGenerateSvg: Ne,
|
|
510
|
+
onToggleTable: Le,
|
|
511
|
+
onToggleTooltip: Be,
|
|
512
|
+
onToggleAnnotator: se,
|
|
484
513
|
style: D({
|
|
485
|
-
visibility: s(
|
|
514
|
+
visibility: s(xe) ? s(Q) ? "visible" : "hidden" : "visible"
|
|
486
515
|
})
|
|
487
|
-
},
|
|
516
|
+
}, Ue({ _: 2 }, [
|
|
488
517
|
t.$slots.menuIcon ? {
|
|
489
518
|
name: "menuIcon",
|
|
490
|
-
fn:
|
|
491
|
-
|
|
519
|
+
fn: h(({ isOpen: a, color: l }) => [
|
|
520
|
+
g(t.$slots, "menuIcon", R(z({ isOpen: a, color: l })), void 0, !0)
|
|
492
521
|
]),
|
|
493
522
|
key: "0"
|
|
494
523
|
} : void 0,
|
|
495
524
|
t.$slots.optionTooltip ? {
|
|
496
525
|
name: "optionTooltip",
|
|
497
|
-
fn:
|
|
498
|
-
|
|
526
|
+
fn: h(() => [
|
|
527
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
499
528
|
]),
|
|
500
529
|
key: "1"
|
|
501
530
|
} : void 0,
|
|
502
531
|
t.$slots.optionPdf ? {
|
|
503
532
|
name: "optionPdf",
|
|
504
|
-
fn:
|
|
505
|
-
|
|
533
|
+
fn: h(() => [
|
|
534
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
506
535
|
]),
|
|
507
536
|
key: "2"
|
|
508
537
|
} : void 0,
|
|
509
538
|
t.$slots.optionCsv ? {
|
|
510
539
|
name: "optionCsv",
|
|
511
|
-
fn:
|
|
512
|
-
|
|
540
|
+
fn: h(() => [
|
|
541
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
513
542
|
]),
|
|
514
543
|
key: "3"
|
|
515
544
|
} : void 0,
|
|
516
545
|
t.$slots.optionImg ? {
|
|
517
546
|
name: "optionImg",
|
|
518
|
-
fn:
|
|
519
|
-
|
|
547
|
+
fn: h(() => [
|
|
548
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
520
549
|
]),
|
|
521
550
|
key: "4"
|
|
522
551
|
} : void 0,
|
|
523
552
|
t.$slots.optionTable ? {
|
|
524
553
|
name: "optionTable",
|
|
525
|
-
fn:
|
|
526
|
-
|
|
554
|
+
fn: h(() => [
|
|
555
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
527
556
|
]),
|
|
528
557
|
key: "5"
|
|
529
558
|
} : void 0,
|
|
530
559
|
t.$slots.optionFullscreen ? {
|
|
531
560
|
name: "optionFullscreen",
|
|
532
|
-
fn:
|
|
533
|
-
|
|
561
|
+
fn: h(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
562
|
+
g(t.$slots, "optionFullscreen", R(z({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
534
563
|
]),
|
|
535
564
|
key: "6"
|
|
536
565
|
} : void 0,
|
|
537
566
|
t.$slots.optionAnnotator ? {
|
|
538
567
|
name: "optionAnnotator",
|
|
539
|
-
fn:
|
|
540
|
-
|
|
568
|
+
fn: h(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
569
|
+
g(t.$slots, "optionAnnotator", R(z({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
541
570
|
]),
|
|
542
571
|
key: "7"
|
|
543
572
|
} : void 0
|
|
544
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
545
|
-
(u(),
|
|
573
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
574
|
+
(u(), c("svg", {
|
|
546
575
|
ref_key: "svgRef",
|
|
547
|
-
ref:
|
|
548
|
-
xmlns: s(
|
|
549
|
-
class:
|
|
576
|
+
ref: G,
|
|
577
|
+
xmlns: s(Lt),
|
|
578
|
+
class: j({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: x.value }),
|
|
550
579
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
551
580
|
style: D(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
552
581
|
}, [
|
|
553
|
-
|
|
554
|
-
t.$slots["chart-background"] ? (u(),
|
|
582
|
+
ie(s(lt)),
|
|
583
|
+
t.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
555
584
|
key: 0,
|
|
556
585
|
x: 0,
|
|
557
586
|
y: 0,
|
|
@@ -561,11 +590,11 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
561
590
|
pointerEvents: "none"
|
|
562
591
|
}
|
|
563
592
|
}, [
|
|
564
|
-
|
|
565
|
-
], 8,
|
|
566
|
-
(u(!0),
|
|
567
|
-
cx:
|
|
568
|
-
cy:
|
|
593
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
594
|
+
], 8, na)) : p("", !0),
|
|
595
|
+
(u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
|
|
596
|
+
cx: d.value.centerX,
|
|
597
|
+
cy: d.value.centerY,
|
|
569
598
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
570
599
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
571
600
|
"stroke-width": P.value.gutter,
|
|
@@ -573,24 +602,24 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
573
602
|
"stroke-dasharray": a.path.bgDashArray,
|
|
574
603
|
"stroke-dashoffset": a.path.fullOffset,
|
|
575
604
|
"stroke-linecap": "round",
|
|
576
|
-
class:
|
|
605
|
+
class: j({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l }),
|
|
577
606
|
style: D({
|
|
578
607
|
transform: "rotate(-90deg)",
|
|
579
608
|
transformOrigin: "50% 50%",
|
|
580
609
|
transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
581
610
|
animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
582
611
|
})
|
|
583
|
-
}, null, 14,
|
|
584
|
-
(u(!0),
|
|
585
|
-
cx:
|
|
586
|
-
cy:
|
|
612
|
+
}, null, 14, sa))), 256)),
|
|
613
|
+
(u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
|
|
614
|
+
cx: d.value.centerX,
|
|
615
|
+
cy: d.value.centerY,
|
|
587
616
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
588
617
|
stroke: `${a.color}`,
|
|
589
618
|
"stroke-width": P.value.track,
|
|
590
619
|
fill: "none",
|
|
591
620
|
"stroke-dasharray": a.path.dashArray,
|
|
592
621
|
"stroke-dashoffset": a.path.dashOffset,
|
|
593
|
-
class:
|
|
622
|
+
class: j({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l }),
|
|
594
623
|
"stroke-linecap": "round",
|
|
595
624
|
style: D({
|
|
596
625
|
transform: "rotate(-90deg)",
|
|
@@ -598,7 +627,7 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
598
627
|
transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
599
628
|
animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
600
629
|
})
|
|
601
|
-
}, null, 14,
|
|
630
|
+
}, null, 14, ua))), 256)),
|
|
602
631
|
I("defs", null, [
|
|
603
632
|
I("filter", {
|
|
604
633
|
id: `blur_${y.value}`,
|
|
@@ -610,16 +639,16 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
610
639
|
I("feGaussianBlur", {
|
|
611
640
|
in: "SourceGraphic",
|
|
612
641
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
613
|
-
}, null, 8,
|
|
614
|
-
], 8,
|
|
642
|
+
}, null, 8, ia)
|
|
643
|
+
], 8, ra)
|
|
615
644
|
]),
|
|
616
|
-
e.value.style.chart.useGradient ? (u(),
|
|
645
|
+
e.value.style.chart.useGradient ? (u(), c("g", {
|
|
617
646
|
key: 1,
|
|
618
647
|
filter: `url(#blur_${y.value})`
|
|
619
648
|
}, [
|
|
620
|
-
(u(!0),
|
|
621
|
-
cx:
|
|
622
|
-
cy:
|
|
649
|
+
(u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
|
|
650
|
+
cx: d.value.centerX,
|
|
651
|
+
cy: d.value.centerY,
|
|
623
652
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
624
653
|
stroke: "white",
|
|
625
654
|
"stroke-width": P.value.track / 3,
|
|
@@ -633,11 +662,11 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
633
662
|
transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
634
663
|
animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
635
664
|
})
|
|
636
|
-
}, null, 12,
|
|
637
|
-
], 8,
|
|
638
|
-
(u(!0),
|
|
639
|
-
cx:
|
|
640
|
-
cy:
|
|
665
|
+
}, null, 12, va))), 256))
|
|
666
|
+
], 8, ca)) : p("", !0),
|
|
667
|
+
(u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("circle", {
|
|
668
|
+
cx: d.value.centerX,
|
|
669
|
+
cy: d.value.centerY,
|
|
641
670
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
642
671
|
stroke: "transparent",
|
|
643
672
|
"stroke-width": Math.max(P.value.track, P.value.gutter),
|
|
@@ -650,69 +679,69 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
650
679
|
transform: "rotate(-90deg)",
|
|
651
680
|
transformOrigin: "50% 50%"
|
|
652
681
|
},
|
|
653
|
-
onMouseenter: (
|
|
682
|
+
onMouseenter: (v) => ze({
|
|
654
683
|
datapoint: a,
|
|
655
684
|
show: !0,
|
|
656
685
|
seriesIndex: l
|
|
657
686
|
}),
|
|
658
|
-
onMouseleave: (
|
|
659
|
-
onClick: (
|
|
660
|
-
}, null, 40,
|
|
661
|
-
e.value.style.chart.layout.labels.show ? (u(),
|
|
662
|
-
(u(!0),
|
|
663
|
-
onMouseenter: (
|
|
687
|
+
onMouseleave: (v) => Re({ datapoint: a }),
|
|
688
|
+
onClick: (v) => Me({ datapoint: a })
|
|
689
|
+
}, null, 40, da))), 256)),
|
|
690
|
+
e.value.style.chart.layout.labels.show ? (u(), c("g", ha, [
|
|
691
|
+
(u(!0), c(Y, null, X(T.value, (a, l) => (u(), c("g", {
|
|
692
|
+
onMouseenter: (v) => ze({
|
|
664
693
|
datapoint: a,
|
|
665
694
|
show: !0,
|
|
666
695
|
seriesIndex: l
|
|
667
696
|
}),
|
|
668
|
-
onMouseleave: (
|
|
669
|
-
onClick: (
|
|
697
|
+
onMouseleave: (v) => Re({ datapoint: a }),
|
|
698
|
+
onClick: (v) => Me({ datapoint: a })
|
|
670
699
|
}, [
|
|
671
|
-
b.value.includes(a.id) ?
|
|
700
|
+
b.value.includes(a.id) ? p("", !0) : (u(), c("text", {
|
|
672
701
|
key: 0,
|
|
673
702
|
class: "vue-ui-onion-label",
|
|
674
703
|
x: n.value.width / 2 - P.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
675
704
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
676
705
|
"text-anchor": "end",
|
|
677
706
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
678
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
707
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
679
708
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
680
|
-
},
|
|
709
|
+
}, L(a.name ? a.name + ": " : "") + " " + L(e.value.style.chart.layout.labels.percentage.show ? s(B)({
|
|
681
710
|
v: a.percentage,
|
|
682
711
|
s: "%",
|
|
683
712
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
684
|
-
}) : "") + " " +
|
|
713
|
+
}) : "") + " " + L(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(ve)(
|
|
685
714
|
e.value.style.chart.layout.labels.value.formatter,
|
|
686
715
|
a.value,
|
|
687
|
-
s(
|
|
716
|
+
s(B)({
|
|
688
717
|
p: a.prefix || "",
|
|
689
718
|
v: a.value || 0,
|
|
690
719
|
s: a.suffix || "",
|
|
691
720
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
692
721
|
}),
|
|
693
722
|
{ datapoint: a, seriesIndex: l }
|
|
694
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(
|
|
723
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(ve)(
|
|
695
724
|
e.value.style.chart.layout.labels.value.formatter,
|
|
696
725
|
a.value,
|
|
697
|
-
s(
|
|
726
|
+
s(B)({
|
|
698
727
|
p: a.prefix || "",
|
|
699
728
|
v: a.value || 0,
|
|
700
729
|
s: a.suffix || "",
|
|
701
730
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
702
731
|
}),
|
|
703
732
|
{ datapoint: a, seriesIndex: l }
|
|
704
|
-
)})` : ""}`), 9,
|
|
705
|
-
], 40,
|
|
706
|
-
])) :
|
|
707
|
-
|
|
708
|
-
], 14,
|
|
709
|
-
t.$slots.watermark ? (u(),
|
|
710
|
-
|
|
711
|
-
])) :
|
|
733
|
+
)})` : ""}`), 9, pa))
|
|
734
|
+
], 40, ga))), 256))
|
|
735
|
+
])) : p("", !0),
|
|
736
|
+
g(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
737
|
+
], 14, oa)),
|
|
738
|
+
t.$slots.watermark ? (u(), c("div", fa, [
|
|
739
|
+
g(t.$slots, "watermark", R(z({ isPrinting: s(Te) || s(Oe) })), void 0, !0)
|
|
740
|
+
])) : p("", !0),
|
|
712
741
|
I("div", {
|
|
713
742
|
id: `legend-bottom-${y.value}`
|
|
714
|
-
}, null, 8,
|
|
715
|
-
|
|
743
|
+
}, null, 8, ma),
|
|
744
|
+
we.value ? (u(), A(At, {
|
|
716
745
|
key: 5,
|
|
717
746
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
718
747
|
}, [
|
|
@@ -720,37 +749,37 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
720
749
|
ref_key: "chartLegend",
|
|
721
750
|
ref: pe
|
|
722
751
|
}, [
|
|
723
|
-
e.value.style.chart.legend.show ? (u(),
|
|
724
|
-
key: `legend_${
|
|
725
|
-
legendSet:
|
|
726
|
-
config:
|
|
727
|
-
onClickMarker: o[0] || (o[0] = ({ legend: a }) =>
|
|
752
|
+
e.value.style.chart.legend.show ? (u(), A(Zt, {
|
|
753
|
+
key: `legend_${ke.value}`,
|
|
754
|
+
legendSet: te.value,
|
|
755
|
+
config: gt.value,
|
|
756
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => Fe(a.id))
|
|
728
757
|
}, {
|
|
729
|
-
item:
|
|
730
|
-
s(k) ?
|
|
758
|
+
item: h(({ legend: a }) => [
|
|
759
|
+
s(k) ? p("", !0) : (u(), c("div", {
|
|
731
760
|
key: 0,
|
|
732
761
|
"data-cy-legend-item": "",
|
|
733
762
|
onClick: (l) => a.segregate(),
|
|
734
763
|
style: D(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
|
|
735
|
-
},
|
|
764
|
+
}, L(a.display), 13, ya))
|
|
736
765
|
]),
|
|
737
766
|
_: 1
|
|
738
|
-
}, 8, ["legendSet", "config"])) :
|
|
767
|
+
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
739
768
|
key: 1,
|
|
740
|
-
legend:
|
|
769
|
+
legend: te.value
|
|
741
770
|
}, void 0, !0)
|
|
742
771
|
], 512)
|
|
743
|
-
], 8, ["to"])) :
|
|
744
|
-
t.$slots.source ? (u(),
|
|
772
|
+
], 8, ["to"])) : p("", !0),
|
|
773
|
+
t.$slots.source ? (u(), c("div", {
|
|
745
774
|
key: 6,
|
|
746
775
|
ref_key: "source",
|
|
747
776
|
ref: fe,
|
|
748
777
|
dir: "auto"
|
|
749
778
|
}, [
|
|
750
|
-
|
|
751
|
-
], 512)) :
|
|
752
|
-
|
|
753
|
-
show:
|
|
779
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
780
|
+
], 512)) : p("", !0),
|
|
781
|
+
ie(s(Ke), {
|
|
782
|
+
show: f.value.showTooltip && q.value,
|
|
754
783
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
755
784
|
color: e.value.style.chart.tooltip.color,
|
|
756
785
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -761,43 +790,43 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
761
790
|
position: e.value.style.chart.tooltip.position,
|
|
762
791
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
763
792
|
parent: $.value,
|
|
764
|
-
content:
|
|
793
|
+
content: J.value,
|
|
765
794
|
isFullscreen: F.value,
|
|
766
|
-
isCustom: s(
|
|
795
|
+
isCustom: s(He)(e.value.style.chart.tooltip.customFormat),
|
|
767
796
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
768
797
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
769
798
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
770
799
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
771
800
|
}, {
|
|
772
|
-
"tooltip-before":
|
|
773
|
-
|
|
801
|
+
"tooltip-before": h(() => [
|
|
802
|
+
g(t.$slots, "tooltip-before", R(z({ ...ne.value })), void 0, !0)
|
|
774
803
|
]),
|
|
775
|
-
"tooltip-after":
|
|
776
|
-
|
|
804
|
+
"tooltip-after": h(() => [
|
|
805
|
+
g(t.$slots, "tooltip-after", R(z({ ...ne.value })), void 0, !0)
|
|
777
806
|
]),
|
|
778
807
|
_: 3
|
|
779
808
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
780
|
-
|
|
809
|
+
de.value && e.value.userOptions.buttons.table ? (u(), A(It(U.value.component), Pt({ key: 7 }, U.value.props, {
|
|
781
810
|
ref_key: "tableUnit",
|
|
782
|
-
ref:
|
|
783
|
-
onClose: o[3] || (o[3] = (a) =>
|
|
784
|
-
}),
|
|
785
|
-
content:
|
|
786
|
-
(u(),
|
|
787
|
-
key: `table_${
|
|
788
|
-
colNames:
|
|
789
|
-
head:
|
|
790
|
-
body:
|
|
791
|
-
config:
|
|
792
|
-
title: e.value.table.useDialog ? "" :
|
|
811
|
+
ref: N,
|
|
812
|
+
onClose: o[3] || (o[3] = (a) => f.value.showTable = !1)
|
|
813
|
+
}), Ue({
|
|
814
|
+
content: h(() => [
|
|
815
|
+
(u(), A(s(et), {
|
|
816
|
+
key: `table_${be.value}`,
|
|
817
|
+
colNames: H.value.colNames,
|
|
818
|
+
head: H.value.head,
|
|
819
|
+
body: H.value.body,
|
|
820
|
+
config: H.value.config,
|
|
821
|
+
title: e.value.table.useDialog ? "" : U.value.title,
|
|
793
822
|
withCloseButton: !e.value.table.useDialog,
|
|
794
|
-
onClose: o[2] || (o[2] = (a) =>
|
|
823
|
+
onClose: o[2] || (o[2] = (a) => f.value.showTable = !1)
|
|
795
824
|
}, {
|
|
796
|
-
th:
|
|
797
|
-
|
|
825
|
+
th: h(({ th: a }) => [
|
|
826
|
+
Ee(L(a), 1)
|
|
798
827
|
]),
|
|
799
|
-
td:
|
|
800
|
-
I("div", { innerHTML: a }, null, 8,
|
|
828
|
+
td: h(({ td: a }) => [
|
|
829
|
+
I("div", { innerHTML: a }, null, 8, ba)
|
|
801
830
|
]),
|
|
802
831
|
_: 1
|
|
803
832
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -806,32 +835,32 @@ const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "heigh
|
|
|
806
835
|
}, [
|
|
807
836
|
e.value.table.useDialog ? {
|
|
808
837
|
name: "title",
|
|
809
|
-
fn:
|
|
810
|
-
|
|
838
|
+
fn: h(() => [
|
|
839
|
+
Ee(L(U.value.title), 1)
|
|
811
840
|
]),
|
|
812
841
|
key: "0"
|
|
813
842
|
} : void 0,
|
|
814
843
|
e.value.table.useDialog ? {
|
|
815
844
|
name: "actions",
|
|
816
|
-
fn:
|
|
845
|
+
fn: h(() => [
|
|
817
846
|
I("button", {
|
|
818
847
|
tabindex: "0",
|
|
819
848
|
class: "vue-ui-user-options-button",
|
|
820
|
-
onClick: o[1] || (o[1] = (a) =>
|
|
849
|
+
onClick: o[1] || (o[1] = (a) => oe(e.value.userOptions.callbacks.csv))
|
|
821
850
|
}, [
|
|
822
|
-
|
|
851
|
+
ie(s(Qe), {
|
|
823
852
|
name: "excel",
|
|
824
|
-
stroke:
|
|
853
|
+
stroke: U.value.props.color
|
|
825
854
|
}, null, 8, ["stroke"])
|
|
826
855
|
])
|
|
827
856
|
]),
|
|
828
857
|
key: "1"
|
|
829
858
|
} : void 0
|
|
830
|
-
]), 1040)) :
|
|
831
|
-
s(k) ? (u(),
|
|
832
|
-
], 46,
|
|
859
|
+
]), 1040)) : p("", !0),
|
|
860
|
+
s(k) ? (u(), A(Gt, { key: 8 })) : p("", !0)
|
|
861
|
+
], 46, aa));
|
|
833
862
|
}
|
|
834
|
-
},
|
|
863
|
+
}, za = /* @__PURE__ */ ta(ka, [["__scopeId", "data-v-75c2d02d"]]);
|
|
835
864
|
export {
|
|
836
|
-
|
|
865
|
+
za as default
|
|
837
866
|
};
|