vue-data-ui 3.15.12 → 3.16.1
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/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-bump.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/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,1297 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as M, ref as i, shallowRef as St, computed as d, onMounted as wl, toRefs as Al, nextTick as he, watch as ye, watchEffect as _t, onBeforeUnmount as Ll, openBlock as s, createElementBlock as n, unref as c, normalizeStyle as Y, normalizeClass as N, createBlock as z, withCtx as g, renderSlot as m, normalizeProps as D, guardReactiveProps as I, createCommentVNode as v, createElementVNode as k, createSlots as $t, createVNode as zt, Fragment as _, renderList as $, toDisplayString as C, Teleport as Sl, resolveDynamicComponent as _l, mergeProps as $l, createTextVNode as Fe } from "vue";
|
|
2
|
-
import { j as Tt, o as Pt, q as ge, r as zl, t as Dt, m as Tl, p as fe, n as Pl, s as Ve, a7 as Dl, a8 as It, D as Il, a3 as Me, k as Be, l as be, X as Ol, u as le, a9 as Nl, Z as Rl, a4 as El, a5 as Fl, a6 as Ot, a0 as Vl, a1 as Ml, aa as Nt, ab as Bl } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { t as Rt, u as Ul } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Hl } from "./useConfig-CIgyKZ6R.js";
|
|
5
|
-
import { u as Wl } from "./usePrinter-DiK5R6k-.js";
|
|
6
|
-
import { u as Xl, B as Gl } from "./BaseScanner-BhhkKVoj.js";
|
|
7
|
-
import { u as Yl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
-
import { u as jl } from "./useTimeLabels-C-A2uZKi.js";
|
|
9
|
-
import { u as Ue } from "./useNestedProp-BBT0mbHh.js";
|
|
10
|
-
import { u as ql } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
|
-
import { u as Zl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as Jl } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
-
import { u as Kl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
|
-
import Ql from "./img-BYYzY_QU.js";
|
|
15
|
-
import ea from "./Title-BfyrP-jp.js";
|
|
16
|
-
import ta from "./vue_ui_donut_evolution-DFQU-rqE.js";
|
|
17
|
-
import la from "./Legend-1LMMsPxL.js";
|
|
18
|
-
import { S as aa } from "./Slicer-DZJA9IG-.js";
|
|
19
|
-
import { B as oa } from "./BaseLegendToggle-Y61xahI4.js";
|
|
20
|
-
import { _ as ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
|
-
const sa = ["id"], na = ["id"], ra = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"], ca = ["id"], va = ["stop-color"], da = ["stop-color"], ha = ["id"], ya = ["stop-color"], ga = ["stop-color"], fa = ["stop-color"], ba = { key: 1 }, ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = { key: 0 }, ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["font-size", "fill", "transform"], wa = ["x", "y", "font-size", "fill"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], La = ["x", "y", "font-size", "fill", "font-weight"], Sa = { key: 0 }, _a = ["text-anchor", "font-size", "fill", "transform"], $a = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], za = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ta = { key: 1 }, Pa = ["cx", "cy", "r", "fill"], Da = { key: 0 }, Ia = { key: 0 }, Oa = ["d", "stroke"], Na = ["text-anchor", "x", "y", "fill"], Ra = ["cx", "cy", "r", "fill"], Ea = { key: 0 }, Fa = ["cx", "cy", "fill"], Va = { key: 1 }, Ma = ["d", "fill", "stroke"], Ba = { key: 2 }, Ua = ["d", "fill", "stroke"], Ha = ["x", "y", "font-size", "fill"], Wa = ["x", "y", "width", "height", "fill"], Xa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Ga = {
|
|
22
|
-
key: 4,
|
|
23
|
-
class: "vue-data-ui-watermark"
|
|
24
|
-
}, Ya = ["id"], ja = ["onClick"], qa = { key: 0 }, Za = { key: 1 }, Ja = {
|
|
25
|
-
__name: "vue-ui-donut-evolution",
|
|
26
|
-
props: {
|
|
27
|
-
config: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default() {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
dataset: {
|
|
34
|
-
type: Array,
|
|
35
|
-
default() {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
emits: ["selectLegend", "copyAlt"],
|
|
41
|
-
setup(Et, { expose: Ft, emit: Vt }) {
|
|
42
|
-
const Mt = M(() => import("./vue-ui-accordion-BGHTqIBt.js")), Bt = M(() => import("./BaseIcon-CNx8Tzl5.js")), Ut = M(() => import("./DataTable-Bo1pmAqG.js")), Ht = M(() => import("./PackageVersion-DN9d0ME5.js")), Wt = M(() => import("./PenAndPaper-DWV1FMIi.js")), Xt = M(() => import("./UserOptions-CrLqEimB.js")), Gt = M(() => import("./vue-ui-donut-CzCgCVsx.js")), He = M(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_donut_evolution: Yt } = Hl(), { isThemeValid: jt, warnInvalidTheme: qt } = ql(), S = Et, O = i(Tt()), p = i([]), b = i(null), ae = i(null), me = i(!1), B = i(null), R = i(null), Zt = i(null), We = i(0), Xe = i(0), Ge = i(0), Ye = i(0), je = i(0), pe = i(null), oe = i(null), xe = i(null), ke = i(null), qe = i(!1), j = i(null), Ce = i(null), ue = i(!1), se = i(!1), Ze = i(null), Je = i(null), Ke = i(null), Qe = i(null), et = i(null), we = i(!1), q = St(null), ne = St(null), tt = i(null), Ae = Vt, lt = d(() => !!S.dataset && S.dataset.length);
|
|
43
|
-
wl(() => {
|
|
44
|
-
qe.value = !0, at();
|
|
45
|
-
});
|
|
46
|
-
const re = d(() => !!e.value.debug);
|
|
47
|
-
function at() {
|
|
48
|
-
if (Pt(S.dataset) ? (ge({
|
|
49
|
-
componentName: "VueUiDonutEvolution",
|
|
50
|
-
type: "dataset",
|
|
51
|
-
debug: re.value
|
|
52
|
-
}), ie.value = !0) : S.dataset.length && S.dataset.forEach((t, a) => {
|
|
53
|
-
zl({
|
|
54
|
-
datasetObject: t,
|
|
55
|
-
requiredAttributes: ["name", "values"]
|
|
56
|
-
}).forEach((l) => {
|
|
57
|
-
ge({
|
|
58
|
-
componentName: "VueUiDonutEvolution",
|
|
59
|
-
type: "datasetSerieAttribute",
|
|
60
|
-
property: l,
|
|
61
|
-
index: a,
|
|
62
|
-
debug: re.value
|
|
63
|
-
}), ie.value = !0;
|
|
64
|
-
});
|
|
65
|
-
}), Pt(S.dataset) || (ie.value = e.value.loading), setTimeout(() => {
|
|
66
|
-
we.value = !0;
|
|
67
|
-
}, 10), _e(), e.value.responsive) {
|
|
68
|
-
const t = Rt(() => {
|
|
69
|
-
we.value = !1;
|
|
70
|
-
const { width: a, height: l } = Ul({
|
|
71
|
-
chart: R.value,
|
|
72
|
-
title: e.value.style.chart.title.text ? Ze.value : null,
|
|
73
|
-
legend: e.value.style.chart.legend.show ? Je.value : null,
|
|
74
|
-
slicer: e.value.style.chart.zoom.show && ot.value > 1 ? et.value : null,
|
|
75
|
-
source: Ke.value
|
|
76
|
-
});
|
|
77
|
-
requestAnimationFrame(() => {
|
|
78
|
-
X.value.width = a, X.value.height = l - 12, clearTimeout(tt.value), tt.value = setTimeout(() => {
|
|
79
|
-
we.value = !0;
|
|
80
|
-
}, 10);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
q.value && (ne.value && q.value.unobserve(ne.value), q.value.disconnect()), q.value = new ResizeObserver(t), ne.value = R.value.parentNode, q.value.observe(ne.value);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const e = i(Te()), E = d(() => e.value.userOptions.useCursorPointer), Jt = d(() => Dt({
|
|
87
|
-
defaultConfig: {
|
|
88
|
-
useCssAnimation: !1,
|
|
89
|
-
table: { show: !1 },
|
|
90
|
-
userOptions: { show: !1 },
|
|
91
|
-
style: {
|
|
92
|
-
chart: {
|
|
93
|
-
backgroundColor: "#99999930",
|
|
94
|
-
layout: {
|
|
95
|
-
dataLabels: { show: !1 },
|
|
96
|
-
grid: {
|
|
97
|
-
stroke: "#6A6A6A",
|
|
98
|
-
axis: {
|
|
99
|
-
yLabel: "",
|
|
100
|
-
xLabel: ""
|
|
101
|
-
},
|
|
102
|
-
yAxis: {
|
|
103
|
-
scaleMin: null,
|
|
104
|
-
scaleMax: null,
|
|
105
|
-
autoScale: !1,
|
|
106
|
-
dataLabels: { show: !1 }
|
|
107
|
-
},
|
|
108
|
-
xAxis: {
|
|
109
|
-
dataLabels: { show: !1 }
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
line: {
|
|
113
|
-
stroke: "#CACACA60"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
legend: {
|
|
117
|
-
backgroundColor: "transparent",
|
|
118
|
-
showValue: !1,
|
|
119
|
-
showPercentage: !1
|
|
120
|
-
},
|
|
121
|
-
zoom: {
|
|
122
|
-
show: !1,
|
|
123
|
-
startIndex: null,
|
|
124
|
-
endIndex: null
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
130
|
-
})), { loading: Le, FINAL_DATASET: Se, manualLoading: ie } = Xl({
|
|
131
|
-
...Al(S),
|
|
132
|
-
FINAL_CONFIG: e,
|
|
133
|
-
prepareConfig: Te,
|
|
134
|
-
callback: () => {
|
|
135
|
-
Promise.resolve().then(async () => {
|
|
136
|
-
await _e();
|
|
137
|
-
});
|
|
138
|
-
},
|
|
139
|
-
skeletonDataset: S.config?.skeletonDataset ?? [
|
|
140
|
-
{
|
|
141
|
-
name: "",
|
|
142
|
-
values: [1, 2, 3, 5, 8, 13],
|
|
143
|
-
color: "#AAAAAA"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "",
|
|
147
|
-
values: [1, 2, 3, 5, 8, 13],
|
|
148
|
-
color: "#BABABA"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "",
|
|
152
|
-
values: [1, 2, 3, 5, 8, 13],
|
|
153
|
-
color: "#CACACA"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
skeletonConfig: Dt({
|
|
157
|
-
defaultConfig: e.value,
|
|
158
|
-
userConfig: Jt.value
|
|
159
|
-
})
|
|
160
|
-
}), X = i({
|
|
161
|
-
width: e.value.style.chart.layout.width,
|
|
162
|
-
height: e.value.style.chart.layout.height
|
|
163
|
-
}), ot = d(() => Math.max(...Se.value.map((t) => t.values.length))), h = i({
|
|
164
|
-
start: 0,
|
|
165
|
-
end: ot.value
|
|
166
|
-
});
|
|
167
|
-
function ut() {
|
|
168
|
-
_e();
|
|
169
|
-
}
|
|
170
|
-
async function _e() {
|
|
171
|
-
await he(), await he();
|
|
172
|
-
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Qe.value;
|
|
173
|
-
h.value = { start: 0, max: P.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Kt(a + 1)) : (h.value.end = P.value, l.setEndValue(P.value))) : (h.value = {
|
|
174
|
-
start: 0,
|
|
175
|
-
end: P.value
|
|
176
|
-
}, Xe.value += 1);
|
|
177
|
-
}
|
|
178
|
-
function Kt(t) {
|
|
179
|
-
const a = P.value;
|
|
180
|
-
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
181
|
-
}
|
|
182
|
-
const { userOptionsVisible: $e, setUserOptionsVisibility: st, keepUserOptionState: nt } = Zl({ config: e.value }), { svgRef: ze } = Jl({ config: e.value.style.chart.title });
|
|
183
|
-
function Te() {
|
|
184
|
-
const t = Ue({
|
|
185
|
-
userConfig: S.config,
|
|
186
|
-
defaultConfig: Yt
|
|
187
|
-
});
|
|
188
|
-
let a = {};
|
|
189
|
-
const l = t.theme;
|
|
190
|
-
if (l)
|
|
191
|
-
if (!jt.value(t))
|
|
192
|
-
qt(t), a = t;
|
|
193
|
-
else {
|
|
194
|
-
const u = Ue({
|
|
195
|
-
userConfig: ta[l] || S.config,
|
|
196
|
-
defaultConfig: t
|
|
197
|
-
});
|
|
198
|
-
a = {
|
|
199
|
-
...Ue({
|
|
200
|
-
userConfig: S.config,
|
|
201
|
-
defaultConfig: u
|
|
202
|
-
}),
|
|
203
|
-
customPalette: t.customPalette ? t.customPalette : Tl[l] || fe
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
else
|
|
207
|
-
a = t;
|
|
208
|
-
return a;
|
|
209
|
-
}
|
|
210
|
-
ye(() => S.config, (t) => {
|
|
211
|
-
Le.value || (e.value = Te()), $e.value = !e.value.userOptions.showOnChartHover, at(), Ge.value += 1, Ye.value += 1, je.value += 1, U.value.showTable = e.value.table.show;
|
|
212
|
-
}, { deep: !0 }), ye(() => S.dataset, (t) => {
|
|
213
|
-
Array.isArray(t) && t.length > 0 && (ie.value = !1), ut();
|
|
214
|
-
}, { deep: !0 });
|
|
215
|
-
const { isPrinting: Pe, isImaging: De, generatePdf: rt, generateImage: it } = Wl({
|
|
216
|
-
elementId: O.value,
|
|
217
|
-
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
218
|
-
options: e.value.userOptions.print
|
|
219
|
-
}), Qt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), el = d(() => Pl(e.value.customPalette)), U = i({
|
|
220
|
-
showTable: e.value.table.show
|
|
221
|
-
});
|
|
222
|
-
ye(e, () => {
|
|
223
|
-
U.value = {
|
|
224
|
-
showTable: e.value.table.show
|
|
225
|
-
};
|
|
226
|
-
}, { immediate: !0 });
|
|
227
|
-
const H = d(() => ({
|
|
228
|
-
top: e.value.style.chart.layout.padding.top,
|
|
229
|
-
right: e.value.style.chart.layout.padding.right,
|
|
230
|
-
bottom: e.value.style.chart.layout.padding.bottom,
|
|
231
|
-
left: e.value.style.chart.layout.padding.left
|
|
232
|
-
}));
|
|
233
|
-
function tl() {
|
|
234
|
-
let t = 0;
|
|
235
|
-
pe.value && (t = Array.from(pe.value.querySelectorAll("text")).reduce((o, f) => {
|
|
236
|
-
const y = f.getComputedTextLength();
|
|
237
|
-
return y > o ? y : o;
|
|
238
|
-
}, 0));
|
|
239
|
-
const a = ke.value ? ke.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
240
|
-
return t + a + 5;
|
|
241
|
-
}
|
|
242
|
-
const Ie = i(0), ll = Rt((t) => {
|
|
243
|
-
Ie.value = t;
|
|
244
|
-
}, 100);
|
|
245
|
-
_t((t) => {
|
|
246
|
-
const a = oe.value;
|
|
247
|
-
if (!a) return;
|
|
248
|
-
const l = new ResizeObserver((u) => {
|
|
249
|
-
ll(u[0].contentRect.height);
|
|
250
|
-
});
|
|
251
|
-
l.observe(a), t(() => l.disconnect());
|
|
252
|
-
}), Ll(() => {
|
|
253
|
-
Ie.value = 0;
|
|
254
|
-
});
|
|
255
|
-
const ct = d(() => {
|
|
256
|
-
let t = 0;
|
|
257
|
-
xe.value && (t = xe.value.getBBox().height);
|
|
258
|
-
let a = 0;
|
|
259
|
-
return oe.value && (a = Ie.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
260
|
-
}), r = d(() => {
|
|
261
|
-
const t = tl(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = X.value.width, u = X.value.height, o = H.value.left + t, f = l - H.value.right, y = l - o - H.value.right, x = u - H.value.top - H.value.bottom - a - ct.value, V = H.value.top + a, ee = u - H.value.bottom - ct.value;
|
|
262
|
-
return {
|
|
263
|
-
top: V,
|
|
264
|
-
left: o,
|
|
265
|
-
right: f,
|
|
266
|
-
bottom: ee,
|
|
267
|
-
absoluteHeight: u,
|
|
268
|
-
absoluteWidth: l,
|
|
269
|
-
centerX: o + Math.max(10, y) / 2,
|
|
270
|
-
centerY: V + Math.max(10, x) / 2,
|
|
271
|
-
width: Math.max(10, y),
|
|
272
|
-
height: Math.max(10, x)
|
|
273
|
-
};
|
|
274
|
-
}), T = d(() => (Se.value.forEach((t, a) => {
|
|
275
|
-
[null, void 0].includes(t.name) && ge({
|
|
276
|
-
componentName: "VueUiDonutEvolution",
|
|
277
|
-
type: "datasetSerieAttribute",
|
|
278
|
-
property: "name",
|
|
279
|
-
index: a,
|
|
280
|
-
debug: re.value
|
|
281
|
-
}), [null, void 0].includes(t.values) && ge({
|
|
282
|
-
componentName: "VueUiDonutEvolution",
|
|
283
|
-
type: "datasetSerieAttribute",
|
|
284
|
-
property: "values",
|
|
285
|
-
index: a,
|
|
286
|
-
debug: re.value
|
|
287
|
-
});
|
|
288
|
-
}), Se.value.map((t, a) => ({
|
|
289
|
-
...t,
|
|
290
|
-
values: Dl(t.values),
|
|
291
|
-
color: Ve(t.color) || el.value[a] || fe[a] || fe[a % fe.length],
|
|
292
|
-
length: (t.values || []).length,
|
|
293
|
-
uid: Tt()
|
|
294
|
-
})))), ce = d(() => T.value.filter((t) => !p.value.includes(t.uid)).map((t) => ({
|
|
295
|
-
...t,
|
|
296
|
-
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
297
|
-
}))), P = d(() => Math.max(...T.value.map((t) => t.length))), w = i([]);
|
|
298
|
-
let vt = 0;
|
|
299
|
-
_t(() => {
|
|
300
|
-
const t = ++vt;
|
|
301
|
-
(async () => {
|
|
302
|
-
const a = await jl({
|
|
303
|
-
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
304
|
-
maxDatapoints: P.value,
|
|
305
|
-
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
306
|
-
start: h.value.start,
|
|
307
|
-
end: h.value.end
|
|
308
|
-
});
|
|
309
|
-
t === vt && (w.value = a);
|
|
310
|
-
})();
|
|
311
|
-
});
|
|
312
|
-
const A = d(() => r.value.width / (h.value.end - h.value.start)), ve = d(() => {
|
|
313
|
-
const t = [];
|
|
314
|
-
for (let a = 0; a < h.value.end - h.value.start; a += 1) {
|
|
315
|
-
const l = ce.value.map((x) => x.values[a] ?? null), u = l.filter((x) => [void 0, null].includes(x)).length === l.length, o = l.reduce((x, V) => x + V, 0), f = l.map((x) => x / o), y = r.value.left + A.value * a + A.value / 2;
|
|
316
|
-
t.push({
|
|
317
|
-
index: a,
|
|
318
|
-
percentages: f,
|
|
319
|
-
subtotal: u || o < 0 ? null : o,
|
|
320
|
-
values: l,
|
|
321
|
-
x: y
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
return t;
|
|
325
|
-
}), Oe = d(() => {
|
|
326
|
-
const t = Math.max(...ve.value.map((o) => o.subtotal).filter((o) => It(o))) ?? 1, a = Math.min(...ve.value.map((o) => o.subtotal).filter((o) => It(o))) ?? 0;
|
|
327
|
-
let l = Math.max(e.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, t), u;
|
|
328
|
-
return e.value.style.chart.layout.grid.yAxis.scaleMin != null ? u = Math.min(a, e.value.style.chart.layout.grid.yAxis.scaleMin) : u = 0, e.value.style.chart.layout.grid.yAxis.autoScale && (u = a, l = t), u === l && (u = l / 2, l *= 1.5), {
|
|
329
|
-
max: l,
|
|
330
|
-
min: u
|
|
331
|
-
};
|
|
332
|
-
}), F = d(() => {
|
|
333
|
-
const t = ve.value.length === 1 ? Oe.value.max * 2 : Oe.value.max;
|
|
334
|
-
return Il(Oe.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
335
|
-
});
|
|
336
|
-
function dt(t) {
|
|
337
|
-
return (t - F.value.min) / (F.value.max - F.value.min);
|
|
338
|
-
}
|
|
339
|
-
const al = d(() => F.value.ticks.map((t) => ({
|
|
340
|
-
y: r.value.bottom - r.value.height * dt(t),
|
|
341
|
-
value: t
|
|
342
|
-
}))), L = d(() => {
|
|
343
|
-
const t = ve.value, a = Math.max(...t.map((l) => l.subtotal));
|
|
344
|
-
return t.length === 1 && a * 2, t.map((l, u) => {
|
|
345
|
-
const o = Math.min(r.value.width / 24, A.value / 2 * 0.7), f = o > r.value.width / 16 ? r.value.width / 16 : o, y = b.value === l.index ? r.value.width / 16 : f, x = t.length > 4 ? o * 2 : o * 2 > A.value / 2 * 0.7 ? A.value / 2 * 0.7 : o * 2, V = r.value.bottom - r.value.height * dt(l.subtotal), ee = ce.value.map((te) => ({
|
|
346
|
-
color: te.color,
|
|
347
|
-
name: te.name,
|
|
348
|
-
value: te.values[u] ?? 0
|
|
349
|
-
})).toSorted((te, Cl) => Cl.value - te.value);
|
|
350
|
-
return {
|
|
351
|
-
...l,
|
|
352
|
-
y: V,
|
|
353
|
-
radius: f,
|
|
354
|
-
activeRadius: y,
|
|
355
|
-
hoverRadius: x,
|
|
356
|
-
donut: Me({ series: ee }, l.x, V, f, f, 1.99999, 2, 1, 360, 105.25, f / 2),
|
|
357
|
-
donutHover: Me({ series: ee }, l.x, V, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
|
|
358
|
-
donutFocus: Me({ series: ee }, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
|
|
359
|
-
};
|
|
360
|
-
});
|
|
361
|
-
});
|
|
362
|
-
function ht(t, a, l) {
|
|
363
|
-
return Be(
|
|
364
|
-
e.value.style.chart.layout.dataLabels.formatter,
|
|
365
|
-
t,
|
|
366
|
-
be({
|
|
367
|
-
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
368
|
-
v: t,
|
|
369
|
-
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
370
|
-
r: e.value.style.chart.layout.dataLabels.rounding
|
|
371
|
-
}),
|
|
372
|
-
{ datapoint: a, index: l }
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
function ol(t, a) {
|
|
376
|
-
return isNaN(t.value / Nt(a, "value")) ? 0 : (t.value / Nt(a, "value") * 100).toFixed(0) + "%";
|
|
377
|
-
}
|
|
378
|
-
function yt(t) {
|
|
379
|
-
b.value = null, ae.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
380
|
-
}
|
|
381
|
-
function ul(t) {
|
|
382
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index, ae.value = t;
|
|
383
|
-
}
|
|
384
|
-
const Z = i(null);
|
|
385
|
-
function gt(t, a) {
|
|
386
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (ae.value = null, b.value = null, me.value = !0, B.value = t, vl(t), [null, void 0].includes(a) || (Z.value = a));
|
|
387
|
-
}
|
|
388
|
-
const J = d(() => T.value.map((t, a) => ({
|
|
389
|
-
name: t.name,
|
|
390
|
-
value: t.values.slice(h.value.start, h.value.end).reduce((l, u) => l + u, 0),
|
|
391
|
-
shape: "circle",
|
|
392
|
-
uid: t.uid,
|
|
393
|
-
color: t.color
|
|
394
|
-
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
395
|
-
...t,
|
|
396
|
-
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
397
|
-
segregate: () => K(t.uid),
|
|
398
|
-
isSegregated: p.value.includes(t.uid),
|
|
399
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Be(
|
|
400
|
-
e.value.style.chart.layout.dataLabels.formatter,
|
|
401
|
-
t.value,
|
|
402
|
-
be({
|
|
403
|
-
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
404
|
-
v: t.value,
|
|
405
|
-
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
406
|
-
r: e.value.style.chart.legend.roundingValue
|
|
407
|
-
}),
|
|
408
|
-
{ datapoint: t, seriesIndex: a }
|
|
409
|
-
) : ""}${e.value.style.chart.legend.showPercentage ? p.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ft.value) ? "-" : be({
|
|
410
|
-
v: t.value / ft.value * 100,
|
|
411
|
-
s: "%",
|
|
412
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
413
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
414
|
-
}))), ft = d(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), sl = d(() => ({
|
|
415
|
-
cy: "donut-div-legend",
|
|
416
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
417
|
-
color: e.value.style.chart.legend.color,
|
|
418
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
419
|
-
paddingBottom: 12,
|
|
420
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
421
|
-
}));
|
|
422
|
-
function nl() {
|
|
423
|
-
p.value.length ? p.value = [] : J.value.forEach((t) => {
|
|
424
|
-
p.value.push(t.uid);
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
function K(t) {
|
|
428
|
-
if (p.value.includes(t))
|
|
429
|
-
p.value = p.value.filter((a) => a !== t), Ae("selectLegend", ce.value);
|
|
430
|
-
else {
|
|
431
|
-
if (p.value.length === T.value.length - 1) return;
|
|
432
|
-
p.value.push(t), Ae("selectLegend", ce.value);
|
|
433
|
-
}
|
|
434
|
-
B.value && gt(L.value.find((a, l) => l === Z.value));
|
|
435
|
-
}
|
|
436
|
-
function bt(t) {
|
|
437
|
-
if (!T.value.length)
|
|
438
|
-
return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
|
|
439
|
-
const a = T.value.find((l) => l.name === t);
|
|
440
|
-
return a || (e.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${t}"`), null);
|
|
441
|
-
}
|
|
442
|
-
function rl(t) {
|
|
443
|
-
const a = bt(t);
|
|
444
|
-
a !== null && p.value.includes(a.uid) && K(a.uid);
|
|
445
|
-
}
|
|
446
|
-
function il(t) {
|
|
447
|
-
const a = bt(t);
|
|
448
|
-
a !== null && (p.value.includes(a.uid) || K(a.uid));
|
|
449
|
-
}
|
|
450
|
-
const G = d(() => {
|
|
451
|
-
const t = [""].concat(T.value.filter((o) => !p.value.includes(o.uid)).map((o) => ({
|
|
452
|
-
name: o.name,
|
|
453
|
-
color: o.color
|
|
454
|
-
}))).concat(["Σ"]);
|
|
455
|
-
let a = [];
|
|
456
|
-
for (let o = 0; o < P.value; o += 1) {
|
|
457
|
-
const f = T.value.filter((y) => !p.value.includes(y.uid)).map((y) => y.values[o] ?? 0).reduce((y, x) => y + x, 0);
|
|
458
|
-
a.push([w.value[o] ? w.value[o].text : "-"].concat(T.value.filter((y) => !p.value.includes(y.uid)).map((y) => ({
|
|
459
|
-
value: y.values[o] ?? 0,
|
|
460
|
-
percentage: y.values[o] ? y.values[o] / f * 100 : 0
|
|
461
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
462
|
-
}
|
|
463
|
-
const l = {
|
|
464
|
-
th: {
|
|
465
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
466
|
-
color: e.value.table.th.color,
|
|
467
|
-
outline: e.value.table.th.outline
|
|
468
|
-
},
|
|
469
|
-
td: {
|
|
470
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
471
|
-
color: e.value.table.td.color,
|
|
472
|
-
outline: e.value.table.td.outline
|
|
473
|
-
},
|
|
474
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
475
|
-
}, u = [
|
|
476
|
-
e.value.table.columnNames.period
|
|
477
|
-
].concat(T.value.filter((o) => !p.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
478
|
-
return { head: t, body: a, config: l, colNames: u };
|
|
479
|
-
});
|
|
480
|
-
function cl() {
|
|
481
|
-
return T.value;
|
|
482
|
-
}
|
|
483
|
-
function Ne(t = null) {
|
|
484
|
-
he(() => {
|
|
485
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...G.value.head.map((y) => y.name ?? y)], u = [...G.value.body.map((y) => y.map((x) => x.value ?? x))], o = a.concat([l]).concat(u), f = Vl(o);
|
|
486
|
-
t ? t(f) : Ml({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
const W = i(!1);
|
|
490
|
-
function mt(t) {
|
|
491
|
-
W.value = t, We.value += 1;
|
|
492
|
-
}
|
|
493
|
-
function pt() {
|
|
494
|
-
U.value.showTable = !U.value.showTable;
|
|
495
|
-
}
|
|
496
|
-
const de = i(!1);
|
|
497
|
-
function Re() {
|
|
498
|
-
de.value = !de.value;
|
|
499
|
-
}
|
|
500
|
-
function xt(t) {
|
|
501
|
-
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
502
|
-
}
|
|
503
|
-
const kt = i([]), Ct = i({}), Ee = i(null);
|
|
504
|
-
function vl(t) {
|
|
505
|
-
kt.value = t.donut.map((a) => ({
|
|
506
|
-
name: a.name,
|
|
507
|
-
values: [a.value],
|
|
508
|
-
color: a.color
|
|
509
|
-
})), Ct.value = Bl({
|
|
510
|
-
...e.value.style.chart.dialog.donutChart,
|
|
511
|
-
responsive: !0,
|
|
512
|
-
theme: e.value.theme
|
|
513
|
-
}), Ee.value && Ee.value.open();
|
|
514
|
-
}
|
|
515
|
-
async function dl({ scale: t = 2 } = {}) {
|
|
516
|
-
if (!R.value) return;
|
|
517
|
-
const { width: a, height: l } = R.value.getBoundingClientRect(), u = a / l, { imageUri: o, base64: f } = await Ql({ domElement: R.value, base64: !0, img: !0, scale: t });
|
|
518
|
-
return {
|
|
519
|
-
imageUri: o,
|
|
520
|
-
base64: f,
|
|
521
|
-
title: e.value.style.chart.title.text,
|
|
522
|
-
width: a,
|
|
523
|
-
height: l,
|
|
524
|
-
aspectRatio: u
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
const hl = d(() => X.value.width), yl = d(() => X.value.height);
|
|
528
|
-
Kl({
|
|
529
|
-
timeLabelsEls: oe,
|
|
530
|
-
timeLabels: w,
|
|
531
|
-
slicer: h,
|
|
532
|
-
configRef: e,
|
|
533
|
-
rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
534
|
-
autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
535
|
-
isAutoSize: !1,
|
|
536
|
-
width: hl,
|
|
537
|
-
height: yl,
|
|
538
|
-
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
539
|
-
});
|
|
540
|
-
const Q = d(() => {
|
|
541
|
-
const t = e.value.table.useDialog && !e.value.table.show, a = U.value.showTable;
|
|
542
|
-
return {
|
|
543
|
-
component: t ? He : Mt,
|
|
544
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
545
|
-
props: t ? {
|
|
546
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
547
|
-
color: e.value.table.th.color,
|
|
548
|
-
headerColor: e.value.table.th.color,
|
|
549
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
550
|
-
isFullscreen: W.value,
|
|
551
|
-
fullscreenParent: R.value,
|
|
552
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
553
|
-
isCursorPointer: E.value
|
|
554
|
-
} : {
|
|
555
|
-
hideDetails: !0,
|
|
556
|
-
config: {
|
|
557
|
-
open: a,
|
|
558
|
-
maxHeight: 1e4,
|
|
559
|
-
body: {
|
|
560
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
561
|
-
color: e.value.style.chart.color
|
|
562
|
-
},
|
|
563
|
-
head: {
|
|
564
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
|
-
color: e.value.style.chart.color
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
});
|
|
571
|
-
ye(() => U.value.showTable, (t) => {
|
|
572
|
-
e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
573
|
-
});
|
|
574
|
-
function wt() {
|
|
575
|
-
U.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
|
|
576
|
-
}
|
|
577
|
-
const gl = d(() => J.value.map((t) => ({
|
|
578
|
-
...t,
|
|
579
|
-
name: t.display
|
|
580
|
-
}))), fl = d(() => e.value.style.chart.backgroundColor), bl = d(() => e.value.style.chart.legend), ml = d(() => e.value.style.chart.title), { exportSvg: pl, getSvg: xl } = Yl({
|
|
581
|
-
svg: ze,
|
|
582
|
-
title: ml,
|
|
583
|
-
legend: bl,
|
|
584
|
-
legendItems: gl,
|
|
585
|
-
backgroundColor: fl
|
|
586
|
-
});
|
|
587
|
-
async function At({ isCb: t }) {
|
|
588
|
-
se.value = !0, await he();
|
|
589
|
-
try {
|
|
590
|
-
if (t) {
|
|
591
|
-
const { blob: a, url: l, text: u, dataUrl: o } = await xl();
|
|
592
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: u, dataUrl: o }));
|
|
593
|
-
} else
|
|
594
|
-
await Promise.resolve(pl());
|
|
595
|
-
} finally {
|
|
596
|
-
se.value = !1;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
function kl(t) {
|
|
600
|
-
if (t?.stage === "start") {
|
|
601
|
-
ue.value = !0;
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
if (t?.stage === "end") {
|
|
605
|
-
ue.value = !1;
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
|
-
it();
|
|
609
|
-
}
|
|
610
|
-
async function Lt() {
|
|
611
|
-
if (Ae("copyAlt", {
|
|
612
|
-
config: e.value,
|
|
613
|
-
dataset: L.value
|
|
614
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
615
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
616
|
-
return;
|
|
617
|
-
}
|
|
618
|
-
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
619
|
-
config: e.value,
|
|
620
|
-
dataset: L.value
|
|
621
|
-
}));
|
|
622
|
-
}
|
|
623
|
-
return Ft({
|
|
624
|
-
getData: cl,
|
|
625
|
-
getImage: dl,
|
|
626
|
-
generatePdf: rt,
|
|
627
|
-
generateCsv: Ne,
|
|
628
|
-
generateImage: it,
|
|
629
|
-
generateSvg: At,
|
|
630
|
-
hideSeries: il,
|
|
631
|
-
showSeries: rl,
|
|
632
|
-
toggleTable: pt,
|
|
633
|
-
toggleAnnotator: Re,
|
|
634
|
-
toggleFullscreen: mt,
|
|
635
|
-
copyAlt: Lt
|
|
636
|
-
}), (t, a) => (s(), n("div", {
|
|
637
|
-
ref_key: "donutEvolutionChart",
|
|
638
|
-
ref: R,
|
|
639
|
-
class: N(`vue-data-ui-component vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
640
|
-
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
641
|
-
id: O.value,
|
|
642
|
-
onMouseenter: a[5] || (a[5] = () => c(st)(!0)),
|
|
643
|
-
onMouseleave: a[6] || (a[6] = () => c(st)(!1))
|
|
644
|
-
}, [
|
|
645
|
-
e.value.userOptions.buttons.annotator ? (s(), z(c(Wt), {
|
|
646
|
-
key: 0,
|
|
647
|
-
svgRef: c(ze),
|
|
648
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
649
|
-
color: e.value.style.chart.color,
|
|
650
|
-
active: de.value,
|
|
651
|
-
isCursorPointer: E.value,
|
|
652
|
-
onClose: Re
|
|
653
|
-
}, {
|
|
654
|
-
"annotator-action-close": g(() => [
|
|
655
|
-
m(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
656
|
-
]),
|
|
657
|
-
"annotator-action-color": g(({ color: l }) => [
|
|
658
|
-
m(t.$slots, "annotator-action-color", D(I({ color: l })), void 0, !0)
|
|
659
|
-
]),
|
|
660
|
-
"annotator-action-draw": g(({ mode: l }) => [
|
|
661
|
-
m(t.$slots, "annotator-action-draw", D(I({ mode: l })), void 0, !0)
|
|
662
|
-
]),
|
|
663
|
-
"annotator-action-undo": g(({ disabled: l }) => [
|
|
664
|
-
m(t.$slots, "annotator-action-undo", D(I({ disabled: l })), void 0, !0)
|
|
665
|
-
]),
|
|
666
|
-
"annotator-action-redo": g(({ disabled: l }) => [
|
|
667
|
-
m(t.$slots, "annotator-action-redo", D(I({ disabled: l })), void 0, !0)
|
|
668
|
-
]),
|
|
669
|
-
"annotator-action-delete": g(({ disabled: l }) => [
|
|
670
|
-
m(t.$slots, "annotator-action-delete", D(I({ disabled: l })), void 0, !0)
|
|
671
|
-
]),
|
|
672
|
-
_: 3
|
|
673
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : v("", !0),
|
|
674
|
-
Qt.value ? (s(), n("div", {
|
|
675
|
-
key: 1,
|
|
676
|
-
ref_key: "noTitle",
|
|
677
|
-
ref: Zt,
|
|
678
|
-
class: "vue-data-ui-no-title-space",
|
|
679
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
680
|
-
}, null, 512)) : v("", !0),
|
|
681
|
-
e.value.style.chart.title.text ? (s(), n("div", {
|
|
682
|
-
key: 2,
|
|
683
|
-
ref_key: "chartTitle",
|
|
684
|
-
ref: Ze,
|
|
685
|
-
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
686
|
-
onMouseleave: yt
|
|
687
|
-
}, [
|
|
688
|
-
(s(), z(ea, {
|
|
689
|
-
key: `title_${Ge.value}`,
|
|
690
|
-
config: {
|
|
691
|
-
title: {
|
|
692
|
-
cy: "donut-evolution-div-title",
|
|
693
|
-
...e.value.style.chart.title
|
|
694
|
-
},
|
|
695
|
-
subtitle: {
|
|
696
|
-
cy: "donut-evolution-div-subtitle",
|
|
697
|
-
...e.value.style.chart.title.subtitle
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}, null, 8, ["config"]))
|
|
701
|
-
], 544)) : v("", !0),
|
|
702
|
-
k("div", {
|
|
703
|
-
id: `legend-top-${O.value}`
|
|
704
|
-
}, null, 8, na),
|
|
705
|
-
e.value.userOptions.show && lt.value && (c(nt) || c($e)) ? (s(), z(c(Xt), {
|
|
706
|
-
ref_key: "userOptionsRef",
|
|
707
|
-
ref: Ce,
|
|
708
|
-
key: `user_options_${We.value}`,
|
|
709
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
710
|
-
color: e.value.style.chart.color,
|
|
711
|
-
isPrinting: c(Pe),
|
|
712
|
-
isImaging: c(De),
|
|
713
|
-
uid: O.value,
|
|
714
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
715
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
716
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
717
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
718
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
719
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
720
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
721
|
-
isFullscreen: W.value,
|
|
722
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
723
|
-
chartElement: R.value,
|
|
724
|
-
position: e.value.userOptions.position,
|
|
725
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
726
|
-
isAnnotation: de.value,
|
|
727
|
-
callbacks: e.value.userOptions.callbacks,
|
|
728
|
-
printScale: e.value.userOptions.print.scale,
|
|
729
|
-
tableDialog: e.value.table.useDialog,
|
|
730
|
-
isCursorPointer: E.value,
|
|
731
|
-
onToggleFullscreen: mt,
|
|
732
|
-
onGeneratePdf: c(rt),
|
|
733
|
-
onGenerateCsv: Ne,
|
|
734
|
-
onGenerateImage: kl,
|
|
735
|
-
onGenerateSvg: At,
|
|
736
|
-
onToggleTable: pt,
|
|
737
|
-
onToggleAnnotator: Re,
|
|
738
|
-
onCopyAlt: Lt,
|
|
739
|
-
style: Y({
|
|
740
|
-
visibility: c(nt) ? c($e) ? "visible" : "hidden" : "visible"
|
|
741
|
-
})
|
|
742
|
-
}, $t({ _: 2 }, [
|
|
743
|
-
t.$slots.menuIcon ? {
|
|
744
|
-
name: "menuIcon",
|
|
745
|
-
fn: g(({ isOpen: l, color: u }) => [
|
|
746
|
-
m(t.$slots, "menuIcon", D(I({ isOpen: l, color: u })), void 0, !0)
|
|
747
|
-
]),
|
|
748
|
-
key: "0"
|
|
749
|
-
} : void 0,
|
|
750
|
-
t.$slots.optionPdf ? {
|
|
751
|
-
name: "optionPdf",
|
|
752
|
-
fn: g(() => [
|
|
753
|
-
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
754
|
-
]),
|
|
755
|
-
key: "1"
|
|
756
|
-
} : void 0,
|
|
757
|
-
t.$slots.optionCsv ? {
|
|
758
|
-
name: "optionCsv",
|
|
759
|
-
fn: g(() => [
|
|
760
|
-
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
761
|
-
]),
|
|
762
|
-
key: "2"
|
|
763
|
-
} : void 0,
|
|
764
|
-
t.$slots.optionImg ? {
|
|
765
|
-
name: "optionImg",
|
|
766
|
-
fn: g(() => [
|
|
767
|
-
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
768
|
-
]),
|
|
769
|
-
key: "3"
|
|
770
|
-
} : void 0,
|
|
771
|
-
t.$slots.optionSvg ? {
|
|
772
|
-
name: "optionSvg",
|
|
773
|
-
fn: g(() => [
|
|
774
|
-
m(t.$slots, "optionSvg", {}, void 0, !0)
|
|
775
|
-
]),
|
|
776
|
-
key: "4"
|
|
777
|
-
} : void 0,
|
|
778
|
-
t.$slots.optionTable ? {
|
|
779
|
-
name: "optionTable",
|
|
780
|
-
fn: g(() => [
|
|
781
|
-
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
782
|
-
]),
|
|
783
|
-
key: "5"
|
|
784
|
-
} : void 0,
|
|
785
|
-
t.$slots.optionFullscreen ? {
|
|
786
|
-
name: "optionFullscreen",
|
|
787
|
-
fn: g(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
788
|
-
m(t.$slots, "optionFullscreen", D(I({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
789
|
-
]),
|
|
790
|
-
key: "6"
|
|
791
|
-
} : void 0,
|
|
792
|
-
t.$slots.optionAnnotator ? {
|
|
793
|
-
name: "optionAnnotator",
|
|
794
|
-
fn: g(({ toggleAnnotator: l, isAnnotator: u }) => [
|
|
795
|
-
m(t.$slots, "optionAnnotator", D(I({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
|
|
796
|
-
]),
|
|
797
|
-
key: "7"
|
|
798
|
-
} : void 0,
|
|
799
|
-
t.$slots.optionAltCopy ? {
|
|
800
|
-
name: "optionAltCopy",
|
|
801
|
-
fn: g(({ altCopy: l }) => [
|
|
802
|
-
m(t.$slots, "optionAltCopy", D(I({ altCopy: l })), void 0, !0)
|
|
803
|
-
]),
|
|
804
|
-
key: "8"
|
|
805
|
-
} : void 0
|
|
806
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : v("", !0),
|
|
807
|
-
(s(), n("svg", {
|
|
808
|
-
ref_key: "svgRef",
|
|
809
|
-
ref: ze,
|
|
810
|
-
xmlns: c(Ol),
|
|
811
|
-
class: N({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
812
|
-
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
813
|
-
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
814
|
-
}, [
|
|
815
|
-
zt(c(Ht)),
|
|
816
|
-
t.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
817
|
-
key: 0,
|
|
818
|
-
x: r.value.left,
|
|
819
|
-
y: r.value.top,
|
|
820
|
-
width: r.value.width,
|
|
821
|
-
height: r.value.height,
|
|
822
|
-
style: {
|
|
823
|
-
pointerEvents: "none"
|
|
824
|
-
}
|
|
825
|
-
}, [
|
|
826
|
-
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
827
|
-
], 8, ia)) : v("", !0),
|
|
828
|
-
k("defs", null, [
|
|
829
|
-
k("linearGradient", {
|
|
830
|
-
id: `hover_${O.value}`,
|
|
831
|
-
x1: "0%",
|
|
832
|
-
y1: "0%",
|
|
833
|
-
x2: "0%",
|
|
834
|
-
y2: "100%"
|
|
835
|
-
}, [
|
|
836
|
-
k("stop", {
|
|
837
|
-
offset: "0%",
|
|
838
|
-
"stop-color": c(le)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
839
|
-
}, null, 8, va),
|
|
840
|
-
k("stop", {
|
|
841
|
-
offset: "100%",
|
|
842
|
-
"stop-color": c(le)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
843
|
-
}, null, 8, da)
|
|
844
|
-
], 8, ca),
|
|
845
|
-
k("radialGradient", {
|
|
846
|
-
id: `focus_${O.value}`
|
|
847
|
-
}, [
|
|
848
|
-
k("stop", {
|
|
849
|
-
offset: "0%",
|
|
850
|
-
"stop-color": c(le)(c(Ve)(e.value.style.chart.backgroundColor), 0)
|
|
851
|
-
}, null, 8, ya),
|
|
852
|
-
k("stop", {
|
|
853
|
-
offset: "77%",
|
|
854
|
-
"stop-color": c(le)("#FFFFFF", 30)
|
|
855
|
-
}, null, 8, ga),
|
|
856
|
-
k("stop", {
|
|
857
|
-
offset: "100%",
|
|
858
|
-
"stop-color": c(le)(c(Ve)(e.value.style.chart.backgroundColor), 0)
|
|
859
|
-
}, null, 8, fa)
|
|
860
|
-
], 8, ha)
|
|
861
|
-
]),
|
|
862
|
-
e.value.style.chart.layout.grid.show ? (s(), n("g", ba, [
|
|
863
|
-
k("line", {
|
|
864
|
-
x1: r.value.left,
|
|
865
|
-
x2: r.value.left,
|
|
866
|
-
y1: r.value.top,
|
|
867
|
-
y2: r.value.top + r.value.height,
|
|
868
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
869
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
870
|
-
"stroke-linecap": "round"
|
|
871
|
-
}, null, 8, ma),
|
|
872
|
-
k("line", {
|
|
873
|
-
x1: r.value.left,
|
|
874
|
-
x2: r.value.right,
|
|
875
|
-
y1: r.value.bottom,
|
|
876
|
-
y2: r.value.bottom,
|
|
877
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
878
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
879
|
-
"stroke-linecap": "round"
|
|
880
|
-
}, null, 8, pa),
|
|
881
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (s(), n("g", xa, [
|
|
882
|
-
(s(!0), n(_, null, $(h.value.end - h.value.start, (l, u) => (s(), n("line", {
|
|
883
|
-
x1: r.value.left + (u + 1) * A.value,
|
|
884
|
-
x2: r.value.left + (u + 1) * A.value,
|
|
885
|
-
y1: r.value.top,
|
|
886
|
-
y2: r.value.bottom,
|
|
887
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
888
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
889
|
-
"stroke-linecap": "round"
|
|
890
|
-
}, null, 8, ka))), 256))
|
|
891
|
-
])) : v("", !0)
|
|
892
|
-
])) : v("", !0),
|
|
893
|
-
k("g", null, [
|
|
894
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (s(), n("text", {
|
|
895
|
-
key: 0,
|
|
896
|
-
ref_key: "yAxisLabel",
|
|
897
|
-
ref: ke,
|
|
898
|
-
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
899
|
-
fill: e.value.style.chart.layout.grid.axis.color,
|
|
900
|
-
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
901
|
-
"text-anchor": "middle",
|
|
902
|
-
style: { transition: "none" }
|
|
903
|
-
}, C(e.value.style.chart.layout.grid.axis.yLabel), 9, Ca)) : v("", !0),
|
|
904
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (s(), n("text", {
|
|
905
|
-
key: 1,
|
|
906
|
-
ref_key: "xAxisLabel",
|
|
907
|
-
ref: xe,
|
|
908
|
-
"text-anchor": "middle",
|
|
909
|
-
x: r.value.absoluteWidth / 2,
|
|
910
|
-
y: r.value.absoluteHeight - 3,
|
|
911
|
-
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
912
|
-
fill: e.value.style.chart.layout.grid.axis.color
|
|
913
|
-
}, C(e.value.style.chart.layout.grid.axis.xLabel), 9, wa)) : v("", !0)
|
|
914
|
-
]),
|
|
915
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (s(), n("g", {
|
|
916
|
-
key: 2,
|
|
917
|
-
ref_key: "scaleLabels",
|
|
918
|
-
ref: pe,
|
|
919
|
-
class: N({ "donut-opacity": !0, "donut-behind": b.value !== null })
|
|
920
|
-
}, [
|
|
921
|
-
(s(!0), n(_, null, $(al.value, (l, u) => (s(), n("g", null, [
|
|
922
|
-
l.value >= F.value.min && l.value <= F.value.max ? (s(), n("line", {
|
|
923
|
-
key: 0,
|
|
924
|
-
x1: r.value.left,
|
|
925
|
-
x2: r.value.left - 5,
|
|
926
|
-
y1: l.y,
|
|
927
|
-
y2: l.y,
|
|
928
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
929
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
930
|
-
}, null, 8, Aa)) : v("", !0),
|
|
931
|
-
l.value >= F.value.min && l.value <= F.value.max ? (s(), n("text", {
|
|
932
|
-
key: 1,
|
|
933
|
-
x: r.value.left + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
934
|
-
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
935
|
-
"font-size": e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
936
|
-
"text-anchor": "end",
|
|
937
|
-
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
938
|
-
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
939
|
-
}, C(c(Nl)(l.value) ? c(Be)(
|
|
940
|
-
e.value.style.chart.layout.dataLabels.formatter,
|
|
941
|
-
l.value,
|
|
942
|
-
c(be)({
|
|
943
|
-
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
944
|
-
v: l.value,
|
|
945
|
-
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
946
|
-
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
947
|
-
}),
|
|
948
|
-
{ datapoint: l, seriesIndex: u }
|
|
949
|
-
) : ""), 9, La)) : v("", !0)
|
|
950
|
-
]))), 256))
|
|
951
|
-
], 2)) : v("", !0),
|
|
952
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (s(), n("g", {
|
|
953
|
-
key: 3,
|
|
954
|
-
ref_key: "timeLabelsEls",
|
|
955
|
-
ref: oe,
|
|
956
|
-
class: N({ "donut-opacity": !0 })
|
|
957
|
-
}, [
|
|
958
|
-
(s(!0), n(_, null, $(h.value.end - h.value.start, (l, u) => (s(), n("g", null, [
|
|
959
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (u === 0 || u === P.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && w.value[u] && w.value[u].text ? (s(), n("g", Sa, [
|
|
960
|
-
String(w.value[u].text).includes(`
|
|
961
|
-
`) ? (s(), n("text", {
|
|
962
|
-
key: 1,
|
|
963
|
-
class: "vue-data-ui-time-label",
|
|
964
|
-
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
965
|
-
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
966
|
-
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
967
|
-
transform: `translate(${r.value.left + A.value * u + A.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
968
|
-
innerHTML: c(Rl)({
|
|
969
|
-
content: String(w.value[u].text),
|
|
970
|
-
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
971
|
-
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
972
|
-
x: 0,
|
|
973
|
-
y: 0
|
|
974
|
-
})
|
|
975
|
-
}, null, 8, $a)) : (s(), n("text", {
|
|
976
|
-
key: 0,
|
|
977
|
-
class: "vue-data-ui-time-label",
|
|
978
|
-
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
979
|
-
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
980
|
-
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
981
|
-
transform: `translate(${r.value.left + A.value * u + A.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
982
|
-
}, C(w.value[u].text || ""), 9, _a))
|
|
983
|
-
])) : v("", !0)
|
|
984
|
-
]))), 256))
|
|
985
|
-
], 512)) : v("", !0),
|
|
986
|
-
(s(!0), n(_, null, $(L.value, (l, u) => (s(), n("g", null, [
|
|
987
|
-
e.value.style.chart.layout.line.show && u < L.value.length - 1 && ![l.subtotal, L.value[u + 1].subtotal].includes(null) ? (s(), n("line", {
|
|
988
|
-
key: 0,
|
|
989
|
-
class: N({ "donut-opacity": !0, "donut-behind": b.value !== null }),
|
|
990
|
-
x1: l.x,
|
|
991
|
-
y1: l.y,
|
|
992
|
-
x2: L.value[u + 1].x,
|
|
993
|
-
y2: L.value[u + 1].y,
|
|
994
|
-
stroke: e.value.style.chart.layout.line.stroke,
|
|
995
|
-
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
996
|
-
"stroke-linecap": "round",
|
|
997
|
-
"stroke-linejoin": "round"
|
|
998
|
-
}, null, 10, za)) : v("", !0),
|
|
999
|
-
l.subtotal !== null ? (s(), n("g", Ta, [
|
|
1000
|
-
l.subtotal ? (s(), n("circle", {
|
|
1001
|
-
key: 0,
|
|
1002
|
-
cx: l.x,
|
|
1003
|
-
cy: l.y,
|
|
1004
|
-
r: l.activeRadius,
|
|
1005
|
-
fill: e.value.style.chart.backgroundColor
|
|
1006
|
-
}, null, 8, Pa)) : v("", !0)
|
|
1007
|
-
])) : v("", !0)
|
|
1008
|
-
]))), 256)),
|
|
1009
|
-
(s(!0), n(_, null, $(L.value, (l, u) => (s(), n("g", {
|
|
1010
|
-
class: N({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null })
|
|
1011
|
-
}, [
|
|
1012
|
-
l.subtotal ? (s(), n("g", Da, [
|
|
1013
|
-
b.value !== null && b.value === u ? (s(), n("g", Ia, [
|
|
1014
|
-
(s(!0), n(_, null, $(l.donutHover, (o) => (s(), n("g", null, [
|
|
1015
|
-
xt(o) ? (s(), n("path", {
|
|
1016
|
-
key: 0,
|
|
1017
|
-
d: c(El)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
1018
|
-
stroke: o.color,
|
|
1019
|
-
"stroke-width": "1",
|
|
1020
|
-
"stroke-linecap": "round",
|
|
1021
|
-
"stroke-linejoin": "round",
|
|
1022
|
-
fill: "none"
|
|
1023
|
-
}, null, 8, Oa)) : v("", !0)
|
|
1024
|
-
]))), 256)),
|
|
1025
|
-
(s(!0), n(_, null, $(l.donutHover, (o, f) => (s(), n("g", null, [
|
|
1026
|
-
xt(o) ? (s(), n("text", {
|
|
1027
|
-
key: 0,
|
|
1028
|
-
"data-cy-hover-label": "",
|
|
1029
|
-
"text-anchor": c(Ot)(o, !0, 0).anchor,
|
|
1030
|
-
x: c(Ot)(o, !0, 9).x,
|
|
1031
|
-
y: c(Fl)(o, 14, 10),
|
|
1032
|
-
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1033
|
-
"font-size": 8,
|
|
1034
|
-
"font-weight": "bold"
|
|
1035
|
-
}, C(o.name) + ": " + C(ol(o, l.donut)) + " (" + C(o.value === null ? "-" : ht(o.value, o, f)) + ") ", 9, Na)) : v("", !0)
|
|
1036
|
-
]))), 256)),
|
|
1037
|
-
k("g", null, [
|
|
1038
|
-
k("circle", {
|
|
1039
|
-
cx: l.x,
|
|
1040
|
-
cy: l.y,
|
|
1041
|
-
r: l.hoverRadius,
|
|
1042
|
-
fill: e.value.style.chart.backgroundColor
|
|
1043
|
-
}, null, 8, Ra)
|
|
1044
|
-
])
|
|
1045
|
-
])) : v("", !0)
|
|
1046
|
-
])) : v("", !0)
|
|
1047
|
-
], 2))), 256)),
|
|
1048
|
-
(s(!0), n(_, null, $(L.value, (l, u) => (s(), n("g", {
|
|
1049
|
-
class: N({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null })
|
|
1050
|
-
}, [
|
|
1051
|
-
l.subtotal !== null ? (s(), n("g", Ea, [
|
|
1052
|
-
l.subtotal === 0 ? (s(), n("circle", {
|
|
1053
|
-
key: 0,
|
|
1054
|
-
cx: l.x,
|
|
1055
|
-
cy: l.y,
|
|
1056
|
-
r: 3,
|
|
1057
|
-
fill: e.value.style.chart.color
|
|
1058
|
-
}, null, 8, Fa)) : b.value !== null && b.value === u ? (s(), n("g", Va, [
|
|
1059
|
-
(s(!0), n(_, null, $(l.donutHover, (o, f) => (s(), n("path", {
|
|
1060
|
-
d: o.arcSlice,
|
|
1061
|
-
fill: `${o.color}`,
|
|
1062
|
-
"stroke-width": 1,
|
|
1063
|
-
stroke: e.value.style.chart.backgroundColor
|
|
1064
|
-
}, null, 8, Ma))), 256))
|
|
1065
|
-
])) : (s(), n("g", Ba, [
|
|
1066
|
-
(s(!0), n(_, null, $(l.donut, (o, f) => (s(), n("path", {
|
|
1067
|
-
d: o.arcSlice,
|
|
1068
|
-
fill: `${o.color}`,
|
|
1069
|
-
"stroke-width": 0.5,
|
|
1070
|
-
stroke: e.value.style.chart.backgroundColor
|
|
1071
|
-
}, null, 8, Ua))), 256))
|
|
1072
|
-
]))
|
|
1073
|
-
])) : v("", !0)
|
|
1074
|
-
], 2))), 256)),
|
|
1075
|
-
(s(!0), n(_, null, $(L.value, (l, u) => (s(), n("g", {
|
|
1076
|
-
class: N({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null || me.value && u !== B.value.index })
|
|
1077
|
-
}, [
|
|
1078
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (s(), n("text", {
|
|
1079
|
-
key: 0,
|
|
1080
|
-
"text-anchor": "middle",
|
|
1081
|
-
x: l.x,
|
|
1082
|
-
y: b.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
|
|
1083
|
-
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
1084
|
-
"font-weight": "bold",
|
|
1085
|
-
fill: e.value.style.chart.layout.dataLabels.color
|
|
1086
|
-
}, C(ht(l.subtotal, l, u)), 9, Ha)) : v("", !0)
|
|
1087
|
-
], 2))), 256)),
|
|
1088
|
-
(s(!0), n(_, null, $(L.value, (l, u) => (s(), n("rect", {
|
|
1089
|
-
x: r.value.left + u * A.value,
|
|
1090
|
-
y: r.value.top,
|
|
1091
|
-
width: A.value,
|
|
1092
|
-
height: r.value.height,
|
|
1093
|
-
fill: [b.value, Z.value].includes(l.index) ? `url(#hover_${O.value})` : "transparent",
|
|
1094
|
-
class: N({ "donut-hover": E.value && l.subtotal && [b.value, Z.value].includes(l.index) }),
|
|
1095
|
-
style: {
|
|
1096
|
-
pointerEvents: "none"
|
|
1097
|
-
}
|
|
1098
|
-
}, null, 10, Wa))), 256)),
|
|
1099
|
-
(s(!0), n(_, null, $(L.value, (l, u) => (s(), n("rect", {
|
|
1100
|
-
"data-cy-trap": "",
|
|
1101
|
-
x: r.value.left + u * A.value,
|
|
1102
|
-
y: r.value.top,
|
|
1103
|
-
width: A.value,
|
|
1104
|
-
height: r.value.height,
|
|
1105
|
-
fill: "transparent",
|
|
1106
|
-
onMouseenter: (o) => ul(l),
|
|
1107
|
-
onMouseleave: (o) => yt(l),
|
|
1108
|
-
onClick: (o) => gt(l, u),
|
|
1109
|
-
class: N({ "donut-hover": E.value && b.value === l.index && l.subtotal })
|
|
1110
|
-
}, null, 42, Xa))), 256)),
|
|
1111
|
-
m(t.$slots, "svg", {
|
|
1112
|
-
svg: {
|
|
1113
|
-
...r.value,
|
|
1114
|
-
isPrintingImg: c(Pe) | c(De) | ue.value,
|
|
1115
|
-
isPrintingSvg: se.value
|
|
1116
|
-
}
|
|
1117
|
-
}, void 0, !0)
|
|
1118
|
-
], 14, ra)),
|
|
1119
|
-
t.$slots.watermark ? (s(), n("div", Ga, [
|
|
1120
|
-
m(t.$slots, "watermark", D(I({ isPrinting: c(Pe) || c(De) || ue.value || se.value })), void 0, !0)
|
|
1121
|
-
])) : v("", !0),
|
|
1122
|
-
k("div", {
|
|
1123
|
-
ref_key: "chartSlicer",
|
|
1124
|
-
ref: et,
|
|
1125
|
-
style: Y(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1126
|
-
"data-dom-to-png-ignore": ""
|
|
1127
|
-
}, [
|
|
1128
|
-
P.value > 1 && e.value.style.chart.zoom.show ? (s(), z(aa, {
|
|
1129
|
-
ref_key: "slicerComponent",
|
|
1130
|
-
ref: Qe,
|
|
1131
|
-
key: `slicer_${Xe.value}`,
|
|
1132
|
-
background: e.value.style.chart.zoom.color,
|
|
1133
|
-
borderColor: e.value.style.chart.backgroundColor,
|
|
1134
|
-
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1135
|
-
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
1136
|
-
labelLeft: w.value[0] ? w.value[0].text : "",
|
|
1137
|
-
labelRight: w.value.at(-1) ? w.value.at(-1).text : "",
|
|
1138
|
-
textColor: e.value.style.chart.color,
|
|
1139
|
-
inputColor: e.value.style.chart.zoom.color,
|
|
1140
|
-
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1141
|
-
max: P.value,
|
|
1142
|
-
min: 0,
|
|
1143
|
-
valueStart: h.value.start,
|
|
1144
|
-
valueEnd: h.value.end,
|
|
1145
|
-
start: h.value.start,
|
|
1146
|
-
"onUpdate:start": a[0] || (a[0] = (l) => h.value.start = l),
|
|
1147
|
-
end: h.value.end,
|
|
1148
|
-
"onUpdate:end": a[1] || (a[1] = (l) => h.value.end = l),
|
|
1149
|
-
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1150
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : P.value,
|
|
1151
|
-
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1152
|
-
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1153
|
-
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
1154
|
-
focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
|
|
1155
|
-
isCursorPointer: E.value,
|
|
1156
|
-
maxWidth: e.value.style.chart.zoom.maxWidth,
|
|
1157
|
-
onReset: ut
|
|
1158
|
-
}, {
|
|
1159
|
-
"reset-action": g(({ reset: l }) => [
|
|
1160
|
-
m(t.$slots, "reset-action", D(I({ reset: l })), void 0, !0)
|
|
1161
|
-
]),
|
|
1162
|
-
_: 3
|
|
1163
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio", "isCursorPointer", "maxWidth"])) : v("", !0)
|
|
1164
|
-
], 4),
|
|
1165
|
-
k("div", {
|
|
1166
|
-
id: `legend-bottom-${O.value}`
|
|
1167
|
-
}, null, 8, Ya),
|
|
1168
|
-
qe.value ? (s(), z(Sl, {
|
|
1169
|
-
key: 5,
|
|
1170
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1171
|
-
}, [
|
|
1172
|
-
k("div", {
|
|
1173
|
-
ref_key: "chartLegend",
|
|
1174
|
-
ref: Je
|
|
1175
|
-
}, [
|
|
1176
|
-
e.value.style.chart.legend.show ? (s(), z(la, {
|
|
1177
|
-
key: `legend_${je.value}`,
|
|
1178
|
-
legendSet: J.value,
|
|
1179
|
-
config: sl.value,
|
|
1180
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) => K(l.uid))
|
|
1181
|
-
}, {
|
|
1182
|
-
item: g(({ legend: l, index: u }) => [
|
|
1183
|
-
k("div", {
|
|
1184
|
-
onClick: (o) => K(l.uid),
|
|
1185
|
-
style: Y(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1186
|
-
}, C(l.display), 13, ja)
|
|
1187
|
-
]),
|
|
1188
|
-
legendToggle: g(() => [
|
|
1189
|
-
J.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !c(Le) ? (s(), z(oa, {
|
|
1190
|
-
key: 0,
|
|
1191
|
-
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1192
|
-
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1193
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
1194
|
-
checked: p.value.length > 0,
|
|
1195
|
-
onToggle: nl
|
|
1196
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : v("", !0)
|
|
1197
|
-
]),
|
|
1198
|
-
_: 1
|
|
1199
|
-
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
1200
|
-
m(t.$slots, "legend", { legend: J.value }, void 0, !0)
|
|
1201
|
-
], 512)
|
|
1202
|
-
], 8, ["to"])) : v("", !0),
|
|
1203
|
-
t.$slots.source ? (s(), n("div", {
|
|
1204
|
-
key: 6,
|
|
1205
|
-
ref_key: "source",
|
|
1206
|
-
ref: Ke,
|
|
1207
|
-
dir: "auto"
|
|
1208
|
-
}, [
|
|
1209
|
-
m(t.$slots, "source", {}, void 0, !0)
|
|
1210
|
-
], 512)) : v("", !0),
|
|
1211
|
-
lt.value && e.value.userOptions.buttons.table ? (s(), z(_l(Q.value.component), $l({ key: 7 }, Q.value.props, {
|
|
1212
|
-
ref_key: "tableUnit",
|
|
1213
|
-
ref: j,
|
|
1214
|
-
onClose: wt
|
|
1215
|
-
}), $t({
|
|
1216
|
-
content: g(() => [
|
|
1217
|
-
(s(), z(c(Ut), {
|
|
1218
|
-
key: `table_${Ye.value}`,
|
|
1219
|
-
colNames: G.value.colNames,
|
|
1220
|
-
head: G.value.head,
|
|
1221
|
-
body: G.value.body,
|
|
1222
|
-
config: G.value.config,
|
|
1223
|
-
title: e.value.table.useDialog ? "" : Q.value.title,
|
|
1224
|
-
withCloseButton: !e.value.table.useDialog,
|
|
1225
|
-
isCursorPointer: E.value,
|
|
1226
|
-
onClose: wt
|
|
1227
|
-
}, {
|
|
1228
|
-
th: g(({ th: l }) => [
|
|
1229
|
-
Fe(C(l.name ?? l), 1)
|
|
1230
|
-
]),
|
|
1231
|
-
td: g(({ td: l }) => [
|
|
1232
|
-
l.value === null ? (s(), n("span", qa, "-")) : (s(), n("b", Za, C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + C(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1233
|
-
k("span", null, C(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1234
|
-
]),
|
|
1235
|
-
_: 1
|
|
1236
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1237
|
-
]),
|
|
1238
|
-
_: 2
|
|
1239
|
-
}, [
|
|
1240
|
-
e.value.table.useDialog ? {
|
|
1241
|
-
name: "title",
|
|
1242
|
-
fn: g(() => [
|
|
1243
|
-
Fe(C(Q.value.title), 1)
|
|
1244
|
-
]),
|
|
1245
|
-
key: "0"
|
|
1246
|
-
} : void 0,
|
|
1247
|
-
e.value.table.useDialog ? {
|
|
1248
|
-
name: "actions",
|
|
1249
|
-
fn: g(() => [
|
|
1250
|
-
k("button", {
|
|
1251
|
-
tabindex: "0",
|
|
1252
|
-
class: "vue-ui-user-options-button",
|
|
1253
|
-
onClick: a[3] || (a[3] = (l) => Ne(e.value.userOptions.callbacks.csv)),
|
|
1254
|
-
style: Y({ cursor: E.value ? "cursor" : "default" })
|
|
1255
|
-
}, [
|
|
1256
|
-
zt(c(Bt), {
|
|
1257
|
-
name: "fileCsv",
|
|
1258
|
-
stroke: Q.value.props.color
|
|
1259
|
-
}, null, 8, ["stroke"])
|
|
1260
|
-
], 4)
|
|
1261
|
-
]),
|
|
1262
|
-
key: "1"
|
|
1263
|
-
} : void 0
|
|
1264
|
-
]), 1040)) : v("", !0),
|
|
1265
|
-
e.value.style.chart.dialog.show ? (s(), z(c(He), {
|
|
1266
|
-
key: 8,
|
|
1267
|
-
ref_key: "dialog",
|
|
1268
|
-
ref: Ee,
|
|
1269
|
-
onClose: a[4] || (a[4] = (l) => {
|
|
1270
|
-
B.value = null, me.value = !1, ae.value = null, b.value = null, Z.value = null;
|
|
1271
|
-
}),
|
|
1272
|
-
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1273
|
-
color: e.value.style.chart.dialog.color,
|
|
1274
|
-
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1275
|
-
headerColor: e.value.style.chart.dialog.header.color,
|
|
1276
|
-
isFullscreen: W.value,
|
|
1277
|
-
fullscreenParent: R.value
|
|
1278
|
-
}, {
|
|
1279
|
-
title: g(() => [
|
|
1280
|
-
Fe(C(w.value[Number(B.value.index)] ? w.value[Number(B.value.index)].text : ""), 1)
|
|
1281
|
-
]),
|
|
1282
|
-
content: g(() => [
|
|
1283
|
-
B.value ? (s(), z(c(Gt), {
|
|
1284
|
-
key: 0,
|
|
1285
|
-
config: Ct.value,
|
|
1286
|
-
dataset: kt.value
|
|
1287
|
-
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1288
|
-
]),
|
|
1289
|
-
_: 1
|
|
1290
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1291
|
-
c(Le) ? (s(), z(Gl, { key: 9 })) : v("", !0)
|
|
1292
|
-
], 46, sa));
|
|
1293
|
-
}
|
|
1294
|
-
}, po = /* @__PURE__ */ ua(Ja, [["__scopeId", "data-v-30771125"]]);
|
|
1295
|
-
export {
|
|
1296
|
-
po as default
|
|
1297
|
-
};
|