vue-data-ui 3.25.7 → 3.25.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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.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-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-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.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 +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,73 +1,73 @@
|
|
|
1
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,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { l as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { Fragment as
|
|
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, Z as ae, Zt as oe, b as se, ht as ce, i as le, lt as ue, nt as de, q as fe, t as pe, w as me } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as _e } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as ve } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ye, t as be } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as xe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Ce } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as we } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as Te } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as Ee } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as De } from "./Shape-CIqU-p2F.js";
|
|
14
|
+
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as ke, t as Ae } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as je } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as Me } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
18
|
+
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Ie } from "./labelUtils-BXX2NzRe.js";
|
|
22
|
+
import { t as Le } from "./Legend-X4kF4PvW.js";
|
|
23
|
+
import { t as Re } from "./vue_ui_rings-BVgD2aMn.js";
|
|
24
|
+
import { Fragment as ze, Teleport as Be, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as We, nextTick as Ge, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ke, onMounted as qe, openBlock as v, ref as y, renderList as Je, renderSlot as b, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as Ze, toRefs as Qe, unref as x, useSlots as $e, watch as et, withCtx as S } from "vue";
|
|
25
25
|
//#region src/components/vue-ui-rings.vue
|
|
26
|
-
var
|
|
26
|
+
var tt = /* @__PURE__ */ e({ default: () => St }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
|
|
27
27
|
"xmlns",
|
|
28
28
|
"viewBox",
|
|
29
29
|
"aria-describedby"
|
|
30
|
-
],
|
|
30
|
+
], st = ["width", "height"], ct = { key: 1 }, lt = [
|
|
31
31
|
"stroke",
|
|
32
32
|
"cx",
|
|
33
33
|
"cy",
|
|
34
34
|
"r",
|
|
35
35
|
"fill"
|
|
36
|
-
],
|
|
36
|
+
], ut = [
|
|
37
37
|
"stroke",
|
|
38
38
|
"stroke-width",
|
|
39
39
|
"cx",
|
|
40
40
|
"cy",
|
|
41
41
|
"r",
|
|
42
42
|
"fill"
|
|
43
|
-
],
|
|
43
|
+
], dt = [
|
|
44
44
|
"stroke",
|
|
45
45
|
"stroke-width",
|
|
46
46
|
"cx",
|
|
47
47
|
"cy",
|
|
48
48
|
"r",
|
|
49
49
|
"fill"
|
|
50
|
-
],
|
|
50
|
+
], ft = [
|
|
51
51
|
"cx",
|
|
52
52
|
"cy",
|
|
53
53
|
"r",
|
|
54
54
|
"onMouseenter",
|
|
55
55
|
"onMouseleave",
|
|
56
56
|
"onClick"
|
|
57
|
-
],
|
|
57
|
+
], pt = [
|
|
58
58
|
"x",
|
|
59
59
|
"y",
|
|
60
60
|
"width",
|
|
61
61
|
"height",
|
|
62
62
|
"fill",
|
|
63
63
|
"rx"
|
|
64
|
-
],
|
|
64
|
+
], mt = [
|
|
65
65
|
"cx",
|
|
66
66
|
"cy",
|
|
67
67
|
"r",
|
|
68
68
|
"fill",
|
|
69
69
|
"stroke"
|
|
70
|
-
],
|
|
70
|
+
], ht = [
|
|
71
71
|
"text-anchor",
|
|
72
72
|
"font-size",
|
|
73
73
|
"fill",
|
|
@@ -77,7 +77,7 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
77
77
|
"onMouseleave",
|
|
78
78
|
"onClick",
|
|
79
79
|
"innerHTML"
|
|
80
|
-
],
|
|
80
|
+
], gt = {
|
|
81
81
|
key: 0,
|
|
82
82
|
style: {
|
|
83
83
|
position: "absolute",
|
|
@@ -87,10 +87,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
87
87
|
},
|
|
88
88
|
"data-dom-to-png-ignore": "",
|
|
89
89
|
"aria-hidden": "true"
|
|
90
|
-
},
|
|
90
|
+
}, _t = {
|
|
91
91
|
key: 5,
|
|
92
92
|
class: "vue-data-ui-watermark"
|
|
93
|
-
},
|
|
93
|
+
}, vt = ["id"], yt = ["onClick"], bt = { key: 0 }, xt = { key: 1 }, St = /*#__PURE__*/ Oe({
|
|
94
94
|
__name: "vue-ui-rings",
|
|
95
95
|
props: {
|
|
96
96
|
config: {
|
|
@@ -107,18 +107,18 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
emits: ["selectLegend", "copyAlt"],
|
|
110
|
-
setup(e, { expose:
|
|
111
|
-
let
|
|
110
|
+
setup(e, { expose: Oe, emit: tt }) {
|
|
111
|
+
let St = p(() => import("./Tooltip-hhrkQ3Lk.js")), Ct = p(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), wt = p(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Tt = p(() => import("./DataTable-oiM9uWrQ.js")), Et = p(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Dt = p(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ot = p(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), kt = p(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_rings: At } = _e(), { isThemeValid: jt, warnInvalidTheme: Mt } = Se(), Nt = $e(), C = e, w = y(!1), Pt = c(() => !!C.dataset && C.dataset.length), T = y(fe()), E = y(!1), Ft = y(""), D = y(null), It = y(0), O = y(null), Lt = y(null), Rt = y(null), zt = y(null), Bt = y(null), Vt = y(0), Ht = y(0), Ut = y(0), Wt = y(!1), Gt = y(!1), Kt = y(null), qt = y(null), k = y(null), Jt = y({
|
|
112
112
|
x: 0,
|
|
113
113
|
y: 0
|
|
114
|
-
}),
|
|
115
|
-
|
|
114
|
+
}), Yt = y("pointer"), Xt = y(!1), A = y(rn()), 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
|
+
he({
|
|
116
116
|
config: () => A.value,
|
|
117
117
|
dataset: () => C.dataset,
|
|
118
118
|
component: "VueUiRings",
|
|
119
119
|
rules: [
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
ge.singleSeries,
|
|
121
|
+
ge.emptyArray,
|
|
122
122
|
{
|
|
123
123
|
test: (e) => e.length > 6,
|
|
124
124
|
message: [
|
|
@@ -133,10 +133,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
133
133
|
}
|
|
134
134
|
]
|
|
135
135
|
});
|
|
136
|
-
let { transitionEnabled: I } =
|
|
136
|
+
let { transitionEnabled: I } = we({
|
|
137
137
|
config: () => A.value.transitions,
|
|
138
138
|
dataset: () => C.dataset
|
|
139
|
-
}), L = c(() => A.value.userOptions.useCursorPointer),
|
|
139
|
+
}), L = c(() => A.value.userOptions.useCursorPointer), Zt = c(() => oe({
|
|
140
140
|
defaultConfig: {
|
|
141
141
|
userOptions: { show: !1 },
|
|
142
142
|
table: { show: !1 },
|
|
@@ -153,10 +153,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
153
153
|
} }
|
|
154
154
|
},
|
|
155
155
|
userConfig: A.value.skeletonConfig ?? {}
|
|
156
|
-
})), { loading: R, FINAL_DATASET:
|
|
157
|
-
...
|
|
156
|
+
})), { loading: R, FINAL_DATASET: Qt, manualLoading: $t } = ye({
|
|
157
|
+
...Qe(C),
|
|
158
158
|
FINAL_CONFIG: A,
|
|
159
|
-
prepareConfig:
|
|
159
|
+
prepareConfig: rn,
|
|
160
160
|
skeletonDataset: C.config?.skeletonDataset ?? [
|
|
161
161
|
{
|
|
162
162
|
name: "_",
|
|
@@ -184,85 +184,97 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
184
184
|
color: "#DBDBDB"
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
|
-
skeletonConfig:
|
|
187
|
+
skeletonConfig: oe({
|
|
188
188
|
defaultConfig: A.value,
|
|
189
|
-
userConfig:
|
|
189
|
+
userConfig: Zt.value
|
|
190
190
|
})
|
|
191
|
-
}), { userOptionsVisible:
|
|
192
|
-
function
|
|
193
|
-
let e =
|
|
191
|
+
}), { userOptionsVisible: en, setUserOptionsVisibility: tn, keepUserOptionState: nn } = Pe({ config: A.value }), { svgRef: z } = Fe({ config: F.value.title });
|
|
192
|
+
function rn() {
|
|
193
|
+
let e = xe({
|
|
194
194
|
userConfig: C.config,
|
|
195
|
-
defaultConfig:
|
|
195
|
+
defaultConfig: At
|
|
196
196
|
}), t = e.theme;
|
|
197
197
|
if (!t) return e;
|
|
198
|
-
if (!
|
|
199
|
-
let n =
|
|
200
|
-
userConfig:
|
|
198
|
+
if (!jt.value(e)) return Mt(e), e;
|
|
199
|
+
let n = xe({
|
|
200
|
+
userConfig: Re[t] || C.config,
|
|
201
201
|
defaultConfig: e
|
|
202
202
|
});
|
|
203
203
|
return {
|
|
204
|
-
...
|
|
204
|
+
...xe({
|
|
205
205
|
userConfig: C.config,
|
|
206
206
|
defaultConfig: n
|
|
207
207
|
}),
|
|
208
208
|
customPalette: e.customPalette.length ? e.customPalette : ie[e.theme] || a
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
function an(e) {
|
|
212
|
+
let t = ae(e);
|
|
213
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
214
|
+
}
|
|
215
|
+
let on = an(C.config);
|
|
216
|
+
et(() => C.config, (e, t) => {
|
|
217
|
+
let n = an(e), r = n !== on;
|
|
218
|
+
on = n;
|
|
219
|
+
let i = rn();
|
|
220
|
+
if (!r) {
|
|
221
|
+
A.value.style.chart.tooltip = i.style.chart.tooltip, U.value.showTooltip = A.value.style.chart.tooltip.show;
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
R.value || (A.value = i), en.value = !A.value.userOptions.showOnChartHover, ln(), Vt.value += 1, Ht.value += 1, Ut.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
225
|
}, { deep: !0 });
|
|
214
|
-
let
|
|
226
|
+
let sn = c(() => {
|
|
215
227
|
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
228
|
return {
|
|
217
229
|
x: A.value.responsive ? i : n / F.value.size * W.value.width,
|
|
218
230
|
y: 0 / F.value.size * W.value.height
|
|
219
231
|
};
|
|
220
232
|
}), B = c(() => ({
|
|
221
|
-
x: W.value.width / 2 +
|
|
222
|
-
y: W.value.height / 2 +
|
|
233
|
+
x: W.value.width / 2 + sn.value.x,
|
|
234
|
+
y: W.value.height / 2 + sn.value.y
|
|
223
235
|
}));
|
|
224
|
-
|
|
225
|
-
Array.isArray(e) && e.length > 0 && (
|
|
236
|
+
et(() => C.dataset, (e) => {
|
|
237
|
+
Array.isArray(e) && e.length > 0 && ($t.value = !1);
|
|
226
238
|
}, { deep: !0 });
|
|
227
|
-
let V =
|
|
228
|
-
|
|
229
|
-
|
|
239
|
+
let V = Xe(null), H = Xe(null);
|
|
240
|
+
qe(() => {
|
|
241
|
+
Gt.value = !0, ln();
|
|
230
242
|
});
|
|
231
|
-
let
|
|
232
|
-
function
|
|
233
|
-
if (o(C.dataset) ? (
|
|
243
|
+
let cn = c(() => A.value.debug);
|
|
244
|
+
function ln() {
|
|
245
|
+
if (o(C.dataset) ? (de({
|
|
234
246
|
componentName: "VueUiRings",
|
|
235
247
|
type: "dataset",
|
|
236
|
-
debug:
|
|
237
|
-
}),
|
|
238
|
-
e.values.length || (
|
|
248
|
+
debug: cn.value
|
|
249
|
+
}), $t.value = !0) : C.dataset.forEach((e, t) => {
|
|
250
|
+
e.values.length || (de({
|
|
239
251
|
componentName: "VueUiRings",
|
|
240
252
|
type: "dataset",
|
|
241
|
-
debug:
|
|
242
|
-
}),
|
|
253
|
+
debug: cn.value
|
|
254
|
+
}), $t.value = !0), ce({
|
|
243
255
|
datasetObject: e,
|
|
244
256
|
requiredAttributes: ["name", "values"]
|
|
245
257
|
}).forEach((e) => {
|
|
246
|
-
|
|
258
|
+
de({
|
|
247
259
|
componentName: "VueUiRings",
|
|
248
260
|
type: "datasetSerieAttribute",
|
|
249
261
|
property: e,
|
|
250
262
|
index: t,
|
|
251
|
-
debug:
|
|
263
|
+
debug: cn.value
|
|
252
264
|
});
|
|
253
265
|
});
|
|
254
|
-
}), o(C.dataset) || (
|
|
255
|
-
let e =
|
|
256
|
-
|
|
257
|
-
let { width: e, height: t } =
|
|
266
|
+
}), o(C.dataset) || ($t.value = A.value.loading), A.value.responsive) {
|
|
267
|
+
let e = ke(() => {
|
|
268
|
+
Wt.value = !0;
|
|
269
|
+
let { width: e, height: t } = Ae({
|
|
258
270
|
chart: O.value,
|
|
259
|
-
title: F.value.title.text ?
|
|
260
|
-
legend: F.value.legend.show ?
|
|
261
|
-
source:
|
|
262
|
-
noTitle:
|
|
271
|
+
title: F.value.title.text ? Lt.value : null,
|
|
272
|
+
legend: F.value.legend.show ? Rt.value : null,
|
|
273
|
+
source: zt.value,
|
|
274
|
+
noTitle: Bt.value
|
|
263
275
|
});
|
|
264
276
|
requestAnimationFrame(() => {
|
|
265
|
-
W.value.width = e, W.value.height = t - 12,
|
|
277
|
+
W.value.width = e, W.value.height = t - 12, Wt.value = !1;
|
|
266
278
|
});
|
|
267
279
|
});
|
|
268
280
|
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);
|
|
@@ -271,19 +283,19 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
271
283
|
w.value = !0;
|
|
272
284
|
}, 600);
|
|
273
285
|
}
|
|
274
|
-
|
|
286
|
+
Ke(() => {
|
|
275
287
|
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
|
|
276
288
|
});
|
|
277
|
-
let { isPrinting:
|
|
289
|
+
let { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = ve({
|
|
278
290
|
elementId: `rings_${T.value}`,
|
|
279
291
|
fileName: F.value.title.text || "vue-ui-rings",
|
|
280
292
|
options: A.value.userOptions.print
|
|
281
|
-
}),
|
|
293
|
+
}), mn = c(() => A.value.userOptions.show && !F.value.title.text), hn = c(() => me(A.value.customPalette)), U = y({
|
|
282
294
|
showTable: A.value.table.show,
|
|
283
295
|
showTooltip: P.value.show,
|
|
284
296
|
showLabels: N.value.dataLabels.show
|
|
285
297
|
});
|
|
286
|
-
|
|
298
|
+
et(A, () => {
|
|
287
299
|
U.value = {
|
|
288
300
|
showTable: A.value.table.show,
|
|
289
301
|
showTooltip: P.value.show,
|
|
@@ -293,54 +305,54 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
293
305
|
let W = y({
|
|
294
306
|
height: F.value.size,
|
|
295
307
|
width: F.value.size
|
|
296
|
-
}),
|
|
297
|
-
function
|
|
298
|
-
G.value.length ? G.value = [] :
|
|
308
|
+
}), gn = c(() => Math.min(W.value.height, W.value.width)), _n = tt, G = y([]);
|
|
309
|
+
function vn() {
|
|
310
|
+
G.value.length ? G.value = [] : En.value.forEach((e) => {
|
|
299
311
|
G.value.push(e.uid);
|
|
300
|
-
}),
|
|
312
|
+
}), yn();
|
|
301
313
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
314
|
+
function yn() {
|
|
315
|
+
_n("selectLegend", J.value.map((e) => ({
|
|
304
316
|
name: e.name,
|
|
305
317
|
color: e.color,
|
|
306
318
|
value: e.value
|
|
307
319
|
})));
|
|
308
320
|
}
|
|
309
|
-
function
|
|
321
|
+
function bn(e) {
|
|
310
322
|
if (G.value.includes(e)) G.value = G.value.filter((t) => t !== e);
|
|
311
323
|
else {
|
|
312
324
|
if (G.value.length === K.value.length - 1) return;
|
|
313
325
|
G.value.push(e);
|
|
314
326
|
}
|
|
315
|
-
|
|
327
|
+
yn();
|
|
316
328
|
}
|
|
317
|
-
function
|
|
318
|
-
return K.value.length ? K.value.find((t) => t.name === e) || (
|
|
329
|
+
function xn(e) {
|
|
330
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (cn.value && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (cn.value && console.warn("VueUiRings - There are no series to show."), null);
|
|
319
331
|
}
|
|
320
|
-
function
|
|
321
|
-
let t =
|
|
322
|
-
t !== null && G.value.includes(t.uid) &&
|
|
332
|
+
function Sn(e) {
|
|
333
|
+
let t = xn(e);
|
|
334
|
+
t !== null && G.value.includes(t.uid) && bn(t.uid);
|
|
323
335
|
}
|
|
324
|
-
function
|
|
325
|
-
let t =
|
|
326
|
-
t !== null && (G.value.includes(t.uid) ||
|
|
336
|
+
function Cn(e) {
|
|
337
|
+
let t = xn(e);
|
|
338
|
+
t !== null && (G.value.includes(t.uid) || bn(t.uid));
|
|
327
339
|
}
|
|
328
|
-
let
|
|
329
|
-
function
|
|
330
|
-
return e /
|
|
340
|
+
let wn = c(() => Math.max(...K.value.filter((e) => !G.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
341
|
+
function Tn(e) {
|
|
342
|
+
return e / wn.value;
|
|
331
343
|
}
|
|
332
|
-
let K = c(() =>
|
|
344
|
+
let K = c(() => Qt.value.map(({ values: e, name: t, color: n = null }, r) => {
|
|
333
345
|
let i = ne(e).reduce((e, t) => e + t, 0);
|
|
334
346
|
return {
|
|
335
347
|
name: t,
|
|
336
|
-
color: n || ee(n) ||
|
|
348
|
+
color: n || ee(n) || hn.value[r] || a[r] || a[r % a.length],
|
|
337
349
|
value: i,
|
|
338
|
-
proportion: i /
|
|
339
|
-
uid:
|
|
350
|
+
proportion: i / Qt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
351
|
+
uid: fe(),
|
|
340
352
|
absoluteIndex: r
|
|
341
353
|
};
|
|
342
|
-
})),
|
|
343
|
-
let n =
|
|
354
|
+
})), En = c(() => K.value.map((e, t) => {
|
|
355
|
+
let n = le(N.value.dataLabels.formatter, e.value, s({
|
|
344
356
|
p: N.value.dataLabels.prefix,
|
|
345
357
|
v: e.value,
|
|
346
358
|
s: N.value.dataLabels.suffix,
|
|
@@ -352,7 +364,7 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
352
364
|
v: e.value / q.value * 100,
|
|
353
365
|
s: "%",
|
|
354
366
|
r: F.value.legend.roundingPercentage
|
|
355
|
-
}), i =
|
|
367
|
+
}), i = jn({
|
|
356
368
|
showVal: F.value.legend.showValue,
|
|
357
369
|
showPercentage: F.value.legend.showPercentage,
|
|
358
370
|
val: n,
|
|
@@ -362,11 +374,11 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
362
374
|
...e,
|
|
363
375
|
shape: "circle",
|
|
364
376
|
opacity: G.value.includes(e.uid) ? .5 : 1,
|
|
365
|
-
segregate: () =>
|
|
377
|
+
segregate: () => bn(e.uid),
|
|
366
378
|
isSegregated: G.value.includes(e.uid),
|
|
367
379
|
display: `${e.name}${F.value.legend.showPercentage || F.value.legend.showValue ? ": " : ""}${i}`
|
|
368
380
|
};
|
|
369
|
-
}).toSorted((e, t) => t.value - e.value)),
|
|
381
|
+
}).toSorted((e, t) => t.value - e.value)), Dn = c(() => ({
|
|
370
382
|
cy: "rings-div-legend",
|
|
371
383
|
backgroundColor: F.value.legend.backgroundColor,
|
|
372
384
|
color: F.value.legend.color,
|
|
@@ -377,13 +389,13 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
377
389
|
absoluteIndex: i,
|
|
378
390
|
uid: r,
|
|
379
391
|
name: e,
|
|
380
|
-
color: n || ee(n) ||
|
|
392
|
+
color: n || ee(n) || hn.value[o] || a[o] || a[o % a.length],
|
|
381
393
|
value: t,
|
|
382
|
-
proportion:
|
|
394
|
+
proportion: Tn(t),
|
|
383
395
|
percentage: t / q.value * 100,
|
|
384
|
-
strokeWidth: M.value.strokeWidth *
|
|
396
|
+
strokeWidth: M.value.strokeWidth * Tn(t)
|
|
385
397
|
})).toSorted((e, t) => t.value - e.value));
|
|
386
|
-
function
|
|
398
|
+
function On() {
|
|
387
399
|
return J.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
388
400
|
name: e,
|
|
389
401
|
color: t,
|
|
@@ -392,22 +404,22 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
392
404
|
percentage: i
|
|
393
405
|
}));
|
|
394
406
|
}
|
|
395
|
-
let Y = c(() =>
|
|
396
|
-
function
|
|
407
|
+
let Y = c(() => gn.value - M.value.strokeWidth * 2);
|
|
408
|
+
function kn(e, t) {
|
|
397
409
|
A.value.events.datapointClick && A.value.events.datapointClick({
|
|
398
410
|
datapoint: e,
|
|
399
411
|
seriesIndex: t
|
|
400
412
|
});
|
|
401
413
|
}
|
|
402
|
-
function
|
|
403
|
-
D.value = null, E.value = !1, k.value = null,
|
|
414
|
+
function An(e, t) {
|
|
415
|
+
D.value = null, E.value = !1, k.value = null, Yt.value = "pointer", A.value.events.datapointLeave && A.value.events.datapointLeave({
|
|
404
416
|
datapoint: e,
|
|
405
417
|
seriesIndex: t
|
|
406
418
|
});
|
|
407
419
|
}
|
|
408
|
-
function
|
|
420
|
+
function jn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
409
421
|
let i = N.value.dataLabels;
|
|
410
|
-
return
|
|
422
|
+
return Ie({
|
|
411
423
|
config: i,
|
|
412
424
|
val: e,
|
|
413
425
|
percentage: t,
|
|
@@ -415,8 +427,8 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
415
427
|
showPercentage: r
|
|
416
428
|
});
|
|
417
429
|
}
|
|
418
|
-
function
|
|
419
|
-
let t = N.value.dataLabels, n =
|
|
430
|
+
function Mn(e) {
|
|
431
|
+
let t = N.value.dataLabels, n = le(t.formatter, e.value, s({
|
|
420
432
|
p: t.prefix,
|
|
421
433
|
v: e.value,
|
|
422
434
|
s: t.suffix,
|
|
@@ -426,45 +438,45 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
426
438
|
s: "%",
|
|
427
439
|
r: t.roundingPercentage
|
|
428
440
|
});
|
|
429
|
-
return `${e.name}\n${
|
|
441
|
+
return `${e.name}\n${jn({
|
|
430
442
|
val: n,
|
|
431
443
|
percentage: r,
|
|
432
444
|
showVal: t.showValue,
|
|
433
445
|
showPercentage: t.showPercentage
|
|
434
446
|
})}`;
|
|
435
447
|
}
|
|
436
|
-
function
|
|
437
|
-
return
|
|
448
|
+
function Nn(e) {
|
|
449
|
+
return se(Y.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : Y.value * e.proportion / 2 * .9);
|
|
438
450
|
}
|
|
439
|
-
function
|
|
451
|
+
function Pn(e, t) {
|
|
440
452
|
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
453
|
}
|
|
442
454
|
function X(e, t) {
|
|
443
455
|
let n = N.value.dataLabels.markers.position === "left" ? -(Y.value / 2) : Y.value / 2;
|
|
444
456
|
return {
|
|
445
457
|
x: B.value.x + n,
|
|
446
|
-
y:
|
|
458
|
+
y: Pn(e, t) - Nn(e)
|
|
447
459
|
};
|
|
448
460
|
}
|
|
449
|
-
let
|
|
450
|
-
function
|
|
461
|
+
let Fn = y(null);
|
|
462
|
+
function In(e, t, r = "pointer") {
|
|
451
463
|
if (A.value.events.datapointEnter && A.value.events.datapointEnter({
|
|
452
464
|
datapoint: e,
|
|
453
465
|
seriesIndex: t
|
|
454
466
|
}), G.value.length === C.dataset.length) return;
|
|
455
|
-
|
|
467
|
+
Fn.value = {
|
|
456
468
|
datapoint: e,
|
|
457
469
|
seriesIndex: t,
|
|
458
470
|
series: J.value,
|
|
459
471
|
config: A.value
|
|
460
|
-
}, D.value = t, k.value = t,
|
|
472
|
+
}, D.value = t, k.value = t, Yt.value = r;
|
|
461
473
|
let i = J.value[t], a = P.value.customFormat;
|
|
462
|
-
if (n(a) &&
|
|
474
|
+
if (n(a) && ue(() => a({
|
|
463
475
|
seriesIndex: t,
|
|
464
476
|
datapoint: e,
|
|
465
477
|
series: J.value,
|
|
466
478
|
config: A.value
|
|
467
|
-
})))
|
|
479
|
+
}))) Ft.value = a({
|
|
468
480
|
seriesIndex: t,
|
|
469
481
|
datapoint: e,
|
|
470
482
|
series: J.value,
|
|
@@ -472,10 +484,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
472
484
|
});
|
|
473
485
|
else {
|
|
474
486
|
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}" />${
|
|
487
|
+
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}" />${Nt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${T.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${jn({
|
|
476
488
|
showVal: P.value.showValue,
|
|
477
489
|
showPercentage: P.value.showPercentage,
|
|
478
|
-
val: `<span>${
|
|
490
|
+
val: `<span>${le(N.value.dataLabels.formatter, i.value, s({
|
|
479
491
|
p: N.value.dataLabels.prefix,
|
|
480
492
|
v: i.value,
|
|
481
493
|
s: N.value.dataLabels.suffix,
|
|
@@ -489,7 +501,7 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
489
501
|
s: "%",
|
|
490
502
|
r: P.value.roundingPercentage
|
|
491
503
|
})
|
|
492
|
-
})}</b></div>`,
|
|
504
|
+
})}</b></div>`, Ft.value = n;
|
|
493
505
|
}
|
|
494
506
|
E.value = !0;
|
|
495
507
|
}
|
|
@@ -546,8 +558,8 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
546
558
|
]
|
|
547
559
|
};
|
|
548
560
|
});
|
|
549
|
-
function
|
|
550
|
-
|
|
561
|
+
function Ln(e = null) {
|
|
562
|
+
Ge(() => {
|
|
551
563
|
let n = Z.value.head.map((e, t) => [
|
|
552
564
|
[e.name],
|
|
553
565
|
[Z.value.body[t]],
|
|
@@ -568,25 +580,25 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
568
580
|
});
|
|
569
581
|
}
|
|
570
582
|
let $ = y(!1);
|
|
571
|
-
function
|
|
572
|
-
$.value = e,
|
|
583
|
+
function Rn(e) {
|
|
584
|
+
$.value = e, It.value += 1;
|
|
573
585
|
}
|
|
574
|
-
function
|
|
586
|
+
function zn() {
|
|
575
587
|
U.value.showTable = !U.value.showTable;
|
|
576
588
|
}
|
|
577
|
-
function
|
|
589
|
+
function Bn() {
|
|
578
590
|
U.value.showTooltip = !U.value.showTooltip;
|
|
579
591
|
}
|
|
580
|
-
function
|
|
592
|
+
function Vn() {
|
|
581
593
|
U.value.showLabels = !U.value.showLabels;
|
|
582
594
|
}
|
|
583
|
-
let
|
|
584
|
-
function
|
|
585
|
-
|
|
595
|
+
let Hn = y(!1);
|
|
596
|
+
function Un() {
|
|
597
|
+
Hn.value = !Hn.value;
|
|
586
598
|
}
|
|
587
|
-
async function
|
|
599
|
+
async function Wn({ scale: e = 2 } = {}) {
|
|
588
600
|
if (!O.value) return;
|
|
589
|
-
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
601
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Te({
|
|
590
602
|
domElement: O.value,
|
|
591
603
|
base64: !0,
|
|
592
604
|
img: !0,
|
|
@@ -601,10 +613,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
601
613
|
aspectRatio: r
|
|
602
614
|
};
|
|
603
615
|
}
|
|
604
|
-
let
|
|
616
|
+
let Gn = c(() => {
|
|
605
617
|
let e = A.value.table.useDialog && !A.value.table.show, t = U.value.showTable;
|
|
606
618
|
return {
|
|
607
|
-
component: e ?
|
|
619
|
+
component: e ? kt : wt,
|
|
608
620
|
title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
|
|
609
621
|
props: e ? {
|
|
610
622
|
backgroundColor: A.value.table.th.backgroundColor,
|
|
@@ -632,26 +644,26 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
632
644
|
}
|
|
633
645
|
};
|
|
634
646
|
});
|
|
635
|
-
|
|
636
|
-
A.value.table.show || (e && A.value.table.useDialog &&
|
|
647
|
+
et(() => U.value.showTable, (e) => {
|
|
648
|
+
A.value.table.show || (e && A.value.table.useDialog && Kt.value ? Kt.value.open() : "close" in Kt.value && Kt.value.close());
|
|
637
649
|
});
|
|
638
|
-
function
|
|
639
|
-
U.value.showTable = !1,
|
|
650
|
+
function Kn() {
|
|
651
|
+
U.value.showTable = !1, qt.value && qt.value.setTableIconState(!1);
|
|
640
652
|
}
|
|
641
|
-
let
|
|
653
|
+
let qn = c(() => En.value.map((e) => ({
|
|
642
654
|
...e,
|
|
643
655
|
name: e.display
|
|
644
|
-
}))),
|
|
656
|
+
}))), Jn = c(() => F.value.backgroundColor), Yn = c(() => F.value.legend), Xn = c(() => F.value.title), { isCallbackImaging: Zn, isCallbackSvg: Qn, generateSvg: $n, onGenerateImage: er } = Ce({
|
|
645
657
|
svg: z,
|
|
646
|
-
title:
|
|
647
|
-
legend:
|
|
648
|
-
legendItems:
|
|
649
|
-
backgroundColor:
|
|
658
|
+
title: Xn,
|
|
659
|
+
legend: Yn,
|
|
660
|
+
legendItems: qn,
|
|
661
|
+
backgroundColor: Jn,
|
|
650
662
|
getSvgCallback: () => A.value.userOptions.callbacks.svg,
|
|
651
|
-
generateImage:
|
|
663
|
+
generateImage: pn
|
|
652
664
|
});
|
|
653
|
-
async function
|
|
654
|
-
if (
|
|
665
|
+
async function tr() {
|
|
666
|
+
if (_n("copyAlt", {
|
|
655
667
|
config: A.value,
|
|
656
668
|
dataset: J.value
|
|
657
669
|
}), !A.value.userOptions.callbacks.altCopy) {
|
|
@@ -663,61 +675,61 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
663
675
|
dataset: J.value
|
|
664
676
|
}));
|
|
665
677
|
}
|
|
666
|
-
function
|
|
667
|
-
k.value = null,
|
|
678
|
+
function nr() {
|
|
679
|
+
k.value = null, Xt.value = !0;
|
|
668
680
|
}
|
|
669
|
-
function
|
|
670
|
-
k.value = null,
|
|
681
|
+
function rr() {
|
|
682
|
+
k.value = null, Yt.value = "pointer", E.value = !1, D.value = null, Xt.value = !1;
|
|
671
683
|
}
|
|
672
|
-
function
|
|
673
|
-
if (!z.value ||
|
|
684
|
+
function ir(e) {
|
|
685
|
+
if (!z.value || Hn.value || document.activeElement !== z.value || !J.value.length || G.value.length === C.dataset.length) return;
|
|
674
686
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
675
687
|
if (!t && !n && !r && !i) return;
|
|
676
688
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
677
|
-
k.value = null,
|
|
689
|
+
k.value = null, Yt.value = "pointer", E.value = !1, D.value = null;
|
|
678
690
|
return;
|
|
679
691
|
}
|
|
680
692
|
if (r) {
|
|
681
693
|
if (k.value === null) return;
|
|
682
694
|
let e = J.value[k.value];
|
|
683
695
|
if (!e) return;
|
|
684
|
-
|
|
696
|
+
kn(e, k.value);
|
|
685
697
|
return;
|
|
686
698
|
}
|
|
687
699
|
let a = k.value;
|
|
688
700
|
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
701
|
let o = J.value[a];
|
|
690
|
-
o && (
|
|
702
|
+
o && (ar(a), In(o, a, "keyboard"));
|
|
691
703
|
}
|
|
692
|
-
function
|
|
704
|
+
function ar(e) {
|
|
693
705
|
if (!Number.isFinite(e) || !z.value) return;
|
|
694
706
|
let t = J.value[e];
|
|
695
707
|
if (!t) return;
|
|
696
708
|
let n = X(t, e), r = z.value.getBoundingClientRect();
|
|
697
|
-
|
|
709
|
+
Jt.value = {
|
|
698
710
|
x: r.left + n.x / W.value.width * r.width,
|
|
699
711
|
y: r.top + n.y / W.value.height * r.height
|
|
700
712
|
};
|
|
701
713
|
}
|
|
702
|
-
let
|
|
714
|
+
let or = c(() => ({
|
|
703
715
|
headers: Q.value?.colNames ?? [],
|
|
704
716
|
rows: Q.value?.a11yBody ?? []
|
|
705
717
|
}));
|
|
706
|
-
return
|
|
707
|
-
getData:
|
|
708
|
-
getImage:
|
|
709
|
-
generatePdf:
|
|
710
|
-
generateCsv:
|
|
711
|
-
generateImage:
|
|
712
|
-
generateSvg:
|
|
713
|
-
hideSeries:
|
|
714
|
-
showSeries:
|
|
715
|
-
toggleTable:
|
|
716
|
-
toggleTooltip:
|
|
717
|
-
toggleAnnotator:
|
|
718
|
-
toggleFullscreen:
|
|
719
|
-
toggleLabels:
|
|
720
|
-
copyAlt:
|
|
718
|
+
return Oe({
|
|
719
|
+
getData: On,
|
|
720
|
+
getImage: Wn,
|
|
721
|
+
generatePdf: fn,
|
|
722
|
+
generateCsv: Ln,
|
|
723
|
+
generateImage: pn,
|
|
724
|
+
generateSvg: $n,
|
|
725
|
+
hideSeries: Cn,
|
|
726
|
+
showSeries: Sn,
|
|
727
|
+
toggleTable: zn,
|
|
728
|
+
toggleTooltip: Bn,
|
|
729
|
+
toggleAnnotator: Un,
|
|
730
|
+
toggleFullscreen: Rn,
|
|
731
|
+
toggleLabels: Vn,
|
|
732
|
+
copyAlt: tr
|
|
721
733
|
}), (e, t) => (v(), d("div", {
|
|
722
734
|
ref_key: "ringsChart",
|
|
723
735
|
ref: O,
|
|
@@ -725,19 +737,19 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
725
737
|
style: _(`font-family:${A.value.style.fontFamily};text-align:center;width:100%;background:${F.value.backgroundColor};${A.value.responsive ? "height: 100%" : ""}`),
|
|
726
738
|
id: `rings_${T.value}`,
|
|
727
739
|
onMouseleave: t[2] ||= (e) => {
|
|
728
|
-
D.value = null, E.value = !1, x(
|
|
740
|
+
D.value = null, E.value = !1, x(tn)(!1);
|
|
729
741
|
},
|
|
730
|
-
onMouseenter: t[3] ||= () => x(
|
|
742
|
+
onMouseenter: t[3] ||= () => x(tn)(!0)
|
|
731
743
|
}, [
|
|
732
744
|
f("div", {
|
|
733
745
|
id: `chart-instructions-${T.value}`,
|
|
734
746
|
class: "sr-only"
|
|
735
|
-
}, [f("p", null,
|
|
736
|
-
|
|
747
|
+
}, [f("p", null, Ze(A.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
|
|
748
|
+
or.value?.rows?.length ? (v(), l(Ne, {
|
|
737
749
|
key: 0,
|
|
738
750
|
uid: T.value,
|
|
739
|
-
head:
|
|
740
|
-
body:
|
|
751
|
+
head: or.value.headers,
|
|
752
|
+
body: or.value.rows,
|
|
741
753
|
notice: A.value.a11y.translations.tableAvailable,
|
|
742
754
|
caption: A.value.a11y.translations.tableCaption
|
|
743
755
|
}, null, 8, [
|
|
@@ -747,15 +759,15 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
747
759
|
"notice",
|
|
748
760
|
"caption"
|
|
749
761
|
])) : u("", !0),
|
|
750
|
-
j.value.buttons.annotator ? (v(), l(x(
|
|
762
|
+
j.value.buttons.annotator ? (v(), l(x(Et), {
|
|
751
763
|
key: 1,
|
|
752
764
|
svgRef: x(z),
|
|
753
765
|
backgroundColor: F.value.backgroundColor,
|
|
754
766
|
color: F.value.color,
|
|
755
|
-
active:
|
|
767
|
+
active: Hn.value,
|
|
756
768
|
isCursorPointer: L.value,
|
|
757
769
|
palette: j.value.annotatorPalette,
|
|
758
|
-
onClose:
|
|
770
|
+
onClose: Un
|
|
759
771
|
}, {
|
|
760
772
|
"annotator-action-close": S(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
761
773
|
"annotator-action-color": S(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
|
|
@@ -772,20 +784,20 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
772
784
|
"isCursorPointer",
|
|
773
785
|
"palette"
|
|
774
786
|
])) : u("", !0),
|
|
775
|
-
|
|
787
|
+
mn.value ? (v(), d("div", {
|
|
776
788
|
key: 2,
|
|
777
789
|
ref_key: "noTitle",
|
|
778
|
-
ref:
|
|
790
|
+
ref: Bt,
|
|
779
791
|
class: "vue-data-ui-no-title-space",
|
|
780
792
|
style: "height:36px; width: 100%;background:transparent"
|
|
781
793
|
}, null, 512)) : u("", !0),
|
|
782
794
|
F.value.title.text ? (v(), d("div", {
|
|
783
795
|
key: 3,
|
|
784
796
|
ref_key: "chartTitle",
|
|
785
|
-
ref:
|
|
797
|
+
ref: Lt,
|
|
786
798
|
style: "width:100%;background:transparent"
|
|
787
|
-
}, [(v(), l(
|
|
788
|
-
key: `title_${
|
|
799
|
+
}, [(v(), l(Ee, {
|
|
800
|
+
key: `title_${Vt.value}`,
|
|
789
801
|
config: {
|
|
790
802
|
title: {
|
|
791
803
|
cy: "rings-div-title",
|
|
@@ -797,15 +809,15 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
797
809
|
}
|
|
798
810
|
}
|
|
799
811
|
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
800
|
-
f("div", { id: `legend-top-${T.value}` }, null, 8,
|
|
801
|
-
j.value.show &&
|
|
812
|
+
f("div", { id: `legend-top-${T.value}` }, null, 8, it),
|
|
813
|
+
j.value.show && Pt.value && (x(nn) || x(en)) ? (v(), l(x(Dt), {
|
|
802
814
|
ref_key: "userOptionsRef",
|
|
803
|
-
ref:
|
|
804
|
-
key: `user_options_${
|
|
815
|
+
ref: qt,
|
|
816
|
+
key: `user_options_${It.value}`,
|
|
805
817
|
backgroundColor: F.value.backgroundColor,
|
|
806
818
|
color: F.value.color,
|
|
807
|
-
isPrinting: x(
|
|
808
|
-
isImaging: x(
|
|
819
|
+
isPrinting: x(un),
|
|
820
|
+
isImaging: x(dn),
|
|
809
821
|
uid: T.value,
|
|
810
822
|
hasTooltip: j.value.buttons.tooltip && P.value.show,
|
|
811
823
|
hasPdf: j.value.buttons.pdf,
|
|
@@ -822,23 +834,23 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
822
834
|
chartElement: O.value,
|
|
823
835
|
position: j.value.position,
|
|
824
836
|
hasAnnotator: j.value.buttons.annotator,
|
|
825
|
-
isAnnotation:
|
|
837
|
+
isAnnotation: Hn.value,
|
|
826
838
|
callbacks: j.value.callbacks,
|
|
827
839
|
printScale: j.value.print.scale,
|
|
828
840
|
tableDialog: A.value.table.useDialog,
|
|
829
841
|
isCursorPointer: L.value,
|
|
830
|
-
onToggleFullscreen:
|
|
831
|
-
onGeneratePdf: x(
|
|
832
|
-
onGenerateCsv:
|
|
833
|
-
onGenerateImage: x(
|
|
834
|
-
onGenerateSvg: x(
|
|
835
|
-
onToggleTable:
|
|
836
|
-
onToggleTooltip:
|
|
837
|
-
onToggleAnnotator:
|
|
838
|
-
onToggleLabels:
|
|
839
|
-
onCopyAlt:
|
|
840
|
-
style: _({ visibility: x(
|
|
841
|
-
},
|
|
842
|
+
onToggleFullscreen: Rn,
|
|
843
|
+
onGeneratePdf: x(fn),
|
|
844
|
+
onGenerateCsv: Ln,
|
|
845
|
+
onGenerateImage: x(er),
|
|
846
|
+
onGenerateSvg: x($n),
|
|
847
|
+
onToggleTable: zn,
|
|
848
|
+
onToggleTooltip: Bn,
|
|
849
|
+
onToggleAnnotator: Un,
|
|
850
|
+
onToggleLabels: Vn,
|
|
851
|
+
onCopyAlt: tr,
|
|
852
|
+
style: _({ visibility: x(nn) ? x(en) ? "visible" : "hidden" : "visible" })
|
|
853
|
+
}, Ve({ _: 2 }, [
|
|
842
854
|
e.$slots.menuIcon ? {
|
|
843
855
|
name: "menuIcon",
|
|
844
856
|
fn: S(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(m({
|
|
@@ -914,25 +926,25 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
914
926
|
key: "12"
|
|
915
927
|
} : void 0
|
|
916
928
|
]), 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",
|
|
929
|
+
f("div", at, [(v(), d("svg", {
|
|
918
930
|
ref_key: "svgRef",
|
|
919
931
|
ref: z,
|
|
920
|
-
xmlns: x(
|
|
932
|
+
xmlns: x(pe),
|
|
921
933
|
class: h({
|
|
922
934
|
"vue-data-ui-fullscreen--on": $.value,
|
|
923
935
|
"vue-data-ui-fulscreen--off": !$.value,
|
|
924
|
-
resizing:
|
|
936
|
+
resizing: Wt.value || x(R),
|
|
925
937
|
"vue-data-ui-no-transition": !x(I)
|
|
926
938
|
}),
|
|
927
939
|
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
928
940
|
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${F.value.color}`),
|
|
929
941
|
"aria-describedby": `chart-instructions-${T.value}`,
|
|
930
942
|
tabindex: "0",
|
|
931
|
-
onFocus:
|
|
932
|
-
onBlur:
|
|
933
|
-
onKeydown:
|
|
943
|
+
onFocus: nr,
|
|
944
|
+
onBlur: rr,
|
|
945
|
+
onKeydown: ir
|
|
934
946
|
}, [
|
|
935
|
-
|
|
947
|
+
Ue(x(Ot)),
|
|
936
948
|
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
937
949
|
key: 0,
|
|
938
950
|
x: 0,
|
|
@@ -940,8 +952,8 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
940
952
|
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
941
953
|
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
942
954
|
style: { pointerEvents: "none" }
|
|
943
|
-
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
944
|
-
f("defs", null, [(v(!0), d(
|
|
955
|
+
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, st)) : u("", !0),
|
|
956
|
+
f("defs", null, [(v(!0), d(ze, null, Je(J.value, (e, t) => (v(), l(je, {
|
|
945
957
|
t: "radial",
|
|
946
958
|
cx: "50%",
|
|
947
959
|
cy: "30%",
|
|
@@ -960,11 +972,11 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
960
972
|
1
|
|
961
973
|
]]
|
|
962
974
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
963
|
-
e.$slots.pattern ? (v(), d("g",
|
|
975
|
+
e.$slots.pattern ? (v(), d("g", ct, [(v(!0), d(ze, null, Je(J.value, (t) => (v(), d("defs", null, [b(e.$slots, "pattern", We({ ref_for: !0 }, {
|
|
964
976
|
seriesIndex: t.absoluteIndex,
|
|
965
977
|
patternId: `pattern_${T.value}_${t.absoluteIndex}`
|
|
966
978
|
}), void 0, !0)]))), 256))])) : u("", !0),
|
|
967
|
-
(v(!0), d(
|
|
979
|
+
(v(!0), d(ze, null, Je(J.value, (t, n) => (v(), d("g", { key: `r_${t.uid}` }, [
|
|
968
980
|
f("circle", {
|
|
969
981
|
class: h({
|
|
970
982
|
"vue-data-ui-transition": w.value && x(I),
|
|
@@ -974,10 +986,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
974
986
|
style: _(`animation-delay:${n * 100}ms`),
|
|
975
987
|
stroke: M.value.stroke,
|
|
976
988
|
cx: B.value.x,
|
|
977
|
-
cy:
|
|
978
|
-
r:
|
|
989
|
+
cy: Pn(t, n),
|
|
990
|
+
r: Nn(t),
|
|
979
991
|
fill: M.value.gradient.underlayerColor
|
|
980
|
-
}, null, 14,
|
|
992
|
+
}, null, 14, lt),
|
|
981
993
|
f("circle", {
|
|
982
994
|
class: h({
|
|
983
995
|
"vue-data-ui-transition": w.value && x(I),
|
|
@@ -989,10 +1001,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
989
1001
|
stroke: M.value.stroke,
|
|
990
1002
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
991
1003
|
cx: B.value.x,
|
|
992
|
-
cy:
|
|
993
|
-
r:
|
|
1004
|
+
cy: Pn(t, n),
|
|
1005
|
+
r: Nn(t),
|
|
994
1006
|
fill: M.value.gradient.show ? `url(#gradient_${T.value}_${n})` : t.color
|
|
995
|
-
}, null, 14,
|
|
1007
|
+
}, null, 14, ut),
|
|
996
1008
|
e.$slots.pattern ? (v(), d("circle", {
|
|
997
1009
|
key: 0,
|
|
998
1010
|
class: h({
|
|
@@ -1005,21 +1017,21 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1005
1017
|
stroke: M.value.stroke,
|
|
1006
1018
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
1007
1019
|
cx: B.value.x,
|
|
1008
|
-
cy:
|
|
1009
|
-
r:
|
|
1020
|
+
cy: Pn(t, n),
|
|
1021
|
+
r: Nn(t),
|
|
1010
1022
|
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`
|
|
1011
|
-
}, null, 14,
|
|
1023
|
+
}, null, 14, dt)) : u("", !0),
|
|
1012
1024
|
f("circle", {
|
|
1013
1025
|
stroke: "none",
|
|
1014
1026
|
cx: B.value.x,
|
|
1015
|
-
cy:
|
|
1016
|
-
r:
|
|
1027
|
+
cy: Pn(t, n),
|
|
1028
|
+
r: Nn(t),
|
|
1017
1029
|
fill: "transparent",
|
|
1018
|
-
onMouseenter: (e) =>
|
|
1019
|
-
onMouseleave: (e) =>
|
|
1020
|
-
onClick: (e) =>
|
|
1021
|
-
}, null, 40,
|
|
1022
|
-
U.value.showLabels ? (v(), d(
|
|
1030
|
+
onMouseenter: (e) => In(t, n, "pointer"),
|
|
1031
|
+
onMouseleave: (e) => An(t, n),
|
|
1032
|
+
onClick: (e) => kn(t, n)
|
|
1033
|
+
}, null, 40, ft),
|
|
1034
|
+
U.value.showLabels ? (v(), d(ze, { key: 1 }, [
|
|
1023
1035
|
f("rect", {
|
|
1024
1036
|
x: N.value.dataLabels.markers.position === "left" ? X(t, n).x : B.value.x,
|
|
1025
1037
|
y: X(t, n).y - N.value.dataLabels.markers.strokeWidth / 2,
|
|
@@ -1033,7 +1045,7 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1033
1045
|
"vue-ui-rings-shadow": M.value.useShadow,
|
|
1034
1046
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1035
1047
|
})
|
|
1036
|
-
}, null, 10,
|
|
1048
|
+
}, null, 10, pt),
|
|
1037
1049
|
f("circle", {
|
|
1038
1050
|
cx: X(t, n).x,
|
|
1039
1051
|
cy: X(t, n).y,
|
|
@@ -1046,7 +1058,7 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1046
1058
|
"vue-ui-rings-shadow": M.value.useShadow,
|
|
1047
1059
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1048
1060
|
})
|
|
1049
|
-
}, null, 10,
|
|
1061
|
+
}, null, 10, mt),
|
|
1050
1062
|
f("text", {
|
|
1051
1063
|
"text-anchor": N.value.dataLabels.markers.position === "left" ? "end" : "start",
|
|
1052
1064
|
"font-size": N.value.dataLabels.fontSize,
|
|
@@ -1059,57 +1071,57 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1059
1071
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1060
1072
|
}),
|
|
1061
1073
|
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) =>
|
|
1063
|
-
onMouseleave: (e) =>
|
|
1064
|
-
onClick: (e) =>
|
|
1074
|
+
onMouseenter: (e) => In(t, n, "pointer"),
|
|
1075
|
+
onMouseleave: (e) => An(t, n),
|
|
1076
|
+
onClick: (e) => kn(t, n),
|
|
1065
1077
|
innerHTML: x(i)({
|
|
1066
|
-
content:
|
|
1078
|
+
content: Mn(t),
|
|
1067
1079
|
fontSize: N.value.dataLabels.fontSize,
|
|
1068
1080
|
fill: N.value.dataLabels.color,
|
|
1069
1081
|
x: 0,
|
|
1070
1082
|
y: 0,
|
|
1071
1083
|
translateY: !0
|
|
1072
1084
|
})
|
|
1073
|
-
}, null, 42,
|
|
1085
|
+
}, null, 42, ht)
|
|
1074
1086
|
], 64)) : u("", !0)
|
|
1075
1087
|
]))), 128)),
|
|
1076
1088
|
b(e.$slots, "svg", { svg: {
|
|
1077
1089
|
...W.value,
|
|
1078
|
-
isPrintingImg: x(
|
|
1079
|
-
isPrintingSvg: x(
|
|
1090
|
+
isPrintingImg: x(un) || x(dn) || x(Zn),
|
|
1091
|
+
isPrintingSvg: x(Qn)
|
|
1080
1092
|
} }, void 0, !0)
|
|
1081
|
-
], 46,
|
|
1093
|
+
], 46, ot)), e.$slots.hint ? (v(), d("div", gt, [b(e.$slots, "hint", g(m({
|
|
1082
1094
|
hint: A.value.a11y.translations.keyboardNavigation,
|
|
1083
|
-
isVisible:
|
|
1095
|
+
isVisible: Xt.value
|
|
1084
1096
|
})), void 0, !0)])) : u("", !0)]),
|
|
1085
|
-
e.$slots.watermark ? (v(), d("div",
|
|
1086
|
-
f("div", { id: `legend-bottom-${T.value}` }, null, 8,
|
|
1087
|
-
|
|
1097
|
+
e.$slots.watermark ? (v(), d("div", _t, [b(e.$slots, "watermark", g(m({ isPrinting: x(un) || x(dn) || x(Zn) || x(Qn) })), void 0, !0)])) : u("", !0),
|
|
1098
|
+
f("div", { id: `legend-bottom-${T.value}` }, null, 8, vt),
|
|
1099
|
+
Gt.value && (F.value.legend.show || e.$slots.legend) ? (v(), l(Be, {
|
|
1088
1100
|
key: 6,
|
|
1089
1101
|
to: F.value.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1090
1102
|
}, [f("div", {
|
|
1091
1103
|
ref_key: "chartLegend",
|
|
1092
|
-
ref:
|
|
1093
|
-
}, [b(e.$slots, "legend", { legend:
|
|
1094
|
-
key: `legend_${
|
|
1095
|
-
legendSet:
|
|
1096
|
-
config:
|
|
1104
|
+
ref: Rt
|
|
1105
|
+
}, [b(e.$slots, "legend", { legend: En.value }, () => [F.value.legend.show ? (v(), l(Le, {
|
|
1106
|
+
key: `legend_${Ut.value}`,
|
|
1107
|
+
legendSet: En.value,
|
|
1108
|
+
config: Dn.value,
|
|
1097
1109
|
isCursorPointer: L.value,
|
|
1098
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1099
|
-
},
|
|
1110
|
+
onClickMarker: t[0] ||= ({ legend: e }) => bn(e.uid)
|
|
1111
|
+
}, Ve({
|
|
1100
1112
|
item: S(({ legend: e, index: t }) => [x(R) ? u("", !0) : (v(), d("div", {
|
|
1101
1113
|
key: 0,
|
|
1102
|
-
onClick: (t) =>
|
|
1114
|
+
onClick: (t) => bn(e.uid),
|
|
1103
1115
|
style: _(`opacity:${G.value.includes(e.uid) ? .5 : 1}`)
|
|
1104
|
-
},
|
|
1105
|
-
legendToggle: S(() => [
|
|
1116
|
+
}, Ze(e.display), 13, yt))]),
|
|
1117
|
+
legendToggle: S(() => [En.value.length > 2 && F.value.legend.selectAllToggle.show && !x(R) ? (v(), l(Me, {
|
|
1106
1118
|
key: 0,
|
|
1107
1119
|
backgroundColor: F.value.legend.selectAllToggle.backgroundColor,
|
|
1108
1120
|
color: F.value.legend.selectAllToggle.color,
|
|
1109
1121
|
fontSize: F.value.legend.fontSize,
|
|
1110
1122
|
checked: G.value.length > 0,
|
|
1111
1123
|
isCursorPointer: L.value,
|
|
1112
|
-
onToggle:
|
|
1124
|
+
onToggle: vn
|
|
1113
1125
|
}, null, 8, [
|
|
1114
1126
|
"backgroundColor",
|
|
1115
1127
|
"color",
|
|
@@ -1120,7 +1132,7 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1120
1132
|
_: 2
|
|
1121
1133
|
}, [e.$slots.pattern ? {
|
|
1122
1134
|
name: "legend-pattern",
|
|
1123
|
-
fn: S(({ legend: e, index: t }) => [
|
|
1135
|
+
fn: S(({ legend: e, index: t }) => [Ue(De, {
|
|
1124
1136
|
shape: e.shape,
|
|
1125
1137
|
radius: 30,
|
|
1126
1138
|
stroke: "none",
|
|
@@ -1139,10 +1151,10 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1139
1151
|
e.$slots.source ? (v(), d("div", {
|
|
1140
1152
|
key: 7,
|
|
1141
1153
|
ref_key: "source",
|
|
1142
|
-
ref:
|
|
1154
|
+
ref: zt,
|
|
1143
1155
|
dir: "auto"
|
|
1144
1156
|
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1145
|
-
|
|
1157
|
+
Ue(x(St), {
|
|
1146
1158
|
teleportTo: P.value.teleportTo,
|
|
1147
1159
|
show: U.value.showTooltip && E.value && G.value.length < C.dataset.length,
|
|
1148
1160
|
backgroundColor: P.value.backgroundColor,
|
|
@@ -1156,19 +1168,19 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1156
1168
|
offsetX: P.value.offsetX,
|
|
1157
1169
|
offsetY: P.value.offsetY,
|
|
1158
1170
|
parent: O.value,
|
|
1159
|
-
content:
|
|
1171
|
+
content: Ft.value,
|
|
1160
1172
|
isFullscreen: $.value,
|
|
1161
1173
|
isCustom: P.value.customFormat && typeof P.value.customFormat == "function",
|
|
1162
1174
|
smooth: P.value.smooth,
|
|
1163
1175
|
backdropFilter: P.value.backdropFilter,
|
|
1164
1176
|
smoothForce: P.value.smoothForce,
|
|
1165
1177
|
smoothSnapThreshold: P.value.smoothSnapThreshold,
|
|
1166
|
-
isA11yMode:
|
|
1167
|
-
a11yPosition:
|
|
1178
|
+
isA11yMode: Yt.value === "keyboard",
|
|
1179
|
+
a11yPosition: Jt.value
|
|
1168
1180
|
}, {
|
|
1169
|
-
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...
|
|
1170
|
-
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...
|
|
1171
|
-
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...
|
|
1181
|
+
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...Fn.value })), void 0, !0)]),
|
|
1182
|
+
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...Fn.value })), void 0, !0)]),
|
|
1183
|
+
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...Fn.value })), void 0, !0)]),
|
|
1172
1184
|
_: 3
|
|
1173
1185
|
}, 8, [
|
|
1174
1186
|
"teleportTo",
|
|
@@ -1194,28 +1206,28 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1194
1206
|
"isA11yMode",
|
|
1195
1207
|
"a11yPosition"
|
|
1196
1208
|
]),
|
|
1197
|
-
|
|
1209
|
+
Pt.value && j.value.buttons.table ? (v(), l(Ye(Gn.value.component), We({ key: 8 }, Gn.value.props, {
|
|
1198
1210
|
ref_key: "tableUnit",
|
|
1199
|
-
ref:
|
|
1200
|
-
onClose:
|
|
1201
|
-
}),
|
|
1202
|
-
content: S(() => [(v(), l(x(
|
|
1203
|
-
key: `table_${
|
|
1211
|
+
ref: Kt,
|
|
1212
|
+
onClose: Kn
|
|
1213
|
+
}), Ve({
|
|
1214
|
+
content: S(() => [(v(), l(x(Tt), {
|
|
1215
|
+
key: `table_${Ht.value}`,
|
|
1204
1216
|
colNames: Q.value.colNames,
|
|
1205
1217
|
head: Q.value.head,
|
|
1206
1218
|
body: Q.value.body,
|
|
1207
1219
|
config: Q.value.config,
|
|
1208
|
-
title: A.value.table.useDialog ? "" :
|
|
1220
|
+
title: A.value.table.useDialog ? "" : Gn.value.title,
|
|
1209
1221
|
withCloseButton: !A.value.table.useDialog,
|
|
1210
1222
|
isCursorPointer: L.value,
|
|
1211
|
-
onClose:
|
|
1223
|
+
onClose: Kn
|
|
1212
1224
|
}, {
|
|
1213
|
-
th: S(({ th: e }) => [e === "__SUM__" ? (v(), d("div",
|
|
1225
|
+
th: S(({ th: e }) => [e === "__SUM__" ? (v(), d("div", bt, [Ue(x(Ct), {
|
|
1214
1226
|
name: "sigma",
|
|
1215
1227
|
stroke: Q.value.config.th.color,
|
|
1216
1228
|
size: 16
|
|
1217
|
-
}, null, 8, ["stroke"])])) : (v(), d("div",
|
|
1218
|
-
td: S(({ td: e }) => [
|
|
1229
|
+
}, null, 8, ["stroke"])])) : (v(), d("div", xt, Ze(e), 1))]),
|
|
1230
|
+
td: S(({ td: e }) => [He(Ze(e.name || e), 1)]),
|
|
1219
1231
|
_: 1
|
|
1220
1232
|
}, 8, [
|
|
1221
1233
|
"colNames",
|
|
@@ -1229,24 +1241,24 @@ var et = /* @__PURE__ */ e({ default: () => xt }), tt = ["id"], nt = ["id"], rt
|
|
|
1229
1241
|
_: 2
|
|
1230
1242
|
}, [A.value.table.useDialog ? {
|
|
1231
1243
|
name: "title",
|
|
1232
|
-
fn: S(() => [
|
|
1244
|
+
fn: S(() => [He(Ze(Gn.value.title), 1)]),
|
|
1233
1245
|
key: "0"
|
|
1234
1246
|
} : void 0, A.value.table.useDialog ? {
|
|
1235
1247
|
name: "actions",
|
|
1236
1248
|
fn: S(() => [f("button", {
|
|
1237
1249
|
tabindex: "0",
|
|
1238
1250
|
class: "vue-ui-user-options-button",
|
|
1239
|
-
onClick: t[1] ||= (e) =>
|
|
1251
|
+
onClick: t[1] ||= (e) => Ln(j.value.callbacks.csv),
|
|
1240
1252
|
style: _({ cursor: L.value ? "pointer" : "default" })
|
|
1241
|
-
}, [
|
|
1253
|
+
}, [Ue(x(Ct), {
|
|
1242
1254
|
name: "fileCsv",
|
|
1243
|
-
stroke:
|
|
1255
|
+
stroke: Gn.value.props.color
|
|
1244
1256
|
}, null, 8, ["stroke"])], 4)]),
|
|
1245
1257
|
key: "1"
|
|
1246
1258
|
} : void 0]), 1040)) : u("", !0),
|
|
1247
|
-
b(e.$slots, "skeleton", {}, () => [x(R) ? (v(), l(
|
|
1248
|
-
], 46,
|
|
1259
|
+
b(e.$slots, "skeleton", {}, () => [x(R) ? (v(), l(be, { key: 0 })) : u("", !0)], !0)
|
|
1260
|
+
], 46, nt));
|
|
1249
1261
|
}
|
|
1250
|
-
}, [["__scopeId", "data-v-
|
|
1262
|
+
}, [["__scopeId", "data-v-ada95822"]]);
|
|
1251
1263
|
//#endregion
|
|
1252
|
-
export {
|
|
1264
|
+
export { tt as n, St as t };
|