vue-data-ui 3.22.8 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-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/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- 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/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -2,28 +2,29 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, At as n, Dt as r, G as i, J as a, Kt as o, Mt as s, Q as c, Rt as l, S as u, T as ee, W as te, Wt as ne, Z as d, b as re, d as f, dt as p, i as m, it as ie, k as ae, kt as oe, o as se, p as ce, rt as le, t as ue, u as h, v as de, yt as fe, zt as pe } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as me } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { t as he } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
-
import { n as ge, t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
5
|
+
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as Se } from "./Title-CcNiYzEo.js";
|
|
11
|
+
import { t as Ce } from "./Shape-UpH0a4Ur.js";
|
|
12
|
+
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as Te } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as Ee } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as Oe } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
17
|
+
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { n as Me, t as Ne } from "./labelUtils-DBEh078l.js";
|
|
21
|
+
import { t as Pe } from "./vue_ui_donut-BDGqG07h.js";
|
|
22
|
+
import { t as Fe } from "./Legend-ROt6ugzW.js";
|
|
23
|
+
import { Fragment as g, Teleport as Ie, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as Be, guardReactiveProps as S, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as We, onMounted as Ge, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as k, toRefs as Je, unref as A, useSlots as Ye, vShow as Xe, watch as Ze, withCtx as j, withDirectives as Qe } from "vue";
|
|
23
24
|
//#region src/useSmallArcLayouts.js
|
|
24
25
|
function $e(e) {
|
|
25
26
|
let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: te } = e;
|
|
26
|
-
return { smallArcLayoutsClassic:
|
|
27
|
+
return { smallArcLayoutsClassic: _(() => {
|
|
27
28
|
if (t.value.type !== "classic") return {};
|
|
28
29
|
let e = {}, ne = n.value || [];
|
|
29
30
|
if (!ne.length) return e;
|
|
@@ -132,36 +133,36 @@ function $e(e) {
|
|
|
132
133
|
let ge = ne.map((e, t) => h({
|
|
133
134
|
arc: e,
|
|
134
135
|
index: t
|
|
135
|
-
})).filter(de),
|
|
136
|
+
})).filter(de), _e = {
|
|
136
137
|
TL: [],
|
|
137
138
|
TR: [],
|
|
138
139
|
BL: [],
|
|
139
140
|
BR: []
|
|
140
141
|
};
|
|
141
142
|
return ge.forEach((e) => {
|
|
142
|
-
|
|
143
|
-
}), Object.keys(
|
|
144
|
-
pe(
|
|
143
|
+
_e[fe(e)].push(e);
|
|
144
|
+
}), Object.keys(_e).forEach((e) => {
|
|
145
|
+
pe(_e[e], e);
|
|
145
146
|
}), he({
|
|
146
|
-
candidateList:
|
|
147
|
+
candidateList: _e.TL,
|
|
147
148
|
side: "left",
|
|
148
149
|
bandMarkerX: oe,
|
|
149
150
|
startY: f,
|
|
150
151
|
direction: "down"
|
|
151
152
|
}), he({
|
|
152
|
-
candidateList:
|
|
153
|
+
candidateList: _e.TR,
|
|
153
154
|
side: "right",
|
|
154
155
|
bandMarkerX: se,
|
|
155
156
|
startY: f,
|
|
156
157
|
direction: "down"
|
|
157
|
-
}),
|
|
158
|
-
candidateList:
|
|
158
|
+
}), _e.BL.length > 1 && he({
|
|
159
|
+
candidateList: _e.BL,
|
|
159
160
|
side: "left",
|
|
160
161
|
bandMarkerX: oe,
|
|
161
162
|
startY: p,
|
|
162
163
|
direction: "up"
|
|
163
|
-
}),
|
|
164
|
-
candidateList:
|
|
164
|
+
}), _e.BR.length > 1 && he({
|
|
165
|
+
candidateList: _e.BR,
|
|
165
166
|
side: "right",
|
|
166
167
|
bandMarkerX: se,
|
|
167
168
|
startY: p,
|
|
@@ -171,122 +172,118 @@ function $e(e) {
|
|
|
171
172
|
}
|
|
172
173
|
//#endregion
|
|
173
174
|
//#region src/components/vue-ui-donut.vue
|
|
174
|
-
var et = /* @__PURE__ */ e({ default: () =>
|
|
175
|
+
var et = /* @__PURE__ */ e({ default: () => mn }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
|
|
175
176
|
"xmlns",
|
|
176
177
|
"aria-describedby",
|
|
177
178
|
"viewBox"
|
|
178
|
-
], ot = ["width", "height"], st = { key: 1 }, ct =
|
|
179
|
-
"id",
|
|
180
|
-
"cx",
|
|
181
|
-
"cy"
|
|
182
|
-
], ht = ["stop-color", "stop-opacity"], gt = ["stop-color"], _t = ["id"], vt = ["id"], yt = ["id"], bt = ["flood-color"], xt = ["id"], St = ["flood-color"], Ct = [
|
|
179
|
+
], ot = ["width", "height"], st = { key: 1 }, ct = { key: 2 }, lt = ["id"], ut = ["id"], dt = ["id"], ft = ["flood-color"], pt = ["id"], mt = ["flood-color"], ht = [
|
|
183
180
|
"d",
|
|
184
181
|
"stroke",
|
|
185
182
|
"filter"
|
|
186
|
-
],
|
|
183
|
+
], gt = [
|
|
187
184
|
"d",
|
|
188
185
|
"stroke",
|
|
189
186
|
"filter"
|
|
190
|
-
],
|
|
187
|
+
], _t = [
|
|
191
188
|
"cx",
|
|
192
189
|
"cy",
|
|
193
190
|
"r",
|
|
194
191
|
"fill",
|
|
195
192
|
"filter"
|
|
196
|
-
],
|
|
193
|
+
], vt = { key: 6 }, yt = ["stroke", "d"], bt = [
|
|
197
194
|
"d",
|
|
198
195
|
"fill",
|
|
199
196
|
"stroke",
|
|
200
197
|
"stroke-width",
|
|
201
198
|
"filter"
|
|
202
|
-
],
|
|
199
|
+
], xt = { key: 0 }, St = [
|
|
203
200
|
"d",
|
|
204
201
|
"fill",
|
|
205
202
|
"stroke",
|
|
206
203
|
"stroke-width",
|
|
207
204
|
"filter"
|
|
208
|
-
],
|
|
205
|
+
], Ct = { key: 0 }, wt = ["stroke", "d"], Tt = { key: 0 }, Et = [
|
|
209
206
|
"d",
|
|
210
207
|
"stroke",
|
|
211
208
|
"stroke-width",
|
|
212
209
|
"filter"
|
|
213
|
-
],
|
|
210
|
+
], Dt = { key: 1 }, Ot = [
|
|
214
211
|
"d",
|
|
215
212
|
"fill",
|
|
216
213
|
"stroke",
|
|
217
214
|
"stroke-width",
|
|
218
215
|
"filter"
|
|
219
|
-
],
|
|
216
|
+
], kt = [
|
|
220
217
|
"d",
|
|
221
218
|
"fill",
|
|
222
219
|
"stroke",
|
|
223
220
|
"stroke-width",
|
|
224
221
|
"filter"
|
|
225
|
-
],
|
|
222
|
+
], At = { key: 1 }, jt = [
|
|
226
223
|
"cx",
|
|
227
224
|
"cy",
|
|
228
225
|
"r",
|
|
229
226
|
"fill",
|
|
230
227
|
"stroke",
|
|
231
228
|
"stroke-width"
|
|
232
|
-
],
|
|
229
|
+
], Mt = [
|
|
233
230
|
"cx",
|
|
234
231
|
"cy",
|
|
235
232
|
"r",
|
|
236
233
|
"fill",
|
|
237
234
|
"stroke",
|
|
238
235
|
"stroke-width"
|
|
239
|
-
],
|
|
236
|
+
], Nt = { key: 0 }, Pt = [
|
|
240
237
|
"d",
|
|
241
238
|
"fill",
|
|
242
239
|
"stroke",
|
|
243
240
|
"stroke-width"
|
|
244
|
-
],
|
|
241
|
+
], Ft = [
|
|
245
242
|
"cx",
|
|
246
243
|
"cy",
|
|
247
244
|
"r",
|
|
248
245
|
"stroke"
|
|
249
|
-
],
|
|
246
|
+
], It = [
|
|
250
247
|
"cx",
|
|
251
248
|
"cy",
|
|
252
249
|
"r",
|
|
253
250
|
"fill"
|
|
254
|
-
],
|
|
251
|
+
], Lt = [
|
|
255
252
|
"cx",
|
|
256
253
|
"cy",
|
|
257
254
|
"r"
|
|
258
|
-
],
|
|
255
|
+
], Rt = { key: 0 }, zt = [
|
|
259
256
|
"d",
|
|
260
257
|
"stroke",
|
|
261
258
|
"fill",
|
|
262
259
|
"onMouseenter",
|
|
263
260
|
"onMouseleave",
|
|
264
261
|
"onClick"
|
|
265
|
-
],
|
|
262
|
+
], Bt = { key: 1 }, Vt = [
|
|
266
263
|
"cx",
|
|
267
264
|
"cy",
|
|
268
265
|
"r"
|
|
269
|
-
],
|
|
266
|
+
], Ht = [
|
|
270
267
|
"x",
|
|
271
268
|
"y",
|
|
272
269
|
"fill",
|
|
273
270
|
"font-size"
|
|
274
|
-
],
|
|
271
|
+
], Ut = [
|
|
275
272
|
"x",
|
|
276
273
|
"y",
|
|
277
274
|
"fill",
|
|
278
275
|
"font-size"
|
|
279
|
-
],
|
|
276
|
+
], Wt = [
|
|
280
277
|
"x",
|
|
281
278
|
"y",
|
|
282
279
|
"fill",
|
|
283
280
|
"font-size"
|
|
284
|
-
],
|
|
281
|
+
], Gt = [
|
|
285
282
|
"x",
|
|
286
283
|
"y",
|
|
287
284
|
"fill",
|
|
288
285
|
"font-size"
|
|
289
|
-
],
|
|
286
|
+
], Kt = ["filter", "opacity"], qt = { key: 0 }, Jt = ["x", "y"], Yt = { key: 1 }, Xt = [
|
|
290
287
|
"cx",
|
|
291
288
|
"cy",
|
|
292
289
|
"fill",
|
|
@@ -295,7 +292,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
295
292
|
"onClick",
|
|
296
293
|
"onMouseenter",
|
|
297
294
|
"onMouseleave"
|
|
298
|
-
],
|
|
295
|
+
], Zt = [
|
|
299
296
|
"text-anchor",
|
|
300
297
|
"x",
|
|
301
298
|
"y",
|
|
@@ -303,7 +300,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
303
300
|
"onMouseenter",
|
|
304
301
|
"onMouseleave",
|
|
305
302
|
"innerHTML"
|
|
306
|
-
],
|
|
303
|
+
], Qt = [
|
|
307
304
|
"text-anchor",
|
|
308
305
|
"x",
|
|
309
306
|
"y",
|
|
@@ -312,7 +309,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
312
309
|
"onClick",
|
|
313
310
|
"onMouseenter",
|
|
314
311
|
"onMouseleave"
|
|
315
|
-
],
|
|
312
|
+
], $t = [
|
|
316
313
|
"text-anchor",
|
|
317
314
|
"x",
|
|
318
315
|
"y",
|
|
@@ -322,7 +319,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
322
319
|
"onMouseenter",
|
|
323
320
|
"onMouseleave",
|
|
324
321
|
"innerHTML"
|
|
325
|
-
],
|
|
322
|
+
], en = [
|
|
326
323
|
"cx",
|
|
327
324
|
"cy",
|
|
328
325
|
"fill",
|
|
@@ -331,7 +328,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
331
328
|
"onClick",
|
|
332
329
|
"onMouseenter",
|
|
333
330
|
"onMouseleave"
|
|
334
|
-
],
|
|
331
|
+
], tn = [
|
|
335
332
|
"text-anchor",
|
|
336
333
|
"x",
|
|
337
334
|
"y",
|
|
@@ -339,7 +336,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
339
336
|
"onMouseenter",
|
|
340
337
|
"onMouseleave",
|
|
341
338
|
"innerHTML"
|
|
342
|
-
],
|
|
339
|
+
], nn = [
|
|
343
340
|
"text-anchor",
|
|
344
341
|
"x",
|
|
345
342
|
"y",
|
|
@@ -348,7 +345,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
348
345
|
"onClick",
|
|
349
346
|
"onMouseenter",
|
|
350
347
|
"onMouseleave"
|
|
351
|
-
],
|
|
348
|
+
], rn = [
|
|
352
349
|
"text-anchor",
|
|
353
350
|
"x",
|
|
354
351
|
"y",
|
|
@@ -358,15 +355,15 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
358
355
|
"onMouseenter",
|
|
359
356
|
"onMouseleave",
|
|
360
357
|
"innerHTML"
|
|
361
|
-
],
|
|
358
|
+
], an = { key: 2 }, on = [
|
|
362
359
|
"x",
|
|
363
360
|
"y",
|
|
364
361
|
"width"
|
|
365
|
-
],
|
|
362
|
+
], sn = [
|
|
366
363
|
"x",
|
|
367
364
|
"y",
|
|
368
365
|
"width"
|
|
369
|
-
],
|
|
366
|
+
], cn = {
|
|
370
367
|
key: 0,
|
|
371
368
|
style: {
|
|
372
369
|
position: "absolute",
|
|
@@ -376,13 +373,13 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
376
373
|
},
|
|
377
374
|
"data-dom-to-png-ignore": "",
|
|
378
375
|
"aria-hidden": "true"
|
|
379
|
-
},
|
|
376
|
+
}, ln = {
|
|
380
377
|
key: 5,
|
|
381
378
|
class: "vue-data-ui-watermark"
|
|
382
|
-
},
|
|
379
|
+
}, un = ["id"], dn = ["onClick"], fn = {
|
|
383
380
|
key: 8,
|
|
384
381
|
class: "vue-ui-donut-hollow"
|
|
385
|
-
},
|
|
382
|
+
}, pn = ["innerHTML"], mn = /*#__PURE__*/ we({
|
|
386
383
|
__name: "vue-ui-donut",
|
|
387
384
|
props: {
|
|
388
385
|
config: {
|
|
@@ -403,30 +400,30 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
403
400
|
"selectDatapoint",
|
|
404
401
|
"copyAlt"
|
|
405
402
|
],
|
|
406
|
-
setup(e, { expose:
|
|
407
|
-
let
|
|
403
|
+
setup(e, { expose: we, emit: et }) {
|
|
404
|
+
let mn = Be(() => import("./Tooltip-CxOrWlFy.js")), hn = Be(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), gn = Be(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), _n = Be(() => import("./DataTable-BxpTMgfK.js")), vn = Be(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), yn = Be(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), bn = Be(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), xn = Be(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_donut: Sn } = me(), { isThemeValid: Cn, warnInvalidTheme: wn } = be(), Tn = Ye(), M = e, En = _({
|
|
408
405
|
get() {
|
|
409
|
-
return !!
|
|
406
|
+
return !!M.dataset && M.dataset.length;
|
|
410
407
|
},
|
|
411
408
|
set(e) {
|
|
412
409
|
return e;
|
|
413
410
|
}
|
|
414
|
-
}),
|
|
411
|
+
}), N = qe(null), Dn = E(null), On = E(null), kn = E(null), An = qe(null), jn = qe(null), Mn = qe(null), Nn = qe(null), Pn = qe(null), Fn = qe(null), In = E(0), Ln = E(0), Rn = E(0), zn = E(!1), Bn = E(null), Vn = E(null), Hn = E(!1), Un = E(!1), Wn = E(null), Gn = E({
|
|
415
412
|
x: 0,
|
|
416
413
|
y: 0
|
|
417
|
-
}),
|
|
414
|
+
}), Kn = E("pointer"), qn = E(!1), Jn = _({
|
|
418
415
|
get: () => L.value.style.chart.layout.labels.percentage.fontSize,
|
|
419
416
|
set: (e) => e
|
|
420
|
-
}), P =
|
|
417
|
+
}), P = _({
|
|
421
418
|
get: () => L.value.style.chart.layout.labels.name.fontSize,
|
|
422
419
|
set: (e) => e
|
|
423
|
-
}),
|
|
420
|
+
}), Yn = _({
|
|
424
421
|
get: () => L.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
425
422
|
set: (e) => e
|
|
426
|
-
}),
|
|
427
|
-
!L.value.autoSize ||
|
|
428
|
-
|
|
429
|
-
let e = L.value, t =
|
|
423
|
+
}), Xn = !1, Zn = () => {
|
|
424
|
+
!L.value.autoSize || Xn || (Xn = !0, requestAnimationFrame(() => {
|
|
425
|
+
Xn = !1;
|
|
426
|
+
let e = L.value, t = Dn.value, n = z.value;
|
|
430
427
|
if (!e.autoSize || !t || !n) return;
|
|
431
428
|
let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
|
|
432
429
|
x: r,
|
|
@@ -438,7 +435,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
438
435
|
selector: ".vue-data-ui-datalabel-value",
|
|
439
436
|
baseSize: e.style.chart.layout.labels.percentage.fontSize,
|
|
440
437
|
minSize: e.style.chart.layout.labels.percentage.minFontSize,
|
|
441
|
-
sizeRef:
|
|
438
|
+
sizeRef: Jn
|
|
442
439
|
},
|
|
443
440
|
{
|
|
444
441
|
selector: ".vue-data-ui-datalabel-name",
|
|
@@ -450,7 +447,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
450
447
|
selector: ".vue-data-ui-datalabel-inline",
|
|
451
448
|
baseSize: e.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
452
449
|
minSize: e.style.chart.layout.labels.name.minFontSize,
|
|
453
|
-
sizeRef:
|
|
450
|
+
sizeRef: Yn
|
|
454
451
|
}
|
|
455
452
|
];
|
|
456
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 }) => {
|
|
@@ -467,32 +464,32 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
467
464
|
});
|
|
468
465
|
}));
|
|
469
466
|
};
|
|
470
|
-
|
|
471
|
-
|
|
467
|
+
Ge(async () => {
|
|
468
|
+
zn.value = !0, er(), requestAnimationFrame(Zn);
|
|
472
469
|
});
|
|
473
|
-
let
|
|
474
|
-
|
|
475
|
-
|
|
470
|
+
let Qn;
|
|
471
|
+
Ge(() => {
|
|
472
|
+
N.value && (Qn = new ResizeObserver((e) => {
|
|
476
473
|
for (let t of e) {
|
|
477
474
|
let { width: e, height: n } = t.contentRect;
|
|
478
475
|
if (e > 0 && n > 0) {
|
|
479
|
-
|
|
476
|
+
Zn();
|
|
480
477
|
break;
|
|
481
478
|
}
|
|
482
479
|
}
|
|
483
|
-
}),
|
|
484
|
-
}),
|
|
485
|
-
|
|
486
|
-
}),
|
|
487
|
-
|
|
480
|
+
}), Qn.observe(N.value.parentElement));
|
|
481
|
+
}), We(() => {
|
|
482
|
+
Qn?.disconnect();
|
|
483
|
+
}), We(() => {
|
|
484
|
+
Mn.value && (Nn.value && Mn.value.unobserve(Nn.value), Mn.value.disconnect());
|
|
488
485
|
});
|
|
489
|
-
let
|
|
490
|
-
function
|
|
491
|
-
if (oe(
|
|
486
|
+
let $n = _(() => !!L.value.debug);
|
|
487
|
+
function er() {
|
|
488
|
+
if (oe(M.dataset) ? (t({
|
|
492
489
|
componentName: "VueUiDonut",
|
|
493
490
|
type: "dataset",
|
|
494
|
-
debug:
|
|
495
|
-
}),
|
|
491
|
+
debug: $n.value
|
|
492
|
+
}), En.value = !1, lr.value = !0) : (M.dataset.forEach((e, n) => {
|
|
496
493
|
p({
|
|
497
494
|
datasetObject: e,
|
|
498
495
|
requiredAttributes: ["name", "values"]
|
|
@@ -502,50 +499,50 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
502
499
|
type: "datasetSerieAttribute",
|
|
503
500
|
property: e,
|
|
504
501
|
index: n,
|
|
505
|
-
debug:
|
|
506
|
-
}),
|
|
502
|
+
debug: $n.value
|
|
503
|
+
}), En.value = !1, lr.value = !0;
|
|
507
504
|
});
|
|
508
|
-
}),
|
|
505
|
+
}), M.dataset.forEach((e, n) => {
|
|
509
506
|
(!e.name || e.name === "") && t({
|
|
510
507
|
componentName: "VueUiDonut",
|
|
511
508
|
type: "datasetAttributeEmpty",
|
|
512
509
|
property: "name",
|
|
513
510
|
index: n,
|
|
514
|
-
debug:
|
|
511
|
+
debug: $n.value
|
|
515
512
|
});
|
|
516
|
-
})), oe(
|
|
517
|
-
let e =
|
|
518
|
-
let { width: e, height: t } =
|
|
519
|
-
chart:
|
|
520
|
-
title: L.value.style.chart.title.text ?
|
|
521
|
-
legend: L.value.style.chart.legend.show ?
|
|
522
|
-
source:
|
|
523
|
-
noTitle:
|
|
524
|
-
padding: L.value.autoSize ? void 0 :
|
|
513
|
+
})), oe(M.dataset) || (lr.value = L.value.loading), L.value.responsive) {
|
|
514
|
+
let e = Te(() => {
|
|
515
|
+
let { width: e, height: t } = Ee({
|
|
516
|
+
chart: N.value,
|
|
517
|
+
title: L.value.style.chart.title.text ? An.value : null,
|
|
518
|
+
legend: L.value.style.chart.legend.show ? jn.value : null,
|
|
519
|
+
source: Pn.value,
|
|
520
|
+
noTitle: Fn.value,
|
|
521
|
+
padding: L.value.autoSize ? void 0 : br.value
|
|
525
522
|
});
|
|
526
523
|
requestAnimationFrame(() => {
|
|
527
|
-
V.value.width = e, V.value.height = t,
|
|
524
|
+
V.value.width = e, V.value.height = t, Zn();
|
|
528
525
|
});
|
|
529
526
|
});
|
|
530
|
-
|
|
527
|
+
Mn.value && (Nn.value && Mn.value.unobserve(Nn.value), Mn.value.disconnect()), Mn.value = new ResizeObserver(e), Nn.value = N.value.parentNode, Mn.value.observe(Nn.value);
|
|
531
528
|
}
|
|
532
529
|
}
|
|
533
|
-
let F = E(i()),
|
|
534
|
-
function
|
|
535
|
-
let e =
|
|
536
|
-
userConfig:
|
|
537
|
-
defaultConfig:
|
|
530
|
+
let F = E(i()), tr = E(!1), nr = E(""), I = E(null), rr = E(0);
|
|
531
|
+
function ir() {
|
|
532
|
+
let e = ye({
|
|
533
|
+
userConfig: M.config,
|
|
534
|
+
defaultConfig: Sn
|
|
538
535
|
}), t = {}, n = e.theme;
|
|
539
536
|
if (!n) t = e;
|
|
540
|
-
else if (!
|
|
537
|
+
else if (!Cn.value(e)) wn(e), t = e;
|
|
541
538
|
else {
|
|
542
|
-
let r =
|
|
543
|
-
userConfig:
|
|
539
|
+
let r = ye({
|
|
540
|
+
userConfig: Pe[n] || M.config,
|
|
544
541
|
defaultConfig: e
|
|
545
542
|
});
|
|
546
543
|
t = {
|
|
547
|
-
...
|
|
548
|
-
userConfig:
|
|
544
|
+
...ye({
|
|
545
|
+
userConfig: M.config,
|
|
549
546
|
defaultConfig: r
|
|
550
547
|
}),
|
|
551
548
|
customPalette: e.customPalette.length ? e.customPalette : ne[n] || s
|
|
@@ -553,7 +550,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
553
550
|
}
|
|
554
551
|
return t;
|
|
555
552
|
}
|
|
556
|
-
let L = E(
|
|
553
|
+
let L = E(ir()), ar = _(() => L.value.userOptions.useCursorPointer), or = _(() => o({
|
|
557
554
|
defaultConfig: {
|
|
558
555
|
useCssAnimation: !1,
|
|
559
556
|
table: { show: !1 },
|
|
@@ -581,11 +578,11 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
581
578
|
} }
|
|
582
579
|
},
|
|
583
580
|
userConfig: L.value.skeletonConfig ?? {}
|
|
584
|
-
})), { loading:
|
|
585
|
-
...Je(
|
|
581
|
+
})), { loading: sr, FINAL_DATASET: cr, manualLoading: lr, skeletonDataset: ur } = ge({
|
|
582
|
+
...Je(M),
|
|
586
583
|
FINAL_CONFIG: L,
|
|
587
|
-
prepareConfig:
|
|
588
|
-
skeletonDataset:
|
|
584
|
+
prepareConfig: ir,
|
|
585
|
+
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
589
586
|
{
|
|
590
587
|
name: "",
|
|
591
588
|
values: [3],
|
|
@@ -604,35 +601,35 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
604
601
|
],
|
|
605
602
|
skeletonConfig: o({
|
|
606
603
|
defaultConfig: L.value,
|
|
607
|
-
userConfig:
|
|
604
|
+
userConfig: or.value
|
|
608
605
|
})
|
|
609
|
-
}), R = E(!0),
|
|
610
|
-
function
|
|
606
|
+
}), R = E(!0), dr = E(0), fr = E(!1), pr = null;
|
|
607
|
+
function mr(e = 1e3) {
|
|
611
608
|
return new Promise((t) => {
|
|
612
609
|
let n = performance.now();
|
|
613
610
|
function r(i) {
|
|
614
611
|
let a = i - n, o = Math.min(a / e, 1);
|
|
615
|
-
|
|
612
|
+
dr.value = c(o), o < 1 ? pr = requestAnimationFrame(r) : (dr.value = 1, pr = null, t());
|
|
616
613
|
}
|
|
617
|
-
|
|
614
|
+
pr !== null && cancelAnimationFrame(pr), dr.value = 0, pr = requestAnimationFrame(r);
|
|
618
615
|
});
|
|
619
616
|
}
|
|
620
|
-
Ze(() =>
|
|
621
|
-
if (e ||
|
|
622
|
-
let t =
|
|
623
|
-
!t && n ? (
|
|
617
|
+
Ze(() => sr.value, async (e) => {
|
|
618
|
+
if (e || fr.value) return;
|
|
619
|
+
let t = cr.value === ur, n = L.value.startAnimation?.show;
|
|
620
|
+
!t && n ? (fr.value = !0, await mr(L.value.startAnimation.durationMs || 1e3)) : dr.value = 1, R.value = !1;
|
|
624
621
|
}, { immediate: !0 });
|
|
625
|
-
let { userOptionsVisible:
|
|
626
|
-
function
|
|
627
|
-
|
|
622
|
+
let { userOptionsVisible: hr, setUserOptionsVisibility: gr, keepUserOptionState: _r } = Ae({ config: L.value }), { svgRef: z } = je({ config: L.value.style.chart.title });
|
|
623
|
+
function vr() {
|
|
624
|
+
gr(!0);
|
|
628
625
|
}
|
|
629
|
-
function
|
|
630
|
-
|
|
626
|
+
function yr() {
|
|
627
|
+
gr(!1);
|
|
631
628
|
}
|
|
632
|
-
Ze(() =>
|
|
633
|
-
|
|
629
|
+
Ze(() => M.config, (e) => {
|
|
630
|
+
sr.value || (L.value = ir()), hr.value = !L.value.userOptions.showOnChartHover, er(), In.value += 1, Ln.value += 1, Rn.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;
|
|
634
631
|
}, { deep: !0 });
|
|
635
|
-
let
|
|
632
|
+
let br = _(() => {
|
|
636
633
|
let { top: e, right: t, bottom: n, left: r } = L.value.style.chart.padding;
|
|
637
634
|
return {
|
|
638
635
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -641,11 +638,11 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
641
638
|
bottom: n,
|
|
642
639
|
left: r
|
|
643
640
|
};
|
|
644
|
-
}), { isPrinting:
|
|
641
|
+
}), { isPrinting: xr, isImaging: Sr, generatePdf: Cr, generateImage: wr } = he({
|
|
645
642
|
elementId: `donut__${F.value}`,
|
|
646
643
|
fileName: L.value.style.chart.title.text || "vue-ui-donut",
|
|
647
644
|
options: L.value.userOptions.print
|
|
648
|
-
}),
|
|
645
|
+
}), Tr = _(() => L.value.userOptions.show && !L.value.style.chart.title.text), Er = _(() => u(L.value.customPalette)), B = E({
|
|
649
646
|
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
650
647
|
showTable: L.value.table.show,
|
|
651
648
|
showTooltip: L.value.style.chart.tooltip.show
|
|
@@ -660,16 +657,16 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
660
657
|
let V = E({
|
|
661
658
|
height: L.value.style.chart.height,
|
|
662
659
|
width: L.value.style.chart.width
|
|
663
|
-
}),
|
|
660
|
+
}), Dr = _(() => {
|
|
664
661
|
if (L.value.pie) return G.value;
|
|
665
662
|
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;
|
|
666
663
|
return Math.max(n, 12 * (1 + e));
|
|
667
|
-
}),
|
|
664
|
+
}), Or = et, H = _(() => cr.value.sort((e, t) => {
|
|
668
665
|
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;
|
|
669
666
|
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
670
667
|
}).map((e, t) => ({
|
|
671
668
|
name: e.name,
|
|
672
|
-
color: re(e.color) ||
|
|
669
|
+
color: re(e.color) || Er.value[t] || s[t] || s[t % s.length],
|
|
673
670
|
value: de(e.values.reduce((e, t) => e + t, 0)),
|
|
674
671
|
absoluteValues: e.values,
|
|
675
672
|
comment: e.comment || "",
|
|
@@ -678,29 +675,29 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
678
675
|
ghost: !1,
|
|
679
676
|
pattern: `pattern_${F.value}_${t}`
|
|
680
677
|
})));
|
|
681
|
-
Ze(() =>
|
|
682
|
-
Array.isArray(e) && e.length > 0 && (
|
|
678
|
+
Ze(() => M.dataset, (e) => {
|
|
679
|
+
Array.isArray(e) && e.length > 0 && (lr.value = !1);
|
|
683
680
|
}, { immediate: !0 });
|
|
684
|
-
let U =
|
|
681
|
+
let U = qe(H.value);
|
|
685
682
|
Ze(() => H.value, (e) => {
|
|
686
|
-
U.value = e, requestAnimationFrame(
|
|
683
|
+
U.value = e, requestAnimationFrame(Zn);
|
|
687
684
|
});
|
|
688
|
-
function
|
|
685
|
+
function kr() {
|
|
689
686
|
return H.value.map((e) => ({
|
|
690
687
|
name: e.name,
|
|
691
688
|
color: e.color,
|
|
692
689
|
value: e.value
|
|
693
690
|
}));
|
|
694
691
|
}
|
|
695
|
-
let W = E([]),
|
|
696
|
-
function
|
|
697
|
-
|
|
692
|
+
let W = E([]), Ar = E(!1), jr = E(null);
|
|
693
|
+
function Mr() {
|
|
694
|
+
Or("selectLegend", Br.value.map((e) => ({
|
|
698
695
|
name: e.name,
|
|
699
696
|
color: e.color,
|
|
700
697
|
value: e.value
|
|
701
698
|
})));
|
|
702
699
|
}
|
|
703
|
-
function
|
|
700
|
+
function Nr({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = c }) {
|
|
704
701
|
let o = performance.now();
|
|
705
702
|
function s(c) {
|
|
706
703
|
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
@@ -708,12 +705,12 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
708
705
|
}
|
|
709
706
|
requestAnimationFrame(s);
|
|
710
707
|
}
|
|
711
|
-
function
|
|
712
|
-
W.value.length ? W.value = [] :
|
|
708
|
+
function Pr() {
|
|
709
|
+
W.value.length ? W.value = [] : Vr.value.forEach((e, t) => {
|
|
713
710
|
W.value.push(t);
|
|
714
|
-
}),
|
|
711
|
+
}), Mr();
|
|
715
712
|
}
|
|
716
|
-
function
|
|
713
|
+
function Fr(e) {
|
|
717
714
|
let t = H.value.find((t, n) => n === e), n = U.value.find((t, n) => n === e).value;
|
|
718
715
|
if (W.value.includes(e)) {
|
|
719
716
|
W.value = W.value.filter((t) => t !== e);
|
|
@@ -722,10 +719,10 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
722
719
|
U.value = U.value.map((t, n) => e === n ? {
|
|
723
720
|
...t,
|
|
724
721
|
value: r
|
|
725
|
-
} : t),
|
|
722
|
+
} : t), Mr();
|
|
726
723
|
}
|
|
727
724
|
function a() {
|
|
728
|
-
|
|
725
|
+
Ar.value = !0, jr.value = e, Nr({
|
|
729
726
|
from: n,
|
|
730
727
|
to: r,
|
|
731
728
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -733,23 +730,23 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
733
730
|
U.value = U.value.map((n, r) => e === r ? {
|
|
734
731
|
...n,
|
|
735
732
|
value: t
|
|
736
|
-
} : n), requestAnimationFrame(
|
|
733
|
+
} : n), requestAnimationFrame(Zn);
|
|
737
734
|
},
|
|
738
735
|
onDone: () => {
|
|
739
|
-
i(),
|
|
736
|
+
i(), Ar.value = !1, jr.value = null;
|
|
740
737
|
}
|
|
741
738
|
});
|
|
742
739
|
}
|
|
743
|
-
L.value.serieToggleAnimation.show && L.value.type === "classic" ? a() : (i(), requestAnimationFrame(
|
|
740
|
+
L.value.serieToggleAnimation.show && L.value.type === "classic" ? a() : (i(), requestAnimationFrame(Zn));
|
|
744
741
|
} else if (W.value.length < H.value.length - 1) {
|
|
745
742
|
function t() {
|
|
746
743
|
W.value.push(e), U.value = U.value.map((t, n) => e === n ? {
|
|
747
744
|
...t,
|
|
748
745
|
value: 0
|
|
749
|
-
} : t),
|
|
746
|
+
} : t), Mr();
|
|
750
747
|
}
|
|
751
748
|
function r() {
|
|
752
|
-
|
|
749
|
+
Ar.value = !0, jr.value = e, Nr({
|
|
753
750
|
from: n,
|
|
754
751
|
to: 0,
|
|
755
752
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -757,35 +754,35 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
757
754
|
U.value = U.value.map((n, r) => e === r ? {
|
|
758
755
|
...n,
|
|
759
756
|
value: t
|
|
760
|
-
} : n), requestAnimationFrame(
|
|
757
|
+
} : n), requestAnimationFrame(Zn);
|
|
761
758
|
},
|
|
762
759
|
onDone: () => {
|
|
763
|
-
t(), requestAnimationFrame(
|
|
760
|
+
t(), requestAnimationFrame(Zn), Ar.value = !1, jr.value = null;
|
|
764
761
|
}
|
|
765
762
|
});
|
|
766
763
|
}
|
|
767
764
|
L.value.serieToggleAnimation.show && L.value.type === "classic" ? r() : t();
|
|
768
765
|
}
|
|
769
766
|
}
|
|
770
|
-
function
|
|
767
|
+
function Ir(e) {
|
|
771
768
|
return H.value.length ? H.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiDonut - There are no series to show."), null);
|
|
772
769
|
}
|
|
773
|
-
function
|
|
774
|
-
let t =
|
|
775
|
-
t !== null && W.value.includes(t.seriesIndex) &&
|
|
770
|
+
function Lr(e) {
|
|
771
|
+
let t = Ir(e);
|
|
772
|
+
t !== null && W.value.includes(t.seriesIndex) && Fr(t.seriesIndex);
|
|
776
773
|
}
|
|
777
|
-
function
|
|
778
|
-
let t =
|
|
779
|
-
t !== null && (W.value.includes(t.seriesIndex) ||
|
|
774
|
+
function Rr(e) {
|
|
775
|
+
let t = Ir(e);
|
|
776
|
+
t !== null && (W.value.includes(t.seriesIndex) || Fr(t.seriesIndex));
|
|
780
777
|
}
|
|
781
|
-
let
|
|
782
|
-
if (R.value && !
|
|
783
|
-
let e =
|
|
778
|
+
let zr = _(() => cr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), Br = _(() => {
|
|
779
|
+
if (R.value && !sr.value) {
|
|
780
|
+
let e = dr.value, t = H.value.map((t) => ({
|
|
784
781
|
...t,
|
|
785
782
|
value: t.value * e,
|
|
786
783
|
color: t.color,
|
|
787
784
|
ghost: !1
|
|
788
|
-
})), n =
|
|
785
|
+
})), n = zr.value * (1 - e);
|
|
789
786
|
return n > 0 && t.push({
|
|
790
787
|
name: "__ghost__",
|
|
791
788
|
value: n,
|
|
@@ -801,11 +798,11 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
801
798
|
...e,
|
|
802
799
|
seriesIndex: t
|
|
803
800
|
})).filter((e, t) => !W.value.includes(t));
|
|
804
|
-
}),
|
|
805
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n /
|
|
801
|
+
}), Vr = _(() => cr.value.map((e, t) => {
|
|
802
|
+
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);
|
|
806
803
|
return {
|
|
807
804
|
name: e.name,
|
|
808
|
-
color: re(e.color) ||
|
|
805
|
+
color: re(e.color) || Er.value[t] || s[t] || s[t % s.length],
|
|
809
806
|
value: n,
|
|
810
807
|
shape: "circle",
|
|
811
808
|
patternIndex: t,
|
|
@@ -820,13 +817,13 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
820
817
|
}), {
|
|
821
818
|
datapoint: e,
|
|
822
819
|
index: t
|
|
823
|
-
}), r = m(L.value.style.chart.layout.labels.percentage.formatter,
|
|
824
|
-
v:
|
|
820
|
+
}), r = m(L.value.style.chart.layout.labels.percentage.formatter, Qr(e), a({
|
|
821
|
+
v: Qr(e),
|
|
825
822
|
s: "%",
|
|
826
823
|
r: L.value.style.chart.legend.roundingPercentage
|
|
827
|
-
})), i =
|
|
824
|
+
})), i = mi({
|
|
828
825
|
val: n,
|
|
829
|
-
percentage: W.value.includes(t) ? `${
|
|
826
|
+
percentage: W.value.includes(t) ? `${pi(e.proportion * 100)}%` : r,
|
|
830
827
|
showVal: L.value.style.chart.legend.showValue,
|
|
831
828
|
showPercentage: L.value.style.chart.legend.showPercentage,
|
|
832
829
|
config: L.value.style.chart.legend
|
|
@@ -834,21 +831,21 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
834
831
|
return {
|
|
835
832
|
...e,
|
|
836
833
|
opacity: W.value.includes(t) ? .5 : 1,
|
|
837
|
-
segregate: () => !
|
|
834
|
+
segregate: () => !Ar.value && Fr(t),
|
|
838
835
|
isSegregated: W.value.includes(t),
|
|
839
836
|
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
840
837
|
};
|
|
841
|
-
})),
|
|
838
|
+
})), Hr = _(() => ({
|
|
842
839
|
cy: "donut-div-legend",
|
|
843
840
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
844
841
|
color: L.value.style.chart.legend.color,
|
|
845
842
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
846
843
|
paddingBottom: 12,
|
|
847
844
|
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
848
|
-
})), G =
|
|
845
|
+
})), G = _(() => {
|
|
849
846
|
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);
|
|
850
847
|
return Math.max(12, n);
|
|
851
|
-
}), K =
|
|
848
|
+
}), K = _(() => r({ 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 = _(() => Math.abs(Br.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Wr = _(() => r({ series: [{
|
|
852
849
|
value: 1,
|
|
853
850
|
color: L.value.style.chart.layout.donut.emptyFill,
|
|
854
851
|
name: "_",
|
|
@@ -856,10 +853,10 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
856
853
|
patternIndex: -1,
|
|
857
854
|
ghost: !1,
|
|
858
855
|
absoluteValues: [1]
|
|
859
|
-
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25,
|
|
860
|
-
let e = Math.max(...
|
|
856
|
+
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Dr.value)), q = _(() => K.value.filter((e) => !e.ghost)), J = _(() => {
|
|
857
|
+
let e = Math.max(...Br.value.map((e) => e.value));
|
|
861
858
|
return ae({
|
|
862
|
-
series:
|
|
859
|
+
series: Br.value.map((t) => t.value / e),
|
|
863
860
|
center: {
|
|
864
861
|
x: V.value.width / 2,
|
|
865
862
|
y: V.value.height / 2
|
|
@@ -868,10 +865,10 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
868
865
|
hasGhost: R.value
|
|
869
866
|
});
|
|
870
867
|
});
|
|
871
|
-
function
|
|
868
|
+
function Gr(e) {
|
|
872
869
|
return e.x > V.value.width / 2 + 6 ? "start" : e.x < V.value.width / 2 - 6 ? "end" : "middle";
|
|
873
870
|
}
|
|
874
|
-
function
|
|
871
|
+
function Kr(e) {
|
|
875
872
|
return e.middlePoint.y > V.value.height / 2 ? n({
|
|
876
873
|
initX: e.middlePoint.x,
|
|
877
874
|
initY: e.middlePoint.y,
|
|
@@ -889,72 +886,72 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
889
886
|
function Y(e) {
|
|
890
887
|
return e.proportion * 100 > L.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
891
888
|
}
|
|
892
|
-
function
|
|
893
|
-
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (
|
|
889
|
+
function qr(e, t) {
|
|
890
|
+
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;
|
|
894
891
|
return i > n && i <= r;
|
|
895
892
|
}
|
|
896
893
|
let { smallArcLayoutsClassic: X } = $e({
|
|
897
894
|
FINAL_CONFIG: L,
|
|
898
895
|
noGhostDonut: q,
|
|
899
896
|
svg: V,
|
|
900
|
-
padding:
|
|
901
|
-
labels_inline_fontSize:
|
|
897
|
+
padding: br,
|
|
898
|
+
labels_inline_fontSize: Yn,
|
|
902
899
|
minSize: G,
|
|
903
900
|
findArcMidpoint: le,
|
|
904
901
|
calcMarkerOffsetX: h,
|
|
905
902
|
calcMarkerOffsetY: f,
|
|
906
|
-
animatingIndex:
|
|
903
|
+
animatingIndex: jr,
|
|
907
904
|
segregated: W,
|
|
908
|
-
isSmallArc:
|
|
905
|
+
isSmallArc: qr
|
|
909
906
|
});
|
|
910
|
-
function
|
|
911
|
-
let n = e.value /
|
|
907
|
+
function Jr(e, t) {
|
|
908
|
+
let n = e.value / Yr(t);
|
|
912
909
|
return isNaN(n) ? 0 : m(L.value.style.chart.layout.labels.percentage.formatter, n * 100, a({
|
|
913
910
|
v: n * 100,
|
|
914
911
|
s: "%",
|
|
915
912
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
916
913
|
}), { datapoint: e });
|
|
917
914
|
}
|
|
918
|
-
function
|
|
915
|
+
function Yr(e) {
|
|
919
916
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
920
917
|
}
|
|
921
|
-
let Z =
|
|
918
|
+
let Z = _(() => Br.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Xr = _(() => {
|
|
922
919
|
let e = H.value.reduce((e, t) => e + t.value, 0);
|
|
923
920
|
return e <= 0 ? [] : H.value.map((t) => t.value / e);
|
|
924
|
-
}),
|
|
925
|
-
function
|
|
926
|
-
return
|
|
921
|
+
}), Zr = _(() => Z.value / Br.value.length);
|
|
922
|
+
function Qr(e) {
|
|
923
|
+
return Ar.value ? e.proportion * 100 : e.value / Z.value * 100;
|
|
927
924
|
}
|
|
928
|
-
let
|
|
929
|
-
function
|
|
925
|
+
let $r = E(null), ei = E(!1);
|
|
926
|
+
function ti({ datapoint: e, seriesIndex: t }) {
|
|
930
927
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
931
928
|
datapoint: e,
|
|
932
929
|
seriesIndex: t
|
|
933
|
-
}),
|
|
930
|
+
}), tr.value = !1, I.value = null, Wn.value = null, Kn.value = "pointer";
|
|
934
931
|
}
|
|
935
932
|
function Q({ datapoint: e, relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer" }) {
|
|
936
933
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
937
934
|
datapoint: e,
|
|
938
935
|
seriesIndex: n
|
|
939
|
-
}),
|
|
936
|
+
}), Kn.value = i, Wn.value = t, $r.value = {
|
|
940
937
|
datapoint: e,
|
|
941
938
|
seriesIndex: n,
|
|
942
939
|
config: L.value,
|
|
943
940
|
series: H.value
|
|
944
|
-
},
|
|
941
|
+
}, tr.value = r, I.value = t;
|
|
945
942
|
let o = "", s = L.value.style.chart.tooltip.customFormat;
|
|
946
|
-
if (
|
|
943
|
+
if (ei.value = !1, fe(s)) try {
|
|
947
944
|
let t = s({
|
|
948
945
|
seriesIndex: n,
|
|
949
946
|
datapoint: e,
|
|
950
947
|
series: H.value,
|
|
951
948
|
config: L.value
|
|
952
949
|
});
|
|
953
|
-
typeof t == "string" && (
|
|
950
|
+
typeof t == "string" && (nr.value = t, ei.value = !0);
|
|
954
951
|
} catch {
|
|
955
|
-
console.warn("Custom format cannot be applied."),
|
|
952
|
+
console.warn("Custom format cannot be applied."), ei.value = !1;
|
|
956
953
|
}
|
|
957
|
-
|
|
954
|
+
ei.value || (o += `<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>`, o += `<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}"/>${Tn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${F.value}_${n})"/>` : ""}</svg>`, o += `<b>${mi({
|
|
958
955
|
showVal: L.value.style.chart.tooltip.showValue,
|
|
959
956
|
showPercentage: L.value.style.chart.tooltip.showPercentage,
|
|
960
957
|
val: `<span>${m(L.value.style.chart.layout.labels.value.formatter, e.value, a({
|
|
@@ -977,9 +974,9 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
977
974
|
seriesIndex: n
|
|
978
975
|
}),
|
|
979
976
|
config: L.value.style.chart.tooltip
|
|
980
|
-
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (o += `<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>`),
|
|
977
|
+
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (o += `<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>${o}</div>`);
|
|
981
978
|
}
|
|
982
|
-
function
|
|
979
|
+
function ni(e, t) {
|
|
983
980
|
let n = X.value[t];
|
|
984
981
|
if (n) return {
|
|
985
982
|
textAnchor: n.textAnchor,
|
|
@@ -993,12 +990,12 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
993
990
|
y: f(e)
|
|
994
991
|
};
|
|
995
992
|
}
|
|
996
|
-
function
|
|
997
|
-
let { textAnchor: r, x: i } =
|
|
993
|
+
function ri(e, t, n) {
|
|
994
|
+
let { textAnchor: r, x: i } = ni(e, t), a = hi(e), o = `
|
|
998
995
|
<tspan
|
|
999
996
|
class="vue-data-ui-datalabel-inline"
|
|
1000
997
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1001
|
-
font-size="${n ?
|
|
998
|
+
font-size="${n ? Yn.value : Jn.value}px"
|
|
1002
999
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
1003
1000
|
>${a}</tspan>
|
|
1004
1001
|
`, s = String(e.name ?? "").split(/\n/g), c = "";
|
|
@@ -1007,23 +1004,23 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1007
1004
|
<tspan
|
|
1008
1005
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1009
1006
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1010
|
-
font-size="${n ?
|
|
1007
|
+
font-size="${n ? Yn.value : P.value}px"
|
|
1011
1008
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
1012
1009
|
>${e}</tspan>
|
|
1013
1010
|
` : c += `
|
|
1014
1011
|
<tspan
|
|
1015
1012
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1016
1013
|
x="${i}"
|
|
1017
|
-
dy="${(n ?
|
|
1014
|
+
dy="${(n ? Yn.value : P.value) * 1.2}"
|
|
1018
1015
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1019
|
-
font-size="${n ?
|
|
1016
|
+
font-size="${n ? Yn.value : P.value}px"
|
|
1020
1017
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
1021
1018
|
>${e}</tspan>
|
|
1022
1019
|
`;
|
|
1023
1020
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? c : ""}${o}` : `${o}${L.value.style.chart.layout.labels.name.show ? c : ""}`;
|
|
1024
1021
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let r = J.value[t].middlePoint, i =
|
|
1022
|
+
function ii(e, t) {
|
|
1023
|
+
let r = J.value[t].middlePoint, i = Gr(r), a = n({
|
|
1027
1024
|
initX: r.x,
|
|
1028
1025
|
initY: r.y,
|
|
1029
1026
|
offset: 42,
|
|
@@ -1031,11 +1028,11 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1031
1028
|
centerY: V.value.height / 2
|
|
1032
1029
|
}), o = a.x;
|
|
1033
1030
|
a.y;
|
|
1034
|
-
let s =
|
|
1031
|
+
let s = hi(e), c = `
|
|
1035
1032
|
<tspan
|
|
1036
1033
|
class="vue-data-ui-datalabel-value"
|
|
1037
1034
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1038
|
-
font-size="${
|
|
1035
|
+
font-size="${Jn.value}px"
|
|
1039
1036
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
1040
1037
|
>${s}</tspan>
|
|
1041
1038
|
`, l = String(e.name ?? "").split(/\n/g), u = "";
|
|
@@ -1059,27 +1056,27 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1059
1056
|
`;
|
|
1060
1057
|
}), i === "end" ? `${L.value.style.chart.layout.labels.name.show ? u : ""}${c}` : `${c}${L.value.style.chart.layout.labels.name.show ? u : ""}`;
|
|
1061
1058
|
}
|
|
1062
|
-
function
|
|
1059
|
+
function ai(e) {
|
|
1063
1060
|
return L.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${F.value})` : "";
|
|
1064
1061
|
}
|
|
1065
|
-
function
|
|
1066
|
-
if (!
|
|
1062
|
+
function oi(e) {
|
|
1063
|
+
if (!Ar.value || jr.value === null || e.seriesIndex !== jr.value) return 1;
|
|
1067
1064
|
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;
|
|
1068
1065
|
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1069
1066
|
}
|
|
1070
|
-
let
|
|
1071
|
-
head:
|
|
1067
|
+
let si = _(() => ({
|
|
1068
|
+
head: Br.value.map((e) => ({
|
|
1072
1069
|
name: e.name,
|
|
1073
1070
|
color: e.color
|
|
1074
1071
|
})),
|
|
1075
|
-
body:
|
|
1072
|
+
body: Br.value.map((e) => e.value)
|
|
1076
1073
|
}));
|
|
1077
|
-
function
|
|
1078
|
-
|
|
1079
|
-
let t =
|
|
1074
|
+
function ci(e = null) {
|
|
1075
|
+
He(() => {
|
|
1076
|
+
let t = si.value.head.map((e, t) => [
|
|
1080
1077
|
[e.name],
|
|
1081
|
-
[
|
|
1082
|
-
[isNaN(
|
|
1078
|
+
[si.value.body[t]],
|
|
1079
|
+
[isNaN(si.value.body[t] / Z.value) ? "-" : si.value.body[t] / Z.value * 100]
|
|
1083
1080
|
]), n = ee([
|
|
1084
1081
|
[L.value.style.chart.title.text],
|
|
1085
1082
|
[L.value.style.chart.title.subtitle.text],
|
|
@@ -1095,7 +1092,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1095
1092
|
});
|
|
1096
1093
|
});
|
|
1097
1094
|
}
|
|
1098
|
-
let
|
|
1095
|
+
let li = _(() => {
|
|
1099
1096
|
let e = [
|
|
1100
1097
|
" <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>",
|
|
1101
1098
|
a({
|
|
@@ -1105,13 +1102,13 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1105
1102
|
r: L.value.table.td.roundingValue
|
|
1106
1103
|
}),
|
|
1107
1104
|
"100%"
|
|
1108
|
-
], t =
|
|
1105
|
+
], t = si.value.head.map((e, t) => [
|
|
1109
1106
|
{
|
|
1110
1107
|
color: e.color,
|
|
1111
1108
|
name: e.name || "-"
|
|
1112
1109
|
},
|
|
1113
|
-
|
|
1114
|
-
isNaN(
|
|
1110
|
+
si.value.body[t],
|
|
1111
|
+
isNaN(si.value.body[t] / Z.value) ? "-" : (si.value.body[t] / Z.value * 100).toFixed(L.value.table.td.roundingPercentage) + "%"
|
|
1115
1112
|
]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
1116
1113
|
th: {
|
|
1117
1114
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1136,19 +1133,19 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1136
1133
|
a11yBody: n,
|
|
1137
1134
|
config: r
|
|
1138
1135
|
};
|
|
1139
|
-
}),
|
|
1140
|
-
function
|
|
1141
|
-
|
|
1136
|
+
}), ui = E(!1);
|
|
1137
|
+
function di(e) {
|
|
1138
|
+
ui.value = e, rr.value += 1;
|
|
1142
1139
|
}
|
|
1143
|
-
let
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1140
|
+
let fi = _(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1141
|
+
function pi(e) {
|
|
1142
|
+
return Me({
|
|
1146
1143
|
num: e,
|
|
1147
1144
|
rounding: L.value.style.chart.legend.roundingPercentage
|
|
1148
1145
|
});
|
|
1149
1146
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1147
|
+
function mi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1148
|
+
return Ne({
|
|
1152
1149
|
config: i,
|
|
1153
1150
|
val: e,
|
|
1154
1151
|
percentage: t,
|
|
@@ -1156,15 +1153,15 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1156
1153
|
showPercentage: r
|
|
1157
1154
|
});
|
|
1158
1155
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return
|
|
1156
|
+
function hi(e) {
|
|
1157
|
+
return mi({
|
|
1161
1158
|
val: m(L.value.style.chart.layout.labels.value.formatter, e.value, a({
|
|
1162
1159
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1163
1160
|
v: e.value,
|
|
1164
1161
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1165
1162
|
r: L.value.style.chart.layout.labels.value.rounding
|
|
1166
1163
|
}), { datapoint: e }),
|
|
1167
|
-
percentage:
|
|
1164
|
+
percentage: Jr(e, q.value),
|
|
1168
1165
|
showVal: L.value.style.chart.layout.labels.value.show,
|
|
1169
1166
|
showPercentage: L.value.style.chart.layout.labels.percentage.show,
|
|
1170
1167
|
config: L.value.style.chart.layout.labels.dataLabels
|
|
@@ -1174,28 +1171,28 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1174
1171
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
1175
1172
|
datapoint: e,
|
|
1176
1173
|
seriesIndex: e.seriesIndex
|
|
1177
|
-
}),
|
|
1174
|
+
}), Or("selectDatapoint", {
|
|
1178
1175
|
datapoint: e,
|
|
1179
1176
|
index: t
|
|
1180
1177
|
});
|
|
1181
1178
|
}
|
|
1182
|
-
function
|
|
1179
|
+
function gi() {
|
|
1183
1180
|
B.value.showTable = !B.value.showTable;
|
|
1184
1181
|
}
|
|
1185
|
-
function
|
|
1182
|
+
function _i() {
|
|
1186
1183
|
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
1187
1184
|
}
|
|
1188
|
-
function
|
|
1185
|
+
function vi() {
|
|
1189
1186
|
B.value.showTooltip = !B.value.showTooltip;
|
|
1190
1187
|
}
|
|
1191
|
-
let
|
|
1192
|
-
function
|
|
1193
|
-
|
|
1188
|
+
let yi = E(!1);
|
|
1189
|
+
function bi() {
|
|
1190
|
+
yi.value = !yi.value;
|
|
1194
1191
|
}
|
|
1195
|
-
async function
|
|
1196
|
-
if (!
|
|
1197
|
-
let { width: t, height: n } =
|
|
1198
|
-
domElement:
|
|
1192
|
+
async function xi({ scale: e = 2 } = {}) {
|
|
1193
|
+
if (!N.value) return;
|
|
1194
|
+
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
1195
|
+
domElement: N.value,
|
|
1199
1196
|
base64: !0,
|
|
1200
1197
|
img: !0,
|
|
1201
1198
|
scale: e
|
|
@@ -1209,25 +1206,25 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1209
1206
|
aspectRatio: r
|
|
1210
1207
|
};
|
|
1211
1208
|
}
|
|
1212
|
-
function
|
|
1213
|
-
if (!
|
|
1214
|
-
let { x: e, y: t, width: n, height: r } =
|
|
1209
|
+
function Si() {
|
|
1210
|
+
if (!Dn.value) return;
|
|
1211
|
+
let { x: e, y: t, width: n, height: r } = Dn.value.getBBox();
|
|
1215
1212
|
z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1216
1213
|
}
|
|
1217
|
-
let
|
|
1214
|
+
let Ci = _(() => {
|
|
1218
1215
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
1219
1216
|
return {
|
|
1220
|
-
component: e ?
|
|
1217
|
+
component: e ? xn : gn,
|
|
1221
1218
|
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1222
1219
|
props: e ? {
|
|
1223
1220
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
1224
1221
|
color: L.value.table.th.color,
|
|
1225
1222
|
headerColor: L.value.table.th.color,
|
|
1226
1223
|
headerBg: L.value.table.th.backgroundColor,
|
|
1227
|
-
isFullscreen:
|
|
1228
|
-
fullscreenParent:
|
|
1224
|
+
isFullscreen: ui.value,
|
|
1225
|
+
fullscreenParent: N.value,
|
|
1229
1226
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1230
|
-
isCursorPointer:
|
|
1227
|
+
isCursorPointer: ar.value
|
|
1231
1228
|
} : {
|
|
1232
1229
|
hideDetails: !0,
|
|
1233
1230
|
config: {
|
|
@@ -1246,50 +1243,50 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1246
1243
|
};
|
|
1247
1244
|
});
|
|
1248
1245
|
Ze(() => B.value.showTable, (e) => {
|
|
1249
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
1246
|
+
L.value.table.show || (e && L.value.table.useDialog && Bn.value ? Bn.value.open() : "close" in Bn.value && Bn.value.close());
|
|
1250
1247
|
});
|
|
1251
|
-
function
|
|
1252
|
-
B.value.showTable = !1,
|
|
1248
|
+
function wi() {
|
|
1249
|
+
B.value.showTable = !1, Vn.value && Vn.value.setTableIconState(!1);
|
|
1253
1250
|
}
|
|
1254
|
-
let
|
|
1251
|
+
let Ti = _(() => Vr.value.map((e) => ({
|
|
1255
1252
|
...e,
|
|
1256
1253
|
name: e.display
|
|
1257
|
-
}))),
|
|
1254
|
+
}))), Ei = _(() => L.value.style.chart.backgroundColor), Di = _(() => L.value.style.chart.legend), { exportSvg: Oi, getSvg: ki } = ve({
|
|
1258
1255
|
svg: z,
|
|
1259
|
-
title:
|
|
1260
|
-
legend:
|
|
1261
|
-
legendItems:
|
|
1262
|
-
backgroundColor:
|
|
1256
|
+
title: _(() => L.value.style.chart.title),
|
|
1257
|
+
legend: Di,
|
|
1258
|
+
legendItems: Ti,
|
|
1259
|
+
backgroundColor: Ei
|
|
1263
1260
|
});
|
|
1264
|
-
async function
|
|
1265
|
-
|
|
1261
|
+
async function Ai({ isCb: e }) {
|
|
1262
|
+
Un.value = !0, await He();
|
|
1266
1263
|
try {
|
|
1267
1264
|
if (e) {
|
|
1268
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1265
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ki();
|
|
1269
1266
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1270
1267
|
blob: e,
|
|
1271
1268
|
url: t,
|
|
1272
1269
|
text: n,
|
|
1273
1270
|
dataUrl: r
|
|
1274
1271
|
}));
|
|
1275
|
-
} else await Promise.resolve(
|
|
1272
|
+
} else await Promise.resolve(Oi());
|
|
1276
1273
|
} finally {
|
|
1277
|
-
|
|
1274
|
+
Un.value = !1;
|
|
1278
1275
|
}
|
|
1279
1276
|
}
|
|
1280
|
-
function
|
|
1277
|
+
function ji(e) {
|
|
1281
1278
|
if (e?.stage === "start") {
|
|
1282
|
-
|
|
1279
|
+
Hn.value = !0;
|
|
1283
1280
|
return;
|
|
1284
1281
|
}
|
|
1285
1282
|
if (e?.stage === "end") {
|
|
1286
|
-
|
|
1283
|
+
Hn.value = !1;
|
|
1287
1284
|
return;
|
|
1288
1285
|
}
|
|
1289
|
-
|
|
1286
|
+
wr();
|
|
1290
1287
|
}
|
|
1291
|
-
async function
|
|
1292
|
-
if (
|
|
1288
|
+
async function Mi() {
|
|
1289
|
+
if (Or("copyAlt", {
|
|
1293
1290
|
config: L.value,
|
|
1294
1291
|
dataset: U.value
|
|
1295
1292
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -1301,31 +1298,31 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1301
1298
|
dataset: U.value
|
|
1302
1299
|
}));
|
|
1303
1300
|
}
|
|
1304
|
-
function
|
|
1305
|
-
|
|
1301
|
+
function Ni() {
|
|
1302
|
+
Wn.value = null, qn.value = !0;
|
|
1306
1303
|
}
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1304
|
+
function Pi() {
|
|
1305
|
+
Wn.value = null, Kn.value = "pointer", tr.value = !1, I.value = null, qn.value = !1;
|
|
1309
1306
|
}
|
|
1310
|
-
function
|
|
1311
|
-
if (!z.value ||
|
|
1307
|
+
function Fi(e) {
|
|
1308
|
+
if (!z.value || yi.value || document.activeElement !== z.value || !q.value.length) return;
|
|
1312
1309
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1313
1310
|
if (!t && !n && !r && !i) return;
|
|
1314
1311
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1315
|
-
|
|
1312
|
+
Wn.value = null, Kn.value = "pointer", tr.value = !1, I.value = null;
|
|
1316
1313
|
return;
|
|
1317
1314
|
}
|
|
1318
1315
|
if (r) {
|
|
1319
|
-
if (
|
|
1320
|
-
let e = q.value[
|
|
1316
|
+
if (Wn.value === null) return;
|
|
1317
|
+
let e = q.value[Wn.value];
|
|
1321
1318
|
if (!e) return;
|
|
1322
|
-
$(e,
|
|
1319
|
+
$(e, Wn.value);
|
|
1323
1320
|
return;
|
|
1324
1321
|
}
|
|
1325
|
-
let a =
|
|
1322
|
+
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;
|
|
1326
1323
|
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;
|
|
1327
1324
|
let l = q.value[a];
|
|
1328
|
-
l && (
|
|
1325
|
+
l && (Wn.value = a, Ii(a), Q({
|
|
1329
1326
|
datapoint: l,
|
|
1330
1327
|
relativeIndex: a,
|
|
1331
1328
|
seriesIndex: l.seriesIndex,
|
|
@@ -1333,7 +1330,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1333
1330
|
triggerMode: "keyboard"
|
|
1334
1331
|
}));
|
|
1335
1332
|
}
|
|
1336
|
-
function
|
|
1333
|
+
function Ii(e) {
|
|
1337
1334
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1338
1335
|
let t = V.value.width / 2, n = V.value.height / 2;
|
|
1339
1336
|
if (L.value.type === "classic") {
|
|
@@ -1348,49 +1345,49 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1348
1345
|
t = r.x, n = r.y;
|
|
1349
1346
|
}
|
|
1350
1347
|
let r = z.value.getBoundingClientRect();
|
|
1351
|
-
|
|
1348
|
+
Gn.value = {
|
|
1352
1349
|
x: r.left + t / V.value.width * r.width,
|
|
1353
1350
|
y: r.top + n / V.value.height * r.height
|
|
1354
1351
|
};
|
|
1355
1352
|
}
|
|
1356
|
-
let
|
|
1357
|
-
headers:
|
|
1358
|
-
rows:
|
|
1353
|
+
let Li = _(() => ({
|
|
1354
|
+
headers: li.value?.colNames ?? [],
|
|
1355
|
+
rows: li.value?.a11yBody ?? []
|
|
1359
1356
|
}));
|
|
1360
|
-
return
|
|
1361
|
-
autoSize:
|
|
1362
|
-
getData:
|
|
1363
|
-
getImage:
|
|
1364
|
-
generatePdf:
|
|
1365
|
-
generateCsv:
|
|
1366
|
-
generateImage:
|
|
1367
|
-
generateSvg:
|
|
1368
|
-
hideSeries:
|
|
1369
|
-
showSeries:
|
|
1370
|
-
toggleTable:
|
|
1371
|
-
toggleLabels:
|
|
1372
|
-
toggleTooltip:
|
|
1373
|
-
toggleAnnotator:
|
|
1374
|
-
toggleFullscreen:
|
|
1375
|
-
copyAlt:
|
|
1357
|
+
return we({
|
|
1358
|
+
autoSize: Si,
|
|
1359
|
+
getData: kr,
|
|
1360
|
+
getImage: xi,
|
|
1361
|
+
generatePdf: Cr,
|
|
1362
|
+
generateCsv: ci,
|
|
1363
|
+
generateImage: wr,
|
|
1364
|
+
generateSvg: Ai,
|
|
1365
|
+
hideSeries: Rr,
|
|
1366
|
+
showSeries: Lr,
|
|
1367
|
+
toggleTable: gi,
|
|
1368
|
+
toggleLabels: _i,
|
|
1369
|
+
toggleTooltip: vi,
|
|
1370
|
+
toggleAnnotator: bi,
|
|
1371
|
+
toggleFullscreen: di,
|
|
1372
|
+
copyAlt: Mi
|
|
1376
1373
|
}), (t, r) => (T(), b("div", {
|
|
1377
1374
|
ref_key: "donutChart",
|
|
1378
|
-
ref:
|
|
1379
|
-
class:
|
|
1375
|
+
ref: N,
|
|
1376
|
+
class: Ue(`vue-data-ui-component vue-ui-donut ${ui.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1380
1377
|
style: w(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1381
1378
|
id: `donut__${F.value}`,
|
|
1382
|
-
onMouseenter:
|
|
1383
|
-
onMouseleave:
|
|
1379
|
+
onMouseenter: vr,
|
|
1380
|
+
onMouseleave: yr
|
|
1384
1381
|
}, [
|
|
1385
1382
|
x("div", {
|
|
1386
1383
|
id: `chart-instructions-${F.value}`,
|
|
1387
1384
|
class: "sr-only"
|
|
1388
|
-
}, [x("p", null,
|
|
1389
|
-
|
|
1385
|
+
}, [x("p", null, k(L.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
|
|
1386
|
+
Li.value?.rows?.length ? (T(), v(ke, {
|
|
1390
1387
|
key: 0,
|
|
1391
1388
|
uid: F.value,
|
|
1392
|
-
head:
|
|
1393
|
-
body:
|
|
1389
|
+
head: Li.value.headers,
|
|
1390
|
+
body: Li.value.rows,
|
|
1394
1391
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1395
1392
|
caption: L.value.a11y.translations.tableCaption
|
|
1396
1393
|
}, null, 8, [
|
|
@@ -1400,21 +1397,21 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1400
1397
|
"notice",
|
|
1401
1398
|
"caption"
|
|
1402
1399
|
])) : y("", !0),
|
|
1403
|
-
L.value.userOptions.buttons.annotator &&
|
|
1400
|
+
L.value.userOptions.buttons.annotator && A(z) ? (T(), v(A(vn), {
|
|
1404
1401
|
key: 1,
|
|
1405
1402
|
color: L.value.style.chart.color,
|
|
1406
1403
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1407
|
-
active:
|
|
1408
|
-
svgRef:
|
|
1409
|
-
isCursorPointer:
|
|
1410
|
-
onClose:
|
|
1404
|
+
active: yi.value,
|
|
1405
|
+
svgRef: A(z),
|
|
1406
|
+
isCursorPointer: ar.value,
|
|
1407
|
+
onClose: bi
|
|
1411
1408
|
}, {
|
|
1412
|
-
"annotator-action-close":
|
|
1413
|
-
"annotator-action-color":
|
|
1414
|
-
"annotator-action-draw":
|
|
1415
|
-
"annotator-action-undo":
|
|
1416
|
-
"annotator-action-redo":
|
|
1417
|
-
"annotator-action-delete":
|
|
1409
|
+
"annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1410
|
+
"annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
1411
|
+
"annotator-action-draw": j(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
|
|
1412
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
|
|
1413
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
|
|
1414
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
|
|
1418
1415
|
_: 3
|
|
1419
1416
|
}, 8, [
|
|
1420
1417
|
"color",
|
|
@@ -1424,20 +1421,20 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1424
1421
|
"isCursorPointer"
|
|
1425
1422
|
])) : y("", !0),
|
|
1426
1423
|
O(t.$slots, "userConfig", {}, void 0, !0),
|
|
1427
|
-
|
|
1424
|
+
Tr.value ? (T(), b("div", {
|
|
1428
1425
|
key: 2,
|
|
1429
1426
|
ref_key: "noTitle",
|
|
1430
|
-
ref:
|
|
1427
|
+
ref: Fn,
|
|
1431
1428
|
class: "vue-data-ui-no-title-space",
|
|
1432
1429
|
style: "height:36px; width: 100%;background:transparent"
|
|
1433
1430
|
}, null, 512)) : y("", !0),
|
|
1434
1431
|
L.value.style.chart.title.text ? (T(), b("div", {
|
|
1435
1432
|
key: 3,
|
|
1436
1433
|
ref_key: "chartTitle",
|
|
1437
|
-
ref:
|
|
1434
|
+
ref: An,
|
|
1438
1435
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1439
|
-
}, [(T(),
|
|
1440
|
-
key: `title_${
|
|
1436
|
+
}, [(T(), v(Se, {
|
|
1437
|
+
key: `title_${In.value}`,
|
|
1441
1438
|
config: {
|
|
1442
1439
|
title: {
|
|
1443
1440
|
cy: "donut-div-title",
|
|
@@ -1450,14 +1447,14 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1450
1447
|
}
|
|
1451
1448
|
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1452
1449
|
x("div", { id: `legend-top-${F.value}` }, null, 8, rt),
|
|
1453
|
-
L.value.userOptions.show &&
|
|
1450
|
+
L.value.userOptions.show && En.value && (A(_r) || A(hr)) ? (T(), v(A(yn), {
|
|
1454
1451
|
ref_key: "userOptionsRef",
|
|
1455
|
-
ref:
|
|
1456
|
-
key: `user_option_${
|
|
1452
|
+
ref: Vn,
|
|
1453
|
+
key: `user_option_${rr.value}`,
|
|
1457
1454
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1458
1455
|
color: L.value.style.chart.color,
|
|
1459
|
-
isPrinting:
|
|
1460
|
-
isImaging:
|
|
1456
|
+
isPrinting: A(xr),
|
|
1457
|
+
isImaging: A(Sr),
|
|
1461
1458
|
uid: F.value,
|
|
1462
1459
|
hasTooltip: L.value.style.chart.tooltip.show && L.value.userOptions.buttons.tooltip,
|
|
1463
1460
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1468,32 +1465,32 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1468
1465
|
hasLabel: L.value.userOptions.buttons.labels,
|
|
1469
1466
|
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1470
1467
|
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1471
|
-
isFullscreen:
|
|
1472
|
-
chartElement:
|
|
1468
|
+
isFullscreen: ui.value,
|
|
1469
|
+
chartElement: N.value,
|
|
1473
1470
|
position: L.value.userOptions.position,
|
|
1474
1471
|
callbacks: L.value.userOptions.callbacks,
|
|
1475
1472
|
isTooltip: B.value.showTooltip,
|
|
1476
1473
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1477
1474
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1478
|
-
isAnnotation:
|
|
1475
|
+
isAnnotation: yi.value,
|
|
1479
1476
|
printScale: L.value.userOptions.print.scale,
|
|
1480
1477
|
tableDialog: L.value.table.useDialog,
|
|
1481
|
-
isCursorPointer:
|
|
1482
|
-
onToggleFullscreen:
|
|
1483
|
-
onGeneratePdf:
|
|
1484
|
-
onGenerateCsv:
|
|
1485
|
-
onGenerateImage:
|
|
1486
|
-
onGenerateSvg:
|
|
1487
|
-
onToggleTable:
|
|
1488
|
-
onToggleLabels:
|
|
1489
|
-
onToggleTooltip:
|
|
1490
|
-
onToggleAnnotator:
|
|
1491
|
-
onCopyAlt:
|
|
1492
|
-
style: w({ visibility:
|
|
1493
|
-
},
|
|
1478
|
+
isCursorPointer: ar.value,
|
|
1479
|
+
onToggleFullscreen: di,
|
|
1480
|
+
onGeneratePdf: A(Cr),
|
|
1481
|
+
onGenerateCsv: ci,
|
|
1482
|
+
onGenerateImage: ji,
|
|
1483
|
+
onGenerateSvg: Ai,
|
|
1484
|
+
onToggleTable: gi,
|
|
1485
|
+
onToggleLabels: _i,
|
|
1486
|
+
onToggleTooltip: vi,
|
|
1487
|
+
onToggleAnnotator: bi,
|
|
1488
|
+
onCopyAlt: Mi,
|
|
1489
|
+
style: w({ visibility: A(_r) ? A(hr) ? "visible" : "hidden" : "visible" })
|
|
1490
|
+
}, Le({ _: 2 }, [
|
|
1494
1491
|
t.$slots.menuIcon ? {
|
|
1495
1492
|
name: "menuIcon",
|
|
1496
|
-
fn:
|
|
1493
|
+
fn: j(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
|
|
1497
1494
|
isOpen: e,
|
|
1498
1495
|
color: n
|
|
1499
1496
|
})), void 0, !0)]),
|
|
@@ -1501,42 +1498,42 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1501
1498
|
} : void 0,
|
|
1502
1499
|
t.$slots.optionTooltip ? {
|
|
1503
1500
|
name: "optionTooltip",
|
|
1504
|
-
fn:
|
|
1501
|
+
fn: j(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1505
1502
|
key: "1"
|
|
1506
1503
|
} : void 0,
|
|
1507
1504
|
t.$slots.optionPdf ? {
|
|
1508
1505
|
name: "optionPdf",
|
|
1509
|
-
fn:
|
|
1506
|
+
fn: j(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1510
1507
|
key: "2"
|
|
1511
1508
|
} : void 0,
|
|
1512
1509
|
t.$slots.optionCsv ? {
|
|
1513
1510
|
name: "optionCsv",
|
|
1514
|
-
fn:
|
|
1511
|
+
fn: j(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1515
1512
|
key: "3"
|
|
1516
1513
|
} : void 0,
|
|
1517
1514
|
t.$slots.optionImg ? {
|
|
1518
1515
|
name: "optionImg",
|
|
1519
|
-
fn:
|
|
1516
|
+
fn: j(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1520
1517
|
key: "4"
|
|
1521
1518
|
} : void 0,
|
|
1522
1519
|
t.$slots.optionSvg ? {
|
|
1523
1520
|
name: "optionSvg",
|
|
1524
|
-
fn:
|
|
1521
|
+
fn: j(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1525
1522
|
key: "5"
|
|
1526
1523
|
} : void 0,
|
|
1527
1524
|
t.$slots.optionTable ? {
|
|
1528
1525
|
name: "optionTable",
|
|
1529
|
-
fn:
|
|
1526
|
+
fn: j(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1530
1527
|
key: "6"
|
|
1531
1528
|
} : void 0,
|
|
1532
1529
|
t.$slots.optionLabels ? {
|
|
1533
1530
|
name: "optionLabels",
|
|
1534
|
-
fn:
|
|
1531
|
+
fn: j(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1535
1532
|
key: "7"
|
|
1536
1533
|
} : void 0,
|
|
1537
1534
|
t.$slots.optionFullscreen ? {
|
|
1538
1535
|
name: "optionFullscreen",
|
|
1539
|
-
fn:
|
|
1536
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(S({
|
|
1540
1537
|
toggleFullscreen: e,
|
|
1541
1538
|
isFullscreen: n
|
|
1542
1539
|
})), void 0, !0)]),
|
|
@@ -1544,7 +1541,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1544
1541
|
} : void 0,
|
|
1545
1542
|
t.$slots.optionAnnotator ? {
|
|
1546
1543
|
name: "optionAnnotator",
|
|
1547
|
-
fn:
|
|
1544
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(S({
|
|
1548
1545
|
toggleAnnotator: e,
|
|
1549
1546
|
isAnnotator: n
|
|
1550
1547
|
})), void 0, !0)]),
|
|
@@ -1552,42 +1549,42 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1552
1549
|
} : void 0,
|
|
1553
1550
|
t.$slots.optionAltCopy ? {
|
|
1554
1551
|
name: "optionAltCopy",
|
|
1555
|
-
fn:
|
|
1552
|
+
fn: j(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
|
|
1556
1553
|
key: "10"
|
|
1557
1554
|
} : void 0,
|
|
1558
1555
|
t.$slots["custom-menu-before"] ? {
|
|
1559
1556
|
name: "custom-menu-before",
|
|
1560
|
-
fn:
|
|
1557
|
+
fn: j(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1561
1558
|
key: "11"
|
|
1562
1559
|
} : void 0,
|
|
1563
1560
|
t.$slots["custom-menu-after"] ? {
|
|
1564
1561
|
name: "custom-menu-after",
|
|
1565
|
-
fn:
|
|
1562
|
+
fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1566
1563
|
key: "12"
|
|
1567
1564
|
} : void 0
|
|
1568
1565
|
]), 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("."))) : y("", !0),
|
|
1569
1566
|
x("div", it, [(T(), b("svg", {
|
|
1570
1567
|
ref_key: "svgRef",
|
|
1571
1568
|
ref: z,
|
|
1572
|
-
xmlns:
|
|
1569
|
+
xmlns: A(ue),
|
|
1573
1570
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1574
|
-
class:
|
|
1575
|
-
"vue-data-ui-fullscreen--on":
|
|
1576
|
-
"vue-data-ui-fulscreen--off": !
|
|
1571
|
+
class: Ue({
|
|
1572
|
+
"vue-data-ui-fullscreen--on": ui.value,
|
|
1573
|
+
"vue-data-ui-fulscreen--off": !ui.value,
|
|
1577
1574
|
"vue-data-ui-svg": !0
|
|
1578
1575
|
}),
|
|
1579
1576
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1580
|
-
style: w(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${
|
|
1577
|
+
style: w(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${br.value.css}`),
|
|
1581
1578
|
tabindex: "0",
|
|
1582
|
-
onFocus:
|
|
1583
|
-
onBlur:
|
|
1584
|
-
onKeydown:
|
|
1579
|
+
onFocus: Ni,
|
|
1580
|
+
onBlur: Pi,
|
|
1581
|
+
onKeydown: Fi
|
|
1585
1582
|
}, [x("g", {
|
|
1586
1583
|
ref_key: "G",
|
|
1587
|
-
ref:
|
|
1584
|
+
ref: Dn,
|
|
1588
1585
|
class: "vue-data-ui-g"
|
|
1589
1586
|
}, [
|
|
1590
|
-
|
|
1587
|
+
ze(A(bn)),
|
|
1591
1588
|
t.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1592
1589
|
key: 0,
|
|
1593
1590
|
x: 0,
|
|
@@ -1596,43 +1593,55 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1596
1593
|
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
1597
1594
|
style: { pointerEvents: "none" }
|
|
1598
1595
|
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : y("", !0),
|
|
1599
|
-
L.value.type === "classic" && !isNaN(
|
|
1596
|
+
L.value.type === "classic" && !isNaN(Dr.value / G.value) ? (T(), b("defs", st, [L.value.style.chart.useGradient ? (T(), v(De, {
|
|
1600
1597
|
key: 0,
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1598
|
+
t: "radial",
|
|
1599
|
+
id: `gradient_${F.value}`,
|
|
1600
|
+
stops: [
|
|
1601
|
+
[
|
|
1602
|
+
"0%",
|
|
1603
|
+
A(l)(L.value.style.chart.backgroundColor, 0),
|
|
1604
|
+
0
|
|
1605
|
+
],
|
|
1606
|
+
[
|
|
1607
|
+
`${(1 - Dr.value / G.value) * 100}%`,
|
|
1608
|
+
A(l)("#FFFFFF", 0),
|
|
1609
|
+
0
|
|
1610
|
+
],
|
|
1611
|
+
[
|
|
1612
|
+
`${(1 - Dr.value / G.value / 2) * 100}%`,
|
|
1613
|
+
A(l)("#FFFFFF", L.value.style.chart.gradientIntensity),
|
|
1614
|
+
1
|
|
1615
|
+
],
|
|
1616
|
+
[
|
|
1617
|
+
"100%",
|
|
1618
|
+
A(l)(L.value.style.chart.backgroundColor, 0),
|
|
1619
|
+
0
|
|
1620
|
+
]
|
|
1621
|
+
]
|
|
1622
|
+
}, null, 8, ["id", "stops"])) : y("", !0)])) : y("", !0),
|
|
1623
|
+
L.value.type === "polar" ? (T(), b("defs", ct, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), v(De, {
|
|
1624
|
+
t: "radial",
|
|
1624
1625
|
id: `polar_gradient_${t}_${F.value}`,
|
|
1626
|
+
key: `pg_${t}_${F.value}`,
|
|
1625
1627
|
cx: (isNaN(e.middlePoint.x / V.value.width * 100) ? 0 : e.middlePoint.x / V.value.width * 100) + "%",
|
|
1626
1628
|
cy: (isNaN(e.middlePoint.y / V.value.height * 100) ? 0 : e.middlePoint.y / V.value.height * 100) + "%",
|
|
1627
|
-
r: "62%"
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1629
|
+
r: "62%",
|
|
1630
|
+
stops: [[
|
|
1631
|
+
"0%",
|
|
1632
|
+
A(pe)(K.value[t].color, .05),
|
|
1633
|
+
L.value.style.chart.gradientIntensity / 100
|
|
1634
|
+
], [
|
|
1635
|
+
"100%",
|
|
1636
|
+
K.value[t].color,
|
|
1637
|
+
1
|
|
1638
|
+
]]
|
|
1639
|
+
}, null, 8, [
|
|
1640
|
+
"id",
|
|
1641
|
+
"cx",
|
|
1642
|
+
"cy",
|
|
1643
|
+
"stops"
|
|
1644
|
+
]))), 128))])) : y("", !0),
|
|
1636
1645
|
x("defs", null, [
|
|
1637
1646
|
x("filter", {
|
|
1638
1647
|
id: `blur_${F.value}`,
|
|
@@ -1644,10 +1653,10 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1644
1653
|
in: "SourceGraphic",
|
|
1645
1654
|
stdDeviation: 2,
|
|
1646
1655
|
id: `blur_std_${F.value}`
|
|
1647
|
-
}, null, 8,
|
|
1656
|
+
}, null, 8, ut), r[5] ||= x("feColorMatrix", {
|
|
1648
1657
|
type: "saturate",
|
|
1649
1658
|
values: "0"
|
|
1650
|
-
}, null, -1)], 8,
|
|
1659
|
+
}, null, -1)], 8, lt),
|
|
1651
1660
|
x("filter", {
|
|
1652
1661
|
id: `shadow_${F.value}`,
|
|
1653
1662
|
"color-interpolation-filters": "sRGB"
|
|
@@ -1657,7 +1666,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1657
1666
|
stdDeviation: "10",
|
|
1658
1667
|
"flood-opacity": "0.5",
|
|
1659
1668
|
"flood-color": L.value.style.chart.layout.donut.shadowColor
|
|
1660
|
-
}, null, 8,
|
|
1669
|
+
}, null, 8, ft)], 8, dt),
|
|
1661
1670
|
x("filter", {
|
|
1662
1671
|
id: `drop_shadow_${F.value}`,
|
|
1663
1672
|
"color-interpolation-filters": "sRGB",
|
|
@@ -1671,30 +1680,30 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1671
1680
|
stdDeviation: "3",
|
|
1672
1681
|
"flood-opacity": "1",
|
|
1673
1682
|
"flood-color": L.value.style.chart.layout.donut.shadowColor
|
|
1674
|
-
}, null, 8,
|
|
1683
|
+
}, null, 8, mt)], 8, pt)
|
|
1675
1684
|
]),
|
|
1676
|
-
L.value.type === "classic" ? (T(!0), b(
|
|
1685
|
+
L.value.type === "classic" ? (T(!0), b(g, { key: 3 }, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [Y(e) && B.value.dataLabels.show ? (T(), b("path", {
|
|
1677
1686
|
key: 0,
|
|
1678
|
-
d:
|
|
1687
|
+
d: A(X)[t]?.connectorPath || A(ce)(e, {
|
|
1679
1688
|
x: V.value.width / 2,
|
|
1680
1689
|
y: V.value.height / 2
|
|
1681
|
-
}, 16, 16, !1, !1,
|
|
1690
|
+
}, 16, 16, !1, !1, Dr.value, 12, L.value.style.chart.layout.curvedMarkers),
|
|
1682
1691
|
stroke: e.color,
|
|
1683
1692
|
"stroke-width": "1",
|
|
1684
1693
|
"stroke-linecap": "round",
|
|
1685
1694
|
"stroke-linejoin": "round",
|
|
1686
1695
|
fill: "none",
|
|
1687
|
-
filter:
|
|
1688
|
-
}, null, 8,
|
|
1689
|
-
L.value.type === "polar" ? (T(!0), b(
|
|
1696
|
+
filter: ai(t)
|
|
1697
|
+
}, null, 8, ht)) : y("", !0)]))), 256)) : y("", !0),
|
|
1698
|
+
L.value.type === "polar" ? (T(!0), b(g, { key: 4 }, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [Y(e) && B.value.dataLabels.show ? (T(), b("path", {
|
|
1690
1699
|
key: 0,
|
|
1691
|
-
d: `M ${
|
|
1700
|
+
d: `M ${A(n)({
|
|
1692
1701
|
initX: J.value[t].middlePoint.x,
|
|
1693
1702
|
initY: J.value[t].middlePoint.y,
|
|
1694
1703
|
offset: 24,
|
|
1695
1704
|
centerX: V.value.width / 2,
|
|
1696
1705
|
centerY: V.value.height / 2
|
|
1697
|
-
}).x},${
|
|
1706
|
+
}).x},${A(n)({
|
|
1698
1707
|
initX: J.value[t].middlePoint.x,
|
|
1699
1708
|
initY: J.value[t].middlePoint.y,
|
|
1700
1709
|
offset: 24,
|
|
@@ -1706,9 +1715,9 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1706
1715
|
"stroke-linecap": "round",
|
|
1707
1716
|
"stroke-linejoin": "round",
|
|
1708
1717
|
fill: "none",
|
|
1709
|
-
filter:
|
|
1718
|
+
filter: ai(t),
|
|
1710
1719
|
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1711
|
-
}, null, 12,
|
|
1720
|
+
}, null, 12, gt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1712
1721
|
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (T(), b("circle", {
|
|
1713
1722
|
key: 5,
|
|
1714
1723
|
cx: V.value.width / 2,
|
|
@@ -1716,42 +1725,42 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1716
1725
|
r: G.value <= 0 ? 10 : G.value,
|
|
1717
1726
|
fill: L.value.style.chart.backgroundColor,
|
|
1718
1727
|
filter: `url(#shadow_${F.value})`
|
|
1719
|
-
}, null, 8,
|
|
1720
|
-
t.$slots.pattern ? (T(), b("g",
|
|
1728
|
+
}, null, 8, _t)) : y("", !0),
|
|
1729
|
+
t.$slots.pattern ? (T(), b("g", vt, [(T(!0), b(g, null, D(e.dataset, (e, n) => (T(), b("defs", { key: `pattern-${e.patternIndex}` }, [O(t.$slots, "pattern", Ve({ ref_for: !0 }, {
|
|
1721
1730
|
seriesIndex: n,
|
|
1722
1731
|
patternId: `pattern_${F.value}_${n}`
|
|
1723
1732
|
}), void 0, !0)]))), 128))])) : y("", !0),
|
|
1724
|
-
Z.value && L.value.type === "classic" ? (T(), b(
|
|
1725
|
-
(T(!0), b(
|
|
1733
|
+
Z.value && L.value.type === "classic" ? (T(), b(g, { key: 7 }, [
|
|
1734
|
+
(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1726
1735
|
stroke: L.value.style.chart.backgroundColor,
|
|
1727
1736
|
d: e.arcSlice,
|
|
1728
1737
|
fill: "#FFFFFF"
|
|
1729
|
-
}, null, 8,
|
|
1730
|
-
(T(!0), b(
|
|
1738
|
+
}, null, 8, yt))), 256)),
|
|
1739
|
+
(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1731
1740
|
class: "vue-ui-donut-arc-path",
|
|
1732
1741
|
d: e.arcSlice,
|
|
1733
1742
|
fill: e.color,
|
|
1734
1743
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1735
1744
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1736
|
-
filter:
|
|
1737
|
-
}, null, 8,
|
|
1738
|
-
t.$slots.pattern ? (T(), b("g",
|
|
1745
|
+
filter: ai(t)
|
|
1746
|
+
}, null, 8, bt))), 256)),
|
|
1747
|
+
t.$slots.pattern ? (T(), b("g", xt, [(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1739
1748
|
class: "vue-ui-donut-arc-path",
|
|
1740
1749
|
d: e.arcSlice,
|
|
1741
1750
|
fill: `url(#${e.pattern})`,
|
|
1742
1751
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1743
1752
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1744
|
-
filter:
|
|
1745
|
-
}, null, 8,
|
|
1753
|
+
filter: ai(t)
|
|
1754
|
+
}, null, 8, St))), 256))])) : y("", !0)
|
|
1746
1755
|
], 64)) : y("", !0),
|
|
1747
|
-
Z.value && L.value.type === "polar" ? (T(), b(
|
|
1748
|
-
(T(!0), b(
|
|
1756
|
+
Z.value && L.value.type === "polar" ? (T(), b(g, { key: 8 }, [K.value.length > 1 ? (T(), b("g", Ct, [
|
|
1757
|
+
(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1749
1758
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1750
1759
|
d: J.value[t].path,
|
|
1751
1760
|
fill: "#FFFFFF",
|
|
1752
1761
|
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1753
|
-
}, null, 12,
|
|
1754
|
-
L.value.style.chart.layout.donut.useShadow ? (T(), b("g",
|
|
1762
|
+
}, null, 12, wt))), 256)),
|
|
1763
|
+
L.value.style.chart.layout.donut.useShadow ? (T(), b("g", Tt, [(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1755
1764
|
class: "vue-ui-donut-arc-path",
|
|
1756
1765
|
d: J.value[t].path,
|
|
1757
1766
|
fill: "transparent",
|
|
@@ -1759,29 +1768,29 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1759
1768
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1760
1769
|
filter: `url(#drop_shadow_${F.value})`,
|
|
1761
1770
|
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1762
|
-
}, null, 12,
|
|
1763
|
-
t.$slots.pattern ? (T(), b("g",
|
|
1771
|
+
}, null, 12, Et))), 256))])) : y("", !0),
|
|
1772
|
+
t.$slots.pattern ? (T(), b("g", Dt, [(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1764
1773
|
class: "vue-ui-donut-arc-path",
|
|
1765
1774
|
d: J.value[t].path,
|
|
1766
1775
|
fill: `url(#${e.pattern})`,
|
|
1767
1776
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1768
1777
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1769
|
-
filter:
|
|
1778
|
+
filter: ai(t),
|
|
1770
1779
|
style: w({
|
|
1771
1780
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1772
1781
|
transformOrigin: "center"
|
|
1773
1782
|
})
|
|
1774
|
-
}, null, 12,
|
|
1775
|
-
(T(!0), b(
|
|
1783
|
+
}, null, 12, Ot))), 256))])) : y("", !0),
|
|
1784
|
+
(T(!0), b(g, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1776
1785
|
class: "vue-ui-donut-arc-path",
|
|
1777
1786
|
d: J.value[t].path,
|
|
1778
1787
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_${t}_${F.value})` : e.color,
|
|
1779
1788
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1780
1789
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1781
|
-
filter:
|
|
1790
|
+
filter: ai(t),
|
|
1782
1791
|
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1783
|
-
}, null, 12,
|
|
1784
|
-
])) : (T(), b("g",
|
|
1792
|
+
}, null, 12, kt))), 256))
|
|
1793
|
+
])) : (T(), b("g", At, [t.$slots.pattern ? (T(), b("circle", {
|
|
1785
1794
|
key: 0,
|
|
1786
1795
|
cx: V.value.width / 2,
|
|
1787
1796
|
cy: V.value.height / 2,
|
|
@@ -1789,43 +1798,43 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1789
1798
|
fill: `url(#pattern_${F.value}_${K.value[0].patternIndex})`,
|
|
1790
1799
|
stroke: L.value.style.chart.backgroundColor,
|
|
1791
1800
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1792
|
-
}, null, 8,
|
|
1801
|
+
}, null, 8, jt)) : y("", !0), x("circle", {
|
|
1793
1802
|
cx: V.value.width / 2,
|
|
1794
1803
|
cy: V.value.height / 2,
|
|
1795
1804
|
r: G.value,
|
|
1796
1805
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_0_${F.value})` : K.value[0].color,
|
|
1797
1806
|
stroke: L.value.style.chart.backgroundColor,
|
|
1798
1807
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1799
|
-
}, null, 8,
|
|
1808
|
+
}, null, 8, Mt)]))], 64)) : (T(), b(g, { key: 9 }, [L.value.type === "classic" && !Ur.value ? (T(), b("g", Nt, [(T(!0), b(g, null, D(Wr.value, (e, t) => (T(), b("path", {
|
|
1800
1809
|
class: "vue-ui-donut-arc-path",
|
|
1801
1810
|
d: e.arcSlice,
|
|
1802
1811
|
fill: e.color,
|
|
1803
1812
|
stroke: L.value.style.chart.backgroundColor,
|
|
1804
1813
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1805
|
-
}, null, 8,
|
|
1814
|
+
}, null, 8, Pt))), 256))])) : y("", !0), x("circle", {
|
|
1806
1815
|
cx: V.value.width / 2,
|
|
1807
1816
|
cy: V.value.height / 2,
|
|
1808
1817
|
r: G.value <= 0 ? 10 : G.value,
|
|
1809
1818
|
fill: "transparent",
|
|
1810
1819
|
stroke: L.value.style.chart.backgroundColor
|
|
1811
|
-
}, null, 8,
|
|
1820
|
+
}, null, 8, Ft)], 64)),
|
|
1812
1821
|
L.value.style.chart.useGradient && L.value.type === "classic" ? (T(), b("circle", {
|
|
1813
1822
|
key: 10,
|
|
1814
1823
|
cx: V.value.width / 2,
|
|
1815
1824
|
cy: V.value.height / 2,
|
|
1816
1825
|
r: G.value <= 0 ? 10 : G.value,
|
|
1817
1826
|
fill: `url(#gradient_${F.value})`
|
|
1818
|
-
}, null, 8,
|
|
1827
|
+
}, null, 8, It)) : y("", !0),
|
|
1819
1828
|
x("circle", {
|
|
1820
1829
|
ref_key: "circle_hollow",
|
|
1821
|
-
ref:
|
|
1830
|
+
ref: kn,
|
|
1822
1831
|
style: { pointerEvents: "none" },
|
|
1823
1832
|
fill: "none",
|
|
1824
1833
|
cx: V.value.width / 2,
|
|
1825
1834
|
cy: V.value.height / 2,
|
|
1826
|
-
r: Math.max(.1,
|
|
1827
|
-
}, null, 8,
|
|
1828
|
-
Z.value ? (T(), b(
|
|
1835
|
+
r: Math.max(.1, Dr.value * 1.7)
|
|
1836
|
+
}, null, 8, Lt),
|
|
1837
|
+
Z.value ? (T(), b(g, { key: 11 }, [K.value.length > 1 || L.value.type === "classic" ? (T(), b("g", Rt, [(T(!0), b(g, null, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("path", {
|
|
1829
1838
|
d: L.value.type === "classic" ? e.arcSlice : J.value[t].path,
|
|
1830
1839
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1831
1840
|
fill: I.value === t ? L.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
@@ -1835,12 +1844,12 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1835
1844
|
seriesIndex: e.seriesIndex,
|
|
1836
1845
|
show: !0
|
|
1837
1846
|
}),
|
|
1838
|
-
onMouseleave: (t) =>
|
|
1847
|
+
onMouseleave: (t) => ti({
|
|
1839
1848
|
datapoint: e,
|
|
1840
1849
|
seriesIndex: e.seriesIndex
|
|
1841
1850
|
}),
|
|
1842
1851
|
onClick: (n) => $(e, t)
|
|
1843
|
-
}, null, 40,
|
|
1852
|
+
}, null, 40, zt))), 256))])) : (T(), b("g", Bt, [x("circle", {
|
|
1844
1853
|
cx: V.value.width / 2,
|
|
1845
1854
|
cy: V.value.height / 2,
|
|
1846
1855
|
r: G.value,
|
|
@@ -1851,16 +1860,16 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1851
1860
|
seriesIndex: K.value[0].seriesIndex,
|
|
1852
1861
|
show: !0
|
|
1853
1862
|
}),
|
|
1854
|
-
onMouseleave: r[1] ||= (e) =>
|
|
1863
|
+
onMouseleave: r[1] ||= (e) => ti({
|
|
1855
1864
|
datapoint: K.value[0],
|
|
1856
1865
|
seriesIndex: K.value[0].seriesIndex
|
|
1857
1866
|
}),
|
|
1858
1867
|
onClick: r[2] ||= (e) => $(K.value[0], t.i)
|
|
1859
|
-
}, null, 40,
|
|
1868
|
+
}, null, 40, Vt)]))], 64)) : y("", !0),
|
|
1860
1869
|
L.value.type === "classic" ? (T(), b("g", {
|
|
1861
1870
|
key: 12,
|
|
1862
1871
|
ref_key: "G_hollow",
|
|
1863
|
-
ref:
|
|
1872
|
+
ref: On,
|
|
1864
1873
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1865
1874
|
}, [
|
|
1866
1875
|
L.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
|
|
@@ -1871,7 +1880,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1871
1880
|
fill: L.value.style.chart.layout.labels.hollow.total.color,
|
|
1872
1881
|
"font-size": L.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1873
1882
|
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1874
|
-
},
|
|
1883
|
+
}, k(L.value.style.chart.layout.labels.hollow.total.text), 13, Ht)) : y("", !0),
|
|
1875
1884
|
L.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
|
|
1876
1885
|
key: 1,
|
|
1877
1886
|
"text-anchor": "middle",
|
|
@@ -1880,11 +1889,11 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1880
1889
|
fill: L.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1881
1890
|
"font-size": L.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1882
1891
|
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1883
|
-
},
|
|
1892
|
+
}, k(A(m)(L.value.style.chart.layout.labels.hollow.total.value.formatter, Z.value, A(a)({
|
|
1884
1893
|
p: L.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1885
1894
|
v: Z.value,
|
|
1886
1895
|
s: L.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1887
|
-
}))), 13,
|
|
1896
|
+
}))), 13, Ut)) : y("", !0),
|
|
1888
1897
|
L.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
|
|
1889
1898
|
key: 2,
|
|
1890
1899
|
"text-anchor": "middle",
|
|
@@ -1893,7 +1902,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1893
1902
|
fill: L.value.style.chart.layout.labels.hollow.average.color,
|
|
1894
1903
|
"font-size": L.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1895
1904
|
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1896
|
-
},
|
|
1905
|
+
}, k(L.value.style.chart.layout.labels.hollow.average.text), 13, Wt)) : y("", !0),
|
|
1897
1906
|
L.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
|
|
1898
1907
|
key: 3,
|
|
1899
1908
|
"text-anchor": "middle",
|
|
@@ -1902,36 +1911,36 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1902
1911
|
fill: L.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1903
1912
|
"font-size": L.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1904
1913
|
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1905
|
-
},
|
|
1914
|
+
}, k(Ar.value || R.value ? "--" : A(m)(L.value.style.chart.layout.labels.hollow.average.value.formatter, A(ie)(Zr.value), A(a)({
|
|
1906
1915
|
p: L.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1907
|
-
v:
|
|
1916
|
+
v: A(ie)(Zr.value),
|
|
1908
1917
|
s: L.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1909
1918
|
r: L.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1910
|
-
}))), 13,
|
|
1919
|
+
}))), 13, Gt)) : y("", !0)
|
|
1911
1920
|
], 512)) : y("", !0),
|
|
1912
|
-
(T(!0), b(
|
|
1913
|
-
filter:
|
|
1914
|
-
class:
|
|
1921
|
+
(T(!0), b(g, null, D(q.value.filter((e) => !e.ghost), (e, r) => (T(), b("g", {
|
|
1922
|
+
filter: ai(r),
|
|
1923
|
+
class: Ue({ animated: L.value.useCssAnimation }),
|
|
1915
1924
|
key: e.seriesIndex,
|
|
1916
|
-
opacity:
|
|
1917
|
-
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (T(), b("g",
|
|
1918
|
-
x:
|
|
1919
|
-
y:
|
|
1925
|
+
opacity: oi(e)
|
|
1926
|
+
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (T(), b("g", qt, [(T(), b("foreignObject", {
|
|
1927
|
+
x: A(h)(e, !0).anchor === "end" ? A(h)(e).x - 120 : A(h)(e, !0).anchor === "middle" ? A(h)(e).x - 60 : A(h)(e).x,
|
|
1928
|
+
y: A(f)(e) - (fi.value ? 20 : 0),
|
|
1920
1929
|
width: "120",
|
|
1921
1930
|
height: "60",
|
|
1922
1931
|
style: { overflow: "visible" }
|
|
1923
|
-
}, [x("div", null, [O(t.$slots, "dataLabel",
|
|
1932
|
+
}, [x("div", null, [O(t.$slots, "dataLabel", Ve({ ref_for: !0 }, {
|
|
1924
1933
|
datapoint: e,
|
|
1925
1934
|
isBlur: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === r,
|
|
1926
|
-
isSafari:
|
|
1935
|
+
isSafari: fi.value,
|
|
1927
1936
|
isVisible: Y(e) && B.value.dataLabels.show,
|
|
1928
|
-
textAlign:
|
|
1929
|
-
flexAlign:
|
|
1930
|
-
percentage:
|
|
1931
|
-
}), void 0, !0)])], 8,
|
|
1937
|
+
textAlign: A(h)(e, !0, 16, !0).anchor,
|
|
1938
|
+
flexAlign: A(h)(e, !0, 16).anchor,
|
|
1939
|
+
percentage: Jr(e, q.value)
|
|
1940
|
+
}), void 0, !0)])], 8, Jt))])) : (T(), b("g", Yt, [L.value.type === "classic" ? (T(), b(g, { key: 0 }, [Y(e) && B.value.dataLabels.show ? (T(), b("circle", {
|
|
1932
1941
|
key: 0,
|
|
1933
|
-
cx:
|
|
1934
|
-
cy:
|
|
1942
|
+
cx: A(X)[r]?.markerX ?? A(h)(e).x,
|
|
1943
|
+
cy: A(X)[r]?.markerY ?? A(f)(e) - 3.5,
|
|
1935
1944
|
fill: e.color,
|
|
1936
1945
|
stroke: L.value.style.chart.backgroundColor,
|
|
1937
1946
|
"stroke-width": 1,
|
|
@@ -1944,16 +1953,16 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1944
1953
|
seriesIndex: e.seriesIndex,
|
|
1945
1954
|
show: !0
|
|
1946
1955
|
}),
|
|
1947
|
-
onMouseleave: (t) =>
|
|
1956
|
+
onMouseleave: (t) => ti({
|
|
1948
1957
|
datapoint: e,
|
|
1949
1958
|
seriesIndex: e.seriesIndex
|
|
1950
1959
|
})
|
|
1951
|
-
}, null, 40,
|
|
1960
|
+
}, null, 40, Xt)) : y("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine || A(X)[r] ? Qe((T(), b("text", {
|
|
1952
1961
|
key: 1,
|
|
1953
1962
|
class: "vue-data-ui-datalabel-inline",
|
|
1954
|
-
"text-anchor":
|
|
1955
|
-
x:
|
|
1956
|
-
y:
|
|
1963
|
+
"text-anchor": A(X)[r]?.textAnchor || A(h)(e, !0, 12).anchor,
|
|
1964
|
+
x: A(X)[r]?.labelX ?? A(h)(e, !0, 12).x,
|
|
1965
|
+
y: A(X)[r]?.labelY ?? A(f)(e),
|
|
1957
1966
|
onClick: (t) => $(e, r),
|
|
1958
1967
|
onMouseenter: (t) => Q({
|
|
1959
1968
|
datapoint: e,
|
|
@@ -1961,18 +1970,18 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1961
1970
|
seriesIndex: e.seriesIndex,
|
|
1962
1971
|
show: !0
|
|
1963
1972
|
}),
|
|
1964
|
-
onMouseleave: (t) =>
|
|
1973
|
+
onMouseleave: (t) => ti({
|
|
1965
1974
|
datapoint: e,
|
|
1966
1975
|
seriesIndex: e.seriesIndex
|
|
1967
1976
|
}),
|
|
1968
|
-
innerHTML:
|
|
1969
|
-
}, null, 40,
|
|
1977
|
+
innerHTML: ri(e, r, !!A(X)[r])
|
|
1978
|
+
}, null, 40, Zt)), [[Xe, Y(e) && B.value.dataLabels.show]]) : (T(), b(g, { key: 2 }, [Qe(x("text", {
|
|
1970
1979
|
class: "vue-data-ui-datalabel-value",
|
|
1971
|
-
"text-anchor":
|
|
1972
|
-
x:
|
|
1973
|
-
y:
|
|
1980
|
+
"text-anchor": A(X)[r]?.textAnchor || A(h)(e, !0, 12).anchor,
|
|
1981
|
+
x: A(X)[r]?.labelX ?? A(h)(e, !0, 12).x,
|
|
1982
|
+
y: A(X)[r]?.labelY ?? A(f)(e),
|
|
1974
1983
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
1975
|
-
"font-size":
|
|
1984
|
+
"font-size": Jn.value + "px",
|
|
1976
1985
|
style: w(`font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1977
1986
|
onClick: (t) => $(e, r),
|
|
1978
1987
|
onMouseenter: (t) => Q({
|
|
@@ -1981,15 +1990,15 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
1981
1990
|
seriesIndex: e.seriesIndex,
|
|
1982
1991
|
show: !0
|
|
1983
1992
|
}),
|
|
1984
|
-
onMouseleave: (t) =>
|
|
1993
|
+
onMouseleave: (t) => ti({
|
|
1985
1994
|
datapoint: e,
|
|
1986
1995
|
seriesIndex: e.seriesIndex
|
|
1987
1996
|
})
|
|
1988
|
-
},
|
|
1997
|
+
}, k(hi(e)), 45, Qt), [[Xe, Y(e) && B.value.dataLabels.show]]), Qe(x("text", {
|
|
1989
1998
|
class: "vue-data-ui-datalabel-name",
|
|
1990
|
-
"text-anchor":
|
|
1991
|
-
x:
|
|
1992
|
-
y: (
|
|
1999
|
+
"text-anchor": A(X)[r]?.textAnchor || A(h)(e).anchor,
|
|
2000
|
+
x: A(X)[r]?.labelX ?? A(h)(e, !0, 12).x,
|
|
2001
|
+
y: (A(X)[r]?.labelY ?? A(f)(e)) + P.value * 1.2,
|
|
1993
2002
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
1994
2003
|
"font-size": P.value + "px",
|
|
1995
2004
|
style: w(`font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
@@ -2000,27 +2009,27 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2000
2009
|
seriesIndex: e.seriesIndex,
|
|
2001
2010
|
show: !0
|
|
2002
2011
|
}),
|
|
2003
|
-
onMouseleave: (t) =>
|
|
2012
|
+
onMouseleave: (t) => ti({
|
|
2004
2013
|
datapoint: e,
|
|
2005
2014
|
seriesIndex: e.seriesIndex
|
|
2006
2015
|
}),
|
|
2007
|
-
innerHTML:
|
|
2016
|
+
innerHTML: A(te)({
|
|
2008
2017
|
content: e.name,
|
|
2009
2018
|
fontSize: P.value,
|
|
2010
2019
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
2011
|
-
x:
|
|
2012
|
-
y: (
|
|
2020
|
+
x: A(X)[r]?.labelX ?? A(h)(e, !0, 12).x,
|
|
2021
|
+
y: (A(X)[r]?.labelY ?? A(f)(e)) + P.value
|
|
2013
2022
|
})
|
|
2014
|
-
}, null, 44,
|
|
2023
|
+
}, null, 44, $t), [[Xe, Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show]])], 64))], 64)) : y("", !0), L.value.type === "polar" ? (T(), b(g, { key: 1 }, [Y(e) && B.value.dataLabels.show ? (T(), b("circle", {
|
|
2015
2024
|
key: 0,
|
|
2016
|
-
cx:
|
|
2025
|
+
cx: A(n)({
|
|
2017
2026
|
initX: J.value[r].middlePoint.x,
|
|
2018
2027
|
initY: J.value[r].middlePoint.y,
|
|
2019
2028
|
offset: 24,
|
|
2020
2029
|
centerX: V.value.width / 2,
|
|
2021
2030
|
centerY: V.value.height / 2
|
|
2022
2031
|
}).x,
|
|
2023
|
-
cy:
|
|
2032
|
+
cy: A(n)({
|
|
2024
2033
|
initX: J.value[r].middlePoint.x,
|
|
2025
2034
|
initY: J.value[r].middlePoint.y,
|
|
2026
2035
|
offset: 24,
|
|
@@ -2039,23 +2048,23 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2039
2048
|
seriesIndex: e.seriesIndex,
|
|
2040
2049
|
show: !0
|
|
2041
2050
|
}),
|
|
2042
|
-
onMouseleave: (t) =>
|
|
2051
|
+
onMouseleave: (t) => ti({
|
|
2043
2052
|
datapoint: e,
|
|
2044
2053
|
seriesIndex: e.seriesIndex
|
|
2045
2054
|
}),
|
|
2046
2055
|
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
2047
|
-
}, null, 44,
|
|
2056
|
+
}, null, 44, en)) : y("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine ? Qe((T(), b("text", {
|
|
2048
2057
|
key: 1,
|
|
2049
2058
|
class: "vue-data-ui-datalabel-inline",
|
|
2050
|
-
"text-anchor":
|
|
2051
|
-
x:
|
|
2059
|
+
"text-anchor": Gr(J.value[r].middlePoint),
|
|
2060
|
+
x: A(n)({
|
|
2052
2061
|
initX: J.value[r].middlePoint.x,
|
|
2053
2062
|
initY: J.value[r].middlePoint.y,
|
|
2054
2063
|
offset: 42,
|
|
2055
2064
|
centerX: V.value.width / 2,
|
|
2056
2065
|
centerY: V.value.height / 2
|
|
2057
2066
|
}).x,
|
|
2058
|
-
y:
|
|
2067
|
+
y: A(n)({
|
|
2059
2068
|
initX: J.value[r].middlePoint.x,
|
|
2060
2069
|
initY: J.value[r].middlePoint.y,
|
|
2061
2070
|
offset: 42,
|
|
@@ -2070,23 +2079,23 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2070
2079
|
seriesIndex: e.seriesIndex,
|
|
2071
2080
|
show: !0
|
|
2072
2081
|
}),
|
|
2073
|
-
onMouseleave: (t) =>
|
|
2082
|
+
onMouseleave: (t) => ti({
|
|
2074
2083
|
datapoint: e,
|
|
2075
2084
|
seriesIndex: e.seriesIndex
|
|
2076
2085
|
}),
|
|
2077
|
-
innerHTML:
|
|
2078
|
-
}, null, 44,
|
|
2086
|
+
innerHTML: ii(e, r)
|
|
2087
|
+
}, null, 44, tn)), [[Xe, Y(e) && B.value.dataLabels.show]]) : (T(), b(g, { key: 2 }, [Y(e) && B.value.dataLabels.show ? (T(), b("text", {
|
|
2079
2088
|
key: 0,
|
|
2080
2089
|
class: "vue-data-ui-datalabel-value",
|
|
2081
|
-
"text-anchor":
|
|
2082
|
-
x:
|
|
2090
|
+
"text-anchor": Gr(J.value[r].middlePoint),
|
|
2091
|
+
x: A(n)({
|
|
2083
2092
|
initX: J.value[r].middlePoint.x,
|
|
2084
2093
|
initY: J.value[r].middlePoint.y,
|
|
2085
2094
|
offset: 42,
|
|
2086
2095
|
centerX: V.value.width / 2,
|
|
2087
2096
|
centerY: V.value.height / 2
|
|
2088
2097
|
}).x,
|
|
2089
|
-
y:
|
|
2098
|
+
y: A(n)({
|
|
2090
2099
|
initX: J.value[r].middlePoint.x,
|
|
2091
2100
|
initY: J.value[r].middlePoint.y,
|
|
2092
2101
|
offset: 42,
|
|
@@ -2094,7 +2103,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2094
2103
|
centerY: V.value.height / 2
|
|
2095
2104
|
}).y,
|
|
2096
2105
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2097
|
-
"font-size":
|
|
2106
|
+
"font-size": Jn.value,
|
|
2098
2107
|
style: w({
|
|
2099
2108
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2100
2109
|
fontWeight: L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
@@ -2106,22 +2115,22 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2106
2115
|
seriesIndex: e.seriesIndex,
|
|
2107
2116
|
show: !0
|
|
2108
2117
|
}),
|
|
2109
|
-
onMouseleave: (t) =>
|
|
2118
|
+
onMouseleave: (t) => ti({
|
|
2110
2119
|
datapoint: e,
|
|
2111
2120
|
seriesIndex: e.seriesIndex
|
|
2112
2121
|
})
|
|
2113
|
-
},
|
|
2122
|
+
}, k(hi(e)), 45, nn)) : y("", !0), Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show ? (T(), b("text", {
|
|
2114
2123
|
key: 1,
|
|
2115
2124
|
class: "vue-data-ui-datalabel-name",
|
|
2116
|
-
"text-anchor":
|
|
2117
|
-
x:
|
|
2125
|
+
"text-anchor": Gr(J.value[r].middlePoint),
|
|
2126
|
+
x: A(n)({
|
|
2118
2127
|
initX: J.value[r].middlePoint.x,
|
|
2119
2128
|
initY: J.value[r].middlePoint.y,
|
|
2120
2129
|
offset: 42,
|
|
2121
2130
|
centerX: V.value.width / 2,
|
|
2122
2131
|
centerY: V.value.height / 2
|
|
2123
2132
|
}).x,
|
|
2124
|
-
y:
|
|
2133
|
+
y: A(n)({
|
|
2125
2134
|
initX: J.value[r].middlePoint.x,
|
|
2126
2135
|
initY: J.value[r].middlePoint.y,
|
|
2127
2136
|
offset: 42,
|
|
@@ -2141,22 +2150,22 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2141
2150
|
seriesIndex: e.seriesIndex,
|
|
2142
2151
|
show: !0
|
|
2143
2152
|
}),
|
|
2144
|
-
onMouseleave: (t) =>
|
|
2153
|
+
onMouseleave: (t) => ti({
|
|
2145
2154
|
datapoint: e,
|
|
2146
2155
|
seriesIndex: e.seriesIndex
|
|
2147
2156
|
}),
|
|
2148
|
-
innerHTML:
|
|
2157
|
+
innerHTML: A(te)({
|
|
2149
2158
|
content: e.name,
|
|
2150
2159
|
fontSize: P.value,
|
|
2151
2160
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
2152
|
-
x:
|
|
2161
|
+
x: A(n)({
|
|
2153
2162
|
initX: J.value[r].middlePoint.x,
|
|
2154
2163
|
initY: J.value[r].middlePoint.y,
|
|
2155
2164
|
offset: 42,
|
|
2156
2165
|
centerX: V.value.width / 2,
|
|
2157
2166
|
centerY: V.value.height / 2
|
|
2158
2167
|
}).x,
|
|
2159
|
-
y:
|
|
2168
|
+
y: A(n)({
|
|
2160
2169
|
initX: J.value[r].middlePoint.x,
|
|
2161
2170
|
initY: J.value[r].middlePoint.y,
|
|
2162
2171
|
offset: 42,
|
|
@@ -2164,10 +2173,10 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2164
2173
|
centerY: V.value.height / 2
|
|
2165
2174
|
}).y + P.value * 1.2
|
|
2166
2175
|
})
|
|
2167
|
-
}, null, 44,
|
|
2176
|
+
}, null, 44, rn)) : y("", !0)], 64))], 64)) : y("", !0)])), B.value.dataLabels.show && L.value.style.chart.comments.show && e.comment ? (T(), b("g", an, [Y(e) && L.value.type === "classic" ? (T(), b("foreignObject", {
|
|
2168
2177
|
key: 0,
|
|
2169
|
-
x: L.value.style.chart.comments.offsetX + (
|
|
2170
|
-
y:
|
|
2178
|
+
x: L.value.style.chart.comments.offsetX + (A(h)(e, !0).anchor === "end" ? A(h)(e).x - L.value.style.chart.comments.width : A(h)(e, !0).anchor === "middle" ? A(h)(e).x - L.value.style.chart.comments.width / 2 : A(h)(e).x),
|
|
2179
|
+
y: A(f)(e) + 24 + L.value.style.chart.comments.offsetY,
|
|
2171
2180
|
width: L.value.style.chart.comments.width,
|
|
2172
2181
|
height: "200",
|
|
2173
2182
|
style: {
|
|
@@ -2176,31 +2185,31 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2176
2185
|
}
|
|
2177
2186
|
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2178
2187
|
...e,
|
|
2179
|
-
textAlign:
|
|
2180
|
-
flexAlign:
|
|
2188
|
+
textAlign: A(h)(e, !0, 16, !0).anchor,
|
|
2189
|
+
flexAlign: A(h)(e, !0, 16).anchor,
|
|
2181
2190
|
isFirstLoad: R.value
|
|
2182
|
-
} }, void 0, !0)])], 8,
|
|
2191
|
+
} }, void 0, !0)])], 8, on)) : y("", !0), Y(e) && L.value.type === "polar" ? (T(), b("foreignObject", {
|
|
2183
2192
|
key: 1,
|
|
2184
|
-
x: L.value.style.chart.comments.offsetX + (
|
|
2193
|
+
x: L.value.style.chart.comments.offsetX + (Gr(J.value[r].middlePoint) === "end" ? A(n)({
|
|
2185
2194
|
initX: J.value[r].middlePoint.x,
|
|
2186
2195
|
initY: J.value[r].middlePoint.y,
|
|
2187
2196
|
offset: 42,
|
|
2188
2197
|
centerX: V.value.width / 2,
|
|
2189
2198
|
centerY: V.value.height / 2
|
|
2190
|
-
}).x - L.value.style.chart.comments.width :
|
|
2199
|
+
}).x - L.value.style.chart.comments.width : Gr(J.value[r].middlePoint) === "middle" ? A(n)({
|
|
2191
2200
|
initX: J.value[r].middlePoint.x,
|
|
2192
2201
|
initY: J.value[r].middlePoint.y,
|
|
2193
2202
|
offset: 42,
|
|
2194
2203
|
centerX: V.value.width / 2,
|
|
2195
2204
|
centerY: V.value.height / 2
|
|
2196
|
-
}).x - L.value.style.chart.comments.width / 2 :
|
|
2205
|
+
}).x - L.value.style.chart.comments.width / 2 : A(n)({
|
|
2197
2206
|
initX: J.value[r].middlePoint.x,
|
|
2198
2207
|
initY: J.value[r].middlePoint.y,
|
|
2199
2208
|
offset: 42,
|
|
2200
2209
|
centerX: V.value.width / 2,
|
|
2201
2210
|
centerY: V.value.height / 2
|
|
2202
2211
|
}).x),
|
|
2203
|
-
y:
|
|
2212
|
+
y: Kr(J.value[r]) + L.value.style.chart.comments.offsetY,
|
|
2204
2213
|
width: L.value.style.chart.comments.width,
|
|
2205
2214
|
height: "200",
|
|
2206
2215
|
style: w({
|
|
@@ -2210,47 +2219,47 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2210
2219
|
})
|
|
2211
2220
|
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2212
2221
|
...e,
|
|
2213
|
-
textAlign:
|
|
2214
|
-
flexAlign:
|
|
2222
|
+
textAlign: Gr(J.value[r].middlePoint),
|
|
2223
|
+
flexAlign: Gr(J.value[r].middlePoint),
|
|
2215
2224
|
isFirstLoad: R.value
|
|
2216
|
-
} }, void 0, !0)])], 12,
|
|
2225
|
+
} }, void 0, !0)])], 12, sn)) : y("", !0)])) : y("", !0)], 10, Kt))), 128)),
|
|
2217
2226
|
O(t.$slots, "svg", { svg: {
|
|
2218
2227
|
...V.value,
|
|
2219
2228
|
datapoints: K.value,
|
|
2220
|
-
isPrintingImg:
|
|
2221
|
-
isPrintingSvg:
|
|
2229
|
+
isPrintingImg: A(xr) || A(Sr) || Hn.value,
|
|
2230
|
+
isPrintingSvg: Un.value
|
|
2222
2231
|
} }, void 0, !0)
|
|
2223
|
-
], 512)], 46, at)), t.$slots.hint ? (T(), b("div",
|
|
2232
|
+
], 512)], 46, at)), t.$slots.hint ? (T(), b("div", cn, [O(t.$slots, "hint", C(S({
|
|
2224
2233
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
2225
|
-
isVisible:
|
|
2234
|
+
isVisible: qn.value
|
|
2226
2235
|
})), void 0, !0)])) : y("", !0)]),
|
|
2227
|
-
t.$slots.watermark ? (T(), b("div",
|
|
2228
|
-
x("div", { id: `legend-bottom-${F.value}` }, null, 8,
|
|
2229
|
-
|
|
2236
|
+
t.$slots.watermark ? (T(), b("div", ln, [O(t.$slots, "watermark", C(S({ isPrinting: A(xr) || A(Sr) || Hn.value || Un.value })), void 0, !0)])) : y("", !0),
|
|
2237
|
+
x("div", { id: `legend-bottom-${F.value}` }, null, 8, un),
|
|
2238
|
+
zn.value && (L.value.style.chart.legend.show || t.$slots.legend) ? (T(), v(Ie, {
|
|
2230
2239
|
key: 6,
|
|
2231
2240
|
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2232
2241
|
}, [x("div", {
|
|
2233
2242
|
ref_key: "chartLegend",
|
|
2234
|
-
ref:
|
|
2235
|
-
}, [O(t.$slots, "legend", { legend:
|
|
2236
|
-
key: `legend_${
|
|
2237
|
-
legendSet:
|
|
2238
|
-
config:
|
|
2239
|
-
onClickMarker: r[3] ||= ({ i: e }) =>
|
|
2240
|
-
isCursorPointer:
|
|
2241
|
-
},
|
|
2242
|
-
item:
|
|
2243
|
+
ref: jn
|
|
2244
|
+
}, [O(t.$slots, "legend", { legend: Vr.value }, () => [L.value.style.chart.legend.show ? (T(), v(Fe, {
|
|
2245
|
+
key: `legend_${Rn.value}`,
|
|
2246
|
+
legendSet: Vr.value,
|
|
2247
|
+
config: Hr.value,
|
|
2248
|
+
onClickMarker: r[3] ||= ({ i: e }) => Fr(e),
|
|
2249
|
+
isCursorPointer: ar.value
|
|
2250
|
+
}, Le({
|
|
2251
|
+
item: j(({ legend: e, index: t }) => [x("div", {
|
|
2243
2252
|
style: w(`opacity:${W.value.includes(t) ? .5 : 1}`),
|
|
2244
2253
|
onClick: (t) => e.segregate()
|
|
2245
|
-
},
|
|
2246
|
-
legendToggle:
|
|
2254
|
+
}, k(e.display), 13, dn)]),
|
|
2255
|
+
legendToggle: j(() => [Vr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !A(sr) ? (T(), v(Oe, {
|
|
2247
2256
|
key: 0,
|
|
2248
2257
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2249
2258
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
2250
2259
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
2251
2260
|
checked: W.value.length > 0,
|
|
2252
|
-
isCursorPointer:
|
|
2253
|
-
onToggle:
|
|
2261
|
+
isCursorPointer: ar.value,
|
|
2262
|
+
onToggle: Pr
|
|
2254
2263
|
}, null, 8, [
|
|
2255
2264
|
"backgroundColor",
|
|
2256
2265
|
"color",
|
|
@@ -2261,7 +2270,7 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2261
2270
|
_: 2
|
|
2262
2271
|
}, [t.$slots.pattern ? {
|
|
2263
2272
|
name: "legend-pattern",
|
|
2264
|
-
fn:
|
|
2273
|
+
fn: j(({ legend: e, index: t }) => [ze(Ce, {
|
|
2265
2274
|
shape: e.shape,
|
|
2266
2275
|
radius: 30,
|
|
2267
2276
|
stroke: "none",
|
|
@@ -2280,18 +2289,18 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2280
2289
|
t.$slots.source ? (T(), b("div", {
|
|
2281
2290
|
key: 7,
|
|
2282
2291
|
ref_key: "source",
|
|
2283
|
-
ref:
|
|
2292
|
+
ref: Pn,
|
|
2284
2293
|
dir: "auto"
|
|
2285
2294
|
}, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2286
|
-
t.$slots.hollow ? (T(), b("div",
|
|
2295
|
+
t.$slots.hollow ? (T(), b("div", fn, [O(t.$slots, "hollow", C(S({
|
|
2287
2296
|
total: Z.value,
|
|
2288
|
-
average:
|
|
2297
|
+
average: Zr.value,
|
|
2289
2298
|
dataset: H.value,
|
|
2290
2299
|
...V.value
|
|
2291
2300
|
})), void 0, !0)])) : y("", !0),
|
|
2292
|
-
|
|
2301
|
+
ze(A(mn), {
|
|
2293
2302
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
2294
|
-
show: B.value.showTooltip &&
|
|
2303
|
+
show: B.value.showTooltip && tr.value,
|
|
2295
2304
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
2296
2305
|
color: L.value.style.chart.tooltip.color,
|
|
2297
2306
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -2302,20 +2311,20 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2302
2311
|
position: L.value.style.chart.tooltip.position,
|
|
2303
2312
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
2304
2313
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
2305
|
-
parent:
|
|
2306
|
-
content:
|
|
2307
|
-
isCustom:
|
|
2308
|
-
isFullscreen:
|
|
2314
|
+
parent: N.value,
|
|
2315
|
+
content: nr.value,
|
|
2316
|
+
isCustom: ei.value,
|
|
2317
|
+
isFullscreen: ui.value,
|
|
2309
2318
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
2310
2319
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
2311
2320
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
2312
2321
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThrehsold,
|
|
2313
|
-
isA11yMode:
|
|
2314
|
-
a11yPosition:
|
|
2322
|
+
isA11yMode: Kn.value === "keyboard",
|
|
2323
|
+
a11yPosition: Gn.value
|
|
2315
2324
|
}, {
|
|
2316
|
-
"tooltip-before":
|
|
2317
|
-
tooltip:
|
|
2318
|
-
"tooltip-after":
|
|
2325
|
+
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(S({ ...$r.value })), void 0, !0)]),
|
|
2326
|
+
tooltip: j(() => [O(t.$slots, "tooltip", C(S({ ...$r.value })), void 0, !0)]),
|
|
2327
|
+
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(S({ ...$r.value })), void 0, !0)]),
|
|
2319
2328
|
_: 3
|
|
2320
2329
|
}, 8, [
|
|
2321
2330
|
"teleportTo",
|
|
@@ -2341,34 +2350,34 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2341
2350
|
"isA11yMode",
|
|
2342
2351
|
"a11yPosition"
|
|
2343
2352
|
]),
|
|
2344
|
-
|
|
2353
|
+
En.value && L.value.userOptions.buttons.table ? (T(), v(Ke(Ci.value.component), Ve({ key: 9 }, Ci.value.props, {
|
|
2345
2354
|
ref_key: "tableUnit",
|
|
2346
|
-
ref:
|
|
2347
|
-
onClose:
|
|
2348
|
-
}),
|
|
2349
|
-
content:
|
|
2350
|
-
key: `table_${
|
|
2351
|
-
colNames:
|
|
2352
|
-
head:
|
|
2353
|
-
body:
|
|
2354
|
-
config:
|
|
2355
|
-
title: L.value.table.useDialog ? "" :
|
|
2355
|
+
ref: Bn,
|
|
2356
|
+
onClose: wi
|
|
2357
|
+
}), Le({
|
|
2358
|
+
content: j(() => [(T(), v(A(_n), {
|
|
2359
|
+
key: `table_${Ln.value}`,
|
|
2360
|
+
colNames: li.value.colNames,
|
|
2361
|
+
head: li.value.head,
|
|
2362
|
+
body: li.value.body,
|
|
2363
|
+
config: li.value.config,
|
|
2364
|
+
title: L.value.table.useDialog ? "" : Ci.value.title,
|
|
2356
2365
|
withCloseButton: !L.value.table.useDialog,
|
|
2357
|
-
isCursorPointer:
|
|
2358
|
-
onClose:
|
|
2366
|
+
isCursorPointer: ar.value,
|
|
2367
|
+
onClose: wi
|
|
2359
2368
|
}, {
|
|
2360
|
-
th:
|
|
2369
|
+
th: j(({ th: e }) => [x("div", {
|
|
2361
2370
|
innerHTML: e,
|
|
2362
2371
|
style: {
|
|
2363
2372
|
display: "flex",
|
|
2364
2373
|
"align-items": "center"
|
|
2365
2374
|
}
|
|
2366
|
-
}, null, 8,
|
|
2367
|
-
td:
|
|
2375
|
+
}, null, 8, pn)]),
|
|
2376
|
+
td: j(({ td: e }) => [Re(k(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : A(m)(L.value.style.chart.layout.labels.percentage.formatter, e, A(a)({
|
|
2368
2377
|
v: e,
|
|
2369
2378
|
s: "%",
|
|
2370
2379
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
2371
|
-
})) :
|
|
2380
|
+
})) : A(m)(L.value.style.chart.layout.labels.value.formatter, e, A(a)({
|
|
2372
2381
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
2373
2382
|
v: e,
|
|
2374
2383
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -2387,24 +2396,24 @@ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt
|
|
|
2387
2396
|
_: 2
|
|
2388
2397
|
}, [L.value.table.useDialog ? {
|
|
2389
2398
|
name: "title",
|
|
2390
|
-
fn:
|
|
2399
|
+
fn: j(() => [Re(k(Ci.value.title), 1)]),
|
|
2391
2400
|
key: "0"
|
|
2392
2401
|
} : void 0, L.value.table.useDialog ? {
|
|
2393
2402
|
name: "actions",
|
|
2394
|
-
fn:
|
|
2403
|
+
fn: j(() => [x("button", {
|
|
2395
2404
|
tabindex: "0",
|
|
2396
2405
|
class: "vue-ui-user-options-button",
|
|
2397
|
-
onClick: r[4] ||= (e) =>
|
|
2398
|
-
style: w({ cursor:
|
|
2399
|
-
}, [
|
|
2406
|
+
onClick: r[4] ||= (e) => ci(L.value.userOptions.callbacks.csv),
|
|
2407
|
+
style: w({ cursor: ar.value ? "pointer" : "default" })
|
|
2408
|
+
}, [ze(A(hn), {
|
|
2400
2409
|
name: "fileCsv",
|
|
2401
|
-
stroke:
|
|
2410
|
+
stroke: Ci.value.props.color
|
|
2402
2411
|
}, null, 8, ["stroke"])], 4)]),
|
|
2403
2412
|
key: "1"
|
|
2404
2413
|
} : void 0]), 1040)) : y("", !0),
|
|
2405
|
-
O(t.$slots, "skeleton", {}, () => [
|
|
2414
|
+
O(t.$slots, "skeleton", {}, () => [A(sr) ? (T(), v(_e, { key: 0 })) : y("", !0)], !0)
|
|
2406
2415
|
], 46, tt));
|
|
2407
2416
|
}
|
|
2408
|
-
}, [["__scopeId", "data-v-
|
|
2417
|
+
}, [["__scopeId", "data-v-66aefdf9"]]);
|
|
2409
2418
|
//#endregion
|
|
2410
|
-
export { et as n,
|
|
2419
|
+
export { et as n, mn as t };
|