vue-data-ui 3.9.1 → 3.9.3
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/{BaseDraggableDialog-B6wHUQPl.js → BaseDraggableDialog-n3raFtf2.js} +1 -1
- package/dist/{BaseIcon-CQaciFyv.js → BaseIcon-Bcm8I1fZ.js} +3 -2
- package/dist/{BaseZoomControls-AMmyXEyM.js → BaseZoomControls-gNf811C7.js} +45 -34
- package/dist/{ColorPicker-nZHFmXUV.js → ColorPicker-C4ClF-aL.js} +1 -1
- package/dist/{DataTable-C8cgUUyx.js → DataTable-DFcqksx2.js} +1 -1
- package/dist/{NonSvgPenAndPaper-CVjActC2.js → NonSvgPenAndPaper-D44f2zrW.js} +2 -2
- package/dist/{PackageVersion-CIhhY-aH.js → PackageVersion-Cx3U3jgV.js} +1 -1
- package/dist/{PenAndPaper-DtbXViIl.js → PenAndPaper-Cjiyv0O9.js} +2 -2
- package/dist/{Slicer-DtlEs698.js → Slicer-DFcLRKwb.js} +1 -1
- package/dist/{SlicerPreview-DmzwkUJ4.js → SlicerPreview-Bhjrz2jx.js} +1 -1
- package/dist/{Title-osQjQYc-.js → Title-Bf2WqM40.js} +1 -1
- package/dist/{UserOptions-DeiXBImO.js → UserOptions-DKK-Opvk.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-dag.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-geo.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-stackline.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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -23
- package/dist/{useNestedProp-BeKjhKny.js → useNestedProp-DjZhR3_5.js} +11 -0
- package/dist/{vue-data-ui-bVCjAfu8.js → vue-data-ui-B7Axn7yb.js} +67 -67
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-Bs1SXAWI.js → vue-ui-3d-bar-BW-lnKGl.js} +3 -3
- package/dist/{vue-ui-accordion-nCaoOi6x.js → vue-ui-accordion-BbkkniuF.js} +2 -2
- package/dist/{vue-ui-age-pyramid-D25YLhPh.js → vue-ui-age-pyramid-D3wuUYw9.js} +3 -3
- package/dist/{vue-ui-annotator-3wBuXKBn.js → vue-ui-annotator-BNTBBxok.js} +4 -4
- package/dist/{vue-ui-bullet-XX1owNiy.js → vue-ui-bullet-D6eDCcCM.js} +3 -3
- package/dist/{vue-ui-candlestick-CbKnRXLs.js → vue-ui-candlestick-DnDsrru6.js} +4 -4
- package/dist/{vue-ui-carousel-table-B95eZm5f.js → vue-ui-carousel-table-CSnQrLGZ.js} +2 -2
- package/dist/{vue-ui-chestnut-D6B8mFCb.js → vue-ui-chestnut-CNeF97-x.js} +2 -2
- package/dist/{vue-ui-chord-C-Fe5nTC.js → vue-ui-chord-IHMYgU6P.js} +3 -3
- package/dist/{vue-ui-circle-pack-DbGOEbwG.js → vue-ui-circle-pack-CX-PKwMX.js} +3 -3
- package/dist/{vue-ui-cursor-D99JZotY.js → vue-ui-cursor-DttTxd7y.js} +2 -2
- package/dist/{vue-ui-dag-D7R60BRH.js → vue-ui-dag-BMXgf925.js} +4 -4
- package/dist/{vue-ui-dashboard-Dxhaj5E6.js → vue-ui-dashboard-Diw4ce8Q.js} +66 -66
- package/dist/{vue-ui-digits-D2zs8kUV.js → vue-ui-digits-SXDDgXdv.js} +1 -1
- package/dist/{vue-ui-donut-CbHumHFw.js → vue-ui-donut-C5YmHwzL.js} +234 -234
- package/dist/{vue-ui-donut-evolution--rlD_bzN.js → vue-ui-donut-evolution-DDj2bBEY.js} +4 -4
- package/dist/{vue-ui-dumbbell-Bak094f4.js → vue-ui-dumbbell-CL2zfaa9.js} +3 -3
- package/dist/{vue-ui-flow-BU_3xWDD.js → vue-ui-flow-B9AhZW00.js} +3 -3
- package/dist/{vue-ui-funnel-aOfTIY8A.js → vue-ui-funnel-BfEAIZTb.js} +3 -3
- package/dist/{vue-ui-galaxy-CFnCDW6L.js → vue-ui-galaxy-YKJJZuMK.js} +3 -3
- package/dist/{vue-ui-gauge-Te_U6eYB.js → vue-ui-gauge-CZq9JsEo.js} +3 -3
- package/dist/{vue-ui-geo-qkJZph6o.js → vue-ui-geo-B6PyEQr0.js} +4 -4
- package/dist/{vue-ui-gizmo-BKGL0hrf.js → vue-ui-gizmo-HUo5_TOP.js} +2 -2
- package/dist/{vue-ui-heatmap-CxupvmxZ.js → vue-ui-heatmap-J8KhjPqj.js} +4 -4
- package/dist/{vue-ui-history-plot-CRNGUd--.js → vue-ui-history-plot-C5kQV6LA.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-GXt7JlrG.js → vue-ui-horizontal-bar-B7xXn1ex.js} +8 -8
- package/dist/{vue-ui-kpi-C_sejZsA.js → vue-ui-kpi-P-XmbJWS.js} +2 -2
- package/dist/{vue-ui-mini-loader-BEBv2BjZ.js → vue-ui-mini-loader-Ba1L_dXD.js} +1 -1
- package/dist/{vue-ui-molecule-D5MQWvsl.js → vue-ui-molecule-CZmwGy3H.js} +2 -2
- package/dist/{vue-ui-mood-radar-DkwW-6_J.js → vue-ui-mood-radar-BHuAyycM.js} +3 -3
- package/dist/{vue-ui-nested-donuts-Cl2CtNHY.js → vue-ui-nested-donuts-nNoaEbow.js} +3 -3
- package/dist/{vue-ui-onion-BbTd3-9h.js → vue-ui-onion-BshL66Mw.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-CAuAUcJe.js → vue-ui-parallel-coordinate-plot-CJ3kM13A.js} +3 -3
- package/dist/{vue-ui-quadrant-CiQOwv_x.js → vue-ui-quadrant-Dy1Jv-kw.js} +3 -3
- package/dist/{vue-ui-quick-chart-Db_p50n_.js → vue-ui-quick-chart-BbboXq-a.js} +3 -3
- package/dist/{vue-ui-radar-Cq0FzSuo.js → vue-ui-radar-B5hEh8N4.js} +3 -3
- package/dist/{vue-ui-rating-Ci09laQN.js → vue-ui-rating-Dz4fQoXn.js} +1 -1
- package/dist/{vue-ui-relation-circle-0TKhiI54.js → vue-ui-relation-circle-B0_y669X.js} +3 -3
- package/dist/{vue-ui-ridgeline-BpKSoxMw.js → vue-ui-ridgeline-BI0y8eXQ.js} +3 -3
- package/dist/{vue-ui-rings-vn5kZZRA.js → vue-ui-rings-DrUtCdK6.js} +3 -3
- package/dist/{vue-ui-scatter-CF_h6seO.js → vue-ui-scatter-RNbQn_9g.js} +3 -3
- package/dist/{vue-ui-skeleton-pcNjmtIm.js → vue-ui-skeleton-CC8Hpc0I.js} +2 -2
- package/dist/{vue-ui-smiley-BW0ksZH3.js → vue-ui-smiley-sVz4LzSA.js} +1 -1
- package/dist/{vue-ui-spark-trend-Gwr_mhU3.js → vue-ui-spark-trend-rmjin0iU.js} +2 -2
- package/dist/{vue-ui-sparkbar-Ti79zXlf.js → vue-ui-sparkbar-CLH2uuJe.js} +2 -2
- package/dist/{vue-ui-sparkgauge-Cw076CAR.js → vue-ui-sparkgauge-CoJpHwni.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DAQatxbk.js → vue-ui-sparkhistogram-Q3jR_iUb.js} +2 -2
- package/dist/{vue-ui-sparkline-DIFjHdAd.js → vue-ui-sparkline-cvuMrbcv.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-CV48OIlq.js → vue-ui-sparkstackbar-DPJL9KSc.js} +2 -2
- package/dist/{vue-ui-stackbar-iNQuoaFJ.js → vue-ui-stackbar-CFXVCz6S.js} +4 -4
- package/dist/{vue-ui-stackline-Ba_T3bRL.js → vue-ui-stackline-DK7j5aaa.js} +4 -4
- package/dist/{vue-ui-strip-plot-DQHiecxa.js → vue-ui-strip-plot-DTpf71XO.js} +3 -3
- package/dist/{vue-ui-table-BNvnkqgr.js → vue-ui-table-C3f-J0L6.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BecLm3ow.js → vue-ui-table-heatmap-7lER15Z2.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Z9G-8VPL.js → vue-ui-table-sparkline-CLNhjUOy.js} +2 -2
- package/dist/{vue-ui-thermometer-NJ6mFchh.js → vue-ui-thermometer-rEu0nnWc.js} +3 -3
- package/dist/{vue-ui-timer-BzWAHC6N.js → vue-ui-timer-CTuT13zQ.js} +4 -4
- package/dist/{vue-ui-tiremarks-DUVReJRZ.js → vue-ui-tiremarks-CxfGnFGL.js} +3 -3
- package/dist/{vue-ui-treemap-pLbU0XEi.js → vue-ui-treemap-DU8_UnvP.js} +4 -4
- package/dist/{vue-ui-waffle-QkCm05fN.js → vue-ui-waffle-CCTw3K5R.js} +3 -3
- package/dist/{vue-ui-wheel-DaRAOHXK.js → vue-ui-wheel-DwmBHPVq.js} +3 -3
- package/dist/vue-ui-word-cloud-ByIMPclD.js +1433 -0
- package/dist/{vue-ui-world-BS0oWBVp.js → vue-ui-world-Cvrw9DCl.js} +2 -2
- package/dist/{vue-ui-xy-l6mUNMUu.js → vue-ui-xy-CMBkDzNs.js} +5 -5
- package/dist/{vue-ui-xy-canvas-CLoA6DTt.js → vue-ui-xy-canvas-C1ZHlQ3Y.js} +6 -6
- package/package.json +1 -1
- package/dist/vue-ui-word-cloud-CEIaALCH.js +0 -1419
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as pe, useSlots as ua, computed as f, shallowRef as
|
|
2
|
-
import { o as al, g as
|
|
1
|
+
import { defineAsyncComponent as pe, useSlots as ua, computed as f, shallowRef as me, ref as w, onMounted as el, onBeforeUnmount as tl, toRefs as ra, watch as Pe, createElementBlock as i, openBlock as s, normalizeStyle as M, normalizeClass as ft, createBlock as we, createCommentVNode as d, renderSlot as b, createElementVNode as y, createVNode as qe, unref as r, withCtx as C, normalizeProps as Z, guardReactiveProps as ee, createSlots as yt, Fragment as A, renderList as H, mergeProps as gt, toDisplayString as ne, withDirectives as Qe, vShow as Je, Teleport as ia, resolveDynamicComponent as ca, createTextVNode as ll, nextTick as va } from "vue";
|
|
2
|
+
import { o as al, g as bt, k as da, c as ha, t as fa, j as ya, T as ga, l as ol, p as _e, a as q, d as G, a2 as nl, a6 as ba, a7 as pa, a5 as x, a4 as ce, X as ma, s as Ke, h as wa, a3 as ka, a8 as L, a9 as sl, f as Ca, i as xa, a0 as pt, u as $a, q as Aa, x as _a, aa as ul } from "./lib-_nVZfi2t.js";
|
|
3
3
|
import { t as Ta, u as Sa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ma, a as mt } from "./useNestedProp-
|
|
4
|
+
import { u as Ma, a as mt } from "./useNestedProp-DjZhR3_5.js";
|
|
5
5
|
import { u as Pa } from "./usePrinter-DXIMGR61.js";
|
|
6
6
|
import { u as Fa, B as La } from "./BaseScanner-BMpwQAfz.js";
|
|
7
7
|
import { u as Ia } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
8
|
+
import { u as Ya } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Da } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as za } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import Ba from "./img-C5q4A7ke.js";
|
|
12
12
|
import { _ as Xa } from "./Shape-BuBasQnO.js";
|
|
13
|
-
import Oa from "./Title-
|
|
13
|
+
import Oa from "./Title-Bf2WqM40.js";
|
|
14
14
|
import Ea from "./Legend-PhhPyrZ0.js";
|
|
15
15
|
import { _ as Na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, il = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, cl = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, vl = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#61747E" } }, average: { color: "#8A9892", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#AACCAA" }, name: { color: "#99CC99" }, hollow: { total: { color: "#99CC99", value: { color: "#AACCAA" } }, average: { color: "#99CC99", value: { color: "#AACCAA" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, hl = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#A0AC94" } }, average: { color: "#8A9892", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, fl = {
|
|
@@ -30,7 +30,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
30
30
|
default: fl,
|
|
31
31
|
hack: dl,
|
|
32
32
|
zen: hl
|
|
33
|
-
}, Symbol.toStringTag, { value: "Module" })), Va = ["id"], Ra = ["id"], Ha = ["xmlns", "viewBox"], Ga = ["width", "height"], Ua = { key: 1 }, ja = ["id"], Wa = ["stop-color"], qa = ["offset", "stop-color"], Qa = ["offset", "stop-color"], Ja = ["stop-color"], Ka = { key: 2 }, Za = ["id", "cx", "cy"], eo = ["stop-color", "stop-opacity"], to = ["stop-color"], lo = ["id"], ao = ["id"], oo = ["id"], no = ["flood-color"], so = ["id"], uo = ["flood-color"], ro = ["d", "stroke", "filter"], io = ["d", "stroke", "filter"], co = ["cx", "cy", "r", "fill", "filter"], vo = { key: 6 }, ho = ["stroke", "d"], fo = ["d", "fill", "stroke", "stroke-width", "filter"], yo = { key: 0 }, go = ["d", "fill", "stroke", "stroke-width", "filter"],
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), Va = ["id"], Ra = ["id"], Ha = ["xmlns", "viewBox"], Ga = ["width", "height"], Ua = { key: 1 }, ja = ["id"], Wa = ["stop-color"], qa = ["offset", "stop-color"], Qa = ["offset", "stop-color"], Ja = ["stop-color"], Ka = { key: 2 }, Za = ["id", "cx", "cy"], eo = ["stop-color", "stop-opacity"], to = ["stop-color"], lo = ["id"], ao = ["id"], oo = ["id"], no = ["flood-color"], so = ["id"], uo = ["flood-color"], ro = ["d", "stroke", "filter"], io = ["d", "stroke", "filter"], co = ["cx", "cy", "r", "fill", "filter"], vo = { key: 6 }, ho = ["stroke", "d"], fo = ["d", "fill", "stroke", "stroke-width", "filter"], yo = { key: 0 }, go = ["d", "fill", "stroke", "stroke-width", "filter"], bo = { key: 0 }, po = ["stroke", "d"], mo = { key: 0 }, wo = ["d", "stroke", "stroke-width", "filter"], ko = { key: 1 }, Co = ["d", "fill", "stroke", "stroke-width", "filter"], xo = ["d", "fill", "stroke", "stroke-width", "filter"], $o = { key: 1 }, Ao = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], _o = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], To = { key: 0 }, So = ["d", "fill", "stroke", "stroke-width"], Mo = ["cx", "cy", "r", "stroke"], Po = ["cx", "cy", "r", "fill"], Fo = ["cx", "cy", "r"], Lo = { key: 0 }, Io = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Yo = { key: 1 }, Do = ["cx", "cy", "r"], zo = ["x", "y", "fill", "font-size"], Bo = ["x", "y", "fill", "font-size"], Xo = ["x", "y", "fill", "font-size"], Oo = ["x", "y", "fill", "font-size"], Eo = ["filter", "opacity"], No = { key: 0 }, Vo = ["x", "y"], Ro = { key: 1 }, Ho = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Go = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Wo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], qo = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Ko = { key: 2 }, Zo = ["x", "y", "width"], en = ["x", "y", "width"], tn = {
|
|
34
34
|
key: 4,
|
|
35
35
|
class: "vue-data-ui-watermark"
|
|
36
36
|
}, ln = ["id"], an = ["onClick"], on = {
|
|
@@ -54,25 +54,25 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
54
54
|
},
|
|
55
55
|
emits: ["selectLegend", "selectDatapoint"],
|
|
56
56
|
setup(wt, { expose: yl, emit: gl }) {
|
|
57
|
-
const
|
|
57
|
+
const bl = pe(() => import("./Tooltip-l2pmtXwi.js")), pl = pe(() => import("./BaseIcon-Bcm8I1fZ.js")), ml = pe(() => import("./vue-ui-accordion-BbkkniuF.js")), wl = pe(() => import("./DataTable-DFcqksx2.js")), kl = pe(() => import("./PenAndPaper-Cjiyv0O9.js")), Cl = pe(() => import("./UserOptions-DKK-Opvk.js")), xl = pe(() => import("./PackageVersion-Cx3U3jgV.js")), $l = pe(() => import("./BaseDraggableDialog-n3raFtf2.js")), { vue_ui_donut: Al } = Ma(), { isThemeValid: _l, warnInvalidTheme: Tl } = Ya(), Sl = ua(), _ = wt, Oe = f({
|
|
58
58
|
get() {
|
|
59
59
|
return !!_.dataset && _.dataset.length;
|
|
60
60
|
},
|
|
61
61
|
set(l) {
|
|
62
62
|
return l;
|
|
63
63
|
}
|
|
64
|
-
}), te =
|
|
64
|
+
}), te = me(null), Ee = w(null), Ml = w(null), Pl = w(null), kt = me(null), Ct = me(null), ve = me(null), Te = me(null), xt = me(null), $t = me(null), At = w(0), _t = w(0), Tt = w(0), St = w(!1), Fe = w(null), Ze = w(null), Se = f({
|
|
65
65
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
66
66
|
set: (l) => l
|
|
67
67
|
}), E = f({
|
|
68
68
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
69
69
|
set: (l) => l
|
|
70
|
-
}),
|
|
70
|
+
}), le = f({
|
|
71
71
|
get: () => e.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
72
72
|
set: (l) => l
|
|
73
73
|
});
|
|
74
74
|
let et = !1;
|
|
75
|
-
const
|
|
75
|
+
const de = () => {
|
|
76
76
|
!e.value.autoSize || et || (et = !0, requestAnimationFrame(() => {
|
|
77
77
|
et = !1;
|
|
78
78
|
const l = e.value, o = Ee.value, t = ke.value;
|
|
@@ -94,26 +94,26 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
94
94
|
selector: ".vue-data-ui-datalabel-inline",
|
|
95
95
|
baseSize: l.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
96
96
|
minSize: l.style.chart.layout.labels.name.minFontSize,
|
|
97
|
-
sizeRef:
|
|
97
|
+
sizeRef: le
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
|
-
S.map((P) => o.querySelectorAll(P.selector).length).reduce((P, X) => P + X, 0) !== 0 && S.forEach(({ selector: P, baseSize: X, minSize:
|
|
100
|
+
S.map((P) => o.querySelectorAll(P.selector).length).reduce((P, X) => P + X, 0) !== 0 && S.forEach(({ selector: P, baseSize: X, minSize: ge, sizeRef: be }) => {
|
|
101
101
|
o.querySelectorAll(P).forEach((dt) => {
|
|
102
102
|
const Xe = Ca({
|
|
103
103
|
el: dt,
|
|
104
104
|
bounds: $,
|
|
105
105
|
currentFontSize: X,
|
|
106
|
-
minFontSize:
|
|
106
|
+
minFontSize: ge,
|
|
107
107
|
attempts: 200,
|
|
108
108
|
padding: 1
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
be.value = Xe;
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
115
115
|
el(async () => {
|
|
116
|
-
St.value = !0, Mt(), requestAnimationFrame(
|
|
116
|
+
St.value = !0, Mt(), requestAnimationFrame(de);
|
|
117
117
|
});
|
|
118
118
|
let tt;
|
|
119
119
|
el(() => {
|
|
@@ -121,7 +121,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
121
121
|
for (const o of l) {
|
|
122
122
|
const { width: t, height: a } = o.contentRect;
|
|
123
123
|
if (t > 0 && a > 0) {
|
|
124
|
-
|
|
124
|
+
de();
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -129,11 +129,11 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
129
129
|
}), tl(() => {
|
|
130
130
|
tt?.disconnect();
|
|
131
131
|
}), tl(() => {
|
|
132
|
-
|
|
132
|
+
ve.value && (Te.value && ve.value.unobserve(Te.value), ve.value.disconnect());
|
|
133
133
|
});
|
|
134
134
|
const lt = f(() => !!e.value.debug);
|
|
135
135
|
function Mt() {
|
|
136
|
-
if (al(_.dataset) ? (
|
|
136
|
+
if (al(_.dataset) ? (bt({
|
|
137
137
|
componentName: "VueUiDonut",
|
|
138
138
|
type: "dataset",
|
|
139
139
|
debug: lt.value
|
|
@@ -142,7 +142,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
142
142
|
datasetObject: l,
|
|
143
143
|
requiredAttributes: ["name", "values"]
|
|
144
144
|
}).forEach((t) => {
|
|
145
|
-
|
|
145
|
+
bt({
|
|
146
146
|
componentName: "VueUiDonut",
|
|
147
147
|
type: "datasetSerieAttribute",
|
|
148
148
|
property: t,
|
|
@@ -151,7 +151,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
151
151
|
}), Oe.value = !1, Ve.value = !0;
|
|
152
152
|
});
|
|
153
153
|
}), _.dataset.forEach((l, o) => {
|
|
154
|
-
(!l.name || l.name === "") &&
|
|
154
|
+
(!l.name || l.name === "") && bt({
|
|
155
155
|
componentName: "VueUiDonut",
|
|
156
156
|
type: "datasetAttributeEmpty",
|
|
157
157
|
property: "name",
|
|
@@ -169,13 +169,13 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
169
169
|
padding: e.value.autoSize ? void 0 : Re.value
|
|
170
170
|
});
|
|
171
171
|
requestAnimationFrame(() => {
|
|
172
|
-
n.value.width = o, n.value.height = t,
|
|
172
|
+
n.value.width = o, n.value.height = t, de();
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
|
-
|
|
175
|
+
ve.value && (Te.value && ve.value.unobserve(Te.value), ve.value.disconnect()), ve.value = new ResizeObserver(l), Te.value = te.value.parentNode, ve.value.observe(Te.value);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const k = w(ha()), at = w(!1), ot = w(""),
|
|
178
|
+
const k = w(ha()), at = w(!1), ot = w(""), ae = w(null), Pt = w(0);
|
|
179
179
|
function nt() {
|
|
180
180
|
const l = mt({
|
|
181
181
|
userConfig: _.config,
|
|
@@ -200,7 +200,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
200
200
|
customPalette: l.customPalette.length ? l.customPalette : xa[t] || _e
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
return _.config &&
|
|
203
|
+
return _.config && pt(_.config, "events.datapointEnter") ? o.events.datapointEnter = _.config.events.datapointEnter : o.events.datapointEnter = null, _.config && pt(_.config, "events.datapointLeave") ? o.events.datapointLeave = _.config.events.datapointLeave : o.events.datapointLeave = null, _.config && pt(_.config, "events.datapointClick") ? o.events.datapointClick = _.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
204
204
|
}
|
|
205
205
|
const e = w(nt()), { loading: Ne, FINAL_DATASET: Le, manualLoading: Ve, skeletonDataset: Fl } = Fa({
|
|
206
206
|
...ra(_),
|
|
@@ -261,7 +261,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
261
261
|
}
|
|
262
262
|
})
|
|
263
263
|
}), B = w(!0), Ie = w(0), Ft = w(!1);
|
|
264
|
-
let
|
|
264
|
+
let Ye = null;
|
|
265
265
|
function Ll(l = 1e3) {
|
|
266
266
|
return new Promise((o) => {
|
|
267
267
|
const t = performance.now();
|
|
@@ -270,9 +270,9 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
270
270
|
c / l,
|
|
271
271
|
1
|
|
272
272
|
), $ = ul(g);
|
|
273
|
-
Ie.value = $, g < 1 ?
|
|
273
|
+
Ie.value = $, g < 1 ? Ye = requestAnimationFrame(a) : (Ie.value = 1, Ye = null, o());
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
Ye !== null && cancelAnimationFrame(Ye), Ie.value = 0, Ye = requestAnimationFrame(a);
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
Pe(
|
|
@@ -291,11 +291,11 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
291
291
|
},
|
|
292
292
|
{ immediate: !0 }
|
|
293
293
|
);
|
|
294
|
-
const { userOptionsVisible: st, setUserOptionsVisibility: Lt, keepUserOptionState: It } =
|
|
294
|
+
const { userOptionsVisible: st, setUserOptionsVisibility: Lt, keepUserOptionState: It } = Da({ config: e.value }), { svgRef: ke } = za({ config: e.value.style.chart.title });
|
|
295
295
|
function Il() {
|
|
296
296
|
Lt(!0);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Yl() {
|
|
299
299
|
Lt(!1);
|
|
300
300
|
}
|
|
301
301
|
Pe(() => _.config, (l) => {
|
|
@@ -310,11 +310,11 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
310
310
|
bottom: t,
|
|
311
311
|
left: a
|
|
312
312
|
};
|
|
313
|
-
}), { isPrinting:
|
|
313
|
+
}), { isPrinting: Yt, isImaging: Dt, generatePdf: zt, generateImage: Bt } = Pa({
|
|
314
314
|
elementId: `donut__${k.value}`,
|
|
315
315
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
316
316
|
options: e.value.userOptions.print
|
|
317
|
-
}),
|
|
317
|
+
}), Dl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = f(() => ya(e.value.customPalette)), m = w({
|
|
318
318
|
dataLabels: {
|
|
319
319
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
320
320
|
},
|
|
@@ -355,9 +355,9 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
355
355
|
Pe(() => _.dataset, (l) => {
|
|
356
356
|
Array.isArray(l) && l.length > 0 && (Ve.value = !1);
|
|
357
357
|
}, { immediate: !0 });
|
|
358
|
-
const Q =
|
|
358
|
+
const Q = me(U.value);
|
|
359
359
|
Pe(() => U.value, (l) => {
|
|
360
|
-
Q.value = l, requestAnimationFrame(
|
|
360
|
+
Q.value = l, requestAnimationFrame(de);
|
|
361
361
|
});
|
|
362
362
|
function zl() {
|
|
363
363
|
return U.value.map((l) => ({
|
|
@@ -366,12 +366,12 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
366
366
|
value: l.value
|
|
367
367
|
}));
|
|
368
368
|
}
|
|
369
|
-
const j = w([]),
|
|
369
|
+
const j = w([]), he = w(!1), xe = w(null);
|
|
370
370
|
function Et({ from: l, to: o, duration: t, onUpdate: a, onDone: u, easing: c = ul }) {
|
|
371
371
|
const g = performance.now();
|
|
372
372
|
function $(S) {
|
|
373
|
-
const
|
|
374
|
-
a(X,
|
|
373
|
+
const Y = Math.min((S - g) / t, 1), P = c(Y), X = l + (o - l) * P;
|
|
374
|
+
a(X, Y), Y < 1 ? requestAnimationFrame($) : (a(o, 1), u && u());
|
|
375
375
|
}
|
|
376
376
|
requestAnimationFrame($);
|
|
377
377
|
}
|
|
@@ -384,46 +384,46 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
384
384
|
($, S) => l === S ? { ...$, value: u } : $
|
|
385
385
|
);
|
|
386
386
|
}, g = function() {
|
|
387
|
-
|
|
387
|
+
he.value = !0, xe.value = l, Et({
|
|
388
388
|
from: a,
|
|
389
389
|
to: u,
|
|
390
390
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
391
391
|
onUpdate: ($, S) => {
|
|
392
392
|
Q.value = Q.value.map(
|
|
393
|
-
(
|
|
394
|
-
), requestAnimationFrame(
|
|
393
|
+
(Y, P) => l === P ? { ...Y, value: $ } : Y
|
|
394
|
+
), requestAnimationFrame(de);
|
|
395
395
|
},
|
|
396
396
|
onDone: () => {
|
|
397
|
-
c(),
|
|
397
|
+
c(), he.value = !1, xe.value = null;
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
};
|
|
401
401
|
j.value = j.value.filter(($) => $ !== l);
|
|
402
402
|
const u = o.value;
|
|
403
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? g() : (c(), requestAnimationFrame(
|
|
403
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? g() : (c(), requestAnimationFrame(de));
|
|
404
404
|
} else if (j.value.length < U.value.length - 1) {
|
|
405
405
|
let u = function() {
|
|
406
406
|
j.value.push(l), Q.value = Q.value.map(
|
|
407
407
|
(g, $) => l === $ ? { ...g, value: 0 } : g
|
|
408
408
|
);
|
|
409
409
|
}, c = function() {
|
|
410
|
-
|
|
410
|
+
he.value = !0, xe.value = l, Et({
|
|
411
411
|
from: a,
|
|
412
412
|
to: 0,
|
|
413
413
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
414
414
|
onUpdate: (g, $) => {
|
|
415
415
|
Q.value = Q.value.map(
|
|
416
|
-
(S,
|
|
417
|
-
), requestAnimationFrame(
|
|
416
|
+
(S, Y) => l === Y ? { ...S, value: g } : S
|
|
417
|
+
), requestAnimationFrame(de);
|
|
418
418
|
},
|
|
419
419
|
onDone: () => {
|
|
420
|
-
u(), requestAnimationFrame(
|
|
420
|
+
u(), requestAnimationFrame(de), he.value = !1, xe.value = null;
|
|
421
421
|
}
|
|
422
422
|
});
|
|
423
423
|
};
|
|
424
424
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : u();
|
|
425
425
|
}
|
|
426
|
-
Ot("selectLegend",
|
|
426
|
+
Ot("selectLegend", ie.value.map((u) => ({
|
|
427
427
|
name: u.name,
|
|
428
428
|
color: u.color,
|
|
429
429
|
value: u.value
|
|
@@ -448,7 +448,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
448
448
|
(l, o) => l + o.values.reduce((t, a) => t + a, 0),
|
|
449
449
|
0
|
|
450
450
|
)
|
|
451
|
-
),
|
|
451
|
+
), ie = f(() => {
|
|
452
452
|
if (B.value && !Ne.value) {
|
|
453
453
|
const l = Ie.value, o = U.value.map((a) => ({
|
|
454
454
|
...a,
|
|
@@ -486,7 +486,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
486
486
|
}).map((l, o) => ({
|
|
487
487
|
...l,
|
|
488
488
|
opacity: j.value.includes(o) ? 0.5 : 1,
|
|
489
|
-
segregate: () => !
|
|
489
|
+
segregate: () => !he.value && He(o),
|
|
490
490
|
isSegregated: j.value.includes(o),
|
|
491
491
|
display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? q(e.value.style.chart.layout.labels.value.formatter, l.value, G({
|
|
492
492
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
@@ -508,7 +508,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
508
508
|
})), T = f(() => {
|
|
509
509
|
const l = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(n.value.width * o, n.value.height * o);
|
|
510
510
|
return Math.max(12, t);
|
|
511
|
-
}), O = f(() => nl({ series:
|
|
511
|
+
}), O = f(() => nl({ series: ie.value }, n.value.width / 2, n.value.height / 2, T.value, T.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), Nl = f(() => Math.abs(ie.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Vl = f(() => nl({
|
|
512
512
|
series: [
|
|
513
513
|
{
|
|
514
514
|
value: 1,
|
|
@@ -521,8 +521,8 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
521
521
|
}
|
|
522
522
|
]
|
|
523
523
|
}, n.value.width / 2, n.value.height / 2, T.value, T.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), N = f(() => O.value.filter((l) => !l.ghost)), v = f(() => {
|
|
524
|
-
const l = Math.max(...
|
|
525
|
-
return
|
|
524
|
+
const l = Math.max(...ie.value.map((t) => t.value)), o = ie.value.map((t) => t.value / l);
|
|
525
|
+
return ba({
|
|
526
526
|
series: o,
|
|
527
527
|
center: {
|
|
528
528
|
x: n.value.width / 2,
|
|
@@ -532,7 +532,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
532
532
|
hasGhost: B.value
|
|
533
533
|
});
|
|
534
534
|
});
|
|
535
|
-
function
|
|
535
|
+
function fe(l) {
|
|
536
536
|
return l.x > n.value.width / 2 + 6 ? "start" : l.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
537
537
|
}
|
|
538
538
|
function Rl(l) {
|
|
@@ -549,84 +549,84 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
549
549
|
if (e.value.type !== "classic") return {};
|
|
550
550
|
const l = {}, o = N.value || [];
|
|
551
551
|
if (!o.length) return l;
|
|
552
|
-
const t = e.value, a = n.value.width / 2, u = n.value.height / 2, c = Re.value.top + 16, g = n.value.height - Re.value.bottom - 16, $ =
|
|
553
|
-
function
|
|
554
|
-
if (!
|
|
555
|
-
return `M ${h} ${
|
|
556
|
-
const
|
|
557
|
-
return `M ${h} ${
|
|
552
|
+
const t = e.value, a = n.value.width / 2, u = n.value.height / 2, c = Re.value.top + 16, g = n.value.height - Re.value.bottom - 16, $ = le.value * 1.5, S = 8, Y = 6, P = a - (T.value + Y), X = a + (T.value + Y), ge = !!t.style.chart.layout.curvedMarkers;
|
|
553
|
+
function be({ midX: h, midY: p, bandX: F, bandY: R }) {
|
|
554
|
+
if (!ge)
|
|
555
|
+
return `M ${h} ${p} L ${h} ${R} L ${F} ${R}`;
|
|
556
|
+
const oe = F < a ? -1 : 1, D = (h + F) / 2 + oe * 12, z = p + (R - p) * 0.5;
|
|
557
|
+
return `M ${h} ${p} Q ${D} ${z} ${F} ${R}`;
|
|
558
558
|
}
|
|
559
|
-
const dt = o.map((h,
|
|
560
|
-
const { x: F, y: R } =
|
|
559
|
+
const dt = o.map((h, p) => {
|
|
560
|
+
const { x: F, y: R } = pa(h.path), oe = x(h).x, J = ce(h) - 3.5, D = String(h.name ?? "").split(/\n/g), z = Math.max(0, D.length - 1), K = le.value * 1.2, Me = z * K, sa = $ + Me;
|
|
561
561
|
return {
|
|
562
562
|
arc: h,
|
|
563
|
-
index:
|
|
563
|
+
index: p,
|
|
564
564
|
midX: F,
|
|
565
565
|
midY: R,
|
|
566
|
-
inlineMarkerX:
|
|
566
|
+
inlineMarkerX: oe,
|
|
567
567
|
inlineMarkerY: J,
|
|
568
568
|
labelHeight: sa
|
|
569
569
|
};
|
|
570
570
|
}).filter(({ arc: h }) => {
|
|
571
|
-
const
|
|
572
|
-
return xe.value ===
|
|
571
|
+
const p = h.seriesIndex ?? 0;
|
|
572
|
+
return xe.value === p || j.value.includes(p) ? !1 : Hl(h, p);
|
|
573
573
|
}), Xe = [], ht = [], je = [], We = [];
|
|
574
574
|
dt.forEach((h) => {
|
|
575
|
-
const
|
|
576
|
-
|
|
575
|
+
const p = h.inlineMarkerY < u, F = h.inlineMarkerX < a;
|
|
576
|
+
p && F ? Xe.push(h) : p && !F ? ht.push(h) : !p && F ? je.push(h) : We.push(h);
|
|
577
577
|
});
|
|
578
|
-
const Qt = (h,
|
|
578
|
+
const Qt = (h, p) => h.inlineMarkerY - p.inlineMarkerY || h.index - p.index, Jt = (h, p) => p.inlineMarkerY - h.inlineMarkerY || h.index - p.index;
|
|
579
579
|
Xe.sort(Qt), ht.sort(Qt), je.sort(Jt), We.sort(Jt);
|
|
580
580
|
let Kt = c;
|
|
581
581
|
Xe.forEach((h) => {
|
|
582
|
-
const { index:
|
|
582
|
+
const { index: p, midX: F, midY: R, labelHeight: oe } = h, J = Kt, D = P, z = J, K = be({
|
|
583
583
|
midX: F,
|
|
584
584
|
midY: R,
|
|
585
|
-
bandX:
|
|
585
|
+
bandX: D,
|
|
586
586
|
bandY: z
|
|
587
587
|
});
|
|
588
|
-
l[
|
|
588
|
+
l[p] = {
|
|
589
589
|
side: "left",
|
|
590
|
-
labelX:
|
|
591
|
-
labelY: J,
|
|
590
|
+
labelX: D - S,
|
|
591
|
+
labelY: J + le.value / 3,
|
|
592
592
|
textAnchor: "end",
|
|
593
|
-
markerX:
|
|
593
|
+
markerX: D,
|
|
594
594
|
markerY: z,
|
|
595
595
|
connectorPath: K
|
|
596
|
-
}, Kt +=
|
|
596
|
+
}, Kt += oe;
|
|
597
597
|
});
|
|
598
598
|
let Zt = c;
|
|
599
599
|
if (ht.forEach((h) => {
|
|
600
|
-
const { index:
|
|
600
|
+
const { index: p, midX: F, midY: R, labelHeight: oe } = h, J = Zt, D = X, z = J, K = be({
|
|
601
601
|
midX: F,
|
|
602
602
|
midY: R,
|
|
603
|
-
bandX:
|
|
603
|
+
bandX: D,
|
|
604
604
|
bandY: z
|
|
605
605
|
});
|
|
606
|
-
l[
|
|
606
|
+
l[p] = {
|
|
607
607
|
side: "right",
|
|
608
|
-
labelX:
|
|
609
|
-
labelY: J,
|
|
608
|
+
labelX: D + S,
|
|
609
|
+
labelY: J + le.value / 3,
|
|
610
610
|
textAnchor: "start",
|
|
611
|
-
markerX:
|
|
611
|
+
markerX: D,
|
|
612
612
|
markerY: z,
|
|
613
613
|
connectorPath: K
|
|
614
|
-
}, Zt +=
|
|
614
|
+
}, Zt += oe;
|
|
615
615
|
}), je.length > 1) {
|
|
616
616
|
let h = g;
|
|
617
|
-
je.forEach((
|
|
618
|
-
const { index: F, midX: R, midY:
|
|
617
|
+
je.forEach((p) => {
|
|
618
|
+
const { index: F, midX: R, midY: oe, labelHeight: J } = p;
|
|
619
619
|
h -= J;
|
|
620
|
-
const
|
|
620
|
+
const D = h, z = P, K = D, Me = be({
|
|
621
621
|
midX: R,
|
|
622
|
-
midY:
|
|
622
|
+
midY: oe,
|
|
623
623
|
bandX: z,
|
|
624
624
|
bandY: K
|
|
625
625
|
});
|
|
626
626
|
l[F] = {
|
|
627
627
|
side: "left",
|
|
628
628
|
labelX: z - S,
|
|
629
|
-
labelY:
|
|
629
|
+
labelY: D + le.value / 3,
|
|
630
630
|
textAnchor: "end",
|
|
631
631
|
markerX: z,
|
|
632
632
|
markerY: K,
|
|
@@ -636,19 +636,19 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
636
636
|
}
|
|
637
637
|
if (We.length > 1) {
|
|
638
638
|
let h = g;
|
|
639
|
-
We.forEach((
|
|
640
|
-
const { index: F, midX: R, midY:
|
|
639
|
+
We.forEach((p) => {
|
|
640
|
+
const { index: F, midX: R, midY: oe, labelHeight: J } = p;
|
|
641
641
|
h -= J;
|
|
642
|
-
const
|
|
642
|
+
const D = h, z = X, K = D, Me = be({
|
|
643
643
|
midX: R,
|
|
644
|
-
midY:
|
|
644
|
+
midY: oe,
|
|
645
645
|
bandX: z,
|
|
646
646
|
bandY: K
|
|
647
647
|
});
|
|
648
648
|
l[F] = {
|
|
649
649
|
side: "right",
|
|
650
650
|
labelX: z + S,
|
|
651
|
-
labelY:
|
|
651
|
+
labelY: D + le.value / 3,
|
|
652
652
|
textAnchor: "start",
|
|
653
653
|
markerX: z,
|
|
654
654
|
markerY: K,
|
|
@@ -658,7 +658,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
658
658
|
}
|
|
659
659
|
return l;
|
|
660
660
|
});
|
|
661
|
-
function
|
|
661
|
+
function De(l, o) {
|
|
662
662
|
const t = l.value / Gl(o);
|
|
663
663
|
return isNaN(t) ? 0 : q(
|
|
664
664
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
@@ -674,19 +674,19 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
674
674
|
function Gl(l) {
|
|
675
675
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
676
676
|
}
|
|
677
|
-
const V = f(() =>
|
|
677
|
+
const V = f(() => ie.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ul = f(() => {
|
|
678
678
|
const l = U.value.reduce((o, t) => o + t.value, 0);
|
|
679
679
|
return l <= 0 ? [] : U.value.map((o) => o.value / l);
|
|
680
|
-
}), rt = f(() => V.value /
|
|
680
|
+
}), rt = f(() => V.value / ie.value.length);
|
|
681
681
|
function Vt(l) {
|
|
682
|
-
return
|
|
682
|
+
return he.value ? l.proportion * 100 : l.value / V.value * 100;
|
|
683
683
|
}
|
|
684
684
|
const it = w(null), ze = w(!1);
|
|
685
|
-
function
|
|
686
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), at.value = !1,
|
|
685
|
+
function se({ datapoint: l, seriesIndex: o }) {
|
|
686
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), at.value = !1, ae.value = null;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), it.value = { datapoint: l, seriesIndex: t, config: e.value, series: U.value }, at.value = a,
|
|
688
|
+
function ue({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
689
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), it.value = { datapoint: l, seriesIndex: t, config: e.value, series: U.value }, at.value = a, ae.value = o;
|
|
690
690
|
let u = "";
|
|
691
691
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
692
692
|
if (ze.value = !1, _a(c))
|
|
@@ -748,11 +748,11 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
748
748
|
return {
|
|
749
749
|
textAnchor: a.anchor,
|
|
750
750
|
x: a.x,
|
|
751
|
-
y:
|
|
751
|
+
y: ce(l)
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
754
|
function Wl(l, o, t) {
|
|
755
|
-
const { textAnchor: a, x: u } = jl(l, o), c =
|
|
755
|
+
const { textAnchor: a, x: u } = jl(l, o), c = De(l, N.value), g = e.value.style.chart.layout.labels.value.show ? ` (${q(
|
|
756
756
|
e.value.style.chart.layout.labels.value.formatter,
|
|
757
757
|
l.value,
|
|
758
758
|
G({
|
|
@@ -766,33 +766,33 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
766
766
|
<tspan
|
|
767
767
|
class="vue-data-ui-datalabel-inline"
|
|
768
768
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
769
|
-
font-size="${t ?
|
|
769
|
+
font-size="${t ? le.value : Se.value}px"
|
|
770
770
|
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
771
771
|
>${$}</tspan>
|
|
772
|
-
`,
|
|
772
|
+
`, Y = String(l.name ?? "").split(/\n/g);
|
|
773
773
|
let P = "";
|
|
774
|
-
return
|
|
775
|
-
|
|
774
|
+
return Y.forEach((X, ge) => {
|
|
775
|
+
ge === 0 ? P += `
|
|
776
776
|
<tspan
|
|
777
|
-
class="vue-data-ui-datalabel-name"
|
|
777
|
+
class="${t ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
778
778
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
779
|
-
font-size="${t ?
|
|
779
|
+
font-size="${t ? le.value : E.value}px"
|
|
780
780
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
781
781
|
>${X}</tspan>
|
|
782
782
|
` : P += `
|
|
783
783
|
<tspan
|
|
784
|
-
class="vue-data-ui-datalabel-name"
|
|
784
|
+
class="${t ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
785
785
|
x="${u}"
|
|
786
|
-
dy="${(t ?
|
|
786
|
+
dy="${(t ? le.value : E.value) * 1.2}"
|
|
787
787
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
788
|
-
font-size="${t ?
|
|
788
|
+
font-size="${t ? le.value : E.value}px"
|
|
789
789
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
790
790
|
>${X}</tspan>
|
|
791
791
|
`;
|
|
792
792
|
}), a === "end" ? `${P}${S}` : `${S}${P}`;
|
|
793
793
|
}
|
|
794
794
|
function ql(l, o) {
|
|
795
|
-
const t = v.value[o].middlePoint, a =
|
|
795
|
+
const t = v.value[o].middlePoint, a = fe(t), u = L({
|
|
796
796
|
initX: t.x,
|
|
797
797
|
initY: t.y,
|
|
798
798
|
offset: 42,
|
|
@@ -800,7 +800,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
800
800
|
centerY: n.value.height / 2
|
|
801
801
|
}), c = u.x;
|
|
802
802
|
u.y;
|
|
803
|
-
const g =
|
|
803
|
+
const g = De(l, N.value), $ = e.value.style.chart.layout.labels.value.show ? ` (${q(
|
|
804
804
|
e.value.style.chart.layout.labels.value.formatter,
|
|
805
805
|
l.value,
|
|
806
806
|
G({
|
|
@@ -810,7 +810,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
810
810
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
811
811
|
}),
|
|
812
812
|
{ datapoint: l }
|
|
813
|
-
)})` : "", S = `${g}${$}`,
|
|
813
|
+
)})` : "", S = `${g}${$}`, Y = `
|
|
814
814
|
<tspan
|
|
815
815
|
class="vue-data-ui-datalabel-value"
|
|
816
816
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
@@ -819,14 +819,14 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
819
819
|
>${S}</tspan>
|
|
820
820
|
`, P = String(l.name ?? "").split(/\n/g);
|
|
821
821
|
let X = "";
|
|
822
|
-
return P.forEach((
|
|
823
|
-
|
|
822
|
+
return P.forEach((ge, be) => {
|
|
823
|
+
be === 0 ? X += `
|
|
824
824
|
<tspan
|
|
825
825
|
class="vue-data-ui-datalabel-name"
|
|
826
826
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
827
827
|
font-size="${E.value}px"
|
|
828
828
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
829
|
-
>${
|
|
829
|
+
>${ge}</tspan>
|
|
830
830
|
` : X += `
|
|
831
831
|
<tspan
|
|
832
832
|
class="vue-data-ui-datalabel-name"
|
|
@@ -835,31 +835,31 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
835
835
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
836
836
|
font-size="${E.value}px"
|
|
837
837
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
838
|
-
>${
|
|
838
|
+
>${ge}</tspan>
|
|
839
839
|
`;
|
|
840
|
-
}), a === "end" ? `${X}${
|
|
840
|
+
}), a === "end" ? `${X}${Y}` : `${Y}${X}`;
|
|
841
841
|
}
|
|
842
842
|
function $e(l) {
|
|
843
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
843
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(ae.value) && ae.value !== l ? `url(#blur_${k.value})` : "";
|
|
844
844
|
}
|
|
845
845
|
function Ql(l) {
|
|
846
|
-
if (!
|
|
846
|
+
if (!he.value || xe.value === null || l.seriesIndex !== xe.value)
|
|
847
847
|
return 1;
|
|
848
848
|
const o = (l.proportion ?? 0) * 100, t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, u = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, c = t;
|
|
849
849
|
return o >= u ? 1 : o <= c ? 0 : (o - c) / (u - c);
|
|
850
850
|
}
|
|
851
|
-
const
|
|
852
|
-
const l =
|
|
851
|
+
const ye = f(() => {
|
|
852
|
+
const l = ie.value.map((t) => ({
|
|
853
853
|
name: t.name,
|
|
854
854
|
color: t.color
|
|
855
|
-
})), o =
|
|
855
|
+
})), o = ie.value.map((t) => t.value);
|
|
856
856
|
return { head: l, body: o };
|
|
857
857
|
});
|
|
858
858
|
function ct(l = null) {
|
|
859
859
|
va(() => {
|
|
860
|
-
const o =
|
|
860
|
+
const o = ye.value.head.map((u, c) => [[
|
|
861
861
|
u.name
|
|
862
|
-
], [
|
|
862
|
+
], [ye.value.body[c]], [isNaN(ye.value.body[c] / V.value) ? "-" : ye.value.body[c] / V.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = $a(t);
|
|
863
863
|
l ? l(a) : Aa({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
864
864
|
});
|
|
865
865
|
}
|
|
@@ -868,13 +868,13 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
868
868
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
869
869
|
G({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: V.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
870
870
|
"100%"
|
|
871
|
-
], o =
|
|
871
|
+
], o = ye.value.head.map((u, c) => [
|
|
872
872
|
{
|
|
873
873
|
color: u.color,
|
|
874
874
|
name: u.name || "-"
|
|
875
875
|
},
|
|
876
|
-
|
|
877
|
-
isNaN(
|
|
876
|
+
ye.value.body[c],
|
|
877
|
+
isNaN(ye.value.body[c] / V.value) ? "-" : (ye.value.body[c] / V.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
878
878
|
]), t = {
|
|
879
879
|
th: {
|
|
880
880
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -906,7 +906,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
906
906
|
function Jl(l) {
|
|
907
907
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function re(l, o) {
|
|
910
910
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), Ot("selectDatapoint", { datapoint: l, index: o });
|
|
911
911
|
}
|
|
912
912
|
function Gt() {
|
|
@@ -1014,9 +1014,9 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1014
1014
|
style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
1015
1015
|
id: `donut__${k.value}`,
|
|
1016
1016
|
onMouseenter: Il,
|
|
1017
|
-
onMouseleave:
|
|
1017
|
+
onMouseleave: Yl
|
|
1018
1018
|
}, [
|
|
1019
|
-
e.value.userOptions.buttons.annotator && r(ke) ? (s(),
|
|
1019
|
+
e.value.userOptions.buttons.annotator && r(ke) ? (s(), we(r(kl), {
|
|
1020
1020
|
key: 0,
|
|
1021
1021
|
color: e.value.style.chart.color,
|
|
1022
1022
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1025,27 +1025,27 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1025
1025
|
onClose: vt
|
|
1026
1026
|
}, {
|
|
1027
1027
|
"annotator-action-close": C(() => [
|
|
1028
|
-
|
|
1028
|
+
b(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1029
1029
|
]),
|
|
1030
1030
|
"annotator-action-color": C(({ color: t }) => [
|
|
1031
|
-
|
|
1031
|
+
b(l.$slots, "annotator-action-color", Z(ee({ color: t })), void 0, !0)
|
|
1032
1032
|
]),
|
|
1033
1033
|
"annotator-action-draw": C(({ mode: t }) => [
|
|
1034
|
-
|
|
1034
|
+
b(l.$slots, "annotator-action-draw", Z(ee({ mode: t })), void 0, !0)
|
|
1035
1035
|
]),
|
|
1036
1036
|
"annotator-action-undo": C(({ disabled: t }) => [
|
|
1037
|
-
|
|
1037
|
+
b(l.$slots, "annotator-action-undo", Z(ee({ disabled: t })), void 0, !0)
|
|
1038
1038
|
]),
|
|
1039
1039
|
"annotator-action-redo": C(({ disabled: t }) => [
|
|
1040
|
-
|
|
1040
|
+
b(l.$slots, "annotator-action-redo", Z(ee({ disabled: t })), void 0, !0)
|
|
1041
1041
|
]),
|
|
1042
1042
|
"annotator-action-delete": C(({ disabled: t }) => [
|
|
1043
|
-
|
|
1043
|
+
b(l.$slots, "annotator-action-delete", Z(ee({ disabled: t })), void 0, !0)
|
|
1044
1044
|
]),
|
|
1045
1045
|
_: 3
|
|
1046
1046
|
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : d("", !0),
|
|
1047
|
-
|
|
1048
|
-
|
|
1047
|
+
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
1048
|
+
Dl.value ? (s(), i("div", {
|
|
1049
1049
|
key: 1,
|
|
1050
1050
|
ref_key: "noTitle",
|
|
1051
1051
|
ref: $t,
|
|
@@ -1058,7 +1058,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1058
1058
|
ref: kt,
|
|
1059
1059
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1060
1060
|
}, [
|
|
1061
|
-
(s(),
|
|
1061
|
+
(s(), we(Oa, {
|
|
1062
1062
|
key: `title_${At.value}`,
|
|
1063
1063
|
config: {
|
|
1064
1064
|
title: {
|
|
@@ -1075,14 +1075,14 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1075
1075
|
y("div", {
|
|
1076
1076
|
id: `legend-top-${k.value}`
|
|
1077
1077
|
}, null, 8, Ra),
|
|
1078
|
-
e.value.userOptions.show && Oe.value && (r(It) || r(st)) ? (s(),
|
|
1078
|
+
e.value.userOptions.show && Oe.value && (r(It) || r(st)) ? (s(), we(r(Cl), {
|
|
1079
1079
|
ref_key: "userOptionsRef",
|
|
1080
1080
|
ref: Ze,
|
|
1081
1081
|
key: `user_option_${Pt.value}`,
|
|
1082
1082
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1083
1083
|
color: e.value.style.chart.color,
|
|
1084
|
-
isPrinting: r(
|
|
1085
|
-
isImaging: r(
|
|
1084
|
+
isPrinting: r(Yt),
|
|
1085
|
+
isImaging: r(Dt),
|
|
1086
1086
|
uid: k.value,
|
|
1087
1087
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
1088
1088
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -1116,70 +1116,70 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1116
1116
|
l.$slots.menuIcon ? {
|
|
1117
1117
|
name: "menuIcon",
|
|
1118
1118
|
fn: C(({ isOpen: t, color: a }) => [
|
|
1119
|
-
|
|
1119
|
+
b(l.$slots, "menuIcon", Z(ee({ isOpen: t, color: a })), void 0, !0)
|
|
1120
1120
|
]),
|
|
1121
1121
|
key: "0"
|
|
1122
1122
|
} : void 0,
|
|
1123
1123
|
l.$slots.optionTooltip ? {
|
|
1124
1124
|
name: "optionTooltip",
|
|
1125
1125
|
fn: C(() => [
|
|
1126
|
-
|
|
1126
|
+
b(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
1127
1127
|
]),
|
|
1128
1128
|
key: "1"
|
|
1129
1129
|
} : void 0,
|
|
1130
1130
|
l.$slots.optionPdf ? {
|
|
1131
1131
|
name: "optionPdf",
|
|
1132
1132
|
fn: C(() => [
|
|
1133
|
-
|
|
1133
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
1134
1134
|
]),
|
|
1135
1135
|
key: "2"
|
|
1136
1136
|
} : void 0,
|
|
1137
1137
|
l.$slots.optionCsv ? {
|
|
1138
1138
|
name: "optionCsv",
|
|
1139
1139
|
fn: C(() => [
|
|
1140
|
-
|
|
1140
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
1141
1141
|
]),
|
|
1142
1142
|
key: "3"
|
|
1143
1143
|
} : void 0,
|
|
1144
1144
|
l.$slots.optionImg ? {
|
|
1145
1145
|
name: "optionImg",
|
|
1146
1146
|
fn: C(() => [
|
|
1147
|
-
|
|
1147
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
1148
1148
|
]),
|
|
1149
1149
|
key: "4"
|
|
1150
1150
|
} : void 0,
|
|
1151
1151
|
l.$slots.optionSvg ? {
|
|
1152
1152
|
name: "optionSvg",
|
|
1153
1153
|
fn: C(() => [
|
|
1154
|
-
|
|
1154
|
+
b(l.$slots, "optionSvg", {}, void 0, !0)
|
|
1155
1155
|
]),
|
|
1156
1156
|
key: "5"
|
|
1157
1157
|
} : void 0,
|
|
1158
1158
|
l.$slots.optionTable ? {
|
|
1159
1159
|
name: "optionTable",
|
|
1160
1160
|
fn: C(() => [
|
|
1161
|
-
|
|
1161
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
1162
1162
|
]),
|
|
1163
1163
|
key: "6"
|
|
1164
1164
|
} : void 0,
|
|
1165
1165
|
l.$slots.optionLabels ? {
|
|
1166
1166
|
name: "optionLabels",
|
|
1167
1167
|
fn: C(() => [
|
|
1168
|
-
|
|
1168
|
+
b(l.$slots, "optionLabels", {}, void 0, !0)
|
|
1169
1169
|
]),
|
|
1170
1170
|
key: "7"
|
|
1171
1171
|
} : void 0,
|
|
1172
1172
|
l.$slots.optionFullscreen ? {
|
|
1173
1173
|
name: "optionFullscreen",
|
|
1174
1174
|
fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
1175
|
-
|
|
1175
|
+
b(l.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
1176
1176
|
]),
|
|
1177
1177
|
key: "8"
|
|
1178
1178
|
} : void 0,
|
|
1179
1179
|
l.$slots.optionAnnotator ? {
|
|
1180
1180
|
name: "optionAnnotator",
|
|
1181
1181
|
fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
1182
|
-
|
|
1182
|
+
b(l.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
1183
1183
|
]),
|
|
1184
1184
|
key: "9"
|
|
1185
1185
|
} : void 0
|
|
@@ -1208,7 +1208,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1208
1208
|
pointerEvents: "none"
|
|
1209
1209
|
}
|
|
1210
1210
|
}, [
|
|
1211
|
-
|
|
1211
|
+
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
1212
1212
|
], 8, Ga)) : d("", !0),
|
|
1213
1213
|
e.value.type === "classic" && !isNaN(Ce.value / T.value) ? (s(), i("defs", Ua, [
|
|
1214
1214
|
e.value.style.chart.useGradient ? (s(), i("radialGradient", {
|
|
@@ -1350,7 +1350,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1350
1350
|
(s(!0), i(A, null, H(wt.dataset, (t, a) => (s(), i("defs", {
|
|
1351
1351
|
key: `pattern-${t.patternIndex}`
|
|
1352
1352
|
}, [
|
|
1353
|
-
|
|
1353
|
+
b(l.$slots, "pattern", gt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${k.value}_${a}` }), void 0, !0)
|
|
1354
1354
|
]))), 128))
|
|
1355
1355
|
])) : d("", !0),
|
|
1356
1356
|
V.value && e.value.type === "classic" ? (s(), i(A, { key: 7 }, [
|
|
@@ -1379,7 +1379,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1379
1379
|
])) : d("", !0)
|
|
1380
1380
|
], 64)) : d("", !0),
|
|
1381
1381
|
V.value && e.value.type === "polar" ? (s(), i(A, { key: 8 }, [
|
|
1382
|
-
O.value.length > 1 ? (s(), i("g",
|
|
1382
|
+
O.value.length > 1 ? (s(), i("g", bo, [
|
|
1383
1383
|
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1384
1384
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1385
1385
|
d: v.value[a].path,
|
|
@@ -1387,7 +1387,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1387
1387
|
style: M({
|
|
1388
1388
|
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1389
1389
|
})
|
|
1390
|
-
}, null, 12,
|
|
1390
|
+
}, null, 12, po))), 256)),
|
|
1391
1391
|
e.value.style.chart.layout.donut.useShadow ? (s(), i("g", mo, [
|
|
1392
1392
|
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1393
1393
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1487,31 +1487,31 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1487
1487
|
(s(!0), i(A, null, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("path", {
|
|
1488
1488
|
d: e.value.type === "classic" ? t.arcSlice : v.value[a].path,
|
|
1489
1489
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1490
|
-
fill:
|
|
1491
|
-
onMouseenter: (u) =>
|
|
1490
|
+
fill: ae.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1491
|
+
onMouseenter: (u) => ue({
|
|
1492
1492
|
datapoint: t,
|
|
1493
1493
|
relativeIndex: a,
|
|
1494
1494
|
seriesIndex: t.seriesIndex,
|
|
1495
1495
|
show: !0
|
|
1496
1496
|
}),
|
|
1497
|
-
onMouseleave: (u) =>
|
|
1498
|
-
onClick: (u) =>
|
|
1497
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1498
|
+
onClick: (u) => re(t, a)
|
|
1499
1499
|
}, null, 40, Io))), 256))
|
|
1500
|
-
])) : (s(), i("g",
|
|
1500
|
+
])) : (s(), i("g", Yo, [
|
|
1501
1501
|
y("circle", {
|
|
1502
1502
|
cx: n.value.width / 2,
|
|
1503
1503
|
cy: n.value.height / 2,
|
|
1504
1504
|
r: T.value,
|
|
1505
1505
|
fill: "transparent",
|
|
1506
|
-
onMouseenter: o[0] || (o[0] = (t) =>
|
|
1506
|
+
onMouseenter: o[0] || (o[0] = (t) => ue({
|
|
1507
1507
|
datapoint: O.value[0],
|
|
1508
1508
|
relativeIndex: 0,
|
|
1509
1509
|
seriesIndex: O.value[0].seriesIndex,
|
|
1510
1510
|
show: !0
|
|
1511
1511
|
})),
|
|
1512
|
-
onMouseleave: o[1] || (o[1] = (t) =>
|
|
1513
|
-
onClick: o[2] || (o[2] = (t) =>
|
|
1514
|
-
}, null, 40,
|
|
1512
|
+
onMouseleave: o[1] || (o[1] = (t) => se({ datapoint: O.value[0], seriesIndex: O.value[0].seriesIndex })),
|
|
1513
|
+
onClick: o[2] || (o[2] = (t) => re(O.value[0], l.i))
|
|
1514
|
+
}, null, 40, Do)
|
|
1515
1515
|
]))
|
|
1516
1516
|
], 64)) : d("", !0),
|
|
1517
1517
|
e.value.type === "classic" ? (s(), i("g", {
|
|
@@ -1528,7 +1528,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1528
1528
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1529
1529
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1530
1530
|
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1531
|
-
},
|
|
1531
|
+
}, ne(e.value.style.chart.layout.labels.hollow.total.text), 13, zo)) : d("", !0),
|
|
1532
1532
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), i("text", {
|
|
1533
1533
|
key: 1,
|
|
1534
1534
|
"text-anchor": "middle",
|
|
@@ -1537,7 +1537,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1537
1537
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1538
1538
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1539
1539
|
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1540
|
-
},
|
|
1540
|
+
}, ne(r(q)(
|
|
1541
1541
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1542
1542
|
V.value,
|
|
1543
1543
|
r(G)({
|
|
@@ -1554,7 +1554,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1554
1554
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1555
1555
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1556
1556
|
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1557
|
-
},
|
|
1557
|
+
}, ne(e.value.style.chart.layout.labels.hollow.average.text), 13, Xo)) : d("", !0),
|
|
1558
1558
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), i("text", {
|
|
1559
1559
|
key: 3,
|
|
1560
1560
|
"text-anchor": "middle",
|
|
@@ -1563,7 +1563,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1563
1563
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1564
1564
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1565
1565
|
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1566
|
-
},
|
|
1566
|
+
}, ne(he.value || B.value ? "--" : r(q)(
|
|
1567
1567
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1568
1568
|
rt.value,
|
|
1569
1569
|
r(G)({
|
|
@@ -1583,20 +1583,20 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1583
1583
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), i("g", No, [
|
|
1584
1584
|
(s(), i("foreignObject", {
|
|
1585
1585
|
x: r(x)(t, !0).anchor === "end" ? r(x)(t).x - 120 : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - 60 : r(x)(t).x,
|
|
1586
|
-
y: r(
|
|
1586
|
+
y: r(ce)(t) - (Ht.value ? 20 : 0),
|
|
1587
1587
|
width: "120",
|
|
1588
1588
|
height: "60",
|
|
1589
1589
|
style: { overflow: "visible" }
|
|
1590
1590
|
}, [
|
|
1591
1591
|
y("div", null, [
|
|
1592
|
-
|
|
1592
|
+
b(l.$slots, "dataLabel", gt({ ref_for: !0 }, {
|
|
1593
1593
|
datapoint: t,
|
|
1594
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1594
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(ae.value) || ae.value === a,
|
|
1595
1595
|
isSafari: Ht.value,
|
|
1596
1596
|
isVisible: W(t) && m.value.dataLabels.show,
|
|
1597
1597
|
textAlign: r(x)(t, !0, 16, !0).anchor,
|
|
1598
1598
|
flexAlign: r(x)(t, !0, 16).anchor,
|
|
1599
|
-
percentage:
|
|
1599
|
+
percentage: De(t, N.value)
|
|
1600
1600
|
}), void 0, !0)
|
|
1601
1601
|
])
|
|
1602
1602
|
], 8, Vo))
|
|
@@ -1605,35 +1605,35 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1605
1605
|
W(t) && m.value.dataLabels.show ? (s(), i("circle", {
|
|
1606
1606
|
key: 0,
|
|
1607
1607
|
cx: I.value[a]?.markerX ?? r(x)(t).x,
|
|
1608
|
-
cy: I.value[a]?.markerY ?? r(
|
|
1608
|
+
cy: I.value[a]?.markerY ?? r(ce)(t) - 3.5,
|
|
1609
1609
|
fill: t.color,
|
|
1610
1610
|
stroke: e.value.style.chart.backgroundColor,
|
|
1611
1611
|
"stroke-width": 1,
|
|
1612
1612
|
r: 3,
|
|
1613
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1614
|
-
onClick: (u) =>
|
|
1615
|
-
onMouseenter: (u) =>
|
|
1613
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(ae.value) || ae.value === a ? "" : `url(#blur_${k.value})`,
|
|
1614
|
+
onClick: (u) => re(t, a),
|
|
1615
|
+
onMouseenter: (u) => ue({
|
|
1616
1616
|
datapoint: t,
|
|
1617
1617
|
relativeIndex: a,
|
|
1618
1618
|
seriesIndex: t.seriesIndex,
|
|
1619
1619
|
show: !0
|
|
1620
1620
|
}),
|
|
1621
|
-
onMouseleave: (u) =>
|
|
1621
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1622
1622
|
}, null, 40, Ho)) : d("", !0),
|
|
1623
1623
|
e.value.style.chart.layout.labels.dataLabels.oneLine || I.value[a] ? Qe((s(), i("text", {
|
|
1624
1624
|
key: 1,
|
|
1625
1625
|
class: "vue-data-ui-datalabel-inline",
|
|
1626
1626
|
"text-anchor": I.value[a]?.textAnchor || r(x)(t, !0, 12).anchor,
|
|
1627
1627
|
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1628
|
-
y: I.value[a]?.labelY ?? r(
|
|
1629
|
-
onClick: (u) =>
|
|
1630
|
-
onMouseenter: (u) =>
|
|
1628
|
+
y: I.value[a]?.labelY ?? r(ce)(t),
|
|
1629
|
+
onClick: (u) => re(t, a),
|
|
1630
|
+
onMouseenter: (u) => ue({
|
|
1631
1631
|
datapoint: t,
|
|
1632
1632
|
relativeIndex: a,
|
|
1633
1633
|
seriesIndex: t.seriesIndex,
|
|
1634
1634
|
show: !0
|
|
1635
1635
|
}),
|
|
1636
|
-
onMouseleave: (u) =>
|
|
1636
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1637
1637
|
innerHTML: Wl(t, a, !!I.value[a])
|
|
1638
1638
|
}, null, 40, Go)), [
|
|
1639
1639
|
[Je, W(t) && m.value.dataLabels.show]
|
|
@@ -1642,19 +1642,19 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1642
1642
|
class: "vue-data-ui-datalabel-value",
|
|
1643
1643
|
"text-anchor": I.value[a]?.textAnchor || r(x)(t, !0, 12).anchor,
|
|
1644
1644
|
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1645
|
-
y: I.value[a]?.labelY ?? r(
|
|
1645
|
+
y: I.value[a]?.labelY ?? r(ce)(t),
|
|
1646
1646
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1647
1647
|
"font-size": Se.value + "px",
|
|
1648
1648
|
style: M(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1649
|
-
onClick: (u) =>
|
|
1650
|
-
onMouseenter: (u) =>
|
|
1649
|
+
onClick: (u) => re(t, a),
|
|
1650
|
+
onMouseenter: (u) => ue({
|
|
1651
1651
|
datapoint: t,
|
|
1652
1652
|
relativeIndex: a,
|
|
1653
1653
|
seriesIndex: t.seriesIndex,
|
|
1654
1654
|
show: !0
|
|
1655
1655
|
}),
|
|
1656
|
-
onMouseleave: (u) =>
|
|
1657
|
-
},
|
|
1656
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1657
|
+
}, ne(De(t, N.value)) + " " + ne(e.value.style.chart.layout.labels.value.show ? `(${r(q)(
|
|
1658
1658
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1659
1659
|
t.value,
|
|
1660
1660
|
r(G)({
|
|
@@ -1671,24 +1671,24 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1671
1671
|
class: "vue-data-ui-datalabel-name",
|
|
1672
1672
|
"text-anchor": I.value[a]?.textAnchor || r(x)(t).anchor,
|
|
1673
1673
|
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1674
|
-
y: (I.value[a]?.labelY ?? r(
|
|
1674
|
+
y: (I.value[a]?.labelY ?? r(ce)(t)) + E.value * 1.2,
|
|
1675
1675
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1676
1676
|
"font-size": E.value + "px",
|
|
1677
1677
|
style: M(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1678
|
-
onClick: (u) =>
|
|
1679
|
-
onMouseenter: (u) =>
|
|
1678
|
+
onClick: (u) => re(t, a),
|
|
1679
|
+
onMouseenter: (u) => ue({
|
|
1680
1680
|
datapoint: t,
|
|
1681
1681
|
relativeIndex: a,
|
|
1682
1682
|
seriesIndex: t.seriesIndex,
|
|
1683
1683
|
show: !0
|
|
1684
1684
|
}),
|
|
1685
|
-
onMouseleave: (u) =>
|
|
1685
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1686
1686
|
innerHTML: r(sl)({
|
|
1687
1687
|
content: t.name,
|
|
1688
1688
|
fontSize: E.value,
|
|
1689
1689
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1690
1690
|
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1691
|
-
y: (I.value[a]?.labelY ?? r(
|
|
1691
|
+
y: (I.value[a]?.labelY ?? r(ce)(t)) + E.value
|
|
1692
1692
|
})
|
|
1693
1693
|
}, null, 44, jo), [
|
|
1694
1694
|
[Je, W(t) && m.value.dataLabels.show]
|
|
@@ -1704,15 +1704,15 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1704
1704
|
stroke: e.value.style.chart.backgroundColor,
|
|
1705
1705
|
"stroke-width": 1,
|
|
1706
1706
|
r: 3,
|
|
1707
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1708
|
-
onClick: (u) =>
|
|
1709
|
-
onMouseenter: (u) =>
|
|
1707
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(ae.value) || ae.value === a ? "" : `url(#blur_${k.value})`,
|
|
1708
|
+
onClick: (u) => re(t, a),
|
|
1709
|
+
onMouseenter: (u) => ue({
|
|
1710
1710
|
datapoint: t,
|
|
1711
1711
|
relativeIndex: a,
|
|
1712
1712
|
seriesIndex: t.seriesIndex,
|
|
1713
1713
|
show: !0
|
|
1714
1714
|
}),
|
|
1715
|
-
onMouseleave: (u) =>
|
|
1715
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1716
1716
|
style: M({
|
|
1717
1717
|
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1718
1718
|
})
|
|
@@ -1720,20 +1720,20 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1720
1720
|
e.value.style.chart.layout.labels.dataLabels.oneLine ? Qe((s(), i("text", {
|
|
1721
1721
|
key: 1,
|
|
1722
1722
|
class: "vue-data-ui-datalabel-inline",
|
|
1723
|
-
"text-anchor":
|
|
1723
|
+
"text-anchor": fe(v.value[a].middlePoint),
|
|
1724
1724
|
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1725
1725
|
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1726
1726
|
style: M({
|
|
1727
1727
|
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1728
1728
|
}),
|
|
1729
|
-
onClick: (u) =>
|
|
1730
|
-
onMouseenter: (u) =>
|
|
1729
|
+
onClick: (u) => re(t, a),
|
|
1730
|
+
onMouseenter: (u) => ue({
|
|
1731
1731
|
datapoint: t,
|
|
1732
1732
|
relativeIndex: a,
|
|
1733
1733
|
seriesIndex: t.seriesIndex,
|
|
1734
1734
|
show: !0
|
|
1735
1735
|
}),
|
|
1736
|
-
onMouseleave: (u) =>
|
|
1736
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1737
1737
|
innerHTML: ql(t, a)
|
|
1738
1738
|
}, null, 44, qo)), [
|
|
1739
1739
|
[Je, W(t) && m.value.dataLabels.show]
|
|
@@ -1741,7 +1741,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1741
1741
|
W(t) && m.value.dataLabels.show ? (s(), i("text", {
|
|
1742
1742
|
key: 0,
|
|
1743
1743
|
class: "vue-data-ui-datalabel-value",
|
|
1744
|
-
"text-anchor":
|
|
1744
|
+
"text-anchor": fe(v.value[a].middlePoint),
|
|
1745
1745
|
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1746
1746
|
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1747
1747
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
@@ -1750,15 +1750,15 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1750
1750
|
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1751
1751
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1752
1752
|
}),
|
|
1753
|
-
onClick: (u) =>
|
|
1754
|
-
onMouseenter: (u) =>
|
|
1753
|
+
onClick: (u) => re(t, a),
|
|
1754
|
+
onMouseenter: (u) => ue({
|
|
1755
1755
|
datapoint: t,
|
|
1756
1756
|
relativeIndex: a,
|
|
1757
1757
|
seriesIndex: t.seriesIndex,
|
|
1758
1758
|
show: !0
|
|
1759
1759
|
}),
|
|
1760
|
-
onMouseleave: (u) =>
|
|
1761
|
-
},
|
|
1760
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1761
|
+
}, ne(De(t, N.value)) + " " + ne(e.value.style.chart.layout.labels.value.show ? `(${r(q)(
|
|
1762
1762
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1763
1763
|
t.value,
|
|
1764
1764
|
r(G)({
|
|
@@ -1772,7 +1772,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1772
1772
|
W(t) && m.value.dataLabels.show ? (s(), i("text", {
|
|
1773
1773
|
key: 1,
|
|
1774
1774
|
class: "vue-data-ui-datalabel-name",
|
|
1775
|
-
"text-anchor":
|
|
1775
|
+
"text-anchor": fe(v.value[a].middlePoint),
|
|
1776
1776
|
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1777
1777
|
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2,
|
|
1778
1778
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
@@ -1781,14 +1781,14 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1781
1781
|
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1782
1782
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1783
1783
|
}),
|
|
1784
|
-
onClick: (u) =>
|
|
1785
|
-
onMouseenter: (u) =>
|
|
1784
|
+
onClick: (u) => re(t, a),
|
|
1785
|
+
onMouseenter: (u) => ue({
|
|
1786
1786
|
datapoint: t,
|
|
1787
1787
|
relativeIndex: a,
|
|
1788
1788
|
seriesIndex: t.seriesIndex,
|
|
1789
1789
|
show: !0
|
|
1790
1790
|
}),
|
|
1791
|
-
onMouseleave: (u) =>
|
|
1791
|
+
onMouseleave: (u) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1792
1792
|
innerHTML: r(sl)({
|
|
1793
1793
|
content: t.name,
|
|
1794
1794
|
fontSize: Se.value,
|
|
@@ -1804,20 +1804,20 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1804
1804
|
W(t) && e.value.type === "classic" ? (s(), i("foreignObject", {
|
|
1805
1805
|
key: 0,
|
|
1806
1806
|
x: e.value.style.chart.comments.offsetX + (r(x)(t, !0).anchor === "end" ? r(x)(t).x - e.value.style.chart.comments.width : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - e.value.style.chart.comments.width / 2 : r(x)(t).x),
|
|
1807
|
-
y: r(
|
|
1807
|
+
y: r(ce)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1808
1808
|
width: e.value.style.chart.comments.width,
|
|
1809
1809
|
height: "200",
|
|
1810
1810
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1811
1811
|
}, [
|
|
1812
1812
|
y("div", null, [
|
|
1813
|
-
|
|
1813
|
+
b(l.$slots, "plot-comment", {
|
|
1814
1814
|
plot: { ...t, textAlign: r(x)(t, !0, 16, !0).anchor, flexAlign: r(x)(t, !0, 16).anchor, isFirstLoad: B.value }
|
|
1815
1815
|
}, void 0, !0)
|
|
1816
1816
|
])
|
|
1817
1817
|
], 8, Zo)) : d("", !0),
|
|
1818
1818
|
W(t) && e.value.type === "polar" ? (s(), i("foreignObject", {
|
|
1819
1819
|
key: 1,
|
|
1820
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1820
|
+
x: e.value.style.chart.comments.offsetX + (fe(v.value[a].middlePoint) === "end" ? r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : fe(v.value[a].middlePoint) === "middle" ? r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
|
|
1821
1821
|
y: Rl(v.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1822
1822
|
width: e.value.style.chart.comments.width,
|
|
1823
1823
|
height: "200",
|
|
@@ -1828,23 +1828,23 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1828
1828
|
})
|
|
1829
1829
|
}, [
|
|
1830
1830
|
y("div", null, [
|
|
1831
|
-
|
|
1832
|
-
plot: { ...t, textAlign:
|
|
1831
|
+
b(l.$slots, "plot-comment", {
|
|
1832
|
+
plot: { ...t, textAlign: fe(v.value[a].middlePoint), flexAlign: fe(v.value[a].middlePoint), isFirstLoad: B.value }
|
|
1833
1833
|
}, void 0, !0)
|
|
1834
1834
|
])
|
|
1835
1835
|
], 12, en)) : d("", !0)
|
|
1836
1836
|
])) : d("", !0)
|
|
1837
1837
|
], 10, Eo))), 128)),
|
|
1838
|
-
|
|
1838
|
+
b(l.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
1839
1839
|
], 512)
|
|
1840
1840
|
], 14, Ha)),
|
|
1841
1841
|
l.$slots.watermark ? (s(), i("div", tn, [
|
|
1842
|
-
|
|
1842
|
+
b(l.$slots, "watermark", Z(ee({ isPrinting: r(Yt) || r(Dt) })), void 0, !0)
|
|
1843
1843
|
])) : d("", !0),
|
|
1844
1844
|
y("div", {
|
|
1845
1845
|
id: `legend-bottom-${k.value}`
|
|
1846
1846
|
}, null, 8, ln),
|
|
1847
|
-
St.value ? (s(),
|
|
1847
|
+
St.value ? (s(), we(ia, {
|
|
1848
1848
|
key: 5,
|
|
1849
1849
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1850
1850
|
}, [
|
|
@@ -1852,7 +1852,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1852
1852
|
ref_key: "chartLegend",
|
|
1853
1853
|
ref: Ct
|
|
1854
1854
|
}, [
|
|
1855
|
-
e.value.style.chart.legend.show ? (s(),
|
|
1855
|
+
e.value.style.chart.legend.show ? (s(), we(Ea, {
|
|
1856
1856
|
key: `legend_${Tt.value}`,
|
|
1857
1857
|
legendSet: ut.value,
|
|
1858
1858
|
config: El.value,
|
|
@@ -1862,7 +1862,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1862
1862
|
y("div", {
|
|
1863
1863
|
style: M(`opacity:${j.value.includes(a) ? 0.5 : 1}`),
|
|
1864
1864
|
onClick: (u) => t.segregate()
|
|
1865
|
-
},
|
|
1865
|
+
}, ne(t.display), 13, an)
|
|
1866
1866
|
]),
|
|
1867
1867
|
_: 2
|
|
1868
1868
|
}, [
|
|
@@ -1880,7 +1880,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1880
1880
|
key: "0"
|
|
1881
1881
|
} : void 0
|
|
1882
1882
|
]), 1032, ["legendSet", "config"])) : d("", !0),
|
|
1883
|
-
|
|
1883
|
+
b(l.$slots, "legend", { legend: ut.value }, void 0, !0)
|
|
1884
1884
|
], 512)
|
|
1885
1885
|
], 8, ["to"])) : d("", !0),
|
|
1886
1886
|
l.$slots.source ? (s(), i("div", {
|
|
@@ -1889,16 +1889,16 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1889
1889
|
ref: xt,
|
|
1890
1890
|
dir: "auto"
|
|
1891
1891
|
}, [
|
|
1892
|
-
|
|
1892
|
+
b(l.$slots, "source", {}, void 0, !0)
|
|
1893
1893
|
], 512)) : d("", !0),
|
|
1894
1894
|
l.$slots.hollow ? (s(), i("div", on, [
|
|
1895
|
-
|
|
1895
|
+
b(l.$slots, "hollow", Z(ee({
|
|
1896
1896
|
total: V.value,
|
|
1897
1897
|
average: rt.value,
|
|
1898
1898
|
dataset: U.value
|
|
1899
1899
|
})), void 0, !0)
|
|
1900
1900
|
])) : d("", !0),
|
|
1901
|
-
qe(r(
|
|
1901
|
+
qe(r(bl), {
|
|
1902
1902
|
show: m.value.showTooltip && at.value,
|
|
1903
1903
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1904
1904
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1919,20 +1919,20 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1919
1919
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1920
1920
|
}, {
|
|
1921
1921
|
"tooltip-before": C(() => [
|
|
1922
|
-
|
|
1922
|
+
b(l.$slots, "tooltip-before", Z(ee({ ...it.value })), void 0, !0)
|
|
1923
1923
|
]),
|
|
1924
1924
|
"tooltip-after": C(() => [
|
|
1925
|
-
|
|
1925
|
+
b(l.$slots, "tooltip-after", Z(ee({ ...it.value })), void 0, !0)
|
|
1926
1926
|
]),
|
|
1927
1927
|
_: 3
|
|
1928
1928
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1929
|
-
Oe.value && e.value.userOptions.buttons.table ? (s(),
|
|
1929
|
+
Oe.value && e.value.userOptions.buttons.table ? (s(), we(ca(Be.value.component), gt({ key: 8 }, Be.value.props, {
|
|
1930
1930
|
ref_key: "tableUnit",
|
|
1931
1931
|
ref: Fe,
|
|
1932
1932
|
onClose: Wt
|
|
1933
1933
|
}), yt({
|
|
1934
1934
|
content: C(() => [
|
|
1935
|
-
(s(),
|
|
1935
|
+
(s(), we(r(wl), {
|
|
1936
1936
|
key: `table_${_t.value}`,
|
|
1937
1937
|
colNames: Ge.value.colNames,
|
|
1938
1938
|
head: Ge.value.head,
|
|
@@ -1949,7 +1949,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1949
1949
|
}, null, 8, nn)
|
|
1950
1950
|
]),
|
|
1951
1951
|
td: C(({ td: t }) => [
|
|
1952
|
-
ll(
|
|
1952
|
+
ll(ne(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(q)(
|
|
1953
1953
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1954
1954
|
t,
|
|
1955
1955
|
r(G)({
|
|
@@ -1976,7 +1976,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1976
1976
|
e.value.table.useDialog ? {
|
|
1977
1977
|
name: "title",
|
|
1978
1978
|
fn: C(() => [
|
|
1979
|
-
ll(
|
|
1979
|
+
ll(ne(Be.value.title), 1)
|
|
1980
1980
|
]),
|
|
1981
1981
|
key: "0"
|
|
1982
1982
|
} : void 0,
|
|
@@ -1988,7 +1988,7 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1988
1988
|
class: "vue-ui-user-options-button",
|
|
1989
1989
|
onClick: o[4] || (o[4] = (t) => ct(e.value.userOptions.callbacks.csv))
|
|
1990
1990
|
}, [
|
|
1991
|
-
qe(r(
|
|
1991
|
+
qe(r(pl), {
|
|
1992
1992
|
name: "excel",
|
|
1993
1993
|
stroke: Be.value.props.color
|
|
1994
1994
|
}, null, 8, ["stroke"])
|
|
@@ -1997,10 +1997,10 @@ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1997
1997
|
key: "1"
|
|
1998
1998
|
} : void 0
|
|
1999
1999
|
]), 1040)) : d("", !0),
|
|
2000
|
-
r(Ne) ? (s(),
|
|
2000
|
+
r(Ne) ? (s(), we(La, { key: 9 })) : d("", !0)
|
|
2001
2001
|
], 46, Va));
|
|
2002
2002
|
}
|
|
2003
|
-
}, un = /* @__PURE__ */ Na(sn, [["__scopeId", "data-v-
|
|
2003
|
+
}, un = /* @__PURE__ */ Na(sn, [["__scopeId", "data-v-d4a8eccb"]]), An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2004
2004
|
__proto__: null,
|
|
2005
2005
|
default: un
|
|
2006
2006
|
}, Symbol.toStringTag, { value: "Module" }));
|