vue-data-ui 3.22.9 → 3.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -0,0 +1,1522 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, C as n, Ct as r, E as i, Gt as a, Ht as o, K as s, Lt as c, Nt as l, Ot as ee, Q as te, W as ne, Y as re, Z as ie, d as ae, et as oe, f as se, ft as ce, g as le, i as ue, m as de, qt as fe, t as pe, v as me, x as he, zt as ge } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as _e } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as ve } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as ye } from "./usePrinter-B-X_Pub0.js";
|
|
6
|
+
import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as Se } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as Ce } from "./useNestedProp-D8NuRneO.js";
|
|
9
|
+
import { t as we } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Te } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
+
import { t as Ee } from "./img-CNdXiUfZ.js";
|
|
12
|
+
import { n as De } from "./Title-Cr3jP7Qd.js";
|
|
13
|
+
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { c as ke } from "./canvas-lib-BOP_HS11.js";
|
|
15
|
+
import { t as Ae } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
+
import { t as je } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as Me } from "./BaseLegendToggle-BrQ2OlzI.js";
|
|
18
|
+
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Ie } from "./Legend-5VQGLnmx.js";
|
|
22
|
+
import { t as Le } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
23
|
+
import { t as Re } from "./Slicer-WsWTQPKt.js";
|
|
24
|
+
import { Fragment as u, Teleport as ze, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ue, nextTick as We, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ge, onMounted as Ke, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as T, toRefs as Ye, unref as E, watch as Xe, watchEffect as Ze, withCtx as D } from "vue";
|
|
25
|
+
//#region src/components/vue-ui-donut-evolution.vue
|
|
26
|
+
var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
|
|
27
|
+
"xmlns",
|
|
28
|
+
"aria-describedby",
|
|
29
|
+
"viewBox"
|
|
30
|
+
], it = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"width",
|
|
34
|
+
"height"
|
|
35
|
+
], at = { key: 1 }, ot = [
|
|
36
|
+
"x1",
|
|
37
|
+
"x2",
|
|
38
|
+
"y1",
|
|
39
|
+
"y2",
|
|
40
|
+
"stroke",
|
|
41
|
+
"stroke-width"
|
|
42
|
+
], st = [
|
|
43
|
+
"x1",
|
|
44
|
+
"x2",
|
|
45
|
+
"y1",
|
|
46
|
+
"y2",
|
|
47
|
+
"stroke",
|
|
48
|
+
"stroke-width"
|
|
49
|
+
], ct = { key: 0 }, lt = [
|
|
50
|
+
"x1",
|
|
51
|
+
"x2",
|
|
52
|
+
"y1",
|
|
53
|
+
"y2",
|
|
54
|
+
"stroke",
|
|
55
|
+
"stroke-width"
|
|
56
|
+
], ut = [
|
|
57
|
+
"font-size",
|
|
58
|
+
"fill",
|
|
59
|
+
"transform"
|
|
60
|
+
], dt = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"font-size",
|
|
64
|
+
"fill"
|
|
65
|
+
], ft = [
|
|
66
|
+
"x1",
|
|
67
|
+
"x2",
|
|
68
|
+
"y1",
|
|
69
|
+
"y2",
|
|
70
|
+
"stroke",
|
|
71
|
+
"stroke-width"
|
|
72
|
+
], pt = [
|
|
73
|
+
"x",
|
|
74
|
+
"y",
|
|
75
|
+
"font-size",
|
|
76
|
+
"text-anchor",
|
|
77
|
+
"fill",
|
|
78
|
+
"font-weight"
|
|
79
|
+
], mt = { key: 0 }, ht = [
|
|
80
|
+
"text-anchor",
|
|
81
|
+
"font-size",
|
|
82
|
+
"fill",
|
|
83
|
+
"transform"
|
|
84
|
+
], gt = [
|
|
85
|
+
"text-anchor",
|
|
86
|
+
"font-size",
|
|
87
|
+
"fill",
|
|
88
|
+
"transform",
|
|
89
|
+
"innerHTML"
|
|
90
|
+
], _t = [
|
|
91
|
+
"x1",
|
|
92
|
+
"y1",
|
|
93
|
+
"x2",
|
|
94
|
+
"y2",
|
|
95
|
+
"stroke",
|
|
96
|
+
"stroke-width"
|
|
97
|
+
], vt = { key: 1 }, yt = [
|
|
98
|
+
"cx",
|
|
99
|
+
"cy",
|
|
100
|
+
"r",
|
|
101
|
+
"fill"
|
|
102
|
+
], bt = { key: 0 }, xt = { key: 0 }, St = ["d", "stroke"], Ct = [
|
|
103
|
+
"text-anchor",
|
|
104
|
+
"x",
|
|
105
|
+
"y",
|
|
106
|
+
"fill"
|
|
107
|
+
], wt = [
|
|
108
|
+
"cx",
|
|
109
|
+
"cy",
|
|
110
|
+
"r",
|
|
111
|
+
"fill"
|
|
112
|
+
], Tt = { key: 0 }, Et = [
|
|
113
|
+
"cx",
|
|
114
|
+
"cy",
|
|
115
|
+
"fill"
|
|
116
|
+
], Dt = { key: 1 }, Ot = [
|
|
117
|
+
"d",
|
|
118
|
+
"fill",
|
|
119
|
+
"stroke"
|
|
120
|
+
], kt = { key: 2 }, At = [
|
|
121
|
+
"d",
|
|
122
|
+
"fill",
|
|
123
|
+
"stroke"
|
|
124
|
+
], jt = [
|
|
125
|
+
"x",
|
|
126
|
+
"y",
|
|
127
|
+
"font-size",
|
|
128
|
+
"fill"
|
|
129
|
+
], Mt = [
|
|
130
|
+
"x",
|
|
131
|
+
"y",
|
|
132
|
+
"width",
|
|
133
|
+
"height",
|
|
134
|
+
"fill"
|
|
135
|
+
], Nt = [
|
|
136
|
+
"x",
|
|
137
|
+
"y",
|
|
138
|
+
"width",
|
|
139
|
+
"height",
|
|
140
|
+
"onMouseenter",
|
|
141
|
+
"onMouseleave",
|
|
142
|
+
"onClick"
|
|
143
|
+
], Pt = {
|
|
144
|
+
key: 0,
|
|
145
|
+
style: {
|
|
146
|
+
position: "absolute",
|
|
147
|
+
top: "100%",
|
|
148
|
+
left: "0",
|
|
149
|
+
width: "100%"
|
|
150
|
+
},
|
|
151
|
+
"data-dom-to-png-ignore": "",
|
|
152
|
+
"aria-hidden": "true"
|
|
153
|
+
}, Ft = {
|
|
154
|
+
key: 5,
|
|
155
|
+
class: "vue-data-ui-watermark"
|
|
156
|
+
}, It = ["id"], Lt = ["onClick"], Rt = { key: 0 }, zt = { key: 1 }, Bt = /*#__PURE__*/ Oe({
|
|
157
|
+
__name: "vue-ui-donut-evolution",
|
|
158
|
+
props: {
|
|
159
|
+
config: {
|
|
160
|
+
type: Object,
|
|
161
|
+
default() {
|
|
162
|
+
return {};
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
dataset: {
|
|
166
|
+
type: Array,
|
|
167
|
+
default() {
|
|
168
|
+
return [];
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
emits: ["selectLegend", "copyAlt"],
|
|
173
|
+
setup(e, { expose: Oe, emit: Qe }) {
|
|
174
|
+
let Bt = g(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Vt = g(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), Ht = g(() => import("./DataTable-ByZy5gt1.js")), Ut = g(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), Wt = g(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Gt = g(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Kt = g(() => import("./vue-ui-donut-Bc-EPZvu.js").then((e) => e.n)), qt = g(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_donut_evolution: Jt } = ve(), { isThemeValid: Yt, warnInvalidTheme: Xt } = we(), O = e, k = S(s()), A = S([]), j = S(null), M = S(null), Zt = S(!1), N = S(null), P = S(null), Qt = S(null), $t = S(0), en = S(0), tn = S(0), nn = S(0), rn = S(0), an = S(null), on = S(null), sn = S(null), cn = S(null), ln = S(!1), F = S(null), un = S(null), dn = S(!1), fn = S(!1), pn = S(null), mn = S(null), hn = S(null), gn = S(null), _n = S(null), vn = S(!1), I = Je(null), yn = Je(null), bn = S(null), L = S(null), xn = S(!1), Sn = Qe, Cn = d(() => !!O.dataset && O.dataset.length);
|
|
175
|
+
Ke(() => {
|
|
176
|
+
ln.value = !0, Tn();
|
|
177
|
+
});
|
|
178
|
+
let wn = d(() => !!R.value.debug);
|
|
179
|
+
function Tn() {
|
|
180
|
+
if (t(O.dataset) ? (oe({
|
|
181
|
+
componentName: "VueUiDonutEvolution",
|
|
182
|
+
type: "dataset",
|
|
183
|
+
debug: wn.value
|
|
184
|
+
}), kn.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
|
|
185
|
+
ce({
|
|
186
|
+
datasetObject: e,
|
|
187
|
+
requiredAttributes: ["name", "values"]
|
|
188
|
+
}).forEach((e) => {
|
|
189
|
+
oe({
|
|
190
|
+
componentName: "VueUiDonutEvolution",
|
|
191
|
+
type: "datasetSerieAttribute",
|
|
192
|
+
property: e,
|
|
193
|
+
index: t,
|
|
194
|
+
debug: wn.value
|
|
195
|
+
}), kn.value = !0;
|
|
196
|
+
});
|
|
197
|
+
}), t(O.dataset) || (kn.value = R.value.loading), setTimeout(() => {
|
|
198
|
+
vn.value = !0;
|
|
199
|
+
}, 10), Mn(), R.value.responsive) {
|
|
200
|
+
let e = ke(() => {
|
|
201
|
+
vn.value = !1;
|
|
202
|
+
let { width: e, height: t } = Ae({
|
|
203
|
+
chart: P.value,
|
|
204
|
+
title: R.value.style.chart.title.text ? pn.value : null,
|
|
205
|
+
legend: R.value.style.chart.legend.show ? mn.value : null,
|
|
206
|
+
slicer: R.value.style.chart.zoom.show && An.value > 1 ? _n.value : null,
|
|
207
|
+
source: hn.value
|
|
208
|
+
});
|
|
209
|
+
requestAnimationFrame(() => {
|
|
210
|
+
B.value.width = e, B.value.height = t - 12, clearTimeout(bn.value), bn.value = setTimeout(() => {
|
|
211
|
+
vn.value = !0;
|
|
212
|
+
}, 10);
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
I.value && (yn.value && I.value.unobserve(yn.value), I.value.disconnect()), I.value = new ResizeObserver(e), yn.value = P.value.parentNode, I.value.observe(yn.value);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
let R = S(Rn()), z = d(() => R.value.userOptions.useCursorPointer), En = d(() => fe({
|
|
219
|
+
defaultConfig: {
|
|
220
|
+
useCssAnimation: !1,
|
|
221
|
+
table: { show: !1 },
|
|
222
|
+
userOptions: { show: !1 },
|
|
223
|
+
style: { chart: {
|
|
224
|
+
backgroundColor: "#99999930",
|
|
225
|
+
layout: {
|
|
226
|
+
dataLabels: { show: !1 },
|
|
227
|
+
grid: {
|
|
228
|
+
stroke: "#6A6A6A",
|
|
229
|
+
axis: {
|
|
230
|
+
yLabel: "",
|
|
231
|
+
xLabel: ""
|
|
232
|
+
},
|
|
233
|
+
yAxis: {
|
|
234
|
+
scaleMin: null,
|
|
235
|
+
scaleMax: null,
|
|
236
|
+
autoScale: !1,
|
|
237
|
+
dataLabels: { show: !1 }
|
|
238
|
+
},
|
|
239
|
+
xAxis: { dataLabels: { show: !1 } }
|
|
240
|
+
},
|
|
241
|
+
line: { stroke: "#CACACA60" }
|
|
242
|
+
},
|
|
243
|
+
legend: {
|
|
244
|
+
backgroundColor: "transparent",
|
|
245
|
+
showValue: !1,
|
|
246
|
+
showPercentage: !1
|
|
247
|
+
},
|
|
248
|
+
zoom: {
|
|
249
|
+
show: !1,
|
|
250
|
+
startIndex: null,
|
|
251
|
+
endIndex: null
|
|
252
|
+
}
|
|
253
|
+
} }
|
|
254
|
+
},
|
|
255
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
256
|
+
})), { loading: Dn, FINAL_DATASET: On, manualLoading: kn } = be({
|
|
257
|
+
...Ye(O),
|
|
258
|
+
FINAL_CONFIG: R,
|
|
259
|
+
prepareConfig: Rn,
|
|
260
|
+
callback: () => {
|
|
261
|
+
Promise.resolve().then(async () => {
|
|
262
|
+
await Mn();
|
|
263
|
+
});
|
|
264
|
+
},
|
|
265
|
+
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
266
|
+
{
|
|
267
|
+
name: "",
|
|
268
|
+
values: [
|
|
269
|
+
1,
|
|
270
|
+
2,
|
|
271
|
+
3,
|
|
272
|
+
5,
|
|
273
|
+
8,
|
|
274
|
+
13
|
|
275
|
+
],
|
|
276
|
+
color: "#AAAAAA"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
name: "",
|
|
280
|
+
values: [
|
|
281
|
+
1,
|
|
282
|
+
2,
|
|
283
|
+
3,
|
|
284
|
+
5,
|
|
285
|
+
8,
|
|
286
|
+
13
|
|
287
|
+
],
|
|
288
|
+
color: "#BABABA"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "",
|
|
292
|
+
values: [
|
|
293
|
+
1,
|
|
294
|
+
2,
|
|
295
|
+
3,
|
|
296
|
+
5,
|
|
297
|
+
8,
|
|
298
|
+
13
|
|
299
|
+
],
|
|
300
|
+
color: "#CACACA"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
skeletonConfig: fe({
|
|
304
|
+
defaultConfig: R.value,
|
|
305
|
+
userConfig: En.value
|
|
306
|
+
})
|
|
307
|
+
}), B = S({
|
|
308
|
+
width: R.value.style.chart.layout.width,
|
|
309
|
+
height: R.value.style.chart.layout.height
|
|
310
|
+
}), An = d(() => Math.max(...On.value.map((e) => e.values.length))), V = S({
|
|
311
|
+
start: 0,
|
|
312
|
+
end: An.value
|
|
313
|
+
});
|
|
314
|
+
function jn() {
|
|
315
|
+
Mn();
|
|
316
|
+
}
|
|
317
|
+
async function Mn() {
|
|
318
|
+
await We(), await We();
|
|
319
|
+
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = gn.value;
|
|
320
|
+
V.value = {
|
|
321
|
+
start: 0,
|
|
322
|
+
max: q.value
|
|
323
|
+
}, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(Nn(t + 1))) : (V.value = {
|
|
324
|
+
start: 0,
|
|
325
|
+
end: q.value
|
|
326
|
+
}, en.value += 1);
|
|
327
|
+
}
|
|
328
|
+
function Nn(e) {
|
|
329
|
+
let t = q.value;
|
|
330
|
+
return e > t ? t : e < 0 || R.value.style.chart.zoom.startIndex !== null && e < R.value.style.chart.zoom.startIndex ? R.value.style.chart.zoom.startIndex === null ? 1 : R.value.style.chart.zoom.startIndex + 1 : e;
|
|
331
|
+
}
|
|
332
|
+
let { userOptionsVisible: Pn, setUserOptionsVisibility: Fn, keepUserOptionState: In } = Pe({ config: R.value }), { svgRef: Ln } = Fe({ config: R.value.style.chart.title });
|
|
333
|
+
function Rn() {
|
|
334
|
+
let e = Ce({
|
|
335
|
+
userConfig: O.config,
|
|
336
|
+
defaultConfig: Jt
|
|
337
|
+
}), t = {}, n = e.theme;
|
|
338
|
+
if (n) if (!Yt.value(e)) Xt(e), t = e;
|
|
339
|
+
else {
|
|
340
|
+
let r = Ce({
|
|
341
|
+
userConfig: Le[n] || O.config,
|
|
342
|
+
defaultConfig: e
|
|
343
|
+
});
|
|
344
|
+
t = {
|
|
345
|
+
...Ce({
|
|
346
|
+
userConfig: O.config,
|
|
347
|
+
defaultConfig: r
|
|
348
|
+
}),
|
|
349
|
+
customPalette: e.customPalette ? e.customPalette : a[n] || l
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
else t = e;
|
|
353
|
+
return t;
|
|
354
|
+
}
|
|
355
|
+
Xe(() => O.config, (e) => {
|
|
356
|
+
Dn.value || (R.value = Rn()), Pn.value = !R.value.userOptions.showOnChartHover, Tn(), tn.value += 1, nn.value += 1, rn.value += 1, H.value.showTable = R.value.table.show;
|
|
357
|
+
}, { deep: !0 }), Xe(() => O.dataset, (e) => {
|
|
358
|
+
Array.isArray(e) && e.length > 0 && (kn.value = !1), jn();
|
|
359
|
+
}, { deep: !0 });
|
|
360
|
+
let { isPrinting: zn, isImaging: Bn, generatePdf: Vn, generateImage: Hn } = ye({
|
|
361
|
+
elementId: k.value,
|
|
362
|
+
fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
363
|
+
options: R.value.userOptions.print
|
|
364
|
+
}), Un = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), Wn = d(() => n(R.value.customPalette)), H = S({ showTable: R.value.table.show });
|
|
365
|
+
Xe(R, () => {
|
|
366
|
+
H.value = { showTable: R.value.table.show };
|
|
367
|
+
}, { immediate: !0 });
|
|
368
|
+
let U = d(() => ({
|
|
369
|
+
top: R.value.style.chart.layout.padding.top,
|
|
370
|
+
right: R.value.style.chart.layout.padding.right,
|
|
371
|
+
bottom: R.value.style.chart.layout.padding.bottom,
|
|
372
|
+
left: R.value.style.chart.layout.padding.left
|
|
373
|
+
})), W = d(() => R.value.style.chart.layout.grid.yAxis.position === "right");
|
|
374
|
+
function Gn() {
|
|
375
|
+
let e = 0;
|
|
376
|
+
an.value && (e = Array.from(an.value.querySelectorAll("text")).reduce((e, t) => {
|
|
377
|
+
let n = t.getComputedTextLength();
|
|
378
|
+
return n > e ? n : e;
|
|
379
|
+
}, 0));
|
|
380
|
+
let t = cn.value ? cn.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
381
|
+
return {
|
|
382
|
+
left: W.value ? 0 : n,
|
|
383
|
+
right: W.value ? n : 0,
|
|
384
|
+
scaleLabelsWidth: e,
|
|
385
|
+
yAxisLabelWidth: t,
|
|
386
|
+
crosshair: 5
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
let Kn = S(0), qn = ke((e) => {
|
|
390
|
+
Kn.value = e;
|
|
391
|
+
}, 100);
|
|
392
|
+
Ze((e) => {
|
|
393
|
+
let t = on.value;
|
|
394
|
+
if (!t) return;
|
|
395
|
+
let n = new ResizeObserver((e) => {
|
|
396
|
+
qn(e[0].contentRect.height);
|
|
397
|
+
});
|
|
398
|
+
n.observe(t), e(() => n.disconnect());
|
|
399
|
+
}), Ge(() => {
|
|
400
|
+
Kn.value = 0;
|
|
401
|
+
});
|
|
402
|
+
let Jn = d(() => {
|
|
403
|
+
let e = 0;
|
|
404
|
+
sn.value && (e = sn.value.getBBox().height);
|
|
405
|
+
let t = 0;
|
|
406
|
+
return on.value && (t = Kn.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
407
|
+
}), G = d(() => {
|
|
408
|
+
let e = Gn(), t = R.value.style.chart.layout.dataLabels.fontSize * 3, n = B.value.width, r = B.value.height, i = U.value.left + e.left, a = n - U.value.right - e.right, o = n - i - U.value.right - e.right, s = r - U.value.top - U.value.bottom - t - Jn.value, c = U.value.top + t;
|
|
409
|
+
return {
|
|
410
|
+
top: c,
|
|
411
|
+
left: i,
|
|
412
|
+
right: a,
|
|
413
|
+
bottom: r - U.value.bottom - Jn.value,
|
|
414
|
+
absoluteHeight: r,
|
|
415
|
+
absoluteWidth: n,
|
|
416
|
+
centerX: i + Math.max(10, o) / 2,
|
|
417
|
+
centerY: c + Math.max(10, s) / 2,
|
|
418
|
+
width: Math.max(10, o),
|
|
419
|
+
height: Math.max(10, s),
|
|
420
|
+
scaleLabelsWidth: e.scaleLabelsWidth,
|
|
421
|
+
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
422
|
+
crosshair: e.crosshair
|
|
423
|
+
};
|
|
424
|
+
}), K = d(() => (On.value.forEach((e, t) => {
|
|
425
|
+
[null, void 0].includes(e.name) && oe({
|
|
426
|
+
componentName: "VueUiDonutEvolution",
|
|
427
|
+
type: "datasetSerieAttribute",
|
|
428
|
+
property: "name",
|
|
429
|
+
index: t,
|
|
430
|
+
debug: wn.value
|
|
431
|
+
}), [null, void 0].includes(e.values) && oe({
|
|
432
|
+
componentName: "VueUiDonutEvolution",
|
|
433
|
+
type: "datasetSerieAttribute",
|
|
434
|
+
property: "values",
|
|
435
|
+
index: t,
|
|
436
|
+
debug: wn.value
|
|
437
|
+
});
|
|
438
|
+
}), On.value.map((e, t) => ({
|
|
439
|
+
...e,
|
|
440
|
+
values: c(e.values),
|
|
441
|
+
color: he(e.color) || Wn.value[t] || l[t] || l[t % l.length],
|
|
442
|
+
length: (e.values || []).length,
|
|
443
|
+
uid: s()
|
|
444
|
+
})))), Yn = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
445
|
+
...e,
|
|
446
|
+
values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
|
|
447
|
+
}))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), Xn = 0;
|
|
448
|
+
Ze(() => {
|
|
449
|
+
let e = ++Xn;
|
|
450
|
+
(async () => {
|
|
451
|
+
let t = await _e({
|
|
452
|
+
values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
453
|
+
maxDatapoints: q.value,
|
|
454
|
+
formatter: R.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
455
|
+
start: V.value.start,
|
|
456
|
+
end: V.value.end
|
|
457
|
+
});
|
|
458
|
+
e === Xn && (J.value = t);
|
|
459
|
+
})();
|
|
460
|
+
});
|
|
461
|
+
let Y = d(() => G.value.width / (V.value.end - V.value.start)), Zn = d(() => {
|
|
462
|
+
let e = [];
|
|
463
|
+
for (let t = 0; t < V.value.end - V.value.start; t += 1) {
|
|
464
|
+
let n = Yn.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = G.value.left + Y.value * t + Y.value / 2;
|
|
465
|
+
e.push({
|
|
466
|
+
index: t,
|
|
467
|
+
percentages: a,
|
|
468
|
+
subtotal: r || i < 0 ? null : i,
|
|
469
|
+
values: n,
|
|
470
|
+
x: o
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
return e;
|
|
474
|
+
}), Qn = d(() => {
|
|
475
|
+
let e = Math.max(...Zn.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 1, t = Math.min(...Zn.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), i;
|
|
476
|
+
return i = R.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, R.value.style.chart.layout.grid.yAxis.scaleMin), R.value.style.chart.layout.grid.yAxis.autoScale && (i = t, n = e), i === n && (i = n / 2, n *= 1.5), {
|
|
477
|
+
max: n,
|
|
478
|
+
min: i
|
|
479
|
+
};
|
|
480
|
+
}), X = d(() => {
|
|
481
|
+
let e = Zn.value.length === 1 ? Qn.value.max * 2 : Qn.value.max;
|
|
482
|
+
return le(Qn.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
483
|
+
});
|
|
484
|
+
function $n(e) {
|
|
485
|
+
return (e - X.value.min) / (X.value.max - X.value.min);
|
|
486
|
+
}
|
|
487
|
+
let er = d(() => X.value.ticks.map((e) => ({
|
|
488
|
+
y: G.value.bottom - G.value.height * $n(e),
|
|
489
|
+
value: e
|
|
490
|
+
}))), Z = d(() => {
|
|
491
|
+
let e = Zn.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
492
|
+
return e.length === 1 && t * 2, e.map((t, n) => {
|
|
493
|
+
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height * $n(t.subtotal), c = Yn.value.map((e) => ({
|
|
494
|
+
color: e.color,
|
|
495
|
+
name: e.name,
|
|
496
|
+
value: e.values[n] ?? 0
|
|
497
|
+
})).toSorted((e, t) => t.value - e.value);
|
|
498
|
+
return {
|
|
499
|
+
...t,
|
|
500
|
+
y: s,
|
|
501
|
+
radius: i,
|
|
502
|
+
activeRadius: a,
|
|
503
|
+
hoverRadius: o,
|
|
504
|
+
donut: ee({ series: c }, t.x, s, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
|
|
505
|
+
donutHover: ee({ series: c }, t.x, s, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
|
|
506
|
+
donutFocus: ee({ series: c }, G.value.centerX, G.value.centerY, G.value.height / 3.6, G.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, G.value.height / 6)
|
|
507
|
+
};
|
|
508
|
+
});
|
|
509
|
+
});
|
|
510
|
+
function tr(e, t, n) {
|
|
511
|
+
return ue(R.value.style.chart.layout.dataLabels.formatter, e, re({
|
|
512
|
+
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
513
|
+
v: e,
|
|
514
|
+
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
515
|
+
r: R.value.style.chart.layout.dataLabels.rounding
|
|
516
|
+
}), {
|
|
517
|
+
datapoint: t,
|
|
518
|
+
index: n
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
function nr(e, t) {
|
|
522
|
+
return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
|
|
523
|
+
}
|
|
524
|
+
function rr(e) {
|
|
525
|
+
j.value = null, M.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
526
|
+
datapoint: e,
|
|
527
|
+
seriesIndex: e.seriesIndex + V.value.start
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
function ir(e) {
|
|
531
|
+
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
532
|
+
datapoint: e,
|
|
533
|
+
seriesIndex: e.index + V.value.start
|
|
534
|
+
}), j.value = e.index, M.value = e, L.value = e.index;
|
|
535
|
+
}
|
|
536
|
+
let ar = S(null);
|
|
537
|
+
function or(e, t) {
|
|
538
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
539
|
+
datapoint: e,
|
|
540
|
+
seriesIndex: e.index + V.value.start
|
|
541
|
+
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, Zt.value = !0, N.value = e, Tr(e), [null, void 0].includes(t) || (ar.value = t));
|
|
542
|
+
}
|
|
543
|
+
let sr = d(() => K.value.map((e, t) => ({
|
|
544
|
+
name: e.name,
|
|
545
|
+
value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
|
|
546
|
+
shape: "circle",
|
|
547
|
+
uid: e.uid,
|
|
548
|
+
color: e.color
|
|
549
|
+
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
550
|
+
...e,
|
|
551
|
+
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
552
|
+
segregate: () => dr(e.uid),
|
|
553
|
+
isSegregated: A.value.includes(e.uid),
|
|
554
|
+
display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? ue(R.value.style.chart.layout.dataLabels.formatter, e.value, re({
|
|
555
|
+
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
556
|
+
v: e.value,
|
|
557
|
+
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
558
|
+
r: R.value.style.chart.legend.roundingValue
|
|
559
|
+
}), {
|
|
560
|
+
datapoint: e,
|
|
561
|
+
seriesIndex: t
|
|
562
|
+
}) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / cr.value) ? "-" : re({
|
|
563
|
+
v: e.value / cr.value * 100,
|
|
564
|
+
s: "%",
|
|
565
|
+
r: R.value.style.chart.legend.roundingPercentage
|
|
566
|
+
})}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
567
|
+
}))), cr = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), lr = d(() => ({
|
|
568
|
+
cy: "donut-div-legend",
|
|
569
|
+
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
570
|
+
color: R.value.style.chart.legend.color,
|
|
571
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
572
|
+
paddingBottom: 12,
|
|
573
|
+
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
574
|
+
}));
|
|
575
|
+
function ur() {
|
|
576
|
+
A.value.length ? A.value = [] : sr.value.forEach((e) => {
|
|
577
|
+
A.value.push(e.uid);
|
|
578
|
+
}), Sn("selectLegend", Yn.value);
|
|
579
|
+
}
|
|
580
|
+
function dr(e) {
|
|
581
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), Sn("selectLegend", Yn.value);
|
|
582
|
+
else {
|
|
583
|
+
if (A.value.length === K.value.length - 1) return;
|
|
584
|
+
A.value.push(e), Sn("selectLegend", Yn.value);
|
|
585
|
+
}
|
|
586
|
+
N.value && or(Z.value.find((e, t) => t === ar.value));
|
|
587
|
+
}
|
|
588
|
+
function fr(e) {
|
|
589
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
590
|
+
}
|
|
591
|
+
function pr(e) {
|
|
592
|
+
let t = fr(e);
|
|
593
|
+
t !== null && A.value.includes(t.uid) && dr(t.uid);
|
|
594
|
+
}
|
|
595
|
+
function mr(e) {
|
|
596
|
+
let t = fr(e);
|
|
597
|
+
t !== null && (A.value.includes(t.uid) || dr(t.uid));
|
|
598
|
+
}
|
|
599
|
+
let Q = d(() => {
|
|
600
|
+
let e = [""].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
601
|
+
name: e.name,
|
|
602
|
+
color: e.color
|
|
603
|
+
})), ["Σ"]), t = [];
|
|
604
|
+
for (let e = 0; e < q.value; e += 1) {
|
|
605
|
+
let n = K.value.filter((e) => !A.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
606
|
+
t.push([J.value[e] ? J.value[e].text : "-"].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
|
|
607
|
+
value: t.values[e] ?? 0,
|
|
608
|
+
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
609
|
+
})), [`${R.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(R.value.table.td.roundingValue))}${R.value.style.chart.layout.dataLabels.suffix}`]));
|
|
610
|
+
}
|
|
611
|
+
return {
|
|
612
|
+
head: e,
|
|
613
|
+
body: t,
|
|
614
|
+
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${tr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
615
|
+
config: {
|
|
616
|
+
th: {
|
|
617
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
618
|
+
color: R.value.table.th.color,
|
|
619
|
+
outline: R.value.table.th.outline
|
|
620
|
+
},
|
|
621
|
+
td: {
|
|
622
|
+
backgroundColor: R.value.table.td.backgroundColor,
|
|
623
|
+
color: R.value.table.td.color,
|
|
624
|
+
outline: R.value.table.td.outline
|
|
625
|
+
},
|
|
626
|
+
breakpoint: R.value.table.responsiveBreakpoint
|
|
627
|
+
},
|
|
628
|
+
colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), R.value.table.columnNames.total)
|
|
629
|
+
};
|
|
630
|
+
});
|
|
631
|
+
function hr() {
|
|
632
|
+
return K.value;
|
|
633
|
+
}
|
|
634
|
+
function gr(e = null) {
|
|
635
|
+
We(() => {
|
|
636
|
+
let t = [
|
|
637
|
+
[R.value.style.chart.title.text],
|
|
638
|
+
[R.value.style.chart.title.subtitle.text],
|
|
639
|
+
[""]
|
|
640
|
+
], n = [...Q.value.head.map((e) => e.name ?? e)], r = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], a = i(t.concat([n]).concat(r));
|
|
641
|
+
e ? e(a) : te({
|
|
642
|
+
csvContent: a,
|
|
643
|
+
title: R.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
let $ = S(!1);
|
|
648
|
+
function _r(e) {
|
|
649
|
+
$.value = e, $t.value += 1;
|
|
650
|
+
}
|
|
651
|
+
function vr() {
|
|
652
|
+
H.value.showTable = !H.value.showTable;
|
|
653
|
+
}
|
|
654
|
+
let yr = S(!1);
|
|
655
|
+
function br() {
|
|
656
|
+
yr.value = !yr.value;
|
|
657
|
+
}
|
|
658
|
+
function xr(e) {
|
|
659
|
+
return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
660
|
+
}
|
|
661
|
+
let Sr = S([]), Cr = S({}), wr = S(null);
|
|
662
|
+
function Tr(e) {
|
|
663
|
+
Sr.value = e.donut.map((e) => ({
|
|
664
|
+
name: e.name,
|
|
665
|
+
values: [e.value],
|
|
666
|
+
color: e.color
|
|
667
|
+
})), Cr.value = ie({
|
|
668
|
+
...R.value.style.chart.dialog.donutChart,
|
|
669
|
+
responsive: !0,
|
|
670
|
+
theme: R.value.theme
|
|
671
|
+
}), wr.value && wr.value.open();
|
|
672
|
+
}
|
|
673
|
+
async function Er({ scale: e = 2 } = {}) {
|
|
674
|
+
if (!P.value) return;
|
|
675
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
|
|
676
|
+
domElement: P.value,
|
|
677
|
+
base64: !0,
|
|
678
|
+
img: !0,
|
|
679
|
+
scale: e
|
|
680
|
+
});
|
|
681
|
+
return {
|
|
682
|
+
imageUri: i,
|
|
683
|
+
base64: a,
|
|
684
|
+
title: R.value.style.chart.title.text,
|
|
685
|
+
width: t,
|
|
686
|
+
height: n,
|
|
687
|
+
aspectRatio: r
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
Te({
|
|
691
|
+
timeLabelsEls: on,
|
|
692
|
+
timeLabels: J,
|
|
693
|
+
slicer: V,
|
|
694
|
+
configRef: R,
|
|
695
|
+
rotationPath: [
|
|
696
|
+
"style",
|
|
697
|
+
"chart",
|
|
698
|
+
"layout",
|
|
699
|
+
"grid",
|
|
700
|
+
"xAxis",
|
|
701
|
+
"dataLabels",
|
|
702
|
+
"rotation"
|
|
703
|
+
],
|
|
704
|
+
autoRotatePath: [
|
|
705
|
+
"style",
|
|
706
|
+
"chart",
|
|
707
|
+
"layout",
|
|
708
|
+
"grid",
|
|
709
|
+
"xAxis",
|
|
710
|
+
"dataLabels",
|
|
711
|
+
"autoRotate",
|
|
712
|
+
"enable"
|
|
713
|
+
],
|
|
714
|
+
isAutoSize: !1,
|
|
715
|
+
width: d(() => B.value.width),
|
|
716
|
+
height: d(() => B.value.height),
|
|
717
|
+
rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
718
|
+
});
|
|
719
|
+
let Dr = d(() => {
|
|
720
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
721
|
+
return {
|
|
722
|
+
component: e ? qt : Bt,
|
|
723
|
+
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
724
|
+
props: e ? {
|
|
725
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
726
|
+
color: R.value.table.th.color,
|
|
727
|
+
headerColor: R.value.table.th.color,
|
|
728
|
+
headerBg: R.value.table.th.backgroundColor,
|
|
729
|
+
isFullscreen: $.value,
|
|
730
|
+
fullscreenParent: P.value,
|
|
731
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
732
|
+
isCursorPointer: z.value
|
|
733
|
+
} : {
|
|
734
|
+
hideDetails: !0,
|
|
735
|
+
config: {
|
|
736
|
+
open: t,
|
|
737
|
+
maxHeight: 1e4,
|
|
738
|
+
body: {
|
|
739
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
740
|
+
color: R.value.style.chart.color
|
|
741
|
+
},
|
|
742
|
+
head: {
|
|
743
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
744
|
+
color: R.value.style.chart.color
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
});
|
|
750
|
+
Xe(() => H.value.showTable, (e) => {
|
|
751
|
+
R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
752
|
+
});
|
|
753
|
+
function Or() {
|
|
754
|
+
H.value.showTable = !1, un.value && un.value.setTableIconState(!1);
|
|
755
|
+
}
|
|
756
|
+
let kr = d(() => sr.value.map((e) => ({
|
|
757
|
+
...e,
|
|
758
|
+
name: e.display
|
|
759
|
+
}))), Ar = d(() => R.value.style.chart.backgroundColor), jr = d(() => R.value.style.chart.legend), { exportSvg: Mr, getSvg: Nr } = Se({
|
|
760
|
+
svg: Ln,
|
|
761
|
+
title: d(() => R.value.style.chart.title),
|
|
762
|
+
legend: jr,
|
|
763
|
+
legendItems: kr,
|
|
764
|
+
backgroundColor: Ar
|
|
765
|
+
});
|
|
766
|
+
async function Pr({ isCb: e }) {
|
|
767
|
+
fn.value = !0, await We();
|
|
768
|
+
try {
|
|
769
|
+
if (e) {
|
|
770
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Nr();
|
|
771
|
+
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
772
|
+
blob: e,
|
|
773
|
+
url: t,
|
|
774
|
+
text: n,
|
|
775
|
+
dataUrl: r
|
|
776
|
+
}));
|
|
777
|
+
} else await Promise.resolve(Mr());
|
|
778
|
+
} finally {
|
|
779
|
+
fn.value = !1;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
function Fr(e) {
|
|
783
|
+
if (e?.stage === "start") {
|
|
784
|
+
dn.value = !0;
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
787
|
+
if (e?.stage === "end") {
|
|
788
|
+
dn.value = !1;
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
Hn();
|
|
792
|
+
}
|
|
793
|
+
async function Ir() {
|
|
794
|
+
if (Sn("copyAlt", {
|
|
795
|
+
config: R.value,
|
|
796
|
+
dataset: Z.value
|
|
797
|
+
}), !R.value.userOptions.callbacks.altCopy) {
|
|
798
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
802
|
+
config: R.value,
|
|
803
|
+
dataset: Z.value
|
|
804
|
+
}));
|
|
805
|
+
}
|
|
806
|
+
function Lr() {
|
|
807
|
+
L.value = null, xn.value = !0;
|
|
808
|
+
}
|
|
809
|
+
function Rr() {
|
|
810
|
+
L.value = null, j.value = null, M.value = null, xn.value = !1;
|
|
811
|
+
}
|
|
812
|
+
function zr(e) {
|
|
813
|
+
if (!Ln.value || yr.value || document.activeElement !== Ln.value || !Z.value.length) return;
|
|
814
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
815
|
+
if (!t && !n && !r && !i) return;
|
|
816
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
817
|
+
L.value = null, j.value = null, M.value = null;
|
|
818
|
+
return;
|
|
819
|
+
}
|
|
820
|
+
if (r) {
|
|
821
|
+
if (L.value === null) return;
|
|
822
|
+
let e = Z.value[L.value];
|
|
823
|
+
if (!e) return;
|
|
824
|
+
or(e, L.value);
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
let a = L.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o !== null && o >= 0 && o < Z.value.length;
|
|
828
|
+
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
|
|
829
|
+
let l = Z.value[a];
|
|
830
|
+
l && ir(l);
|
|
831
|
+
}
|
|
832
|
+
let Br = d(() => ({
|
|
833
|
+
headers: Q.value?.colNames ?? [],
|
|
834
|
+
rows: Q.value?.bodyA11y ?? []
|
|
835
|
+
}));
|
|
836
|
+
return Oe({
|
|
837
|
+
getData: hr,
|
|
838
|
+
getImage: Er,
|
|
839
|
+
generatePdf: Vn,
|
|
840
|
+
generateCsv: gr,
|
|
841
|
+
generateImage: Hn,
|
|
842
|
+
generateSvg: Pr,
|
|
843
|
+
hideSeries: mr,
|
|
844
|
+
showSeries: pr,
|
|
845
|
+
toggleTable: vr,
|
|
846
|
+
toggleAnnotator: br,
|
|
847
|
+
toggleFullscreen: _r,
|
|
848
|
+
copyAlt: Ir
|
|
849
|
+
}), (e, t) => (x(), m("div", {
|
|
850
|
+
ref_key: "donutEvolutionChart",
|
|
851
|
+
ref: P,
|
|
852
|
+
class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
853
|
+
style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
|
|
854
|
+
id: k.value,
|
|
855
|
+
onMouseenter: t[5] ||= () => E(Fn)(!0),
|
|
856
|
+
onMouseleave: t[6] ||= () => E(Fn)(!1)
|
|
857
|
+
}, [
|
|
858
|
+
h("div", {
|
|
859
|
+
id: `chart-instructions-${k.value}`,
|
|
860
|
+
class: "sr-only"
|
|
861
|
+
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, et),
|
|
862
|
+
Br.value?.rows?.length ? (x(), f(Ne, {
|
|
863
|
+
key: 0,
|
|
864
|
+
uid: k.value,
|
|
865
|
+
head: Br.value.headers,
|
|
866
|
+
body: Br.value.rows,
|
|
867
|
+
notice: R.value.a11y.translations.tableAvailable,
|
|
868
|
+
caption: R.value.a11y.translations.tableCaption
|
|
869
|
+
}, null, 8, [
|
|
870
|
+
"uid",
|
|
871
|
+
"head",
|
|
872
|
+
"body",
|
|
873
|
+
"notice",
|
|
874
|
+
"caption"
|
|
875
|
+
])) : p("", !0),
|
|
876
|
+
R.value.userOptions.buttons.annotator ? (x(), f(E(Wt), {
|
|
877
|
+
key: 1,
|
|
878
|
+
svgRef: E(Ln),
|
|
879
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
880
|
+
color: R.value.style.chart.color,
|
|
881
|
+
active: yr.value,
|
|
882
|
+
isCursorPointer: z.value,
|
|
883
|
+
onClose: br
|
|
884
|
+
}, {
|
|
885
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
886
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
887
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
888
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
889
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
890
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
891
|
+
_: 3
|
|
892
|
+
}, 8, [
|
|
893
|
+
"svgRef",
|
|
894
|
+
"backgroundColor",
|
|
895
|
+
"color",
|
|
896
|
+
"active",
|
|
897
|
+
"isCursorPointer"
|
|
898
|
+
])) : p("", !0),
|
|
899
|
+
Un.value ? (x(), m("div", {
|
|
900
|
+
key: 2,
|
|
901
|
+
ref_key: "noTitle",
|
|
902
|
+
ref: Qt,
|
|
903
|
+
class: "vue-data-ui-no-title-space",
|
|
904
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
905
|
+
}, null, 512)) : p("", !0),
|
|
906
|
+
R.value.style.chart.title.text ? (x(), m("div", {
|
|
907
|
+
key: 3,
|
|
908
|
+
ref_key: "chartTitle",
|
|
909
|
+
ref: pn,
|
|
910
|
+
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
911
|
+
onMouseleave: rr
|
|
912
|
+
}, [(x(), f(De, {
|
|
913
|
+
key: `title_${tn.value}`,
|
|
914
|
+
config: {
|
|
915
|
+
title: {
|
|
916
|
+
cy: "donut-evolution-div-title",
|
|
917
|
+
...R.value.style.chart.title
|
|
918
|
+
},
|
|
919
|
+
subtitle: {
|
|
920
|
+
cy: "donut-evolution-div-subtitle",
|
|
921
|
+
...R.value.style.chart.title.subtitle
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
925
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, tt),
|
|
926
|
+
R.value.userOptions.show && Cn.value && (E(In) || E(Pn)) ? (x(), f(E(Gt), {
|
|
927
|
+
ref_key: "userOptionsRef",
|
|
928
|
+
ref: un,
|
|
929
|
+
key: `user_options_${$t.value}`,
|
|
930
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
931
|
+
color: R.value.style.chart.color,
|
|
932
|
+
isPrinting: E(zn),
|
|
933
|
+
isImaging: E(Bn),
|
|
934
|
+
uid: k.value,
|
|
935
|
+
hasPdf: R.value.userOptions.buttons.pdf,
|
|
936
|
+
hasImg: R.value.userOptions.buttons.img,
|
|
937
|
+
hasSvg: R.value.userOptions.buttons.svg,
|
|
938
|
+
hasXls: R.value.userOptions.buttons.csv,
|
|
939
|
+
hasTable: R.value.userOptions.buttons.table,
|
|
940
|
+
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
941
|
+
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
942
|
+
isFullscreen: $.value,
|
|
943
|
+
titles: { ...R.value.userOptions.buttonTitles },
|
|
944
|
+
chartElement: P.value,
|
|
945
|
+
position: R.value.userOptions.position,
|
|
946
|
+
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
947
|
+
isAnnotation: yr.value,
|
|
948
|
+
callbacks: R.value.userOptions.callbacks,
|
|
949
|
+
printScale: R.value.userOptions.print.scale,
|
|
950
|
+
tableDialog: R.value.table.useDialog,
|
|
951
|
+
isCursorPointer: z.value,
|
|
952
|
+
onToggleFullscreen: _r,
|
|
953
|
+
onGeneratePdf: E(Vn),
|
|
954
|
+
onGenerateCsv: gr,
|
|
955
|
+
onGenerateImage: Fr,
|
|
956
|
+
onGenerateSvg: Pr,
|
|
957
|
+
onToggleTable: vr,
|
|
958
|
+
onToggleAnnotator: br,
|
|
959
|
+
onCopyAlt: Ir,
|
|
960
|
+
style: b({ visibility: E(In) ? E(Pn) ? "visible" : "hidden" : "visible" })
|
|
961
|
+
}, Be({ _: 2 }, [
|
|
962
|
+
e.$slots.menuIcon ? {
|
|
963
|
+
name: "menuIcon",
|
|
964
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
965
|
+
isOpen: t,
|
|
966
|
+
color: n
|
|
967
|
+
})), void 0, !0)]),
|
|
968
|
+
key: "0"
|
|
969
|
+
} : void 0,
|
|
970
|
+
e.$slots.optionPdf ? {
|
|
971
|
+
name: "optionPdf",
|
|
972
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
973
|
+
key: "1"
|
|
974
|
+
} : void 0,
|
|
975
|
+
e.$slots.optionCsv ? {
|
|
976
|
+
name: "optionCsv",
|
|
977
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
978
|
+
key: "2"
|
|
979
|
+
} : void 0,
|
|
980
|
+
e.$slots.optionImg ? {
|
|
981
|
+
name: "optionImg",
|
|
982
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
983
|
+
key: "3"
|
|
984
|
+
} : void 0,
|
|
985
|
+
e.$slots.optionSvg ? {
|
|
986
|
+
name: "optionSvg",
|
|
987
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
988
|
+
key: "4"
|
|
989
|
+
} : void 0,
|
|
990
|
+
e.$slots.optionTable ? {
|
|
991
|
+
name: "optionTable",
|
|
992
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
993
|
+
key: "5"
|
|
994
|
+
} : void 0,
|
|
995
|
+
e.$slots.optionFullscreen ? {
|
|
996
|
+
name: "optionFullscreen",
|
|
997
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
|
|
998
|
+
toggleFullscreen: t,
|
|
999
|
+
isFullscreen: n
|
|
1000
|
+
})), void 0, !0)]),
|
|
1001
|
+
key: "6"
|
|
1002
|
+
} : void 0,
|
|
1003
|
+
e.$slots.optionAnnotator ? {
|
|
1004
|
+
name: "optionAnnotator",
|
|
1005
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
|
|
1006
|
+
toggleAnnotator: t,
|
|
1007
|
+
isAnnotator: n
|
|
1008
|
+
})), void 0, !0)]),
|
|
1009
|
+
key: "7"
|
|
1010
|
+
} : void 0,
|
|
1011
|
+
e.$slots.optionAltCopy ? {
|
|
1012
|
+
name: "optionAltCopy",
|
|
1013
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
1014
|
+
key: "8"
|
|
1015
|
+
} : void 0,
|
|
1016
|
+
e.$slots["custom-menu-before"] ? {
|
|
1017
|
+
name: "custom-menu-before",
|
|
1018
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1019
|
+
key: "9"
|
|
1020
|
+
} : void 0,
|
|
1021
|
+
e.$slots["custom-menu-after"] ? {
|
|
1022
|
+
name: "custom-menu-after",
|
|
1023
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1024
|
+
key: "10"
|
|
1025
|
+
} : void 0
|
|
1026
|
+
]), 1032, [
|
|
1027
|
+
"backgroundColor",
|
|
1028
|
+
"color",
|
|
1029
|
+
"isPrinting",
|
|
1030
|
+
"isImaging",
|
|
1031
|
+
"uid",
|
|
1032
|
+
"hasPdf",
|
|
1033
|
+
"hasImg",
|
|
1034
|
+
"hasSvg",
|
|
1035
|
+
"hasXls",
|
|
1036
|
+
"hasTable",
|
|
1037
|
+
"hasFullscreen",
|
|
1038
|
+
"hasAltCopy",
|
|
1039
|
+
"isFullscreen",
|
|
1040
|
+
"titles",
|
|
1041
|
+
"chartElement",
|
|
1042
|
+
"position",
|
|
1043
|
+
"hasAnnotator",
|
|
1044
|
+
"isAnnotation",
|
|
1045
|
+
"callbacks",
|
|
1046
|
+
"printScale",
|
|
1047
|
+
"tableDialog",
|
|
1048
|
+
"isCursorPointer",
|
|
1049
|
+
"onGeneratePdf",
|
|
1050
|
+
"style"
|
|
1051
|
+
])) : p("", !0),
|
|
1052
|
+
h("div", nt, [(x(), m("svg", {
|
|
1053
|
+
ref_key: "svgRef",
|
|
1054
|
+
ref: Ln,
|
|
1055
|
+
xmlns: E(pe),
|
|
1056
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1057
|
+
class: v({
|
|
1058
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
1059
|
+
"vue-data-ui-fulscreen--off": !$.value
|
|
1060
|
+
}),
|
|
1061
|
+
viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
|
|
1062
|
+
style: b(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
|
|
1063
|
+
tabindex: "0",
|
|
1064
|
+
onFocus: Lr,
|
|
1065
|
+
onBlur: Rr,
|
|
1066
|
+
onKeydown: zr
|
|
1067
|
+
}, [
|
|
1068
|
+
He(E(Ut)),
|
|
1069
|
+
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1070
|
+
key: 0,
|
|
1071
|
+
x: G.value.left,
|
|
1072
|
+
y: G.value.top,
|
|
1073
|
+
width: G.value.width,
|
|
1074
|
+
height: G.value.height,
|
|
1075
|
+
style: { pointerEvents: "none" }
|
|
1076
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : p("", !0),
|
|
1077
|
+
h("defs", null, [He(je, {
|
|
1078
|
+
t: "linear",
|
|
1079
|
+
id: `hover_${k.value}`,
|
|
1080
|
+
x1: "0%",
|
|
1081
|
+
y1: "0%",
|
|
1082
|
+
x2: "0%",
|
|
1083
|
+
y2: "100%",
|
|
1084
|
+
stops: [[
|
|
1085
|
+
"0%",
|
|
1086
|
+
E(ge)(R.value.style.chart.backgroundColor, R.value.style.chart.layout.highlighter.opacity),
|
|
1087
|
+
1
|
|
1088
|
+
], [
|
|
1089
|
+
"100%",
|
|
1090
|
+
E(ge)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
|
|
1091
|
+
1
|
|
1092
|
+
]]
|
|
1093
|
+
}, null, 8, ["id", "stops"]), He(je, {
|
|
1094
|
+
t: "radial",
|
|
1095
|
+
id: `focus_${k.value}`,
|
|
1096
|
+
stops: [
|
|
1097
|
+
[
|
|
1098
|
+
"0%",
|
|
1099
|
+
E(ge)(E(he)(R.value.style.chart.backgroundColor), 0),
|
|
1100
|
+
1
|
|
1101
|
+
],
|
|
1102
|
+
[
|
|
1103
|
+
"77%",
|
|
1104
|
+
E(ge)("#FFFFFF", 30),
|
|
1105
|
+
1
|
|
1106
|
+
],
|
|
1107
|
+
[
|
|
1108
|
+
"100%",
|
|
1109
|
+
E(ge)(E(he)(R.value.style.chart.backgroundColor), 0),
|
|
1110
|
+
1
|
|
1111
|
+
]
|
|
1112
|
+
]
|
|
1113
|
+
}, null, 8, ["id", "stops"])]),
|
|
1114
|
+
R.value.style.chart.layout.grid.show ? (x(), m("g", at, [
|
|
1115
|
+
h("line", {
|
|
1116
|
+
x1: W.value ? G.value.right : G.value.left,
|
|
1117
|
+
x2: W.value ? G.value.right : G.value.left,
|
|
1118
|
+
y1: G.value.top,
|
|
1119
|
+
y2: G.value.top + G.value.height,
|
|
1120
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1121
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1122
|
+
"stroke-linecap": "round"
|
|
1123
|
+
}, null, 8, ot),
|
|
1124
|
+
h("line", {
|
|
1125
|
+
x1: G.value.left,
|
|
1126
|
+
x2: G.value.right,
|
|
1127
|
+
y1: G.value.bottom,
|
|
1128
|
+
y2: G.value.bottom,
|
|
1129
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1130
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1131
|
+
"stroke-linecap": "round"
|
|
1132
|
+
}, null, 8, st),
|
|
1133
|
+
R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", ct, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("line", {
|
|
1134
|
+
x1: G.value.left + (t + 1) * Y.value,
|
|
1135
|
+
x2: G.value.left + (t + 1) * Y.value,
|
|
1136
|
+
y1: G.value.top,
|
|
1137
|
+
y2: G.value.bottom,
|
|
1138
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1139
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1140
|
+
"stroke-linecap": "round"
|
|
1141
|
+
}, null, 8, lt))), 256))])) : p("", !0)
|
|
1142
|
+
])) : p("", !0),
|
|
1143
|
+
h("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1144
|
+
key: 0,
|
|
1145
|
+
ref_key: "yAxisLabel",
|
|
1146
|
+
ref: cn,
|
|
1147
|
+
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1148
|
+
fill: R.value.style.chart.layout.grid.axis.color,
|
|
1149
|
+
transform: `translate(${W.value ? G.value.absoluteWidth - R.value.style.chart.layout.grid.axis.fontSize / 2 - R.value.style.chart.layout.grid.axis.yLabelOffsetX : R.value.style.chart.layout.grid.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1150
|
+
"text-anchor": "middle",
|
|
1151
|
+
style: { transition: "none" }
|
|
1152
|
+
}, T(R.value.style.chart.layout.grid.axis.yLabel), 9, ut)) : p("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1153
|
+
key: 1,
|
|
1154
|
+
ref_key: "xAxisLabel",
|
|
1155
|
+
ref: sn,
|
|
1156
|
+
"text-anchor": "middle",
|
|
1157
|
+
x: G.value.absoluteWidth / 2,
|
|
1158
|
+
y: G.value.absoluteHeight - 3,
|
|
1159
|
+
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1160
|
+
fill: R.value.style.chart.layout.grid.axis.color
|
|
1161
|
+
}, T(R.value.style.chart.layout.grid.axis.xLabel), 9, dt)) : p("", !0)]),
|
|
1162
|
+
R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1163
|
+
key: 2,
|
|
1164
|
+
ref_key: "scaleLabels",
|
|
1165
|
+
ref: an,
|
|
1166
|
+
class: v({
|
|
1167
|
+
"donut-opacity": !0,
|
|
1168
|
+
"donut-behind": j.value !== null
|
|
1169
|
+
})
|
|
1170
|
+
}, [(x(!0), m(u, null, C(er.value, (e, t) => (x(), m("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("line", {
|
|
1171
|
+
key: 0,
|
|
1172
|
+
x1: W.value ? G.value.right : G.value.left,
|
|
1173
|
+
x2: W.value ? G.value.right + 5 : G.value.left - 5,
|
|
1174
|
+
y1: e.y,
|
|
1175
|
+
y2: e.y,
|
|
1176
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1177
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth
|
|
1178
|
+
}, null, 8, ft)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
|
|
1179
|
+
key: 1,
|
|
1180
|
+
x: W.value ? G.value.right - R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : G.value.left + R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
1181
|
+
y: e.y + R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
1182
|
+
"font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1183
|
+
"text-anchor": W.value ? "start" : "end",
|
|
1184
|
+
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1185
|
+
"font-weight": R.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1186
|
+
}, T(E(me)(e.value) ? E(ue)(R.value.style.chart.layout.dataLabels.formatter, e.value, E(re)({
|
|
1187
|
+
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
1188
|
+
v: e.value,
|
|
1189
|
+
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
1190
|
+
r: R.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
1191
|
+
}), {
|
|
1192
|
+
datapoint: e,
|
|
1193
|
+
seriesIndex: t
|
|
1194
|
+
}) : ""), 9, pt)) : p("", !0)]))), 256))], 2)) : p("", !0),
|
|
1195
|
+
R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1196
|
+
key: 3,
|
|
1197
|
+
ref_key: "timeLabelsEls",
|
|
1198
|
+
ref: on,
|
|
1199
|
+
class: v({ "donut-opacity": !0 })
|
|
1200
|
+
}, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), m("g", mt, [String(J.value[t].text).includes("\n") ? (x(), m("text", {
|
|
1201
|
+
key: 1,
|
|
1202
|
+
class: "vue-data-ui-time-label",
|
|
1203
|
+
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1204
|
+
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1205
|
+
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1206
|
+
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1207
|
+
innerHTML: E(ne)({
|
|
1208
|
+
content: String(J.value[t].text),
|
|
1209
|
+
fontSize: R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1210
|
+
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1211
|
+
x: 0,
|
|
1212
|
+
y: 0
|
|
1213
|
+
})
|
|
1214
|
+
}, null, 8, gt)) : (x(), m("text", {
|
|
1215
|
+
key: 0,
|
|
1216
|
+
class: "vue-data-ui-time-label",
|
|
1217
|
+
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1218
|
+
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1219
|
+
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1220
|
+
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1221
|
+
}, T(J.value[t].text || ""), 9, ht))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1222
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1223
|
+
key: 0,
|
|
1224
|
+
class: v({
|
|
1225
|
+
"donut-opacity": !0,
|
|
1226
|
+
"donut-behind": j.value !== null
|
|
1227
|
+
}),
|
|
1228
|
+
x1: e.x,
|
|
1229
|
+
y1: e.y,
|
|
1230
|
+
x2: Z.value[t + 1].x,
|
|
1231
|
+
y2: Z.value[t + 1].y,
|
|
1232
|
+
stroke: R.value.style.chart.layout.line.stroke,
|
|
1233
|
+
"stroke-width": R.value.style.chart.layout.line.strokeWidth,
|
|
1234
|
+
"stroke-linecap": "round",
|
|
1235
|
+
"stroke-linejoin": "round"
|
|
1236
|
+
}, null, 10, _t)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", vt, [e.subtotal ? (x(), m("circle", {
|
|
1237
|
+
key: 0,
|
|
1238
|
+
cx: e.x,
|
|
1239
|
+
cy: e.y,
|
|
1240
|
+
r: e.activeRadius,
|
|
1241
|
+
fill: R.value.style.chart.backgroundColor
|
|
1242
|
+
}, null, 8, yt)) : p("", !0)]))]))), 256)),
|
|
1243
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1244
|
+
"donut-opacity": !0,
|
|
1245
|
+
"donut-behind": t !== j.value && j.value !== null
|
|
1246
|
+
}) }, [e.subtotal ? (x(), m("g", bt, [j.value !== null && j.value === t ? (x(), m("g", xt, [
|
|
1247
|
+
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [xr(t) ? (x(), m("path", {
|
|
1248
|
+
key: 0,
|
|
1249
|
+
d: E(de)(t, {
|
|
1250
|
+
x: t.center.endX,
|
|
1251
|
+
y: t.center.endY
|
|
1252
|
+
}, 12, 12, {
|
|
1253
|
+
x: e.x,
|
|
1254
|
+
y: e.y
|
|
1255
|
+
}, !1, 20),
|
|
1256
|
+
stroke: t.color,
|
|
1257
|
+
"stroke-width": "1",
|
|
1258
|
+
"stroke-linecap": "round",
|
|
1259
|
+
"stroke-linejoin": "round",
|
|
1260
|
+
fill: "none"
|
|
1261
|
+
}, null, 8, St)) : p("", !0)]))), 256)),
|
|
1262
|
+
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [xr(t) ? (x(), m("text", {
|
|
1263
|
+
key: 0,
|
|
1264
|
+
"data-cy-hover-label": "",
|
|
1265
|
+
"text-anchor": E(ae)(t, !0, 0).anchor,
|
|
1266
|
+
x: E(ae)(t, !0, 9).x,
|
|
1267
|
+
y: E(se)(t, 14, 10),
|
|
1268
|
+
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1269
|
+
"font-size": 8,
|
|
1270
|
+
"font-weight": "bold"
|
|
1271
|
+
}, T(t.name) + ": " + T(nr(t, e.donut)) + " (" + T(t.value === null ? "-" : tr(t.value, t, n)) + ") ", 9, Ct)) : p("", !0)]))), 256)),
|
|
1272
|
+
h("g", null, [h("circle", {
|
|
1273
|
+
cx: e.x,
|
|
1274
|
+
cy: e.y,
|
|
1275
|
+
r: e.hoverRadius,
|
|
1276
|
+
fill: R.value.style.chart.backgroundColor
|
|
1277
|
+
}, null, 8, wt)])
|
|
1278
|
+
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1279
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1280
|
+
"donut-opacity": !0,
|
|
1281
|
+
"donut-behind": t !== j.value && j.value !== null
|
|
1282
|
+
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g", Tt, [e.subtotal === 0 ? (x(), m("circle", {
|
|
1283
|
+
key: 0,
|
|
1284
|
+
cx: e.x,
|
|
1285
|
+
cy: e.y,
|
|
1286
|
+
r: 3,
|
|
1287
|
+
fill: R.value.style.chart.color
|
|
1288
|
+
}, null, 8, Et)) : j.value !== null && j.value === t ? (x(), m("g", Dt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1289
|
+
d: e.arcSlice,
|
|
1290
|
+
fill: `${e.color}`,
|
|
1291
|
+
"stroke-width": 1,
|
|
1292
|
+
stroke: R.value.style.chart.backgroundColor
|
|
1293
|
+
}, null, 8, Ot))), 256))])) : (x(), m("g", kt, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1294
|
+
d: e.arcSlice,
|
|
1295
|
+
fill: `${e.color}`,
|
|
1296
|
+
"stroke-width": .5,
|
|
1297
|
+
stroke: R.value.style.chart.backgroundColor
|
|
1298
|
+
}, null, 8, At))), 256))]))]))], 2))), 256)),
|
|
1299
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1300
|
+
"donut-opacity": !0,
|
|
1301
|
+
"donut-behind": t !== j.value && j.value !== null || Zt.value && t !== N.value.index
|
|
1302
|
+
}) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1303
|
+
key: 0,
|
|
1304
|
+
"text-anchor": "middle",
|
|
1305
|
+
x: e.x,
|
|
1306
|
+
y: j.value === e.index && e.subtotal ? e.y + R.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - R.value.style.chart.layout.dataLabels.fontSize + R.value.style.chart.layout.dataLabels.offsetY,
|
|
1307
|
+
"font-size": R.value.style.chart.layout.dataLabels.fontSize,
|
|
1308
|
+
"font-weight": "bold",
|
|
1309
|
+
fill: R.value.style.chart.layout.dataLabels.color
|
|
1310
|
+
}, T(tr(e.subtotal, e, t)), 9, jt)) : p("", !0)], 2))), 256)),
|
|
1311
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1312
|
+
x: G.value.left + t * Y.value,
|
|
1313
|
+
y: G.value.top,
|
|
1314
|
+
width: Y.value,
|
|
1315
|
+
height: G.value.height,
|
|
1316
|
+
fill: [j.value, ar.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1317
|
+
class: v({ "donut-hover": z.value && e.subtotal && [j.value, ar.value].includes(e.index) }),
|
|
1318
|
+
style: { pointerEvents: "none" }
|
|
1319
|
+
}, null, 10, Mt))), 256)),
|
|
1320
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1321
|
+
"data-cy-trap": "",
|
|
1322
|
+
x: G.value.left + t * Y.value,
|
|
1323
|
+
y: G.value.top,
|
|
1324
|
+
width: Y.value,
|
|
1325
|
+
height: G.value.height,
|
|
1326
|
+
fill: "transparent",
|
|
1327
|
+
onMouseenter: (t) => ir(e),
|
|
1328
|
+
onMouseleave: (t) => rr(e),
|
|
1329
|
+
onClick: (n) => or(e, t),
|
|
1330
|
+
class: v({ "donut-hover": z.value && j.value === e.index && e.subtotal })
|
|
1331
|
+
}, null, 42, Nt))), 256)),
|
|
1332
|
+
w(e.$slots, "svg", { svg: {
|
|
1333
|
+
...G.value,
|
|
1334
|
+
isPrintingImg: E(zn) || E(Bn) || dn.value,
|
|
1335
|
+
isPrintingSvg: fn.value
|
|
1336
|
+
} }, void 0, !0)
|
|
1337
|
+
], 46, rt)), e.$slots.hint ? (x(), m("div", Pt, [w(e.$slots, "hint", y(_({
|
|
1338
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1339
|
+
isVisible: xn.value
|
|
1340
|
+
})), void 0, !0)])) : p("", !0)]),
|
|
1341
|
+
e.$slots.watermark ? (x(), m("div", Ft, [w(e.$slots, "watermark", y(_({ isPrinting: E(zn) || E(Bn) || dn.value || fn.value })), void 0, !0)])) : p("", !0),
|
|
1342
|
+
h("div", {
|
|
1343
|
+
ref_key: "chartSlicer",
|
|
1344
|
+
ref: _n,
|
|
1345
|
+
style: b(`width:100%;background:${R.value.style.chart.backgroundColor}`),
|
|
1346
|
+
"data-dom-to-png-ignore": ""
|
|
1347
|
+
}, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(Re, {
|
|
1348
|
+
ref_key: "slicerComponent",
|
|
1349
|
+
ref: gn,
|
|
1350
|
+
key: `slicer_${en.value}`,
|
|
1351
|
+
background: R.value.style.chart.zoom.color,
|
|
1352
|
+
borderColor: R.value.style.chart.backgroundColor,
|
|
1353
|
+
fontSize: R.value.style.chart.zoom.fontSize,
|
|
1354
|
+
useResetSlot: R.value.style.chart.zoom.useResetSlot,
|
|
1355
|
+
labelLeft: J.value[0] ? J.value[0].text : "",
|
|
1356
|
+
labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
|
|
1357
|
+
textColor: R.value.style.chart.color,
|
|
1358
|
+
inputColor: R.value.style.chart.zoom.color,
|
|
1359
|
+
selectColor: R.value.style.chart.zoom.highlightColor,
|
|
1360
|
+
max: q.value,
|
|
1361
|
+
min: 0,
|
|
1362
|
+
valueStart: V.value.start,
|
|
1363
|
+
valueEnd: V.value.end,
|
|
1364
|
+
start: V.value.start,
|
|
1365
|
+
"onUpdate:start": t[0] ||= (e) => V.value.start = e,
|
|
1366
|
+
end: V.value.end,
|
|
1367
|
+
"onUpdate:end": t[1] ||= (e) => V.value.end = e,
|
|
1368
|
+
refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
|
|
1369
|
+
refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? q.value : R.value.style.chart.zoom.endIndex + 1,
|
|
1370
|
+
enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
|
|
1371
|
+
enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
|
|
1372
|
+
focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
|
|
1373
|
+
focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
|
|
1374
|
+
isCursorPointer: z.value,
|
|
1375
|
+
maxWidth: R.value.style.chart.zoom.maxWidth,
|
|
1376
|
+
onReset: jn
|
|
1377
|
+
}, {
|
|
1378
|
+
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1379
|
+
_: 3
|
|
1380
|
+
}, 8, [
|
|
1381
|
+
"background",
|
|
1382
|
+
"borderColor",
|
|
1383
|
+
"fontSize",
|
|
1384
|
+
"useResetSlot",
|
|
1385
|
+
"labelLeft",
|
|
1386
|
+
"labelRight",
|
|
1387
|
+
"textColor",
|
|
1388
|
+
"inputColor",
|
|
1389
|
+
"selectColor",
|
|
1390
|
+
"max",
|
|
1391
|
+
"valueStart",
|
|
1392
|
+
"valueEnd",
|
|
1393
|
+
"start",
|
|
1394
|
+
"end",
|
|
1395
|
+
"refreshStartPoint",
|
|
1396
|
+
"refreshEndPoint",
|
|
1397
|
+
"enableRangeHandles",
|
|
1398
|
+
"enableSelectionDrag",
|
|
1399
|
+
"focusOnDrag",
|
|
1400
|
+
"focusRangeRatio",
|
|
1401
|
+
"isCursorPointer",
|
|
1402
|
+
"maxWidth"
|
|
1403
|
+
])) : p("", !0)], 4),
|
|
1404
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, It),
|
|
1405
|
+
ln.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(ze, {
|
|
1406
|
+
key: 6,
|
|
1407
|
+
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1408
|
+
}, [h("div", {
|
|
1409
|
+
ref_key: "chartLegend",
|
|
1410
|
+
ref: mn
|
|
1411
|
+
}, [w(e.$slots, "legend", { legend: sr.value }, () => [R.value.style.chart.legend.show ? (x(), f(Ie, {
|
|
1412
|
+
key: `legend_${rn.value}`,
|
|
1413
|
+
legendSet: sr.value,
|
|
1414
|
+
config: lr.value,
|
|
1415
|
+
onClickMarker: t[2] ||= ({ legend: e }) => dr(e.uid)
|
|
1416
|
+
}, {
|
|
1417
|
+
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1418
|
+
onClick: (t) => dr(e.uid),
|
|
1419
|
+
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1420
|
+
}, T(e.display), 13, Lt)]),
|
|
1421
|
+
legendToggle: D(() => [sr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(Dn) ? (x(), f(Me, {
|
|
1422
|
+
key: 0,
|
|
1423
|
+
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1424
|
+
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1425
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
1426
|
+
checked: A.value.length > 0,
|
|
1427
|
+
onToggle: ur
|
|
1428
|
+
}, null, 8, [
|
|
1429
|
+
"backgroundColor",
|
|
1430
|
+
"color",
|
|
1431
|
+
"fontSize",
|
|
1432
|
+
"checked"
|
|
1433
|
+
])) : p("", !0)]),
|
|
1434
|
+
_: 1
|
|
1435
|
+
}, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
|
|
1436
|
+
e.$slots.source ? (x(), m("div", {
|
|
1437
|
+
key: 7,
|
|
1438
|
+
ref_key: "source",
|
|
1439
|
+
ref: hn,
|
|
1440
|
+
dir: "auto"
|
|
1441
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1442
|
+
Cn.value && R.value.userOptions.buttons.table ? (x(), f(qe(Dr.value.component), Ue({ key: 8 }, Dr.value.props, {
|
|
1443
|
+
ref_key: "tableUnit",
|
|
1444
|
+
ref: F,
|
|
1445
|
+
onClose: Or
|
|
1446
|
+
}), Be({
|
|
1447
|
+
content: D(() => [(x(), f(E(Ht), {
|
|
1448
|
+
key: `table_${nn.value}`,
|
|
1449
|
+
colNames: Q.value.colNames,
|
|
1450
|
+
head: Q.value.head,
|
|
1451
|
+
body: Q.value.body,
|
|
1452
|
+
config: Q.value.config,
|
|
1453
|
+
title: R.value.table.useDialog ? "" : Dr.value.title,
|
|
1454
|
+
withCloseButton: !R.value.table.useDialog,
|
|
1455
|
+
isCursorPointer: z.value,
|
|
1456
|
+
onClose: Or
|
|
1457
|
+
}, {
|
|
1458
|
+
th: D(({ th: e }) => [Ve(T(e.name ?? e), 1)]),
|
|
1459
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", Rt, "-")) : (x(), m("b", zt, T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1460
|
+
_: 1
|
|
1461
|
+
}, 8, [
|
|
1462
|
+
"colNames",
|
|
1463
|
+
"head",
|
|
1464
|
+
"body",
|
|
1465
|
+
"config",
|
|
1466
|
+
"title",
|
|
1467
|
+
"withCloseButton",
|
|
1468
|
+
"isCursorPointer"
|
|
1469
|
+
]))]),
|
|
1470
|
+
_: 2
|
|
1471
|
+
}, [R.value.table.useDialog ? {
|
|
1472
|
+
name: "title",
|
|
1473
|
+
fn: D(() => [Ve(T(Dr.value.title), 1)]),
|
|
1474
|
+
key: "0"
|
|
1475
|
+
} : void 0, R.value.table.useDialog ? {
|
|
1476
|
+
name: "actions",
|
|
1477
|
+
fn: D(() => [h("button", {
|
|
1478
|
+
tabindex: "0",
|
|
1479
|
+
class: "vue-ui-user-options-button",
|
|
1480
|
+
onClick: t[3] ||= (e) => gr(R.value.userOptions.callbacks.csv),
|
|
1481
|
+
style: b({ cursor: z.value ? "cursor" : "default" })
|
|
1482
|
+
}, [He(E(Vt), {
|
|
1483
|
+
name: "fileCsv",
|
|
1484
|
+
stroke: Dr.value.props.color
|
|
1485
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1486
|
+
key: "1"
|
|
1487
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1488
|
+
R.value.style.chart.dialog.show ? (x(), f(E(qt), {
|
|
1489
|
+
key: 9,
|
|
1490
|
+
ref_key: "dialog",
|
|
1491
|
+
ref: wr,
|
|
1492
|
+
onClose: t[4] ||= (e) => {
|
|
1493
|
+
N.value = null, Zt.value = !1, M.value = null, j.value = null, ar.value = null;
|
|
1494
|
+
},
|
|
1495
|
+
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1496
|
+
color: R.value.style.chart.dialog.color,
|
|
1497
|
+
headerBg: R.value.style.chart.dialog.header.backgroundColor,
|
|
1498
|
+
headerColor: R.value.style.chart.dialog.header.color,
|
|
1499
|
+
isFullscreen: $.value,
|
|
1500
|
+
fullscreenParent: P.value
|
|
1501
|
+
}, {
|
|
1502
|
+
title: D(() => [Ve(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
|
|
1503
|
+
content: D(() => [N.value ? (x(), f(E(Kt), {
|
|
1504
|
+
key: 0,
|
|
1505
|
+
config: Cr.value,
|
|
1506
|
+
dataset: Sr.value
|
|
1507
|
+
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1508
|
+
_: 1
|
|
1509
|
+
}, 8, [
|
|
1510
|
+
"backgroundColor",
|
|
1511
|
+
"color",
|
|
1512
|
+
"headerBg",
|
|
1513
|
+
"headerColor",
|
|
1514
|
+
"isFullscreen",
|
|
1515
|
+
"fullscreenParent"
|
|
1516
|
+
])) : p("", !0),
|
|
1517
|
+
E(Dn) ? (x(), f(xe, { key: 10 })) : p("", !0)
|
|
1518
|
+
], 46, $e));
|
|
1519
|
+
}
|
|
1520
|
+
}, [["__scopeId", "data-v-5ddd11b9"]]);
|
|
1521
|
+
//#endregion
|
|
1522
|
+
export { Qe as n, Bt as t };
|