vue-data-ui 3.25.5 → 3.25.6
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-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.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/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -0,0 +1,1252 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, Ct as n, D as r, G as i, Lt as a, Pt as o, S as ee, Ut as te, Vt as ne, Wt as re, X as s, Yt as ie, Zt as ae, b as oe, ht as se, i as ce, lt as le, nt as ue, q as de, t as fe, w as pe } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ge } from "./useConfig-CIQZ6_r7.js";
|
|
5
|
+
import { t as _e } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as be } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Se } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as Ce } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as we } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as Te } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as Ee } from "./Shape-CIqU-p2F.js";
|
|
14
|
+
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Ae } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as je } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
18
|
+
import { t as Me } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Fe } from "./labelUtils-BXX2NzRe.js";
|
|
22
|
+
import { t as Ie } from "./Legend-X4kF4PvW.js";
|
|
23
|
+
import { t as Le } from "./vue_ui_rings-BVgD2aMn.js";
|
|
24
|
+
import { Fragment as Re, Teleport as ze, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ue, nextTick as We, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ge, onMounted as Ke, openBlock as v, ref as y, renderList as qe, renderSlot as b, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as Xe, toRefs as Ze, unref as x, useSlots as Qe, watch as $e, withCtx as S } from "vue";
|
|
25
|
+
//#region src/components/vue-ui-rings.vue
|
|
26
|
+
var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
|
|
27
|
+
"xmlns",
|
|
28
|
+
"viewBox",
|
|
29
|
+
"aria-describedby"
|
|
30
|
+
], ot = ["width", "height"], st = { key: 1 }, ct = [
|
|
31
|
+
"stroke",
|
|
32
|
+
"cx",
|
|
33
|
+
"cy",
|
|
34
|
+
"r",
|
|
35
|
+
"fill"
|
|
36
|
+
], lt = [
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width",
|
|
39
|
+
"cx",
|
|
40
|
+
"cy",
|
|
41
|
+
"r",
|
|
42
|
+
"fill"
|
|
43
|
+
], ut = [
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width",
|
|
46
|
+
"cx",
|
|
47
|
+
"cy",
|
|
48
|
+
"r",
|
|
49
|
+
"fill"
|
|
50
|
+
], dt = [
|
|
51
|
+
"cx",
|
|
52
|
+
"cy",
|
|
53
|
+
"r",
|
|
54
|
+
"onMouseenter",
|
|
55
|
+
"onMouseleave",
|
|
56
|
+
"onClick"
|
|
57
|
+
], ft = [
|
|
58
|
+
"x",
|
|
59
|
+
"y",
|
|
60
|
+
"width",
|
|
61
|
+
"height",
|
|
62
|
+
"fill",
|
|
63
|
+
"rx"
|
|
64
|
+
], pt = [
|
|
65
|
+
"cx",
|
|
66
|
+
"cy",
|
|
67
|
+
"r",
|
|
68
|
+
"fill",
|
|
69
|
+
"stroke"
|
|
70
|
+
], mt = [
|
|
71
|
+
"text-anchor",
|
|
72
|
+
"font-size",
|
|
73
|
+
"fill",
|
|
74
|
+
"font-weight",
|
|
75
|
+
"transform",
|
|
76
|
+
"onMouseenter",
|
|
77
|
+
"onMouseleave",
|
|
78
|
+
"onClick",
|
|
79
|
+
"innerHTML"
|
|
80
|
+
], ht = {
|
|
81
|
+
key: 0,
|
|
82
|
+
style: {
|
|
83
|
+
position: "absolute",
|
|
84
|
+
top: "100%",
|
|
85
|
+
left: "0",
|
|
86
|
+
width: "100%"
|
|
87
|
+
},
|
|
88
|
+
"data-dom-to-png-ignore": "",
|
|
89
|
+
"aria-hidden": "true"
|
|
90
|
+
}, gt = {
|
|
91
|
+
key: 5,
|
|
92
|
+
class: "vue-data-ui-watermark"
|
|
93
|
+
}, _t = ["id"], vt = ["onClick"], yt = { key: 0 }, bt = { key: 1 }, xt = /*#__PURE__*/ De({
|
|
94
|
+
__name: "vue-ui-rings",
|
|
95
|
+
props: {
|
|
96
|
+
config: {
|
|
97
|
+
type: Object,
|
|
98
|
+
default() {
|
|
99
|
+
return {};
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
dataset: {
|
|
103
|
+
type: Array,
|
|
104
|
+
default() {
|
|
105
|
+
return [];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
emits: ["selectLegend", "copyAlt"],
|
|
110
|
+
setup(e, { expose: De, emit: et }) {
|
|
111
|
+
let xt = p(() => import("./Tooltip-hhrkQ3Lk.js")), St = p(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Ct = p(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), wt = p(() => import("./DataTable-oiM9uWrQ.js")), Tt = p(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Et = p(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Dt = p(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), Ot = p(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_rings: kt } = ge(), { isThemeValid: At, warnInvalidTheme: jt } = xe(), Mt = Qe(), C = e, w = y(!1), Nt = c(() => !!C.dataset && C.dataset.length), T = y(de()), E = y(!1), Pt = y(""), D = y(null), Ft = y(0), O = y(null), It = y(null), Lt = y(null), Rt = y(null), zt = y(null), Bt = y(0), Vt = y(0), Ht = y(0), Ut = y(!1), Wt = y(!1), Gt = y(null), Kt = y(null), k = y(null), qt = y({
|
|
112
|
+
x: 0,
|
|
113
|
+
y: 0
|
|
114
|
+
}), Jt = y("pointer"), Yt = y(!1), A = y(nn()), j = c(() => A.value.userOptions), M = c(() => A.value.style.chart.layout.rings), N = c(() => A.value.style.chart.layout.labels), P = c(() => A.value.style.chart.tooltip), F = c(() => A.value.style.chart);
|
|
115
|
+
me({
|
|
116
|
+
config: () => A.value,
|
|
117
|
+
dataset: () => C.dataset,
|
|
118
|
+
component: "VueUiRings",
|
|
119
|
+
rules: [
|
|
120
|
+
he.singleSeries,
|
|
121
|
+
he.emptyArray,
|
|
122
|
+
{
|
|
123
|
+
test: (e) => e.length > 6,
|
|
124
|
+
message: [
|
|
125
|
+
"👀 The number of series is > 6. Consider:",
|
|
126
|
+
"",
|
|
127
|
+
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
128
|
+
"",
|
|
129
|
+
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
130
|
+
"",
|
|
131
|
+
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
let { transitionEnabled: I } = Ce({
|
|
137
|
+
config: () => A.value.transitions,
|
|
138
|
+
dataset: () => C.dataset
|
|
139
|
+
}), L = c(() => A.value.userOptions.useCursorPointer), Xt = c(() => ae({
|
|
140
|
+
defaultConfig: {
|
|
141
|
+
userOptions: { show: !1 },
|
|
142
|
+
table: { show: !1 },
|
|
143
|
+
style: { chart: {
|
|
144
|
+
backgroundColor: "#99999930",
|
|
145
|
+
layout: {
|
|
146
|
+
rings: {
|
|
147
|
+
stroke: "#6A6A6A",
|
|
148
|
+
gradient: { underlayerColor: "#FFFFFF" }
|
|
149
|
+
},
|
|
150
|
+
labels: { dataLabels: { show: !1 } }
|
|
151
|
+
},
|
|
152
|
+
legend: { backgroundColor: "transparent" }
|
|
153
|
+
} }
|
|
154
|
+
},
|
|
155
|
+
userConfig: A.value.skeletonConfig ?? {}
|
|
156
|
+
})), { loading: R, FINAL_DATASET: Zt, manualLoading: Qt } = ve({
|
|
157
|
+
...Ze(C),
|
|
158
|
+
FINAL_CONFIG: A,
|
|
159
|
+
prepareConfig: nn,
|
|
160
|
+
skeletonDataset: C.config?.skeletonDataset ?? [
|
|
161
|
+
{
|
|
162
|
+
name: "_",
|
|
163
|
+
values: [13],
|
|
164
|
+
color: "#808080"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: "_",
|
|
168
|
+
values: [8],
|
|
169
|
+
color: "#969696"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "_",
|
|
173
|
+
values: [5],
|
|
174
|
+
color: "#ADADAD"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "_",
|
|
178
|
+
values: [3],
|
|
179
|
+
color: "#C4C4C4"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "_",
|
|
183
|
+
values: [2],
|
|
184
|
+
color: "#DBDBDB"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
skeletonConfig: ae({
|
|
188
|
+
defaultConfig: A.value,
|
|
189
|
+
userConfig: Xt.value
|
|
190
|
+
})
|
|
191
|
+
}), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } = Ne({ config: A.value }), { svgRef: z } = Pe({ config: F.value.title });
|
|
192
|
+
function nn() {
|
|
193
|
+
let e = be({
|
|
194
|
+
userConfig: C.config,
|
|
195
|
+
defaultConfig: kt
|
|
196
|
+
}), t = e.theme;
|
|
197
|
+
if (!t) return e;
|
|
198
|
+
if (!At.value(e)) return jt(e), e;
|
|
199
|
+
let n = be({
|
|
200
|
+
userConfig: Le[t] || C.config,
|
|
201
|
+
defaultConfig: e
|
|
202
|
+
});
|
|
203
|
+
return {
|
|
204
|
+
...be({
|
|
205
|
+
userConfig: C.config,
|
|
206
|
+
defaultConfig: n
|
|
207
|
+
}),
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : ie[e.theme] || a
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
$e(() => C.config, (e) => {
|
|
212
|
+
R.value || (A.value = nn()), $t.value = !A.value.userOptions.showOnChartHover, on(), Bt.value += 1, Vt.value += 1, Ht.value += 1, U.value.showTable = A.value.table.show, U.value.showTooltip = P.value.show, U.value.showLabels = N.value.dataLabels.show, W.value.width = F.value.size, W.value.height = F.value.size;
|
|
213
|
+
}, { deep: !0 });
|
|
214
|
+
let rn = c(() => {
|
|
215
|
+
let { markers: e } = N.value.dataLabels, t = Y.value / 2, n = U.value.showLabels ? e.position === "left" ? t : -t : 0, r = U.value.showLabels ? W.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
|
|
216
|
+
return {
|
|
217
|
+
x: A.value.responsive ? i : n / F.value.size * W.value.width,
|
|
218
|
+
y: 0 / F.value.size * W.value.height
|
|
219
|
+
};
|
|
220
|
+
}), B = c(() => ({
|
|
221
|
+
x: W.value.width / 2 + rn.value.x,
|
|
222
|
+
y: W.value.height / 2 + rn.value.y
|
|
223
|
+
}));
|
|
224
|
+
$e(() => C.dataset, (e) => {
|
|
225
|
+
Array.isArray(e) && e.length > 0 && (Qt.value = !1);
|
|
226
|
+
}, { deep: !0 });
|
|
227
|
+
let V = Ye(null), H = Ye(null);
|
|
228
|
+
Ke(() => {
|
|
229
|
+
Wt.value = !0, on();
|
|
230
|
+
});
|
|
231
|
+
let an = c(() => A.value.debug);
|
|
232
|
+
function on() {
|
|
233
|
+
if (o(C.dataset) ? (ue({
|
|
234
|
+
componentName: "VueUiRings",
|
|
235
|
+
type: "dataset",
|
|
236
|
+
debug: an.value
|
|
237
|
+
}), Qt.value = !0) : C.dataset.forEach((e, t) => {
|
|
238
|
+
e.values.length || (ue({
|
|
239
|
+
componentName: "VueUiRings",
|
|
240
|
+
type: "dataset",
|
|
241
|
+
debug: an.value
|
|
242
|
+
}), Qt.value = !0), se({
|
|
243
|
+
datasetObject: e,
|
|
244
|
+
requiredAttributes: ["name", "values"]
|
|
245
|
+
}).forEach((e) => {
|
|
246
|
+
ue({
|
|
247
|
+
componentName: "VueUiRings",
|
|
248
|
+
type: "datasetSerieAttribute",
|
|
249
|
+
property: e,
|
|
250
|
+
index: t,
|
|
251
|
+
debug: an.value
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
}), o(C.dataset) || (Qt.value = A.value.loading), A.value.responsive) {
|
|
255
|
+
let e = Oe(() => {
|
|
256
|
+
Ut.value = !0;
|
|
257
|
+
let { width: e, height: t } = ke({
|
|
258
|
+
chart: O.value,
|
|
259
|
+
title: F.value.title.text ? It.value : null,
|
|
260
|
+
legend: F.value.legend.show ? Lt.value : null,
|
|
261
|
+
source: Rt.value,
|
|
262
|
+
noTitle: zt.value
|
|
263
|
+
});
|
|
264
|
+
requestAnimationFrame(() => {
|
|
265
|
+
W.value.width = e, W.value.height = t - 12, Ut.value = !1;
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = O.value.parentNode, V.value.observe(H.value);
|
|
269
|
+
}
|
|
270
|
+
setTimeout(() => {
|
|
271
|
+
w.value = !0;
|
|
272
|
+
}, 600);
|
|
273
|
+
}
|
|
274
|
+
Ge(() => {
|
|
275
|
+
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
|
|
276
|
+
});
|
|
277
|
+
let { isPrinting: sn, isImaging: cn, generatePdf: ln, generateImage: un } = _e({
|
|
278
|
+
elementId: `rings_${T.value}`,
|
|
279
|
+
fileName: F.value.title.text || "vue-ui-rings",
|
|
280
|
+
options: A.value.userOptions.print
|
|
281
|
+
}), dn = c(() => A.value.userOptions.show && !F.value.title.text), fn = c(() => pe(A.value.customPalette)), U = y({
|
|
282
|
+
showTable: A.value.table.show,
|
|
283
|
+
showTooltip: P.value.show,
|
|
284
|
+
showLabels: N.value.dataLabels.show
|
|
285
|
+
});
|
|
286
|
+
$e(A, () => {
|
|
287
|
+
U.value = {
|
|
288
|
+
showTable: A.value.table.show,
|
|
289
|
+
showTooltip: P.value.show,
|
|
290
|
+
showLabels: N.value.dataLabels.show
|
|
291
|
+
};
|
|
292
|
+
}, { immediate: !0 });
|
|
293
|
+
let W = y({
|
|
294
|
+
height: F.value.size,
|
|
295
|
+
width: F.value.size
|
|
296
|
+
}), pn = c(() => Math.min(W.value.height, W.value.width)), mn = et, G = y([]);
|
|
297
|
+
function hn() {
|
|
298
|
+
G.value.length ? G.value = [] : Cn.value.forEach((e) => {
|
|
299
|
+
G.value.push(e.uid);
|
|
300
|
+
}), gn();
|
|
301
|
+
}
|
|
302
|
+
function gn() {
|
|
303
|
+
mn("selectLegend", J.value.map((e) => ({
|
|
304
|
+
name: e.name,
|
|
305
|
+
color: e.color,
|
|
306
|
+
value: e.value
|
|
307
|
+
})));
|
|
308
|
+
}
|
|
309
|
+
function _n(e) {
|
|
310
|
+
if (G.value.includes(e)) G.value = G.value.filter((t) => t !== e);
|
|
311
|
+
else {
|
|
312
|
+
if (G.value.length === K.value.length - 1) return;
|
|
313
|
+
G.value.push(e);
|
|
314
|
+
}
|
|
315
|
+
gn();
|
|
316
|
+
}
|
|
317
|
+
function vn(e) {
|
|
318
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (an.value && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (an.value && console.warn("VueUiRings - There are no series to show."), null);
|
|
319
|
+
}
|
|
320
|
+
function yn(e) {
|
|
321
|
+
let t = vn(e);
|
|
322
|
+
t !== null && G.value.includes(t.uid) && _n(t.uid);
|
|
323
|
+
}
|
|
324
|
+
function bn(e) {
|
|
325
|
+
let t = vn(e);
|
|
326
|
+
t !== null && (G.value.includes(t.uid) || _n(t.uid));
|
|
327
|
+
}
|
|
328
|
+
let xn = c(() => Math.max(...K.value.filter((e) => !G.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
329
|
+
function Sn(e) {
|
|
330
|
+
return e / xn.value;
|
|
331
|
+
}
|
|
332
|
+
let K = c(() => Zt.value.map(({ values: e, name: t, color: n = null }, r) => {
|
|
333
|
+
let i = ne(e).reduce((e, t) => e + t, 0);
|
|
334
|
+
return {
|
|
335
|
+
name: t,
|
|
336
|
+
color: n || ee(n) || fn.value[r] || a[r] || a[r % a.length],
|
|
337
|
+
value: i,
|
|
338
|
+
proportion: i / Zt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
339
|
+
uid: de(),
|
|
340
|
+
absoluteIndex: r
|
|
341
|
+
};
|
|
342
|
+
})), Cn = c(() => K.value.map((e, t) => {
|
|
343
|
+
let n = ce(N.value.dataLabels.formatter, e.value, s({
|
|
344
|
+
p: N.value.dataLabels.prefix,
|
|
345
|
+
v: e.value,
|
|
346
|
+
s: N.value.dataLabels.suffix,
|
|
347
|
+
r: F.value.legend.roundingValue
|
|
348
|
+
}), {
|
|
349
|
+
datapoint: e,
|
|
350
|
+
index: t
|
|
351
|
+
}), r = isNaN(e.value / q.value) ? "-" : s({
|
|
352
|
+
v: e.value / q.value * 100,
|
|
353
|
+
s: "%",
|
|
354
|
+
r: F.value.legend.roundingPercentage
|
|
355
|
+
}), i = On({
|
|
356
|
+
showVal: F.value.legend.showValue,
|
|
357
|
+
showPercentage: F.value.legend.showPercentage,
|
|
358
|
+
val: n,
|
|
359
|
+
percentage: G.value.includes(e.uid) ? "-%" : r
|
|
360
|
+
});
|
|
361
|
+
return {
|
|
362
|
+
...e,
|
|
363
|
+
shape: "circle",
|
|
364
|
+
opacity: G.value.includes(e.uid) ? .5 : 1,
|
|
365
|
+
segregate: () => _n(e.uid),
|
|
366
|
+
isSegregated: G.value.includes(e.uid),
|
|
367
|
+
display: `${e.name}${F.value.legend.showPercentage || F.value.legend.showValue ? ": " : ""}${i}`
|
|
368
|
+
};
|
|
369
|
+
}).toSorted((e, t) => t.value - e.value)), wn = c(() => ({
|
|
370
|
+
cy: "rings-div-legend",
|
|
371
|
+
backgroundColor: F.value.legend.backgroundColor,
|
|
372
|
+
color: F.value.legend.color,
|
|
373
|
+
fontSize: F.value.legend.fontSize,
|
|
374
|
+
paddingBottom: 12,
|
|
375
|
+
fontWeight: F.value.legend.bold ? "bold" : ""
|
|
376
|
+
})), q = c(() => K.value.filter((e) => !G.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), J = c(() => K.value.filter((e) => !G.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, o) => ({
|
|
377
|
+
absoluteIndex: i,
|
|
378
|
+
uid: r,
|
|
379
|
+
name: e,
|
|
380
|
+
color: n || ee(n) || fn.value[o] || a[o] || a[o % a.length],
|
|
381
|
+
value: t,
|
|
382
|
+
proportion: Sn(t),
|
|
383
|
+
percentage: t / q.value * 100,
|
|
384
|
+
strokeWidth: M.value.strokeWidth * Sn(t)
|
|
385
|
+
})).toSorted((e, t) => t.value - e.value));
|
|
386
|
+
function Tn() {
|
|
387
|
+
return J.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
388
|
+
name: e,
|
|
389
|
+
color: t,
|
|
390
|
+
value: n,
|
|
391
|
+
absoluteValues: r,
|
|
392
|
+
percentage: i
|
|
393
|
+
}));
|
|
394
|
+
}
|
|
395
|
+
let Y = c(() => pn.value - M.value.strokeWidth * 2);
|
|
396
|
+
function En(e, t) {
|
|
397
|
+
A.value.events.datapointClick && A.value.events.datapointClick({
|
|
398
|
+
datapoint: e,
|
|
399
|
+
seriesIndex: t
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
function Dn(e, t) {
|
|
403
|
+
D.value = null, E.value = !1, k.value = null, Jt.value = "pointer", A.value.events.datapointLeave && A.value.events.datapointLeave({
|
|
404
|
+
datapoint: e,
|
|
405
|
+
seriesIndex: t
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
function On({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
409
|
+
let i = N.value.dataLabels;
|
|
410
|
+
return Fe({
|
|
411
|
+
config: i,
|
|
412
|
+
val: e,
|
|
413
|
+
percentage: t,
|
|
414
|
+
showVal: n,
|
|
415
|
+
showPercentage: r
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
function kn(e) {
|
|
419
|
+
let t = N.value.dataLabels, n = ce(t.formatter, e.value, s({
|
|
420
|
+
p: t.prefix,
|
|
421
|
+
v: e.value,
|
|
422
|
+
s: t.suffix,
|
|
423
|
+
r: t.roundingValue
|
|
424
|
+
})), r = s({
|
|
425
|
+
v: e.percentage,
|
|
426
|
+
s: "%",
|
|
427
|
+
r: t.roundingPercentage
|
|
428
|
+
});
|
|
429
|
+
return `${e.name}\n${On({
|
|
430
|
+
val: n,
|
|
431
|
+
percentage: r,
|
|
432
|
+
showVal: t.showValue,
|
|
433
|
+
showPercentage: t.showPercentage
|
|
434
|
+
})}`;
|
|
435
|
+
}
|
|
436
|
+
function An(e) {
|
|
437
|
+
return oe(Y.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : Y.value * e.proportion / 2 * .9);
|
|
438
|
+
}
|
|
439
|
+
function jn(e, t) {
|
|
440
|
+
return t === 0 ? B.value.y : B.value.y + Y.value * J.value[0].proportion / 2 - Y.value * e.proportion / 2 - 2 * (t + 1);
|
|
441
|
+
}
|
|
442
|
+
function X(e, t) {
|
|
443
|
+
let n = N.value.dataLabels.markers.position === "left" ? -(Y.value / 2) : Y.value / 2;
|
|
444
|
+
return {
|
|
445
|
+
x: B.value.x + n,
|
|
446
|
+
y: jn(e, t) - An(e)
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
let Mn = y(null);
|
|
450
|
+
function Nn(e, t, r = "pointer") {
|
|
451
|
+
if (A.value.events.datapointEnter && A.value.events.datapointEnter({
|
|
452
|
+
datapoint: e,
|
|
453
|
+
seriesIndex: t
|
|
454
|
+
}), G.value.length === C.dataset.length) return;
|
|
455
|
+
Mn.value = {
|
|
456
|
+
datapoint: e,
|
|
457
|
+
seriesIndex: t,
|
|
458
|
+
series: J.value,
|
|
459
|
+
config: A.value
|
|
460
|
+
}, D.value = t, k.value = t, Jt.value = r;
|
|
461
|
+
let i = J.value[t], a = P.value.customFormat;
|
|
462
|
+
if (n(a) && le(() => a({
|
|
463
|
+
seriesIndex: t,
|
|
464
|
+
datapoint: e,
|
|
465
|
+
series: J.value,
|
|
466
|
+
config: A.value
|
|
467
|
+
}))) Pt.value = a({
|
|
468
|
+
seriesIndex: t,
|
|
469
|
+
datapoint: e,
|
|
470
|
+
series: J.value,
|
|
471
|
+
config: A.value
|
|
472
|
+
});
|
|
473
|
+
else {
|
|
474
|
+
let n = "";
|
|
475
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${i.name}</div>`, n += `<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="${i.color}" />${Mt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${T.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${On({
|
|
476
|
+
showVal: P.value.showValue,
|
|
477
|
+
showPercentage: P.value.showPercentage,
|
|
478
|
+
val: `<span>${ce(N.value.dataLabels.formatter, i.value, s({
|
|
479
|
+
p: N.value.dataLabels.prefix,
|
|
480
|
+
v: i.value,
|
|
481
|
+
s: N.value.dataLabels.suffix,
|
|
482
|
+
r: P.value.roundingValue
|
|
483
|
+
}), {
|
|
484
|
+
datapoint: e,
|
|
485
|
+
seriesIndex: t
|
|
486
|
+
})}</span>`,
|
|
487
|
+
percentage: s({
|
|
488
|
+
v: i.value / q.value * 100,
|
|
489
|
+
s: "%",
|
|
490
|
+
r: P.value.roundingPercentage
|
|
491
|
+
})
|
|
492
|
+
})}</b></div>`, Pt.value = n;
|
|
493
|
+
}
|
|
494
|
+
E.value = !0;
|
|
495
|
+
}
|
|
496
|
+
let Z = c(() => ({
|
|
497
|
+
head: J.value.map((e) => ({
|
|
498
|
+
name: e.name,
|
|
499
|
+
color: e.color
|
|
500
|
+
})),
|
|
501
|
+
body: J.value.map((e) => e.value)
|
|
502
|
+
})), Q = c(() => {
|
|
503
|
+
let e = [
|
|
504
|
+
"__SUM__",
|
|
505
|
+
s({
|
|
506
|
+
p: N.value.dataLabels.prefix,
|
|
507
|
+
v: q.value,
|
|
508
|
+
s: N.value.dataLabels.suffix,
|
|
509
|
+
r: A.value.table.td.roundingValue
|
|
510
|
+
}),
|
|
511
|
+
"100%"
|
|
512
|
+
], t = Z.value.head.map((e, t) => [
|
|
513
|
+
{
|
|
514
|
+
color: e.color,
|
|
515
|
+
name: e.name
|
|
516
|
+
},
|
|
517
|
+
s({
|
|
518
|
+
p: N.value.dataLabels.prefix,
|
|
519
|
+
v: Z.value.body[t],
|
|
520
|
+
s: N.value.dataLabels.suffix,
|
|
521
|
+
r: A.value.table.td.roundingValue
|
|
522
|
+
}),
|
|
523
|
+
isNaN(Z.value.body[t] / q.value) ? "-" : (Z.value.body[t] / q.value * 100).toFixed(A.value.table.td.roundingPercentage) + "%"
|
|
524
|
+
]);
|
|
525
|
+
return {
|
|
526
|
+
head: e,
|
|
527
|
+
body: t,
|
|
528
|
+
a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
|
|
529
|
+
config: {
|
|
530
|
+
th: {
|
|
531
|
+
backgroundColor: A.value.table.th.backgroundColor,
|
|
532
|
+
color: A.value.table.th.color,
|
|
533
|
+
outline: A.value.table.th.outline
|
|
534
|
+
},
|
|
535
|
+
td: {
|
|
536
|
+
backgroundColor: A.value.table.td.backgroundColor,
|
|
537
|
+
color: A.value.table.td.color,
|
|
538
|
+
outline: A.value.table.td.outline
|
|
539
|
+
},
|
|
540
|
+
breakpoint: A.value.table.responsiveBreakpoint
|
|
541
|
+
},
|
|
542
|
+
colNames: [
|
|
543
|
+
A.value.table.columnNames.series,
|
|
544
|
+
A.value.table.columnNames.value,
|
|
545
|
+
A.value.table.columnNames.percentage
|
|
546
|
+
]
|
|
547
|
+
};
|
|
548
|
+
});
|
|
549
|
+
function Pn(e = null) {
|
|
550
|
+
We(() => {
|
|
551
|
+
let n = Z.value.head.map((e, t) => [
|
|
552
|
+
[e.name],
|
|
553
|
+
[Z.value.body[t]],
|
|
554
|
+
[isNaN(Z.value.body[t] / q.value) ? "-" : Z.value.body[t] / q.value * 100]
|
|
555
|
+
]), i = [
|
|
556
|
+
[F.value.title.text],
|
|
557
|
+
[F.value.title.subtitle.text],
|
|
558
|
+
[
|
|
559
|
+
[""],
|
|
560
|
+
["val"],
|
|
561
|
+
["%"]
|
|
562
|
+
]
|
|
563
|
+
].concat(n), a = r(i);
|
|
564
|
+
e ? e(a) : t({
|
|
565
|
+
csvContent: a,
|
|
566
|
+
title: F.value.title.text || "vue-ui-rings"
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
let $ = y(!1);
|
|
571
|
+
function Fn(e) {
|
|
572
|
+
$.value = e, Ft.value += 1;
|
|
573
|
+
}
|
|
574
|
+
function In() {
|
|
575
|
+
U.value.showTable = !U.value.showTable;
|
|
576
|
+
}
|
|
577
|
+
function Ln() {
|
|
578
|
+
U.value.showTooltip = !U.value.showTooltip;
|
|
579
|
+
}
|
|
580
|
+
function Rn() {
|
|
581
|
+
U.value.showLabels = !U.value.showLabels;
|
|
582
|
+
}
|
|
583
|
+
let zn = y(!1);
|
|
584
|
+
function Bn() {
|
|
585
|
+
zn.value = !zn.value;
|
|
586
|
+
}
|
|
587
|
+
async function Vn({ scale: e = 2 } = {}) {
|
|
588
|
+
if (!O.value) return;
|
|
589
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
|
|
590
|
+
domElement: O.value,
|
|
591
|
+
base64: !0,
|
|
592
|
+
img: !0,
|
|
593
|
+
scale: e
|
|
594
|
+
});
|
|
595
|
+
return {
|
|
596
|
+
imageUri: i,
|
|
597
|
+
base64: a,
|
|
598
|
+
title: F.value.title.text,
|
|
599
|
+
width: t,
|
|
600
|
+
height: n,
|
|
601
|
+
aspectRatio: r
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
let Hn = c(() => {
|
|
605
|
+
let e = A.value.table.useDialog && !A.value.table.show, t = U.value.showTable;
|
|
606
|
+
return {
|
|
607
|
+
component: e ? Ot : Ct,
|
|
608
|
+
title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
|
|
609
|
+
props: e ? {
|
|
610
|
+
backgroundColor: A.value.table.th.backgroundColor,
|
|
611
|
+
color: A.value.table.th.color,
|
|
612
|
+
headerColor: A.value.table.th.color,
|
|
613
|
+
headerBg: A.value.table.th.backgroundColor,
|
|
614
|
+
isFullscreen: $.value,
|
|
615
|
+
fullscreenParent: O.value,
|
|
616
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
617
|
+
isCursorPointer: L.value
|
|
618
|
+
} : {
|
|
619
|
+
hideDetails: !0,
|
|
620
|
+
config: {
|
|
621
|
+
open: t,
|
|
622
|
+
maxHeight: 1e4,
|
|
623
|
+
body: {
|
|
624
|
+
backgroundColor: F.value.backgroundColor,
|
|
625
|
+
color: F.value.color
|
|
626
|
+
},
|
|
627
|
+
head: {
|
|
628
|
+
backgroundColor: F.value.backgroundColor,
|
|
629
|
+
color: F.value.color
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
});
|
|
635
|
+
$e(() => U.value.showTable, (e) => {
|
|
636
|
+
A.value.table.show || (e && A.value.table.useDialog && Gt.value ? Gt.value.open() : "close" in Gt.value && Gt.value.close());
|
|
637
|
+
});
|
|
638
|
+
function Un() {
|
|
639
|
+
U.value.showTable = !1, Kt.value && Kt.value.setTableIconState(!1);
|
|
640
|
+
}
|
|
641
|
+
let Wn = c(() => Cn.value.map((e) => ({
|
|
642
|
+
...e,
|
|
643
|
+
name: e.display
|
|
644
|
+
}))), Gn = c(() => F.value.backgroundColor), Kn = c(() => F.value.legend), qn = c(() => F.value.title), { isCallbackImaging: Jn, isCallbackSvg: Yn, generateSvg: Xn, onGenerateImage: Zn } = Se({
|
|
645
|
+
svg: z,
|
|
646
|
+
title: qn,
|
|
647
|
+
legend: Kn,
|
|
648
|
+
legendItems: Wn,
|
|
649
|
+
backgroundColor: Gn,
|
|
650
|
+
getSvgCallback: () => A.value.userOptions.callbacks.svg,
|
|
651
|
+
generateImage: un
|
|
652
|
+
});
|
|
653
|
+
async function Qn() {
|
|
654
|
+
if (mn("copyAlt", {
|
|
655
|
+
config: A.value,
|
|
656
|
+
dataset: J.value
|
|
657
|
+
}), !A.value.userOptions.callbacks.altCopy) {
|
|
658
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
await Promise.resolve(A.value.userOptions.callbacks.altCopy({
|
|
662
|
+
config: A.value,
|
|
663
|
+
dataset: J.value
|
|
664
|
+
}));
|
|
665
|
+
}
|
|
666
|
+
function $n() {
|
|
667
|
+
k.value = null, Yt.value = !0;
|
|
668
|
+
}
|
|
669
|
+
function er() {
|
|
670
|
+
k.value = null, Jt.value = "pointer", E.value = !1, D.value = null, Yt.value = !1;
|
|
671
|
+
}
|
|
672
|
+
function tr(e) {
|
|
673
|
+
if (!z.value || zn.value || document.activeElement !== z.value || !J.value.length || G.value.length === C.dataset.length) return;
|
|
674
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
675
|
+
if (!t && !n && !r && !i) return;
|
|
676
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
677
|
+
k.value = null, Jt.value = "pointer", E.value = !1, D.value = null;
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
if (r) {
|
|
681
|
+
if (k.value === null) return;
|
|
682
|
+
let e = J.value[k.value];
|
|
683
|
+
if (!e) return;
|
|
684
|
+
En(e, k.value);
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
let a = k.value;
|
|
688
|
+
a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1));
|
|
689
|
+
let o = J.value[a];
|
|
690
|
+
o && (nr(a), Nn(o, a, "keyboard"));
|
|
691
|
+
}
|
|
692
|
+
function nr(e) {
|
|
693
|
+
if (!Number.isFinite(e) || !z.value) return;
|
|
694
|
+
let t = J.value[e];
|
|
695
|
+
if (!t) return;
|
|
696
|
+
let n = X(t, e), r = z.value.getBoundingClientRect();
|
|
697
|
+
qt.value = {
|
|
698
|
+
x: r.left + n.x / W.value.width * r.width,
|
|
699
|
+
y: r.top + n.y / W.value.height * r.height
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
let rr = c(() => ({
|
|
703
|
+
headers: Q.value?.colNames ?? [],
|
|
704
|
+
rows: Q.value?.a11yBody ?? []
|
|
705
|
+
}));
|
|
706
|
+
return De({
|
|
707
|
+
getData: Tn,
|
|
708
|
+
getImage: Vn,
|
|
709
|
+
generatePdf: ln,
|
|
710
|
+
generateCsv: Pn,
|
|
711
|
+
generateImage: un,
|
|
712
|
+
generateSvg: Xn,
|
|
713
|
+
hideSeries: bn,
|
|
714
|
+
showSeries: yn,
|
|
715
|
+
toggleTable: In,
|
|
716
|
+
toggleTooltip: Ln,
|
|
717
|
+
toggleAnnotator: Bn,
|
|
718
|
+
toggleFullscreen: Fn,
|
|
719
|
+
toggleLabels: Rn,
|
|
720
|
+
copyAlt: Qn
|
|
721
|
+
}), (e, t) => (v(), d("div", {
|
|
722
|
+
ref_key: "ringsChart",
|
|
723
|
+
ref: O,
|
|
724
|
+
class: h(`vue-data-ui-component vue-ui-rings ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${A.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
725
|
+
style: _(`font-family:${A.value.style.fontFamily};text-align:center;width:100%;background:${F.value.backgroundColor};${A.value.responsive ? "height: 100%" : ""}`),
|
|
726
|
+
id: `rings_${T.value}`,
|
|
727
|
+
onMouseleave: t[2] ||= (e) => {
|
|
728
|
+
D.value = null, E.value = !1, x(en)(!1);
|
|
729
|
+
},
|
|
730
|
+
onMouseenter: t[3] ||= () => x(en)(!0)
|
|
731
|
+
}, [
|
|
732
|
+
f("div", {
|
|
733
|
+
id: `chart-instructions-${T.value}`,
|
|
734
|
+
class: "sr-only"
|
|
735
|
+
}, [f("p", null, Xe(A.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
|
|
736
|
+
rr.value?.rows?.length ? (v(), l(Me, {
|
|
737
|
+
key: 0,
|
|
738
|
+
uid: T.value,
|
|
739
|
+
head: rr.value.headers,
|
|
740
|
+
body: rr.value.rows,
|
|
741
|
+
notice: A.value.a11y.translations.tableAvailable,
|
|
742
|
+
caption: A.value.a11y.translations.tableCaption
|
|
743
|
+
}, null, 8, [
|
|
744
|
+
"uid",
|
|
745
|
+
"head",
|
|
746
|
+
"body",
|
|
747
|
+
"notice",
|
|
748
|
+
"caption"
|
|
749
|
+
])) : u("", !0),
|
|
750
|
+
j.value.buttons.annotator ? (v(), l(x(Tt), {
|
|
751
|
+
key: 1,
|
|
752
|
+
svgRef: x(z),
|
|
753
|
+
backgroundColor: F.value.backgroundColor,
|
|
754
|
+
color: F.value.color,
|
|
755
|
+
active: zn.value,
|
|
756
|
+
isCursorPointer: L.value,
|
|
757
|
+
palette: j.value.annotatorPalette,
|
|
758
|
+
onClose: Bn
|
|
759
|
+
}, {
|
|
760
|
+
"annotator-action-close": S(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
761
|
+
"annotator-action-color": S(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
|
|
762
|
+
"annotator-action-draw": S(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
|
|
763
|
+
"annotator-action-undo": S(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
|
|
764
|
+
"annotator-action-redo": S(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
|
|
765
|
+
"annotator-action-delete": S(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
|
|
766
|
+
_: 3
|
|
767
|
+
}, 8, [
|
|
768
|
+
"svgRef",
|
|
769
|
+
"backgroundColor",
|
|
770
|
+
"color",
|
|
771
|
+
"active",
|
|
772
|
+
"isCursorPointer",
|
|
773
|
+
"palette"
|
|
774
|
+
])) : u("", !0),
|
|
775
|
+
dn.value ? (v(), d("div", {
|
|
776
|
+
key: 2,
|
|
777
|
+
ref_key: "noTitle",
|
|
778
|
+
ref: zt,
|
|
779
|
+
class: "vue-data-ui-no-title-space",
|
|
780
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
781
|
+
}, null, 512)) : u("", !0),
|
|
782
|
+
F.value.title.text ? (v(), d("div", {
|
|
783
|
+
key: 3,
|
|
784
|
+
ref_key: "chartTitle",
|
|
785
|
+
ref: It,
|
|
786
|
+
style: "width:100%;background:transparent"
|
|
787
|
+
}, [(v(), l(Te, {
|
|
788
|
+
key: `title_${Bt.value}`,
|
|
789
|
+
config: {
|
|
790
|
+
title: {
|
|
791
|
+
cy: "rings-div-title",
|
|
792
|
+
...F.value.title
|
|
793
|
+
},
|
|
794
|
+
subtitle: {
|
|
795
|
+
cy: "rings-div-subtitle",
|
|
796
|
+
...F.value.title.subtitle
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
800
|
+
f("div", { id: `legend-top-${T.value}` }, null, 8, rt),
|
|
801
|
+
j.value.show && Nt.value && (x(tn) || x($t)) ? (v(), l(x(Et), {
|
|
802
|
+
ref_key: "userOptionsRef",
|
|
803
|
+
ref: Kt,
|
|
804
|
+
key: `user_options_${Ft.value}`,
|
|
805
|
+
backgroundColor: F.value.backgroundColor,
|
|
806
|
+
color: F.value.color,
|
|
807
|
+
isPrinting: x(sn),
|
|
808
|
+
isImaging: x(cn),
|
|
809
|
+
uid: T.value,
|
|
810
|
+
hasTooltip: j.value.buttons.tooltip && P.value.show,
|
|
811
|
+
hasPdf: j.value.buttons.pdf,
|
|
812
|
+
hasXls: j.value.buttons.csv,
|
|
813
|
+
hasImg: j.value.buttons.img,
|
|
814
|
+
hasSvg: j.value.buttons.svg,
|
|
815
|
+
hasTable: j.value.buttons.table,
|
|
816
|
+
hasFullscreen: j.value.buttons.fullscreen,
|
|
817
|
+
hasAltCopy: j.value.buttons.altCopy,
|
|
818
|
+
hasLabel: j.value.buttons.labels,
|
|
819
|
+
isTooltip: U.value.showTooltip,
|
|
820
|
+
isFullscreen: $.value,
|
|
821
|
+
titles: { ...j.value.buttonTitles },
|
|
822
|
+
chartElement: O.value,
|
|
823
|
+
position: j.value.position,
|
|
824
|
+
hasAnnotator: j.value.buttons.annotator,
|
|
825
|
+
isAnnotation: zn.value,
|
|
826
|
+
callbacks: j.value.callbacks,
|
|
827
|
+
printScale: j.value.print.scale,
|
|
828
|
+
tableDialog: A.value.table.useDialog,
|
|
829
|
+
isCursorPointer: L.value,
|
|
830
|
+
onToggleFullscreen: Fn,
|
|
831
|
+
onGeneratePdf: x(ln),
|
|
832
|
+
onGenerateCsv: Pn,
|
|
833
|
+
onGenerateImage: x(Zn),
|
|
834
|
+
onGenerateSvg: x(Xn),
|
|
835
|
+
onToggleTable: In,
|
|
836
|
+
onToggleTooltip: Ln,
|
|
837
|
+
onToggleAnnotator: Bn,
|
|
838
|
+
onToggleLabels: Rn,
|
|
839
|
+
onCopyAlt: Qn,
|
|
840
|
+
style: _({ visibility: x(tn) ? x($t) ? "visible" : "hidden" : "visible" })
|
|
841
|
+
}, Be({ _: 2 }, [
|
|
842
|
+
e.$slots.menuIcon ? {
|
|
843
|
+
name: "menuIcon",
|
|
844
|
+
fn: S(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(m({
|
|
845
|
+
isOpen: t,
|
|
846
|
+
color: n
|
|
847
|
+
})), void 0, !0)]),
|
|
848
|
+
key: "0"
|
|
849
|
+
} : void 0,
|
|
850
|
+
e.$slots.optionTooltip ? {
|
|
851
|
+
name: "optionTooltip",
|
|
852
|
+
fn: S(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
853
|
+
key: "1"
|
|
854
|
+
} : void 0,
|
|
855
|
+
e.$slots.optionPdf ? {
|
|
856
|
+
name: "optionPdf",
|
|
857
|
+
fn: S(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
858
|
+
key: "2"
|
|
859
|
+
} : void 0,
|
|
860
|
+
e.$slots.optionCsv ? {
|
|
861
|
+
name: "optionCsv",
|
|
862
|
+
fn: S(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
863
|
+
key: "3"
|
|
864
|
+
} : void 0,
|
|
865
|
+
e.$slots.optionImg ? {
|
|
866
|
+
name: "optionImg",
|
|
867
|
+
fn: S(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
868
|
+
key: "4"
|
|
869
|
+
} : void 0,
|
|
870
|
+
e.$slots.optionSvg ? {
|
|
871
|
+
name: "optionSvg",
|
|
872
|
+
fn: S(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
873
|
+
key: "5"
|
|
874
|
+
} : void 0,
|
|
875
|
+
e.$slots.optionTable ? {
|
|
876
|
+
name: "optionTable",
|
|
877
|
+
fn: S(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
878
|
+
key: "6"
|
|
879
|
+
} : void 0,
|
|
880
|
+
e.$slots.optionLabels ? {
|
|
881
|
+
name: "optionLabels",
|
|
882
|
+
fn: S(() => [b(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
883
|
+
key: "7"
|
|
884
|
+
} : void 0,
|
|
885
|
+
e.$slots.optionFullscreen ? {
|
|
886
|
+
name: "optionFullscreen",
|
|
887
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(m({
|
|
888
|
+
toggleFullscreen: t,
|
|
889
|
+
isFullscreen: n
|
|
890
|
+
})), void 0, !0)]),
|
|
891
|
+
key: "8"
|
|
892
|
+
} : void 0,
|
|
893
|
+
e.$slots.optionAnnotator ? {
|
|
894
|
+
name: "optionAnnotator",
|
|
895
|
+
fn: S(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(m({
|
|
896
|
+
toggleAnnotator: t,
|
|
897
|
+
isAnnotator: n
|
|
898
|
+
})), void 0, !0)]),
|
|
899
|
+
key: "9"
|
|
900
|
+
} : void 0,
|
|
901
|
+
e.$slots.optionAltCopy ? {
|
|
902
|
+
name: "optionAltCopy",
|
|
903
|
+
fn: S(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
|
|
904
|
+
key: "10"
|
|
905
|
+
} : void 0,
|
|
906
|
+
e.$slots["custom-menu-before"] ? {
|
|
907
|
+
name: "custom-menu-before",
|
|
908
|
+
fn: S(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
909
|
+
key: "11"
|
|
910
|
+
} : void 0,
|
|
911
|
+
e.$slots["custom-menu-after"] ? {
|
|
912
|
+
name: "custom-menu-after",
|
|
913
|
+
fn: S(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
914
|
+
key: "12"
|
|
915
|
+
} : void 0
|
|
916
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
917
|
+
f("div", it, [(v(), d("svg", {
|
|
918
|
+
ref_key: "svgRef",
|
|
919
|
+
ref: z,
|
|
920
|
+
xmlns: x(fe),
|
|
921
|
+
class: h({
|
|
922
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
923
|
+
"vue-data-ui-fulscreen--off": !$.value,
|
|
924
|
+
resizing: Ut.value || x(R),
|
|
925
|
+
"vue-data-ui-no-transition": !x(I)
|
|
926
|
+
}),
|
|
927
|
+
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
928
|
+
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${F.value.color}`),
|
|
929
|
+
"aria-describedby": `chart-instructions-${T.value}`,
|
|
930
|
+
tabindex: "0",
|
|
931
|
+
onFocus: $n,
|
|
932
|
+
onBlur: er,
|
|
933
|
+
onKeydown: tr
|
|
934
|
+
}, [
|
|
935
|
+
He(x(Dt)),
|
|
936
|
+
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
937
|
+
key: 0,
|
|
938
|
+
x: 0,
|
|
939
|
+
y: 0,
|
|
940
|
+
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
941
|
+
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
942
|
+
style: { pointerEvents: "none" }
|
|
943
|
+
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : u("", !0),
|
|
944
|
+
f("defs", null, [(v(!0), d(Re, null, qe(J.value, (e, t) => (v(), l(Ae, {
|
|
945
|
+
t: "radial",
|
|
946
|
+
cx: "50%",
|
|
947
|
+
cy: "30%",
|
|
948
|
+
r: "50%",
|
|
949
|
+
fx: "50%",
|
|
950
|
+
fy: "50%",
|
|
951
|
+
id: `gradient_${T.value}_${t}`,
|
|
952
|
+
key: `gradient_${T.value}_${t}`,
|
|
953
|
+
stops: [[
|
|
954
|
+
"0%",
|
|
955
|
+
x(te)(x(re)(e.color, .05), 100 - M.value.gradient.intensity),
|
|
956
|
+
1
|
|
957
|
+
], [
|
|
958
|
+
"100%",
|
|
959
|
+
e.color,
|
|
960
|
+
1
|
|
961
|
+
]]
|
|
962
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
963
|
+
e.$slots.pattern ? (v(), d("g", st, [(v(!0), d(Re, null, qe(J.value, (t) => (v(), d("defs", null, [b(e.$slots, "pattern", Ue({ ref_for: !0 }, {
|
|
964
|
+
seriesIndex: t.absoluteIndex,
|
|
965
|
+
patternId: `pattern_${T.value}_${t.absoluteIndex}`
|
|
966
|
+
}), void 0, !0)]))), 256))])) : u("", !0),
|
|
967
|
+
(v(!0), d(Re, null, qe(J.value, (t, n) => (v(), d("g", { key: `r_${t.uid}` }, [
|
|
968
|
+
f("circle", {
|
|
969
|
+
class: h({
|
|
970
|
+
"vue-data-ui-transition": w.value && x(I),
|
|
971
|
+
"vue-rings-item-onload": !w.value && A.value.useCssAnimation && !x(R),
|
|
972
|
+
"vue-ui-rings-opacity": D.value !== null && D.value !== n
|
|
973
|
+
}),
|
|
974
|
+
style: _(`animation-delay:${n * 100}ms`),
|
|
975
|
+
stroke: M.value.stroke,
|
|
976
|
+
cx: B.value.x,
|
|
977
|
+
cy: jn(t, n),
|
|
978
|
+
r: An(t),
|
|
979
|
+
fill: M.value.gradient.underlayerColor
|
|
980
|
+
}, null, 14, ct),
|
|
981
|
+
f("circle", {
|
|
982
|
+
class: h({
|
|
983
|
+
"vue-data-ui-transition": w.value && x(I),
|
|
984
|
+
"vue-rings-item-onload": !w.value && A.value.useCssAnimation && !x(R),
|
|
985
|
+
"vue-ui-rings-shadow": M.value.useShadow,
|
|
986
|
+
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
987
|
+
}),
|
|
988
|
+
style: _(`animation-delay:${n * 100}ms`),
|
|
989
|
+
stroke: M.value.stroke,
|
|
990
|
+
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
991
|
+
cx: B.value.x,
|
|
992
|
+
cy: jn(t, n),
|
|
993
|
+
r: An(t),
|
|
994
|
+
fill: M.value.gradient.show ? `url(#gradient_${T.value}_${n})` : t.color
|
|
995
|
+
}, null, 14, lt),
|
|
996
|
+
e.$slots.pattern ? (v(), d("circle", {
|
|
997
|
+
key: 0,
|
|
998
|
+
class: h({
|
|
999
|
+
"vue-data-ui-transition": w.value && x(I),
|
|
1000
|
+
"vue-rings-item-onload": !w.value && A.value.useCssAnimation && !x(R),
|
|
1001
|
+
"vue-ui-rings-shadow": M.value.useShadow,
|
|
1002
|
+
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1003
|
+
}),
|
|
1004
|
+
style: _(`animation-delay:${n * 100}ms`),
|
|
1005
|
+
stroke: M.value.stroke,
|
|
1006
|
+
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
1007
|
+
cx: B.value.x,
|
|
1008
|
+
cy: jn(t, n),
|
|
1009
|
+
r: An(t),
|
|
1010
|
+
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`
|
|
1011
|
+
}, null, 14, ut)) : u("", !0),
|
|
1012
|
+
f("circle", {
|
|
1013
|
+
stroke: "none",
|
|
1014
|
+
cx: B.value.x,
|
|
1015
|
+
cy: jn(t, n),
|
|
1016
|
+
r: An(t),
|
|
1017
|
+
fill: "transparent",
|
|
1018
|
+
onMouseenter: (e) => Nn(t, n, "pointer"),
|
|
1019
|
+
onMouseleave: (e) => Dn(t, n),
|
|
1020
|
+
onClick: (e) => En(t, n)
|
|
1021
|
+
}, null, 40, dt),
|
|
1022
|
+
U.value.showLabels ? (v(), d(Re, { key: 1 }, [
|
|
1023
|
+
f("rect", {
|
|
1024
|
+
x: N.value.dataLabels.markers.position === "left" ? X(t, n).x : B.value.x,
|
|
1025
|
+
y: X(t, n).y - N.value.dataLabels.markers.strokeWidth / 2,
|
|
1026
|
+
width: Math.abs(B.value.x - X(t, n).x),
|
|
1027
|
+
height: N.value.dataLabels.markers.strokeWidth,
|
|
1028
|
+
fill: N.value.dataLabels.markers.stroke,
|
|
1029
|
+
rx: N.value.dataLabels.markers.strokeWidth,
|
|
1030
|
+
class: h({
|
|
1031
|
+
"vue-data-ui-transition": w.value && x(I),
|
|
1032
|
+
"vue-rings-item-onload": !w.value && A.value.useCssAnimation && !x(R),
|
|
1033
|
+
"vue-ui-rings-shadow": M.value.useShadow,
|
|
1034
|
+
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1035
|
+
})
|
|
1036
|
+
}, null, 10, ft),
|
|
1037
|
+
f("circle", {
|
|
1038
|
+
cx: X(t, n).x,
|
|
1039
|
+
cy: X(t, n).y,
|
|
1040
|
+
r: N.value.dataLabels.markers.radius,
|
|
1041
|
+
fill: t.color,
|
|
1042
|
+
stroke: F.value.backgroundColor,
|
|
1043
|
+
class: h({
|
|
1044
|
+
"vue-data-ui-transition": w.value && x(I),
|
|
1045
|
+
"vue-rings-item-onload": !w.value && A.value.useCssAnimation && !x(R),
|
|
1046
|
+
"vue-ui-rings-shadow": M.value.useShadow,
|
|
1047
|
+
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1048
|
+
})
|
|
1049
|
+
}, null, 10, pt),
|
|
1050
|
+
f("text", {
|
|
1051
|
+
"text-anchor": N.value.dataLabels.markers.position === "left" ? "end" : "start",
|
|
1052
|
+
"font-size": N.value.dataLabels.fontSize,
|
|
1053
|
+
fill: N.value.dataLabels.color,
|
|
1054
|
+
"font-weight": N.value.dataLabels.bold ? "bold" : "normal",
|
|
1055
|
+
class: h({
|
|
1056
|
+
"vue-data-ui-transition": w.value && x(I),
|
|
1057
|
+
"vue-rings-item-onload": !w.value && A.value.useCssAnimation && !x(R),
|
|
1058
|
+
"vue-ui-rings-shadow": M.value.useShadow,
|
|
1059
|
+
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1060
|
+
}),
|
|
1061
|
+
transform: `translate(${X(t, n).x + (N.value.dataLabels.markers.position === "left" ? -N.value.dataLabels.offsetX - 14 : N.value.dataLabels.offsetX) + 6}, ${X(t, n).y + N.value.dataLabels.fontSize / 3})`,
|
|
1062
|
+
onMouseenter: (e) => Nn(t, n, "pointer"),
|
|
1063
|
+
onMouseleave: (e) => Dn(t, n),
|
|
1064
|
+
onClick: (e) => En(t, n),
|
|
1065
|
+
innerHTML: x(i)({
|
|
1066
|
+
content: kn(t),
|
|
1067
|
+
fontSize: N.value.dataLabels.fontSize,
|
|
1068
|
+
fill: N.value.dataLabels.color,
|
|
1069
|
+
x: 0,
|
|
1070
|
+
y: 0,
|
|
1071
|
+
translateY: !0
|
|
1072
|
+
})
|
|
1073
|
+
}, null, 42, mt)
|
|
1074
|
+
], 64)) : u("", !0)
|
|
1075
|
+
]))), 128)),
|
|
1076
|
+
b(e.$slots, "svg", { svg: {
|
|
1077
|
+
...W.value,
|
|
1078
|
+
isPrintingImg: x(sn) || x(cn) || x(Jn),
|
|
1079
|
+
isPrintingSvg: x(Yn)
|
|
1080
|
+
} }, void 0, !0)
|
|
1081
|
+
], 46, at)), e.$slots.hint ? (v(), d("div", ht, [b(e.$slots, "hint", g(m({
|
|
1082
|
+
hint: A.value.a11y.translations.keyboardNavigation,
|
|
1083
|
+
isVisible: Yt.value
|
|
1084
|
+
})), void 0, !0)])) : u("", !0)]),
|
|
1085
|
+
e.$slots.watermark ? (v(), d("div", gt, [b(e.$slots, "watermark", g(m({ isPrinting: x(sn) || x(cn) || x(Jn) || x(Yn) })), void 0, !0)])) : u("", !0),
|
|
1086
|
+
f("div", { id: `legend-bottom-${T.value}` }, null, 8, _t),
|
|
1087
|
+
Wt.value && (F.value.legend.show || e.$slots.legend) ? (v(), l(ze, {
|
|
1088
|
+
key: 6,
|
|
1089
|
+
to: F.value.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1090
|
+
}, [f("div", {
|
|
1091
|
+
ref_key: "chartLegend",
|
|
1092
|
+
ref: Lt
|
|
1093
|
+
}, [b(e.$slots, "legend", { legend: Cn.value }, () => [F.value.legend.show ? (v(), l(Ie, {
|
|
1094
|
+
key: `legend_${Ht.value}`,
|
|
1095
|
+
legendSet: Cn.value,
|
|
1096
|
+
config: wn.value,
|
|
1097
|
+
isCursorPointer: L.value,
|
|
1098
|
+
onClickMarker: t[0] ||= ({ legend: e }) => _n(e.uid)
|
|
1099
|
+
}, Be({
|
|
1100
|
+
item: S(({ legend: e, index: t }) => [x(R) ? u("", !0) : (v(), d("div", {
|
|
1101
|
+
key: 0,
|
|
1102
|
+
onClick: (t) => _n(e.uid),
|
|
1103
|
+
style: _(`opacity:${G.value.includes(e.uid) ? .5 : 1}`)
|
|
1104
|
+
}, Xe(e.display), 13, vt))]),
|
|
1105
|
+
legendToggle: S(() => [Cn.value.length > 2 && F.value.legend.selectAllToggle.show && !x(R) ? (v(), l(je, {
|
|
1106
|
+
key: 0,
|
|
1107
|
+
backgroundColor: F.value.legend.selectAllToggle.backgroundColor,
|
|
1108
|
+
color: F.value.legend.selectAllToggle.color,
|
|
1109
|
+
fontSize: F.value.legend.fontSize,
|
|
1110
|
+
checked: G.value.length > 0,
|
|
1111
|
+
isCursorPointer: L.value,
|
|
1112
|
+
onToggle: hn
|
|
1113
|
+
}, null, 8, [
|
|
1114
|
+
"backgroundColor",
|
|
1115
|
+
"color",
|
|
1116
|
+
"fontSize",
|
|
1117
|
+
"checked",
|
|
1118
|
+
"isCursorPointer"
|
|
1119
|
+
])) : u("", !0)]),
|
|
1120
|
+
_: 2
|
|
1121
|
+
}, [e.$slots.pattern ? {
|
|
1122
|
+
name: "legend-pattern",
|
|
1123
|
+
fn: S(({ legend: e, index: t }) => [He(Ee, {
|
|
1124
|
+
shape: e.shape,
|
|
1125
|
+
radius: 30,
|
|
1126
|
+
stroke: "none",
|
|
1127
|
+
plot: {
|
|
1128
|
+
x: 30,
|
|
1129
|
+
y: 30
|
|
1130
|
+
},
|
|
1131
|
+
fill: `url(#pattern_${T.value}_${t})`
|
|
1132
|
+
}, null, 8, ["shape", "fill"])]),
|
|
1133
|
+
key: "0"
|
|
1134
|
+
} : void 0]), 1032, [
|
|
1135
|
+
"legendSet",
|
|
1136
|
+
"config",
|
|
1137
|
+
"isCursorPointer"
|
|
1138
|
+
])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
|
|
1139
|
+
e.$slots.source ? (v(), d("div", {
|
|
1140
|
+
key: 7,
|
|
1141
|
+
ref_key: "source",
|
|
1142
|
+
ref: Rt,
|
|
1143
|
+
dir: "auto"
|
|
1144
|
+
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1145
|
+
He(x(xt), {
|
|
1146
|
+
teleportTo: P.value.teleportTo,
|
|
1147
|
+
show: U.value.showTooltip && E.value && G.value.length < C.dataset.length,
|
|
1148
|
+
backgroundColor: P.value.backgroundColor,
|
|
1149
|
+
color: P.value.color,
|
|
1150
|
+
borderRadius: P.value.borderRadius,
|
|
1151
|
+
borderColor: P.value.borderColor,
|
|
1152
|
+
borderWidth: P.value.borderWidth,
|
|
1153
|
+
fontSize: P.value.fontSize,
|
|
1154
|
+
backgroundOpacity: P.value.backgroundOpacity,
|
|
1155
|
+
position: P.value.position,
|
|
1156
|
+
offsetX: P.value.offsetX,
|
|
1157
|
+
offsetY: P.value.offsetY,
|
|
1158
|
+
parent: O.value,
|
|
1159
|
+
content: Pt.value,
|
|
1160
|
+
isFullscreen: $.value,
|
|
1161
|
+
isCustom: P.value.customFormat && typeof P.value.customFormat == "function",
|
|
1162
|
+
smooth: P.value.smooth,
|
|
1163
|
+
backdropFilter: P.value.backdropFilter,
|
|
1164
|
+
smoothForce: P.value.smoothForce,
|
|
1165
|
+
smoothSnapThreshold: P.value.smoothSnapThreshold,
|
|
1166
|
+
isA11yMode: Jt.value === "keyboard",
|
|
1167
|
+
a11yPosition: qt.value
|
|
1168
|
+
}, {
|
|
1169
|
+
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...Mn.value })), void 0, !0)]),
|
|
1170
|
+
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...Mn.value })), void 0, !0)]),
|
|
1171
|
+
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...Mn.value })), void 0, !0)]),
|
|
1172
|
+
_: 3
|
|
1173
|
+
}, 8, [
|
|
1174
|
+
"teleportTo",
|
|
1175
|
+
"show",
|
|
1176
|
+
"backgroundColor",
|
|
1177
|
+
"color",
|
|
1178
|
+
"borderRadius",
|
|
1179
|
+
"borderColor",
|
|
1180
|
+
"borderWidth",
|
|
1181
|
+
"fontSize",
|
|
1182
|
+
"backgroundOpacity",
|
|
1183
|
+
"position",
|
|
1184
|
+
"offsetX",
|
|
1185
|
+
"offsetY",
|
|
1186
|
+
"parent",
|
|
1187
|
+
"content",
|
|
1188
|
+
"isFullscreen",
|
|
1189
|
+
"isCustom",
|
|
1190
|
+
"smooth",
|
|
1191
|
+
"backdropFilter",
|
|
1192
|
+
"smoothForce",
|
|
1193
|
+
"smoothSnapThreshold",
|
|
1194
|
+
"isA11yMode",
|
|
1195
|
+
"a11yPosition"
|
|
1196
|
+
]),
|
|
1197
|
+
Nt.value && j.value.buttons.table ? (v(), l(Je(Hn.value.component), Ue({ key: 8 }, Hn.value.props, {
|
|
1198
|
+
ref_key: "tableUnit",
|
|
1199
|
+
ref: Gt,
|
|
1200
|
+
onClose: Un
|
|
1201
|
+
}), Be({
|
|
1202
|
+
content: S(() => [(v(), l(x(wt), {
|
|
1203
|
+
key: `table_${Vt.value}`,
|
|
1204
|
+
colNames: Q.value.colNames,
|
|
1205
|
+
head: Q.value.head,
|
|
1206
|
+
body: Q.value.body,
|
|
1207
|
+
config: Q.value.config,
|
|
1208
|
+
title: A.value.table.useDialog ? "" : Hn.value.title,
|
|
1209
|
+
withCloseButton: !A.value.table.useDialog,
|
|
1210
|
+
isCursorPointer: L.value,
|
|
1211
|
+
onClose: Un
|
|
1212
|
+
}, {
|
|
1213
|
+
th: S(({ th: e }) => [e === "__SUM__" ? (v(), d("div", yt, [He(x(St), {
|
|
1214
|
+
name: "sigma",
|
|
1215
|
+
stroke: Q.value.config.th.color,
|
|
1216
|
+
size: 16
|
|
1217
|
+
}, null, 8, ["stroke"])])) : (v(), d("div", bt, Xe(e), 1))]),
|
|
1218
|
+
td: S(({ td: e }) => [Ve(Xe(e.name || e), 1)]),
|
|
1219
|
+
_: 1
|
|
1220
|
+
}, 8, [
|
|
1221
|
+
"colNames",
|
|
1222
|
+
"head",
|
|
1223
|
+
"body",
|
|
1224
|
+
"config",
|
|
1225
|
+
"title",
|
|
1226
|
+
"withCloseButton",
|
|
1227
|
+
"isCursorPointer"
|
|
1228
|
+
]))]),
|
|
1229
|
+
_: 2
|
|
1230
|
+
}, [A.value.table.useDialog ? {
|
|
1231
|
+
name: "title",
|
|
1232
|
+
fn: S(() => [Ve(Xe(Hn.value.title), 1)]),
|
|
1233
|
+
key: "0"
|
|
1234
|
+
} : void 0, A.value.table.useDialog ? {
|
|
1235
|
+
name: "actions",
|
|
1236
|
+
fn: S(() => [f("button", {
|
|
1237
|
+
tabindex: "0",
|
|
1238
|
+
class: "vue-ui-user-options-button",
|
|
1239
|
+
onClick: t[1] ||= (e) => Pn(j.value.callbacks.csv),
|
|
1240
|
+
style: _({ cursor: L.value ? "pointer" : "default" })
|
|
1241
|
+
}, [He(x(St), {
|
|
1242
|
+
name: "fileCsv",
|
|
1243
|
+
stroke: Hn.value.props.color
|
|
1244
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1245
|
+
key: "1"
|
|
1246
|
+
} : void 0]), 1040)) : u("", !0),
|
|
1247
|
+
b(e.$slots, "skeleton", {}, () => [x(R) ? (v(), l(ye, { key: 0 })) : u("", !0)], !0)
|
|
1248
|
+
], 46, tt));
|
|
1249
|
+
}
|
|
1250
|
+
}, [["__scopeId", "data-v-1450f452"]]);
|
|
1251
|
+
//#endregion
|
|
1252
|
+
export { et as n, xt as t };
|