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
|
@@ -11,42 +11,43 @@ import { n as Ce } from "./Title-CcNiYzEo.js";
|
|
|
11
11
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as Te } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as Ee } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as De } from "./
|
|
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 {
|
|
14
|
+
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as Oe } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
16
|
+
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Me } from "./labelUtils-DBEh078l.js";
|
|
20
|
+
import { t as Ne } from "./Legend-ROt6ugzW.js";
|
|
21
|
+
import { t as Pe } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
22
|
+
import { Fragment as u, Teleport as Fe, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as ze, nextTick as Be, normalizeClass as v, normalizeProps as y, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as w, toRefs as Ke, unref as T, vShow as qe, watch as Je, withCtx as E, withDirectives as Ye } from "vue";
|
|
22
23
|
//#region src/components/vue-ui-nested-donuts.vue
|
|
23
|
-
var
|
|
24
|
+
var Xe = /* @__PURE__ */ e({ default: () => Dt }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
24
25
|
"xmlns",
|
|
25
26
|
"aria-describedby",
|
|
26
27
|
"viewBox"
|
|
27
|
-
],
|
|
28
|
+
], nt = ["width", "height"], rt = ["id"], it = ["id"], at = ["id"], ot = ["flood-color"], st = ["id", "d"], ct = [
|
|
28
29
|
"d",
|
|
29
30
|
"fill",
|
|
30
31
|
"stroke",
|
|
31
32
|
"stroke-width",
|
|
32
33
|
"filter"
|
|
33
|
-
],
|
|
34
|
+
], lt = [
|
|
34
35
|
"d",
|
|
35
36
|
"fill",
|
|
36
37
|
"stroke",
|
|
37
38
|
"stroke-width"
|
|
38
|
-
],
|
|
39
|
+
], ut = { key: 1 }, dt = ["d", "fill"], ft = { key: 2 }, pt = [
|
|
39
40
|
"font-size",
|
|
40
41
|
"font-weight",
|
|
41
42
|
"fill",
|
|
42
43
|
"dy"
|
|
43
|
-
],
|
|
44
|
+
], mt = ["href"], ht = [
|
|
44
45
|
"x",
|
|
45
46
|
"y",
|
|
46
47
|
"font-size",
|
|
47
48
|
"font-weight",
|
|
48
49
|
"fill"
|
|
49
|
-
],
|
|
50
|
+
], gt = { key: 3 }, _t = ["filter"], vt = [
|
|
50
51
|
"opacity",
|
|
51
52
|
"text-anchor",
|
|
52
53
|
"x",
|
|
@@ -54,7 +55,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
54
55
|
"fill",
|
|
55
56
|
"font-size",
|
|
56
57
|
"font-weight"
|
|
57
|
-
],
|
|
58
|
+
], yt = [
|
|
58
59
|
"opacity",
|
|
59
60
|
"text-anchor",
|
|
60
61
|
"x",
|
|
@@ -62,13 +63,13 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
62
63
|
"fill",
|
|
63
64
|
"font-size",
|
|
64
65
|
"font-weight"
|
|
65
|
-
],
|
|
66
|
+
], bt = [
|
|
66
67
|
"d",
|
|
67
68
|
"fill",
|
|
68
69
|
"onMouseenter",
|
|
69
70
|
"onClick",
|
|
70
71
|
"onMouseleave"
|
|
71
|
-
],
|
|
72
|
+
], xt = {
|
|
72
73
|
key: 0,
|
|
73
74
|
style: {
|
|
74
75
|
position: "absolute",
|
|
@@ -78,13 +79,13 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
78
79
|
},
|
|
79
80
|
"data-dom-to-png-ignore": "",
|
|
80
81
|
"aria-hidden": "true"
|
|
81
|
-
},
|
|
82
|
+
}, St = {
|
|
82
83
|
key: 5,
|
|
83
84
|
class: "vue-data-ui-watermark"
|
|
84
|
-
},
|
|
85
|
+
}, Ct = ["id"], wt = {
|
|
85
86
|
key: 0,
|
|
86
87
|
class: "vue-ui-nested-donuts-legend-title"
|
|
87
|
-
},
|
|
88
|
+
}, Tt = ["onClick"], Et = ["innerHTML"], Dt = /*#__PURE__*/ we({
|
|
88
89
|
__name: "vue-ui-nested-donuts",
|
|
89
90
|
props: {
|
|
90
91
|
config: {
|
|
@@ -105,22 +106,22 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
105
106
|
"selectDatapoint",
|
|
106
107
|
"copyAlt"
|
|
107
108
|
],
|
|
108
|
-
setup(e, { expose: we, emit:
|
|
109
|
-
let
|
|
109
|
+
setup(e, { expose: we, emit: Xe }) {
|
|
110
|
+
let Dt = g(() => import("./Tooltip-CxOrWlFy.js")), Ot = g(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), kt = g(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), At = g(() => import("./DataTable-BxpTMgfK.js")), jt = g(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Mt = g(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Nt = g(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Pt = g(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_nested_donuts: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), D = e, Rt = d({
|
|
110
111
|
get() {
|
|
111
112
|
return !!D.dataset && D.dataset.length;
|
|
112
113
|
},
|
|
113
114
|
set(e) {
|
|
114
115
|
return e;
|
|
115
116
|
}
|
|
116
|
-
}), O = x(r()),
|
|
117
|
+
}), O = x(r()), zt = x(!1), Bt = x(""), Vt = x(null), Ht = x(0), k = x(null), Ut = x(null), Wt = x(null), Gt = x(null), Kt = x(null), qt = x(0), Jt = x(0), Yt = x(0), A = x(!0), j = x([]), Xt = x([]), Zt = x(!1), Qt = x(null), $t = x(null), en = x(!1), tn = x(!1), M = x(null), nn = x({
|
|
117
118
|
x: 0,
|
|
118
119
|
y: 0
|
|
119
|
-
}),
|
|
120
|
-
function
|
|
121
|
-
N.value = e,
|
|
120
|
+
}), rn = x("pointer"), an = x(!1), N = x(!1);
|
|
121
|
+
function on(e) {
|
|
122
|
+
N.value = e, Ht.value += 1;
|
|
122
123
|
}
|
|
123
|
-
let P = x(
|
|
124
|
+
let P = x(mn()), F = d(() => P.value.userOptions.useCursorPointer), sn = {
|
|
124
125
|
name: "",
|
|
125
126
|
series: [
|
|
126
127
|
{
|
|
@@ -139,7 +140,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
139
140
|
color: "#CACACA"
|
|
140
141
|
}
|
|
141
142
|
]
|
|
142
|
-
},
|
|
143
|
+
}, cn = d(() => o({
|
|
143
144
|
defaultConfig: {
|
|
144
145
|
useCssAnimation: !1,
|
|
145
146
|
table: { show: !1 },
|
|
@@ -160,30 +161,30 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
160
161
|
} }
|
|
161
162
|
},
|
|
162
163
|
userConfig: P.value.skeletonConfig ?? {}
|
|
163
|
-
})), { loading:
|
|
164
|
-
...
|
|
164
|
+
})), { loading: ln, FINAL_DATASET: I, manualLoading: un } = _e({
|
|
165
|
+
...Ke(D),
|
|
165
166
|
FINAL_CONFIG: P,
|
|
166
|
-
prepareConfig:
|
|
167
|
+
prepareConfig: mn,
|
|
167
168
|
callback: () => {
|
|
168
169
|
Promise.resolve().then(async () => {
|
|
169
|
-
await
|
|
170
|
+
await _n();
|
|
170
171
|
});
|
|
171
172
|
},
|
|
172
|
-
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
173
|
+
skeletonDataset: D.config?.skeletonDataset ?? [sn, sn],
|
|
173
174
|
skeletonConfig: o({
|
|
174
175
|
defaultConfig: P.value,
|
|
175
|
-
userConfig:
|
|
176
|
+
userConfig: cn.value
|
|
176
177
|
})
|
|
177
|
-
}), { userOptionsVisible:
|
|
178
|
-
function
|
|
178
|
+
}), { userOptionsVisible: dn, setUserOptionsVisibility: fn, keepUserOptionState: pn } = Ae({ config: P.value }), { svgRef: L } = je({ config: P.value.style.chart.title });
|
|
179
|
+
function mn() {
|
|
179
180
|
let e = be({
|
|
180
181
|
userConfig: D.config,
|
|
181
|
-
defaultConfig:
|
|
182
|
+
defaultConfig: Ft
|
|
182
183
|
}), t = {}, n = e.theme;
|
|
183
|
-
if (n) if (!
|
|
184
|
+
if (n) if (!It.value(e)) Lt(e), t = e;
|
|
184
185
|
else {
|
|
185
186
|
let r = be({
|
|
186
|
-
userConfig:
|
|
187
|
+
userConfig: Pe[n] || D.config,
|
|
187
188
|
defaultConfig: e
|
|
188
189
|
});
|
|
189
190
|
t = {
|
|
@@ -197,10 +198,10 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
197
198
|
else t = e;
|
|
198
199
|
return t;
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
Je(() => D.config, (e) => {
|
|
202
|
+
ln.value || (P.value = mn()), dn.value = !P.value.userOptions.showOnChartHover, vn(), qt.value += 1, Jt.value += 1, Yt.value += 1, V.value.dataLabels.show = P.value.style.chart.layout.labels.dataLabels.show, V.value.showTable = P.value.table.show, V.value.showTooltip = P.value.style.chart.tooltip.show, H.value.width = P.value.style.chart.width, H.value.height = P.value.style.chart.height;
|
|
202
203
|
}, { deep: !0 });
|
|
203
|
-
let
|
|
204
|
+
let hn = d(() => {
|
|
204
205
|
let { top: e, right: t, bottom: n, left: r } = P.value.style.chart.padding;
|
|
205
206
|
return {
|
|
206
207
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -210,10 +211,10 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
210
211
|
left: r
|
|
211
212
|
};
|
|
212
213
|
});
|
|
213
|
-
function
|
|
214
|
+
function gn(e, t = 1e3, n = 50) {
|
|
214
215
|
return new Promise((r) => {
|
|
215
216
|
let a = e.length;
|
|
216
|
-
j.value = Array(a).fill(0),
|
|
217
|
+
j.value = Array(a).fill(0), Xt.value = [];
|
|
217
218
|
let o = 0;
|
|
218
219
|
e.forEach((e, s) => {
|
|
219
220
|
setTimeout(() => {
|
|
@@ -237,17 +238,17 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
237
238
|
absoluteValues: [],
|
|
238
239
|
ghost: !0
|
|
239
240
|
}), ie += e.series.length;
|
|
240
|
-
}),
|
|
241
|
+
}), Xt.value = re, te < 1 ? requestAnimationFrame(c) : (o += 1, o === a && r());
|
|
241
242
|
}
|
|
242
243
|
requestAnimationFrame(c);
|
|
243
244
|
}, s * n);
|
|
244
245
|
});
|
|
245
246
|
});
|
|
246
247
|
}
|
|
247
|
-
async function
|
|
248
|
+
async function _n() {
|
|
248
249
|
if (P.value.startAnimation?.show) {
|
|
249
250
|
let e = I.value.flatMap((e) => e.series).map((e) => i(e.values).reduce((e, t) => e + t, 0));
|
|
250
|
-
j.value = e.map(() => 0), A.value = !0,
|
|
251
|
+
j.value = e.map(() => 0), A.value = !0, Xt.value = I.value.map((e, t) => {
|
|
251
252
|
let n = e.series.reduce((e, t) => e + i(t.values).reduce((e, t) => e + t, 0), 0);
|
|
252
253
|
return {
|
|
253
254
|
name: "__ghost__",
|
|
@@ -262,29 +263,29 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
262
263
|
absoluteValues: [],
|
|
263
264
|
ghost: !0
|
|
264
265
|
};
|
|
265
|
-
}), await
|
|
266
|
-
A.value = !1,
|
|
266
|
+
}), await Be(), gn(e, P.value.startAnimation.durationMs, P.value.startAnimation.staggerMs).then(() => {
|
|
267
|
+
A.value = !1, Xt.value = [];
|
|
267
268
|
});
|
|
268
269
|
} else A.value = !1;
|
|
269
270
|
}
|
|
270
|
-
|
|
271
|
-
|
|
271
|
+
Ue(async () => {
|
|
272
|
+
Zt.value = !0, vn(), await _n();
|
|
272
273
|
});
|
|
273
|
-
let R =
|
|
274
|
-
function
|
|
274
|
+
let R = Ge(null), z = Ge(null), B = d(() => !!P.value.debug);
|
|
275
|
+
function vn() {
|
|
275
276
|
if (ce(D.dataset) ? (t({
|
|
276
277
|
componentName: "VueUiNestedDonuts",
|
|
277
278
|
type: "dataset",
|
|
278
279
|
debug: B.value
|
|
279
|
-
}),
|
|
280
|
+
}), Rt.value = !1, un.value = !0) : un.value = P.value.loading, P.value.responsive) {
|
|
280
281
|
let e = Te(() => {
|
|
281
282
|
let { width: e, height: t } = Ee({
|
|
282
283
|
chart: k.value,
|
|
283
|
-
title: P.value.style.chart.title.text ?
|
|
284
|
-
legend: P.value.style.chart.legend.show ?
|
|
285
|
-
source:
|
|
286
|
-
noTitle:
|
|
287
|
-
padding:
|
|
284
|
+
title: P.value.style.chart.title.text ? Ut.value : null,
|
|
285
|
+
legend: P.value.style.chart.legend.show ? Wt.value : null,
|
|
286
|
+
source: Gt.value,
|
|
287
|
+
noTitle: Kt.value,
|
|
288
|
+
padding: hn.value
|
|
288
289
|
});
|
|
289
290
|
requestAnimationFrame(() => {
|
|
290
291
|
H.value.width = e, H.value.height = t;
|
|
@@ -293,19 +294,19 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
293
294
|
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = k.value.parentNode, R.value.observe(z.value);
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
|
-
|
|
297
|
+
He(() => {
|
|
297
298
|
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
298
299
|
});
|
|
299
|
-
let { isPrinting:
|
|
300
|
+
let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = ge({
|
|
300
301
|
elementId: `nested_donuts_${O.value}`,
|
|
301
302
|
fileName: P.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
302
303
|
options: P.value.userOptions.print
|
|
303
|
-
}),
|
|
304
|
+
}), Cn = d(() => P.value.userOptions.show && !P.value.style.chart.title.text), wn = d(() => te(P.value.customPalette)), V = x({
|
|
304
305
|
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
305
306
|
showTable: P.value.table.show,
|
|
306
307
|
showTooltip: P.value.style.chart.tooltip.show
|
|
307
308
|
});
|
|
308
|
-
|
|
309
|
+
Je(P, () => {
|
|
309
310
|
V.value = {
|
|
310
311
|
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
311
312
|
showTable: P.value.table.show,
|
|
@@ -315,8 +316,8 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
315
316
|
let H = x({
|
|
316
317
|
width: P.value.style.chart.width,
|
|
317
318
|
height: P.value.style.chart.height
|
|
318
|
-
}), U =
|
|
319
|
-
function
|
|
319
|
+
}), U = Xe;
|
|
320
|
+
function Tn({ datapoint: e, index: t, seriesIndex: n }) {
|
|
320
321
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
321
322
|
datapoint: e,
|
|
322
323
|
seriesIndex: n
|
|
@@ -325,7 +326,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
325
326
|
index: t
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function En({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = l }) {
|
|
329
330
|
let o = performance.now();
|
|
330
331
|
function s(c) {
|
|
331
332
|
let l = Math.min((c - o) / n, 1), ee = a(l);
|
|
@@ -334,7 +335,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
334
335
|
requestAnimationFrame(s);
|
|
335
336
|
}
|
|
336
337
|
let W = x([]), G = d(() => {
|
|
337
|
-
|
|
338
|
+
ln.value, I.value.forEach((e, n) => {
|
|
338
339
|
[null, void 0].includes(e.name) && t({
|
|
339
340
|
componentName: "VueUiNestedDonuts",
|
|
340
341
|
type: "datasetSerieAttribute",
|
|
@@ -385,15 +386,15 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
385
386
|
id: `${O.value}_${n}_${a}`,
|
|
386
387
|
seriesIndex: a,
|
|
387
388
|
datasetIndex: n,
|
|
388
|
-
color: ae(r.color) ||
|
|
389
|
+
color: ae(r.color) || wn.value[a] || s[a % s.length],
|
|
389
390
|
value: A.value ? j.value[e++] ?? 0 : o,
|
|
390
391
|
absoluteValues: r.values || []
|
|
391
392
|
};
|
|
392
393
|
})
|
|
393
394
|
}));
|
|
394
395
|
});
|
|
395
|
-
|
|
396
|
-
Array.isArray(e) && e.length > 0 && (
|
|
396
|
+
Je(() => D.dataset, (e) => {
|
|
397
|
+
Array.isArray(e) && e.length > 0 && (un.value = !1);
|
|
397
398
|
}, { immediate: !0 });
|
|
398
399
|
let K = d(() => Math.min(H.value.height, H.value.width) * (P.value.style.chart.layout.donut.strokeWidth / 512)), q = d(() => [...G.value].map((e, t) => {
|
|
399
400
|
let n = e.series.filter((e) => !W.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -406,14 +407,14 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
406
407
|
}))
|
|
407
408
|
};
|
|
408
409
|
}));
|
|
409
|
-
function
|
|
410
|
+
function Dn(e, t, n) {
|
|
410
411
|
let r = 0;
|
|
411
412
|
for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
|
|
412
413
|
return r < t;
|
|
413
414
|
}
|
|
414
415
|
let J = x(q.value);
|
|
415
|
-
|
|
416
|
-
function
|
|
416
|
+
Je(() => q.value, (e) => J.value = e);
|
|
417
|
+
function On(e) {
|
|
417
418
|
let t = e.map((e) => e.id);
|
|
418
419
|
if (e.some((e) => W.value.includes(e.id))) {
|
|
419
420
|
let e = new Set(t);
|
|
@@ -430,8 +431,8 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
430
431
|
if (!t) return;
|
|
431
432
|
let n = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), a = r ? r.value : 0, o = G.value.find((e) => e.id === t.arcOfId);
|
|
432
433
|
if (!o) return;
|
|
433
|
-
let s = o.series.map((e) => e.id), c =
|
|
434
|
-
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), P.value.serieToggleAnimation.show ?
|
|
434
|
+
let s = o.series.map((e) => e.id), c = Dn(s, s.length - 1, W.value);
|
|
435
|
+
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), P.value.serieToggleAnimation.show ? En({
|
|
435
436
|
from: a,
|
|
436
437
|
to: n,
|
|
437
438
|
duration: P.value.serieToggleAnimation.durationMs,
|
|
@@ -453,7 +454,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
453
454
|
...t,
|
|
454
455
|
value: n
|
|
455
456
|
} : t)
|
|
456
|
-
})), U("selectLegend", q.value))) : c && (P.value.serieToggleAnimation.show ?
|
|
457
|
+
})), U("selectLegend", q.value))) : c && (P.value.serieToggleAnimation.show ? En({
|
|
457
458
|
from: a,
|
|
458
459
|
to: 0,
|
|
459
460
|
duration: P.value.serieToggleAnimation.durationMs,
|
|
@@ -477,30 +478,30 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
477
478
|
} : t)
|
|
478
479
|
})), W.value.push(e.id), U("selectLegend", q.value)));
|
|
479
480
|
}
|
|
480
|
-
function
|
|
481
|
+
function kn(e) {
|
|
481
482
|
return G.value.length ? G.value.flatMap((e) => e.series).filter((t) => t.name === e) || (P.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
-
let t =
|
|
484
|
+
function An(e) {
|
|
485
|
+
let t = kn(e);
|
|
485
486
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
486
487
|
W.value.includes(e.id) && Y({ id: e.id });
|
|
487
488
|
}) : W.value.includes(t.id) && Y({ id: t.id }));
|
|
488
489
|
}
|
|
489
|
-
function
|
|
490
|
-
let t =
|
|
490
|
+
function jn(e) {
|
|
491
|
+
let t = kn(e);
|
|
491
492
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
492
493
|
W.value.includes(e.id) || Y({ id: e.id });
|
|
493
494
|
}) : W.value.includes(t.id) || Y({ id: t.id }));
|
|
494
495
|
}
|
|
495
|
-
let
|
|
496
|
-
let r = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, i = K.value - t * K.value / J.value.length, a = A.value ?
|
|
496
|
+
let Mn = d(() => K.value / G.value.length * P.value.style.chart.layout.donut.spacingRatio), Nn = d(() => J.value.map((e, t) => K.value - t * K.value / G.value.length)), X = d(() => J.value.map((e, t) => {
|
|
497
|
+
let r = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, i = K.value - t * K.value / J.value.length, a = A.value ? Xt.value.find((e) => e.datasetIndex === t) : null, o = [...e.series, ...a ? [a] : []].map((e) => ({
|
|
497
498
|
...e,
|
|
498
499
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
499
500
|
})), s = n({ series: [{
|
|
500
501
|
name: "_",
|
|
501
502
|
color: P.value.style.chart.layout.donut.emptyFill,
|
|
502
503
|
value: 1
|
|
503
|
-
}] }, H.value.width / 2, H.value.height / 2, i, i, 1.99999, 2, 1, 360, 105.25,
|
|
504
|
+
}] }, H.value.width / 2, H.value.height / 2, i, i, 1.99999, 2, 1, 360, 105.25, Mn.value), c = `M ${H.value.width / 2},${H.value.height / 2 + i}
|
|
504
505
|
a ${i},${i} 0 1,1 0,${-2 * i}
|
|
505
506
|
a ${i},${i} 0 1,1 0,${2 * i}`;
|
|
506
507
|
return {
|
|
@@ -509,23 +510,23 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
509
510
|
radius: i,
|
|
510
511
|
skeleton: s,
|
|
511
512
|
fullCirclePath: c,
|
|
512
|
-
donut: n({ series: o }, H.value.width / 2, H.value.height / 2, i, i, 1.99999, 2, 1, 360, 105.25,
|
|
513
|
+
donut: n({ series: o }, H.value.width / 2, H.value.height / 2, i, i, 1.99999, 2, 1, 360, 105.25, Mn.value)
|
|
513
514
|
};
|
|
514
|
-
})),
|
|
515
|
+
})), Pn = d(() => [...G.value].map((e, t) => {
|
|
515
516
|
let r = t * K.value / G.value.length;
|
|
516
517
|
return {
|
|
517
518
|
sizeRatio: r,
|
|
518
519
|
donut: n({ series: [{ value: 1 }] }, H.value.width / 2, H.value.height / 2, K.value - r, K.value - r, 1.99999, 2, 1, 360, 105.25, K.value / G.value.length * P.value.style.chart.layout.donut.spacingRatio)[0]
|
|
519
520
|
};
|
|
520
|
-
})),
|
|
521
|
-
function
|
|
521
|
+
})), Fn = x(null), In = x(null), Z = x(null), Ln = x(null);
|
|
522
|
+
function Rn({ datapoint: e, seriesIndex: t }) {
|
|
522
523
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
523
524
|
datapoint: e,
|
|
524
525
|
seriesIndex: t
|
|
525
|
-
}),
|
|
526
|
+
}), zt.value = !1, Fn.value = null, Vt.value = null, In.value = null, Z.value = null, M.value = null, rn.value = "pointer";
|
|
526
527
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
528
|
+
function zn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
529
|
+
return Me({
|
|
529
530
|
config: i,
|
|
530
531
|
val: e,
|
|
531
532
|
percentage: t,
|
|
@@ -533,11 +534,11 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
533
534
|
showPercentage: r
|
|
534
535
|
});
|
|
535
536
|
}
|
|
536
|
-
function
|
|
537
|
+
function Bn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
537
538
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
538
539
|
datapoint: e,
|
|
539
540
|
seriesIndex: n
|
|
540
|
-
}),
|
|
541
|
+
}), rn.value = r, M.value = n, Fn.value = e.arcOfId, In.value = e.id, Z.value = n, Vt.value = e.id, Ln.value = {
|
|
541
542
|
datapoint: e,
|
|
542
543
|
seriesIndex: n,
|
|
543
544
|
series: J.value,
|
|
@@ -549,7 +550,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
549
550
|
datapoint: e,
|
|
550
551
|
series: J.value,
|
|
551
552
|
config: P.value
|
|
552
|
-
})))
|
|
553
|
+
}))) Bt.value = i({
|
|
553
554
|
seriesIndex: n,
|
|
554
555
|
datapoint: e,
|
|
555
556
|
series: J.value,
|
|
@@ -573,7 +574,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
573
574
|
</div>
|
|
574
575
|
<span>
|
|
575
576
|
<b>
|
|
576
|
-
${
|
|
577
|
+
${zn({
|
|
577
578
|
config: P.value.style.chart.tooltip,
|
|
578
579
|
showVal: P.value.style.chart.tooltip.showValue,
|
|
579
580
|
showPercentage: P.value.style.chart.tooltip.showPercentage,
|
|
@@ -614,25 +615,25 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
614
615
|
s: "%",
|
|
615
616
|
r: P.value.style.chart.tooltip.roundingPercentage
|
|
616
617
|
})}</b></div>`);
|
|
617
|
-
|
|
618
|
+
Bt.value = `<div style="font-size:${P.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
618
619
|
}
|
|
619
|
-
|
|
620
|
+
zt.value = !0;
|
|
620
621
|
}
|
|
621
|
-
function
|
|
622
|
+
function Vn(e) {
|
|
622
623
|
return e.proportion * 100 > P.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
+
function Hn(e, t) {
|
|
625
626
|
if (!P.value.useBlurOnHover) return "";
|
|
626
627
|
if (P.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${O.value})`;
|
|
627
|
-
if (!P.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(
|
|
628
|
+
if (!P.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(In.value) || In.value === e.id ? "" : `url(#blur_${O.value})`;
|
|
628
629
|
}
|
|
629
|
-
let
|
|
630
|
+
let Un = d(() => G.value.map((e, t) => {
|
|
630
631
|
let n = e.series.filter((e) => !W.value.includes(e.id)), r = A.value ? n.map((e) => {
|
|
631
632
|
let n = I.value[t].series.findIndex((t) => t.name === e.name);
|
|
632
633
|
return i(I.value[t].series[n].values).reduce((e, t) => e + t, 0);
|
|
633
634
|
}).reduce((e, t) => e + t, 0) : n.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
634
635
|
return e.series.map((e, n) => {
|
|
635
|
-
let o = i(I.value[t].series[n].values).reduce((e, t) => e + t, 0), s = A.value ? o : e.value, c =
|
|
636
|
+
let o = i(I.value[t].series[n].values).reduce((e, t) => e + t, 0), s = A.value ? o : e.value, c = zn({
|
|
636
637
|
val: se(P.value.style.chart.layout.labels.dataLabels.formatter, s, a({
|
|
637
638
|
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
638
639
|
v: s,
|
|
@@ -668,7 +669,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
668
669
|
isSegregated: W.value.includes(e.id)
|
|
669
670
|
};
|
|
670
671
|
});
|
|
671
|
-
})),
|
|
672
|
+
})), Wn = d(() => ({
|
|
672
673
|
cy: "nested-donuts-legend",
|
|
673
674
|
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
674
675
|
color: P.value.style.chart.legend.color,
|
|
@@ -683,8 +684,8 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
683
684
|
}))),
|
|
684
685
|
body: J.value.flatMap((e) => e.series.map((e) => e.value))
|
|
685
686
|
}));
|
|
686
|
-
function
|
|
687
|
-
|
|
687
|
+
function Gn(e = null) {
|
|
688
|
+
Be(() => {
|
|
688
689
|
let t = Q.value.head.map((e, t) => [
|
|
689
690
|
[e.name],
|
|
690
691
|
[Q.value.body[t]],
|
|
@@ -704,7 +705,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
704
705
|
});
|
|
705
706
|
});
|
|
706
707
|
}
|
|
707
|
-
let
|
|
708
|
+
let Kn = d(() => {
|
|
708
709
|
let e = [
|
|
709
710
|
P.value.table.columnNames.series,
|
|
710
711
|
P.value.table.columnNames.value,
|
|
@@ -753,23 +754,23 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
753
754
|
config: r
|
|
754
755
|
};
|
|
755
756
|
});
|
|
756
|
-
function
|
|
757
|
+
function qn() {
|
|
757
758
|
return G.value;
|
|
758
759
|
}
|
|
759
|
-
function
|
|
760
|
+
function Jn() {
|
|
760
761
|
V.value.showTable = !V.value.showTable;
|
|
761
762
|
}
|
|
762
|
-
function
|
|
763
|
+
function Yn() {
|
|
763
764
|
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
+
function Xn() {
|
|
766
767
|
V.value.showTooltip = !V.value.showTooltip;
|
|
767
768
|
}
|
|
768
|
-
let
|
|
769
|
-
function
|
|
770
|
-
|
|
769
|
+
let Zn = x(!1);
|
|
770
|
+
function Qn() {
|
|
771
|
+
Zn.value = !Zn.value;
|
|
771
772
|
}
|
|
772
|
-
async function
|
|
773
|
+
async function $n({ scale: e = 2 } = {}) {
|
|
773
774
|
if (!k.value) return;
|
|
774
775
|
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
775
776
|
domElement: k.value,
|
|
@@ -786,16 +787,16 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
786
787
|
aspectRatio: r
|
|
787
788
|
};
|
|
788
789
|
}
|
|
789
|
-
let
|
|
790
|
-
function
|
|
791
|
-
if (!
|
|
792
|
-
let { x: e, y: t, width: n, height: r } =
|
|
790
|
+
let er = x(null);
|
|
791
|
+
function tr() {
|
|
792
|
+
if (!er.value) return;
|
|
793
|
+
let { x: e, y: t, width: n, height: r } = er.value.getBBox();
|
|
793
794
|
L.value && L.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
794
795
|
}
|
|
795
|
-
let
|
|
796
|
+
let nr = d(() => {
|
|
796
797
|
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
797
798
|
return {
|
|
798
|
-
component: e ?
|
|
799
|
+
component: e ? Pt : kt,
|
|
799
800
|
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
800
801
|
props: e ? {
|
|
801
802
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -823,50 +824,50 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
823
824
|
}
|
|
824
825
|
};
|
|
825
826
|
});
|
|
826
|
-
|
|
827
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
827
|
+
Je(() => V.value.showTable, (e) => {
|
|
828
|
+
P.value.table.show || (e && P.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
|
|
828
829
|
});
|
|
829
|
-
function
|
|
830
|
-
V.value.showTable = !1,
|
|
830
|
+
function rr() {
|
|
831
|
+
V.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
|
|
831
832
|
}
|
|
832
|
-
let
|
|
833
|
+
let ir = d(() => P.value.style.chart.backgroundColor), ar = d(() => P.value.style.chart.legend), { exportSvg: or, getSvg: sr } = ye({
|
|
833
834
|
svg: L,
|
|
834
835
|
title: d(() => P.value.style.chart.title),
|
|
835
|
-
legend:
|
|
836
|
-
legendItems: d(() =>
|
|
836
|
+
legend: ar,
|
|
837
|
+
legendItems: d(() => Un.value.flat().map((e) => ({
|
|
837
838
|
...e,
|
|
838
839
|
name: e.svgDisplay
|
|
839
840
|
}))),
|
|
840
|
-
backgroundColor:
|
|
841
|
+
backgroundColor: ir
|
|
841
842
|
});
|
|
842
|
-
async function
|
|
843
|
-
|
|
843
|
+
async function cr({ isCb: e }) {
|
|
844
|
+
tn.value = !0, await Be();
|
|
844
845
|
try {
|
|
845
846
|
if (e) {
|
|
846
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
847
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await sr();
|
|
847
848
|
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
848
849
|
blob: e,
|
|
849
850
|
url: t,
|
|
850
851
|
text: n,
|
|
851
852
|
dataUrl: r
|
|
852
853
|
}));
|
|
853
|
-
} else await Promise.resolve(
|
|
854
|
+
} else await Promise.resolve(or());
|
|
854
855
|
} finally {
|
|
855
|
-
|
|
856
|
+
tn.value = !1;
|
|
856
857
|
}
|
|
857
858
|
}
|
|
858
|
-
function
|
|
859
|
+
function lr(e) {
|
|
859
860
|
if (e?.stage === "start") {
|
|
860
|
-
|
|
861
|
+
en.value = !0;
|
|
861
862
|
return;
|
|
862
863
|
}
|
|
863
864
|
if (e?.stage === "end") {
|
|
864
|
-
|
|
865
|
+
en.value = !1;
|
|
865
866
|
return;
|
|
866
867
|
}
|
|
867
|
-
|
|
868
|
+
Sn();
|
|
868
869
|
}
|
|
869
|
-
async function
|
|
870
|
+
async function ur() {
|
|
870
871
|
if (U("copyAlt", {
|
|
871
872
|
config: P.value,
|
|
872
873
|
dataset: J.value
|
|
@@ -880,25 +881,25 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
880
881
|
}));
|
|
881
882
|
}
|
|
882
883
|
let $ = d(() => X.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
|
|
883
|
-
function
|
|
884
|
-
M.value = null,
|
|
884
|
+
function dr() {
|
|
885
|
+
M.value = null, an.value = !0;
|
|
885
886
|
}
|
|
886
|
-
function
|
|
887
|
-
M.value = null,
|
|
887
|
+
function fr() {
|
|
888
|
+
M.value = null, rn.value = "pointer", zt.value = !1, Fn.value = null, Vt.value = null, In.value = null, Z.value = null, an.value = !1;
|
|
888
889
|
}
|
|
889
|
-
function
|
|
890
|
-
if (!L.value ||
|
|
890
|
+
function pr(e) {
|
|
891
|
+
if (!L.value || Zn.value || document.activeElement !== L.value || !$.value.length) return;
|
|
891
892
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
892
893
|
if (!t && !n && !r && !i) return;
|
|
893
894
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
894
|
-
M.value = null,
|
|
895
|
+
M.value = null, rn.value = "pointer", zt.value = !1, Fn.value = null, Vt.value = null, In.value = null, Z.value = null;
|
|
895
896
|
return;
|
|
896
897
|
}
|
|
897
898
|
if (r) {
|
|
898
899
|
if (M.value === null) return;
|
|
899
900
|
let e = $.value[M.value];
|
|
900
901
|
if (!e) return;
|
|
901
|
-
|
|
902
|
+
Tn({
|
|
902
903
|
datapoint: e,
|
|
903
904
|
index: M.value,
|
|
904
905
|
seriesIndex: e.seriesIndex
|
|
@@ -908,7 +909,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
908
909
|
let a = M.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
|
|
909
910
|
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
910
911
|
let l = $.value[a];
|
|
911
|
-
l && (M.value = a,
|
|
912
|
+
l && (M.value = a, mr(), Bn({
|
|
912
913
|
datapoint: l,
|
|
913
914
|
relativeIndex: a,
|
|
914
915
|
seriesIndex: l.seriesIndex,
|
|
@@ -916,52 +917,52 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
916
917
|
triggerMode: "keyboard"
|
|
917
918
|
}));
|
|
918
919
|
}
|
|
919
|
-
function
|
|
920
|
+
function mr() {
|
|
920
921
|
if (!L.value) return;
|
|
921
922
|
let e = L.value.getBoundingClientRect();
|
|
922
|
-
|
|
923
|
+
nn.value = {
|
|
923
924
|
x: e.left + e.width / 2,
|
|
924
925
|
y: e.top + e.height / 2
|
|
925
926
|
};
|
|
926
927
|
}
|
|
927
|
-
let
|
|
928
|
-
headers:
|
|
929
|
-
rows:
|
|
928
|
+
let hr = d(() => ({
|
|
929
|
+
headers: Kn.value?.colNames ?? [],
|
|
930
|
+
rows: Kn.value?.a11yBody ?? []
|
|
930
931
|
}));
|
|
931
932
|
return we({
|
|
932
|
-
autoSize:
|
|
933
|
-
getData:
|
|
934
|
-
getImage:
|
|
935
|
-
generatePdf:
|
|
936
|
-
generateCsv:
|
|
937
|
-
generateImage:
|
|
938
|
-
generateSvg:
|
|
939
|
-
hideSeries:
|
|
940
|
-
showSeries:
|
|
941
|
-
toggleTable:
|
|
942
|
-
toggleLabels:
|
|
943
|
-
toggleTooltip:
|
|
944
|
-
toggleAnnotator:
|
|
945
|
-
toggleFullscreen:
|
|
946
|
-
copyAlt:
|
|
933
|
+
autoSize: tr,
|
|
934
|
+
getData: qn,
|
|
935
|
+
getImage: $n,
|
|
936
|
+
generatePdf: xn,
|
|
937
|
+
generateCsv: Gn,
|
|
938
|
+
generateImage: Sn,
|
|
939
|
+
generateSvg: cr,
|
|
940
|
+
hideSeries: jn,
|
|
941
|
+
showSeries: An,
|
|
942
|
+
toggleTable: Jn,
|
|
943
|
+
toggleLabels: Yn,
|
|
944
|
+
toggleTooltip: Xn,
|
|
945
|
+
toggleAnnotator: Qn,
|
|
946
|
+
toggleFullscreen: on,
|
|
947
|
+
copyAlt: ur
|
|
947
948
|
}), (e, t) => (b(), m("div", {
|
|
948
949
|
ref_key: "nestedDonutsChart",
|
|
949
950
|
ref: k,
|
|
950
951
|
class: v(`vue-data-ui-component vue-ui-nested-donuts ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
951
|
-
style:
|
|
952
|
+
style: Ve(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
952
953
|
id: `nested_donuts_${O.value}`,
|
|
953
|
-
onMouseenter: t[2] ||= () => T(
|
|
954
|
-
onMouseleave: t[3] ||= () => T(
|
|
954
|
+
onMouseenter: t[2] ||= () => T(fn)(!0),
|
|
955
|
+
onMouseleave: t[3] ||= () => T(fn)(!1)
|
|
955
956
|
}, [
|
|
956
957
|
h("div", {
|
|
957
958
|
id: `chart-instructions-${O.value}`,
|
|
958
959
|
class: "sr-only"
|
|
959
|
-
}, [h("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
960
|
-
|
|
960
|
+
}, [h("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
961
|
+
hr.value?.rows?.length ? (b(), f(ke, {
|
|
961
962
|
key: 0,
|
|
962
963
|
uid: O.value,
|
|
963
|
-
head:
|
|
964
|
-
body:
|
|
964
|
+
head: hr.value.headers,
|
|
965
|
+
body: hr.value.rows,
|
|
965
966
|
notice: P.value.a11y.translations.tableAvailable,
|
|
966
967
|
caption: P.value.a11y.translations.tableCaption
|
|
967
968
|
}, null, 8, [
|
|
@@ -971,14 +972,14 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
971
972
|
"notice",
|
|
972
973
|
"caption"
|
|
973
974
|
])) : p("", !0),
|
|
974
|
-
P.value.userOptions.buttons.annotator ? (b(), f(T(
|
|
975
|
+
P.value.userOptions.buttons.annotator ? (b(), f(T(Mt), {
|
|
975
976
|
key: 1,
|
|
976
977
|
svgRef: T(L),
|
|
977
978
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
978
979
|
color: P.value.style.chart.color,
|
|
979
|
-
active:
|
|
980
|
+
active: Zn.value,
|
|
980
981
|
isCursorPointer: F.value,
|
|
981
|
-
onClose:
|
|
982
|
+
onClose: Qn
|
|
982
983
|
}, {
|
|
983
984
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
984
985
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -994,19 +995,19 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
994
995
|
"active",
|
|
995
996
|
"isCursorPointer"
|
|
996
997
|
])) : p("", !0),
|
|
997
|
-
|
|
998
|
+
Cn.value ? (b(), m("div", {
|
|
998
999
|
key: 2,
|
|
999
1000
|
ref_key: "noTitle",
|
|
1000
|
-
ref:
|
|
1001
|
+
ref: Kt,
|
|
1001
1002
|
class: "vue-data-ui-no-title-space",
|
|
1002
1003
|
style: "height:36px; width: 100%;background:transparent"
|
|
1003
1004
|
}, null, 512)) : p("", !0),
|
|
1004
1005
|
P.value.style.chart.title.text ? (b(), m("div", {
|
|
1005
1006
|
key: 3,
|
|
1006
1007
|
ref_key: "chartTitle",
|
|
1007
|
-
ref:
|
|
1008
|
+
ref: Ut
|
|
1008
1009
|
}, [(b(), f(Ce, {
|
|
1009
|
-
key: `title_${
|
|
1010
|
+
key: `title_${qt.value}`,
|
|
1010
1011
|
config: {
|
|
1011
1012
|
title: {
|
|
1012
1013
|
cy: "donut-div-title",
|
|
@@ -1018,15 +1019,15 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1018
1019
|
}
|
|
1019
1020
|
}
|
|
1020
1021
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1021
|
-
h("div", { id: `legend-top-${O.value}` }, null, 8,
|
|
1022
|
-
P.value.userOptions.show &&
|
|
1022
|
+
h("div", { id: `legend-top-${O.value}` }, null, 8, $e),
|
|
1023
|
+
P.value.userOptions.show && Rt.value && (T(pn) || T(dn)) ? (b(), f(T(jt), {
|
|
1023
1024
|
ref_key: "userOptionsRef",
|
|
1024
|
-
ref:
|
|
1025
|
-
key: `user_option_${
|
|
1025
|
+
ref: $t,
|
|
1026
|
+
key: `user_option_${Ht.value}`,
|
|
1026
1027
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1027
1028
|
color: P.value.style.chart.color,
|
|
1028
|
-
isPrinting: T(
|
|
1029
|
-
isImaging: T(
|
|
1029
|
+
isPrinting: T(yn),
|
|
1030
|
+
isImaging: T(bn),
|
|
1030
1031
|
uid: O.value,
|
|
1031
1032
|
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
1032
1033
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
@@ -1043,23 +1044,23 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1043
1044
|
chartElement: k.value,
|
|
1044
1045
|
position: P.value.userOptions.position,
|
|
1045
1046
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1046
|
-
isAnnotation:
|
|
1047
|
+
isAnnotation: Zn.value,
|
|
1047
1048
|
callbacks: P.value.userOptions.callbacks,
|
|
1048
1049
|
printScale: P.value.userOptions.print.scale,
|
|
1049
1050
|
tableDialog: P.value.table.useDialog,
|
|
1050
1051
|
isCursorPointer: F.value,
|
|
1051
|
-
onToggleFullscreen:
|
|
1052
|
-
onGeneratePdf: T(
|
|
1053
|
-
onGenerateCsv:
|
|
1054
|
-
onGenerateImage:
|
|
1055
|
-
onGenerateSvg:
|
|
1056
|
-
onToggleTable:
|
|
1057
|
-
onToggleLabels:
|
|
1058
|
-
onToggleTooltip:
|
|
1059
|
-
onToggleAnnotator:
|
|
1060
|
-
onCopyAlt:
|
|
1061
|
-
style:
|
|
1062
|
-
},
|
|
1052
|
+
onToggleFullscreen: on,
|
|
1053
|
+
onGeneratePdf: T(xn),
|
|
1054
|
+
onGenerateCsv: Gn,
|
|
1055
|
+
onGenerateImage: lr,
|
|
1056
|
+
onGenerateSvg: cr,
|
|
1057
|
+
onToggleTable: Jn,
|
|
1058
|
+
onToggleLabels: Yn,
|
|
1059
|
+
onToggleTooltip: Xn,
|
|
1060
|
+
onToggleAnnotator: Qn,
|
|
1061
|
+
onCopyAlt: ur,
|
|
1062
|
+
style: Ve({ visibility: T(pn) ? T(dn) ? "visible" : "hidden" : "visible" })
|
|
1063
|
+
}, Ie({ _: 2 }, [
|
|
1063
1064
|
e.$slots.menuIcon ? {
|
|
1064
1065
|
name: "menuIcon",
|
|
1065
1066
|
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
|
|
@@ -1135,7 +1136,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1135
1136
|
key: "12"
|
|
1136
1137
|
} : void 0
|
|
1137
1138
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
1138
|
-
h("div",
|
|
1139
|
+
h("div", et, [(b(), m("svg", {
|
|
1139
1140
|
ref_key: "svgRef",
|
|
1140
1141
|
ref: L,
|
|
1141
1142
|
xmlns: T(de),
|
|
@@ -1146,17 +1147,17 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1146
1147
|
"vue-data-ui-svg": !0
|
|
1147
1148
|
}),
|
|
1148
1149
|
viewBox: `0 0 ${H.value.width <= 0 ? .001 : H.value.width} ${H.value.height < 0 ? .001 : H.value.height}`,
|
|
1149
|
-
style:
|
|
1150
|
+
style: Ve(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color};${hn.value.css}`),
|
|
1150
1151
|
tabindex: "0",
|
|
1151
|
-
onFocus:
|
|
1152
|
-
onBlur:
|
|
1153
|
-
onKeydown:
|
|
1152
|
+
onFocus: dr,
|
|
1153
|
+
onBlur: fr,
|
|
1154
|
+
onKeydown: pr
|
|
1154
1155
|
}, [h("g", {
|
|
1155
1156
|
ref_key: "G",
|
|
1156
|
-
ref:
|
|
1157
|
+
ref: er,
|
|
1157
1158
|
class: "vue-data-ui-g"
|
|
1158
1159
|
}, [
|
|
1159
|
-
|
|
1160
|
+
Re(T(Nt)),
|
|
1160
1161
|
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1161
1162
|
key: 0,
|
|
1162
1163
|
x: 0,
|
|
@@ -1164,29 +1165,34 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1164
1165
|
width: H.value.width <= 0 ? .001 : H.value.width,
|
|
1165
1166
|
height: H.value.height < 0 ? .001 : H.value.height,
|
|
1166
1167
|
style: { pointerEvents: "none" }
|
|
1167
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1168
|
-
h("defs", null, [(b(!0), m(u, null, S(
|
|
1169
|
-
t
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1168
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : p("", !0),
|
|
1169
|
+
h("defs", null, [(b(!0), m(u, null, S(Pn.value, (e, t) => (b(), f(De, {
|
|
1170
|
+
t: "radial",
|
|
1171
|
+
id: `radial_${O.value}_${t}`,
|
|
1172
|
+
key: `radial_${O.value}_${t}`,
|
|
1173
|
+
stops: [
|
|
1174
|
+
[
|
|
1175
|
+
"0%",
|
|
1176
|
+
"#FFFFFF",
|
|
1177
|
+
0
|
|
1178
|
+
],
|
|
1179
|
+
[
|
|
1180
|
+
`${(1 - Mn.value / Nn.value[t]) * 100}%`,
|
|
1181
|
+
T(ee)("#FFFFFF", 0),
|
|
1182
|
+
0
|
|
1183
|
+
],
|
|
1184
|
+
[
|
|
1185
|
+
`${(1 - Mn.value / Nn.value[t] / 2) * 100}%`,
|
|
1186
|
+
"#FFFFFF",
|
|
1187
|
+
P.value.style.chart.gradientIntensity / 100
|
|
1188
|
+
],
|
|
1189
|
+
[
|
|
1190
|
+
"100%",
|
|
1191
|
+
"#FFFFFF",
|
|
1192
|
+
0
|
|
1193
|
+
]
|
|
1194
|
+
]
|
|
1195
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1190
1196
|
h("defs", null, [h("filter", {
|
|
1191
1197
|
id: `blur_${O.value}`,
|
|
1192
1198
|
x: "-50%",
|
|
@@ -1197,10 +1203,10 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1197
1203
|
in: "SourceGraphic",
|
|
1198
1204
|
stdDeviation: 2,
|
|
1199
1205
|
id: `blur_std_${O.value}`
|
|
1200
|
-
}, null, 8,
|
|
1206
|
+
}, null, 8, it), t[4] ||= h("feColorMatrix", {
|
|
1201
1207
|
type: "saturate",
|
|
1202
1208
|
values: "0"
|
|
1203
|
-
}, null, -1)], 8,
|
|
1209
|
+
}, null, -1)], 8, rt), h("filter", {
|
|
1204
1210
|
id: `shadow_${O.value}`,
|
|
1205
1211
|
"color-interpolation-filters": "sRGB"
|
|
1206
1212
|
}, [h("feDropShadow", {
|
|
@@ -1209,34 +1215,34 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1209
1215
|
stdDeviation: "10",
|
|
1210
1216
|
"flood-opacity": "0.5",
|
|
1211
1217
|
"flood-color": P.value.style.chart.layout.donut.shadowColor
|
|
1212
|
-
}, null, 8,
|
|
1218
|
+
}, null, 8, ot)], 8, at)]),
|
|
1213
1219
|
h("defs", null, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("path", {
|
|
1214
1220
|
key: `path-full-${t}`,
|
|
1215
1221
|
id: `path-full-${t}-${O.value}`,
|
|
1216
1222
|
d: e.fullCirclePath,
|
|
1217
1223
|
fill: "none"
|
|
1218
|
-
}, null, 8,
|
|
1224
|
+
}, null, 8, st))), 128))]),
|
|
1219
1225
|
(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("g", null, [e.hasData ? (b(!0), m(u, { key: 0 }, S(e.donut.filter((e) => !e.ghost), (e, t) => (b(), m("g", null, [h("path", {
|
|
1220
1226
|
class: "vue-ui-donut-arc-path",
|
|
1221
1227
|
d: e.arcSlice,
|
|
1222
1228
|
fill: e.color,
|
|
1223
1229
|
stroke: P.value.style.chart.layout.donut.borderColorAuto ? P.value.style.chart.backgroundColor : P.value.style.chart.layout.donut.borderColor,
|
|
1224
1230
|
"stroke-width": P.value.style.chart.layout.donut.borderWidth,
|
|
1225
|
-
filter:
|
|
1226
|
-
}, null, 8,
|
|
1231
|
+
filter: Hn(e, t)
|
|
1232
|
+
}, null, 8, ct)]))), 256)) : (b(!0), m(u, { key: 1 }, S(e.skeleton, (e, t) => (b(), m("g", null, [h("path", {
|
|
1227
1233
|
class: "vue-ui-donut-arc-path",
|
|
1228
1234
|
d: e.arcSlice,
|
|
1229
1235
|
fill: e.color,
|
|
1230
1236
|
stroke: P.value.style.chart.layout.donut.borderColorAuto ? P.value.style.chart.backgroundColor : P.value.style.chart.layout.donut.borderColor,
|
|
1231
1237
|
"stroke-width": P.value.style.chart.layout.donut.borderWidth
|
|
1232
|
-
}, null, 8,
|
|
1233
|
-
P.value.style.chart.useGradient ? (b(), m("g",
|
|
1238
|
+
}, null, 8, lt)]))), 256))]))), 256)),
|
|
1239
|
+
P.value.style.chart.useGradient ? (b(), m("g", ut, [(b(!0), m(u, null, S(Pn.value, (e, t) => (b(), m("g", null, [h("path", {
|
|
1234
1240
|
d: e.donut.arcSlice,
|
|
1235
1241
|
fill: `url(#radial_${O.value}_${t})`,
|
|
1236
1242
|
stroke: "transparent",
|
|
1237
1243
|
"stroke-width": "0"
|
|
1238
|
-
}, null, 8,
|
|
1239
|
-
P.value.style.chart.layout.labels.dataLabels.showDonutName ? (b(), m("g",
|
|
1244
|
+
}, null, 8, dt)]))), 256))])) : p("", !0),
|
|
1245
|
+
P.value.style.chart.layout.labels.dataLabels.showDonutName ? (b(), m("g", ft, [P.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (b(!0), m(u, { key: 0 }, S(X.value, (e, t) => (b(), m("g", null, [(b(!0), m(u, null, S(e.donut, (n, r) => (b(), m("g", null, [r === 0 && H.value.width && H.value.height ? (b(), m("text", {
|
|
1240
1246
|
key: 0,
|
|
1241
1247
|
class: v({ animated: P.value.useCssAnimation }),
|
|
1242
1248
|
"text-anchor": "middle",
|
|
@@ -1253,7 +1259,7 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1253
1259
|
}, w(P.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? T(le)({
|
|
1254
1260
|
source: e.name,
|
|
1255
1261
|
length: P.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1256
|
-
}) : e.name), 9,
|
|
1262
|
+
}) : e.name), 9, mt)], 10, pt)) : p("", !0)]))), 256))]))), 256)) : (b(!0), m(u, { key: 1 }, S(X.value, (e, t) => (b(), m("g", null, [(b(!0), m(u, null, S(e.donut, (t, n) => (b(), m("g", null, [n === 0 && H.value.width && H.value.height ? (b(), m("text", {
|
|
1257
1263
|
key: 0,
|
|
1258
1264
|
class: v({ animated: P.value.useCssAnimation }),
|
|
1259
1265
|
x: H.value.width / 2,
|
|
@@ -1265,10 +1271,10 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1265
1271
|
}, w(P.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? T(le)({
|
|
1266
1272
|
source: e.name,
|
|
1267
1273
|
length: P.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1268
|
-
}) : e.name), 11,
|
|
1269
|
-
P.value.style.chart.layout.labels.dataLabels.show ? (b(), m("g",
|
|
1274
|
+
}) : e.name), 11, ht)) : p("", !0)]))), 256))]))), 256))])) : p("", !0),
|
|
1275
|
+
P.value.style.chart.layout.labels.dataLabels.show ? (b(), m("g", gt, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("g", null, [(b(!0), m(u, null, S(e.donut.filter((e) => !e.ghost), (e, n) => (b(), m("g", { filter: Hn(e, n) }, [Ye(h("text", {
|
|
1270
1276
|
class: v({ animated: P.value.useCssAnimation }),
|
|
1271
|
-
opacity: +!!
|
|
1277
|
+
opacity: +!!Vn(e),
|
|
1272
1278
|
"text-anchor": T(fe)(e, !0).anchor,
|
|
1273
1279
|
x: T(fe)(e, !1, P.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1274
1280
|
y: T(oe)(e, P.value.style.chart.layout.labels.dataLabels.offsetY, P.value.style.chart.layout.labels.dataLabels.offsetY) + (P.value.style.chart.layout.labels.dataLabels.showValueFirst && P.value.style.chart.layout.labels.dataLabels.showValue ? P.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
@@ -1279,9 +1285,9 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1279
1285
|
v: e.proportion * 100,
|
|
1280
1286
|
s: "%",
|
|
1281
1287
|
r: P.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1282
|
-
}), P.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", P.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11,
|
|
1288
|
+
}), P.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", P.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, vt), [[qe, V.value.dataLabels.show && P.value.style.chart.layout.labels.dataLabels.showPercentage]]), Ye(h("text", {
|
|
1283
1289
|
class: v({ animated: P.value.useCssAnimation }),
|
|
1284
|
-
opacity: +!!
|
|
1290
|
+
opacity: +!!Vn(e),
|
|
1285
1291
|
"text-anchor": T(fe)(e, !0).anchor,
|
|
1286
1292
|
x: T(fe)(e, !1, P.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1287
1293
|
y: T(oe)(e, P.value.style.chart.layout.labels.dataLabels.offsetY, P.value.style.chart.layout.labels.dataLabels.offsetY) + (P.value.style.chart.layout.labels.dataLabels.showValueFirst || !P.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : P.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
@@ -1297,38 +1303,38 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1297
1303
|
datapoint: e,
|
|
1298
1304
|
seriesIndex: t,
|
|
1299
1305
|
datapointIndex: n
|
|
1300
|
-
}), P.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", P.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11,
|
|
1306
|
+
}), P.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", P.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, yt), [[qe, V.value.dataLabels.show && P.value.style.chart.layout.labels.dataLabels.showValue]])], 8, _t))), 256))]))), 256))])) : p("", !0),
|
|
1301
1307
|
(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("g", null, [(b(!0), m(u, null, S(e.donut, (e, t) => (b(), m("g", null, [h("path", {
|
|
1302
1308
|
d: e.arcSlice,
|
|
1303
|
-
fill:
|
|
1304
|
-
onMouseenter: (t) =>
|
|
1309
|
+
fill: Vt.value === e.id ? P.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1310
|
+
onMouseenter: (t) => Bn({
|
|
1305
1311
|
datapoint: e,
|
|
1306
1312
|
relativeIndex: $.value.findIndex((t) => t.id === e.id),
|
|
1307
1313
|
seriesIndex: e.seriesIndex
|
|
1308
1314
|
}),
|
|
1309
|
-
onClick: (n) =>
|
|
1315
|
+
onClick: (n) => Tn({
|
|
1310
1316
|
datapoint: e,
|
|
1311
1317
|
index: t,
|
|
1312
1318
|
seriesIndex: e.seriesIndex
|
|
1313
1319
|
}),
|
|
1314
|
-
onMouseleave: (t) =>
|
|
1320
|
+
onMouseleave: (t) => Rn({
|
|
1315
1321
|
datapoint: e,
|
|
1316
1322
|
seriesIndex: e.seriesIndex
|
|
1317
1323
|
})
|
|
1318
|
-
}, null, 40,
|
|
1324
|
+
}, null, 40, bt)]))), 256))]))), 256)),
|
|
1319
1325
|
C(e.$slots, "svg", { svg: {
|
|
1320
1326
|
...H.value,
|
|
1321
|
-
isPrintingImg: T(
|
|
1322
|
-
isPrintingSvg:
|
|
1327
|
+
isPrintingImg: T(yn) || T(bn) || en.value,
|
|
1328
|
+
isPrintingSvg: tn.value
|
|
1323
1329
|
} }, void 0, !0)
|
|
1324
|
-
], 512)], 46,
|
|
1330
|
+
], 512)], 46, tt)), e.$slots.hint ? (b(), m("div", xt, [C(e.$slots, "hint", y(_({
|
|
1325
1331
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1326
|
-
isVisible:
|
|
1332
|
+
isVisible: an.value
|
|
1327
1333
|
})), void 0, !0)])) : p("", !0)]),
|
|
1328
|
-
e.$slots.watermark ? (b(), m("div",
|
|
1329
|
-
|
|
1334
|
+
e.$slots.watermark ? (b(), m("div", St, [C(e.$slots, "watermark", y(_({ isPrinting: T(yn) || T(bn) || en.value || tn.value })), void 0, !0)])) : p("", !0),
|
|
1335
|
+
Re(T(Dt), {
|
|
1330
1336
|
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1331
|
-
show: V.value.showTooltip &&
|
|
1337
|
+
show: V.value.showTooltip && zt.value,
|
|
1332
1338
|
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
1333
1339
|
color: P.value.style.chart.tooltip.color,
|
|
1334
1340
|
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
@@ -1340,19 +1346,19 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1340
1346
|
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1341
1347
|
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1342
1348
|
parent: k.value,
|
|
1343
|
-
content:
|
|
1349
|
+
content: Bt.value,
|
|
1344
1350
|
isFullscreen: N.value,
|
|
1345
1351
|
isCustom: T(me)(P.value.style.chart.tooltip.customFormat),
|
|
1346
1352
|
smooth: P.value.style.chart.tooltip.smooth,
|
|
1347
1353
|
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
1348
1354
|
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1349
1355
|
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1350
|
-
isA11yMode:
|
|
1351
|
-
a11yPosition:
|
|
1356
|
+
isA11yMode: rn.value === "keyboard",
|
|
1357
|
+
a11yPosition: nn.value
|
|
1352
1358
|
}, {
|
|
1353
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(_({ ...
|
|
1354
|
-
tooltip: E(() => [C(e.$slots, "tooltip", y(_({ ...
|
|
1355
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(_({ ...
|
|
1359
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(_({ ...Ln.value })), void 0, !0)]),
|
|
1360
|
+
tooltip: E(() => [C(e.$slots, "tooltip", y(_({ ...Ln.value })), void 0, !0)]),
|
|
1361
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(_({ ...Ln.value })), void 0, !0)]),
|
|
1356
1362
|
_: 3
|
|
1357
1363
|
}, 8, [
|
|
1358
1364
|
"teleportTo",
|
|
@@ -1378,35 +1384,35 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1378
1384
|
"isA11yMode",
|
|
1379
1385
|
"a11yPosition"
|
|
1380
1386
|
]),
|
|
1381
|
-
h("div", { id: `legend-bottom-${O.value}` }, null, 8,
|
|
1382
|
-
|
|
1387
|
+
h("div", { id: `legend-bottom-${O.value}` }, null, 8, Ct),
|
|
1388
|
+
Zt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (b(), f(Fe, {
|
|
1383
1389
|
key: 6,
|
|
1384
1390
|
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1385
1391
|
}, [P.value.style.chart.legend.show ? (b(), m("div", {
|
|
1386
1392
|
key: 0,
|
|
1387
1393
|
ref_key: "chartLegend",
|
|
1388
|
-
ref:
|
|
1389
|
-
class: v({ "vue-ui-nested-donuts-legend":
|
|
1390
|
-
}, [C(e.$slots, "legend", { legend:
|
|
1391
|
-
key: `legend_${n}_${
|
|
1394
|
+
ref: Wt,
|
|
1395
|
+
class: v({ "vue-ui-nested-donuts-legend": Un.value.length > 1 })
|
|
1396
|
+
}, [C(e.$slots, "legend", { legend: Un.value }, () => [(b(!0), m(u, null, S(Un.value, (e, n) => (b(), f(Ne, {
|
|
1397
|
+
key: `legend_${n}_${Yt.value}`,
|
|
1392
1398
|
legendSet: e,
|
|
1393
|
-
config:
|
|
1399
|
+
config: Wn.value,
|
|
1394
1400
|
isCursorPointer: F.value,
|
|
1395
1401
|
onClickMarker: t[0] ||= ({ legend: e }) => Y(e)
|
|
1396
1402
|
}, {
|
|
1397
|
-
legendTitle: E(({ titleSet: e }) => [e[0] && e[0].arcOf ? (b(), m("div",
|
|
1403
|
+
legendTitle: E(({ titleSet: e }) => [e[0] && e[0].arcOf ? (b(), m("div", wt, w(e[0].arcOf), 1)) : p("", !0)]),
|
|
1398
1404
|
item: E(({ legend: e, index: t }) => [h("div", {
|
|
1399
1405
|
onClick: (t) => Y(e),
|
|
1400
|
-
style:
|
|
1401
|
-
}, w(e.display), 13,
|
|
1402
|
-
legendToggle: E(() => [e.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(
|
|
1406
|
+
style: Ve(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
|
|
1407
|
+
}, w(e.display), 13, Tt)]),
|
|
1408
|
+
legendToggle: E(() => [e.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(ln) ? (b(), f(Oe, {
|
|
1403
1409
|
key: `toggle-${n}`,
|
|
1404
1410
|
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1405
1411
|
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1406
1412
|
fontSize: P.value.style.chart.legend.fontSize,
|
|
1407
1413
|
checked: e.some((e) => W.value.includes(e.id)),
|
|
1408
1414
|
isCursorPointer: F.value,
|
|
1409
|
-
onToggle: (t) =>
|
|
1415
|
+
onToggle: (t) => On(e)
|
|
1410
1416
|
}, null, 8, [
|
|
1411
1417
|
"backgroundColor",
|
|
1412
1418
|
"color",
|
|
@@ -1424,24 +1430,24 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1424
1430
|
e.$slots.source ? (b(), m("div", {
|
|
1425
1431
|
key: 7,
|
|
1426
1432
|
ref_key: "source",
|
|
1427
|
-
ref:
|
|
1433
|
+
ref: Gt,
|
|
1428
1434
|
dir: "auto"
|
|
1429
1435
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1430
|
-
|
|
1436
|
+
Rt.value && P.value.userOptions.buttons.table ? (b(), f(We(nr.value.component), ze({ key: 8 }, nr.value.props, {
|
|
1431
1437
|
ref_key: "tableUnit",
|
|
1432
|
-
ref:
|
|
1433
|
-
onClose:
|
|
1434
|
-
}),
|
|
1435
|
-
content: E(() => [(b(), f(T(
|
|
1436
|
-
key: `table_${
|
|
1437
|
-
colNames:
|
|
1438
|
-
head:
|
|
1439
|
-
body:
|
|
1440
|
-
config:
|
|
1441
|
-
title: P.value.table.useDialog ? "" :
|
|
1438
|
+
ref: Qt,
|
|
1439
|
+
onClose: rr
|
|
1440
|
+
}), Ie({
|
|
1441
|
+
content: E(() => [(b(), f(T(At), {
|
|
1442
|
+
key: `table_${Jt.value}`,
|
|
1443
|
+
colNames: Kn.value.colNames,
|
|
1444
|
+
head: Kn.value.head,
|
|
1445
|
+
body: Kn.value.body,
|
|
1446
|
+
config: Kn.value.config,
|
|
1447
|
+
title: P.value.table.useDialog ? "" : nr.value.title,
|
|
1442
1448
|
withCloseButton: !P.value.table.useDialog,
|
|
1443
1449
|
isCursorPointer: F.value,
|
|
1444
|
-
onClose:
|
|
1450
|
+
onClose: rr
|
|
1445
1451
|
}, {
|
|
1446
1452
|
th: E(({ th: e }) => [h("div", {
|
|
1447
1453
|
innerHTML: e,
|
|
@@ -1449,8 +1455,8 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1449
1455
|
display: "flex",
|
|
1450
1456
|
"align-items": "center"
|
|
1451
1457
|
}
|
|
1452
|
-
}, null, 8,
|
|
1453
|
-
td: E(({ td: e }) => [
|
|
1458
|
+
}, null, 8, Et)]),
|
|
1459
|
+
td: E(({ td: e }) => [Le(w(e.name || e), 1)]),
|
|
1454
1460
|
_: 1
|
|
1455
1461
|
}, 8, [
|
|
1456
1462
|
"colNames",
|
|
@@ -1464,24 +1470,24 @@ var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1464
1470
|
_: 2
|
|
1465
1471
|
}, [P.value.table.useDialog ? {
|
|
1466
1472
|
name: "title",
|
|
1467
|
-
fn: E(() => [
|
|
1473
|
+
fn: E(() => [Le(w(nr.value.title), 1)]),
|
|
1468
1474
|
key: "0"
|
|
1469
1475
|
} : void 0, P.value.table.useDialog ? {
|
|
1470
1476
|
name: "actions",
|
|
1471
1477
|
fn: E(() => [h("button", {
|
|
1472
1478
|
tabindex: "0",
|
|
1473
1479
|
class: "vue-ui-user-options-button",
|
|
1474
|
-
onClick: t[1] ||= (e) =>
|
|
1475
|
-
style:
|
|
1476
|
-
}, [
|
|
1480
|
+
onClick: t[1] ||= (e) => Gn(P.value.userOptions.callbacks.csv),
|
|
1481
|
+
style: Ve({ cursor: F.value ? "pointer" : "default" })
|
|
1482
|
+
}, [Re(T(Ot), {
|
|
1477
1483
|
name: "fileCsv",
|
|
1478
|
-
stroke:
|
|
1484
|
+
stroke: nr.value.props.color
|
|
1479
1485
|
}, null, 8, ["stroke"])], 4)]),
|
|
1480
1486
|
key: "1"
|
|
1481
1487
|
} : void 0]), 1040)) : p("", !0),
|
|
1482
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1483
|
-
], 46,
|
|
1488
|
+
C(e.$slots, "skeleton", {}, () => [T(ln) ? (b(), f(ve, { key: 0 })) : p("", !0)], !0)
|
|
1489
|
+
], 46, Ze));
|
|
1484
1490
|
}
|
|
1485
|
-
}, [["__scopeId", "data-v-
|
|
1491
|
+
}, [["__scopeId", "data-v-24615b3d"]]);
|
|
1486
1492
|
//#endregion
|
|
1487
|
-
export {
|
|
1493
|
+
export { Xe as n, Dt as t };
|