vue-data-ui 3.22.11 → 3.22.13
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/{PackageVersion-1MNr72Bz.js → PackageVersion-B6Hokxw9.js} +1 -1
- package/dist/{SlicerPreview-BIdvqU32.js → SlicerPreview-Cw6WMVhG.js} +434 -434
- package/dist/{UserOptions-B69xBEVP.js → UserOptions-DzAFK9cY.js} +438 -438
- 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-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-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-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-Bf-Nk9qU.js → package-DmDydylu.js} +1 -1
- package/dist/{render-common-DEb-WjM1.js → render-common-BIG8JYGK.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +26 -9
- package/dist/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{vue-data-ui-Bme9usjG.js → vue-data-ui-rkzh6EkO.js} +64 -64
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-Ds1BPxqb.js → vue-ui-3d-bar-D5xHEWr1.js} +1 -1
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-CNCrH8Kd.js → vue-ui-age-pyramid-CAJg01c7.js} +1 -1
- package/dist/{vue-ui-annotator-BfZ8RTzJ.js → vue-ui-annotator-q3ZKx6ua.js} +1 -1
- package/dist/{vue-ui-bullet-DscMmM2b.js → vue-ui-bullet-ByeaWGfI.js} +1 -1
- package/dist/{vue-ui-bump-BvwU1_-N.js → vue-ui-bump-BS7RCf0Z.js} +1 -1
- package/dist/{vue-ui-candlestick-Cp6r8ktf.js → vue-ui-candlestick-BZSGDKrM.js} +470 -470
- package/dist/{vue-ui-carousel-table-CbtccW1g.js → vue-ui-carousel-table-DO5NRXvX.js} +1 -1
- package/dist/{vue-ui-chestnut-C3Hmf1-m.js → vue-ui-chestnut-BfeSPeEh.js} +1 -1
- package/dist/{vue-ui-chord-DJk9j45J.js → vue-ui-chord-D6G7ceE-.js} +1 -1
- package/dist/{vue-ui-circle-pack-CJe2wETT.js → vue-ui-circle-pack-Cqmlw7AV.js} +3 -6
- package/dist/{vue-ui-cursor-BAi9omna.js → vue-ui-cursor-BpN5MsXM.js} +1 -1
- package/dist/{vue-ui-dag-D7BEbS71.js → vue-ui-dag-BzgOgXzU.js} +1 -1
- package/dist/{vue-ui-dashboard-BYFQjwgC.js → vue-ui-dashboard-DLvGJXJY.js} +63 -64
- package/dist/{vue-ui-digits-Bx8nZl9d.js → vue-ui-digits-OMPrn8fb.js} +1 -1
- package/dist/{vue-ui-donut-BUX4ybT6.js → vue-ui-donut-Cp5NbZ1r.js} +1 -1
- package/dist/{vue-ui-donut-jXRV-3ON.js → vue-ui-donut-ZIRebAWc.js} +1 -1
- package/dist/{vue-ui-donut-evolution-MWDjQPQ5.js → vue-ui-donut-evolution-DHVi5rOn.js} +351 -355
- package/dist/{vue-ui-dumbbell-CnwsHaIy.js → vue-ui-dumbbell-gDYjU2oF.js} +1 -1
- package/dist/{vue-ui-flow-CKXGk4Lm.js → vue-ui-flow-BusUK3H0.js} +1 -1
- package/dist/{vue-ui-funnel-CJwD7s7e.js → vue-ui-funnel-BtaYaU0r.js} +1 -1
- package/dist/{vue-ui-galaxy-DL85_SWR.js → vue-ui-galaxy-BMp-HzDh.js} +1 -1
- package/dist/{vue-ui-gauge-Dkx-aUQr.js → vue-ui-gauge-CBou0cFE.js} +1 -1
- package/dist/{vue-ui-geo-fkLF1rHB.js → vue-ui-geo-CyFgFKlh.js} +1 -1
- package/dist/{vue-ui-gizmo-S8w_p769.js → vue-ui-gizmo-DdeXwCQp.js} +1 -1
- package/dist/{vue-ui-heatmap-Dopkbn2N.js → vue-ui-heatmap-D8-qJ7fg.js} +2 -2
- package/dist/{vue-ui-history-plot-DDYpEapS.js → vue-ui-history-plot-C2Aqk2ON.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-Bi8WvKeD.js → vue-ui-horizontal-bar-BuwxI7d1.js} +2 -2
- package/dist/{vue-ui-kpi-BeJ-ajaS.js → vue-ui-kpi-ByxoO01r.js} +1 -1
- package/dist/{vue-ui-molecule-CBTgGZ-s.js → vue-ui-molecule-BqJJq49_.js} +1 -1
- package/dist/{vue-ui-mood-radar-CF83PcCx.js → vue-ui-mood-radar-BiOjxFEN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-D5dO-Uyg.js → vue-ui-nested-donuts-Cl1HVvDp.js} +1 -1
- package/dist/{vue-ui-onion-BxjaQKo8.js → vue-ui-onion-CRQOxurS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dz6ozRAM.js → vue-ui-parallel-coordinate-plot-Dhn18RtR.js} +298 -301
- package/dist/{vue-ui-quadrant-Bnxpa6m5.js → vue-ui-quadrant-B21LkUc8.js} +1 -1
- package/dist/{vue-ui-quick-chart-CAE0-NYj.js → vue-ui-quick-chart-DAhSXYnp.js} +600 -625
- package/dist/{vue-ui-radar-O4BhBOyp.js → vue-ui-radar-CyzAyVos.js} +1 -1
- package/dist/{vue-ui-relation-circle-BZ0Xf-Nc.js → vue-ui-relation-circle-Cb33DMZo.js} +5 -11
- package/dist/{vue-ui-ridgeline-DHVTPiM6.js → vue-ui-ridgeline-D7aArzQk.js} +1 -1
- package/dist/{vue-ui-rings-DAfY1V--.js → vue-ui-rings-FtcdX8xl.js} +1 -1
- package/dist/vue-ui-scatter-Cp_-2ahf.js +2409 -0
- package/dist/{vue-ui-skeleton-DoIqQtIV.js → vue-ui-skeleton-COytVrfN.js} +1 -1
- package/dist/{vue-ui-spark-trend-Db-FsXch.js → vue-ui-spark-trend-DC2KUlEY.js} +1 -1
- package/dist/{vue-ui-sparkbar-Ce55FP_3.js → vue-ui-sparkbar-DdxQOFIF.js} +48 -51
- package/dist/{vue-ui-sparkgauge-hB59dXm7.js → vue-ui-sparkgauge-DTA-fORH.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-DjnaStBw.js → vue-ui-sparkhistogram-D1oFTrvt.js} +1 -1
- package/dist/{vue-ui-sparkline-D1dyhLvG.js → vue-ui-sparkline-DcR_N-zT.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BhOBFjts.js → vue-ui-sparkstackbar-BlFio0lP.js} +1 -1
- package/dist/vue-ui-stackbar-Cu13EdVa.js +2322 -0
- package/dist/{vue-ui-stackline-DLFNVbAz.js → vue-ui-stackline-DKL0o_-3.js} +572 -570
- package/dist/vue-ui-strip-plot-NLCwYvyw.js +1736 -0
- package/dist/{vue-ui-table-DL_R4ppI.js → vue-ui-table-AM9brdwU.js} +2 -2
- package/dist/{vue-ui-table-heatmap-C9gF__Np.js → vue-ui-table-heatmap-CSI482KG.js} +4 -10
- package/dist/{vue-ui-table-sparkline-CT-0w9-a.js → vue-ui-table-sparkline-BE6DAvur.js} +1 -1
- package/dist/{vue-ui-thermometer-MP0dliC3.js → vue-ui-thermometer-D6Czx7Fb.js} +1 -1
- package/dist/{vue-ui-timer-B5S-6Da4.js → vue-ui-timer-BZM5ITG9.js} +1 -1
- package/dist/{vue-ui-tiremarks-DcJiLDsm.js → vue-ui-tiremarks-BCncDpHX.js} +1 -1
- package/dist/{vue-ui-treemap-CjldCPnX.js → vue-ui-treemap-BOEYCOdk.js} +3 -6
- package/dist/{vue-ui-waffle-dZM-9z1J.js → vue-ui-waffle-BrM8IHdG.js} +1 -1
- package/dist/{vue-ui-wheel-or7a6-Ce.js → vue-ui-wheel-BNsajigQ.js} +1 -1
- package/dist/{vue-ui-word-cloud-8BwQ0cuB.js → vue-ui-word-cloud-D7R7nhk1.js} +1 -1
- package/dist/{vue-ui-world-Q0KZb7A_.js → vue-ui-world-DZBt-07p.js} +1 -1
- package/dist/{vue-ui-xy-DZIs53tH.js → vue-ui-xy-CluEZ7lS.js} +1253 -1251
- package/dist/{vue-ui-xy-4uzwZJcj.js → vue-ui-xy-Dt_1bSBT.js} +1 -1
- package/dist/{vue-ui-xy-canvas-Dz9aii7f.js → vue-ui-xy-canvas-7YSYRdwr.js} +3 -3
- package/package.json +2 -2
- package/dist/vue-ui-accordion-nNxnZTg9.js +0 -81
- package/dist/vue-ui-scatter-Cb63SWJT.js +0 -2421
- package/dist/vue-ui-stackbar-BZKw8WYn.js +0 -2340
- package/dist/vue-ui-strip-plot-DyN2WELD.js +0 -1735
|
@@ -7,131 +7,128 @@ import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
|
7
7
|
import { t as Se } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
8
|
import { t as Ce } from "./useNestedProp-BY6DNN3i.js";
|
|
9
9
|
import { t as we } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Te } from "./
|
|
11
|
-
import { t as Ee } from "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { t as je } from "./
|
|
16
|
-
import { t as Me } from "./
|
|
17
|
-
import { t as Ne } from "./
|
|
18
|
-
import { t as Pe } from "./
|
|
19
|
-
import { t as Fe } from "./
|
|
20
|
-
import { t as Ie } from "./
|
|
21
|
-
import { t as Le } from "./
|
|
22
|
-
import { t as Re } from "./
|
|
23
|
-
import {
|
|
10
|
+
import { t as Te } from "./useMountedDelay-BAjrhRJb.js";
|
|
11
|
+
import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as De } from "./img-Bikk1dGb.js";
|
|
13
|
+
import { n as Oe } from "./Title-BuPs74IB.js";
|
|
14
|
+
import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Me } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as Ne } from "./BaseLegendToggle-DsWphmIb.js";
|
|
18
|
+
import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Le } from "./Legend-C0xAnJdO.js";
|
|
22
|
+
import { t as Re } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
23
|
+
import { t as ze } from "./Slicer-C6qNUmZ4.js";
|
|
24
|
+
import { Fragment as u, Teleport as Be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as We, nextTick as Ge, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ke, onMounted as qe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as T, toRefs as Xe, unref as E, watch as Ze, watchEffect as Qe, withCtx as D } from "vue";
|
|
24
25
|
//#region src/components/vue-ui-donut-evolution.vue
|
|
25
|
-
var
|
|
26
|
+
var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
|
|
26
27
|
"xmlns",
|
|
27
28
|
"aria-describedby",
|
|
28
29
|
"viewBox"
|
|
29
|
-
],
|
|
30
|
+
], at = [
|
|
30
31
|
"x",
|
|
31
32
|
"y",
|
|
32
33
|
"width",
|
|
33
34
|
"height"
|
|
34
|
-
],
|
|
35
|
+
], ot = { key: 1 }, st = [
|
|
35
36
|
"x1",
|
|
36
37
|
"x2",
|
|
37
38
|
"y1",
|
|
38
39
|
"y2",
|
|
39
40
|
"stroke",
|
|
40
41
|
"stroke-width"
|
|
41
|
-
],
|
|
42
|
+
], ct = [
|
|
42
43
|
"x1",
|
|
43
44
|
"x2",
|
|
44
45
|
"y1",
|
|
45
46
|
"y2",
|
|
46
47
|
"stroke",
|
|
47
48
|
"stroke-width"
|
|
48
|
-
],
|
|
49
|
+
], lt = { key: 0 }, ut = [
|
|
49
50
|
"x1",
|
|
50
51
|
"x2",
|
|
51
52
|
"y1",
|
|
52
53
|
"y2",
|
|
53
54
|
"stroke",
|
|
54
55
|
"stroke-width"
|
|
55
|
-
],
|
|
56
|
+
], dt = [
|
|
56
57
|
"font-size",
|
|
57
58
|
"fill",
|
|
58
59
|
"transform"
|
|
59
|
-
],
|
|
60
|
+
], ft = [
|
|
60
61
|
"x",
|
|
61
62
|
"y",
|
|
62
63
|
"font-size",
|
|
63
64
|
"fill"
|
|
64
|
-
],
|
|
65
|
-
"
|
|
66
|
-
"x2",
|
|
67
|
-
"y1",
|
|
68
|
-
"y2",
|
|
65
|
+
], pt = [
|
|
66
|
+
"d",
|
|
69
67
|
"stroke",
|
|
70
68
|
"stroke-width"
|
|
71
|
-
],
|
|
72
|
-
"
|
|
73
|
-
"y",
|
|
69
|
+
], mt = [
|
|
70
|
+
"transform",
|
|
74
71
|
"font-size",
|
|
75
72
|
"text-anchor",
|
|
76
73
|
"fill",
|
|
77
74
|
"font-weight"
|
|
78
|
-
],
|
|
75
|
+
], ht = { key: 0 }, gt = [
|
|
79
76
|
"text-anchor",
|
|
80
77
|
"font-size",
|
|
81
78
|
"fill",
|
|
82
79
|
"transform"
|
|
83
|
-
],
|
|
80
|
+
], _t = [
|
|
84
81
|
"text-anchor",
|
|
85
82
|
"font-size",
|
|
86
83
|
"fill",
|
|
87
84
|
"transform",
|
|
88
85
|
"innerHTML"
|
|
89
|
-
],
|
|
86
|
+
], vt = [
|
|
90
87
|
"x1",
|
|
91
88
|
"y1",
|
|
92
89
|
"x2",
|
|
93
90
|
"y2",
|
|
94
91
|
"stroke",
|
|
95
92
|
"stroke-width"
|
|
96
|
-
],
|
|
93
|
+
], yt = { key: 1 }, bt = [
|
|
97
94
|
"cx",
|
|
98
95
|
"cy",
|
|
99
96
|
"r",
|
|
100
97
|
"fill"
|
|
101
|
-
],
|
|
98
|
+
], xt = { key: 0 }, St = { key: 0 }, Ct = ["d", "stroke"], wt = [
|
|
102
99
|
"text-anchor",
|
|
103
100
|
"x",
|
|
104
101
|
"y",
|
|
105
102
|
"fill"
|
|
106
|
-
],
|
|
103
|
+
], Tt = [
|
|
107
104
|
"cx",
|
|
108
105
|
"cy",
|
|
109
106
|
"r",
|
|
110
107
|
"fill"
|
|
111
|
-
],
|
|
108
|
+
], Et = { key: 0 }, Dt = [
|
|
112
109
|
"cx",
|
|
113
110
|
"cy",
|
|
114
111
|
"fill"
|
|
115
|
-
],
|
|
112
|
+
], Ot = { key: 1 }, kt = [
|
|
116
113
|
"d",
|
|
117
114
|
"fill",
|
|
118
115
|
"stroke"
|
|
119
|
-
],
|
|
116
|
+
], At = { key: 2 }, jt = [
|
|
120
117
|
"d",
|
|
121
118
|
"fill",
|
|
122
119
|
"stroke"
|
|
123
|
-
],
|
|
120
|
+
], Mt = [
|
|
124
121
|
"x",
|
|
125
122
|
"y",
|
|
126
123
|
"font-size",
|
|
127
124
|
"fill"
|
|
128
|
-
],
|
|
125
|
+
], Nt = [
|
|
129
126
|
"x",
|
|
130
127
|
"y",
|
|
131
128
|
"width",
|
|
132
129
|
"height",
|
|
133
130
|
"fill"
|
|
134
|
-
],
|
|
131
|
+
], Pt = [
|
|
135
132
|
"x",
|
|
136
133
|
"y",
|
|
137
134
|
"width",
|
|
@@ -139,7 +136,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
139
136
|
"onMouseenter",
|
|
140
137
|
"onMouseleave",
|
|
141
138
|
"onClick"
|
|
142
|
-
],
|
|
139
|
+
], Ft = {
|
|
143
140
|
key: 0,
|
|
144
141
|
style: {
|
|
145
142
|
position: "absolute",
|
|
@@ -149,10 +146,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
149
146
|
},
|
|
150
147
|
"data-dom-to-png-ignore": "",
|
|
151
148
|
"aria-hidden": "true"
|
|
152
|
-
},
|
|
149
|
+
}, It = {
|
|
153
150
|
key: 5,
|
|
154
151
|
class: "vue-data-ui-watermark"
|
|
155
|
-
},
|
|
152
|
+
}, Lt = ["id"], Rt = ["onClick"], zt = { key: 0 }, Bt = { key: 1 }, Vt = /*#__PURE__*/ ke({
|
|
156
153
|
__name: "vue-ui-donut-evolution",
|
|
157
154
|
props: {
|
|
158
155
|
config: {
|
|
@@ -169,18 +166,18 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
169
166
|
}
|
|
170
167
|
},
|
|
171
168
|
emits: ["selectLegend", "copyAlt"],
|
|
172
|
-
setup(e, { expose:
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
setup(e, { expose: ke, emit: $e }) {
|
|
170
|
+
let Vt = g(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Ht = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Ut = g(() => import("./DataTable-DzPEVvSo.js")), Wt = g(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), Gt = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Kt = g(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), qt = g(() => import("./vue-ui-donut-ZIRebAWc.js").then((e) => e.n)), Jt = g(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_donut_evolution: Yt } = ve(), { isThemeValid: Xt, warnInvalidTheme: Zt } = we(), { isReady: Qt } = Te(300), O = e, k = S(s()), A = S([]), j = S(null), M = S(null), $t = S(!1), N = S(null), P = S(null), en = S(null), tn = S(0), nn = S(0), rn = S(0), an = S(0), on = S(0), sn = S(null), cn = S(null), ln = S(null), un = S(null), dn = S(!1), F = S(null), fn = S(null), pn = S(!1), mn = S(!1), hn = S(null), gn = S(null), _n = S(null), vn = S(null), yn = S(null), bn = S(!1), I = Ye(null), xn = Ye(null), Sn = S(null), L = S(null), Cn = S(!1), wn = $e, Tn = d(() => !!O.dataset && O.dataset.length);
|
|
171
|
+
qe(() => {
|
|
172
|
+
dn.value = !0, Dn();
|
|
176
173
|
});
|
|
177
|
-
let
|
|
178
|
-
function
|
|
174
|
+
let En = d(() => !!R.value.debug);
|
|
175
|
+
function Dn() {
|
|
179
176
|
if (t(O.dataset) ? (oe({
|
|
180
177
|
componentName: "VueUiDonutEvolution",
|
|
181
178
|
type: "dataset",
|
|
182
|
-
debug:
|
|
183
|
-
}),
|
|
179
|
+
debug: En.value
|
|
180
|
+
}), jn.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
|
|
184
181
|
ce({
|
|
185
182
|
datasetObject: e,
|
|
186
183
|
requiredAttributes: ["name", "values"]
|
|
@@ -190,31 +187,31 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
190
187
|
type: "datasetSerieAttribute",
|
|
191
188
|
property: e,
|
|
192
189
|
index: t,
|
|
193
|
-
debug:
|
|
194
|
-
}),
|
|
190
|
+
debug: En.value
|
|
191
|
+
}), jn.value = !0;
|
|
195
192
|
});
|
|
196
|
-
}), t(O.dataset) || (
|
|
197
|
-
|
|
198
|
-
}, 10),
|
|
199
|
-
let e =
|
|
200
|
-
|
|
201
|
-
let { width: e, height: t } =
|
|
193
|
+
}), t(O.dataset) || (jn.value = R.value.loading), setTimeout(() => {
|
|
194
|
+
bn.value = !0;
|
|
195
|
+
}, 10), Pn(), R.value.responsive) {
|
|
196
|
+
let e = Ae(() => {
|
|
197
|
+
bn.value = !1;
|
|
198
|
+
let { width: e, height: t } = je({
|
|
202
199
|
chart: P.value,
|
|
203
|
-
title: R.value.style.chart.title.text ?
|
|
204
|
-
legend: R.value.style.chart.legend.show ?
|
|
205
|
-
slicer: R.value.style.chart.zoom.show &&
|
|
206
|
-
source:
|
|
200
|
+
title: R.value.style.chart.title.text ? hn.value : null,
|
|
201
|
+
legend: R.value.style.chart.legend.show ? gn.value : null,
|
|
202
|
+
slicer: R.value.style.chart.zoom.show && Mn.value > 1 ? yn.value : null,
|
|
203
|
+
source: _n.value
|
|
207
204
|
});
|
|
208
205
|
requestAnimationFrame(() => {
|
|
209
|
-
B.value.width = e, B.value.height = t - 12, clearTimeout(
|
|
210
|
-
|
|
206
|
+
B.value.width = e, B.value.height = t - 12, clearTimeout(Sn.value), Sn.value = setTimeout(() => {
|
|
207
|
+
bn.value = !0;
|
|
211
208
|
}, 10);
|
|
212
209
|
});
|
|
213
210
|
});
|
|
214
|
-
I.value && (
|
|
211
|
+
I.value && (xn.value && I.value.unobserve(xn.value), I.value.disconnect()), I.value = new ResizeObserver(e), xn.value = P.value.parentNode, I.value.observe(xn.value);
|
|
215
212
|
}
|
|
216
213
|
}
|
|
217
|
-
let R = S(
|
|
214
|
+
let R = S(Bn()), z = d(() => R.value.userOptions.useCursorPointer), On = d(() => fe({
|
|
218
215
|
defaultConfig: {
|
|
219
216
|
useCssAnimation: !1,
|
|
220
217
|
table: { show: !1 },
|
|
@@ -252,13 +249,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
252
249
|
} }
|
|
253
250
|
},
|
|
254
251
|
userConfig: R.value.skeletonConfig ?? {}
|
|
255
|
-
})), { loading:
|
|
256
|
-
...
|
|
252
|
+
})), { loading: kn, FINAL_DATASET: An, manualLoading: jn } = be({
|
|
253
|
+
...Xe(O),
|
|
257
254
|
FINAL_CONFIG: R,
|
|
258
|
-
prepareConfig:
|
|
255
|
+
prepareConfig: Bn,
|
|
259
256
|
callback: () => {
|
|
260
257
|
Promise.resolve().then(async () => {
|
|
261
|
-
await
|
|
258
|
+
await Pn();
|
|
262
259
|
});
|
|
263
260
|
},
|
|
264
261
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -301,43 +298,43 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
301
298
|
],
|
|
302
299
|
skeletonConfig: fe({
|
|
303
300
|
defaultConfig: R.value,
|
|
304
|
-
userConfig:
|
|
301
|
+
userConfig: On.value
|
|
305
302
|
})
|
|
306
303
|
}), B = S({
|
|
307
304
|
width: R.value.style.chart.layout.width,
|
|
308
305
|
height: R.value.style.chart.layout.height
|
|
309
|
-
}),
|
|
306
|
+
}), Mn = d(() => Math.max(...An.value.map((e) => e.values.length))), V = S({
|
|
310
307
|
start: 0,
|
|
311
|
-
end:
|
|
308
|
+
end: Mn.value
|
|
312
309
|
});
|
|
313
|
-
function
|
|
314
|
-
|
|
310
|
+
function Nn() {
|
|
311
|
+
Pn();
|
|
315
312
|
}
|
|
316
|
-
async function
|
|
317
|
-
await
|
|
318
|
-
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n =
|
|
313
|
+
async function Pn() {
|
|
314
|
+
await Ge(), await Ge();
|
|
315
|
+
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = vn.value;
|
|
319
316
|
V.value = {
|
|
320
317
|
start: 0,
|
|
321
318
|
max: q.value
|
|
322
|
-
}, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(
|
|
319
|
+
}, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(Fn(t + 1))) : (V.value = {
|
|
323
320
|
start: 0,
|
|
324
321
|
end: q.value
|
|
325
|
-
},
|
|
322
|
+
}, nn.value += 1);
|
|
326
323
|
}
|
|
327
|
-
function
|
|
324
|
+
function Fn(e) {
|
|
328
325
|
let t = q.value;
|
|
329
326
|
return e > t ? t : e < 0 || R.value.style.chart.zoom.startIndex !== null && e < R.value.style.chart.zoom.startIndex ? R.value.style.chart.zoom.startIndex === null ? 1 : R.value.style.chart.zoom.startIndex + 1 : e;
|
|
330
327
|
}
|
|
331
|
-
let { userOptionsVisible:
|
|
332
|
-
function
|
|
328
|
+
let { userOptionsVisible: In, setUserOptionsVisibility: Ln, keepUserOptionState: Rn } = Fe({ config: R.value }), { svgRef: zn } = Ie({ config: R.value.style.chart.title });
|
|
329
|
+
function Bn() {
|
|
333
330
|
let e = Ce({
|
|
334
331
|
userConfig: O.config,
|
|
335
|
-
defaultConfig:
|
|
332
|
+
defaultConfig: Yt
|
|
336
333
|
}), t = {}, n = e.theme;
|
|
337
|
-
if (n) if (!
|
|
334
|
+
if (n) if (!Xt.value(e)) Zt(e), t = e;
|
|
338
335
|
else {
|
|
339
336
|
let r = Ce({
|
|
340
|
-
userConfig:
|
|
337
|
+
userConfig: Re[n] || O.config,
|
|
341
338
|
defaultConfig: e
|
|
342
339
|
});
|
|
343
340
|
t = {
|
|
@@ -351,17 +348,17 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
351
348
|
else t = e;
|
|
352
349
|
return t;
|
|
353
350
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}, { deep: !0 }),
|
|
357
|
-
Array.isArray(e) && e.length > 0 && (
|
|
351
|
+
Ze(() => O.config, (e) => {
|
|
352
|
+
kn.value || (R.value = Bn()), In.value = !R.value.userOptions.showOnChartHover, Dn(), rn.value += 1, an.value += 1, on.value += 1, H.value.showTable = R.value.table.show;
|
|
353
|
+
}, { deep: !0 }), Ze(() => O.dataset, (e) => {
|
|
354
|
+
Array.isArray(e) && e.length > 0 && (jn.value = !1), Nn();
|
|
358
355
|
}, { deep: !0 });
|
|
359
|
-
let { isPrinting:
|
|
356
|
+
let { isPrinting: Vn, isImaging: Hn, generatePdf: Un, generateImage: Wn } = ye({
|
|
360
357
|
elementId: k.value,
|
|
361
358
|
fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
362
359
|
options: R.value.userOptions.print
|
|
363
|
-
}),
|
|
364
|
-
|
|
360
|
+
}), Gn = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), Kn = d(() => n(R.value.customPalette)), H = S({ showTable: R.value.table.show });
|
|
361
|
+
Ze(R, () => {
|
|
365
362
|
H.value = { showTable: R.value.table.show };
|
|
366
363
|
}, { immediate: !0 });
|
|
367
364
|
let U = d(() => ({
|
|
@@ -370,13 +367,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
370
367
|
bottom: R.value.style.chart.layout.padding.bottom,
|
|
371
368
|
left: R.value.style.chart.layout.padding.left
|
|
372
369
|
})), W = d(() => R.value.style.chart.layout.grid.yAxis.position === "right");
|
|
373
|
-
function
|
|
370
|
+
function qn() {
|
|
374
371
|
let e = 0;
|
|
375
|
-
|
|
372
|
+
sn.value && (e = Array.from(sn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
376
373
|
let n = t.getComputedTextLength();
|
|
377
374
|
return n > e ? n : e;
|
|
378
375
|
}, 0));
|
|
379
|
-
let t =
|
|
376
|
+
let t = un.value ? un.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
380
377
|
return {
|
|
381
378
|
left: W.value ? 0 : n,
|
|
382
379
|
right: W.value ? n : 0,
|
|
@@ -385,31 +382,31 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
385
382
|
crosshair: 5
|
|
386
383
|
};
|
|
387
384
|
}
|
|
388
|
-
let
|
|
389
|
-
|
|
385
|
+
let Jn = S(0), Yn = Ae((e) => {
|
|
386
|
+
Jn.value = e;
|
|
390
387
|
}, 100);
|
|
391
|
-
|
|
392
|
-
let t =
|
|
388
|
+
Qe((e) => {
|
|
389
|
+
let t = cn.value;
|
|
393
390
|
if (!t) return;
|
|
394
391
|
let n = new ResizeObserver((e) => {
|
|
395
|
-
|
|
392
|
+
Yn(e[0].contentRect.height);
|
|
396
393
|
});
|
|
397
394
|
n.observe(t), e(() => n.disconnect());
|
|
398
|
-
}),
|
|
399
|
-
|
|
395
|
+
}), Ke(() => {
|
|
396
|
+
Jn.value = 0;
|
|
400
397
|
});
|
|
401
|
-
let
|
|
398
|
+
let Xn = d(() => {
|
|
402
399
|
let e = 0;
|
|
403
|
-
|
|
400
|
+
ln.value && (e = ln.value.getBBox().height);
|
|
404
401
|
let t = 0;
|
|
405
|
-
return
|
|
402
|
+
return cn.value && (t = Jn.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
406
403
|
}), G = d(() => {
|
|
407
|
-
let e =
|
|
404
|
+
let e = qn(), t = R.value.style.chart.layout.dataLabels.fontSize * 3, n = B.value.width, r = B.value.height, i = U.value.left + e.left, a = n - U.value.right - e.right, o = n - i - U.value.right - e.right, s = r - U.value.top - U.value.bottom - t - Xn.value, c = U.value.top + t;
|
|
408
405
|
return {
|
|
409
406
|
top: c,
|
|
410
407
|
left: i,
|
|
411
408
|
right: a,
|
|
412
|
-
bottom: r - U.value.bottom -
|
|
409
|
+
bottom: r - U.value.bottom - Xn.value,
|
|
413
410
|
absoluteHeight: r,
|
|
414
411
|
absoluteWidth: n,
|
|
415
412
|
centerX: i + Math.max(10, o) / 2,
|
|
@@ -420,32 +417,32 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
420
417
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
421
418
|
crosshair: e.crosshair
|
|
422
419
|
};
|
|
423
|
-
}), K = d(() => (
|
|
420
|
+
}), K = d(() => (An.value.forEach((e, t) => {
|
|
424
421
|
[null, void 0].includes(e.name) && oe({
|
|
425
422
|
componentName: "VueUiDonutEvolution",
|
|
426
423
|
type: "datasetSerieAttribute",
|
|
427
424
|
property: "name",
|
|
428
425
|
index: t,
|
|
429
|
-
debug:
|
|
426
|
+
debug: En.value
|
|
430
427
|
}), [null, void 0].includes(e.values) && oe({
|
|
431
428
|
componentName: "VueUiDonutEvolution",
|
|
432
429
|
type: "datasetSerieAttribute",
|
|
433
430
|
property: "values",
|
|
434
431
|
index: t,
|
|
435
|
-
debug:
|
|
432
|
+
debug: En.value
|
|
436
433
|
});
|
|
437
|
-
}),
|
|
434
|
+
}), An.value.map((e, t) => ({
|
|
438
435
|
...e,
|
|
439
436
|
values: c(e.values),
|
|
440
|
-
color: he(e.color) ||
|
|
437
|
+
color: he(e.color) || Kn.value[t] || l[t] || l[t % l.length],
|
|
441
438
|
length: (e.values || []).length,
|
|
442
439
|
uid: s()
|
|
443
|
-
})))),
|
|
440
|
+
})))), Zn = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
444
441
|
...e,
|
|
445
442
|
values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
|
|
446
|
-
}))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]),
|
|
447
|
-
|
|
448
|
-
let e = ++
|
|
443
|
+
}))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), Qn = 0;
|
|
444
|
+
Qe(() => {
|
|
445
|
+
let e = ++Qn;
|
|
449
446
|
(async () => {
|
|
450
447
|
let t = await _e({
|
|
451
448
|
values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
@@ -454,13 +451,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
454
451
|
start: V.value.start,
|
|
455
452
|
end: V.value.end
|
|
456
453
|
});
|
|
457
|
-
e ===
|
|
454
|
+
e === Qn && (J.value = t);
|
|
458
455
|
})();
|
|
459
456
|
});
|
|
460
|
-
let Y = d(() => G.value.width / (V.value.end - V.value.start)),
|
|
457
|
+
let Y = d(() => G.value.width / (V.value.end - V.value.start)), $n = d(() => {
|
|
461
458
|
let e = [];
|
|
462
459
|
for (let t = 0; t < V.value.end - V.value.start; t += 1) {
|
|
463
|
-
let n =
|
|
460
|
+
let n = Zn.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = G.value.left + Y.value * t + Y.value / 2;
|
|
464
461
|
e.push({
|
|
465
462
|
index: t,
|
|
466
463
|
percentages: a,
|
|
@@ -470,26 +467,26 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
470
467
|
});
|
|
471
468
|
}
|
|
472
469
|
return e;
|
|
473
|
-
}),
|
|
474
|
-
let e = Math.max(
|
|
470
|
+
}), er = d(() => {
|
|
471
|
+
let e = Math.max(...$n.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 1, t = Math.min(...$n.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), i;
|
|
475
472
|
return i = R.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, R.value.style.chart.layout.grid.yAxis.scaleMin), R.value.style.chart.layout.grid.yAxis.autoScale && (i = t, n = e), i === n && (i = n / 2, n *= 1.5), {
|
|
476
473
|
max: n,
|
|
477
474
|
min: i
|
|
478
475
|
};
|
|
479
476
|
}), X = d(() => {
|
|
480
|
-
let e =
|
|
481
|
-
return le(
|
|
477
|
+
let e = $n.value.length === 1 ? er.value.max * 2 : er.value.max;
|
|
478
|
+
return le(er.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
482
479
|
});
|
|
483
|
-
function
|
|
480
|
+
function tr(e) {
|
|
484
481
|
return (e - X.value.min) / (X.value.max - X.value.min);
|
|
485
482
|
}
|
|
486
|
-
let
|
|
487
|
-
y: G.value.bottom - G.value.height *
|
|
483
|
+
let nr = d(() => X.value.ticks.map((e) => ({
|
|
484
|
+
y: G.value.bottom - G.value.height * tr(e),
|
|
488
485
|
value: e
|
|
489
486
|
}))), Z = d(() => {
|
|
490
|
-
let e =
|
|
487
|
+
let e = $n.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
491
488
|
return e.length === 1 && t * 2, e.map((t, n) => {
|
|
492
|
-
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height *
|
|
489
|
+
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height * tr(t.subtotal), c = Zn.value.map((e) => ({
|
|
493
490
|
color: e.color,
|
|
494
491
|
name: e.name,
|
|
495
492
|
value: e.values[n] ?? 0
|
|
@@ -506,7 +503,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
506
503
|
};
|
|
507
504
|
});
|
|
508
505
|
});
|
|
509
|
-
function
|
|
506
|
+
function rr(e, t, n) {
|
|
510
507
|
return ue(R.value.style.chart.layout.dataLabels.formatter, e, re({
|
|
511
508
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
512
509
|
v: e,
|
|
@@ -517,29 +514,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
517
514
|
index: n
|
|
518
515
|
});
|
|
519
516
|
}
|
|
520
|
-
function
|
|
517
|
+
function ir(e, t) {
|
|
521
518
|
return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
|
|
522
519
|
}
|
|
523
|
-
function
|
|
520
|
+
function ar(e) {
|
|
524
521
|
j.value = null, M.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
525
522
|
datapoint: e,
|
|
526
523
|
seriesIndex: e.seriesIndex + V.value.start
|
|
527
524
|
});
|
|
528
525
|
}
|
|
529
|
-
function
|
|
526
|
+
function or(e) {
|
|
530
527
|
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
531
528
|
datapoint: e,
|
|
532
529
|
seriesIndex: e.index + V.value.start
|
|
533
530
|
}), j.value = e.index, M.value = e, L.value = e.index;
|
|
534
531
|
}
|
|
535
|
-
let
|
|
536
|
-
function
|
|
532
|
+
let sr = S(null);
|
|
533
|
+
function cr(e, t) {
|
|
537
534
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
538
535
|
datapoint: e,
|
|
539
536
|
seriesIndex: e.index + V.value.start
|
|
540
|
-
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null,
|
|
537
|
+
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, $t.value = !0, N.value = e, Dr(e), [null, void 0].includes(t) || (sr.value = t));
|
|
541
538
|
}
|
|
542
|
-
let
|
|
539
|
+
let lr = d(() => K.value.map((e, t) => ({
|
|
543
540
|
name: e.name,
|
|
544
541
|
value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
|
|
545
542
|
shape: "circle",
|
|
@@ -548,7 +545,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
548
545
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
549
546
|
...e,
|
|
550
547
|
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
551
|
-
segregate: () =>
|
|
548
|
+
segregate: () => pr(e.uid),
|
|
552
549
|
isSegregated: A.value.includes(e.uid),
|
|
553
550
|
display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? ue(R.value.style.chart.layout.dataLabels.formatter, e.value, re({
|
|
554
551
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
@@ -558,12 +555,12 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
558
555
|
}), {
|
|
559
556
|
datapoint: e,
|
|
560
557
|
seriesIndex: t
|
|
561
|
-
}) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value /
|
|
562
|
-
v: e.value /
|
|
558
|
+
}) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ur.value) ? "-" : re({
|
|
559
|
+
v: e.value / ur.value * 100,
|
|
563
560
|
s: "%",
|
|
564
561
|
r: R.value.style.chart.legend.roundingPercentage
|
|
565
562
|
})}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
566
|
-
}))),
|
|
563
|
+
}))), ur = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), dr = d(() => ({
|
|
567
564
|
cy: "donut-div-legend",
|
|
568
565
|
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
569
566
|
color: R.value.style.chart.legend.color,
|
|
@@ -571,29 +568,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
571
568
|
paddingBottom: 12,
|
|
572
569
|
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
573
570
|
}));
|
|
574
|
-
function
|
|
575
|
-
A.value.length ? A.value = [] :
|
|
571
|
+
function fr() {
|
|
572
|
+
A.value.length ? A.value = [] : lr.value.forEach((e) => {
|
|
576
573
|
A.value.push(e.uid);
|
|
577
|
-
}),
|
|
574
|
+
}), wn("selectLegend", Zn.value);
|
|
578
575
|
}
|
|
579
|
-
function
|
|
580
|
-
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e),
|
|
576
|
+
function pr(e) {
|
|
577
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), wn("selectLegend", Zn.value);
|
|
581
578
|
else {
|
|
582
579
|
if (A.value.length === K.value.length - 1) return;
|
|
583
|
-
A.value.push(e),
|
|
580
|
+
A.value.push(e), wn("selectLegend", Zn.value);
|
|
584
581
|
}
|
|
585
|
-
N.value &&
|
|
582
|
+
N.value && cr(Z.value.find((e, t) => t === sr.value));
|
|
586
583
|
}
|
|
587
|
-
function
|
|
584
|
+
function mr(e) {
|
|
588
585
|
return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
589
586
|
}
|
|
590
|
-
function
|
|
591
|
-
let t =
|
|
592
|
-
t !== null && A.value.includes(t.uid) &&
|
|
587
|
+
function hr(e) {
|
|
588
|
+
let t = mr(e);
|
|
589
|
+
t !== null && A.value.includes(t.uid) && pr(t.uid);
|
|
593
590
|
}
|
|
594
|
-
function
|
|
595
|
-
let t =
|
|
596
|
-
t !== null && (A.value.includes(t.uid) ||
|
|
591
|
+
function gr(e) {
|
|
592
|
+
let t = mr(e);
|
|
593
|
+
t !== null && (A.value.includes(t.uid) || pr(t.uid));
|
|
597
594
|
}
|
|
598
595
|
let Q = d(() => {
|
|
599
596
|
let e = [""].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
@@ -610,7 +607,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
610
607
|
return {
|
|
611
608
|
head: e,
|
|
612
609
|
body: t,
|
|
613
|
-
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${
|
|
610
|
+
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${rr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
614
611
|
config: {
|
|
615
612
|
th: {
|
|
616
613
|
backgroundColor: R.value.table.th.backgroundColor,
|
|
@@ -627,11 +624,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
627
624
|
colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), R.value.table.columnNames.total)
|
|
628
625
|
};
|
|
629
626
|
});
|
|
630
|
-
function
|
|
627
|
+
function _r() {
|
|
631
628
|
return K.value;
|
|
632
629
|
}
|
|
633
|
-
function
|
|
634
|
-
|
|
630
|
+
function vr(e = null) {
|
|
631
|
+
Ge(() => {
|
|
635
632
|
let t = [
|
|
636
633
|
[R.value.style.chart.title.text],
|
|
637
634
|
[R.value.style.chart.title.subtitle.text],
|
|
@@ -644,34 +641,34 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
644
641
|
});
|
|
645
642
|
}
|
|
646
643
|
let $ = S(!1);
|
|
647
|
-
function
|
|
648
|
-
$.value = e,
|
|
644
|
+
function yr(e) {
|
|
645
|
+
$.value = e, tn.value += 1;
|
|
649
646
|
}
|
|
650
|
-
function
|
|
647
|
+
function br() {
|
|
651
648
|
H.value.showTable = !H.value.showTable;
|
|
652
649
|
}
|
|
653
|
-
let
|
|
654
|
-
function
|
|
655
|
-
|
|
650
|
+
let xr = S(!1);
|
|
651
|
+
function Sr() {
|
|
652
|
+
xr.value = !xr.value;
|
|
656
653
|
}
|
|
657
|
-
function
|
|
654
|
+
function Cr(e) {
|
|
658
655
|
return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
659
656
|
}
|
|
660
|
-
let
|
|
661
|
-
function
|
|
662
|
-
|
|
657
|
+
let wr = S([]), Tr = S({}), Er = S(null);
|
|
658
|
+
function Dr(e) {
|
|
659
|
+
wr.value = e.donut.map((e) => ({
|
|
663
660
|
name: e.name,
|
|
664
661
|
values: [e.value],
|
|
665
662
|
color: e.color
|
|
666
|
-
})),
|
|
663
|
+
})), Tr.value = ie({
|
|
667
664
|
...R.value.style.chart.dialog.donutChart,
|
|
668
665
|
responsive: !0,
|
|
669
666
|
theme: R.value.theme
|
|
670
|
-
}),
|
|
667
|
+
}), Er.value && Er.value.open();
|
|
671
668
|
}
|
|
672
|
-
async function
|
|
669
|
+
async function Or({ scale: e = 2 } = {}) {
|
|
673
670
|
if (!P.value) return;
|
|
674
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
671
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await De({
|
|
675
672
|
domElement: P.value,
|
|
676
673
|
base64: !0,
|
|
677
674
|
img: !0,
|
|
@@ -686,8 +683,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
686
683
|
aspectRatio: r
|
|
687
684
|
};
|
|
688
685
|
}
|
|
689
|
-
|
|
690
|
-
timeLabelsEls:
|
|
686
|
+
Ee({
|
|
687
|
+
timeLabelsEls: cn,
|
|
691
688
|
timeLabels: J,
|
|
692
689
|
slicer: V,
|
|
693
690
|
configRef: R,
|
|
@@ -715,10 +712,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
715
712
|
height: d(() => B.value.height),
|
|
716
713
|
rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
717
714
|
});
|
|
718
|
-
let
|
|
715
|
+
let kr = d(() => {
|
|
719
716
|
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
720
717
|
return {
|
|
721
|
-
component: e ?
|
|
718
|
+
component: e ? Jt : Vt,
|
|
722
719
|
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
723
720
|
props: e ? {
|
|
724
721
|
backgroundColor: R.value.table.th.backgroundColor,
|
|
@@ -746,51 +743,51 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
746
743
|
}
|
|
747
744
|
};
|
|
748
745
|
});
|
|
749
|
-
|
|
746
|
+
Ze(() => H.value.showTable, (e) => {
|
|
750
747
|
R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
751
748
|
});
|
|
752
|
-
function
|
|
753
|
-
H.value.showTable = !1,
|
|
749
|
+
function Ar() {
|
|
750
|
+
H.value.showTable = !1, fn.value && fn.value.setTableIconState(!1);
|
|
754
751
|
}
|
|
755
|
-
let
|
|
752
|
+
let jr = d(() => lr.value.map((e) => ({
|
|
756
753
|
...e,
|
|
757
754
|
name: e.display
|
|
758
|
-
}))),
|
|
759
|
-
svg:
|
|
755
|
+
}))), Mr = d(() => R.value.style.chart.backgroundColor), Nr = d(() => R.value.style.chart.legend), { exportSvg: Pr, getSvg: Fr } = Se({
|
|
756
|
+
svg: zn,
|
|
760
757
|
title: d(() => R.value.style.chart.title),
|
|
761
|
-
legend:
|
|
762
|
-
legendItems:
|
|
763
|
-
backgroundColor:
|
|
758
|
+
legend: Nr,
|
|
759
|
+
legendItems: jr,
|
|
760
|
+
backgroundColor: Mr
|
|
764
761
|
});
|
|
765
|
-
async function
|
|
766
|
-
|
|
762
|
+
async function Ir({ isCb: e }) {
|
|
763
|
+
mn.value = !0, await Ge();
|
|
767
764
|
try {
|
|
768
765
|
if (e) {
|
|
769
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
766
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Fr();
|
|
770
767
|
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
771
768
|
blob: e,
|
|
772
769
|
url: t,
|
|
773
770
|
text: n,
|
|
774
771
|
dataUrl: r
|
|
775
772
|
}));
|
|
776
|
-
} else await Promise.resolve(
|
|
773
|
+
} else await Promise.resolve(Pr());
|
|
777
774
|
} finally {
|
|
778
|
-
|
|
775
|
+
mn.value = !1;
|
|
779
776
|
}
|
|
780
777
|
}
|
|
781
|
-
function
|
|
778
|
+
function Lr(e) {
|
|
782
779
|
if (e?.stage === "start") {
|
|
783
|
-
|
|
780
|
+
pn.value = !0;
|
|
784
781
|
return;
|
|
785
782
|
}
|
|
786
783
|
if (e?.stage === "end") {
|
|
787
|
-
|
|
784
|
+
pn.value = !1;
|
|
788
785
|
return;
|
|
789
786
|
}
|
|
790
|
-
|
|
787
|
+
Wn();
|
|
791
788
|
}
|
|
792
|
-
async function
|
|
793
|
-
if (
|
|
789
|
+
async function Rr() {
|
|
790
|
+
if (wn("copyAlt", {
|
|
794
791
|
config: R.value,
|
|
795
792
|
dataset: Z.value
|
|
796
793
|
}), !R.value.userOptions.callbacks.altCopy) {
|
|
@@ -802,14 +799,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
802
799
|
dataset: Z.value
|
|
803
800
|
}));
|
|
804
801
|
}
|
|
805
|
-
function
|
|
806
|
-
L.value = null,
|
|
802
|
+
function zr() {
|
|
803
|
+
L.value = null, Cn.value = !0;
|
|
807
804
|
}
|
|
808
|
-
function
|
|
809
|
-
L.value = null, j.value = null, M.value = null,
|
|
805
|
+
function Br() {
|
|
806
|
+
L.value = null, j.value = null, M.value = null, Cn.value = !1;
|
|
810
807
|
}
|
|
811
|
-
function
|
|
812
|
-
if (!
|
|
808
|
+
function Vr(e) {
|
|
809
|
+
if (!zn.value || xr.value || document.activeElement !== zn.value || !Z.value.length) return;
|
|
813
810
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
814
811
|
if (!t && !n && !r && !i) return;
|
|
815
812
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -820,49 +817,49 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
820
817
|
if (L.value === null) return;
|
|
821
818
|
let e = Z.value[L.value];
|
|
822
819
|
if (!e) return;
|
|
823
|
-
|
|
820
|
+
cr(e, L.value);
|
|
824
821
|
return;
|
|
825
822
|
}
|
|
826
823
|
let a = L.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o !== null && o >= 0 && o < Z.value.length;
|
|
827
824
|
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
|
|
828
825
|
let l = Z.value[a];
|
|
829
|
-
l &&
|
|
826
|
+
l && or(l);
|
|
830
827
|
}
|
|
831
|
-
let
|
|
828
|
+
let Hr = d(() => ({
|
|
832
829
|
headers: Q.value?.colNames ?? [],
|
|
833
830
|
rows: Q.value?.bodyA11y ?? []
|
|
834
831
|
}));
|
|
835
|
-
return
|
|
836
|
-
getData:
|
|
837
|
-
getImage:
|
|
838
|
-
generatePdf:
|
|
839
|
-
generateCsv:
|
|
840
|
-
generateImage:
|
|
841
|
-
generateSvg:
|
|
842
|
-
hideSeries:
|
|
843
|
-
showSeries:
|
|
844
|
-
toggleTable:
|
|
845
|
-
toggleAnnotator:
|
|
846
|
-
toggleFullscreen:
|
|
847
|
-
copyAlt:
|
|
832
|
+
return ke({
|
|
833
|
+
getData: _r,
|
|
834
|
+
getImage: Or,
|
|
835
|
+
generatePdf: Un,
|
|
836
|
+
generateCsv: vr,
|
|
837
|
+
generateImage: Wn,
|
|
838
|
+
generateSvg: Ir,
|
|
839
|
+
hideSeries: gr,
|
|
840
|
+
showSeries: hr,
|
|
841
|
+
toggleTable: br,
|
|
842
|
+
toggleAnnotator: Sr,
|
|
843
|
+
toggleFullscreen: yr,
|
|
844
|
+
copyAlt: Rr
|
|
848
845
|
}), (e, t) => (x(), m("div", {
|
|
849
846
|
ref_key: "donutEvolutionChart",
|
|
850
847
|
ref: P,
|
|
851
848
|
class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
852
849
|
style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
|
|
853
850
|
id: k.value,
|
|
854
|
-
onMouseenter: t[5] ||= () => E(
|
|
855
|
-
onMouseleave: t[6] ||= () => E(
|
|
851
|
+
onMouseenter: t[5] ||= () => E(Ln)(!0),
|
|
852
|
+
onMouseleave: t[6] ||= () => E(Ln)(!1)
|
|
856
853
|
}, [
|
|
857
854
|
h("div", {
|
|
858
855
|
id: `chart-instructions-${k.value}`,
|
|
859
856
|
class: "sr-only"
|
|
860
|
-
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
861
|
-
|
|
857
|
+
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
858
|
+
Hr.value?.rows?.length ? (x(), f(Pe, {
|
|
862
859
|
key: 0,
|
|
863
860
|
uid: k.value,
|
|
864
|
-
head:
|
|
865
|
-
body:
|
|
861
|
+
head: Hr.value.headers,
|
|
862
|
+
body: Hr.value.rows,
|
|
866
863
|
notice: R.value.a11y.translations.tableAvailable,
|
|
867
864
|
caption: R.value.a11y.translations.tableCaption
|
|
868
865
|
}, null, 8, [
|
|
@@ -872,14 +869,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
872
869
|
"notice",
|
|
873
870
|
"caption"
|
|
874
871
|
])) : p("", !0),
|
|
875
|
-
R.value.userOptions.buttons.annotator ? (x(), f(E(
|
|
872
|
+
R.value.userOptions.buttons.annotator ? (x(), f(E(Gt), {
|
|
876
873
|
key: 1,
|
|
877
|
-
svgRef: E(
|
|
874
|
+
svgRef: E(zn),
|
|
878
875
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
879
876
|
color: R.value.style.chart.color,
|
|
880
|
-
active:
|
|
877
|
+
active: xr.value,
|
|
881
878
|
isCursorPointer: z.value,
|
|
882
|
-
onClose:
|
|
879
|
+
onClose: Sr
|
|
883
880
|
}, {
|
|
884
881
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
885
882
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -895,21 +892,21 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
895
892
|
"active",
|
|
896
893
|
"isCursorPointer"
|
|
897
894
|
])) : p("", !0),
|
|
898
|
-
|
|
895
|
+
Gn.value ? (x(), m("div", {
|
|
899
896
|
key: 2,
|
|
900
897
|
ref_key: "noTitle",
|
|
901
|
-
ref:
|
|
898
|
+
ref: en,
|
|
902
899
|
class: "vue-data-ui-no-title-space",
|
|
903
900
|
style: "height:36px; width: 100%;background:transparent"
|
|
904
901
|
}, null, 512)) : p("", !0),
|
|
905
902
|
R.value.style.chart.title.text ? (x(), m("div", {
|
|
906
903
|
key: 3,
|
|
907
904
|
ref_key: "chartTitle",
|
|
908
|
-
ref:
|
|
905
|
+
ref: hn,
|
|
909
906
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
910
|
-
onMouseleave:
|
|
911
|
-
}, [(x(), f(
|
|
912
|
-
key: `title_${
|
|
907
|
+
onMouseleave: ar
|
|
908
|
+
}, [(x(), f(Oe, {
|
|
909
|
+
key: `title_${rn.value}`,
|
|
913
910
|
config: {
|
|
914
911
|
title: {
|
|
915
912
|
cy: "donut-evolution-div-title",
|
|
@@ -921,15 +918,15 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
921
918
|
}
|
|
922
919
|
}
|
|
923
920
|
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
924
|
-
h("div", { id: `legend-top-${k.value}` }, null, 8,
|
|
925
|
-
R.value.userOptions.show &&
|
|
921
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, nt),
|
|
922
|
+
R.value.userOptions.show && Tn.value && (E(Rn) || E(In)) ? (x(), f(E(Kt), {
|
|
926
923
|
ref_key: "userOptionsRef",
|
|
927
|
-
ref:
|
|
928
|
-
key: `user_options_${
|
|
924
|
+
ref: fn,
|
|
925
|
+
key: `user_options_${tn.value}`,
|
|
929
926
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
930
927
|
color: R.value.style.chart.color,
|
|
931
|
-
isPrinting: E(
|
|
932
|
-
isImaging: E(
|
|
928
|
+
isPrinting: E(Vn),
|
|
929
|
+
isImaging: E(Hn),
|
|
933
930
|
uid: k.value,
|
|
934
931
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
935
932
|
hasImg: R.value.userOptions.buttons.img,
|
|
@@ -943,21 +940,21 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
943
940
|
chartElement: P.value,
|
|
944
941
|
position: R.value.userOptions.position,
|
|
945
942
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
946
|
-
isAnnotation:
|
|
943
|
+
isAnnotation: xr.value,
|
|
947
944
|
callbacks: R.value.userOptions.callbacks,
|
|
948
945
|
printScale: R.value.userOptions.print.scale,
|
|
949
946
|
tableDialog: R.value.table.useDialog,
|
|
950
947
|
isCursorPointer: z.value,
|
|
951
|
-
onToggleFullscreen:
|
|
952
|
-
onGeneratePdf: E(
|
|
953
|
-
onGenerateCsv:
|
|
954
|
-
onGenerateImage:
|
|
955
|
-
onGenerateSvg:
|
|
956
|
-
onToggleTable:
|
|
957
|
-
onToggleAnnotator:
|
|
958
|
-
onCopyAlt:
|
|
959
|
-
style: b({ visibility: E(
|
|
960
|
-
},
|
|
948
|
+
onToggleFullscreen: yr,
|
|
949
|
+
onGeneratePdf: E(Un),
|
|
950
|
+
onGenerateCsv: vr,
|
|
951
|
+
onGenerateImage: Lr,
|
|
952
|
+
onGenerateSvg: Ir,
|
|
953
|
+
onToggleTable: br,
|
|
954
|
+
onToggleAnnotator: Sr,
|
|
955
|
+
onCopyAlt: Rr,
|
|
956
|
+
style: b({ visibility: E(Rn) ? E(In) ? "visible" : "hidden" : "visible" })
|
|
957
|
+
}, Ve({ _: 2 }, [
|
|
961
958
|
e.$slots.menuIcon ? {
|
|
962
959
|
name: "menuIcon",
|
|
963
960
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
@@ -1048,9 +1045,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1048
1045
|
"onGeneratePdf",
|
|
1049
1046
|
"style"
|
|
1050
1047
|
])) : p("", !0),
|
|
1051
|
-
h("div",
|
|
1048
|
+
h("div", rt, [(x(), m("svg", {
|
|
1052
1049
|
ref_key: "svgRef",
|
|
1053
|
-
ref:
|
|
1050
|
+
ref: zn,
|
|
1054
1051
|
xmlns: E(pe),
|
|
1055
1052
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1056
1053
|
class: v({
|
|
@@ -1060,11 +1057,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1060
1057
|
viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
|
|
1061
1058
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
|
|
1062
1059
|
tabindex: "0",
|
|
1063
|
-
onFocus:
|
|
1064
|
-
onBlur:
|
|
1065
|
-
onKeydown:
|
|
1060
|
+
onFocus: zr,
|
|
1061
|
+
onBlur: Br,
|
|
1062
|
+
onKeydown: Vr
|
|
1066
1063
|
}, [
|
|
1067
|
-
|
|
1064
|
+
Ue(E(Wt)),
|
|
1068
1065
|
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1069
1066
|
key: 0,
|
|
1070
1067
|
x: G.value.left,
|
|
@@ -1072,8 +1069,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1072
1069
|
width: G.value.width,
|
|
1073
1070
|
height: G.value.height,
|
|
1074
1071
|
style: { pointerEvents: "none" }
|
|
1075
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1076
|
-
h("defs", null, [
|
|
1072
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : p("", !0),
|
|
1073
|
+
h("defs", null, [Ue(Me, {
|
|
1077
1074
|
t: "linear",
|
|
1078
1075
|
id: `hover_${k.value}`,
|
|
1079
1076
|
x1: "0%",
|
|
@@ -1089,7 +1086,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1089
1086
|
E(ge)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
|
|
1090
1087
|
1
|
|
1091
1088
|
]]
|
|
1092
|
-
}, null, 8, ["id", "stops"]),
|
|
1089
|
+
}, null, 8, ["id", "stops"]), Ue(Me, {
|
|
1093
1090
|
t: "radial",
|
|
1094
1091
|
id: `focus_${k.value}`,
|
|
1095
1092
|
stops: [
|
|
@@ -1110,7 +1107,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1110
1107
|
]
|
|
1111
1108
|
]
|
|
1112
1109
|
}, null, 8, ["id", "stops"])]),
|
|
1113
|
-
R.value.style.chart.layout.grid.show ? (x(), m("g",
|
|
1110
|
+
R.value.style.chart.layout.grid.show ? (x(), m("g", ot, [
|
|
1114
1111
|
h("line", {
|
|
1115
1112
|
x1: W.value ? G.value.right : G.value.left,
|
|
1116
1113
|
x2: W.value ? G.value.right : G.value.left,
|
|
@@ -1119,7 +1116,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1119
1116
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1120
1117
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1121
1118
|
"stroke-linecap": "round"
|
|
1122
|
-
}, null, 8,
|
|
1119
|
+
}, null, 8, st),
|
|
1123
1120
|
h("line", {
|
|
1124
1121
|
x1: G.value.left,
|
|
1125
1122
|
x2: G.value.right,
|
|
@@ -1128,8 +1125,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1128
1125
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1129
1126
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1130
1127
|
"stroke-linecap": "round"
|
|
1131
|
-
}, null, 8,
|
|
1132
|
-
R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g",
|
|
1128
|
+
}, null, 8, ct),
|
|
1129
|
+
R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", lt, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("line", {
|
|
1133
1130
|
x1: G.value.left + (t + 1) * Y.value,
|
|
1134
1131
|
x2: G.value.left + (t + 1) * Y.value,
|
|
1135
1132
|
y1: G.value.top,
|
|
@@ -1137,47 +1134,46 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1137
1134
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1138
1135
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1139
1136
|
"stroke-linecap": "round"
|
|
1140
|
-
}, null, 8,
|
|
1137
|
+
}, null, 8, ut))), 256))])) : p("", !0)
|
|
1141
1138
|
])) : p("", !0),
|
|
1142
1139
|
h("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1143
1140
|
key: 0,
|
|
1144
1141
|
ref_key: "yAxisLabel",
|
|
1145
|
-
ref:
|
|
1142
|
+
ref: un,
|
|
1146
1143
|
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1147
1144
|
fill: R.value.style.chart.layout.grid.axis.color,
|
|
1148
1145
|
transform: `translate(${W.value ? G.value.absoluteWidth - R.value.style.chart.layout.grid.axis.fontSize / 2 - R.value.style.chart.layout.grid.axis.yLabelOffsetX : R.value.style.chart.layout.grid.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1149
1146
|
"text-anchor": "middle",
|
|
1150
1147
|
style: { transition: "none" }
|
|
1151
|
-
}, T(R.value.style.chart.layout.grid.axis.yLabel), 9,
|
|
1148
|
+
}, T(R.value.style.chart.layout.grid.axis.yLabel), 9, dt)) : p("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1152
1149
|
key: 1,
|
|
1153
1150
|
ref_key: "xAxisLabel",
|
|
1154
|
-
ref:
|
|
1151
|
+
ref: ln,
|
|
1155
1152
|
"text-anchor": "middle",
|
|
1156
1153
|
x: G.value.absoluteWidth / 2,
|
|
1157
1154
|
y: G.value.absoluteHeight - 3,
|
|
1158
1155
|
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1159
1156
|
fill: R.value.style.chart.layout.grid.axis.color
|
|
1160
|
-
}, T(R.value.style.chart.layout.grid.axis.xLabel), 9,
|
|
1157
|
+
}, T(R.value.style.chart.layout.grid.axis.xLabel), 9, ft)) : p("", !0)]),
|
|
1161
1158
|
R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1162
1159
|
key: 2,
|
|
1163
1160
|
ref_key: "scaleLabels",
|
|
1164
|
-
ref:
|
|
1161
|
+
ref: sn,
|
|
1165
1162
|
class: v({
|
|
1166
1163
|
"donut-opacity": !0,
|
|
1167
1164
|
"donut-behind": j.value !== null
|
|
1168
1165
|
})
|
|
1169
|
-
}, [(x(!0), m(u, null, C(
|
|
1166
|
+
}, [(x(!0), m(u, null, C(nr.value, (e, t) => (x(), m("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("path", {
|
|
1170
1167
|
key: 0,
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
y1: e.y,
|
|
1174
|
-
y2: e.y,
|
|
1168
|
+
class: v({ "vue-data-ui-datalabel": E(Qt) }),
|
|
1169
|
+
d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 5 : G.value.left - 5},${e.y}`,
|
|
1175
1170
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1176
|
-
"stroke-width": R.value.style.chart.layout.grid.strokeWidth
|
|
1177
|
-
|
|
1171
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1172
|
+
"stroke-linecap": "round"
|
|
1173
|
+
}, null, 10, pt)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
|
|
1178
1174
|
key: 1,
|
|
1179
|
-
|
|
1180
|
-
|
|
1175
|
+
class: v({ "vue-data-ui-datalabel": E(Qt) }),
|
|
1176
|
+
transform: `translate(${W.value ? G.value.right - R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : G.value.left + R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7}, ${e.y + R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3})`,
|
|
1181
1177
|
"font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1182
1178
|
"text-anchor": W.value ? "start" : "end",
|
|
1183
1179
|
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
@@ -1190,13 +1186,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1190
1186
|
}), {
|
|
1191
1187
|
datapoint: e,
|
|
1192
1188
|
seriesIndex: t
|
|
1193
|
-
}) : ""),
|
|
1189
|
+
}) : ""), 11, mt)) : p("", !0)]))), 128))], 2)) : p("", !0),
|
|
1194
1190
|
R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1195
1191
|
key: 3,
|
|
1196
1192
|
ref_key: "timeLabelsEls",
|
|
1197
|
-
ref:
|
|
1193
|
+
ref: cn,
|
|
1198
1194
|
class: v({ "donut-opacity": !0 })
|
|
1199
|
-
}, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), m("g",
|
|
1195
|
+
}, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), m("g", ht, [String(J.value[t].text).includes("\n") ? (x(), m("text", {
|
|
1200
1196
|
key: 1,
|
|
1201
1197
|
class: "vue-data-ui-time-label",
|
|
1202
1198
|
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1210,14 +1206,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1210
1206
|
x: 0,
|
|
1211
1207
|
y: 0
|
|
1212
1208
|
})
|
|
1213
|
-
}, null, 8,
|
|
1209
|
+
}, null, 8, _t)) : (x(), m("text", {
|
|
1214
1210
|
key: 0,
|
|
1215
1211
|
class: "vue-data-ui-time-label",
|
|
1216
1212
|
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1217
1213
|
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1218
1214
|
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1219
1215
|
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1220
|
-
}, T(J.value[t].text || ""), 9,
|
|
1216
|
+
}, T(J.value[t].text || ""), 9, gt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1221
1217
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1222
1218
|
key: 0,
|
|
1223
1219
|
class: v({
|
|
@@ -1232,18 +1228,18 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1232
1228
|
"stroke-width": R.value.style.chart.layout.line.strokeWidth,
|
|
1233
1229
|
"stroke-linecap": "round",
|
|
1234
1230
|
"stroke-linejoin": "round"
|
|
1235
|
-
}, null, 10,
|
|
1231
|
+
}, null, 10, vt)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", yt, [e.subtotal ? (x(), m("circle", {
|
|
1236
1232
|
key: 0,
|
|
1237
1233
|
cx: e.x,
|
|
1238
1234
|
cy: e.y,
|
|
1239
1235
|
r: e.activeRadius,
|
|
1240
1236
|
fill: R.value.style.chart.backgroundColor
|
|
1241
|
-
}, null, 8,
|
|
1237
|
+
}, null, 8, bt)) : p("", !0)]))]))), 256)),
|
|
1242
1238
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1243
1239
|
"donut-opacity": !0,
|
|
1244
1240
|
"donut-behind": t !== j.value && j.value !== null
|
|
1245
|
-
}) }, [e.subtotal ? (x(), m("g",
|
|
1246
|
-
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [
|
|
1241
|
+
}) }, [e.subtotal ? (x(), m("g", xt, [j.value !== null && j.value === t ? (x(), m("g", St, [
|
|
1242
|
+
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Cr(t) ? (x(), m("path", {
|
|
1247
1243
|
key: 0,
|
|
1248
1244
|
d: E(de)(t, {
|
|
1249
1245
|
x: t.center.endX,
|
|
@@ -1257,8 +1253,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1257
1253
|
"stroke-linecap": "round",
|
|
1258
1254
|
"stroke-linejoin": "round",
|
|
1259
1255
|
fill: "none"
|
|
1260
|
-
}, null, 8,
|
|
1261
|
-
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [
|
|
1256
|
+
}, null, 8, Ct)) : p("", !0)]))), 256)),
|
|
1257
|
+
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Cr(t) ? (x(), m("text", {
|
|
1262
1258
|
key: 0,
|
|
1263
1259
|
"data-cy-hover-label": "",
|
|
1264
1260
|
"text-anchor": E(ae)(t, !0, 0).anchor,
|
|
@@ -1267,37 +1263,37 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1267
1263
|
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1268
1264
|
"font-size": 8,
|
|
1269
1265
|
"font-weight": "bold"
|
|
1270
|
-
}, T(t.name) + ": " + T(
|
|
1266
|
+
}, T(t.name) + ": " + T(ir(t, e.donut)) + " (" + T(t.value === null ? "-" : rr(t.value, t, n)) + ") ", 9, wt)) : p("", !0)]))), 256)),
|
|
1271
1267
|
h("g", null, [h("circle", {
|
|
1272
1268
|
cx: e.x,
|
|
1273
1269
|
cy: e.y,
|
|
1274
1270
|
r: e.hoverRadius,
|
|
1275
1271
|
fill: R.value.style.chart.backgroundColor
|
|
1276
|
-
}, null, 8,
|
|
1272
|
+
}, null, 8, Tt)])
|
|
1277
1273
|
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1278
1274
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1279
1275
|
"donut-opacity": !0,
|
|
1280
1276
|
"donut-behind": t !== j.value && j.value !== null
|
|
1281
|
-
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g",
|
|
1277
|
+
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g", Et, [e.subtotal === 0 ? (x(), m("circle", {
|
|
1282
1278
|
key: 0,
|
|
1283
1279
|
cx: e.x,
|
|
1284
1280
|
cy: e.y,
|
|
1285
1281
|
r: 3,
|
|
1286
1282
|
fill: R.value.style.chart.color
|
|
1287
|
-
}, null, 8,
|
|
1283
|
+
}, null, 8, Dt)) : j.value !== null && j.value === t ? (x(), m("g", Ot, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1288
1284
|
d: e.arcSlice,
|
|
1289
1285
|
fill: `${e.color}`,
|
|
1290
1286
|
"stroke-width": 1,
|
|
1291
1287
|
stroke: R.value.style.chart.backgroundColor
|
|
1292
|
-
}, null, 8,
|
|
1288
|
+
}, null, 8, kt))), 256))])) : (x(), m("g", At, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1293
1289
|
d: e.arcSlice,
|
|
1294
1290
|
fill: `${e.color}`,
|
|
1295
1291
|
"stroke-width": .5,
|
|
1296
1292
|
stroke: R.value.style.chart.backgroundColor
|
|
1297
|
-
}, null, 8,
|
|
1293
|
+
}, null, 8, jt))), 256))]))]))], 2))), 256)),
|
|
1298
1294
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1299
1295
|
"donut-opacity": !0,
|
|
1300
|
-
"donut-behind": t !== j.value && j.value !== null ||
|
|
1296
|
+
"donut-behind": t !== j.value && j.value !== null || $t.value && t !== N.value.index
|
|
1301
1297
|
}) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1302
1298
|
key: 0,
|
|
1303
1299
|
"text-anchor": "middle",
|
|
@@ -1306,16 +1302,16 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1306
1302
|
"font-size": R.value.style.chart.layout.dataLabels.fontSize,
|
|
1307
1303
|
"font-weight": "bold",
|
|
1308
1304
|
fill: R.value.style.chart.layout.dataLabels.color
|
|
1309
|
-
}, T(
|
|
1305
|
+
}, T(rr(e.subtotal, e, t)), 9, Mt)) : p("", !0)], 2))), 256)),
|
|
1310
1306
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1311
1307
|
x: G.value.left + t * Y.value,
|
|
1312
1308
|
y: G.value.top,
|
|
1313
1309
|
width: Y.value,
|
|
1314
1310
|
height: G.value.height,
|
|
1315
|
-
fill: [j.value,
|
|
1316
|
-
class: v({ "donut-hover": z.value && e.subtotal && [j.value,
|
|
1311
|
+
fill: [j.value, sr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1312
|
+
class: v({ "donut-hover": z.value && e.subtotal && [j.value, sr.value].includes(e.index) }),
|
|
1317
1313
|
style: { pointerEvents: "none" }
|
|
1318
|
-
}, null, 10,
|
|
1314
|
+
}, null, 10, Nt))), 256)),
|
|
1319
1315
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1320
1316
|
"data-cy-trap": "",
|
|
1321
1317
|
x: G.value.left + t * Y.value,
|
|
@@ -1323,30 +1319,30 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1323
1319
|
width: Y.value,
|
|
1324
1320
|
height: G.value.height,
|
|
1325
1321
|
fill: "transparent",
|
|
1326
|
-
onMouseenter: (t) =>
|
|
1327
|
-
onMouseleave: (t) =>
|
|
1328
|
-
onClick: (n) =>
|
|
1322
|
+
onMouseenter: (t) => or(e),
|
|
1323
|
+
onMouseleave: (t) => ar(e),
|
|
1324
|
+
onClick: (n) => cr(e, t),
|
|
1329
1325
|
class: v({ "donut-hover": z.value && j.value === e.index && e.subtotal })
|
|
1330
|
-
}, null, 42,
|
|
1326
|
+
}, null, 42, Pt))), 256)),
|
|
1331
1327
|
w(e.$slots, "svg", { svg: {
|
|
1332
1328
|
...G.value,
|
|
1333
|
-
isPrintingImg: E(
|
|
1334
|
-
isPrintingSvg:
|
|
1329
|
+
isPrintingImg: E(Vn) || E(Hn) || pn.value,
|
|
1330
|
+
isPrintingSvg: mn.value
|
|
1335
1331
|
} }, void 0, !0)
|
|
1336
|
-
], 46,
|
|
1332
|
+
], 46, it)), e.$slots.hint ? (x(), m("div", Ft, [w(e.$slots, "hint", y(_({
|
|
1337
1333
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1338
|
-
isVisible:
|
|
1334
|
+
isVisible: Cn.value
|
|
1339
1335
|
})), void 0, !0)])) : p("", !0)]),
|
|
1340
|
-
e.$slots.watermark ? (x(), m("div",
|
|
1336
|
+
e.$slots.watermark ? (x(), m("div", It, [w(e.$slots, "watermark", y(_({ isPrinting: E(Vn) || E(Hn) || pn.value || mn.value })), void 0, !0)])) : p("", !0),
|
|
1341
1337
|
h("div", {
|
|
1342
1338
|
ref_key: "chartSlicer",
|
|
1343
|
-
ref:
|
|
1339
|
+
ref: yn,
|
|
1344
1340
|
style: b(`width:100%;background:${R.value.style.chart.backgroundColor}`),
|
|
1345
1341
|
"data-dom-to-png-ignore": ""
|
|
1346
|
-
}, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(
|
|
1342
|
+
}, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(ze, {
|
|
1347
1343
|
ref_key: "slicerComponent",
|
|
1348
|
-
ref:
|
|
1349
|
-
key: `slicer_${
|
|
1344
|
+
ref: vn,
|
|
1345
|
+
key: `slicer_${nn.value}`,
|
|
1350
1346
|
background: R.value.style.chart.zoom.color,
|
|
1351
1347
|
borderColor: R.value.style.chart.backgroundColor,
|
|
1352
1348
|
fontSize: R.value.style.chart.zoom.fontSize,
|
|
@@ -1372,7 +1368,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1372
1368
|
focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
|
|
1373
1369
|
isCursorPointer: z.value,
|
|
1374
1370
|
maxWidth: R.value.style.chart.zoom.maxWidth,
|
|
1375
|
-
onReset:
|
|
1371
|
+
onReset: Nn
|
|
1376
1372
|
}, {
|
|
1377
1373
|
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1378
1374
|
_: 3
|
|
@@ -1400,30 +1396,30 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1400
1396
|
"isCursorPointer",
|
|
1401
1397
|
"maxWidth"
|
|
1402
1398
|
])) : p("", !0)], 4),
|
|
1403
|
-
h("div", { id: `legend-bottom-${k.value}` }, null, 8,
|
|
1404
|
-
|
|
1399
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Lt),
|
|
1400
|
+
dn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Be, {
|
|
1405
1401
|
key: 6,
|
|
1406
1402
|
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1407
1403
|
}, [h("div", {
|
|
1408
1404
|
ref_key: "chartLegend",
|
|
1409
|
-
ref:
|
|
1410
|
-
}, [w(e.$slots, "legend", { legend:
|
|
1411
|
-
key: `legend_${
|
|
1412
|
-
legendSet:
|
|
1413
|
-
config:
|
|
1414
|
-
onClickMarker: t[2] ||= ({ legend: e }) =>
|
|
1405
|
+
ref: gn
|
|
1406
|
+
}, [w(e.$slots, "legend", { legend: lr.value }, () => [R.value.style.chart.legend.show ? (x(), f(Le, {
|
|
1407
|
+
key: `legend_${on.value}`,
|
|
1408
|
+
legendSet: lr.value,
|
|
1409
|
+
config: dr.value,
|
|
1410
|
+
onClickMarker: t[2] ||= ({ legend: e }) => pr(e.uid)
|
|
1415
1411
|
}, {
|
|
1416
1412
|
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1417
|
-
onClick: (t) =>
|
|
1413
|
+
onClick: (t) => pr(e.uid),
|
|
1418
1414
|
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1419
|
-
}, T(e.display), 13,
|
|
1420
|
-
legendToggle: D(() => [
|
|
1415
|
+
}, T(e.display), 13, Rt)]),
|
|
1416
|
+
legendToggle: D(() => [lr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(kn) ? (x(), f(Ne, {
|
|
1421
1417
|
key: 0,
|
|
1422
1418
|
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1423
1419
|
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1424
1420
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
1425
1421
|
checked: A.value.length > 0,
|
|
1426
|
-
onToggle:
|
|
1422
|
+
onToggle: fr
|
|
1427
1423
|
}, null, 8, [
|
|
1428
1424
|
"backgroundColor",
|
|
1429
1425
|
"color",
|
|
@@ -1435,27 +1431,27 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1435
1431
|
e.$slots.source ? (x(), m("div", {
|
|
1436
1432
|
key: 7,
|
|
1437
1433
|
ref_key: "source",
|
|
1438
|
-
ref:
|
|
1434
|
+
ref: _n,
|
|
1439
1435
|
dir: "auto"
|
|
1440
1436
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1441
|
-
|
|
1437
|
+
Tn.value && R.value.userOptions.buttons.table ? (x(), f(Je(kr.value.component), We({ key: 8 }, kr.value.props, {
|
|
1442
1438
|
ref_key: "tableUnit",
|
|
1443
1439
|
ref: F,
|
|
1444
|
-
onClose:
|
|
1445
|
-
}),
|
|
1446
|
-
content: D(() => [(x(), f(E(
|
|
1447
|
-
key: `table_${
|
|
1440
|
+
onClose: Ar
|
|
1441
|
+
}), Ve({
|
|
1442
|
+
content: D(() => [(x(), f(E(Ut), {
|
|
1443
|
+
key: `table_${an.value}`,
|
|
1448
1444
|
colNames: Q.value.colNames,
|
|
1449
1445
|
head: Q.value.head,
|
|
1450
1446
|
body: Q.value.body,
|
|
1451
1447
|
config: Q.value.config,
|
|
1452
|
-
title: R.value.table.useDialog ? "" :
|
|
1448
|
+
title: R.value.table.useDialog ? "" : kr.value.title,
|
|
1453
1449
|
withCloseButton: !R.value.table.useDialog,
|
|
1454
1450
|
isCursorPointer: z.value,
|
|
1455
|
-
onClose:
|
|
1451
|
+
onClose: Ar
|
|
1456
1452
|
}, {
|
|
1457
|
-
th: D(({ th: e }) => [
|
|
1458
|
-
td: D(({ td: e }) => [e.value === null ? (x(), m("span",
|
|
1453
|
+
th: D(({ th: e }) => [He(T(e.name ?? e), 1)]),
|
|
1454
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", zt, "-")) : (x(), m("b", Bt, T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1459
1455
|
_: 1
|
|
1460
1456
|
}, 8, [
|
|
1461
1457
|
"colNames",
|
|
@@ -1469,27 +1465,27 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1469
1465
|
_: 2
|
|
1470
1466
|
}, [R.value.table.useDialog ? {
|
|
1471
1467
|
name: "title",
|
|
1472
|
-
fn: D(() => [
|
|
1468
|
+
fn: D(() => [He(T(kr.value.title), 1)]),
|
|
1473
1469
|
key: "0"
|
|
1474
1470
|
} : void 0, R.value.table.useDialog ? {
|
|
1475
1471
|
name: "actions",
|
|
1476
1472
|
fn: D(() => [h("button", {
|
|
1477
1473
|
tabindex: "0",
|
|
1478
1474
|
class: "vue-ui-user-options-button",
|
|
1479
|
-
onClick: t[3] ||= (e) =>
|
|
1475
|
+
onClick: t[3] ||= (e) => vr(R.value.userOptions.callbacks.csv),
|
|
1480
1476
|
style: b({ cursor: z.value ? "cursor" : "default" })
|
|
1481
|
-
}, [
|
|
1477
|
+
}, [Ue(E(Ht), {
|
|
1482
1478
|
name: "fileCsv",
|
|
1483
|
-
stroke:
|
|
1479
|
+
stroke: kr.value.props.color
|
|
1484
1480
|
}, null, 8, ["stroke"])], 4)]),
|
|
1485
1481
|
key: "1"
|
|
1486
1482
|
} : void 0]), 1040)) : p("", !0),
|
|
1487
|
-
R.value.style.chart.dialog.show ? (x(), f(E(
|
|
1483
|
+
R.value.style.chart.dialog.show ? (x(), f(E(Jt), {
|
|
1488
1484
|
key: 9,
|
|
1489
1485
|
ref_key: "dialog",
|
|
1490
|
-
ref:
|
|
1486
|
+
ref: Er,
|
|
1491
1487
|
onClose: t[4] ||= (e) => {
|
|
1492
|
-
N.value = null,
|
|
1488
|
+
N.value = null, $t.value = !1, M.value = null, j.value = null, sr.value = null;
|
|
1493
1489
|
},
|
|
1494
1490
|
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1495
1491
|
color: R.value.style.chart.dialog.color,
|
|
@@ -1498,11 +1494,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1498
1494
|
isFullscreen: $.value,
|
|
1499
1495
|
fullscreenParent: P.value
|
|
1500
1496
|
}, {
|
|
1501
|
-
title: D(() => [
|
|
1502
|
-
content: D(() => [N.value ? (x(), f(E(
|
|
1497
|
+
title: D(() => [He(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
|
|
1498
|
+
content: D(() => [N.value ? (x(), f(E(qt), {
|
|
1503
1499
|
key: 0,
|
|
1504
|
-
config:
|
|
1505
|
-
dataset:
|
|
1500
|
+
config: Tr.value,
|
|
1501
|
+
dataset: wr.value
|
|
1506
1502
|
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1507
1503
|
_: 1
|
|
1508
1504
|
}, 8, [
|
|
@@ -1513,9 +1509,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1513
1509
|
"isFullscreen",
|
|
1514
1510
|
"fullscreenParent"
|
|
1515
1511
|
])) : p("", !0),
|
|
1516
|
-
E(
|
|
1517
|
-
], 46,
|
|
1512
|
+
E(kn) ? (x(), f(xe, { key: 10 })) : p("", !0)
|
|
1513
|
+
], 46, et));
|
|
1518
1514
|
}
|
|
1519
|
-
}, [["__scopeId", "data-v-
|
|
1515
|
+
}, [["__scopeId", "data-v-344b2cc9"]]);
|
|
1520
1516
|
//#endregion
|
|
1521
|
-
export {
|
|
1517
|
+
export { $e as n, Vt as t };
|