vue-data-ui 3.22.8 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -12,60 +12,61 @@ import { t as we } from "./Shape-UpH0a4Ur.js";
|
|
|
12
12
|
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as Ee } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as De } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as Oe } from "./
|
|
16
|
-
import { t as ke } from "./
|
|
17
|
-
import { t as Ae } from "./
|
|
18
|
-
import { t as je } from "./
|
|
19
|
-
import { t as Me } from "./
|
|
20
|
-
import { t as Ne } from "./
|
|
21
|
-
import { t as Pe } from "./
|
|
22
|
-
import {
|
|
15
|
+
import { t as Oe } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as ke } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
17
|
+
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Ne } from "./labelUtils-DBEh078l.js";
|
|
21
|
+
import { t as Pe } from "./Legend-ROt6ugzW.js";
|
|
22
|
+
import { t as Fe } from "./vue_ui_rings-BVgD2aMn.js";
|
|
23
|
+
import { Fragment as Ie, Teleport as Le, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as f, guardReactiveProps as p, mergeProps as Ve, nextTick as He, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as Ue, onMounted as We, openBlock as _, ref as v, renderList as Ge, renderSlot as y, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as Je, toRefs as Ye, unref as b, useSlots as Xe, watch as Ze, withCtx as x } from "vue";
|
|
23
24
|
//#region src/components/vue-ui-rings.vue
|
|
24
|
-
var
|
|
25
|
+
var Qe = /* @__PURE__ */ e({ default: () => vt }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
|
|
25
26
|
"xmlns",
|
|
26
27
|
"viewBox",
|
|
27
28
|
"aria-describedby"
|
|
28
|
-
],
|
|
29
|
+
], it = ["width", "height"], at = { key: 1 }, ot = [
|
|
29
30
|
"stroke",
|
|
30
31
|
"cx",
|
|
31
32
|
"cy",
|
|
32
33
|
"r",
|
|
33
34
|
"fill"
|
|
34
|
-
],
|
|
35
|
+
], st = [
|
|
35
36
|
"stroke",
|
|
36
37
|
"stroke-width",
|
|
37
38
|
"cx",
|
|
38
39
|
"cy",
|
|
39
40
|
"r",
|
|
40
41
|
"fill"
|
|
41
|
-
],
|
|
42
|
+
], ct = [
|
|
42
43
|
"stroke",
|
|
43
44
|
"stroke-width",
|
|
44
45
|
"cx",
|
|
45
46
|
"cy",
|
|
46
47
|
"r",
|
|
47
48
|
"fill"
|
|
48
|
-
],
|
|
49
|
+
], lt = [
|
|
49
50
|
"cx",
|
|
50
51
|
"cy",
|
|
51
52
|
"r",
|
|
52
53
|
"onMouseenter",
|
|
53
54
|
"onMouseleave",
|
|
54
55
|
"onClick"
|
|
55
|
-
],
|
|
56
|
+
], ut = [
|
|
56
57
|
"x",
|
|
57
58
|
"y",
|
|
58
59
|
"width",
|
|
59
60
|
"height",
|
|
60
61
|
"fill",
|
|
61
62
|
"rx"
|
|
62
|
-
],
|
|
63
|
+
], dt = [
|
|
63
64
|
"cx",
|
|
64
65
|
"cy",
|
|
65
66
|
"r",
|
|
66
67
|
"fill",
|
|
67
68
|
"stroke"
|
|
68
|
-
],
|
|
69
|
+
], ft = [
|
|
69
70
|
"x",
|
|
70
71
|
"y",
|
|
71
72
|
"text-anchor",
|
|
@@ -76,7 +77,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
76
77
|
"onMouseleave",
|
|
77
78
|
"onClick",
|
|
78
79
|
"innerHTML"
|
|
79
|
-
],
|
|
80
|
+
], pt = {
|
|
80
81
|
key: 0,
|
|
81
82
|
style: {
|
|
82
83
|
position: "absolute",
|
|
@@ -86,10 +87,10 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
86
87
|
},
|
|
87
88
|
"data-dom-to-png-ignore": "",
|
|
88
89
|
"aria-hidden": "true"
|
|
89
|
-
},
|
|
90
|
+
}, mt = {
|
|
90
91
|
key: 5,
|
|
91
92
|
class: "vue-data-ui-watermark"
|
|
92
|
-
},
|
|
93
|
+
}, ht = ["id"], gt = ["onClick"], _t = ["innerHTML"], vt = /*#__PURE__*/ Te({
|
|
93
94
|
__name: "vue-ui-rings",
|
|
94
95
|
props: {
|
|
95
96
|
config: {
|
|
@@ -106,11 +107,11 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
emits: ["selectLegend", "copyAlt"],
|
|
109
|
-
setup(e, { expose: Te, emit:
|
|
110
|
-
let
|
|
110
|
+
setup(e, { expose: Te, emit: Qe }) {
|
|
111
|
+
let vt = f(() => import("./Tooltip-CxOrWlFy.js")), yt = f(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), bt = f(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), xt = f(() => import("./DataTable-BxpTMgfK.js")), St = f(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ct = f(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), wt = f(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Tt = f(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_rings: Et } = he(), { isThemeValid: Dt, warnInvalidTheme: Ot } = xe(), kt = Xe(), S = e, C = v(!1), At = s(() => !!S.dataset && S.dataset.length), w = v(n()), T = v(!1), jt = v(""), E = v(null), Mt = v(0), D = v(null), Nt = v(null), Pt = v(null), Ft = v(null), It = v(null), Lt = v(0), Rt = v(0), zt = v(0), Bt = v(!1), Vt = v(!1), O = v(null), Ht = v(null), Ut = v(!1), Wt = v(!1), k = v(null), Gt = v({
|
|
111
112
|
x: 0,
|
|
112
113
|
y: 0
|
|
113
|
-
}), A = v("pointer"),
|
|
114
|
+
}), A = v("pointer"), Kt = v(!1), j = v($t()), M = s(() => j.value.userOptions.useCursorPointer), qt = s(() => a({
|
|
114
115
|
defaultConfig: {
|
|
115
116
|
userOptions: { show: !1 },
|
|
116
117
|
table: { show: !1 },
|
|
@@ -127,10 +128,10 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
127
128
|
} }
|
|
128
129
|
},
|
|
129
130
|
userConfig: j.value.skeletonConfig ?? {}
|
|
130
|
-
})), { loading: N, FINAL_DATASET:
|
|
131
|
-
...
|
|
131
|
+
})), { loading: N, FINAL_DATASET: Jt, manualLoading: Yt } = _e({
|
|
132
|
+
...Ye(S),
|
|
132
133
|
FINAL_CONFIG: j,
|
|
133
|
-
prepareConfig:
|
|
134
|
+
prepareConfig: $t,
|
|
134
135
|
skeletonDataset: S.config?.skeletonDataset ?? [
|
|
135
136
|
{
|
|
136
137
|
name: "_",
|
|
@@ -160,18 +161,18 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
160
161
|
],
|
|
161
162
|
skeletonConfig: a({
|
|
162
163
|
defaultConfig: j.value,
|
|
163
|
-
userConfig:
|
|
164
|
+
userConfig: qt.value
|
|
164
165
|
})
|
|
165
|
-
}), { userOptionsVisible:
|
|
166
|
-
function
|
|
166
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = je({ config: j.value }), { svgRef: P } = Me({ config: j.value.style.chart.title });
|
|
167
|
+
function $t() {
|
|
167
168
|
let e = be({
|
|
168
169
|
userConfig: S.config,
|
|
169
|
-
defaultConfig:
|
|
170
|
+
defaultConfig: Et
|
|
170
171
|
}), t = e.theme;
|
|
171
172
|
if (!t) return e;
|
|
172
|
-
if (!
|
|
173
|
+
if (!Dt.value(e)) return Ot(e), e;
|
|
173
174
|
let n = be({
|
|
174
|
-
userConfig:
|
|
175
|
+
userConfig: Fe[t] || S.config,
|
|
175
176
|
defaultConfig: e
|
|
176
177
|
});
|
|
177
178
|
return {
|
|
@@ -182,38 +183,38 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
182
183
|
customPalette: e.customPalette.length ? e.customPalette : ie[e.theme] || o
|
|
183
184
|
};
|
|
184
185
|
}
|
|
185
|
-
|
|
186
|
-
N.value || (j.value =
|
|
186
|
+
Ze(() => S.config, (e) => {
|
|
187
|
+
N.value || (j.value = $t()), Xt.value = !j.value.userOptions.showOnChartHover, nn(), Lt.value += 1, Rt.value += 1, zt.value += 1, R.value.showTable = j.value.table.show, R.value.showTooltip = j.value.style.chart.tooltip.show, R.value.showLabels = j.value.style.chart.layout.labels.dataLabels.show, z.value.width = j.value.style.chart.size, z.value.height = j.value.style.chart.size;
|
|
187
188
|
}, { deep: !0 });
|
|
188
|
-
let
|
|
189
|
+
let en = s(() => {
|
|
189
190
|
let { markers: e } = j.value.style.chart.layout.labels.dataLabels, t = K.value / 2, n = R.value.showLabels ? e.position === "left" ? t : -t : 0, r = R.value.showLabels ? z.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
|
|
190
191
|
return {
|
|
191
192
|
x: j.value.responsive ? i : n / j.value.style.chart.size * z.value.width,
|
|
192
193
|
y: 0 / j.value.style.chart.size * z.value.height
|
|
193
194
|
};
|
|
194
195
|
}), F = s(() => ({
|
|
195
|
-
x: z.value.width / 2 +
|
|
196
|
-
y: z.value.height / 2 +
|
|
196
|
+
x: z.value.width / 2 + en.value.x,
|
|
197
|
+
y: z.value.height / 2 + en.value.y
|
|
197
198
|
}));
|
|
198
|
-
|
|
199
|
-
Array.isArray(e) && e.length > 0 && (
|
|
199
|
+
Ze(() => S.dataset, (e) => {
|
|
200
|
+
Array.isArray(e) && e.length > 0 && (Yt.value = !1);
|
|
200
201
|
}, { deep: !0 });
|
|
201
|
-
let I =
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
let I = qe(null), L = qe(null);
|
|
203
|
+
We(() => {
|
|
204
|
+
Vt.value = !0, nn();
|
|
204
205
|
});
|
|
205
|
-
let
|
|
206
|
-
function
|
|
206
|
+
let tn = s(() => !!j.value.debug);
|
|
207
|
+
function nn() {
|
|
207
208
|
if (le(S.dataset) ? (t({
|
|
208
209
|
componentName: "VueUiRings",
|
|
209
210
|
type: "dataset",
|
|
210
|
-
debug:
|
|
211
|
-
}),
|
|
211
|
+
debug: tn.value
|
|
212
|
+
}), Yt.value = !0) : S.dataset.forEach((e, n) => {
|
|
212
213
|
e.values.length || (t({
|
|
213
214
|
componentName: "VueUiRings",
|
|
214
215
|
type: "dataset",
|
|
215
|
-
debug:
|
|
216
|
-
}),
|
|
216
|
+
debug: tn.value
|
|
217
|
+
}), Yt.value = !0), se({
|
|
217
218
|
datasetObject: e,
|
|
218
219
|
requiredAttributes: ["name", "values"]
|
|
219
220
|
}).forEach((e) => {
|
|
@@ -222,21 +223,21 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
222
223
|
type: "datasetSerieAttribute",
|
|
223
224
|
property: e,
|
|
224
225
|
index: n,
|
|
225
|
-
debug:
|
|
226
|
+
debug: tn.value
|
|
226
227
|
});
|
|
227
228
|
});
|
|
228
|
-
}), le(S.dataset) || (
|
|
229
|
+
}), le(S.dataset) || (Yt.value = j.value.loading), j.value.responsive) {
|
|
229
230
|
let e = Ee(() => {
|
|
230
|
-
|
|
231
|
+
Bt.value = !0;
|
|
231
232
|
let { width: e, height: t } = De({
|
|
232
233
|
chart: D.value,
|
|
233
|
-
title: j.value.style.chart.title.text ?
|
|
234
|
-
legend: j.value.style.chart.legend.show ?
|
|
235
|
-
source:
|
|
236
|
-
noTitle:
|
|
234
|
+
title: j.value.style.chart.title.text ? Nt.value : null,
|
|
235
|
+
legend: j.value.style.chart.legend.show ? Pt.value : null,
|
|
236
|
+
source: Ft.value,
|
|
237
|
+
noTitle: It.value
|
|
237
238
|
});
|
|
238
239
|
requestAnimationFrame(() => {
|
|
239
|
-
z.value.width = e, z.value.height = t - 12,
|
|
240
|
+
z.value.width = e, z.value.height = t - 12, Bt.value = !1;
|
|
240
241
|
});
|
|
241
242
|
});
|
|
242
243
|
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = D.value.parentNode, I.value.observe(L.value);
|
|
@@ -245,19 +246,19 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
245
246
|
C.value = !0;
|
|
246
247
|
}, 600);
|
|
247
248
|
}
|
|
248
|
-
|
|
249
|
+
Ue(() => {
|
|
249
250
|
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
250
251
|
});
|
|
251
|
-
let { isPrinting:
|
|
252
|
+
let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = ge({
|
|
252
253
|
elementId: `rings_${w.value}`,
|
|
253
254
|
fileName: j.value.style.chart.title.text || "vue-ui-rings",
|
|
254
255
|
options: j.value.userOptions.print
|
|
255
|
-
}),
|
|
256
|
+
}), cn = s(() => j.value.userOptions.show && !j.value.style.chart.title.text), ln = s(() => te(j.value.customPalette)), R = v({
|
|
256
257
|
showTable: j.value.table.show,
|
|
257
258
|
showTooltip: j.value.style.chart.tooltip.show,
|
|
258
259
|
showLabels: j.value.style.chart.layout.labels.dataLabels.show
|
|
259
260
|
});
|
|
260
|
-
|
|
261
|
+
Ze(j, () => {
|
|
261
262
|
R.value = {
|
|
262
263
|
showTable: j.value.table.show,
|
|
263
264
|
showTooltip: j.value.style.chart.tooltip.show,
|
|
@@ -267,14 +268,14 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
267
268
|
let z = v({
|
|
268
269
|
height: j.value.style.chart.size,
|
|
269
270
|
width: j.value.style.chart.size
|
|
270
|
-
}),
|
|
271
|
-
function
|
|
271
|
+
}), un = s(() => Math.min(z.value.height, z.value.width)), dn = Qe, B = v([]);
|
|
272
|
+
function fn() {
|
|
272
273
|
B.value.length ? B.value = [] : U.value.forEach((e) => {
|
|
273
274
|
B.value.push(e.uid);
|
|
274
|
-
}),
|
|
275
|
+
}), pn();
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
277
|
+
function pn() {
|
|
278
|
+
dn("selectLegend", G.value.map((e) => ({
|
|
278
279
|
name: e.name,
|
|
279
280
|
color: e.color,
|
|
280
281
|
value: e.value
|
|
@@ -286,30 +287,30 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
286
287
|
if (B.value.length === H.value.length - 1) return;
|
|
287
288
|
B.value.push(e);
|
|
288
289
|
}
|
|
289
|
-
|
|
290
|
+
pn();
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
+
function mn(e) {
|
|
292
293
|
return H.value.length ? H.value.find((t) => t.name === e) || (j.value.debug && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (j.value.debug && console.warn("VueUiRings - There are no series to show."), null);
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
-
let t =
|
|
295
|
+
function hn(e) {
|
|
296
|
+
let t = mn(e);
|
|
296
297
|
t !== null && B.value.includes(t.uid) && V(t.uid);
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
-
let t =
|
|
299
|
+
function gn(e) {
|
|
300
|
+
let t = mn(e);
|
|
300
301
|
t !== null && (B.value.includes(t.uid) || V(t.uid));
|
|
301
302
|
}
|
|
302
|
-
let
|
|
303
|
-
function
|
|
304
|
-
return e /
|
|
303
|
+
let _n = s(() => Math.max(...H.value.filter((e) => !B.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
304
|
+
function vn(e) {
|
|
305
|
+
return e / _n.value;
|
|
305
306
|
}
|
|
306
|
-
let H = s(() =>
|
|
307
|
+
let H = s(() => Jt.value.map(({ values: e, name: t, color: i = null }, a) => {
|
|
307
308
|
let ee = r(e).reduce((e, t) => e + t, 0);
|
|
308
309
|
return {
|
|
309
310
|
name: t,
|
|
310
|
-
color: i || oe(i) ||
|
|
311
|
+
color: i || oe(i) || ln.value[a] || o[a] || o[a % o.length],
|
|
311
312
|
value: ee,
|
|
312
|
-
proportion: ee /
|
|
313
|
+
proportion: ee / Jt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
313
314
|
uid: n(),
|
|
314
315
|
absoluteIndex: a
|
|
315
316
|
};
|
|
@@ -326,7 +327,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
326
327
|
v: e.value / W.value * 100,
|
|
327
328
|
s: "%",
|
|
328
329
|
r: j.value.style.chart.legend.roundingPercentage
|
|
329
|
-
}), a =
|
|
330
|
+
}), a = Cn({
|
|
330
331
|
showVal: j.value.style.chart.legend.showValue,
|
|
331
332
|
showPercentage: j.value.style.chart.legend.showPercentage,
|
|
332
333
|
val: n,
|
|
@@ -340,7 +341,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
340
341
|
isSegregated: B.value.includes(e.uid),
|
|
341
342
|
display: `${e.name}${j.value.style.chart.legend.showPercentage || j.value.style.chart.legend.showValue ? ": " : ""}${a}`
|
|
342
343
|
};
|
|
343
|
-
}).toSorted((e, t) => t.value - e.value)),
|
|
344
|
+
}).toSorted((e, t) => t.value - e.value)), yn = s(() => ({
|
|
344
345
|
cy: "rings-div-legend",
|
|
345
346
|
backgroundColor: j.value.style.chart.legend.backgroundColor,
|
|
346
347
|
color: j.value.style.chart.legend.color,
|
|
@@ -351,13 +352,13 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
351
352
|
absoluteIndex: i,
|
|
352
353
|
uid: r,
|
|
353
354
|
name: e,
|
|
354
|
-
color: n || oe(n) ||
|
|
355
|
+
color: n || oe(n) || ln.value[a] || o[a] || o[a % o.length],
|
|
355
356
|
value: t,
|
|
356
|
-
proportion:
|
|
357
|
+
proportion: vn(t),
|
|
357
358
|
percentage: t / W.value * 100,
|
|
358
|
-
strokeWidth: j.value.style.chart.layout.rings.strokeWidth *
|
|
359
|
+
strokeWidth: j.value.style.chart.layout.rings.strokeWidth * vn(t)
|
|
359
360
|
})).toSorted((e, t) => t.value - e.value));
|
|
360
|
-
function
|
|
361
|
+
function bn() {
|
|
361
362
|
return G.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
362
363
|
name: e,
|
|
363
364
|
color: t,
|
|
@@ -366,22 +367,22 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
366
367
|
percentage: i
|
|
367
368
|
}));
|
|
368
369
|
}
|
|
369
|
-
let K = s(() =>
|
|
370
|
-
function
|
|
370
|
+
let K = s(() => un.value - j.value.style.chart.layout.rings.strokeWidth * 2);
|
|
371
|
+
function xn(e, t) {
|
|
371
372
|
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
372
373
|
datapoint: e,
|
|
373
374
|
seriesIndex: t
|
|
374
375
|
});
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function Sn(e, t) {
|
|
377
378
|
E.value = null, T.value = !1, k.value = null, A.value = "pointer", j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
378
379
|
datapoint: e,
|
|
379
380
|
seriesIndex: t
|
|
380
381
|
});
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
+
function Cn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
383
384
|
let i = j.value.style.chart.layout.labels.dataLabels;
|
|
384
|
-
return
|
|
385
|
+
return Ne({
|
|
385
386
|
config: i,
|
|
386
387
|
val: e,
|
|
387
388
|
percentage: t,
|
|
@@ -389,7 +390,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
389
390
|
showPercentage: r
|
|
390
391
|
});
|
|
391
392
|
}
|
|
392
|
-
function
|
|
393
|
+
function wn(e) {
|
|
393
394
|
let t = j.value.style.chart.layout.labels.dataLabels, n = ce(t.formatter, e.value, i({
|
|
394
395
|
p: t.prefix,
|
|
395
396
|
v: e.value,
|
|
@@ -400,7 +401,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
400
401
|
s: "%",
|
|
401
402
|
r: t.roundingPercentage
|
|
402
403
|
});
|
|
403
|
-
return `${e.name}\n${
|
|
404
|
+
return `${e.name}\n${Cn({
|
|
404
405
|
val: n,
|
|
405
406
|
percentage: r,
|
|
406
407
|
showVal: t.showValue,
|
|
@@ -420,13 +421,13 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
420
421
|
y: J(e, t) - q(e)
|
|
421
422
|
};
|
|
422
423
|
}
|
|
423
|
-
let
|
|
424
|
-
function
|
|
424
|
+
let Tn = v(null);
|
|
425
|
+
function En(e, t, n = "pointer") {
|
|
425
426
|
if (j.value.events.datapointEnter && j.value.events.datapointEnter({
|
|
426
427
|
datapoint: e,
|
|
427
428
|
seriesIndex: t
|
|
428
429
|
}), B.value.length === S.dataset.length) return;
|
|
429
|
-
|
|
430
|
+
Tn.value = {
|
|
430
431
|
datapoint: e,
|
|
431
432
|
seriesIndex: t,
|
|
432
433
|
series: G.value,
|
|
@@ -438,7 +439,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
438
439
|
datapoint: e,
|
|
439
440
|
series: G.value,
|
|
440
441
|
config: j.value
|
|
441
|
-
})))
|
|
442
|
+
}))) jt.value = a({
|
|
442
443
|
seriesIndex: t,
|
|
443
444
|
datapoint: e,
|
|
444
445
|
series: G.value,
|
|
@@ -446,7 +447,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
446
447
|
});
|
|
447
448
|
else {
|
|
448
449
|
let n = "";
|
|
449
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.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="${r.color}" />${
|
|
450
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.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="${r.color}" />${kt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${Cn({
|
|
450
451
|
showVal: j.value.style.chart.tooltip.showValue,
|
|
451
452
|
showPercentage: j.value.style.chart.tooltip.showPercentage,
|
|
452
453
|
val: `<span>${ce(j.value.style.chart.layout.labels.dataLabels.formatter, r.value, i({
|
|
@@ -463,7 +464,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
463
464
|
s: "%",
|
|
464
465
|
r: j.value.style.chart.tooltip.roundingPercentage
|
|
465
466
|
})
|
|
466
|
-
})}</b></div>`,
|
|
467
|
+
})}</b></div>`, jt.value = n;
|
|
467
468
|
}
|
|
468
469
|
T.value = !0;
|
|
469
470
|
}
|
|
@@ -520,8 +521,8 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
520
521
|
]
|
|
521
522
|
};
|
|
522
523
|
});
|
|
523
|
-
function
|
|
524
|
-
|
|
524
|
+
function Dn(e = null) {
|
|
525
|
+
He(() => {
|
|
525
526
|
let t = X.value.head.map((e, t) => [
|
|
526
527
|
[e.name],
|
|
527
528
|
[X.value.body[t]],
|
|
@@ -542,23 +543,23 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
542
543
|
});
|
|
543
544
|
}
|
|
544
545
|
let Q = v(!1);
|
|
545
|
-
function
|
|
546
|
-
Q.value = e,
|
|
546
|
+
function On(e) {
|
|
547
|
+
Q.value = e, Mt.value += 1;
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
+
function kn() {
|
|
549
550
|
R.value.showTable = !R.value.showTable;
|
|
550
551
|
}
|
|
551
|
-
function
|
|
552
|
+
function An() {
|
|
552
553
|
R.value.showTooltip = !R.value.showTooltip;
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
+
function jn() {
|
|
555
556
|
R.value.showLabels = !R.value.showLabels;
|
|
556
557
|
}
|
|
557
|
-
let
|
|
558
|
-
function
|
|
559
|
-
|
|
558
|
+
let $ = v(!1);
|
|
559
|
+
function Mn() {
|
|
560
|
+
$.value = !$.value;
|
|
560
561
|
}
|
|
561
|
-
async function
|
|
562
|
+
async function Nn({ scale: e = 2 } = {}) {
|
|
562
563
|
if (!D.value) return;
|
|
563
564
|
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
564
565
|
domElement: D.value,
|
|
@@ -575,10 +576,10 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
575
576
|
aspectRatio: r
|
|
576
577
|
};
|
|
577
578
|
}
|
|
578
|
-
let
|
|
579
|
+
let Pn = s(() => {
|
|
579
580
|
let e = j.value.table.useDialog && !j.value.table.show, t = R.value.showTable;
|
|
580
581
|
return {
|
|
581
|
-
component: e ?
|
|
582
|
+
component: e ? Tt : bt,
|
|
582
583
|
title: `${j.value.style.chart.title.text}${j.value.style.chart.title.subtitle.text ? `: ${j.value.style.chart.title.subtitle.text}` : ""}`,
|
|
583
584
|
props: e ? {
|
|
584
585
|
backgroundColor: j.value.table.th.backgroundColor,
|
|
@@ -606,51 +607,51 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
606
607
|
}
|
|
607
608
|
};
|
|
608
609
|
});
|
|
609
|
-
|
|
610
|
+
Ze(() => R.value.showTable, (e) => {
|
|
610
611
|
j.value.table.show || (e && j.value.table.useDialog && O.value ? O.value.open() : "close" in O.value && O.value.close());
|
|
611
612
|
});
|
|
612
|
-
function
|
|
613
|
-
R.value.showTable = !1,
|
|
613
|
+
function Fn() {
|
|
614
|
+
R.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
614
615
|
}
|
|
615
|
-
let
|
|
616
|
+
let In = s(() => U.value.map((e) => ({
|
|
616
617
|
...e,
|
|
617
618
|
name: e.display
|
|
618
|
-
}))),
|
|
619
|
+
}))), Ln = s(() => j.value.style.chart.backgroundColor), Rn = s(() => j.value.style.chart.legend), { exportSvg: zn, getSvg: Bn } = ye({
|
|
619
620
|
svg: P,
|
|
620
621
|
title: s(() => j.value.style.chart.title),
|
|
621
|
-
legend:
|
|
622
|
-
legendItems:
|
|
623
|
-
backgroundColor:
|
|
622
|
+
legend: Rn,
|
|
623
|
+
legendItems: In,
|
|
624
|
+
backgroundColor: Ln
|
|
624
625
|
});
|
|
625
|
-
async function
|
|
626
|
-
|
|
626
|
+
async function Vn({ isCb: e }) {
|
|
627
|
+
Wt.value = !0, await He();
|
|
627
628
|
try {
|
|
628
629
|
if (e) {
|
|
629
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
630
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Bn();
|
|
630
631
|
await Promise.resolve(j.value.userOptions.callbacks.svg({
|
|
631
632
|
blob: e,
|
|
632
633
|
url: t,
|
|
633
634
|
text: n,
|
|
634
635
|
dataUrl: r
|
|
635
636
|
}));
|
|
636
|
-
} else await Promise.resolve(
|
|
637
|
+
} else await Promise.resolve(zn());
|
|
637
638
|
} finally {
|
|
638
|
-
|
|
639
|
+
Wt.value = !1;
|
|
639
640
|
}
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function Hn(e) {
|
|
642
643
|
if (e?.stage === "start") {
|
|
643
|
-
|
|
644
|
+
Ut.value = !0;
|
|
644
645
|
return;
|
|
645
646
|
}
|
|
646
647
|
if (e?.stage === "end") {
|
|
647
|
-
|
|
648
|
+
Ut.value = !1;
|
|
648
649
|
return;
|
|
649
650
|
}
|
|
650
|
-
|
|
651
|
+
sn();
|
|
651
652
|
}
|
|
652
|
-
async function
|
|
653
|
-
if (
|
|
653
|
+
async function Un() {
|
|
654
|
+
if (dn("copyAlt", {
|
|
654
655
|
config: j.value,
|
|
655
656
|
dataset: G.value
|
|
656
657
|
}), !j.value.userOptions.callbacks.altCopy) {
|
|
@@ -662,14 +663,14 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
662
663
|
dataset: G.value
|
|
663
664
|
}));
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
-
k.value = null,
|
|
666
|
+
function Wn() {
|
|
667
|
+
k.value = null, Kt.value = !0;
|
|
667
668
|
}
|
|
668
|
-
function
|
|
669
|
-
k.value = null, A.value = "pointer", T.value = !1, E.value = null,
|
|
669
|
+
function Gn() {
|
|
670
|
+
k.value = null, A.value = "pointer", T.value = !1, E.value = null, Kt.value = !1;
|
|
670
671
|
}
|
|
671
|
-
function
|
|
672
|
-
if (!P.value ||
|
|
672
|
+
function Kn(e) {
|
|
673
|
+
if (!P.value || $.value || document.activeElement !== P.value || !G.value.length || B.value.length === S.dataset.length) return;
|
|
673
674
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
674
675
|
if (!t && !n && !r && !i) return;
|
|
675
676
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -680,43 +681,43 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
680
681
|
if (k.value === null) return;
|
|
681
682
|
let e = G.value[k.value];
|
|
682
683
|
if (!e) return;
|
|
683
|
-
|
|
684
|
+
xn(e, k.value);
|
|
684
685
|
return;
|
|
685
686
|
}
|
|
686
687
|
let a = k.value;
|
|
687
688
|
a === null || a < 0 || a >= G.value.length ? a = n ? 0 : G.value.length - 1 : n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1));
|
|
688
689
|
let o = G.value[a];
|
|
689
|
-
o && (
|
|
690
|
+
o && (qn(a), En(o, a, "keyboard"));
|
|
690
691
|
}
|
|
691
|
-
function
|
|
692
|
+
function qn(e) {
|
|
692
693
|
if (!Number.isFinite(e) || !P.value) return;
|
|
693
694
|
let t = G.value[e];
|
|
694
695
|
if (!t) return;
|
|
695
696
|
let n = Y(t, e), r = P.value.getBoundingClientRect();
|
|
696
|
-
|
|
697
|
+
Gt.value = {
|
|
697
698
|
x: r.left + n.x / z.value.width * r.width,
|
|
698
699
|
y: r.top + n.y / z.value.height * r.height
|
|
699
700
|
};
|
|
700
701
|
}
|
|
701
|
-
let
|
|
702
|
+
let Jn = s(() => ({
|
|
702
703
|
headers: Z.value?.colNames ?? [],
|
|
703
704
|
rows: Z.value?.a11yBody ?? []
|
|
704
705
|
}));
|
|
705
706
|
return Te({
|
|
706
|
-
getData:
|
|
707
|
-
getImage:
|
|
708
|
-
generatePdf:
|
|
709
|
-
generateCsv:
|
|
710
|
-
generateImage:
|
|
711
|
-
generateSvg:
|
|
712
|
-
hideSeries:
|
|
713
|
-
showSeries:
|
|
714
|
-
toggleTable:
|
|
715
|
-
toggleTooltip:
|
|
716
|
-
toggleAnnotator:
|
|
717
|
-
toggleFullscreen:
|
|
718
|
-
toggleLabels:
|
|
719
|
-
copyAlt:
|
|
707
|
+
getData: bn,
|
|
708
|
+
getImage: Nn,
|
|
709
|
+
generatePdf: on,
|
|
710
|
+
generateCsv: Dn,
|
|
711
|
+
generateImage: sn,
|
|
712
|
+
generateSvg: Vn,
|
|
713
|
+
hideSeries: gn,
|
|
714
|
+
showSeries: hn,
|
|
715
|
+
toggleTable: kn,
|
|
716
|
+
toggleTooltip: An,
|
|
717
|
+
toggleAnnotator: Mn,
|
|
718
|
+
toggleFullscreen: On,
|
|
719
|
+
toggleLabels: jn,
|
|
720
|
+
copyAlt: Un
|
|
720
721
|
}), (e, t) => (_(), u("div", {
|
|
721
722
|
ref_key: "ringsChart",
|
|
722
723
|
ref: D,
|
|
@@ -724,19 +725,19 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
724
725
|
style: g(`font-family:${j.value.style.fontFamily};text-align:center;width:100%;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
|
|
725
726
|
id: `rings_${w.value}`,
|
|
726
727
|
onMouseleave: t[2] ||= (e) => {
|
|
727
|
-
E.value = null, T.value = !1, b(
|
|
728
|
+
E.value = null, T.value = !1, b(Zt)(!1);
|
|
728
729
|
},
|
|
729
|
-
onMouseenter: t[3] ||= () => b(
|
|
730
|
+
onMouseenter: t[3] ||= () => b(Zt)(!0)
|
|
730
731
|
}, [
|
|
731
732
|
d("div", {
|
|
732
733
|
id: `chart-instructions-${w.value}`,
|
|
733
734
|
class: "sr-only"
|
|
734
|
-
}, [d("p", null,
|
|
735
|
-
|
|
735
|
+
}, [d("p", null, Je(j.value.a11y.translations.keyboardNavigation), 1)], 8, et),
|
|
736
|
+
Jn.value?.rows?.length ? (_(), c(Ae, {
|
|
736
737
|
key: 0,
|
|
737
738
|
uid: w.value,
|
|
738
|
-
head:
|
|
739
|
-
body:
|
|
739
|
+
head: Jn.value.headers,
|
|
740
|
+
body: Jn.value.rows,
|
|
740
741
|
notice: j.value.a11y.translations.tableAvailable,
|
|
741
742
|
caption: j.value.a11y.translations.tableCaption
|
|
742
743
|
}, null, 8, [
|
|
@@ -746,14 +747,14 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
746
747
|
"notice",
|
|
747
748
|
"caption"
|
|
748
749
|
])) : l("", !0),
|
|
749
|
-
j.value.userOptions.buttons.annotator ? (_(), c(b(
|
|
750
|
+
j.value.userOptions.buttons.annotator ? (_(), c(b(St), {
|
|
750
751
|
key: 1,
|
|
751
752
|
svgRef: b(P),
|
|
752
753
|
backgroundColor: j.value.style.chart.backgroundColor,
|
|
753
754
|
color: j.value.style.chart.color,
|
|
754
|
-
active:
|
|
755
|
+
active: $.value,
|
|
755
756
|
isCursorPointer: M.value,
|
|
756
|
-
onClose:
|
|
757
|
+
onClose: Mn
|
|
757
758
|
}, {
|
|
758
759
|
"annotator-action-close": x(() => [y(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
759
760
|
"annotator-action-color": x(({ color: t }) => [y(e.$slots, "annotator-action-color", h(p({ color: t })), void 0, !0)]),
|
|
@@ -769,20 +770,20 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
769
770
|
"active",
|
|
770
771
|
"isCursorPointer"
|
|
771
772
|
])) : l("", !0),
|
|
772
|
-
|
|
773
|
+
cn.value ? (_(), u("div", {
|
|
773
774
|
key: 2,
|
|
774
775
|
ref_key: "noTitle",
|
|
775
|
-
ref:
|
|
776
|
+
ref: It,
|
|
776
777
|
class: "vue-data-ui-no-title-space",
|
|
777
778
|
style: "height:36px; width: 100%;background:transparent"
|
|
778
779
|
}, null, 512)) : l("", !0),
|
|
779
780
|
j.value.style.chart.title.text ? (_(), u("div", {
|
|
780
781
|
key: 3,
|
|
781
782
|
ref_key: "chartTitle",
|
|
782
|
-
ref:
|
|
783
|
+
ref: Nt,
|
|
783
784
|
style: "width:100%;background:transparent"
|
|
784
785
|
}, [(_(), c(Ce, {
|
|
785
|
-
key: `title_${
|
|
786
|
+
key: `title_${Lt.value}`,
|
|
786
787
|
config: {
|
|
787
788
|
title: {
|
|
788
789
|
cy: "rings-div-title",
|
|
@@ -794,15 +795,15 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
794
795
|
}
|
|
795
796
|
}
|
|
796
797
|
}, null, 8, ["config"]))], 512)) : l("", !0),
|
|
797
|
-
d("div", { id: `legend-top-${w.value}` }, null, 8,
|
|
798
|
-
j.value.userOptions.show &&
|
|
798
|
+
d("div", { id: `legend-top-${w.value}` }, null, 8, tt),
|
|
799
|
+
j.value.userOptions.show && At.value && (b(Qt) || b(Xt)) ? (_(), c(b(Ct), {
|
|
799
800
|
ref_key: "userOptionsRef",
|
|
800
|
-
ref:
|
|
801
|
-
key: `user_options_${
|
|
801
|
+
ref: Ht,
|
|
802
|
+
key: `user_options_${Mt.value}`,
|
|
802
803
|
backgroundColor: j.value.style.chart.backgroundColor,
|
|
803
804
|
color: j.value.style.chart.color,
|
|
804
|
-
isPrinting: b(
|
|
805
|
-
isImaging: b(
|
|
805
|
+
isPrinting: b(rn),
|
|
806
|
+
isImaging: b(an),
|
|
806
807
|
uid: w.value,
|
|
807
808
|
hasTooltip: j.value.userOptions.buttons.tooltip && j.value.style.chart.tooltip.show,
|
|
808
809
|
hasPdf: j.value.userOptions.buttons.pdf,
|
|
@@ -819,23 +820,23 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
819
820
|
chartElement: D.value,
|
|
820
821
|
position: j.value.userOptions.position,
|
|
821
822
|
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
822
|
-
isAnnotation:
|
|
823
|
+
isAnnotation: $.value,
|
|
823
824
|
callbacks: j.value.userOptions.callbacks,
|
|
824
825
|
printScale: j.value.userOptions.print.scale,
|
|
825
826
|
tableDialog: j.value.table.useDialog,
|
|
826
827
|
isCursorPointer: M.value,
|
|
827
|
-
onToggleFullscreen:
|
|
828
|
-
onGeneratePdf: b(
|
|
829
|
-
onGenerateCsv:
|
|
830
|
-
onGenerateImage:
|
|
831
|
-
onGenerateSvg:
|
|
832
|
-
onToggleTable:
|
|
833
|
-
onToggleTooltip:
|
|
834
|
-
onToggleAnnotator:
|
|
835
|
-
onToggleLabels:
|
|
836
|
-
onCopyAlt:
|
|
837
|
-
style: g({ visibility: b(
|
|
838
|
-
},
|
|
828
|
+
onToggleFullscreen: On,
|
|
829
|
+
onGeneratePdf: b(on),
|
|
830
|
+
onGenerateCsv: Dn,
|
|
831
|
+
onGenerateImage: Hn,
|
|
832
|
+
onGenerateSvg: Vn,
|
|
833
|
+
onToggleTable: kn,
|
|
834
|
+
onToggleTooltip: An,
|
|
835
|
+
onToggleAnnotator: Mn,
|
|
836
|
+
onToggleLabels: jn,
|
|
837
|
+
onCopyAlt: Un,
|
|
838
|
+
style: g({ visibility: b(Qt) ? b(Xt) ? "visible" : "hidden" : "visible" })
|
|
839
|
+
}, Re({ _: 2 }, [
|
|
839
840
|
e.$slots.menuIcon ? {
|
|
840
841
|
name: "menuIcon",
|
|
841
842
|
fn: x(({ isOpen: t, color: n }) => [y(e.$slots, "menuIcon", h(p({
|
|
@@ -911,24 +912,24 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
911
912
|
key: "12"
|
|
912
913
|
} : void 0
|
|
913
914
|
]), 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.style".split("."))) : l("", !0),
|
|
914
|
-
d("div",
|
|
915
|
+
d("div", nt, [(_(), u("svg", {
|
|
915
916
|
ref_key: "svgRef",
|
|
916
917
|
ref: P,
|
|
917
918
|
xmlns: b(de),
|
|
918
919
|
class: m({
|
|
919
920
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
920
921
|
"vue-data-ui-fulscreen--off": !Q.value,
|
|
921
|
-
resizing:
|
|
922
|
+
resizing: Bt.value || b(N)
|
|
922
923
|
}),
|
|
923
924
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
924
925
|
style: g(`max-width:100%;overflow:hidden;background:transparent;color:${j.value.style.chart.color}`),
|
|
925
926
|
"aria-describedby": `chart-instructions-${w.value}`,
|
|
926
927
|
tabindex: "0",
|
|
927
|
-
onFocus:
|
|
928
|
-
onBlur:
|
|
929
|
-
onKeydown:
|
|
928
|
+
onFocus: Wn,
|
|
929
|
+
onBlur: Gn,
|
|
930
|
+
onKeydown: Kn
|
|
930
931
|
}, [
|
|
931
|
-
|
|
932
|
+
Be(b(wt)),
|
|
932
933
|
e.$slots["chart-background"] ? (_(), u("foreignObject", {
|
|
933
934
|
key: 0,
|
|
934
935
|
x: 0,
|
|
@@ -936,26 +937,31 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
936
937
|
width: z.value.width <= 0 ? 10 : z.value.width,
|
|
937
938
|
height: z.value.height <= 0 ? 10 : z.value.height,
|
|
938
939
|
style: { pointerEvents: "none" }
|
|
939
|
-
}, [y(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
940
|
-
d("defs", null, [(_(!0), u(
|
|
940
|
+
}, [y(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : l("", !0),
|
|
941
|
+
d("defs", null, [(_(!0), u(Ie, null, Ge(G.value, (e, t) => (_(), c(Oe, {
|
|
942
|
+
t: "radial",
|
|
941
943
|
cx: "50%",
|
|
942
944
|
cy: "30%",
|
|
943
945
|
r: "50%",
|
|
944
946
|
fx: "50%",
|
|
945
947
|
fy: "50%",
|
|
946
|
-
id: `gradient_${w.value}_${t}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
948
|
+
id: `gradient_${w.value}_${t}`,
|
|
949
|
+
key: `gradient_${w.value}_${t}`,
|
|
950
|
+
stops: [[
|
|
951
|
+
"0%",
|
|
952
|
+
b(ee)(b(me)(e.color, .05), 100 - j.value.style.chart.layout.rings.gradient.intensity),
|
|
953
|
+
1
|
|
954
|
+
], [
|
|
955
|
+
"100%",
|
|
956
|
+
e.color,
|
|
957
|
+
1
|
|
958
|
+
]]
|
|
959
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
960
|
+
e.$slots.pattern ? (_(), u("g", at, [(_(!0), u(Ie, null, Ge(G.value, (t) => (_(), u("defs", null, [y(e.$slots, "pattern", Ve({ ref_for: !0 }, {
|
|
955
961
|
seriesIndex: t.absoluteIndex,
|
|
956
962
|
patternId: `pattern_${w.value}_${t.absoluteIndex}`
|
|
957
963
|
}), void 0, !0)]))), 256))])) : l("", !0),
|
|
958
|
-
(_(!0), u(
|
|
964
|
+
(_(!0), u(Ie, null, Ge(G.value, (t, n) => (_(), u("g", null, [
|
|
959
965
|
d("circle", {
|
|
960
966
|
class: m({
|
|
961
967
|
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
@@ -968,7 +974,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
968
974
|
cy: J(t, n),
|
|
969
975
|
r: q(t),
|
|
970
976
|
fill: j.value.style.chart.layout.rings.gradient.underlayerColor
|
|
971
|
-
}, null, 14,
|
|
977
|
+
}, null, 14, ot),
|
|
972
978
|
d("circle", {
|
|
973
979
|
class: m({
|
|
974
980
|
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
@@ -983,7 +989,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
983
989
|
cy: J(t, n),
|
|
984
990
|
r: q(t),
|
|
985
991
|
fill: j.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${n})` : t.color
|
|
986
|
-
}, null, 14,
|
|
992
|
+
}, null, 14, st),
|
|
987
993
|
e.$slots.pattern ? (_(), u("circle", {
|
|
988
994
|
key: 0,
|
|
989
995
|
class: m({
|
|
@@ -999,18 +1005,18 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
999
1005
|
cy: J(t, n),
|
|
1000
1006
|
r: q(t),
|
|
1001
1007
|
fill: `url(#pattern_${w.value}_${t.absoluteIndex})`
|
|
1002
|
-
}, null, 14,
|
|
1008
|
+
}, null, 14, ct)) : l("", !0),
|
|
1003
1009
|
d("circle", {
|
|
1004
1010
|
stroke: "none",
|
|
1005
1011
|
cx: F.value.x,
|
|
1006
1012
|
cy: J(t, n),
|
|
1007
1013
|
r: q(t),
|
|
1008
1014
|
fill: "transparent",
|
|
1009
|
-
onMouseenter: (e) =>
|
|
1010
|
-
onMouseleave: (e) =>
|
|
1011
|
-
onClick: (e) =>
|
|
1012
|
-
}, null, 40,
|
|
1013
|
-
R.value.showLabels ? (_(), u(
|
|
1015
|
+
onMouseenter: (e) => En(t, n, "pointer"),
|
|
1016
|
+
onMouseleave: (e) => Sn(t, n),
|
|
1017
|
+
onClick: (e) => xn(t, n)
|
|
1018
|
+
}, null, 40, lt),
|
|
1019
|
+
R.value.showLabels ? (_(), u(Ie, { key: 1 }, [
|
|
1014
1020
|
d("rect", {
|
|
1015
1021
|
x: j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? Y(t, n).x : F.value.x,
|
|
1016
1022
|
y: Y(t, n).y - j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
@@ -1024,7 +1030,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1024
1030
|
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1025
1031
|
"vue-ui-rings-blur": E.value !== null && E.value !== n
|
|
1026
1032
|
})
|
|
1027
|
-
}, null, 10,
|
|
1033
|
+
}, null, 10, ut),
|
|
1028
1034
|
d("circle", {
|
|
1029
1035
|
cx: Y(t, n).x,
|
|
1030
1036
|
cy: Y(t, n).y,
|
|
@@ -1037,7 +1043,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1037
1043
|
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1038
1044
|
"vue-ui-rings-blur": E.value !== null && E.value !== n
|
|
1039
1045
|
})
|
|
1040
|
-
}, null, 10,
|
|
1046
|
+
}, null, 10, dt),
|
|
1041
1047
|
d("text", {
|
|
1042
1048
|
x: Y(t, n).x + (j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -j.value.style.chart.layout.labels.dataLabels.offsetX : j.value.style.chart.layout.labels.dataLabels.offsetX),
|
|
1043
1049
|
y: Y(t, n).y + j.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
@@ -1051,57 +1057,57 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1051
1057
|
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1052
1058
|
"vue-ui-rings-blur": E.value !== null && E.value !== n
|
|
1053
1059
|
}),
|
|
1054
|
-
onMouseenter: (e) =>
|
|
1055
|
-
onMouseleave: (e) =>
|
|
1056
|
-
onClick: (e) =>
|
|
1060
|
+
onMouseenter: (e) => En(t, n, "pointer"),
|
|
1061
|
+
onMouseleave: (e) => Sn(t, n),
|
|
1062
|
+
onClick: (e) => xn(t, n),
|
|
1057
1063
|
innerHTML: b(re)({
|
|
1058
|
-
content:
|
|
1064
|
+
content: wn(t),
|
|
1059
1065
|
fontSize: j.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1060
1066
|
fill: j.value.style.chart.layout.labels.dataLabels.color,
|
|
1061
1067
|
x: Y(t, n).x + (j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -j.value.style.chart.layout.labels.dataLabels.offsetX - 6 - j.value.style.chart.layout.labels.dataLabels.markers.radius : j.value.style.chart.layout.labels.dataLabels.offsetX + 6 + j.value.style.chart.layout.labels.dataLabels.markers.radius),
|
|
1062
1068
|
y: Y(t, n).y + j.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
1063
1069
|
translateY: !0
|
|
1064
1070
|
})
|
|
1065
|
-
}, null, 42,
|
|
1071
|
+
}, null, 42, ft)
|
|
1066
1072
|
], 64)) : l("", !0)
|
|
1067
1073
|
]))), 256)),
|
|
1068
1074
|
y(e.$slots, "svg", { svg: {
|
|
1069
1075
|
...z.value,
|
|
1070
|
-
isPrintingImg: b(
|
|
1071
|
-
isPrintingSvg:
|
|
1076
|
+
isPrintingImg: b(rn) || b(an) || Ut.value,
|
|
1077
|
+
isPrintingSvg: Wt.value
|
|
1072
1078
|
} }, void 0, !0)
|
|
1073
|
-
], 46,
|
|
1079
|
+
], 46, rt)), e.$slots.hint ? (_(), u("div", pt, [y(e.$slots, "hint", h(p({
|
|
1074
1080
|
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1075
|
-
isVisible:
|
|
1081
|
+
isVisible: Kt.value
|
|
1076
1082
|
})), void 0, !0)])) : l("", !0)]),
|
|
1077
|
-
e.$slots.watermark ? (_(), u("div",
|
|
1078
|
-
d("div", { id: `legend-bottom-${w.value}` }, null, 8,
|
|
1079
|
-
|
|
1083
|
+
e.$slots.watermark ? (_(), u("div", mt, [y(e.$slots, "watermark", h(p({ isPrinting: b(rn) || b(an) || Ut.value || Wt.value })), void 0, !0)])) : l("", !0),
|
|
1084
|
+
d("div", { id: `legend-bottom-${w.value}` }, null, 8, ht),
|
|
1085
|
+
Vt.value && (j.value.style.chart.legend.show || e.$slots.legend) ? (_(), c(Le, {
|
|
1080
1086
|
key: 6,
|
|
1081
1087
|
to: j.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
1082
1088
|
}, [d("div", {
|
|
1083
1089
|
ref_key: "chartLegend",
|
|
1084
|
-
ref:
|
|
1085
|
-
}, [y(e.$slots, "legend", { legend: U.value }, () => [j.value.style.chart.legend.show ? (_(), c(
|
|
1086
|
-
key: `legend_${
|
|
1090
|
+
ref: Pt
|
|
1091
|
+
}, [y(e.$slots, "legend", { legend: U.value }, () => [j.value.style.chart.legend.show ? (_(), c(Pe, {
|
|
1092
|
+
key: `legend_${zt.value}`,
|
|
1087
1093
|
legendSet: U.value,
|
|
1088
|
-
config:
|
|
1094
|
+
config: yn.value,
|
|
1089
1095
|
isCursorPointer: M.value,
|
|
1090
1096
|
onClickMarker: t[0] ||= ({ legend: e }) => V(e.uid)
|
|
1091
|
-
},
|
|
1097
|
+
}, Re({
|
|
1092
1098
|
item: x(({ legend: e, index: t }) => [b(N) ? l("", !0) : (_(), u("div", {
|
|
1093
1099
|
key: 0,
|
|
1094
1100
|
onClick: (t) => V(e.uid),
|
|
1095
1101
|
style: g(`opacity:${B.value.includes(e.uid) ? .5 : 1}`)
|
|
1096
|
-
},
|
|
1097
|
-
legendToggle: x(() => [U.value.length > 2 && j.value.style.chart.legend.selectAllToggle.show && !b(N) ? (_(), c(
|
|
1102
|
+
}, Je(e.display), 13, gt))]),
|
|
1103
|
+
legendToggle: x(() => [U.value.length > 2 && j.value.style.chart.legend.selectAllToggle.show && !b(N) ? (_(), c(ke, {
|
|
1098
1104
|
key: 0,
|
|
1099
1105
|
backgroundColor: j.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1100
1106
|
color: j.value.style.chart.legend.selectAllToggle.color,
|
|
1101
1107
|
fontSize: j.value.style.chart.legend.fontSize,
|
|
1102
1108
|
checked: B.value.length > 0,
|
|
1103
1109
|
isCursorPointer: M.value,
|
|
1104
|
-
onToggle:
|
|
1110
|
+
onToggle: fn
|
|
1105
1111
|
}, null, 8, [
|
|
1106
1112
|
"backgroundColor",
|
|
1107
1113
|
"color",
|
|
@@ -1112,7 +1118,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1112
1118
|
_: 2
|
|
1113
1119
|
}, [e.$slots.pattern ? {
|
|
1114
1120
|
name: "legend-pattern",
|
|
1115
|
-
fn: x(({ legend: e, index: t }) => [
|
|
1121
|
+
fn: x(({ legend: e, index: t }) => [Be(we, {
|
|
1116
1122
|
shape: e.shape,
|
|
1117
1123
|
radius: 30,
|
|
1118
1124
|
stroke: "none",
|
|
@@ -1131,10 +1137,10 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1131
1137
|
e.$slots.source ? (_(), u("div", {
|
|
1132
1138
|
key: 7,
|
|
1133
1139
|
ref_key: "source",
|
|
1134
|
-
ref:
|
|
1140
|
+
ref: Ft,
|
|
1135
1141
|
dir: "auto"
|
|
1136
1142
|
}, [y(e.$slots, "source", {}, void 0, !0)], 512)) : l("", !0),
|
|
1137
|
-
|
|
1143
|
+
Be(b(vt), {
|
|
1138
1144
|
teleportTo: j.value.style.chart.tooltip.teleportTo,
|
|
1139
1145
|
show: R.value.showTooltip && T.value && B.value.length < S.dataset.length,
|
|
1140
1146
|
backgroundColor: j.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1148,7 +1154,7 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1148
1154
|
offsetX: j.value.style.chart.tooltip.offsetX,
|
|
1149
1155
|
offsetY: j.value.style.chart.tooltip.offsetY,
|
|
1150
1156
|
parent: D.value,
|
|
1151
|
-
content:
|
|
1157
|
+
content: jt.value,
|
|
1152
1158
|
isFullscreen: Q.value,
|
|
1153
1159
|
isCustom: j.value.style.chart.tooltip.customFormat && typeof j.value.style.chart.tooltip.customFormat == "function",
|
|
1154
1160
|
smooth: j.value.style.chart.tooltip.smooth,
|
|
@@ -1156,11 +1162,11 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1156
1162
|
smoothForce: j.value.style.chart.tooltip.smoothForce,
|
|
1157
1163
|
smoothSnapThreshold: j.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1158
1164
|
isA11yMode: A.value === "keyboard",
|
|
1159
|
-
a11yPosition:
|
|
1165
|
+
a11yPosition: Gt.value
|
|
1160
1166
|
}, {
|
|
1161
|
-
"tooltip-before": x(() => [y(e.$slots, "tooltip-before", h(p({ ...
|
|
1162
|
-
tooltip: x(() => [y(e.$slots, "tooltip", h(p({ ...
|
|
1163
|
-
"tooltip-after": x(() => [y(e.$slots, "tooltip-after", h(p({ ...
|
|
1167
|
+
"tooltip-before": x(() => [y(e.$slots, "tooltip-before", h(p({ ...Tn.value })), void 0, !0)]),
|
|
1168
|
+
tooltip: x(() => [y(e.$slots, "tooltip", h(p({ ...Tn.value })), void 0, !0)]),
|
|
1169
|
+
"tooltip-after": x(() => [y(e.$slots, "tooltip-after", h(p({ ...Tn.value })), void 0, !0)]),
|
|
1164
1170
|
_: 3
|
|
1165
1171
|
}, 8, [
|
|
1166
1172
|
"teleportTo",
|
|
@@ -1186,21 +1192,21 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1186
1192
|
"isA11yMode",
|
|
1187
1193
|
"a11yPosition"
|
|
1188
1194
|
]),
|
|
1189
|
-
|
|
1195
|
+
At.value && j.value.userOptions.buttons.table ? (_(), c(Ke(Pn.value.component), Ve({ key: 8 }, Pn.value.props, {
|
|
1190
1196
|
ref_key: "tableUnit",
|
|
1191
1197
|
ref: O,
|
|
1192
|
-
onClose:
|
|
1193
|
-
}),
|
|
1194
|
-
content: x(() => [(_(), c(b(
|
|
1195
|
-
key: `table_${
|
|
1198
|
+
onClose: Fn
|
|
1199
|
+
}), Re({
|
|
1200
|
+
content: x(() => [(_(), c(b(xt), {
|
|
1201
|
+
key: `table_${Rt.value}`,
|
|
1196
1202
|
colNames: Z.value.colNames,
|
|
1197
1203
|
head: Z.value.head,
|
|
1198
1204
|
body: Z.value.body,
|
|
1199
1205
|
config: Z.value.config,
|
|
1200
|
-
title: j.value.table.useDialog ? "" :
|
|
1206
|
+
title: j.value.table.useDialog ? "" : Pn.value.title,
|
|
1201
1207
|
withCloseButton: !j.value.table.useDialog,
|
|
1202
1208
|
isCursorPointer: M.value,
|
|
1203
|
-
onClose:
|
|
1209
|
+
onClose: Fn
|
|
1204
1210
|
}, {
|
|
1205
1211
|
th: x(({ th: e }) => [d("div", {
|
|
1206
1212
|
innerHTML: e,
|
|
@@ -1208,8 +1214,8 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1208
1214
|
display: "flex",
|
|
1209
1215
|
"align-items": "center"
|
|
1210
1216
|
}
|
|
1211
|
-
}, null, 8,
|
|
1212
|
-
td: x(({ td: e }) => [
|
|
1217
|
+
}, null, 8, _t)]),
|
|
1218
|
+
td: x(({ td: e }) => [ze(Je(e.name || e), 1)]),
|
|
1213
1219
|
_: 1
|
|
1214
1220
|
}, 8, [
|
|
1215
1221
|
"colNames",
|
|
@@ -1223,24 +1229,24 @@ var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et
|
|
|
1223
1229
|
_: 2
|
|
1224
1230
|
}, [j.value.table.useDialog ? {
|
|
1225
1231
|
name: "title",
|
|
1226
|
-
fn: x(() => [
|
|
1232
|
+
fn: x(() => [ze(Je(Pn.value.title), 1)]),
|
|
1227
1233
|
key: "0"
|
|
1228
1234
|
} : void 0, j.value.table.useDialog ? {
|
|
1229
1235
|
name: "actions",
|
|
1230
1236
|
fn: x(() => [d("button", {
|
|
1231
1237
|
tabindex: "0",
|
|
1232
1238
|
class: "vue-ui-user-options-button",
|
|
1233
|
-
onClick: t[1] ||= (e) =>
|
|
1239
|
+
onClick: t[1] ||= (e) => Dn(j.value.userOptions.callbacks.csv),
|
|
1234
1240
|
style: g({ cursor: M.value ? "pointer" : "default" })
|
|
1235
|
-
}, [
|
|
1241
|
+
}, [Be(b(yt), {
|
|
1236
1242
|
name: "fileCsv",
|
|
1237
|
-
stroke:
|
|
1243
|
+
stroke: Pn.value.props.color
|
|
1238
1244
|
}, null, 8, ["stroke"])], 4)]),
|
|
1239
1245
|
key: "1"
|
|
1240
1246
|
} : void 0]), 1040)) : l("", !0),
|
|
1241
1247
|
y(e.$slots, "skeleton", {}, () => [b(N) ? (_(), c(ve, { key: 0 })) : l("", !0)], !0)
|
|
1242
|
-
], 46,
|
|
1248
|
+
], 46, $e));
|
|
1243
1249
|
}
|
|
1244
|
-
}, [["__scopeId", "data-v-
|
|
1250
|
+
}, [["__scopeId", "data-v-7ca35ef0"]]);
|
|
1245
1251
|
//#endregion
|
|
1246
|
-
export {
|
|
1252
|
+
export { Qe as n, vt as t };
|