vue-data-ui 3.22.2 → 3.22.4
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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- 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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -1,137 +1,137 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { c as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { Fragment as
|
|
2
|
+
import { Bt as t, Et as n, Ft as r, Gt as i, H as a, Lt as o, Ot as s, Q as c, S as l, Ut as ee, W as te, X as ne, Y as re, _ as ie, b as ae, d as oe, h as se, i as ce, jt as le, p as ue, q as de, t as fe, u as pe, ut as me, w as he, xt as ge } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as _e } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as ve } from "./useConfig-pVLia3dt.js";
|
|
5
|
+
import { t as ye } from "./usePrinter-C0wAS8yc.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-BjkuFaz1.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-B29J8tV5.js";
|
|
12
|
+
import { n as De } from "./Title-DDEEO-Nr.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 "./BaseLegendToggle-C4Usj0LI.js";
|
|
17
|
+
import { t as Me } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Fe } from "./Legend-DXOzbXb-.js";
|
|
21
|
+
import { t as Ie } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
22
|
+
import { t as Le } from "./Slicer-hEvKOLw3.js";
|
|
23
|
+
import { Fragment as u, Teleport as Re, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as He, nextTick as Ue, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as We, onMounted as Ge, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as T, toRefs as Je, unref as E, watch as Ye, watchEffect as Xe, withCtx as D } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-donut-evolution.vue
|
|
25
|
-
var
|
|
25
|
+
var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
|
|
26
26
|
"xmlns",
|
|
27
27
|
"aria-describedby",
|
|
28
28
|
"viewBox"
|
|
29
|
-
],
|
|
29
|
+
], rt = [
|
|
30
30
|
"x",
|
|
31
31
|
"y",
|
|
32
32
|
"width",
|
|
33
33
|
"height"
|
|
34
|
-
],
|
|
34
|
+
], it = ["id"], at = ["stop-color"], ot = ["stop-color"], st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["stop-color"], dt = { key: 1 }, ft = [
|
|
35
35
|
"x1",
|
|
36
36
|
"x2",
|
|
37
37
|
"y1",
|
|
38
38
|
"y2",
|
|
39
39
|
"stroke",
|
|
40
40
|
"stroke-width"
|
|
41
|
-
],
|
|
41
|
+
], pt = [
|
|
42
42
|
"x1",
|
|
43
43
|
"x2",
|
|
44
44
|
"y1",
|
|
45
45
|
"y2",
|
|
46
46
|
"stroke",
|
|
47
47
|
"stroke-width"
|
|
48
|
-
],
|
|
48
|
+
], mt = { key: 0 }, ht = [
|
|
49
49
|
"x1",
|
|
50
50
|
"x2",
|
|
51
51
|
"y1",
|
|
52
52
|
"y2",
|
|
53
53
|
"stroke",
|
|
54
54
|
"stroke-width"
|
|
55
|
-
],
|
|
55
|
+
], gt = [
|
|
56
56
|
"font-size",
|
|
57
57
|
"fill",
|
|
58
58
|
"transform"
|
|
59
|
-
],
|
|
59
|
+
], _t = [
|
|
60
60
|
"x",
|
|
61
61
|
"y",
|
|
62
62
|
"font-size",
|
|
63
63
|
"fill"
|
|
64
|
-
],
|
|
64
|
+
], vt = [
|
|
65
65
|
"x1",
|
|
66
66
|
"x2",
|
|
67
67
|
"y1",
|
|
68
68
|
"y2",
|
|
69
69
|
"stroke",
|
|
70
70
|
"stroke-width"
|
|
71
|
-
],
|
|
71
|
+
], yt = [
|
|
72
72
|
"x",
|
|
73
73
|
"y",
|
|
74
74
|
"font-size",
|
|
75
75
|
"text-anchor",
|
|
76
76
|
"fill",
|
|
77
77
|
"font-weight"
|
|
78
|
-
],
|
|
78
|
+
], bt = { key: 0 }, xt = [
|
|
79
79
|
"text-anchor",
|
|
80
80
|
"font-size",
|
|
81
81
|
"fill",
|
|
82
82
|
"transform"
|
|
83
|
-
],
|
|
83
|
+
], St = [
|
|
84
84
|
"text-anchor",
|
|
85
85
|
"font-size",
|
|
86
86
|
"fill",
|
|
87
87
|
"transform",
|
|
88
88
|
"innerHTML"
|
|
89
|
-
],
|
|
89
|
+
], Ct = [
|
|
90
90
|
"x1",
|
|
91
91
|
"y1",
|
|
92
92
|
"x2",
|
|
93
93
|
"y2",
|
|
94
94
|
"stroke",
|
|
95
95
|
"stroke-width"
|
|
96
|
-
],
|
|
96
|
+
], wt = { key: 1 }, Tt = [
|
|
97
97
|
"cx",
|
|
98
98
|
"cy",
|
|
99
99
|
"r",
|
|
100
100
|
"fill"
|
|
101
|
-
],
|
|
101
|
+
], Et = { key: 0 }, Dt = { key: 0 }, Ot = ["d", "stroke"], kt = [
|
|
102
102
|
"text-anchor",
|
|
103
103
|
"x",
|
|
104
104
|
"y",
|
|
105
105
|
"fill"
|
|
106
|
-
],
|
|
106
|
+
], At = [
|
|
107
107
|
"cx",
|
|
108
108
|
"cy",
|
|
109
109
|
"r",
|
|
110
110
|
"fill"
|
|
111
|
-
],
|
|
111
|
+
], jt = { key: 0 }, Mt = [
|
|
112
112
|
"cx",
|
|
113
113
|
"cy",
|
|
114
114
|
"fill"
|
|
115
|
-
],
|
|
115
|
+
], Nt = { key: 1 }, Pt = [
|
|
116
116
|
"d",
|
|
117
117
|
"fill",
|
|
118
118
|
"stroke"
|
|
119
|
-
],
|
|
119
|
+
], Ft = { key: 2 }, It = [
|
|
120
120
|
"d",
|
|
121
121
|
"fill",
|
|
122
122
|
"stroke"
|
|
123
|
-
],
|
|
123
|
+
], Lt = [
|
|
124
124
|
"x",
|
|
125
125
|
"y",
|
|
126
126
|
"font-size",
|
|
127
127
|
"fill"
|
|
128
|
-
],
|
|
128
|
+
], Rt = [
|
|
129
129
|
"x",
|
|
130
130
|
"y",
|
|
131
131
|
"width",
|
|
132
132
|
"height",
|
|
133
133
|
"fill"
|
|
134
|
-
],
|
|
134
|
+
], zt = [
|
|
135
135
|
"x",
|
|
136
136
|
"y",
|
|
137
137
|
"width",
|
|
@@ -139,7 +139,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
139
139
|
"onMouseenter",
|
|
140
140
|
"onMouseleave",
|
|
141
141
|
"onClick"
|
|
142
|
-
],
|
|
142
|
+
], Bt = {
|
|
143
143
|
key: 0,
|
|
144
144
|
style: {
|
|
145
145
|
position: "absolute",
|
|
@@ -149,10 +149,10 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
149
149
|
},
|
|
150
150
|
"data-dom-to-png-ignore": "",
|
|
151
151
|
"aria-hidden": "true"
|
|
152
|
-
},
|
|
152
|
+
}, Vt = {
|
|
153
153
|
key: 5,
|
|
154
154
|
class: "vue-data-ui-watermark"
|
|
155
|
-
},
|
|
155
|
+
}, Ht = ["id"], Ut = ["onClick"], Wt = { key: 0 }, Gt = { key: 1 }, Kt = /*#__PURE__*/ Oe({
|
|
156
156
|
__name: "vue-ui-donut-evolution",
|
|
157
157
|
props: {
|
|
158
158
|
config: {
|
|
@@ -169,23 +169,23 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
169
169
|
}
|
|
170
170
|
},
|
|
171
171
|
emits: ["selectLegend", "copyAlt"],
|
|
172
|
-
setup(e, { expose:
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
setup(e, { expose: Oe, emit: Ze }) {
|
|
173
|
+
let Kt = g(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Jt = g(() => import("./DataTable-PidUPOit.js")), Yt = g(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Xt = g(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Zt = g(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Qt = g(() => import("./vue-ui-donut-C4FcvXm3.js").then((e) => e.n)), $t = g(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_donut_evolution: en } = ve(), { isThemeValid: tn, warnInvalidTheme: nn } = we(), O = e, k = S(te()), A = S([]), j = S(null), M = S(null), rn = S(!1), N = S(null), P = S(null), an = S(null), on = S(0), sn = S(0), cn = S(0), ln = S(0), un = S(0), dn = S(null), fn = S(null), pn = S(null), mn = S(null), hn = S(!1), gn = S(null), _n = S(null), vn = S(!1), yn = S(!1), bn = S(null), xn = S(null), Sn = S(null), Cn = S(null), wn = S(null), Tn = S(!1), En = qe(null), Dn = qe(null), On = S(null), F = S(null), kn = S(!1), An = Ze, jn = d(() => !!O.dataset && O.dataset.length);
|
|
174
|
+
Ge(() => {
|
|
175
|
+
hn.value = !0, Nn();
|
|
176
176
|
});
|
|
177
|
-
let Mn =
|
|
177
|
+
let Mn = d(() => !!I.value.debug);
|
|
178
178
|
function Nn() {
|
|
179
|
-
if (
|
|
179
|
+
if (s(O.dataset) ? (c({
|
|
180
180
|
componentName: "VueUiDonutEvolution",
|
|
181
181
|
type: "dataset",
|
|
182
182
|
debug: Mn.value
|
|
183
|
-
}), Ln.value = !0) :
|
|
184
|
-
|
|
183
|
+
}), Ln.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
|
|
184
|
+
me({
|
|
185
185
|
datasetObject: e,
|
|
186
186
|
requiredAttributes: ["name", "values"]
|
|
187
187
|
}).forEach((e) => {
|
|
188
|
-
|
|
188
|
+
c({
|
|
189
189
|
componentName: "VueUiDonutEvolution",
|
|
190
190
|
type: "datasetSerieAttribute",
|
|
191
191
|
property: e,
|
|
@@ -193,13 +193,13 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
193
193
|
debug: Mn.value
|
|
194
194
|
}), Ln.value = !0;
|
|
195
195
|
});
|
|
196
|
-
}),
|
|
196
|
+
}), s(O.dataset) || (Ln.value = I.value.loading), setTimeout(() => {
|
|
197
197
|
Tn.value = !0;
|
|
198
198
|
}, 10), Bn(), I.value.responsive) {
|
|
199
|
-
let e =
|
|
199
|
+
let e = ke(() => {
|
|
200
200
|
Tn.value = !1;
|
|
201
|
-
let { width: e, height: t } =
|
|
202
|
-
chart:
|
|
201
|
+
let { width: e, height: t } = Ae({
|
|
202
|
+
chart: P.value,
|
|
203
203
|
title: I.value.style.chart.title.text ? bn.value : null,
|
|
204
204
|
legend: I.value.style.chart.legend.show ? xn.value : null,
|
|
205
205
|
slicer: I.value.style.chart.zoom.show && Rn.value > 1 ? wn.value : null,
|
|
@@ -211,10 +211,10 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
211
211
|
}, 10);
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
|
-
En.value && (Dn.value && En.value.unobserve(Dn.value), En.value.disconnect()), En.value = new ResizeObserver(e), Dn.value =
|
|
214
|
+
En.value && (Dn.value && En.value.unobserve(Dn.value), En.value.disconnect()), En.value = new ResizeObserver(e), Dn.value = P.value.parentNode, En.value.observe(Dn.value);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
let I =
|
|
217
|
+
let I = S(Gn()), L = d(() => I.value.userOptions.useCursorPointer), Pn = d(() => i({
|
|
218
218
|
defaultConfig: {
|
|
219
219
|
useCssAnimation: !1,
|
|
220
220
|
table: { show: !1 },
|
|
@@ -252,8 +252,8 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
252
252
|
} }
|
|
253
253
|
},
|
|
254
254
|
userConfig: I.value.skeletonConfig ?? {}
|
|
255
|
-
})), { loading: Fn, FINAL_DATASET: In, manualLoading: Ln } =
|
|
256
|
-
...
|
|
255
|
+
})), { loading: Fn, FINAL_DATASET: In, manualLoading: Ln } = be({
|
|
256
|
+
...Je(O),
|
|
257
257
|
FINAL_CONFIG: I,
|
|
258
258
|
prepareConfig: Gn,
|
|
259
259
|
callback: () => {
|
|
@@ -261,7 +261,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
261
261
|
await Bn();
|
|
262
262
|
});
|
|
263
263
|
},
|
|
264
|
-
skeletonDataset:
|
|
264
|
+
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
265
265
|
{
|
|
266
266
|
name: "",
|
|
267
267
|
values: [
|
|
@@ -299,14 +299,14 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
299
299
|
color: "#CACACA"
|
|
300
300
|
}
|
|
301
301
|
],
|
|
302
|
-
skeletonConfig:
|
|
302
|
+
skeletonConfig: i({
|
|
303
303
|
defaultConfig: I.value,
|
|
304
304
|
userConfig: Pn.value
|
|
305
305
|
})
|
|
306
|
-
}), R =
|
|
306
|
+
}), R = S({
|
|
307
307
|
width: I.value.style.chart.layout.width,
|
|
308
308
|
height: I.value.style.chart.layout.height
|
|
309
|
-
}), Rn =
|
|
309
|
+
}), Rn = d(() => Math.max(...In.value.map((e) => e.values.length))), z = S({
|
|
310
310
|
start: 0,
|
|
311
311
|
end: Rn.value
|
|
312
312
|
});
|
|
@@ -314,7 +314,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
314
314
|
Bn();
|
|
315
315
|
}
|
|
316
316
|
async function Bn() {
|
|
317
|
-
await
|
|
317
|
+
await Ue(), await Ue();
|
|
318
318
|
let { startIndex: e, endIndex: t } = I.value.style.chart.zoom, n = Cn.value;
|
|
319
319
|
z.value = {
|
|
320
320
|
start: 0,
|
|
@@ -322,61 +322,61 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
322
322
|
}, (e != null || t != null) && n ? (e == null ? (z.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (z.value.end = K.value, n.setEndValue(K.value)) : n.setEndValue(Vn(t + 1))) : (z.value = {
|
|
323
323
|
start: 0,
|
|
324
324
|
end: K.value
|
|
325
|
-
},
|
|
325
|
+
}, sn.value += 1);
|
|
326
326
|
}
|
|
327
327
|
function Vn(e) {
|
|
328
328
|
let t = K.value;
|
|
329
329
|
return e > t ? t : e < 0 || I.value.style.chart.zoom.startIndex !== null && e < I.value.style.chart.zoom.startIndex ? I.value.style.chart.zoom.startIndex === null ? 1 : I.value.style.chart.zoom.startIndex + 1 : e;
|
|
330
330
|
}
|
|
331
|
-
let { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } =
|
|
331
|
+
let { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Ne({ config: I.value }), { svgRef: B } = Pe({ config: I.value.style.chart.title });
|
|
332
332
|
function Gn() {
|
|
333
|
-
let e =
|
|
334
|
-
userConfig:
|
|
335
|
-
defaultConfig:
|
|
333
|
+
let e = Ce({
|
|
334
|
+
userConfig: O.config,
|
|
335
|
+
defaultConfig: en
|
|
336
336
|
}), t = {}, n = e.theme;
|
|
337
|
-
if (n) if (!
|
|
337
|
+
if (n) if (!tn.value(e)) nn(e), t = e;
|
|
338
338
|
else {
|
|
339
|
-
let r =
|
|
340
|
-
userConfig:
|
|
339
|
+
let r = Ce({
|
|
340
|
+
userConfig: Ie[n] || O.config,
|
|
341
341
|
defaultConfig: e
|
|
342
342
|
});
|
|
343
343
|
t = {
|
|
344
|
-
...
|
|
345
|
-
userConfig:
|
|
344
|
+
...Ce({
|
|
345
|
+
userConfig: O.config,
|
|
346
346
|
defaultConfig: r
|
|
347
347
|
}),
|
|
348
|
-
customPalette: e.customPalette ? e.customPalette :
|
|
348
|
+
customPalette: e.customPalette ? e.customPalette : ee[n] || le
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
else t = e;
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
|
-
|
|
355
|
-
Fn.value || (I.value = Gn()), Hn.value = !I.value.userOptions.showOnChartHover, Nn(),
|
|
356
|
-
}, { deep: !0 }),
|
|
354
|
+
Ye(() => O.config, (e) => {
|
|
355
|
+
Fn.value || (I.value = Gn()), Hn.value = !I.value.userOptions.showOnChartHover, Nn(), cn.value += 1, ln.value += 1, un.value += 1, V.value.showTable = I.value.table.show;
|
|
356
|
+
}, { deep: !0 }), Ye(() => O.dataset, (e) => {
|
|
357
357
|
Array.isArray(e) && e.length > 0 && (Ln.value = !1), zn();
|
|
358
358
|
}, { deep: !0 });
|
|
359
|
-
let { isPrinting: Kn, isImaging: qn, generatePdf: Jn, generateImage: Yn } =
|
|
360
|
-
elementId:
|
|
359
|
+
let { isPrinting: Kn, isImaging: qn, generatePdf: Jn, generateImage: Yn } = ye({
|
|
360
|
+
elementId: k.value,
|
|
361
361
|
fileName: I.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
362
362
|
options: I.value.userOptions.print
|
|
363
|
-
}), Xn =
|
|
364
|
-
|
|
363
|
+
}), Xn = d(() => I.value.userOptions.show && !I.value.style.chart.title.text), Zn = d(() => l(I.value.customPalette)), V = S({ showTable: I.value.table.show });
|
|
364
|
+
Ye(I, () => {
|
|
365
365
|
V.value = { showTable: I.value.table.show };
|
|
366
366
|
}, { immediate: !0 });
|
|
367
|
-
let H =
|
|
367
|
+
let H = d(() => ({
|
|
368
368
|
top: I.value.style.chart.layout.padding.top,
|
|
369
369
|
right: I.value.style.chart.layout.padding.right,
|
|
370
370
|
bottom: I.value.style.chart.layout.padding.bottom,
|
|
371
371
|
left: I.value.style.chart.layout.padding.left
|
|
372
|
-
})), U =
|
|
372
|
+
})), U = d(() => I.value.style.chart.layout.grid.yAxis.position === "right");
|
|
373
373
|
function Qn() {
|
|
374
374
|
let e = 0;
|
|
375
|
-
|
|
375
|
+
dn.value && (e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
376
376
|
let n = t.getComputedTextLength();
|
|
377
377
|
return n > e ? n : e;
|
|
378
378
|
}, 0));
|
|
379
|
-
let t =
|
|
379
|
+
let t = mn.value ? mn.value.getBoundingClientRect().width + I.value.style.chart.layout.grid.axis.yLabelOffsetX + I.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
380
380
|
return {
|
|
381
381
|
left: U.value ? 0 : n,
|
|
382
382
|
right: U.value ? n : 0,
|
|
@@ -385,25 +385,25 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
385
385
|
crosshair: 5
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
let $n =
|
|
388
|
+
let $n = S(0), er = ke((e) => {
|
|
389
389
|
$n.value = e;
|
|
390
390
|
}, 100);
|
|
391
|
-
|
|
392
|
-
let t =
|
|
391
|
+
Xe((e) => {
|
|
392
|
+
let t = fn.value;
|
|
393
393
|
if (!t) return;
|
|
394
394
|
let n = new ResizeObserver((e) => {
|
|
395
395
|
er(e[0].contentRect.height);
|
|
396
396
|
});
|
|
397
397
|
n.observe(t), e(() => n.disconnect());
|
|
398
|
-
}),
|
|
398
|
+
}), We(() => {
|
|
399
399
|
$n.value = 0;
|
|
400
400
|
});
|
|
401
|
-
let tr =
|
|
401
|
+
let tr = d(() => {
|
|
402
402
|
let e = 0;
|
|
403
|
-
|
|
403
|
+
pn.value && (e = pn.value.getBBox().height);
|
|
404
404
|
let t = 0;
|
|
405
|
-
return
|
|
406
|
-
}), W =
|
|
405
|
+
return fn.value && (t = $n.value), e + t + I.value.style.chart.layout.grid.axis.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
406
|
+
}), W = d(() => {
|
|
407
407
|
let e = Qn(), t = I.value.style.chart.layout.dataLabels.fontSize * 3, n = R.value.width, r = R.value.height, i = H.value.left + e.left, a = n - H.value.right - e.right, o = n - i - H.value.right - e.right, s = r - H.value.top - H.value.bottom - t - tr.value, c = H.value.top + t;
|
|
408
408
|
return {
|
|
409
409
|
top: c,
|
|
@@ -420,14 +420,14 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
420
420
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
421
421
|
crosshair: e.crosshair
|
|
422
422
|
};
|
|
423
|
-
}), G =
|
|
424
|
-
[null, void 0].includes(e.name) &&
|
|
423
|
+
}), G = d(() => (In.value.forEach((e, t) => {
|
|
424
|
+
[null, void 0].includes(e.name) && c({
|
|
425
425
|
componentName: "VueUiDonutEvolution",
|
|
426
426
|
type: "datasetSerieAttribute",
|
|
427
427
|
property: "name",
|
|
428
428
|
index: t,
|
|
429
429
|
debug: Mn.value
|
|
430
|
-
}), [null, void 0].includes(e.values) &&
|
|
430
|
+
}), [null, void 0].includes(e.values) && c({
|
|
431
431
|
componentName: "VueUiDonutEvolution",
|
|
432
432
|
type: "datasetSerieAttribute",
|
|
433
433
|
property: "values",
|
|
@@ -436,18 +436,18 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
436
436
|
});
|
|
437
437
|
}), In.value.map((e, t) => ({
|
|
438
438
|
...e,
|
|
439
|
-
values:
|
|
440
|
-
color:
|
|
439
|
+
values: r(e.values),
|
|
440
|
+
color: ae(e.color) || Zn.value[t] || le[t] || le[t % le.length],
|
|
441
441
|
length: (e.values || []).length,
|
|
442
|
-
uid:
|
|
443
|
-
})))), nr =
|
|
442
|
+
uid: te()
|
|
443
|
+
})))), nr = d(() => G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
444
444
|
...e,
|
|
445
445
|
values: e.values.filter((e, t) => t >= z.value.start && t <= z.value.end)
|
|
446
|
-
}))), K =
|
|
447
|
-
|
|
446
|
+
}))), K = d(() => Math.max(...G.value.map((e) => e.length))), q = S([]), rr = 0;
|
|
447
|
+
Xe(() => {
|
|
448
448
|
let e = ++rr;
|
|
449
449
|
(async () => {
|
|
450
|
-
let t = await
|
|
450
|
+
let t = await _e({
|
|
451
451
|
values: I.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
452
452
|
maxDatapoints: K.value,
|
|
453
453
|
formatter: I.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
@@ -457,7 +457,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
457
457
|
e === rr && (q.value = t);
|
|
458
458
|
})();
|
|
459
459
|
});
|
|
460
|
-
let J =
|
|
460
|
+
let J = d(() => W.value.width / (z.value.end - z.value.start)), ir = d(() => {
|
|
461
461
|
let e = [];
|
|
462
462
|
for (let t = 0; t < z.value.end - z.value.start; t += 1) {
|
|
463
463
|
let n = nr.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 = W.value.left + J.value * t + J.value / 2;
|
|
@@ -470,44 +470,44 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
return e;
|
|
473
|
-
}), ar =
|
|
474
|
-
let e = Math.max(...ir.value.map((e) => e.subtotal).filter((e) =>
|
|
473
|
+
}), ar = d(() => {
|
|
474
|
+
let e = Math.max(...ir.value.map((e) => e.subtotal).filter((e) => ge(e))) ?? 1, t = Math.min(...ir.value.map((e) => e.subtotal).filter((e) => ge(e))) ?? 0, n = Math.max(I.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
|
|
475
475
|
return r = I.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, I.value.style.chart.layout.grid.yAxis.scaleMin), I.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
|
|
476
476
|
max: n,
|
|
477
477
|
min: r
|
|
478
478
|
};
|
|
479
|
-
}), Y =
|
|
479
|
+
}), Y = d(() => {
|
|
480
480
|
let e = ir.value.length === 1 ? ar.value.max * 2 : ar.value.max;
|
|
481
481
|
return se(ar.value.min, e, I.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
482
482
|
});
|
|
483
483
|
function or(e) {
|
|
484
484
|
return (e - Y.value.min) / (Y.value.max - Y.value.min);
|
|
485
485
|
}
|
|
486
|
-
let sr =
|
|
486
|
+
let sr = d(() => Y.value.ticks.map((e) => ({
|
|
487
487
|
y: W.value.bottom - W.value.height * or(e),
|
|
488
488
|
value: e
|
|
489
|
-
}))), X =
|
|
489
|
+
}))), X = d(() => {
|
|
490
490
|
let e = ir.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
491
|
-
return e.length === 1 && t * 2, e.map((t,
|
|
492
|
-
let
|
|
491
|
+
return e.length === 1 && t * 2, e.map((t, r) => {
|
|
492
|
+
let i = Math.min(W.value.width / 24, J.value / 2 * .7), a = i > W.value.width / 16 ? W.value.width / 16 : i, o = j.value === t.index ? W.value.width / 16 : a, s = e.length > 4 ? i * 2 : i * 2 > J.value / 2 * .7 ? J.value / 2 * .7 : i * 2, c = W.value.bottom - W.value.height * or(t.subtotal), l = nr.value.map((e) => ({
|
|
493
493
|
color: e.color,
|
|
494
494
|
name: e.name,
|
|
495
|
-
value: e.values[
|
|
495
|
+
value: e.values[r] ?? 0
|
|
496
496
|
})).toSorted((e, t) => t.value - e.value);
|
|
497
497
|
return {
|
|
498
498
|
...t,
|
|
499
|
-
y:
|
|
500
|
-
radius:
|
|
501
|
-
activeRadius:
|
|
502
|
-
hoverRadius:
|
|
503
|
-
donut:
|
|
504
|
-
donutHover:
|
|
505
|
-
donutFocus:
|
|
499
|
+
y: c,
|
|
500
|
+
radius: a,
|
|
501
|
+
activeRadius: o,
|
|
502
|
+
hoverRadius: s,
|
|
503
|
+
donut: n({ series: l }, t.x, c, a, a, 1.99999, 2, 1, 360, 105.25, a / 2),
|
|
504
|
+
donutHover: n({ series: l }, t.x, c, s, s, 1.99999, 2, 1, 360, 105.25, s / 2),
|
|
505
|
+
donutFocus: n({ series: l }, W.value.centerX, W.value.centerY, W.value.height / 3.6, W.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, W.value.height / 6)
|
|
506
506
|
};
|
|
507
507
|
});
|
|
508
508
|
});
|
|
509
509
|
function cr(e, t, n) {
|
|
510
|
-
return ce(I.value.style.chart.layout.dataLabels.formatter, e,
|
|
510
|
+
return ce(I.value.style.chart.layout.dataLabels.formatter, e, de({
|
|
511
511
|
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
512
512
|
v: e,
|
|
513
513
|
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -517,11 +517,11 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
517
517
|
index: n
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function lr(e,
|
|
521
|
-
return isNaN(e.value /
|
|
520
|
+
function lr(e, n) {
|
|
521
|
+
return isNaN(e.value / t(n, "value")) ? 0 : (e.value / t(n, "value") * 100).toFixed(0) + "%";
|
|
522
522
|
}
|
|
523
523
|
function ur(e) {
|
|
524
|
-
|
|
524
|
+
j.value = null, M.value = null, F.value = null, I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
525
525
|
datapoint: e,
|
|
526
526
|
seriesIndex: e.seriesIndex + z.value.start
|
|
527
527
|
});
|
|
@@ -530,16 +530,16 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
530
530
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
531
531
|
datapoint: e,
|
|
532
532
|
seriesIndex: e.index + z.value.start
|
|
533
|
-
}),
|
|
533
|
+
}), j.value = e.index, M.value = e, F.value = e.index;
|
|
534
534
|
}
|
|
535
|
-
let fr =
|
|
535
|
+
let fr = S(null);
|
|
536
536
|
function pr(e, t) {
|
|
537
537
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
538
538
|
datapoint: e,
|
|
539
539
|
seriesIndex: e.index + z.value.start
|
|
540
|
-
}), !(!e.subtotal || !I.value.style.chart.dialog.show) && (
|
|
540
|
+
}), !(!e.subtotal || !I.value.style.chart.dialog.show) && (M.value = null, j.value = null, rn.value = !0, N.value = e, jr(e), [null, void 0].includes(t) || (fr.value = t));
|
|
541
541
|
}
|
|
542
|
-
let
|
|
542
|
+
let Z = d(() => G.value.map((e, t) => ({
|
|
543
543
|
name: e.name,
|
|
544
544
|
value: e.values.slice(z.value.start, z.value.end).reduce((e, t) => e + t, 0),
|
|
545
545
|
shape: "circle",
|
|
@@ -547,10 +547,10 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
547
547
|
color: e.color
|
|
548
548
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
549
549
|
...e,
|
|
550
|
-
opacity:
|
|
551
|
-
segregate: () =>
|
|
552
|
-
isSegregated:
|
|
553
|
-
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? ce(I.value.style.chart.layout.dataLabels.formatter, e.value,
|
|
550
|
+
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
551
|
+
segregate: () => _r(e.uid),
|
|
552
|
+
isSegregated: A.value.includes(e.uid),
|
|
553
|
+
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? ce(I.value.style.chart.layout.dataLabels.formatter, e.value, de({
|
|
554
554
|
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
555
555
|
v: e.value,
|
|
556
556
|
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -558,12 +558,12 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
558
558
|
}), {
|
|
559
559
|
datapoint: e,
|
|
560
560
|
seriesIndex: t
|
|
561
|
-
}) : ""}${I.value.style.chart.legend.showPercentage ?
|
|
562
|
-
v: e.value /
|
|
561
|
+
}) : ""}${I.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / mr.value) ? "-" : de({
|
|
562
|
+
v: e.value / mr.value * 100,
|
|
563
563
|
s: "%",
|
|
564
564
|
r: I.value.style.chart.legend.roundingPercentage
|
|
565
565
|
})}${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
566
|
-
}))),
|
|
566
|
+
}))), mr = d(() => X.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), hr = d(() => ({
|
|
567
567
|
cy: "donut-div-legend",
|
|
568
568
|
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
569
569
|
color: I.value.style.chart.legend.color,
|
|
@@ -571,38 +571,38 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
571
571
|
paddingBottom: 12,
|
|
572
572
|
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
573
573
|
}));
|
|
574
|
-
function
|
|
575
|
-
|
|
576
|
-
|
|
574
|
+
function gr() {
|
|
575
|
+
A.value.length ? A.value = [] : Z.value.forEach((e) => {
|
|
576
|
+
A.value.push(e.uid);
|
|
577
577
|
}), An("selectLegend", nr.value);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
if (
|
|
579
|
+
function _r(e) {
|
|
580
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), An("selectLegend", nr.value);
|
|
581
581
|
else {
|
|
582
|
-
if (
|
|
583
|
-
|
|
582
|
+
if (A.value.length === G.value.length - 1) return;
|
|
583
|
+
A.value.push(e), An("selectLegend", nr.value);
|
|
584
584
|
}
|
|
585
|
-
|
|
585
|
+
N.value && pr(X.value.find((e, t) => t === fr.value));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function vr(e) {
|
|
588
588
|
return G.value.length ? G.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
let t =
|
|
592
|
-
t !== null &&
|
|
590
|
+
function yr(e) {
|
|
591
|
+
let t = vr(e);
|
|
592
|
+
t !== null && A.value.includes(t.uid) && _r(t.uid);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
let t =
|
|
596
|
-
t !== null && (
|
|
594
|
+
function br(e) {
|
|
595
|
+
let t = vr(e);
|
|
596
|
+
t !== null && (A.value.includes(t.uid) || _r(t.uid));
|
|
597
597
|
}
|
|
598
|
-
let
|
|
599
|
-
let e = [""].concat(G.value.filter((e) => !
|
|
598
|
+
let Q = d(() => {
|
|
599
|
+
let e = [""].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
600
600
|
name: e.name,
|
|
601
601
|
color: e.color
|
|
602
602
|
})), ["Σ"]), t = [];
|
|
603
603
|
for (let e = 0; e < K.value; e += 1) {
|
|
604
|
-
let n = G.value.filter((e) => !
|
|
605
|
-
t.push([q.value[e] ? q.value[e].text : "-"].concat(G.value.filter((e) => !
|
|
604
|
+
let n = G.value.filter((e) => !A.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
605
|
+
t.push([q.value[e] ? q.value[e].text : "-"].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
|
|
606
606
|
value: t.values[e] ?? 0,
|
|
607
607
|
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
608
608
|
})), [`${I.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(I.value.table.td.roundingValue))}${I.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -624,55 +624,55 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
624
624
|
},
|
|
625
625
|
breakpoint: I.value.table.responsiveBreakpoint
|
|
626
626
|
},
|
|
627
|
-
colNames: [I.value.table.columnNames.period].concat(G.value.filter((e) => !
|
|
627
|
+
colNames: [I.value.table.columnNames.period].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), I.value.table.columnNames.total)
|
|
628
628
|
};
|
|
629
629
|
});
|
|
630
|
-
function
|
|
630
|
+
function xr() {
|
|
631
631
|
return G.value;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
|
|
633
|
+
function Sr(e = null) {
|
|
634
|
+
Ue(() => {
|
|
635
635
|
let t = [
|
|
636
636
|
[I.value.style.chart.title.text],
|
|
637
637
|
[I.value.style.chart.title.subtitle.text],
|
|
638
638
|
[""]
|
|
639
|
-
], n = [...
|
|
640
|
-
e ? e(i) :
|
|
639
|
+
], n = [...Q.value.head.map((e) => e.name ?? e)], r = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], i = he(t.concat([n]).concat(r));
|
|
640
|
+
e ? e(i) : ne({
|
|
641
641
|
csvContent: i,
|
|
642
642
|
title: I.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
643
643
|
});
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
|
-
let
|
|
647
|
-
function
|
|
648
|
-
|
|
646
|
+
let $ = S(!1);
|
|
647
|
+
function Cr(e) {
|
|
648
|
+
$.value = e, on.value += 1;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function wr() {
|
|
651
651
|
V.value.showTable = !V.value.showTable;
|
|
652
652
|
}
|
|
653
|
-
let
|
|
653
|
+
let Tr = S(!1);
|
|
654
654
|
function Er() {
|
|
655
|
-
|
|
655
|
+
Tr.value = !Tr.value;
|
|
656
656
|
}
|
|
657
657
|
function Dr(e) {
|
|
658
658
|
return e.proportion * 100 > I.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
659
659
|
}
|
|
660
|
-
let Or =
|
|
660
|
+
let Or = S([]), kr = S({}), Ar = S(null);
|
|
661
661
|
function jr(e) {
|
|
662
662
|
Or.value = e.donut.map((e) => ({
|
|
663
663
|
name: e.name,
|
|
664
664
|
values: [e.value],
|
|
665
665
|
color: e.color
|
|
666
|
-
})), kr.value =
|
|
666
|
+
})), kr.value = re({
|
|
667
667
|
...I.value.style.chart.dialog.donutChart,
|
|
668
668
|
responsive: !0,
|
|
669
669
|
theme: I.value.theme
|
|
670
670
|
}), Ar.value && Ar.value.open();
|
|
671
671
|
}
|
|
672
672
|
async function Mr({ scale: e = 2 } = {}) {
|
|
673
|
-
if (!
|
|
674
|
-
let { width: t, height: n } =
|
|
675
|
-
domElement:
|
|
673
|
+
if (!P.value) return;
|
|
674
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
|
|
675
|
+
domElement: P.value,
|
|
676
676
|
base64: !0,
|
|
677
677
|
img: !0,
|
|
678
678
|
scale: e
|
|
@@ -686,8 +686,8 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
686
686
|
aspectRatio: r
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
|
-
|
|
690
|
-
timeLabelsEls:
|
|
689
|
+
Te({
|
|
690
|
+
timeLabelsEls: fn,
|
|
691
691
|
timeLabels: q,
|
|
692
692
|
slicer: z,
|
|
693
693
|
configRef: I,
|
|
@@ -711,22 +711,22 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
711
711
|
"enable"
|
|
712
712
|
],
|
|
713
713
|
isAutoSize: !1,
|
|
714
|
-
width:
|
|
715
|
-
height:
|
|
714
|
+
width: d(() => R.value.width),
|
|
715
|
+
height: d(() => R.value.height),
|
|
716
716
|
rotation: I.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
717
717
|
});
|
|
718
|
-
let Nr =
|
|
718
|
+
let Nr = d(() => {
|
|
719
719
|
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
720
720
|
return {
|
|
721
|
-
component: e ?
|
|
721
|
+
component: e ? $t : Kt,
|
|
722
722
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
723
723
|
props: e ? {
|
|
724
724
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
725
725
|
color: I.value.table.th.color,
|
|
726
726
|
headerColor: I.value.table.th.color,
|
|
727
727
|
headerBg: I.value.table.th.backgroundColor,
|
|
728
|
-
isFullscreen:
|
|
729
|
-
fullscreenParent:
|
|
728
|
+
isFullscreen: $.value,
|
|
729
|
+
fullscreenParent: P.value,
|
|
730
730
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
731
731
|
isCursorPointer: L.value
|
|
732
732
|
} : {
|
|
@@ -746,24 +746,24 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
});
|
|
749
|
-
|
|
750
|
-
I.value.table.show || (e && I.value.table.useDialog &&
|
|
749
|
+
Ye(() => V.value.showTable, (e) => {
|
|
750
|
+
I.value.table.show || (e && I.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
|
|
751
751
|
});
|
|
752
752
|
function Pr() {
|
|
753
753
|
V.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
|
|
754
754
|
}
|
|
755
|
-
let Fr =
|
|
755
|
+
let Fr = d(() => Z.value.map((e) => ({
|
|
756
756
|
...e,
|
|
757
757
|
name: e.display
|
|
758
|
-
}))), Ir =
|
|
758
|
+
}))), Ir = d(() => I.value.style.chart.backgroundColor), Lr = d(() => I.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = Se({
|
|
759
759
|
svg: B,
|
|
760
|
-
title:
|
|
760
|
+
title: d(() => I.value.style.chart.title),
|
|
761
761
|
legend: Lr,
|
|
762
762
|
legendItems: Fr,
|
|
763
763
|
backgroundColor: Ir
|
|
764
764
|
});
|
|
765
765
|
async function Br({ isCb: e }) {
|
|
766
|
-
yn.value = !0, await
|
|
766
|
+
yn.value = !0, await Ue();
|
|
767
767
|
try {
|
|
768
768
|
if (e) {
|
|
769
769
|
let { blob: e, url: t, text: n, dataUrl: r } = await zr();
|
|
@@ -806,14 +806,14 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
806
806
|
F.value = null, kn.value = !0;
|
|
807
807
|
}
|
|
808
808
|
function Wr() {
|
|
809
|
-
F.value = null,
|
|
809
|
+
F.value = null, j.value = null, M.value = null, kn.value = !1;
|
|
810
810
|
}
|
|
811
811
|
function Gr(e) {
|
|
812
|
-
if (!B.value ||
|
|
812
|
+
if (!B.value || Tr.value || document.activeElement !== B.value || !X.value.length) return;
|
|
813
813
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
814
814
|
if (!t && !n && !r && !i) return;
|
|
815
815
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
816
|
-
F.value = null,
|
|
816
|
+
F.value = null, j.value = null, M.value = null;
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
if (r) {
|
|
@@ -823,44 +823,44 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
823
823
|
pr(e, F.value);
|
|
824
824
|
return;
|
|
825
825
|
}
|
|
826
|
-
let a = F.value, o =
|
|
826
|
+
let a = F.value, o = j.value, s = a !== null && a >= 0 && a < X.value.length, c = o !== null && o >= 0 && o < X.value.length;
|
|
827
827
|
s ? n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= X.value.length && (a = 0), a < 0 && (a = X.value.length - 1)) : a = n ? 0 : X.value.length - 1;
|
|
828
|
-
let
|
|
829
|
-
|
|
828
|
+
let l = X.value[a];
|
|
829
|
+
l && dr(l);
|
|
830
830
|
}
|
|
831
|
-
let Kr =
|
|
832
|
-
headers:
|
|
833
|
-
rows:
|
|
831
|
+
let Kr = d(() => ({
|
|
832
|
+
headers: Q.value?.colNames ?? [],
|
|
833
|
+
rows: Q.value?.bodyA11y ?? []
|
|
834
834
|
}));
|
|
835
|
-
return
|
|
836
|
-
getData:
|
|
835
|
+
return Oe({
|
|
836
|
+
getData: xr,
|
|
837
837
|
getImage: Mr,
|
|
838
838
|
generatePdf: Jn,
|
|
839
|
-
generateCsv:
|
|
839
|
+
generateCsv: Sr,
|
|
840
840
|
generateImage: Yn,
|
|
841
841
|
generateSvg: Br,
|
|
842
|
-
hideSeries:
|
|
843
|
-
showSeries:
|
|
844
|
-
toggleTable:
|
|
842
|
+
hideSeries: br,
|
|
843
|
+
showSeries: yr,
|
|
844
|
+
toggleTable: wr,
|
|
845
845
|
toggleAnnotator: Er,
|
|
846
|
-
toggleFullscreen:
|
|
846
|
+
toggleFullscreen: Cr,
|
|
847
847
|
copyAlt: Hr
|
|
848
|
-
}), (e,
|
|
848
|
+
}), (e, t) => (x(), m("div", {
|
|
849
849
|
ref_key: "donutEvolutionChart",
|
|
850
|
-
ref:
|
|
851
|
-
class:
|
|
852
|
-
style:
|
|
853
|
-
id:
|
|
854
|
-
onMouseenter:
|
|
855
|
-
onMouseleave:
|
|
850
|
+
ref: P,
|
|
851
|
+
class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
852
|
+
style: b(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
853
|
+
id: k.value,
|
|
854
|
+
onMouseenter: t[5] ||= () => E(Un)(!0),
|
|
855
|
+
onMouseleave: t[6] ||= () => E(Un)(!1)
|
|
856
856
|
}, [
|
|
857
|
-
|
|
858
|
-
id: `chart-instructions-${
|
|
857
|
+
h("div", {
|
|
858
|
+
id: `chart-instructions-${k.value}`,
|
|
859
859
|
class: "sr-only"
|
|
860
|
-
}, [
|
|
861
|
-
Kr.value?.rows?.length ? (
|
|
860
|
+
}, [h("p", null, T(I.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
861
|
+
Kr.value?.rows?.length ? (x(), f(Me, {
|
|
862
862
|
key: 0,
|
|
863
|
-
uid:
|
|
863
|
+
uid: k.value,
|
|
864
864
|
head: Kr.value.headers,
|
|
865
865
|
body: Kr.value.rows,
|
|
866
866
|
notice: I.value.a11y.translations.tableAvailable,
|
|
@@ -871,22 +871,22 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
871
871
|
"body",
|
|
872
872
|
"notice",
|
|
873
873
|
"caption"
|
|
874
|
-
])) :
|
|
875
|
-
I.value.userOptions.buttons.annotator ? (
|
|
874
|
+
])) : p("", !0),
|
|
875
|
+
I.value.userOptions.buttons.annotator ? (x(), f(E(Xt), {
|
|
876
876
|
key: 1,
|
|
877
|
-
svgRef:
|
|
877
|
+
svgRef: E(B),
|
|
878
878
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
879
879
|
color: I.value.style.chart.color,
|
|
880
|
-
active:
|
|
880
|
+
active: Tr.value,
|
|
881
881
|
isCursorPointer: L.value,
|
|
882
882
|
onClose: Er
|
|
883
883
|
}, {
|
|
884
|
-
"annotator-action-close":
|
|
885
|
-
"annotator-action-color":
|
|
886
|
-
"annotator-action-draw":
|
|
887
|
-
"annotator-action-undo":
|
|
888
|
-
"annotator-action-redo":
|
|
889
|
-
"annotator-action-delete":
|
|
884
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
885
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
886
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
887
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
888
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
889
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
890
890
|
_: 3
|
|
891
891
|
}, 8, [
|
|
892
892
|
"svgRef",
|
|
@@ -894,22 +894,22 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
894
894
|
"color",
|
|
895
895
|
"active",
|
|
896
896
|
"isCursorPointer"
|
|
897
|
-
])) :
|
|
898
|
-
Xn.value ? (
|
|
897
|
+
])) : p("", !0),
|
|
898
|
+
Xn.value ? (x(), m("div", {
|
|
899
899
|
key: 2,
|
|
900
900
|
ref_key: "noTitle",
|
|
901
|
-
ref:
|
|
901
|
+
ref: an,
|
|
902
902
|
class: "vue-data-ui-no-title-space",
|
|
903
903
|
style: "height:36px; width: 100%;background:transparent"
|
|
904
|
-
}, null, 512)) :
|
|
905
|
-
I.value.style.chart.title.text ? (
|
|
904
|
+
}, null, 512)) : p("", !0),
|
|
905
|
+
I.value.style.chart.title.text ? (x(), m("div", {
|
|
906
906
|
key: 3,
|
|
907
907
|
ref_key: "chartTitle",
|
|
908
908
|
ref: bn,
|
|
909
909
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
910
910
|
onMouseleave: ur
|
|
911
|
-
}, [(
|
|
912
|
-
key: `title_${
|
|
911
|
+
}, [(x(), f(De, {
|
|
912
|
+
key: `title_${cn.value}`,
|
|
913
913
|
config: {
|
|
914
914
|
title: {
|
|
915
915
|
cy: "donut-evolution-div-title",
|
|
@@ -920,17 +920,17 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
920
920
|
...I.value.style.chart.title.subtitle
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
}, null, 8, ["config"]))], 544)) :
|
|
924
|
-
|
|
925
|
-
I.value.userOptions.show && jn.value && (
|
|
923
|
+
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
924
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, et),
|
|
925
|
+
I.value.userOptions.show && jn.value && (E(Wn) || E(Hn)) ? (x(), f(E(Zt), {
|
|
926
926
|
ref_key: "userOptionsRef",
|
|
927
927
|
ref: _n,
|
|
928
|
-
key: `user_options_${
|
|
928
|
+
key: `user_options_${on.value}`,
|
|
929
929
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
930
930
|
color: I.value.style.chart.color,
|
|
931
|
-
isPrinting:
|
|
932
|
-
isImaging:
|
|
933
|
-
uid:
|
|
931
|
+
isPrinting: E(Kn),
|
|
932
|
+
isImaging: E(qn),
|
|
933
|
+
uid: k.value,
|
|
934
934
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
935
935
|
hasImg: I.value.userOptions.buttons.img,
|
|
936
936
|
hasSvg: I.value.userOptions.buttons.svg,
|
|
@@ -938,29 +938,29 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
938
938
|
hasTable: I.value.userOptions.buttons.table,
|
|
939
939
|
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
940
940
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
941
|
-
isFullscreen:
|
|
941
|
+
isFullscreen: $.value,
|
|
942
942
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
943
|
-
chartElement:
|
|
943
|
+
chartElement: P.value,
|
|
944
944
|
position: I.value.userOptions.position,
|
|
945
945
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
946
|
-
isAnnotation:
|
|
946
|
+
isAnnotation: Tr.value,
|
|
947
947
|
callbacks: I.value.userOptions.callbacks,
|
|
948
948
|
printScale: I.value.userOptions.print.scale,
|
|
949
949
|
tableDialog: I.value.table.useDialog,
|
|
950
950
|
isCursorPointer: L.value,
|
|
951
|
-
onToggleFullscreen:
|
|
952
|
-
onGeneratePdf:
|
|
953
|
-
onGenerateCsv:
|
|
951
|
+
onToggleFullscreen: Cr,
|
|
952
|
+
onGeneratePdf: E(Jn),
|
|
953
|
+
onGenerateCsv: Sr,
|
|
954
954
|
onGenerateImage: Vr,
|
|
955
955
|
onGenerateSvg: Br,
|
|
956
|
-
onToggleTable:
|
|
956
|
+
onToggleTable: wr,
|
|
957
957
|
onToggleAnnotator: Er,
|
|
958
958
|
onCopyAlt: Hr,
|
|
959
|
-
style:
|
|
960
|
-
},
|
|
959
|
+
style: b({ visibility: E(Wn) ? E(Hn) ? "visible" : "hidden" : "visible" })
|
|
960
|
+
}, ze({ _: 2 }, [
|
|
961
961
|
e.$slots.menuIcon ? {
|
|
962
962
|
name: "menuIcon",
|
|
963
|
-
fn:
|
|
963
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
964
964
|
isOpen: t,
|
|
965
965
|
color: n
|
|
966
966
|
})), void 0, !0)]),
|
|
@@ -968,32 +968,32 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
968
968
|
} : void 0,
|
|
969
969
|
e.$slots.optionPdf ? {
|
|
970
970
|
name: "optionPdf",
|
|
971
|
-
fn:
|
|
971
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
972
972
|
key: "1"
|
|
973
973
|
} : void 0,
|
|
974
974
|
e.$slots.optionCsv ? {
|
|
975
975
|
name: "optionCsv",
|
|
976
|
-
fn:
|
|
976
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
977
977
|
key: "2"
|
|
978
978
|
} : void 0,
|
|
979
979
|
e.$slots.optionImg ? {
|
|
980
980
|
name: "optionImg",
|
|
981
|
-
fn:
|
|
981
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
982
982
|
key: "3"
|
|
983
983
|
} : void 0,
|
|
984
984
|
e.$slots.optionSvg ? {
|
|
985
985
|
name: "optionSvg",
|
|
986
|
-
fn:
|
|
986
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
987
987
|
key: "4"
|
|
988
988
|
} : void 0,
|
|
989
989
|
e.$slots.optionTable ? {
|
|
990
990
|
name: "optionTable",
|
|
991
|
-
fn:
|
|
991
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
992
992
|
key: "5"
|
|
993
993
|
} : void 0,
|
|
994
994
|
e.$slots.optionFullscreen ? {
|
|
995
995
|
name: "optionFullscreen",
|
|
996
|
-
fn:
|
|
996
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
|
|
997
997
|
toggleFullscreen: t,
|
|
998
998
|
isFullscreen: n
|
|
999
999
|
})), void 0, !0)]),
|
|
@@ -1001,7 +1001,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1001
1001
|
} : void 0,
|
|
1002
1002
|
e.$slots.optionAnnotator ? {
|
|
1003
1003
|
name: "optionAnnotator",
|
|
1004
|
-
fn:
|
|
1004
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
|
|
1005
1005
|
toggleAnnotator: t,
|
|
1006
1006
|
isAnnotator: n
|
|
1007
1007
|
})), void 0, !0)]),
|
|
@@ -1009,17 +1009,17 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1009
1009
|
} : void 0,
|
|
1010
1010
|
e.$slots.optionAltCopy ? {
|
|
1011
1011
|
name: "optionAltCopy",
|
|
1012
|
-
fn:
|
|
1012
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
1013
1013
|
key: "8"
|
|
1014
1014
|
} : void 0,
|
|
1015
1015
|
e.$slots["custom-menu-before"] ? {
|
|
1016
1016
|
name: "custom-menu-before",
|
|
1017
|
-
fn:
|
|
1017
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1018
1018
|
key: "9"
|
|
1019
1019
|
} : void 0,
|
|
1020
1020
|
e.$slots["custom-menu-after"] ? {
|
|
1021
1021
|
name: "custom-menu-after",
|
|
1022
|
-
fn:
|
|
1022
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1023
1023
|
key: "10"
|
|
1024
1024
|
} : void 0
|
|
1025
1025
|
]), 1032, [
|
|
@@ -1047,60 +1047,60 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1047
1047
|
"isCursorPointer",
|
|
1048
1048
|
"onGeneratePdf",
|
|
1049
1049
|
"style"
|
|
1050
|
-
])) :
|
|
1051
|
-
|
|
1050
|
+
])) : p("", !0),
|
|
1051
|
+
h("div", tt, [(x(), m("svg", {
|
|
1052
1052
|
ref_key: "svgRef",
|
|
1053
1053
|
ref: B,
|
|
1054
|
-
xmlns:
|
|
1055
|
-
"aria-describedby": `chart-instructions-${
|
|
1056
|
-
class:
|
|
1057
|
-
"vue-data-ui-fullscreen--on":
|
|
1058
|
-
"vue-data-ui-fulscreen--off":
|
|
1054
|
+
xmlns: E(fe),
|
|
1055
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1056
|
+
class: v({
|
|
1057
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
1058
|
+
"vue-data-ui-fulscreen--off": !$.value
|
|
1059
1059
|
}),
|
|
1060
1060
|
viewBox: `0 0 ${W.value.absoluteWidth} ${W.value.absoluteHeight}`,
|
|
1061
|
-
style:
|
|
1061
|
+
style: b(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};`),
|
|
1062
1062
|
tabindex: "0",
|
|
1063
1063
|
onFocus: Ur,
|
|
1064
1064
|
onBlur: Wr,
|
|
1065
1065
|
onKeydown: Gr
|
|
1066
1066
|
}, [
|
|
1067
|
-
|
|
1068
|
-
e.$slots["chart-background"] ? (
|
|
1067
|
+
Ve(E(Yt)),
|
|
1068
|
+
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1069
1069
|
key: 0,
|
|
1070
1070
|
x: W.value.left,
|
|
1071
1071
|
y: W.value.top,
|
|
1072
1072
|
width: W.value.width,
|
|
1073
1073
|
height: W.value.height,
|
|
1074
1074
|
style: { pointerEvents: "none" }
|
|
1075
|
-
}, [
|
|
1076
|
-
|
|
1077
|
-
id: `hover_${
|
|
1075
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : p("", !0),
|
|
1076
|
+
h("defs", null, [h("linearGradient", {
|
|
1077
|
+
id: `hover_${k.value}`,
|
|
1078
1078
|
x1: "0%",
|
|
1079
1079
|
y1: "0%",
|
|
1080
1080
|
x2: "0%",
|
|
1081
1081
|
y2: "100%"
|
|
1082
|
-
}, [
|
|
1082
|
+
}, [h("stop", {
|
|
1083
1083
|
offset: "0%",
|
|
1084
|
-
"stop-color":
|
|
1085
|
-
}, null, 8,
|
|
1084
|
+
"stop-color": E(o)(I.value.style.chart.backgroundColor, I.value.style.chart.layout.highlighter.opacity)
|
|
1085
|
+
}, null, 8, at), h("stop", {
|
|
1086
1086
|
offset: "100%",
|
|
1087
|
-
"stop-color":
|
|
1088
|
-
}, null, 8,
|
|
1089
|
-
|
|
1087
|
+
"stop-color": E(o)(I.value.style.chart.layout.highlighter.color, I.value.style.chart.layout.highlighter.opacity)
|
|
1088
|
+
}, null, 8, ot)], 8, it), h("radialGradient", { id: `focus_${k.value}` }, [
|
|
1089
|
+
h("stop", {
|
|
1090
1090
|
offset: "0%",
|
|
1091
|
-
"stop-color":
|
|
1092
|
-
}, null, 8,
|
|
1093
|
-
|
|
1091
|
+
"stop-color": E(o)(E(ae)(I.value.style.chart.backgroundColor), 0)
|
|
1092
|
+
}, null, 8, ct),
|
|
1093
|
+
h("stop", {
|
|
1094
1094
|
offset: "77%",
|
|
1095
|
-
"stop-color":
|
|
1096
|
-
}, null, 8,
|
|
1097
|
-
|
|
1095
|
+
"stop-color": E(o)("#FFFFFF", 30)
|
|
1096
|
+
}, null, 8, lt),
|
|
1097
|
+
h("stop", {
|
|
1098
1098
|
offset: "100%",
|
|
1099
|
-
"stop-color":
|
|
1100
|
-
}, null, 8,
|
|
1101
|
-
], 8,
|
|
1102
|
-
I.value.style.chart.layout.grid.show ? (
|
|
1103
|
-
|
|
1099
|
+
"stop-color": E(o)(E(ae)(I.value.style.chart.backgroundColor), 0)
|
|
1100
|
+
}, null, 8, ut)
|
|
1101
|
+
], 8, st)]),
|
|
1102
|
+
I.value.style.chart.layout.grid.show ? (x(), m("g", dt, [
|
|
1103
|
+
h("line", {
|
|
1104
1104
|
x1: U.value ? W.value.right : W.value.left,
|
|
1105
1105
|
x2: U.value ? W.value.right : W.value.left,
|
|
1106
1106
|
y1: W.value.top,
|
|
@@ -1108,8 +1108,8 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1108
1108
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1109
1109
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1110
1110
|
"stroke-linecap": "round"
|
|
1111
|
-
}, null, 8,
|
|
1112
|
-
|
|
1111
|
+
}, null, 8, ft),
|
|
1112
|
+
h("line", {
|
|
1113
1113
|
x1: W.value.left,
|
|
1114
1114
|
x2: W.value.right,
|
|
1115
1115
|
y1: W.value.bottom,
|
|
@@ -1117,8 +1117,8 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1117
1117
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1118
1118
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1119
1119
|
"stroke-linecap": "round"
|
|
1120
|
-
}, null, 8,
|
|
1121
|
-
I.value.style.chart.layout.grid.showVerticalLines ? (
|
|
1120
|
+
}, null, 8, pt),
|
|
1121
|
+
I.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", mt, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, t) => (x(), m("line", {
|
|
1122
1122
|
x1: W.value.left + (t + 1) * J.value,
|
|
1123
1123
|
x2: W.value.left + (t + 1) * J.value,
|
|
1124
1124
|
y1: W.value.top,
|
|
@@ -1126,36 +1126,36 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1126
1126
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1127
1127
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1128
1128
|
"stroke-linecap": "round"
|
|
1129
|
-
}, null, 8,
|
|
1130
|
-
])) :
|
|
1131
|
-
|
|
1129
|
+
}, null, 8, ht))), 256))])) : p("", !0)
|
|
1130
|
+
])) : p("", !0),
|
|
1131
|
+
h("g", null, [I.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1132
1132
|
key: 0,
|
|
1133
1133
|
ref_key: "yAxisLabel",
|
|
1134
|
-
ref:
|
|
1134
|
+
ref: mn,
|
|
1135
1135
|
"font-size": I.value.style.chart.layout.grid.axis.fontSize,
|
|
1136
1136
|
fill: I.value.style.chart.layout.grid.axis.color,
|
|
1137
1137
|
transform: `translate(${U.value ? W.value.absoluteWidth - I.value.style.chart.layout.grid.axis.fontSize / 2 - I.value.style.chart.layout.grid.axis.yLabelOffsetX : I.value.style.chart.layout.grid.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1138
1138
|
"text-anchor": "middle",
|
|
1139
1139
|
style: { transition: "none" }
|
|
1140
|
-
},
|
|
1140
|
+
}, T(I.value.style.chart.layout.grid.axis.yLabel), 9, gt)) : p("", !0), I.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
ref_key: "xAxisLabel",
|
|
1143
|
-
ref:
|
|
1143
|
+
ref: pn,
|
|
1144
1144
|
"text-anchor": "middle",
|
|
1145
1145
|
x: W.value.absoluteWidth / 2,
|
|
1146
1146
|
y: W.value.absoluteHeight - 3,
|
|
1147
1147
|
"font-size": I.value.style.chart.layout.grid.axis.fontSize,
|
|
1148
1148
|
fill: I.value.style.chart.layout.grid.axis.color
|
|
1149
|
-
},
|
|
1150
|
-
I.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
1149
|
+
}, T(I.value.style.chart.layout.grid.axis.xLabel), 9, _t)) : p("", !0)]),
|
|
1150
|
+
I.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1151
1151
|
key: 2,
|
|
1152
1152
|
ref_key: "scaleLabels",
|
|
1153
|
-
ref:
|
|
1154
|
-
class:
|
|
1153
|
+
ref: dn,
|
|
1154
|
+
class: v({
|
|
1155
1155
|
"donut-opacity": !0,
|
|
1156
|
-
"donut-behind":
|
|
1156
|
+
"donut-behind": j.value !== null
|
|
1157
1157
|
})
|
|
1158
|
-
}, [(
|
|
1158
|
+
}, [(x(!0), m(u, null, C(sr.value, (e, t) => (x(), m("g", null, [e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("line", {
|
|
1159
1159
|
key: 0,
|
|
1160
1160
|
x1: U.value ? W.value.right : W.value.left,
|
|
1161
1161
|
x2: U.value ? W.value.right + 5 : W.value.left - 5,
|
|
@@ -1163,7 +1163,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1163
1163
|
y2: e.y,
|
|
1164
1164
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1165
1165
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth
|
|
1166
|
-
}, null, 8,
|
|
1166
|
+
}, null, 8, vt)) : p("", !0), e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("text", {
|
|
1167
1167
|
key: 1,
|
|
1168
1168
|
x: U.value ? W.value.right - I.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : W.value.left + I.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
1169
1169
|
y: e.y + I.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -1171,7 +1171,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1171
1171
|
"text-anchor": U.value ? "start" : "end",
|
|
1172
1172
|
fill: I.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1173
1173
|
"font-weight": I.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1174
|
-
},
|
|
1174
|
+
}, T(E(ie)(e.value) ? E(ce)(I.value.style.chart.layout.dataLabels.formatter, e.value, E(de)({
|
|
1175
1175
|
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
1176
1176
|
v: e.value,
|
|
1177
1177
|
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -1179,39 +1179,39 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1179
1179
|
}), {
|
|
1180
1180
|
datapoint: e,
|
|
1181
1181
|
seriesIndex: t
|
|
1182
|
-
}) : ""), 9,
|
|
1183
|
-
I.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
1182
|
+
}) : ""), 9, yt)) : p("", !0)]))), 256))], 2)) : p("", !0),
|
|
1183
|
+
I.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1184
1184
|
key: 3,
|
|
1185
1185
|
ref_key: "timeLabelsEls",
|
|
1186
|
-
ref:
|
|
1187
|
-
class:
|
|
1188
|
-
}, [(
|
|
1186
|
+
ref: fn,
|
|
1187
|
+
class: v({ "donut-opacity": !0 })
|
|
1188
|
+
}, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, t) => (x(), m("g", null, [(I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === K.value - 1) || !I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && q.value[t] && q.value[t].text ? (x(), m("g", bt, [String(q.value[t].text).includes("\n") ? (x(), m("text", {
|
|
1189
1189
|
key: 1,
|
|
1190
1190
|
class: "vue-data-ui-time-label",
|
|
1191
1191
|
"text-anchor": I.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : I.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1192
1192
|
"font-size": I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1193
1193
|
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1194
|
-
transform: `translate(${W.value.left + J.value *
|
|
1195
|
-
innerHTML:
|
|
1196
|
-
content: String(q.value[
|
|
1194
|
+
transform: `translate(${W.value.left + J.value * t + J.value / 2}, ${W.value.bottom + I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${I.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1195
|
+
innerHTML: E(a)({
|
|
1196
|
+
content: String(q.value[t].text),
|
|
1197
1197
|
fontSize: I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1198
1198
|
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1199
1199
|
x: 0,
|
|
1200
1200
|
y: 0
|
|
1201
1201
|
})
|
|
1202
|
-
}, null, 8,
|
|
1202
|
+
}, null, 8, St)) : (x(), m("text", {
|
|
1203
1203
|
key: 0,
|
|
1204
1204
|
class: "vue-data-ui-time-label",
|
|
1205
1205
|
"text-anchor": I.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : I.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1206
1206
|
"font-size": I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1207
1207
|
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1208
|
-
transform: `translate(${W.value.left + J.value *
|
|
1209
|
-
},
|
|
1210
|
-
(
|
|
1208
|
+
transform: `translate(${W.value.left + J.value * t + J.value / 2}, ${W.value.bottom + I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${I.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1209
|
+
}, T(q.value[t].text || ""), 9, xt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1210
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", null, [I.value.style.chart.layout.line.show && t < X.value.length - 1 && ![e.subtotal, X.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1211
1211
|
key: 0,
|
|
1212
|
-
class:
|
|
1212
|
+
class: v({
|
|
1213
1213
|
"donut-opacity": !0,
|
|
1214
|
-
"donut-behind":
|
|
1214
|
+
"donut-behind": j.value !== null
|
|
1215
1215
|
}),
|
|
1216
1216
|
x1: e.x,
|
|
1217
1217
|
y1: e.y,
|
|
@@ -1221,20 +1221,20 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1221
1221
|
"stroke-width": I.value.style.chart.layout.line.strokeWidth,
|
|
1222
1222
|
"stroke-linecap": "round",
|
|
1223
1223
|
"stroke-linejoin": "round"
|
|
1224
|
-
}, null, 10,
|
|
1224
|
+
}, null, 10, Ct)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", wt, [e.subtotal ? (x(), m("circle", {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
cx: e.x,
|
|
1227
1227
|
cy: e.y,
|
|
1228
1228
|
r: e.activeRadius,
|
|
1229
1229
|
fill: I.value.style.chart.backgroundColor
|
|
1230
|
-
}, null, 8,
|
|
1231
|
-
(
|
|
1230
|
+
}, null, 8, Tt)) : p("", !0)]))]))), 256)),
|
|
1231
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
|
|
1232
1232
|
"donut-opacity": !0,
|
|
1233
|
-
"donut-behind": t !==
|
|
1234
|
-
}) }, [e.subtotal ? (
|
|
1235
|
-
(
|
|
1233
|
+
"donut-behind": t !== j.value && j.value !== null
|
|
1234
|
+
}) }, [e.subtotal ? (x(), m("g", Et, [j.value !== null && j.value === t ? (x(), m("g", Dt, [
|
|
1235
|
+
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Dr(t) ? (x(), m("path", {
|
|
1236
1236
|
key: 0,
|
|
1237
|
-
d:
|
|
1237
|
+
d: E(ue)(t, {
|
|
1238
1238
|
x: t.center.endX,
|
|
1239
1239
|
y: t.center.endY
|
|
1240
1240
|
}, 12, 12, {
|
|
@@ -1246,66 +1246,66 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1246
1246
|
"stroke-linecap": "round",
|
|
1247
1247
|
"stroke-linejoin": "round",
|
|
1248
1248
|
fill: "none"
|
|
1249
|
-
}, null, 8,
|
|
1250
|
-
(
|
|
1249
|
+
}, null, 8, Ot)) : p("", !0)]))), 256)),
|
|
1250
|
+
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Dr(t) ? (x(), m("text", {
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
"data-cy-hover-label": "",
|
|
1253
|
-
"text-anchor":
|
|
1254
|
-
x:
|
|
1255
|
-
y:
|
|
1253
|
+
"text-anchor": E(pe)(t, !0, 0).anchor,
|
|
1254
|
+
x: E(pe)(t, !0, 9).x,
|
|
1255
|
+
y: E(oe)(t, 14, 10),
|
|
1256
1256
|
fill: I.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1257
1257
|
"font-size": 8,
|
|
1258
1258
|
"font-weight": "bold"
|
|
1259
|
-
},
|
|
1260
|
-
|
|
1259
|
+
}, T(t.name) + ": " + T(lr(t, e.donut)) + " (" + T(t.value === null ? "-" : cr(t.value, t, n)) + ") ", 9, kt)) : p("", !0)]))), 256)),
|
|
1260
|
+
h("g", null, [h("circle", {
|
|
1261
1261
|
cx: e.x,
|
|
1262
1262
|
cy: e.y,
|
|
1263
1263
|
r: e.hoverRadius,
|
|
1264
1264
|
fill: I.value.style.chart.backgroundColor
|
|
1265
|
-
}, null, 8,
|
|
1266
|
-
])) :
|
|
1267
|
-
(
|
|
1265
|
+
}, null, 8, At)])
|
|
1266
|
+
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1267
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
|
|
1268
1268
|
"donut-opacity": !0,
|
|
1269
|
-
"donut-behind": t !==
|
|
1270
|
-
}) }, [e.subtotal === null ?
|
|
1269
|
+
"donut-behind": t !== j.value && j.value !== null
|
|
1270
|
+
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g", jt, [e.subtotal === 0 ? (x(), m("circle", {
|
|
1271
1271
|
key: 0,
|
|
1272
1272
|
cx: e.x,
|
|
1273
1273
|
cy: e.y,
|
|
1274
1274
|
r: 3,
|
|
1275
1275
|
fill: I.value.style.chart.color
|
|
1276
|
-
}, null, 8,
|
|
1276
|
+
}, null, 8, Mt)) : j.value !== null && j.value === t ? (x(), m("g", Nt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1277
1277
|
d: e.arcSlice,
|
|
1278
1278
|
fill: `${e.color}`,
|
|
1279
1279
|
"stroke-width": 1,
|
|
1280
1280
|
stroke: I.value.style.chart.backgroundColor
|
|
1281
|
-
}, null, 8,
|
|
1281
|
+
}, null, 8, Pt))), 256))])) : (x(), m("g", Ft, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1282
1282
|
d: e.arcSlice,
|
|
1283
1283
|
fill: `${e.color}`,
|
|
1284
1284
|
"stroke-width": .5,
|
|
1285
1285
|
stroke: I.value.style.chart.backgroundColor
|
|
1286
|
-
}, null, 8,
|
|
1287
|
-
(
|
|
1286
|
+
}, null, 8, It))), 256))]))]))], 2))), 256)),
|
|
1287
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
|
|
1288
1288
|
"donut-opacity": !0,
|
|
1289
|
-
"donut-behind": t !==
|
|
1290
|
-
}) }, [e.subtotal !== null && I.value.style.chart.layout.dataLabels.show ? (
|
|
1289
|
+
"donut-behind": t !== j.value && j.value !== null || rn.value && t !== N.value.index
|
|
1290
|
+
}) }, [e.subtotal !== null && I.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
"text-anchor": "middle",
|
|
1293
1293
|
x: e.x,
|
|
1294
|
-
y:
|
|
1294
|
+
y: j.value === e.index && e.subtotal ? e.y + I.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - I.value.style.chart.layout.dataLabels.fontSize + I.value.style.chart.layout.dataLabels.offsetY,
|
|
1295
1295
|
"font-size": I.value.style.chart.layout.dataLabels.fontSize,
|
|
1296
1296
|
"font-weight": "bold",
|
|
1297
1297
|
fill: I.value.style.chart.layout.dataLabels.color
|
|
1298
|
-
},
|
|
1299
|
-
(
|
|
1298
|
+
}, T(cr(e.subtotal, e, t)), 9, Lt)) : p("", !0)], 2))), 256)),
|
|
1299
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
|
|
1300
1300
|
x: W.value.left + t * J.value,
|
|
1301
1301
|
y: W.value.top,
|
|
1302
1302
|
width: J.value,
|
|
1303
1303
|
height: W.value.height,
|
|
1304
|
-
fill: [
|
|
1305
|
-
class:
|
|
1304
|
+
fill: [j.value, fr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1305
|
+
class: v({ "donut-hover": L.value && e.subtotal && [j.value, fr.value].includes(e.index) }),
|
|
1306
1306
|
style: { pointerEvents: "none" }
|
|
1307
|
-
}, null, 10,
|
|
1308
|
-
(
|
|
1307
|
+
}, null, 10, Rt))), 256)),
|
|
1308
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
|
|
1309
1309
|
"data-cy-trap": "",
|
|
1310
1310
|
x: W.value.left + t * J.value,
|
|
1311
1311
|
y: W.value.top,
|
|
@@ -1315,27 +1315,27 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1315
1315
|
onMouseenter: (t) => dr(e),
|
|
1316
1316
|
onMouseleave: (t) => ur(e),
|
|
1317
1317
|
onClick: (n) => pr(e, t),
|
|
1318
|
-
class:
|
|
1319
|
-
}, null, 42,
|
|
1320
|
-
|
|
1318
|
+
class: v({ "donut-hover": L.value && j.value === e.index && e.subtotal })
|
|
1319
|
+
}, null, 42, zt))), 256)),
|
|
1320
|
+
w(e.$slots, "svg", { svg: {
|
|
1321
1321
|
...W.value,
|
|
1322
|
-
isPrintingImg:
|
|
1322
|
+
isPrintingImg: E(Kn) || E(qn) || vn.value,
|
|
1323
1323
|
isPrintingSvg: yn.value
|
|
1324
1324
|
} }, void 0, !0)
|
|
1325
|
-
], 46,
|
|
1325
|
+
], 46, nt)), e.$slots.hint ? (x(), m("div", Bt, [w(e.$slots, "hint", y(_({
|
|
1326
1326
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1327
1327
|
isVisible: kn.value
|
|
1328
|
-
})), void 0, !0)])) :
|
|
1329
|
-
e.$slots.watermark ? (
|
|
1330
|
-
|
|
1328
|
+
})), void 0, !0)])) : p("", !0)]),
|
|
1329
|
+
e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Kn) || E(qn) || vn.value || yn.value })), void 0, !0)])) : p("", !0),
|
|
1330
|
+
h("div", {
|
|
1331
1331
|
ref_key: "chartSlicer",
|
|
1332
1332
|
ref: wn,
|
|
1333
|
-
style:
|
|
1333
|
+
style: b(`width:100%;background:${I.value.style.chart.backgroundColor}`),
|
|
1334
1334
|
"data-dom-to-png-ignore": ""
|
|
1335
|
-
}, [K.value > 1 && I.value.style.chart.zoom.show ? (
|
|
1335
|
+
}, [K.value > 1 && I.value.style.chart.zoom.show ? (x(), f(Le, {
|
|
1336
1336
|
ref_key: "slicerComponent",
|
|
1337
1337
|
ref: Cn,
|
|
1338
|
-
key: `slicer_${
|
|
1338
|
+
key: `slicer_${sn.value}`,
|
|
1339
1339
|
background: I.value.style.chart.zoom.color,
|
|
1340
1340
|
borderColor: I.value.style.chart.backgroundColor,
|
|
1341
1341
|
fontSize: I.value.style.chart.zoom.fontSize,
|
|
@@ -1350,9 +1350,9 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1350
1350
|
valueStart: z.value.start,
|
|
1351
1351
|
valueEnd: z.value.end,
|
|
1352
1352
|
start: z.value.start,
|
|
1353
|
-
"onUpdate:start":
|
|
1353
|
+
"onUpdate:start": t[0] ||= (e) => z.value.start = e,
|
|
1354
1354
|
end: z.value.end,
|
|
1355
|
-
"onUpdate:end":
|
|
1355
|
+
"onUpdate:end": t[1] ||= (e) => z.value.end = e,
|
|
1356
1356
|
refreshStartPoint: I.value.style.chart.zoom.startIndex === null ? 0 : I.value.style.chart.zoom.startIndex,
|
|
1357
1357
|
refreshEndPoint: I.value.style.chart.zoom.endIndex === null ? K.value : I.value.style.chart.zoom.endIndex + 1,
|
|
1358
1358
|
enableRangeHandles: I.value.style.chart.zoom.enableRangeHandles,
|
|
@@ -1363,7 +1363,7 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1363
1363
|
maxWidth: I.value.style.chart.zoom.maxWidth,
|
|
1364
1364
|
onReset: zn
|
|
1365
1365
|
}, {
|
|
1366
|
-
"reset-action":
|
|
1366
|
+
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1367
1367
|
_: 3
|
|
1368
1368
|
}, 8, [
|
|
1369
1369
|
"background",
|
|
@@ -1388,63 +1388,63 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1388
1388
|
"focusRangeRatio",
|
|
1389
1389
|
"isCursorPointer",
|
|
1390
1390
|
"maxWidth"
|
|
1391
|
-
])) :
|
|
1392
|
-
|
|
1393
|
-
|
|
1391
|
+
])) : p("", !0)], 4),
|
|
1392
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Ht),
|
|
1393
|
+
hn.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Re, {
|
|
1394
1394
|
key: 6,
|
|
1395
|
-
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1396
|
-
}, [
|
|
1395
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1396
|
+
}, [h("div", {
|
|
1397
1397
|
ref_key: "chartLegend",
|
|
1398
1398
|
ref: xn
|
|
1399
|
-
}, [
|
|
1400
|
-
key: `legend_${
|
|
1401
|
-
legendSet:
|
|
1402
|
-
config:
|
|
1403
|
-
onClickMarker:
|
|
1399
|
+
}, [w(e.$slots, "legend", { legend: Z.value }, () => [I.value.style.chart.legend.show ? (x(), f(Fe, {
|
|
1400
|
+
key: `legend_${un.value}`,
|
|
1401
|
+
legendSet: Z.value,
|
|
1402
|
+
config: hr.value,
|
|
1403
|
+
onClickMarker: t[2] ||= ({ legend: e }) => _r(e.uid)
|
|
1404
1404
|
}, {
|
|
1405
|
-
item:
|
|
1406
|
-
onClick: (t) =>
|
|
1407
|
-
style:
|
|
1408
|
-
},
|
|
1409
|
-
legendToggle:
|
|
1405
|
+
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1406
|
+
onClick: (t) => _r(e.uid),
|
|
1407
|
+
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1408
|
+
}, T(e.display), 13, Ut)]),
|
|
1409
|
+
legendToggle: D(() => [Z.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !E(Fn) ? (x(), f(je, {
|
|
1410
1410
|
key: 0,
|
|
1411
1411
|
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1412
1412
|
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1413
1413
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
1414
|
-
checked:
|
|
1415
|
-
onToggle:
|
|
1414
|
+
checked: A.value.length > 0,
|
|
1415
|
+
onToggle: gr
|
|
1416
1416
|
}, null, 8, [
|
|
1417
1417
|
"backgroundColor",
|
|
1418
1418
|
"color",
|
|
1419
1419
|
"fontSize",
|
|
1420
1420
|
"checked"
|
|
1421
|
-
])) :
|
|
1421
|
+
])) : p("", !0)]),
|
|
1422
1422
|
_: 1
|
|
1423
|
-
}, 8, ["legendSet", "config"])) :
|
|
1424
|
-
e.$slots.source ? (
|
|
1423
|
+
}, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
|
|
1424
|
+
e.$slots.source ? (x(), m("div", {
|
|
1425
1425
|
key: 7,
|
|
1426
1426
|
ref_key: "source",
|
|
1427
1427
|
ref: Sn,
|
|
1428
1428
|
dir: "auto"
|
|
1429
|
-
}, [
|
|
1430
|
-
jn.value && I.value.userOptions.buttons.table ? (
|
|
1429
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1430
|
+
jn.value && I.value.userOptions.buttons.table ? (x(), f(Ke(Nr.value.component), He({ key: 8 }, Nr.value.props, {
|
|
1431
1431
|
ref_key: "tableUnit",
|
|
1432
|
-
ref:
|
|
1432
|
+
ref: gn,
|
|
1433
1433
|
onClose: Pr
|
|
1434
|
-
}),
|
|
1435
|
-
content:
|
|
1436
|
-
key: `table_${
|
|
1437
|
-
colNames:
|
|
1438
|
-
head:
|
|
1439
|
-
body:
|
|
1440
|
-
config:
|
|
1434
|
+
}), ze({
|
|
1435
|
+
content: D(() => [(x(), f(E(Jt), {
|
|
1436
|
+
key: `table_${ln.value}`,
|
|
1437
|
+
colNames: Q.value.colNames,
|
|
1438
|
+
head: Q.value.head,
|
|
1439
|
+
body: Q.value.body,
|
|
1440
|
+
config: Q.value.config,
|
|
1441
1441
|
title: I.value.table.useDialog ? "" : Nr.value.title,
|
|
1442
1442
|
withCloseButton: !I.value.table.useDialog,
|
|
1443
1443
|
isCursorPointer: L.value,
|
|
1444
1444
|
onClose: Pr
|
|
1445
1445
|
}, {
|
|
1446
|
-
th:
|
|
1447
|
-
td:
|
|
1446
|
+
th: D(({ th: e }) => [Be(T(e.name ?? e), 1)]),
|
|
1447
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", Wt, "-")) : (x(), m("b", Gt, T(isNaN(e.value) ? "" : I.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(I.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : I.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(I.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1448
1448
|
_: 1
|
|
1449
1449
|
}, 8, [
|
|
1450
1450
|
"colNames",
|
|
@@ -1458,41 +1458,41 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1458
1458
|
_: 2
|
|
1459
1459
|
}, [I.value.table.useDialog ? {
|
|
1460
1460
|
name: "title",
|
|
1461
|
-
fn:
|
|
1461
|
+
fn: D(() => [Be(T(Nr.value.title), 1)]),
|
|
1462
1462
|
key: "0"
|
|
1463
1463
|
} : void 0, I.value.table.useDialog ? {
|
|
1464
1464
|
name: "actions",
|
|
1465
|
-
fn:
|
|
1465
|
+
fn: D(() => [h("button", {
|
|
1466
1466
|
tabindex: "0",
|
|
1467
1467
|
class: "vue-ui-user-options-button",
|
|
1468
|
-
onClick:
|
|
1469
|
-
style:
|
|
1470
|
-
}, [
|
|
1468
|
+
onClick: t[3] ||= (e) => Sr(I.value.userOptions.callbacks.csv),
|
|
1469
|
+
style: b({ cursor: L.value ? "cursor" : "default" })
|
|
1470
|
+
}, [Ve(E(qt), {
|
|
1471
1471
|
name: "fileCsv",
|
|
1472
1472
|
stroke: Nr.value.props.color
|
|
1473
1473
|
}, null, 8, ["stroke"])], 4)]),
|
|
1474
1474
|
key: "1"
|
|
1475
|
-
} : void 0]), 1040)) :
|
|
1476
|
-
I.value.style.chart.dialog.show ? (
|
|
1475
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1476
|
+
I.value.style.chart.dialog.show ? (x(), f(E($t), {
|
|
1477
1477
|
key: 9,
|
|
1478
1478
|
ref_key: "dialog",
|
|
1479
1479
|
ref: Ar,
|
|
1480
|
-
onClose:
|
|
1481
|
-
|
|
1480
|
+
onClose: t[4] ||= (e) => {
|
|
1481
|
+
N.value = null, rn.value = !1, M.value = null, j.value = null, fr.value = null;
|
|
1482
1482
|
},
|
|
1483
1483
|
backgroundColor: I.value.style.chart.dialog.backgroundColor,
|
|
1484
1484
|
color: I.value.style.chart.dialog.color,
|
|
1485
1485
|
headerBg: I.value.style.chart.dialog.header.backgroundColor,
|
|
1486
1486
|
headerColor: I.value.style.chart.dialog.header.color,
|
|
1487
|
-
isFullscreen:
|
|
1488
|
-
fullscreenParent:
|
|
1487
|
+
isFullscreen: $.value,
|
|
1488
|
+
fullscreenParent: P.value
|
|
1489
1489
|
}, {
|
|
1490
|
-
title:
|
|
1491
|
-
content:
|
|
1490
|
+
title: D(() => [Be(T(q.value[Number(N.value.index)] ? q.value[Number(N.value.index)].text : ""), 1)]),
|
|
1491
|
+
content: D(() => [N.value ? (x(), f(E(Qt), {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
config: kr.value,
|
|
1494
1494
|
dataset: Or.value
|
|
1495
|
-
}, null, 8, ["config", "dataset"])) :
|
|
1495
|
+
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1496
1496
|
_: 1
|
|
1497
1497
|
}, 8, [
|
|
1498
1498
|
"backgroundColor",
|
|
@@ -1501,10 +1501,10 @@ var Qe = /* @__PURE__ */ e({ default: () => qt }), $e = ["id"], et = ["id"], tt
|
|
|
1501
1501
|
"headerColor",
|
|
1502
1502
|
"isFullscreen",
|
|
1503
1503
|
"fullscreenParent"
|
|
1504
|
-
])) :
|
|
1505
|
-
|
|
1506
|
-
], 46,
|
|
1504
|
+
])) : p("", !0),
|
|
1505
|
+
E(Fn) ? (x(), f(xe, { key: 10 })) : p("", !0)
|
|
1506
|
+
], 46, Qe));
|
|
1507
1507
|
}
|
|
1508
1508
|
}, [["__scopeId", "data-v-b09f1aa6"]]);
|
|
1509
1509
|
//#endregion
|
|
1510
|
-
export {
|
|
1510
|
+
export { Ze as n, Kt as t };
|