vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- 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 +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, Jt as i, K as a, Kt as o, Mt as s, Pt as c, S as l, Vt as u, X as d, at as ee, b as te, et as f, f as p, h as ne, i as m, j as h, jt as re, kt as ie, ot as ae, p as g, pt as oe, q as se, s as ce, t as le, tt as ue, w as de, xt as fe } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, Jt as i, K as a, Kt as o, Mt as s, Pt as c, S as l, Vt as u, X as d, at as ee, b as te, et as f, f as p, h as ne, i as m, j as h, jt as re, kt as ie, ot as ae, p as g, pt as oe, q as se, s as ce, t as le, tt as ue, w as de, xt as fe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as he } from "./useConfig-
|
|
5
|
-
import { t as ge } from "./usePrinter-
|
|
4
|
+
import { t as he } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as ge } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ye } from "./
|
|
8
|
-
import { t as be } from "./
|
|
9
|
-
import { t as xe } from "./
|
|
10
|
-
import { t as Se } from "./img-
|
|
11
|
-
import { n as Ce } from "./Title-
|
|
12
|
-
import { t as we } from "./Shape-
|
|
7
|
+
import { t as ye } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as Se } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as Ce } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as we } from "./Shape-C21CMlWS.js";
|
|
13
13
|
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as Ee, t as De } from "./useResponsive-ZtArZtUf.js";
|
|
15
15
|
import { t as Oe } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as ke } from "./BaseLegendToggle-
|
|
16
|
+
import { t as ke } from "./BaseLegendToggle-DZVucLnv.js";
|
|
17
17
|
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
18
18
|
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { n as Ne, t as Pe } from "./labelUtils-
|
|
20
|
+
import { n as Ne, t as Pe } from "./labelUtils-BeVpDvTJ.js";
|
|
21
21
|
import { t as Fe } from "./vue_ui_donut-BDGqG07h.js";
|
|
22
|
-
import { t as Ie } from "./Legend-
|
|
22
|
+
import { t as Ie } from "./Legend-CQxUgOd-.js";
|
|
23
23
|
import { Fragment as _, Teleport as Le, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as Ve, guardReactiveProps as C, mergeProps as He, nextTick as Ue, normalizeClass as We, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as Ge, onMounted as Ke, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as Ye, toRefs as Xe, unref as A, useSlots as Ze, vShow as Qe, watch as $e, withCtx as j, withDirectives as et } from "vue";
|
|
24
24
|
//#region src/useSmallArcLayouts.js
|
|
25
25
|
function tt(e) {
|
|
@@ -401,28 +401,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
401
401
|
"copyAlt"
|
|
402
402
|
],
|
|
403
403
|
setup(e, { expose: Te, emit: nt }) {
|
|
404
|
-
let gn = Ve(() => import("./Tooltip-
|
|
404
|
+
let gn = Ve(() => import("./Tooltip-DhjyfHwz.js")), _n = Ve(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), vn = Ve(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), yn = Ve(() => import("./DataTable-BbKgJ5UI.js")), bn = Ve(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), xn = Ve(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Sn = Ve(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Cn = Ve(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_donut: wn } = he(), { isThemeValid: Tn, warnInvalidTheme: En } = be(), Dn = Ze(), M = e, On = v({
|
|
405
405
|
get() {
|
|
406
406
|
return !!M.dataset && M.dataset.length;
|
|
407
407
|
},
|
|
408
408
|
set(e) {
|
|
409
409
|
return e;
|
|
410
410
|
}
|
|
411
|
-
}), N = Je(null), kn = D(null), An = D(null), jn = D(null), Mn = Je(null), Nn = Je(null), Pn = Je(null), Fn = Je(null), In = Je(null), Ln = Je(null), Rn = D(0), zn = D(0), Bn = D(0), Vn = D(!1), Hn = D(null), Un = D(null), Wn = D(
|
|
411
|
+
}), N = Je(null), kn = D(null), An = D(null), jn = D(null), Mn = Je(null), Nn = Je(null), Pn = Je(null), Fn = Je(null), In = Je(null), Ln = Je(null), Rn = D(0), zn = D(0), Bn = D(0), Vn = D(!1), Hn = D(null), Un = D(null), Wn = D(null), Gn = D({
|
|
412
412
|
x: 0,
|
|
413
413
|
y: 0
|
|
414
|
-
}),
|
|
414
|
+
}), Kn = D("pointer"), qn = D(!1), Jn = v({
|
|
415
415
|
get: () => L.value.style.chart.layout.labels.percentage.fontSize,
|
|
416
416
|
set: (e) => e
|
|
417
417
|
}), P = v({
|
|
418
418
|
get: () => L.value.style.chart.layout.labels.name.fontSize,
|
|
419
419
|
set: (e) => e
|
|
420
|
-
}),
|
|
420
|
+
}), Yn = v({
|
|
421
421
|
get: () => L.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
422
422
|
set: (e) => e
|
|
423
|
-
}),
|
|
424
|
-
!L.value.autoSize ||
|
|
425
|
-
|
|
423
|
+
}), Xn = !1, Zn = () => {
|
|
424
|
+
!L.value.autoSize || Xn || (Xn = !0, requestAnimationFrame(() => {
|
|
425
|
+
Xn = !1;
|
|
426
426
|
let e = L.value, t = kn.value, n = z.value;
|
|
427
427
|
if (!e.autoSize || !t || !n) return;
|
|
428
428
|
let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
|
|
@@ -435,7 +435,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
435
435
|
selector: ".vue-data-ui-datalabel-value",
|
|
436
436
|
baseSize: e.style.chart.layout.labels.percentage.fontSize,
|
|
437
437
|
minSize: e.style.chart.layout.labels.percentage.minFontSize,
|
|
438
|
-
sizeRef:
|
|
438
|
+
sizeRef: Jn
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
selector: ".vue-data-ui-datalabel-name",
|
|
@@ -447,7 +447,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
447
447
|
selector: ".vue-data-ui-datalabel-inline",
|
|
448
448
|
baseSize: e.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
449
449
|
minSize: e.style.chart.layout.labels.name.minFontSize,
|
|
450
|
-
sizeRef:
|
|
450
|
+
sizeRef: Yn
|
|
451
451
|
}
|
|
452
452
|
];
|
|
453
453
|
c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
|
|
@@ -465,31 +465,31 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
465
465
|
}));
|
|
466
466
|
};
|
|
467
467
|
Ke(async () => {
|
|
468
|
-
Vn.value = !0,
|
|
468
|
+
Vn.value = !0, er(), requestAnimationFrame(Zn);
|
|
469
469
|
});
|
|
470
|
-
let
|
|
470
|
+
let Qn;
|
|
471
471
|
Ke(() => {
|
|
472
|
-
N.value && (
|
|
472
|
+
N.value && (Qn = new ResizeObserver((e) => {
|
|
473
473
|
for (let t of e) {
|
|
474
474
|
let { width: e, height: n } = t.contentRect;
|
|
475
475
|
if (e > 0 && n > 0) {
|
|
476
|
-
|
|
476
|
+
Zn();
|
|
477
477
|
break;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
}),
|
|
480
|
+
}), Qn.observe(N.value.parentElement));
|
|
481
481
|
}), Ge(() => {
|
|
482
|
-
|
|
482
|
+
Qn?.disconnect();
|
|
483
483
|
}), Ge(() => {
|
|
484
484
|
Pn.value && (Fn.value && Pn.value.unobserve(Fn.value), Pn.value.disconnect());
|
|
485
485
|
});
|
|
486
|
-
let
|
|
487
|
-
function
|
|
486
|
+
let $n = v(() => L.value.debug);
|
|
487
|
+
function er() {
|
|
488
488
|
if (re(M.dataset) ? (ue({
|
|
489
489
|
componentName: "VueUiDonut",
|
|
490
490
|
type: "dataset",
|
|
491
|
-
debug:
|
|
492
|
-
}), On.value = !1,
|
|
491
|
+
debug: $n.value
|
|
492
|
+
}), On.value = !1, lr.value = !0) : (M.dataset.forEach((e, t) => {
|
|
493
493
|
oe({
|
|
494
494
|
datasetObject: e,
|
|
495
495
|
requiredAttributes: ["name", "values"]
|
|
@@ -499,18 +499,17 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
499
499
|
type: "datasetSerieAttribute",
|
|
500
500
|
property: e,
|
|
501
501
|
index: t,
|
|
502
|
-
debug:
|
|
503
|
-
}), On.value = !1,
|
|
502
|
+
debug: $n.value
|
|
503
|
+
}), On.value = !1, lr.value = !0;
|
|
504
504
|
});
|
|
505
|
-
}), M.dataset.forEach((e, t) => {
|
|
505
|
+
}), $n.value && M.dataset.forEach((e, t) => {
|
|
506
506
|
(!e.name || e.name === "") && ue({
|
|
507
507
|
componentName: "VueUiDonut",
|
|
508
508
|
type: "datasetAttributeEmpty",
|
|
509
509
|
property: "name",
|
|
510
|
-
index: t
|
|
511
|
-
debug: tr.value
|
|
510
|
+
index: t
|
|
512
511
|
});
|
|
513
|
-
})), re(M.dataset) || (
|
|
512
|
+
})), re(M.dataset) || (lr.value = L.value.loading), L.value.responsive) {
|
|
514
513
|
let e = Ee(() => {
|
|
515
514
|
let { width: e, height: t } = De({
|
|
516
515
|
chart: N.value,
|
|
@@ -518,30 +517,30 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
518
517
|
legend: L.value.style.chart.legend.show ? Nn.value : null,
|
|
519
518
|
source: In.value,
|
|
520
519
|
noTitle: Ln.value,
|
|
521
|
-
padding: L.value.autoSize ? void 0 :
|
|
520
|
+
padding: L.value.autoSize ? void 0 : br.value
|
|
522
521
|
});
|
|
523
522
|
requestAnimationFrame(() => {
|
|
524
|
-
V.value.width = e, V.value.height = t,
|
|
523
|
+
V.value.width = e, V.value.height = t, Zn();
|
|
525
524
|
});
|
|
526
525
|
});
|
|
527
526
|
Pn.value && (Fn.value && Pn.value.unobserve(Fn.value), Pn.value.disconnect()), Pn.value = new ResizeObserver(e), Fn.value = N.value.parentNode, Pn.value.observe(Fn.value);
|
|
528
527
|
}
|
|
529
528
|
}
|
|
530
|
-
let F = D(se()),
|
|
531
|
-
function
|
|
532
|
-
let e =
|
|
529
|
+
let F = D(se()), tr = D(!1), nr = D(""), I = D(null), rr = D(0);
|
|
530
|
+
function ir() {
|
|
531
|
+
let e = ye({
|
|
533
532
|
userConfig: M.config,
|
|
534
533
|
defaultConfig: wn
|
|
535
534
|
}), t = {}, n = e.theme;
|
|
536
535
|
if (!n) t = e;
|
|
537
536
|
else if (!Tn.value(e)) En(e), t = e;
|
|
538
537
|
else {
|
|
539
|
-
let r =
|
|
538
|
+
let r = ye({
|
|
540
539
|
userConfig: Fe[n] || M.config,
|
|
541
540
|
defaultConfig: e
|
|
542
541
|
});
|
|
543
542
|
t = {
|
|
544
|
-
...
|
|
543
|
+
...ye({
|
|
545
544
|
userConfig: M.config,
|
|
546
545
|
defaultConfig: r
|
|
547
546
|
}),
|
|
@@ -550,7 +549,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
550
549
|
}
|
|
551
550
|
return t;
|
|
552
551
|
}
|
|
553
|
-
let L = D(
|
|
552
|
+
let L = D(ir());
|
|
554
553
|
pe({
|
|
555
554
|
config: () => L.value,
|
|
556
555
|
dataset: () => M.dataset,
|
|
@@ -572,7 +571,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
572
571
|
}
|
|
573
572
|
]
|
|
574
573
|
});
|
|
575
|
-
let
|
|
574
|
+
let ar = v(() => L.value.userOptions.useCursorPointer), or = v(() => i({
|
|
576
575
|
defaultConfig: {
|
|
577
576
|
useCssAnimation: !1,
|
|
578
577
|
table: { show: !1 },
|
|
@@ -600,10 +599,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
600
599
|
} }
|
|
601
600
|
},
|
|
602
601
|
userConfig: L.value.skeletonConfig ?? {}
|
|
603
|
-
})), { loading:
|
|
602
|
+
})), { loading: sr, FINAL_DATASET: cr, manualLoading: lr, skeletonDataset: ur } = _e({
|
|
604
603
|
...Xe(M),
|
|
605
604
|
FINAL_CONFIG: L,
|
|
606
|
-
prepareConfig:
|
|
605
|
+
prepareConfig: ir,
|
|
607
606
|
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
608
607
|
{
|
|
609
608
|
name: "",
|
|
@@ -623,35 +622,35 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
623
622
|
],
|
|
624
623
|
skeletonConfig: i({
|
|
625
624
|
defaultConfig: L.value,
|
|
626
|
-
userConfig:
|
|
625
|
+
userConfig: or.value
|
|
627
626
|
})
|
|
628
|
-
}), R = D(!0),
|
|
629
|
-
function
|
|
627
|
+
}), R = D(!0), dr = D(0), fr = D(!1), pr = null;
|
|
628
|
+
function mr(e = 1e3) {
|
|
630
629
|
return new Promise((t) => {
|
|
631
630
|
let n = performance.now();
|
|
632
631
|
function r(i) {
|
|
633
632
|
let a = i - n, o = Math.min(a / e, 1), s = f(o);
|
|
634
|
-
|
|
633
|
+
dr.value = s, o < 1 ? pr = requestAnimationFrame(r) : (dr.value = 1, pr = null, t());
|
|
635
634
|
}
|
|
636
|
-
|
|
635
|
+
pr !== null && cancelAnimationFrame(pr), dr.value = 0, pr = requestAnimationFrame(r);
|
|
637
636
|
});
|
|
638
637
|
}
|
|
639
|
-
$e(() =>
|
|
640
|
-
if (e ||
|
|
641
|
-
let t =
|
|
642
|
-
!t && n ? (
|
|
638
|
+
$e(() => sr.value, async (e) => {
|
|
639
|
+
if (e || fr.value) return;
|
|
640
|
+
let t = cr.value === ur, n = L.value.startAnimation?.show;
|
|
641
|
+
!t && n ? (fr.value = !0, await mr(L.value.startAnimation.durationMs || 1e3)) : dr.value = 1, R.value = !1;
|
|
643
642
|
}, { immediate: !0 });
|
|
644
|
-
let { userOptionsVisible:
|
|
645
|
-
function
|
|
646
|
-
|
|
643
|
+
let { userOptionsVisible: hr, setUserOptionsVisibility: gr, keepUserOptionState: _r } = je({ config: L.value }), { svgRef: z } = Me({ config: L.value.style.chart.title });
|
|
644
|
+
function vr() {
|
|
645
|
+
gr(!0);
|
|
647
646
|
}
|
|
648
|
-
function
|
|
649
|
-
|
|
647
|
+
function yr() {
|
|
648
|
+
gr(!1);
|
|
650
649
|
}
|
|
651
650
|
$e(() => M.config, (e) => {
|
|
652
|
-
|
|
651
|
+
sr.value || (L.value = ir()), hr.value = !L.value.userOptions.showOnChartHover, er(), Rn.value += 1, zn.value += 1, Bn.value += 1, B.value.dataLabels.show = L.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, V.value.height = L.value.style.chart.height, V.value.width = L.value.style.chart.width;
|
|
653
652
|
}, { deep: !0 });
|
|
654
|
-
let
|
|
653
|
+
let br = v(() => {
|
|
655
654
|
let { top: e, right: t, bottom: n, left: r } = L.value.style.chart.padding;
|
|
656
655
|
return {
|
|
657
656
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -660,11 +659,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
660
659
|
bottom: n,
|
|
661
660
|
left: r
|
|
662
661
|
};
|
|
663
|
-
}), { isPrinting:
|
|
662
|
+
}), { isPrinting: xr, isImaging: Sr, generatePdf: Cr, generateImage: wr } = ge({
|
|
664
663
|
elementId: `donut__${F.value}`,
|
|
665
664
|
fileName: L.value.style.chart.title.text || "vue-ui-donut",
|
|
666
665
|
options: L.value.userOptions.print
|
|
667
|
-
}),
|
|
666
|
+
}), Tr = v(() => L.value.userOptions.show && !L.value.style.chart.title.text), Er = v(() => de(L.value.customPalette)), B = D({
|
|
668
667
|
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
669
668
|
showTable: L.value.table.show,
|
|
670
669
|
showTooltip: L.value.style.chart.tooltip.show
|
|
@@ -679,16 +678,16 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
679
678
|
let V = D({
|
|
680
679
|
height: L.value.style.chart.height,
|
|
681
680
|
width: L.value.style.chart.width
|
|
682
|
-
}),
|
|
681
|
+
}), Dr = v(() => {
|
|
683
682
|
if (L.value.pie) return G.value;
|
|
684
683
|
let e = L.value.style.chart.layout.donut.strokeWidth / 512, t = Math.min(V.value.width, V.value.height) * e, n = t > G.value ? G.value : t;
|
|
685
684
|
return Math.max(n, 12 * (1 + e));
|
|
686
|
-
}),
|
|
685
|
+
}), Or = nt, H = v(() => cr.value.sort((e, t) => {
|
|
687
686
|
let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
|
|
688
687
|
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
689
688
|
}).map((e, t) => ({
|
|
690
689
|
name: e.name,
|
|
691
|
-
color: l(e.color) ||
|
|
690
|
+
color: l(e.color) || Er.value[t] || c[t] || c[t % c.length],
|
|
692
691
|
value: te(e.values.reduce((e, t) => e + t, 0)),
|
|
693
692
|
absoluteValues: e.values,
|
|
694
693
|
comment: e.comment || "",
|
|
@@ -698,28 +697,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
698
697
|
pattern: `pattern_${F.value}_${t}`
|
|
699
698
|
})));
|
|
700
699
|
$e(() => M.dataset, (e) => {
|
|
701
|
-
Array.isArray(e) && e.length > 0 && (
|
|
700
|
+
Array.isArray(e) && e.length > 0 && (lr.value = !1);
|
|
702
701
|
}, { immediate: !0 });
|
|
703
702
|
let U = Je(H.value);
|
|
704
703
|
$e(() => H.value, (e) => {
|
|
705
|
-
U.value = e, requestAnimationFrame(
|
|
704
|
+
U.value = e, requestAnimationFrame(Zn);
|
|
706
705
|
});
|
|
707
|
-
function
|
|
706
|
+
function kr() {
|
|
708
707
|
return H.value.map((e) => ({
|
|
709
708
|
name: e.name,
|
|
710
709
|
color: e.color,
|
|
711
710
|
value: e.value
|
|
712
711
|
}));
|
|
713
712
|
}
|
|
714
|
-
let W = D([]),
|
|
715
|
-
function
|
|
716
|
-
|
|
713
|
+
let W = D([]), Ar = D(!1), jr = D(null);
|
|
714
|
+
function Mr() {
|
|
715
|
+
Or("selectLegend", Br.value.map((e) => ({
|
|
717
716
|
name: e.name,
|
|
718
717
|
color: e.color,
|
|
719
718
|
value: e.value
|
|
720
719
|
})));
|
|
721
720
|
}
|
|
722
|
-
function
|
|
721
|
+
function Nr({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = f }) {
|
|
723
722
|
let o = performance.now();
|
|
724
723
|
function s(c) {
|
|
725
724
|
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
@@ -727,12 +726,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
727
726
|
}
|
|
728
727
|
requestAnimationFrame(s);
|
|
729
728
|
}
|
|
730
|
-
function
|
|
731
|
-
W.value.length ? W.value = [] :
|
|
729
|
+
function Pr() {
|
|
730
|
+
W.value.length ? W.value = [] : Vr.value.forEach((e, t) => {
|
|
732
731
|
W.value.push(t);
|
|
733
|
-
}),
|
|
732
|
+
}), Mr();
|
|
734
733
|
}
|
|
735
|
-
function
|
|
734
|
+
function Fr(e) {
|
|
736
735
|
let t = H.value.find((t, n) => n === e), n = U.value.find((t, n) => n === e).value;
|
|
737
736
|
if (W.value.includes(e)) {
|
|
738
737
|
W.value = W.value.filter((t) => t !== e);
|
|
@@ -741,10 +740,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
741
740
|
U.value = U.value.map((t, n) => e === n ? {
|
|
742
741
|
...t,
|
|
743
742
|
value: r
|
|
744
|
-
} : t),
|
|
743
|
+
} : t), Mr();
|
|
745
744
|
}
|
|
746
745
|
function a() {
|
|
747
|
-
|
|
746
|
+
Ar.value = !0, jr.value = e, Nr({
|
|
748
747
|
from: n,
|
|
749
748
|
to: r,
|
|
750
749
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -752,23 +751,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
752
751
|
U.value = U.value.map((n, r) => e === r ? {
|
|
753
752
|
...n,
|
|
754
753
|
value: t
|
|
755
|
-
} : n), requestAnimationFrame(
|
|
754
|
+
} : n), requestAnimationFrame(Zn);
|
|
756
755
|
},
|
|
757
756
|
onDone: () => {
|
|
758
|
-
i(),
|
|
757
|
+
i(), Ar.value = !1, jr.value = null;
|
|
759
758
|
}
|
|
760
759
|
});
|
|
761
760
|
}
|
|
762
|
-
L.value.serieToggleAnimation.show && L.value.type === "classic" ? a() : (i(), requestAnimationFrame(
|
|
761
|
+
L.value.serieToggleAnimation.show && L.value.type === "classic" ? a() : (i(), requestAnimationFrame(Zn));
|
|
763
762
|
} else if (W.value.length < H.value.length - 1) {
|
|
764
763
|
function t() {
|
|
765
764
|
W.value.push(e), U.value = U.value.map((t, n) => e === n ? {
|
|
766
765
|
...t,
|
|
767
766
|
value: 0
|
|
768
|
-
} : t),
|
|
767
|
+
} : t), Mr();
|
|
769
768
|
}
|
|
770
769
|
function r() {
|
|
771
|
-
|
|
770
|
+
Ar.value = !0, jr.value = e, Nr({
|
|
772
771
|
from: n,
|
|
773
772
|
to: 0,
|
|
774
773
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -776,42 +775,43 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
776
775
|
U.value = U.value.map((n, r) => e === r ? {
|
|
777
776
|
...n,
|
|
778
777
|
value: t
|
|
779
|
-
} : n), requestAnimationFrame(
|
|
778
|
+
} : n), requestAnimationFrame(Zn);
|
|
780
779
|
},
|
|
781
780
|
onDone: () => {
|
|
782
|
-
t(), requestAnimationFrame(
|
|
781
|
+
t(), requestAnimationFrame(Zn), Ar.value = !1, jr.value = null;
|
|
783
782
|
}
|
|
784
783
|
});
|
|
785
784
|
}
|
|
786
785
|
L.value.serieToggleAnimation.show && L.value.type === "classic" ? r() : t();
|
|
787
786
|
}
|
|
788
787
|
}
|
|
789
|
-
function
|
|
790
|
-
return H.value.length ? H.value.find((t) => t.name === e) || (
|
|
788
|
+
function Ir(e) {
|
|
789
|
+
return H.value.length ? H.value.find((t) => t.name === e) || ($n.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : ($n.value && console.warn("VueUiDonut - There are no series to show."), null);
|
|
791
790
|
}
|
|
792
|
-
function
|
|
793
|
-
let t =
|
|
794
|
-
t !== null && W.value.includes(t.seriesIndex) &&
|
|
791
|
+
function Lr(e) {
|
|
792
|
+
let t = Ir(e);
|
|
793
|
+
t !== null && W.value.includes(t.seriesIndex) && Fr(t.seriesIndex);
|
|
795
794
|
}
|
|
796
|
-
function
|
|
797
|
-
let t =
|
|
798
|
-
t !== null && (W.value.includes(t.seriesIndex) ||
|
|
795
|
+
function Rr(e) {
|
|
796
|
+
let t = Ir(e);
|
|
797
|
+
t !== null && (W.value.includes(t.seriesIndex) || Fr(t.seriesIndex));
|
|
799
798
|
}
|
|
800
|
-
let
|
|
801
|
-
if (R.value && !
|
|
802
|
-
let e =
|
|
799
|
+
let zr = v(() => cr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), Br = v(() => {
|
|
800
|
+
if (R.value && !sr.value) {
|
|
801
|
+
let e = dr.value, t = H.value.map((t) => ({
|
|
803
802
|
...t,
|
|
804
803
|
value: t.value * e,
|
|
805
804
|
color: t.color,
|
|
806
805
|
ghost: !1
|
|
807
|
-
})), n =
|
|
806
|
+
})), n = zr.value * (1 - e);
|
|
808
807
|
return n > 0 && t.push({
|
|
809
808
|
name: "__ghost__",
|
|
810
809
|
value: n,
|
|
811
810
|
color: "transparent",
|
|
812
811
|
ghost: !0
|
|
813
812
|
}), t;
|
|
814
|
-
}
|
|
813
|
+
}
|
|
814
|
+
return U.value.forEach((e) => {
|
|
815
815
|
if ([null, void 0].includes(e.values)) return {
|
|
816
816
|
...e,
|
|
817
817
|
values: []
|
|
@@ -820,11 +820,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
820
820
|
...e,
|
|
821
821
|
seriesIndex: t
|
|
822
822
|
})).filter((e, t) => !W.value.includes(t));
|
|
823
|
-
}),
|
|
824
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n /
|
|
823
|
+
}), Vr = v(() => cr.value.map((e, t) => {
|
|
824
|
+
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / cr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
825
825
|
return {
|
|
826
826
|
name: e.name,
|
|
827
|
-
color: l(e.color) ||
|
|
827
|
+
color: l(e.color) || Er.value[t] || c[t] || c[t % c.length],
|
|
828
828
|
value: n,
|
|
829
829
|
shape: "circle",
|
|
830
830
|
patternIndex: t,
|
|
@@ -839,13 +839,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
839
839
|
}), {
|
|
840
840
|
datapoint: e,
|
|
841
841
|
index: t
|
|
842
|
-
}), r = m(L.value.style.chart.layout.labels.percentage.formatter,
|
|
843
|
-
v:
|
|
842
|
+
}), r = m(L.value.style.chart.layout.labels.percentage.formatter, Qr(e), d({
|
|
843
|
+
v: Qr(e),
|
|
844
844
|
s: "%",
|
|
845
845
|
r: L.value.style.chart.legend.roundingPercentage
|
|
846
|
-
})), i =
|
|
846
|
+
})), i = mi({
|
|
847
847
|
val: n,
|
|
848
|
-
percentage: W.value.includes(t) ? `${
|
|
848
|
+
percentage: W.value.includes(t) ? `${pi(e.proportion * 100)}%` : r,
|
|
849
849
|
showVal: L.value.style.chart.legend.showValue,
|
|
850
850
|
showPercentage: L.value.style.chart.legend.showPercentage,
|
|
851
851
|
config: L.value.style.chart.legend
|
|
@@ -853,11 +853,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
853
853
|
return {
|
|
854
854
|
...e,
|
|
855
855
|
opacity: W.value.includes(t) ? .5 : 1,
|
|
856
|
-
segregate: () => !
|
|
856
|
+
segregate: () => !Ar.value && Fr(t),
|
|
857
857
|
isSegregated: W.value.includes(t),
|
|
858
858
|
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
859
859
|
};
|
|
860
|
-
})),
|
|
860
|
+
})), Hr = v(() => ({
|
|
861
861
|
cy: "donut-div-legend",
|
|
862
862
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
863
863
|
color: L.value.style.chart.legend.color,
|
|
@@ -867,7 +867,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
867
867
|
})), G = v(() => {
|
|
868
868
|
let e = L.value.style.chart.layout.donut.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(V.value.width * t, V.value.height * t);
|
|
869
869
|
return Math.max(12, n);
|
|
870
|
-
}), K = v(() => ie({ series:
|
|
870
|
+
}), K = v(() => ie({ series: Br.value }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Dr.value)), Ur = v(() => Math.abs(Br.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Wr = v(() => ie({ series: [{
|
|
871
871
|
value: 1,
|
|
872
872
|
color: L.value.style.chart.layout.donut.emptyFill,
|
|
873
873
|
name: "_",
|
|
@@ -875,10 +875,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
875
875
|
patternIndex: -1,
|
|
876
876
|
ghost: !1,
|
|
877
877
|
absoluteValues: [1]
|
|
878
|
-
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25,
|
|
879
|
-
let e = Math.max(...
|
|
878
|
+
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Dr.value)), q = v(() => K.value.filter((e) => !e.ghost)), J = v(() => {
|
|
879
|
+
let e = Math.max(...Br.value.map((e) => e.value)), t = Br.value.map((t) => t.value / e);
|
|
880
880
|
return h({
|
|
881
|
-
series:
|
|
881
|
+
series: t,
|
|
882
882
|
center: {
|
|
883
883
|
x: V.value.width / 2,
|
|
884
884
|
y: V.value.height / 2
|
|
@@ -887,10 +887,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
887
887
|
hasGhost: R.value
|
|
888
888
|
});
|
|
889
889
|
});
|
|
890
|
-
function
|
|
890
|
+
function Gr(e) {
|
|
891
891
|
return e.x > V.value.width / 2 + 6 ? "start" : e.x < V.value.width / 2 - 6 ? "end" : "middle";
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Kr(e) {
|
|
894
894
|
return e.middlePoint.y > V.value.height / 2 ? s({
|
|
895
895
|
initX: e.middlePoint.x,
|
|
896
896
|
initY: e.middlePoint.y,
|
|
@@ -908,72 +908,72 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
908
908
|
function Y(e) {
|
|
909
909
|
return e.proportion * 100 > L.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
910
910
|
}
|
|
911
|
-
function
|
|
912
|
-
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (
|
|
911
|
+
function qr(e, t) {
|
|
912
|
+
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (Xr.value[t] ?? e.proportion ?? 0) * 100;
|
|
913
913
|
return i > n && i <= r;
|
|
914
914
|
}
|
|
915
915
|
let { smallArcLayoutsClassic: X } = tt({
|
|
916
916
|
FINAL_CONFIG: L,
|
|
917
917
|
noGhostDonut: q,
|
|
918
918
|
svg: V,
|
|
919
|
-
padding:
|
|
920
|
-
labels_inline_fontSize:
|
|
919
|
+
padding: br,
|
|
920
|
+
labels_inline_fontSize: Yn,
|
|
921
921
|
minSize: G,
|
|
922
922
|
findArcMidpoint: ee,
|
|
923
923
|
calcMarkerOffsetX: p,
|
|
924
924
|
calcMarkerOffsetY: g,
|
|
925
|
-
animatingIndex:
|
|
925
|
+
animatingIndex: jr,
|
|
926
926
|
segregated: W,
|
|
927
|
-
isSmallArc:
|
|
927
|
+
isSmallArc: qr
|
|
928
928
|
});
|
|
929
|
-
function
|
|
930
|
-
let n = e.value /
|
|
929
|
+
function Jr(e, t) {
|
|
930
|
+
let n = e.value / Yr(t);
|
|
931
931
|
return isNaN(n) ? 0 : m(L.value.style.chart.layout.labels.percentage.formatter, n * 100, d({
|
|
932
932
|
v: n * 100,
|
|
933
933
|
s: "%",
|
|
934
934
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
935
935
|
}), { datapoint: e });
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Yr(e) {
|
|
938
938
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
939
939
|
}
|
|
940
|
-
let Z = v(() =>
|
|
940
|
+
let Z = v(() => Br.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Xr = v(() => {
|
|
941
941
|
let e = H.value.reduce((e, t) => e + t.value, 0);
|
|
942
942
|
return e <= 0 ? [] : H.value.map((t) => t.value / e);
|
|
943
|
-
}),
|
|
944
|
-
function
|
|
945
|
-
return
|
|
943
|
+
}), Zr = v(() => Z.value / Br.value.length);
|
|
944
|
+
function Qr(e) {
|
|
945
|
+
return Ar.value ? e.proportion * 100 : e.value / Z.value * 100;
|
|
946
946
|
}
|
|
947
|
-
let
|
|
948
|
-
function
|
|
947
|
+
let $r = D(null), ei = D(!1);
|
|
948
|
+
function ti({ datapoint: e, seriesIndex: t }) {
|
|
949
949
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
950
950
|
datapoint: e,
|
|
951
951
|
seriesIndex: t
|
|
952
|
-
}),
|
|
952
|
+
}), tr.value = !1, I.value = null, Wn.value = null, Kn.value = "pointer";
|
|
953
953
|
}
|
|
954
954
|
function Q({ datapoint: e, relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer" }) {
|
|
955
955
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
956
956
|
datapoint: e,
|
|
957
957
|
seriesIndex: n
|
|
958
|
-
}),
|
|
958
|
+
}), Kn.value = i, Wn.value = t, $r.value = {
|
|
959
959
|
datapoint: e,
|
|
960
960
|
seriesIndex: n,
|
|
961
961
|
config: L.value,
|
|
962
962
|
series: H.value
|
|
963
|
-
},
|
|
963
|
+
}, tr.value = r, I.value = t;
|
|
964
964
|
let a = "", o = L.value.style.chart.tooltip.customFormat;
|
|
965
|
-
if (
|
|
965
|
+
if (ei.value = !1, fe(o)) try {
|
|
966
966
|
let t = o({
|
|
967
967
|
seriesIndex: n,
|
|
968
968
|
datapoint: e,
|
|
969
969
|
series: H.value,
|
|
970
970
|
config: L.value
|
|
971
971
|
});
|
|
972
|
-
typeof t == "string" && (
|
|
972
|
+
typeof t == "string" && (nr.value = t, ei.value = !0);
|
|
973
973
|
} catch {
|
|
974
|
-
console.warn("Custom format cannot be applied."),
|
|
974
|
+
console.warn("Custom format cannot be applied."), ei.value = !1;
|
|
975
975
|
}
|
|
976
|
-
|
|
976
|
+
ei.value || (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${Dn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${F.value}_${n})"/>` : ""}</svg>`, a += `<b>${mi({
|
|
977
977
|
showVal: L.value.style.chart.tooltip.showValue,
|
|
978
978
|
showPercentage: L.value.style.chart.tooltip.showPercentage,
|
|
979
979
|
val: `<span>${m(L.value.style.chart.layout.labels.value.formatter, e.value, d({
|
|
@@ -996,9 +996,9 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
996
996
|
seriesIndex: n
|
|
997
997
|
}),
|
|
998
998
|
config: L.value.style.chart.tooltip
|
|
999
|
-
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`),
|
|
999
|
+
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), nr.value = `<div>${a}</div>`);
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function ni(e, t) {
|
|
1002
1002
|
let n = X.value[t];
|
|
1003
1003
|
if (n) return {
|
|
1004
1004
|
textAnchor: n.textAnchor,
|
|
@@ -1012,37 +1012,37 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1012
1012
|
y: g(e)
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
let { textAnchor: r, x: i } =
|
|
1015
|
+
function ri(e, t, n) {
|
|
1016
|
+
let { textAnchor: r, x: i } = ni(e, t), a = hi(e), o = `
|
|
1017
1017
|
<tspan
|
|
1018
1018
|
class="vue-data-ui-datalabel-inline"
|
|
1019
1019
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1020
|
-
font-size="${n ?
|
|
1020
|
+
font-size="${n ? Yn.value : Jn.value}px"
|
|
1021
1021
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
1022
1022
|
>${a}</tspan>
|
|
1023
1023
|
`, s = String(e.name ?? "").split(/\n/g), c = "";
|
|
1024
1024
|
return s.forEach((e, t) => {
|
|
1025
|
-
t === 0 ?
|
|
1025
|
+
c += t === 0 ? `
|
|
1026
1026
|
<tspan
|
|
1027
1027
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1028
1028
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1029
|
-
font-size="${n ?
|
|
1029
|
+
font-size="${n ? Yn.value : P.value}px"
|
|
1030
1030
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
1031
1031
|
>${e}</tspan>
|
|
1032
|
-
` :
|
|
1032
|
+
` : `
|
|
1033
1033
|
<tspan
|
|
1034
1034
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1035
1035
|
x="${i}"
|
|
1036
|
-
dy="${(n ?
|
|
1036
|
+
dy="${(n ? Yn.value : P.value) * 1.2}"
|
|
1037
1037
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1038
|
-
font-size="${n ?
|
|
1038
|
+
font-size="${n ? Yn.value : P.value}px"
|
|
1039
1039
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
1040
1040
|
>${e}</tspan>
|
|
1041
1041
|
`;
|
|
1042
1042
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? c : ""}${o}` : `${o}${L.value.style.chart.layout.labels.name.show ? c : ""}`;
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
let n = J.value[t].middlePoint, r =
|
|
1044
|
+
function ii(e, t) {
|
|
1045
|
+
let n = J.value[t].middlePoint, r = Gr(n), i = s({
|
|
1046
1046
|
initX: n.x,
|
|
1047
1047
|
initY: n.y,
|
|
1048
1048
|
offset: 42,
|
|
@@ -1050,23 +1050,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1050
1050
|
centerY: V.value.height / 2
|
|
1051
1051
|
}), a = i.x;
|
|
1052
1052
|
i.y;
|
|
1053
|
-
let o =
|
|
1053
|
+
let o = hi(e), c = `
|
|
1054
1054
|
<tspan
|
|
1055
1055
|
class="vue-data-ui-datalabel-value"
|
|
1056
1056
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1057
|
-
font-size="${
|
|
1057
|
+
font-size="${Jn.value}px"
|
|
1058
1058
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
1059
1059
|
>${o}</tspan>
|
|
1060
1060
|
`, l = String(e.name ?? "").split(/\n/g), u = "";
|
|
1061
1061
|
return l.forEach((e, t) => {
|
|
1062
|
-
t === 0 ?
|
|
1062
|
+
u += t === 0 ? `
|
|
1063
1063
|
<tspan
|
|
1064
1064
|
class="vue-data-ui-datalabel-name"
|
|
1065
1065
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1066
1066
|
font-size="${P.value}px"
|
|
1067
1067
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
1068
1068
|
>${e}</tspan>
|
|
1069
|
-
` :
|
|
1069
|
+
` : `
|
|
1070
1070
|
<tspan
|
|
1071
1071
|
class="vue-data-ui-datalabel-name"
|
|
1072
1072
|
x="${a}"
|
|
@@ -1078,28 +1078,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1078
1078
|
`;
|
|
1079
1079
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? u : ""}${c}` : `${c}${L.value.style.chart.layout.labels.name.show ? u : ""}`;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function ai(e) {
|
|
1082
1082
|
return L.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${F.value})` : "";
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
if (!
|
|
1084
|
+
function oi(e) {
|
|
1085
|
+
if (!Ar.value || jr.value === null || e.seriesIndex !== jr.value) return 1;
|
|
1086
1086
|
let t = (e.proportion ?? 0) * 100, n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, i = n;
|
|
1087
1087
|
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1088
1088
|
}
|
|
1089
|
-
let
|
|
1090
|
-
head:
|
|
1089
|
+
let si = v(() => ({
|
|
1090
|
+
head: Br.value.map((e) => ({
|
|
1091
1091
|
name: e.name,
|
|
1092
1092
|
color: e.color
|
|
1093
1093
|
})),
|
|
1094
|
-
body:
|
|
1094
|
+
body: Br.value.map((e) => e.value)
|
|
1095
1095
|
}));
|
|
1096
|
-
function
|
|
1096
|
+
function ci(e = null) {
|
|
1097
1097
|
Ue(() => {
|
|
1098
|
-
let n =
|
|
1098
|
+
let n = si.value.head.map((e, t) => [
|
|
1099
1099
|
[e.name],
|
|
1100
|
-
[
|
|
1101
|
-
[isNaN(
|
|
1102
|
-
]), i =
|
|
1100
|
+
[si.value.body[t]],
|
|
1101
|
+
[isNaN(si.value.body[t] / Z.value) ? "-" : si.value.body[t] / Z.value * 100]
|
|
1102
|
+
]), i = [
|
|
1103
1103
|
[L.value.style.chart.title.text],
|
|
1104
1104
|
[L.value.style.chart.title.subtitle.text],
|
|
1105
1105
|
[
|
|
@@ -1107,14 +1107,14 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1107
1107
|
["val"],
|
|
1108
1108
|
["%"]
|
|
1109
1109
|
]
|
|
1110
|
-
].concat(n));
|
|
1111
|
-
e ? e(
|
|
1112
|
-
csvContent:
|
|
1110
|
+
].concat(n), a = r(i);
|
|
1111
|
+
e ? e(a) : t({
|
|
1112
|
+
csvContent: a,
|
|
1113
1113
|
title: L.value.style.chart.title.text || "vue-ui-donut"
|
|
1114
1114
|
});
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
|
-
let
|
|
1117
|
+
let li = v(() => {
|
|
1118
1118
|
let e = [
|
|
1119
1119
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
1120
1120
|
d({
|
|
@@ -1124,13 +1124,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1124
1124
|
r: L.value.table.td.roundingValue
|
|
1125
1125
|
}),
|
|
1126
1126
|
"100%"
|
|
1127
|
-
], t =
|
|
1127
|
+
], t = si.value.head.map((e, t) => [
|
|
1128
1128
|
{
|
|
1129
1129
|
color: e.color,
|
|
1130
1130
|
name: e.name || "-"
|
|
1131
1131
|
},
|
|
1132
|
-
|
|
1133
|
-
isNaN(
|
|
1132
|
+
si.value.body[t],
|
|
1133
|
+
isNaN(si.value.body[t] / Z.value) ? "-" : (si.value.body[t] / Z.value * 100).toFixed(L.value.table.td.roundingPercentage) + "%"
|
|
1134
1134
|
]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
1135
1135
|
th: {
|
|
1136
1136
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1155,18 +1155,18 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1155
1155
|
a11yBody: n,
|
|
1156
1156
|
config: r
|
|
1157
1157
|
};
|
|
1158
|
-
}),
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1158
|
+
}), ui = D(!1);
|
|
1159
|
+
function di(e) {
|
|
1160
|
+
ui.value = e, rr.value += 1;
|
|
1161
1161
|
}
|
|
1162
|
-
let
|
|
1163
|
-
function
|
|
1162
|
+
let fi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1163
|
+
function pi(e) {
|
|
1164
1164
|
return Ne({
|
|
1165
1165
|
num: e,
|
|
1166
1166
|
rounding: L.value.style.chart.legend.roundingPercentage
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function mi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1170
1170
|
return Pe({
|
|
1171
1171
|
config: i,
|
|
1172
1172
|
val: e,
|
|
@@ -1175,15 +1175,15 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1175
1175
|
showPercentage: r
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return
|
|
1178
|
+
function hi(e) {
|
|
1179
|
+
return mi({
|
|
1180
1180
|
val: m(L.value.style.chart.layout.labels.value.formatter, e.value, d({
|
|
1181
1181
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1182
1182
|
v: e.value,
|
|
1183
1183
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1184
1184
|
r: L.value.style.chart.layout.labels.value.rounding
|
|
1185
1185
|
}), { datapoint: e }),
|
|
1186
|
-
percentage:
|
|
1186
|
+
percentage: Jr(e, q.value),
|
|
1187
1187
|
showVal: L.value.style.chart.layout.labels.value.show,
|
|
1188
1188
|
showPercentage: L.value.style.chart.layout.labels.percentage.show,
|
|
1189
1189
|
config: L.value.style.chart.layout.labels.dataLabels
|
|
@@ -1193,25 +1193,25 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1193
1193
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
1194
1194
|
datapoint: e,
|
|
1195
1195
|
seriesIndex: e.seriesIndex
|
|
1196
|
-
}),
|
|
1196
|
+
}), Or("selectDatapoint", {
|
|
1197
1197
|
datapoint: e,
|
|
1198
1198
|
index: t
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function gi() {
|
|
1202
1202
|
B.value.showTable = !B.value.showTable;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function _i() {
|
|
1205
1205
|
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function vi() {
|
|
1208
1208
|
B.value.showTooltip = !B.value.showTooltip;
|
|
1209
1209
|
}
|
|
1210
|
-
let
|
|
1211
|
-
function
|
|
1212
|
-
|
|
1210
|
+
let yi = D(!1);
|
|
1211
|
+
function bi() {
|
|
1212
|
+
yi.value = !yi.value;
|
|
1213
1213
|
}
|
|
1214
|
-
async function
|
|
1214
|
+
async function xi({ scale: e = 2 } = {}) {
|
|
1215
1215
|
if (!N.value) return;
|
|
1216
1216
|
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
1217
1217
|
domElement: N.value,
|
|
@@ -1228,12 +1228,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1228
1228
|
aspectRatio: r
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function Si() {
|
|
1232
1232
|
if (!kn.value) return;
|
|
1233
1233
|
let { x: e, y: t, width: n, height: r } = kn.value.getBBox();
|
|
1234
1234
|
z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1235
1235
|
}
|
|
1236
|
-
let
|
|
1236
|
+
let Ci = v(() => {
|
|
1237
1237
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
1238
1238
|
return {
|
|
1239
1239
|
component: e ? Cn : vn,
|
|
@@ -1243,10 +1243,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1243
1243
|
color: L.value.table.th.color,
|
|
1244
1244
|
headerColor: L.value.table.th.color,
|
|
1245
1245
|
headerBg: L.value.table.th.backgroundColor,
|
|
1246
|
-
isFullscreen:
|
|
1246
|
+
isFullscreen: ui.value,
|
|
1247
1247
|
fullscreenParent: N.value,
|
|
1248
1248
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1249
|
-
isCursorPointer:
|
|
1249
|
+
isCursorPointer: ar.value
|
|
1250
1250
|
} : {
|
|
1251
1251
|
hideDetails: !0,
|
|
1252
1252
|
config: {
|
|
@@ -1267,48 +1267,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1267
1267
|
$e(() => B.value.showTable, (e) => {
|
|
1268
1268
|
L.value.table.show || (e && L.value.table.useDialog && Hn.value ? Hn.value.open() : "close" in Hn.value && Hn.value.close());
|
|
1269
1269
|
});
|
|
1270
|
-
function
|
|
1270
|
+
function wi() {
|
|
1271
1271
|
B.value.showTable = !1, Un.value && Un.value.setTableIconState(!1);
|
|
1272
1272
|
}
|
|
1273
|
-
let
|
|
1273
|
+
let Ti = v(() => Vr.value.map((e) => ({
|
|
1274
1274
|
...e,
|
|
1275
1275
|
name: e.display
|
|
1276
|
-
}))),
|
|
1276
|
+
}))), Ei = v(() => L.value.style.chart.backgroundColor), Di = v(() => L.value.style.chart.legend), Oi = v(() => L.value.style.chart.title), { isCallbackImaging: ki, isCallbackSvg: Ai, generateSvg: ji, onGenerateImage: Mi } = xe({
|
|
1277
1277
|
svg: z,
|
|
1278
|
-
title:
|
|
1279
|
-
legend:
|
|
1280
|
-
legendItems:
|
|
1281
|
-
backgroundColor:
|
|
1278
|
+
title: Oi,
|
|
1279
|
+
legend: Di,
|
|
1280
|
+
legendItems: Ti,
|
|
1281
|
+
backgroundColor: Ei,
|
|
1282
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
1283
|
+
generateImage: wr
|
|
1282
1284
|
});
|
|
1283
|
-
async function
|
|
1284
|
-
|
|
1285
|
-
try {
|
|
1286
|
-
if (e) {
|
|
1287
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ji();
|
|
1288
|
-
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1289
|
-
blob: e,
|
|
1290
|
-
url: t,
|
|
1291
|
-
text: n,
|
|
1292
|
-
dataUrl: r
|
|
1293
|
-
}));
|
|
1294
|
-
} else await Promise.resolve(Ai());
|
|
1295
|
-
} finally {
|
|
1296
|
-
Gn.value = !1;
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
function Ni(e) {
|
|
1300
|
-
if (e?.stage === "start") {
|
|
1301
|
-
Wn.value = !0;
|
|
1302
|
-
return;
|
|
1303
|
-
}
|
|
1304
|
-
if (e?.stage === "end") {
|
|
1305
|
-
Wn.value = !1;
|
|
1306
|
-
return;
|
|
1307
|
-
}
|
|
1308
|
-
Er();
|
|
1309
|
-
}
|
|
1310
|
-
async function Pi() {
|
|
1311
|
-
if (Ar("copyAlt", {
|
|
1285
|
+
async function Ni() {
|
|
1286
|
+
if (Or("copyAlt", {
|
|
1312
1287
|
config: L.value,
|
|
1313
1288
|
dataset: U.value
|
|
1314
1289
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -1320,31 +1295,31 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1320
1295
|
dataset: U.value
|
|
1321
1296
|
}));
|
|
1322
1297
|
}
|
|
1323
|
-
function
|
|
1324
|
-
|
|
1298
|
+
function Pi() {
|
|
1299
|
+
Wn.value = null, qn.value = !0;
|
|
1325
1300
|
}
|
|
1326
|
-
function
|
|
1327
|
-
|
|
1301
|
+
function Fi() {
|
|
1302
|
+
Wn.value = null, Kn.value = "pointer", tr.value = !1, I.value = null, qn.value = !1;
|
|
1328
1303
|
}
|
|
1329
|
-
function
|
|
1330
|
-
if (!z.value ||
|
|
1304
|
+
function Ii(e) {
|
|
1305
|
+
if (!z.value || yi.value || document.activeElement !== z.value || !q.value.length) return;
|
|
1331
1306
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1332
1307
|
if (!t && !n && !r && !i) return;
|
|
1333
1308
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1334
|
-
|
|
1309
|
+
Wn.value = null, Kn.value = "pointer", tr.value = !1, I.value = null;
|
|
1335
1310
|
return;
|
|
1336
1311
|
}
|
|
1337
1312
|
if (r) {
|
|
1338
|
-
if (
|
|
1339
|
-
let e = q.value[
|
|
1313
|
+
if (Wn.value === null) return;
|
|
1314
|
+
let e = q.value[Wn.value];
|
|
1340
1315
|
if (!e) return;
|
|
1341
|
-
$(e,
|
|
1316
|
+
$(e, Wn.value);
|
|
1342
1317
|
return;
|
|
1343
1318
|
}
|
|
1344
|
-
let a =
|
|
1319
|
+
let a = Wn.value, o = I.value, s = a !== null && a >= 0 && a < q.value.length, c = o !== null && o >= 0 && o < q.value.length;
|
|
1345
1320
|
s ? n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= q.value.length && (a = 0), a < 0 && (a = q.value.length - 1)) : a = n ? 0 : q.value.length - 1;
|
|
1346
1321
|
let l = q.value[a];
|
|
1347
|
-
l && (
|
|
1322
|
+
l && (Wn.value = a, Li(a), Q({
|
|
1348
1323
|
datapoint: l,
|
|
1349
1324
|
relativeIndex: a,
|
|
1350
1325
|
seriesIndex: l.seriesIndex,
|
|
@@ -1352,7 +1327,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1352
1327
|
triggerMode: "keyboard"
|
|
1353
1328
|
}));
|
|
1354
1329
|
}
|
|
1355
|
-
function
|
|
1330
|
+
function Li(e) {
|
|
1356
1331
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1357
1332
|
let t = V.value.width / 2, n = V.value.height / 2;
|
|
1358
1333
|
if (L.value.type === "classic") {
|
|
@@ -1367,49 +1342,49 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1367
1342
|
t = r.x, n = r.y;
|
|
1368
1343
|
}
|
|
1369
1344
|
let r = z.value.getBoundingClientRect();
|
|
1370
|
-
|
|
1345
|
+
Gn.value = {
|
|
1371
1346
|
x: r.left + t / V.value.width * r.width,
|
|
1372
1347
|
y: r.top + n / V.value.height * r.height
|
|
1373
1348
|
};
|
|
1374
1349
|
}
|
|
1375
|
-
let
|
|
1376
|
-
headers:
|
|
1377
|
-
rows:
|
|
1350
|
+
let Ri = v(() => ({
|
|
1351
|
+
headers: li.value?.colNames ?? [],
|
|
1352
|
+
rows: li.value?.a11yBody ?? []
|
|
1378
1353
|
}));
|
|
1379
1354
|
return Te({
|
|
1380
|
-
autoSize:
|
|
1381
|
-
getData:
|
|
1382
|
-
getImage:
|
|
1383
|
-
generatePdf:
|
|
1384
|
-
generateCsv:
|
|
1385
|
-
generateImage:
|
|
1386
|
-
generateSvg:
|
|
1387
|
-
hideSeries:
|
|
1388
|
-
showSeries:
|
|
1389
|
-
toggleTable:
|
|
1390
|
-
toggleLabels:
|
|
1391
|
-
toggleTooltip:
|
|
1392
|
-
toggleAnnotator:
|
|
1393
|
-
toggleFullscreen:
|
|
1394
|
-
copyAlt:
|
|
1355
|
+
autoSize: Si,
|
|
1356
|
+
getData: kr,
|
|
1357
|
+
getImage: xi,
|
|
1358
|
+
generatePdf: Cr,
|
|
1359
|
+
generateCsv: ci,
|
|
1360
|
+
generateImage: wr,
|
|
1361
|
+
generateSvg: ji,
|
|
1362
|
+
hideSeries: Rr,
|
|
1363
|
+
showSeries: Lr,
|
|
1364
|
+
toggleTable: gi,
|
|
1365
|
+
toggleLabels: _i,
|
|
1366
|
+
toggleTooltip: vi,
|
|
1367
|
+
toggleAnnotator: bi,
|
|
1368
|
+
toggleFullscreen: di,
|
|
1369
|
+
copyAlt: Ni
|
|
1395
1370
|
}), (t, r) => (E(), x("div", {
|
|
1396
1371
|
ref_key: "donutChart",
|
|
1397
1372
|
ref: N,
|
|
1398
|
-
class: We(`vue-data-ui-component vue-ui-donut ${
|
|
1373
|
+
class: We(`vue-data-ui-component vue-ui-donut ${ui.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1399
1374
|
style: T(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1400
1375
|
id: `donut__${F.value}`,
|
|
1401
|
-
onMouseenter:
|
|
1402
|
-
onMouseleave:
|
|
1376
|
+
onMouseenter: vr,
|
|
1377
|
+
onMouseleave: yr
|
|
1403
1378
|
}, [
|
|
1404
1379
|
S("div", {
|
|
1405
1380
|
id: `chart-instructions-${F.value}`,
|
|
1406
1381
|
class: "sr-only"
|
|
1407
1382
|
}, [S("p", null, Ye(L.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
1408
|
-
|
|
1383
|
+
Ri.value?.rows?.length ? (E(), y(Ae, {
|
|
1409
1384
|
key: 0,
|
|
1410
1385
|
uid: F.value,
|
|
1411
|
-
head:
|
|
1412
|
-
body:
|
|
1386
|
+
head: Ri.value.headers,
|
|
1387
|
+
body: Ri.value.rows,
|
|
1413
1388
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1414
1389
|
caption: L.value.a11y.translations.tableCaption
|
|
1415
1390
|
}, null, 8, [
|
|
@@ -1423,10 +1398,10 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1423
1398
|
key: 1,
|
|
1424
1399
|
color: L.value.style.chart.color,
|
|
1425
1400
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1426
|
-
active:
|
|
1401
|
+
active: yi.value,
|
|
1427
1402
|
svgRef: A(z),
|
|
1428
|
-
isCursorPointer:
|
|
1429
|
-
onClose:
|
|
1403
|
+
isCursorPointer: ar.value,
|
|
1404
|
+
onClose: bi
|
|
1430
1405
|
}, {
|
|
1431
1406
|
"annotator-action-close": j(() => [k(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1432
1407
|
"annotator-action-color": j(({ color: e }) => [k(t.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
|
|
@@ -1443,7 +1418,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1443
1418
|
"isCursorPointer"
|
|
1444
1419
|
])) : b("", !0),
|
|
1445
1420
|
k(t.$slots, "userConfig", {}, void 0, !0),
|
|
1446
|
-
|
|
1421
|
+
Tr.value ? (E(), x("div", {
|
|
1447
1422
|
key: 2,
|
|
1448
1423
|
ref_key: "noTitle",
|
|
1449
1424
|
ref: Ln,
|
|
@@ -1469,14 +1444,14 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1469
1444
|
}
|
|
1470
1445
|
}, null, 8, ["config"]))], 512)) : b("", !0),
|
|
1471
1446
|
S("div", { id: `legend-top-${F.value}` }, null, 8, at),
|
|
1472
|
-
L.value.userOptions.show && On.value && (A(
|
|
1447
|
+
L.value.userOptions.show && On.value && (A(_r) || A(hr)) ? (E(), y(A(xn), {
|
|
1473
1448
|
ref_key: "userOptionsRef",
|
|
1474
1449
|
ref: Un,
|
|
1475
|
-
key: `user_option_${
|
|
1450
|
+
key: `user_option_${rr.value}`,
|
|
1476
1451
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1477
1452
|
color: L.value.style.chart.color,
|
|
1478
|
-
isPrinting: A(
|
|
1479
|
-
isImaging: A(
|
|
1453
|
+
isPrinting: A(xr),
|
|
1454
|
+
isImaging: A(Sr),
|
|
1480
1455
|
uid: F.value,
|
|
1481
1456
|
hasTooltip: L.value.style.chart.tooltip.show && L.value.userOptions.buttons.tooltip,
|
|
1482
1457
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1487,28 +1462,28 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1487
1462
|
hasLabel: L.value.userOptions.buttons.labels,
|
|
1488
1463
|
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1489
1464
|
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1490
|
-
isFullscreen:
|
|
1465
|
+
isFullscreen: ui.value,
|
|
1491
1466
|
chartElement: N.value,
|
|
1492
1467
|
position: L.value.userOptions.position,
|
|
1493
1468
|
callbacks: L.value.userOptions.callbacks,
|
|
1494
1469
|
isTooltip: B.value.showTooltip,
|
|
1495
1470
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1496
1471
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1497
|
-
isAnnotation:
|
|
1472
|
+
isAnnotation: yi.value,
|
|
1498
1473
|
printScale: L.value.userOptions.print.scale,
|
|
1499
1474
|
tableDialog: L.value.table.useDialog,
|
|
1500
|
-
isCursorPointer:
|
|
1501
|
-
onToggleFullscreen:
|
|
1502
|
-
onGeneratePdf: A(
|
|
1503
|
-
onGenerateCsv:
|
|
1504
|
-
onGenerateImage:
|
|
1505
|
-
onGenerateSvg:
|
|
1506
|
-
onToggleTable:
|
|
1507
|
-
onToggleLabels:
|
|
1508
|
-
onToggleTooltip:
|
|
1509
|
-
onToggleAnnotator:
|
|
1510
|
-
onCopyAlt:
|
|
1511
|
-
style: T({ visibility: A(
|
|
1475
|
+
isCursorPointer: ar.value,
|
|
1476
|
+
onToggleFullscreen: di,
|
|
1477
|
+
onGeneratePdf: A(Cr),
|
|
1478
|
+
onGenerateCsv: ci,
|
|
1479
|
+
onGenerateImage: A(Mi),
|
|
1480
|
+
onGenerateSvg: A(ji),
|
|
1481
|
+
onToggleTable: gi,
|
|
1482
|
+
onToggleLabels: _i,
|
|
1483
|
+
onToggleTooltip: vi,
|
|
1484
|
+
onToggleAnnotator: bi,
|
|
1485
|
+
onCopyAlt: Ni,
|
|
1486
|
+
style: T({ visibility: A(_r) ? A(hr) ? "visible" : "hidden" : "visible" })
|
|
1512
1487
|
}, Re({ _: 2 }, [
|
|
1513
1488
|
t.$slots.menuIcon ? {
|
|
1514
1489
|
name: "menuIcon",
|
|
@@ -1584,23 +1559,23 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1584
1559
|
fn: j(() => [k(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1585
1560
|
key: "12"
|
|
1586
1561
|
} : void 0
|
|
1587
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : b("", !0),
|
|
1562
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
|
|
1588
1563
|
S("div", ot, [(E(), x("svg", {
|
|
1589
1564
|
ref_key: "svgRef",
|
|
1590
1565
|
ref: z,
|
|
1591
1566
|
xmlns: A(le),
|
|
1592
1567
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1593
1568
|
class: We({
|
|
1594
|
-
"vue-data-ui-fullscreen--on":
|
|
1595
|
-
"vue-data-ui-fulscreen--off": !
|
|
1569
|
+
"vue-data-ui-fullscreen--on": ui.value,
|
|
1570
|
+
"vue-data-ui-fulscreen--off": !ui.value,
|
|
1596
1571
|
"vue-data-ui-svg": !0
|
|
1597
1572
|
}),
|
|
1598
1573
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1599
|
-
style: T(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${
|
|
1574
|
+
style: T(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${br.value.css}`),
|
|
1600
1575
|
tabindex: "0",
|
|
1601
|
-
onFocus:
|
|
1602
|
-
onBlur:
|
|
1603
|
-
onKeydown:
|
|
1576
|
+
onFocus: Pi,
|
|
1577
|
+
onBlur: Fi,
|
|
1578
|
+
onKeydown: Ii
|
|
1604
1579
|
}, [S("g", {
|
|
1605
1580
|
ref_key: "G",
|
|
1606
1581
|
ref: kn,
|
|
@@ -1615,7 +1590,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1615
1590
|
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
1616
1591
|
style: { pointerEvents: "none" }
|
|
1617
1592
|
}, [k(t.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : b("", !0),
|
|
1618
|
-
L.value.type === "classic" && !isNaN(
|
|
1593
|
+
L.value.type === "classic" && !isNaN(Dr.value / G.value) ? (E(), x("defs", lt, [L.value.style.chart.useGradient ? (E(), y(Oe, {
|
|
1619
1594
|
key: 0,
|
|
1620
1595
|
t: "radial",
|
|
1621
1596
|
id: `gradient_${F.value}`,
|
|
@@ -1626,12 +1601,12 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1626
1601
|
0
|
|
1627
1602
|
],
|
|
1628
1603
|
[
|
|
1629
|
-
`${(1 -
|
|
1604
|
+
`${(1 - Dr.value / G.value) * 100}%`,
|
|
1630
1605
|
A(n)("#FFFFFF", 0),
|
|
1631
1606
|
0
|
|
1632
1607
|
],
|
|
1633
1608
|
[
|
|
1634
|
-
`${(1 -
|
|
1609
|
+
`${(1 - Dr.value / G.value / 2) * 100}%`,
|
|
1635
1610
|
A(n)("#FFFFFF", L.value.style.chart.gradientIntensity),
|
|
1636
1611
|
1
|
|
1637
1612
|
],
|
|
@@ -1709,13 +1684,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1709
1684
|
d: A(X)[t]?.connectorPath || A(ne)(e, {
|
|
1710
1685
|
x: V.value.width / 2,
|
|
1711
1686
|
y: V.value.height / 2
|
|
1712
|
-
}, 16, 16, !1, !1,
|
|
1687
|
+
}, 16, 16, !1, !1, Dr.value, 12, L.value.style.chart.layout.curvedMarkers),
|
|
1713
1688
|
stroke: e.color,
|
|
1714
1689
|
"stroke-width": "1",
|
|
1715
1690
|
"stroke-linecap": "round",
|
|
1716
1691
|
"stroke-linejoin": "round",
|
|
1717
1692
|
fill: "none",
|
|
1718
|
-
filter:
|
|
1693
|
+
filter: ai(t)
|
|
1719
1694
|
}, null, 8, _t)) : b("", !0)]))), 256)) : b("", !0),
|
|
1720
1695
|
L.value.type === "polar" ? (E(!0), x(_, { key: 4 }, O(K.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", null, [Y(e) && B.value.dataLabels.show ? (E(), x("path", {
|
|
1721
1696
|
key: 0,
|
|
@@ -1737,7 +1712,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1737
1712
|
"stroke-linecap": "round",
|
|
1738
1713
|
"stroke-linejoin": "round",
|
|
1739
1714
|
fill: "none",
|
|
1740
|
-
filter:
|
|
1715
|
+
filter: ai(t),
|
|
1741
1716
|
style: T({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1742
1717
|
}, null, 12, vt)) : b("", !0)]))), 256)) : b("", !0),
|
|
1743
1718
|
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (E(), x("circle", {
|
|
@@ -1764,7 +1739,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1764
1739
|
fill: e.color,
|
|
1765
1740
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1766
1741
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1767
|
-
filter:
|
|
1742
|
+
filter: ai(t)
|
|
1768
1743
|
}, null, 8, St))), 256)),
|
|
1769
1744
|
t.$slots.pattern ? (E(), x("g", Ct, [(E(!0), x(_, null, O(q.value, (e, t) => (E(), x("path", {
|
|
1770
1745
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1772,7 +1747,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1772
1747
|
fill: `url(#${e.pattern})`,
|
|
1773
1748
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1774
1749
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1775
|
-
filter:
|
|
1750
|
+
filter: ai(t)
|
|
1776
1751
|
}, null, 8, wt))), 256))])) : b("", !0)
|
|
1777
1752
|
], 64)) : b("", !0),
|
|
1778
1753
|
Z.value && L.value.type === "polar" ? (E(), x(_, { key: 8 }, [K.value.length > 1 ? (E(), x("g", Tt, [
|
|
@@ -1797,7 +1772,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1797
1772
|
fill: `url(#${e.pattern})`,
|
|
1798
1773
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1799
1774
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1800
|
-
filter:
|
|
1775
|
+
filter: ai(t),
|
|
1801
1776
|
style: T({
|
|
1802
1777
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1803
1778
|
transformOrigin: "center"
|
|
@@ -1809,7 +1784,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1809
1784
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_${t}_${F.value})` : e.color,
|
|
1810
1785
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1811
1786
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1812
|
-
filter:
|
|
1787
|
+
filter: ai(t),
|
|
1813
1788
|
style: T({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1814
1789
|
}, null, 12, jt))), 256))
|
|
1815
1790
|
])) : (E(), x("g", Mt, [t.$slots.pattern ? (E(), x("circle", {
|
|
@@ -1827,7 +1802,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1827
1802
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_0_${F.value})` : K.value[0].color,
|
|
1828
1803
|
stroke: L.value.style.chart.backgroundColor,
|
|
1829
1804
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1830
|
-
}, null, 8, Pt)]))], 64)) : (E(), x(_, { key: 9 }, [L.value.type === "classic" && !
|
|
1805
|
+
}, null, 8, Pt)]))], 64)) : (E(), x(_, { key: 9 }, [L.value.type === "classic" && !Ur.value ? (E(), x("g", Ft, [(E(!0), x(_, null, O(Wr.value, (e, t) => (E(), x("path", {
|
|
1831
1806
|
class: "vue-ui-donut-arc-path",
|
|
1832
1807
|
d: e.arcSlice,
|
|
1833
1808
|
fill: e.color,
|
|
@@ -1854,7 +1829,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1854
1829
|
fill: "none",
|
|
1855
1830
|
cx: V.value.width / 2,
|
|
1856
1831
|
cy: V.value.height / 2,
|
|
1857
|
-
r: Math.max(.1,
|
|
1832
|
+
r: Math.max(.1, Dr.value * 1.7)
|
|
1858
1833
|
}, null, 8, zt),
|
|
1859
1834
|
Z.value ? (E(), x(_, { key: 11 }, [K.value.length > 1 || L.value.type === "classic" ? (E(), x("g", Bt, [(E(!0), x(_, null, O(K.value.filter((e) => !e.ghost), (e, t) => (E(), x("path", {
|
|
1860
1835
|
d: L.value.type === "classic" ? e.arcSlice : J.value[t].path,
|
|
@@ -1866,7 +1841,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1866
1841
|
seriesIndex: e.seriesIndex,
|
|
1867
1842
|
show: !0
|
|
1868
1843
|
}),
|
|
1869
|
-
onMouseleave: (t) =>
|
|
1844
|
+
onMouseleave: (t) => ti({
|
|
1870
1845
|
datapoint: e,
|
|
1871
1846
|
seriesIndex: e.seriesIndex
|
|
1872
1847
|
}),
|
|
@@ -1882,7 +1857,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1882
1857
|
seriesIndex: K.value[0].seriesIndex,
|
|
1883
1858
|
show: !0
|
|
1884
1859
|
}),
|
|
1885
|
-
onMouseleave: r[1] ||= (e) =>
|
|
1860
|
+
onMouseleave: r[1] ||= (e) => ti({
|
|
1886
1861
|
datapoint: K.value[0],
|
|
1887
1862
|
seriesIndex: K.value[0].seriesIndex
|
|
1888
1863
|
}),
|
|
@@ -1933,31 +1908,31 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1933
1908
|
fill: L.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1934
1909
|
"font-size": L.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1935
1910
|
style: T(`font-weight:${L.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1936
|
-
}, Ye(
|
|
1911
|
+
}, Ye(Ar.value || R.value ? "--" : A(m)(L.value.style.chart.layout.labels.hollow.average.value.formatter, A(ae)(Zr.value), A(d)({
|
|
1937
1912
|
p: L.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1938
|
-
v: A(ae)(
|
|
1913
|
+
v: A(ae)(Zr.value),
|
|
1939
1914
|
s: L.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1940
1915
|
r: L.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1941
1916
|
}))), 13, qt)) : b("", !0)
|
|
1942
1917
|
], 512)) : b("", !0),
|
|
1943
1918
|
(E(!0), x(_, null, O(q.value.filter((e) => !e.ghost), (e, n) => (E(), x("g", {
|
|
1944
|
-
filter:
|
|
1919
|
+
filter: ai(n),
|
|
1945
1920
|
key: e.seriesIndex,
|
|
1946
|
-
opacity:
|
|
1921
|
+
opacity: oi(e)
|
|
1947
1922
|
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (E(), x("g", Yt, [(E(), x("foreignObject", {
|
|
1948
1923
|
x: A(p)(e, !0).anchor === "end" ? A(p)(e).x - 120 : A(p)(e, !0).anchor === "middle" ? A(p)(e).x - 60 : A(p)(e).x,
|
|
1949
|
-
y: A(g)(e) - (
|
|
1924
|
+
y: A(g)(e) - (fi.value ? 20 : 0),
|
|
1950
1925
|
width: "120",
|
|
1951
1926
|
height: "60",
|
|
1952
1927
|
style: { overflow: "visible" }
|
|
1953
1928
|
}, [S("div", null, [k(t.$slots, "dataLabel", He({ ref_for: !0 }, {
|
|
1954
1929
|
datapoint: e,
|
|
1955
1930
|
isBlur: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === n,
|
|
1956
|
-
isSafari:
|
|
1931
|
+
isSafari: fi.value,
|
|
1957
1932
|
isVisible: Y(e) && B.value.dataLabels.show,
|
|
1958
1933
|
textAlign: A(p)(e, !0, 16, !0).anchor,
|
|
1959
1934
|
flexAlign: A(p)(e, !0, 16).anchor,
|
|
1960
|
-
percentage:
|
|
1935
|
+
percentage: Jr(e, q.value)
|
|
1961
1936
|
}), void 0, !0)])], 8, Xt))])) : (E(), x("g", Zt, [L.value.type === "classic" ? (E(), x(_, { key: 0 }, [Y(e) && B.value.dataLabels.show ? (E(), x("circle", {
|
|
1962
1937
|
key: 0,
|
|
1963
1938
|
cx: A(X)[n]?.markerX ?? A(p)(e).x,
|
|
@@ -1974,7 +1949,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1974
1949
|
seriesIndex: e.seriesIndex,
|
|
1975
1950
|
show: !0
|
|
1976
1951
|
}),
|
|
1977
|
-
onMouseleave: (t) =>
|
|
1952
|
+
onMouseleave: (t) => ti({
|
|
1978
1953
|
datapoint: e,
|
|
1979
1954
|
seriesIndex: e.seriesIndex
|
|
1980
1955
|
})
|
|
@@ -1991,18 +1966,18 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
1991
1966
|
seriesIndex: e.seriesIndex,
|
|
1992
1967
|
show: !0
|
|
1993
1968
|
}),
|
|
1994
|
-
onMouseleave: (t) =>
|
|
1969
|
+
onMouseleave: (t) => ti({
|
|
1995
1970
|
datapoint: e,
|
|
1996
1971
|
seriesIndex: e.seriesIndex
|
|
1997
1972
|
}),
|
|
1998
|
-
innerHTML:
|
|
1973
|
+
innerHTML: ri(e, n, !!A(X)[n])
|
|
1999
1974
|
}, null, 40, $t)), [[Qe, Y(e) && B.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [et(S("text", {
|
|
2000
1975
|
class: "vue-data-ui-datalabel-value",
|
|
2001
1976
|
"text-anchor": A(X)[n]?.textAnchor || A(p)(e, !0, 12).anchor,
|
|
2002
1977
|
x: A(X)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
2003
1978
|
y: A(X)[n]?.labelY ?? A(g)(e),
|
|
2004
1979
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2005
|
-
"font-size":
|
|
1980
|
+
"font-size": Jn.value + "px",
|
|
2006
1981
|
style: T(`font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
2007
1982
|
onClick: (t) => $(e, n),
|
|
2008
1983
|
onMouseenter: (t) => Q({
|
|
@@ -2011,11 +1986,11 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2011
1986
|
seriesIndex: e.seriesIndex,
|
|
2012
1987
|
show: !0
|
|
2013
1988
|
}),
|
|
2014
|
-
onMouseleave: (t) =>
|
|
1989
|
+
onMouseleave: (t) => ti({
|
|
2015
1990
|
datapoint: e,
|
|
2016
1991
|
seriesIndex: e.seriesIndex
|
|
2017
1992
|
})
|
|
2018
|
-
}, Ye(
|
|
1993
|
+
}, Ye(hi(e)), 45, en), [[Qe, Y(e) && B.value.dataLabels.show]]), et(S("text", {
|
|
2019
1994
|
class: "vue-data-ui-datalabel-name",
|
|
2020
1995
|
"text-anchor": A(X)[n]?.textAnchor || A(p)(e).anchor,
|
|
2021
1996
|
x: A(X)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
@@ -2030,7 +2005,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2030
2005
|
seriesIndex: e.seriesIndex,
|
|
2031
2006
|
show: !0
|
|
2032
2007
|
}),
|
|
2033
|
-
onMouseleave: (t) =>
|
|
2008
|
+
onMouseleave: (t) => ti({
|
|
2034
2009
|
datapoint: e,
|
|
2035
2010
|
seriesIndex: e.seriesIndex
|
|
2036
2011
|
}),
|
|
@@ -2069,7 +2044,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2069
2044
|
seriesIndex: e.seriesIndex,
|
|
2070
2045
|
show: !0
|
|
2071
2046
|
}),
|
|
2072
|
-
onMouseleave: (t) =>
|
|
2047
|
+
onMouseleave: (t) => ti({
|
|
2073
2048
|
datapoint: e,
|
|
2074
2049
|
seriesIndex: e.seriesIndex
|
|
2075
2050
|
}),
|
|
@@ -2077,7 +2052,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2077
2052
|
}, null, 44, nn)) : b("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine ? et((E(), x("text", {
|
|
2078
2053
|
key: 1,
|
|
2079
2054
|
class: "vue-data-ui-datalabel-inline",
|
|
2080
|
-
"text-anchor":
|
|
2055
|
+
"text-anchor": Gr(J.value[n].middlePoint),
|
|
2081
2056
|
x: A(s)({
|
|
2082
2057
|
initX: J.value[n].middlePoint.x,
|
|
2083
2058
|
initY: J.value[n].middlePoint.y,
|
|
@@ -2100,15 +2075,15 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2100
2075
|
seriesIndex: e.seriesIndex,
|
|
2101
2076
|
show: !0
|
|
2102
2077
|
}),
|
|
2103
|
-
onMouseleave: (t) =>
|
|
2078
|
+
onMouseleave: (t) => ti({
|
|
2104
2079
|
datapoint: e,
|
|
2105
2080
|
seriesIndex: e.seriesIndex
|
|
2106
2081
|
}),
|
|
2107
|
-
innerHTML:
|
|
2082
|
+
innerHTML: ii(e, n)
|
|
2108
2083
|
}, null, 44, rn)), [[Qe, Y(e) && B.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [Y(e) && B.value.dataLabels.show ? (E(), x("text", {
|
|
2109
2084
|
key: 0,
|
|
2110
2085
|
class: "vue-data-ui-datalabel-value",
|
|
2111
|
-
"text-anchor":
|
|
2086
|
+
"text-anchor": Gr(J.value[n].middlePoint),
|
|
2112
2087
|
x: A(s)({
|
|
2113
2088
|
initX: J.value[n].middlePoint.x,
|
|
2114
2089
|
initY: J.value[n].middlePoint.y,
|
|
@@ -2124,7 +2099,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2124
2099
|
centerY: V.value.height / 2
|
|
2125
2100
|
}).y,
|
|
2126
2101
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2127
|
-
"font-size":
|
|
2102
|
+
"font-size": Jn.value,
|
|
2128
2103
|
style: T({
|
|
2129
2104
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2130
2105
|
fontWeight: L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
@@ -2136,14 +2111,14 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2136
2111
|
seriesIndex: e.seriesIndex,
|
|
2137
2112
|
show: !0
|
|
2138
2113
|
}),
|
|
2139
|
-
onMouseleave: (t) =>
|
|
2114
|
+
onMouseleave: (t) => ti({
|
|
2140
2115
|
datapoint: e,
|
|
2141
2116
|
seriesIndex: e.seriesIndex
|
|
2142
2117
|
})
|
|
2143
|
-
}, Ye(
|
|
2118
|
+
}, Ye(hi(e)), 45, an)) : b("", !0), Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show ? (E(), x("text", {
|
|
2144
2119
|
key: 1,
|
|
2145
2120
|
class: "vue-data-ui-datalabel-name",
|
|
2146
|
-
"text-anchor":
|
|
2121
|
+
"text-anchor": Gr(J.value[n].middlePoint),
|
|
2147
2122
|
x: A(s)({
|
|
2148
2123
|
initX: J.value[n].middlePoint.x,
|
|
2149
2124
|
initY: J.value[n].middlePoint.y,
|
|
@@ -2171,7 +2146,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2171
2146
|
seriesIndex: e.seriesIndex,
|
|
2172
2147
|
show: !0
|
|
2173
2148
|
}),
|
|
2174
|
-
onMouseleave: (t) =>
|
|
2149
|
+
onMouseleave: (t) => ti({
|
|
2175
2150
|
datapoint: e,
|
|
2176
2151
|
seriesIndex: e.seriesIndex
|
|
2177
2152
|
}),
|
|
@@ -2211,13 +2186,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2211
2186
|
isFirstLoad: R.value
|
|
2212
2187
|
} }, void 0, !0)])], 8, cn)) : b("", !0), Y(e) && L.value.type === "polar" ? (E(), x("foreignObject", {
|
|
2213
2188
|
key: 1,
|
|
2214
|
-
x: L.value.style.chart.comments.offsetX + (
|
|
2189
|
+
x: L.value.style.chart.comments.offsetX + (Gr(J.value[n].middlePoint) === "end" ? A(s)({
|
|
2215
2190
|
initX: J.value[n].middlePoint.x,
|
|
2216
2191
|
initY: J.value[n].middlePoint.y,
|
|
2217
2192
|
offset: 42,
|
|
2218
2193
|
centerX: V.value.width / 2,
|
|
2219
2194
|
centerY: V.value.height / 2
|
|
2220
|
-
}).x - L.value.style.chart.comments.width :
|
|
2195
|
+
}).x - L.value.style.chart.comments.width : Gr(J.value[n].middlePoint) === "middle" ? A(s)({
|
|
2221
2196
|
initX: J.value[n].middlePoint.x,
|
|
2222
2197
|
initY: J.value[n].middlePoint.y,
|
|
2223
2198
|
offset: 42,
|
|
@@ -2230,7 +2205,7 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2230
2205
|
centerX: V.value.width / 2,
|
|
2231
2206
|
centerY: V.value.height / 2
|
|
2232
2207
|
}).x),
|
|
2233
|
-
y:
|
|
2208
|
+
y: Kr(J.value[n]) + L.value.style.chart.comments.offsetY,
|
|
2234
2209
|
width: L.value.style.chart.comments.width,
|
|
2235
2210
|
height: "200",
|
|
2236
2211
|
style: T({
|
|
@@ -2240,21 +2215,21 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2240
2215
|
})
|
|
2241
2216
|
}, [S("div", null, [k(t.$slots, "plot-comment", { plot: {
|
|
2242
2217
|
...e,
|
|
2243
|
-
textAlign:
|
|
2244
|
-
flexAlign:
|
|
2218
|
+
textAlign: Gr(J.value[n].middlePoint),
|
|
2219
|
+
flexAlign: Gr(J.value[n].middlePoint),
|
|
2245
2220
|
isFirstLoad: R.value
|
|
2246
2221
|
} }, void 0, !0)])], 12, ln)) : b("", !0)])) : b("", !0)], 8, Jt))), 128)),
|
|
2247
2222
|
k(t.$slots, "svg", { svg: {
|
|
2248
2223
|
...V.value,
|
|
2249
2224
|
datapoints: K.value,
|
|
2250
|
-
isPrintingImg: A(
|
|
2251
|
-
isPrintingSvg:
|
|
2225
|
+
isPrintingImg: A(xr) || A(Sr) || A(ki),
|
|
2226
|
+
isPrintingSvg: A(Ai)
|
|
2252
2227
|
} }, void 0, !0)
|
|
2253
2228
|
], 512)], 46, st)), t.$slots.hint ? (E(), x("div", un, [k(t.$slots, "hint", w(C({
|
|
2254
2229
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
2255
|
-
isVisible:
|
|
2230
|
+
isVisible: qn.value
|
|
2256
2231
|
})), void 0, !0)])) : b("", !0)]),
|
|
2257
|
-
t.$slots.watermark ? (E(), x("div", dn, [k(t.$slots, "watermark", w(C({ isPrinting: A(
|
|
2232
|
+
t.$slots.watermark ? (E(), x("div", dn, [k(t.$slots, "watermark", w(C({ isPrinting: A(xr) || A(Sr) || A(ki) || A(Ai) })), void 0, !0)])) : b("", !0),
|
|
2258
2233
|
S("div", { id: `legend-bottom-${F.value}` }, null, 8, fn),
|
|
2259
2234
|
Vn.value && (L.value.style.chart.legend.show || t.$slots.legend) ? (E(), y(Le, {
|
|
2260
2235
|
key: 6,
|
|
@@ -2262,25 +2237,25 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2262
2237
|
}, [S("div", {
|
|
2263
2238
|
ref_key: "chartLegend",
|
|
2264
2239
|
ref: Nn
|
|
2265
|
-
}, [k(t.$slots, "legend", { legend:
|
|
2240
|
+
}, [k(t.$slots, "legend", { legend: Vr.value }, () => [L.value.style.chart.legend.show ? (E(), y(Ie, {
|
|
2266
2241
|
key: `legend_${Bn.value}`,
|
|
2267
|
-
legendSet:
|
|
2268
|
-
config:
|
|
2269
|
-
onClickMarker: r[3] ||= ({ i: e }) =>
|
|
2270
|
-
isCursorPointer:
|
|
2242
|
+
legendSet: Vr.value,
|
|
2243
|
+
config: Hr.value,
|
|
2244
|
+
onClickMarker: r[3] ||= ({ i: e }) => Fr(e),
|
|
2245
|
+
isCursorPointer: ar.value
|
|
2271
2246
|
}, Re({
|
|
2272
2247
|
item: j(({ legend: e, index: t }) => [S("div", {
|
|
2273
2248
|
style: T(`opacity:${W.value.includes(t) ? .5 : 1}`),
|
|
2274
2249
|
onClick: (t) => e.segregate()
|
|
2275
2250
|
}, Ye(e.display), 13, pn)]),
|
|
2276
|
-
legendToggle: j(() => [
|
|
2251
|
+
legendToggle: j(() => [Vr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !A(sr) ? (E(), y(ke, {
|
|
2277
2252
|
key: 0,
|
|
2278
2253
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2279
2254
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
2280
2255
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
2281
2256
|
checked: W.value.length > 0,
|
|
2282
|
-
isCursorPointer:
|
|
2283
|
-
onToggle:
|
|
2257
|
+
isCursorPointer: ar.value,
|
|
2258
|
+
onToggle: Pr
|
|
2284
2259
|
}, null, 8, [
|
|
2285
2260
|
"backgroundColor",
|
|
2286
2261
|
"color",
|
|
@@ -2315,13 +2290,13 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2315
2290
|
}, [k(t.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
2316
2291
|
t.$slots.hollow ? (E(), x("div", mn, [k(t.$slots, "hollow", w(C({
|
|
2317
2292
|
total: Z.value,
|
|
2318
|
-
average:
|
|
2293
|
+
average: Zr.value,
|
|
2319
2294
|
dataset: H.value,
|
|
2320
2295
|
...V.value
|
|
2321
2296
|
})), void 0, !0)])) : b("", !0),
|
|
2322
2297
|
Be(A(gn), {
|
|
2323
2298
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
2324
|
-
show: B.value.showTooltip &&
|
|
2299
|
+
show: B.value.showTooltip && tr.value,
|
|
2325
2300
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
2326
2301
|
color: L.value.style.chart.tooltip.color,
|
|
2327
2302
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -2333,19 +2308,19 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2333
2308
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
2334
2309
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
2335
2310
|
parent: N.value,
|
|
2336
|
-
content:
|
|
2337
|
-
isCustom:
|
|
2338
|
-
isFullscreen:
|
|
2311
|
+
content: nr.value,
|
|
2312
|
+
isCustom: ei.value,
|
|
2313
|
+
isFullscreen: ui.value,
|
|
2339
2314
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
2340
2315
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
2341
2316
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
2342
2317
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThrehsold,
|
|
2343
|
-
isA11yMode:
|
|
2344
|
-
a11yPosition:
|
|
2318
|
+
isA11yMode: Kn.value === "keyboard",
|
|
2319
|
+
a11yPosition: Gn.value
|
|
2345
2320
|
}, {
|
|
2346
|
-
"tooltip-before": j(() => [k(t.$slots, "tooltip-before", w(C({
|
|
2347
|
-
tooltip: j(() => [k(t.$slots, "tooltip", w(C({
|
|
2348
|
-
"tooltip-after": j(() => [k(t.$slots, "tooltip-after", w(C({
|
|
2321
|
+
"tooltip-before": j(() => [k(t.$slots, "tooltip-before", w(C({ ...$r.value })), void 0, !0)]),
|
|
2322
|
+
tooltip: j(() => [k(t.$slots, "tooltip", w(C({ ...$r.value })), void 0, !0)]),
|
|
2323
|
+
"tooltip-after": j(() => [k(t.$slots, "tooltip-after", w(C({ ...$r.value })), void 0, !0)]),
|
|
2349
2324
|
_: 3
|
|
2350
2325
|
}, 8, [
|
|
2351
2326
|
"teleportTo",
|
|
@@ -2371,21 +2346,21 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2371
2346
|
"isA11yMode",
|
|
2372
2347
|
"a11yPosition"
|
|
2373
2348
|
]),
|
|
2374
|
-
On.value && L.value.userOptions.buttons.table ? (E(), y(qe(
|
|
2349
|
+
On.value && L.value.userOptions.buttons.table ? (E(), y(qe(Ci.value.component), He({ key: 9 }, Ci.value.props, {
|
|
2375
2350
|
ref_key: "tableUnit",
|
|
2376
2351
|
ref: Hn,
|
|
2377
|
-
onClose:
|
|
2352
|
+
onClose: wi
|
|
2378
2353
|
}), Re({
|
|
2379
2354
|
content: j(() => [(E(), y(A(yn), {
|
|
2380
2355
|
key: `table_${zn.value}`,
|
|
2381
|
-
colNames:
|
|
2382
|
-
head:
|
|
2383
|
-
body:
|
|
2384
|
-
config:
|
|
2385
|
-
title: L.value.table.useDialog ? "" :
|
|
2356
|
+
colNames: li.value.colNames,
|
|
2357
|
+
head: li.value.head,
|
|
2358
|
+
body: li.value.body,
|
|
2359
|
+
config: li.value.config,
|
|
2360
|
+
title: L.value.table.useDialog ? "" : Ci.value.title,
|
|
2386
2361
|
withCloseButton: !L.value.table.useDialog,
|
|
2387
|
-
isCursorPointer:
|
|
2388
|
-
onClose:
|
|
2362
|
+
isCursorPointer: ar.value,
|
|
2363
|
+
onClose: wi
|
|
2389
2364
|
}, {
|
|
2390
2365
|
th: j(({ th: e }) => [S("div", {
|
|
2391
2366
|
innerHTML: e,
|
|
@@ -2417,24 +2392,24 @@ var nt = /* @__PURE__ */ e({ default: () => gn }), rt = ["id"], it = ["id"], at
|
|
|
2417
2392
|
_: 2
|
|
2418
2393
|
}, [L.value.table.useDialog ? {
|
|
2419
2394
|
name: "title",
|
|
2420
|
-
fn: j(() => [ze(Ye(
|
|
2395
|
+
fn: j(() => [ze(Ye(Ci.value.title), 1)]),
|
|
2421
2396
|
key: "0"
|
|
2422
2397
|
} : void 0, L.value.table.useDialog ? {
|
|
2423
2398
|
name: "actions",
|
|
2424
2399
|
fn: j(() => [S("button", {
|
|
2425
2400
|
tabindex: "0",
|
|
2426
2401
|
class: "vue-ui-user-options-button",
|
|
2427
|
-
onClick: r[4] ||= (e) =>
|
|
2428
|
-
style: T({ cursor:
|
|
2402
|
+
onClick: r[4] ||= (e) => ci(L.value.userOptions.callbacks.csv),
|
|
2403
|
+
style: T({ cursor: ar.value ? "pointer" : "default" })
|
|
2429
2404
|
}, [Be(A(_n), {
|
|
2430
2405
|
name: "fileCsv",
|
|
2431
|
-
stroke:
|
|
2406
|
+
stroke: Ci.value.props.color
|
|
2432
2407
|
}, null, 8, ["stroke"])], 4)]),
|
|
2433
2408
|
key: "1"
|
|
2434
2409
|
} : void 0]), 1040)) : b("", !0),
|
|
2435
|
-
k(t.$slots, "skeleton", {}, () => [A(
|
|
2410
|
+
k(t.$slots, "skeleton", {}, () => [A(sr) ? (E(), y(ve, { key: 0 })) : b("", !0)], !0)
|
|
2436
2411
|
], 46, rt));
|
|
2437
2412
|
}
|
|
2438
|
-
}, [["__scopeId", "data-v-
|
|
2413
|
+
}, [["__scopeId", "data-v-593004f0"]]);
|
|
2439
2414
|
//#endregion
|
|
2440
2415
|
export { nt as n, gn as t };
|