vue-data-ui 2.12.6 → 2.12.7-beta.0
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/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import { computed as h, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import lt from "./vue-ui-accordion-BUz4JIIX.js";
|
|
10
|
-
import { u as me } from "./useNestedProp-v7KPpwuP.js";
|
|
11
|
-
import { _ as at } from "./PackageVersion-BjrblLPQ.js";
|
|
12
|
-
import { _ as ot } from "./PenAndPaper-BkP3J-Ft.js";
|
|
13
|
-
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
|
-
import { u as rt } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const nt = ["id"], it = {
|
|
1
|
+
import { defineAsyncComponent as m, computed as h, onMounted as He, ref as n, watch as Re, createElementBlock as i, openBlock as s, unref as a, normalizeStyle as V, normalizeClass as E, createBlock as x, createCommentVNode as c, renderSlot as v, createVNode as ve, createSlots as Ue, withCtx as d, normalizeProps as _, guardReactiveProps as O, createElementVNode as P, Fragment as de, renderList as he, createTextVNode as pe, toDisplayString as M, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as je, o as Ye, e as ye, g as qe, c as ge, t as Je, p as B, a as Ke, b as Qe, H as fe, d as Ze, L as et, f as C, X as tt, i as be, x as me, q as lt, r as ot, y as at } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as ke } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { u as st } from "./usePrinter-CRCbl1WG.js";
|
|
5
|
+
import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const it = ["id"], ct = {
|
|
17
9
|
key: 1,
|
|
18
10
|
ref: "noTitle",
|
|
19
11
|
class: "vue-data-ui-no-title-space",
|
|
20
12
|
style: "height:36px; width: 100%;background:transparent"
|
|
21
|
-
},
|
|
13
|
+
}, vt = {
|
|
22
14
|
key: 2,
|
|
23
15
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
24
|
-
},
|
|
16
|
+
}, dt = ["xmlns", "viewBox"], ht = ["width", "height"], pt = ["id"], yt = ["stdDeviation"], gt = ["d", "stroke", "stroke-width"], ft = ["d", "stroke", "stroke-width"], bt = ["filter"], mt = ["d", "stroke", "stroke-width"], kt = ["d", "stroke-width", "onMouseenter", "onClick"], Ct = {
|
|
25
17
|
key: 5,
|
|
26
18
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
19
|
+
}, wt = ["onClick"], $t = { key: 0 }, xt = { key: 1 }, Tt = {
|
|
28
20
|
key: 8,
|
|
29
21
|
ref: "source",
|
|
30
22
|
dir: "auto"
|
|
31
|
-
}, _t = ["innerHTML"],
|
|
23
|
+
}, _t = ["innerHTML"], Ot = {
|
|
32
24
|
__name: "vue-ui-galaxy",
|
|
33
25
|
props: {
|
|
34
26
|
config: {
|
|
@@ -45,192 +37,192 @@ const nt = ["id"], it = {
|
|
|
45
37
|
}
|
|
46
38
|
},
|
|
47
39
|
emits: ["selectLegend", "selectDatapoint"],
|
|
48
|
-
setup(
|
|
49
|
-
const { vue_ui_galaxy:
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
setup(Ce, { expose: we, emit: $e }) {
|
|
41
|
+
const xe = m(() => import("./vue-ui-accordion-CmCs2yR2.js")), Te = m(() => import("./DataTable-Cv9CIz-a.js")), _e = m(() => import("./Legend-DFunFf8i.js")), Oe = m(() => import("./PackageVersion-CLY-udAA.js")), Pe = m(() => import("./PenAndPaper-B9na2mbr.js")), Se = m(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ne = m(() => import("./Title-B5qqUI3M.js")), Le = m(() => import("./Tooltip-C9rxJ-Ru.js")), Ie = m(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_galaxy: Ae } = je(), g = Ce, I = h(() => !!g.dataset && g.dataset.length);
|
|
42
|
+
He(() => {
|
|
43
|
+
X();
|
|
52
44
|
});
|
|
53
|
-
function
|
|
54
|
-
|
|
45
|
+
function X() {
|
|
46
|
+
Ye(g.dataset) ? ye({
|
|
55
47
|
componentName: "VueUiGalaxy",
|
|
56
48
|
type: "dataset"
|
|
57
|
-
}) :
|
|
58
|
-
|
|
49
|
+
}) : g.dataset.forEach((t, o) => {
|
|
50
|
+
qe({
|
|
59
51
|
datasetObject: t,
|
|
60
52
|
requiredAttributes: ["name", "values"]
|
|
61
53
|
}).forEach((l) => {
|
|
62
|
-
|
|
54
|
+
ye({
|
|
63
55
|
componentName: "VueUiGalaxy",
|
|
64
56
|
type: "datasetSerieAttribute",
|
|
65
57
|
property: l,
|
|
66
|
-
index:
|
|
58
|
+
index: o
|
|
67
59
|
});
|
|
68
60
|
});
|
|
69
61
|
});
|
|
70
62
|
}
|
|
71
|
-
const S = n(
|
|
72
|
-
get: () =>
|
|
63
|
+
const S = n(ge()), D = n(null), Fe = n(null), G = n(!1), z = n(""), f = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = h({
|
|
64
|
+
get: () => ee(),
|
|
73
65
|
set: (t) => t
|
|
74
|
-
}), { userOptionsVisible:
|
|
75
|
-
function
|
|
76
|
-
const t =
|
|
77
|
-
userConfig:
|
|
78
|
-
defaultConfig:
|
|
66
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: K, keepUserOptionState: Q } = rt({ config: e.value }), { svgRef: Z } = ut({ config: e.value.style.chart.title });
|
|
67
|
+
function ee() {
|
|
68
|
+
const t = ke({
|
|
69
|
+
userConfig: g.config,
|
|
70
|
+
defaultConfig: Ae
|
|
79
71
|
});
|
|
80
72
|
return t.theme ? {
|
|
81
|
-
...
|
|
82
|
-
userConfig:
|
|
73
|
+
...ke({
|
|
74
|
+
userConfig: Ke.vue_ui_galaxy[t.theme] || g.config,
|
|
83
75
|
defaultConfig: t
|
|
84
76
|
}),
|
|
85
|
-
customPalette:
|
|
77
|
+
customPalette: Je[t.theme] || B
|
|
86
78
|
} : t;
|
|
87
79
|
}
|
|
88
|
-
|
|
89
|
-
e.value =
|
|
80
|
+
Re(() => g.config, (t) => {
|
|
81
|
+
e.value = ee(), W.value = !e.value.userOptions.showOnChartHover, X(), Y.value += 1, q.value += 1, J.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
90
82
|
}, { deep: !0 });
|
|
91
|
-
const { isPrinting:
|
|
83
|
+
const { isPrinting: te, isImaging: le, generatePdf: oe, generateImage: ae } = st({
|
|
92
84
|
elementId: `galaxy_${S.value}`,
|
|
93
85
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
94
86
|
options: e.value.userOptions.print
|
|
95
|
-
}),
|
|
87
|
+
}), Ve = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = h(() => Qe(e.value.customPalette)), p = n({
|
|
96
88
|
dataLabels: {
|
|
97
89
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
98
90
|
},
|
|
99
91
|
showTable: e.value.table.show,
|
|
100
92
|
showTooltip: e.value.style.chart.tooltip.show
|
|
101
|
-
}),
|
|
93
|
+
}), N = n({
|
|
102
94
|
height: 180,
|
|
103
95
|
// or 250 if non fibo
|
|
104
96
|
width: 250
|
|
105
|
-
}),
|
|
106
|
-
function
|
|
107
|
-
y.value.includes(t.id) ? y.value = y.value.filter((
|
|
108
|
-
name:
|
|
109
|
-
color:
|
|
110
|
-
value:
|
|
97
|
+
}), se = $e, y = n([]);
|
|
98
|
+
function H(t) {
|
|
99
|
+
y.value.includes(t.id) ? y.value = y.value.filter((o) => o !== t.id) : y.value.push(t.id), se("selectLegend", L.value.map((o) => ({
|
|
100
|
+
name: o.name,
|
|
101
|
+
color: o.color,
|
|
102
|
+
value: o.value
|
|
111
103
|
})));
|
|
112
104
|
}
|
|
113
|
-
const
|
|
105
|
+
const w = h(() => g.dataset.map((t, o) => ({
|
|
114
106
|
name: t.name,
|
|
115
|
-
color:
|
|
116
|
-
value: t.values ? fe(t.values).reduce((l,
|
|
107
|
+
color: Ze(t.color) || Ee.value[o] || B[o] || B[o % B.length],
|
|
108
|
+
value: t.values ? fe(t.values).reduce((l, r) => l + r, 0) : 0,
|
|
117
109
|
absoluteValues: fe(t.values),
|
|
118
|
-
id:
|
|
119
|
-
seriesIndex:
|
|
120
|
-
})).sort((t,
|
|
121
|
-
function
|
|
122
|
-
return
|
|
110
|
+
id: ge(),
|
|
111
|
+
seriesIndex: o
|
|
112
|
+
})).sort((t, o) => o.value - t.value));
|
|
113
|
+
function Me() {
|
|
114
|
+
return w.value.map((t) => ({
|
|
123
115
|
name: t.name,
|
|
124
116
|
color: t.color,
|
|
125
117
|
value: t.value
|
|
126
118
|
}));
|
|
127
119
|
}
|
|
128
|
-
const b = h(() =>
|
|
120
|
+
const b = h(() => w.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, o) => t + o, 0)), Be = n(190), re = h(() => w.value.filter((t) => !y.value.includes(t.id))), L = h(() => {
|
|
129
121
|
const t = [];
|
|
130
|
-
for (let
|
|
131
|
-
const l =
|
|
132
|
-
let
|
|
133
|
-
|
|
134
|
-
points:
|
|
122
|
+
for (let o = 0; o < re.value.length; o += 1) {
|
|
123
|
+
const l = re.value[o];
|
|
124
|
+
let r = l.value / b.value * Be.value;
|
|
125
|
+
o > 0 && t.length && (r += t[o - 1].points), t.push({
|
|
126
|
+
points: r,
|
|
135
127
|
...l,
|
|
136
|
-
seriesIndex:
|
|
128
|
+
seriesIndex: o,
|
|
137
129
|
proportion: l.value / b.value,
|
|
138
|
-
path:
|
|
139
|
-
points:
|
|
130
|
+
path: et({
|
|
131
|
+
points: r,
|
|
140
132
|
startX: 115 + e.value.style.chart.layout.arcs.offsetX,
|
|
141
133
|
startY: 90 + e.value.style.chart.layout.arcs.offsetY
|
|
142
134
|
})
|
|
143
135
|
});
|
|
144
136
|
}
|
|
145
|
-
return t.filter((
|
|
146
|
-
}),
|
|
147
|
-
function
|
|
148
|
-
|
|
137
|
+
return t.filter((o, l) => !y.value.includes(o.id)).toSorted((o, l) => l.points - o.points);
|
|
138
|
+
}), T = n(!1);
|
|
139
|
+
function De(t) {
|
|
140
|
+
T.value = t, j.value += 1;
|
|
149
141
|
}
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
|
|
142
|
+
const R = n(null);
|
|
143
|
+
function Ge({ datapoint: t, _relativeIndex: o, seriesIndex: l, show: r = !1 }) {
|
|
144
|
+
R.value = {
|
|
153
145
|
datapoint: t,
|
|
154
146
|
seriesIndex: l,
|
|
155
|
-
series:
|
|
147
|
+
series: w.value,
|
|
156
148
|
config: e.value
|
|
157
|
-
},
|
|
158
|
-
let
|
|
159
|
-
const
|
|
160
|
-
|
|
149
|
+
}, G.value = r, f.value = t.id;
|
|
150
|
+
let u = "";
|
|
151
|
+
const $ = e.value.style.chart.tooltip.customFormat;
|
|
152
|
+
me($) && at(() => $({
|
|
161
153
|
seriesIndex: l,
|
|
162
154
|
datapoint: t,
|
|
163
|
-
series:
|
|
155
|
+
series: w.value,
|
|
164
156
|
config: e.value
|
|
165
|
-
})) ?
|
|
157
|
+
})) ? z.value = $({
|
|
166
158
|
seriesIndex: l,
|
|
167
159
|
datapoint: t,
|
|
168
|
-
series:
|
|
160
|
+
series: w.value,
|
|
169
161
|
config: e.value
|
|
170
|
-
}) : (
|
|
162
|
+
}) : (u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${be(
|
|
171
163
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
172
164
|
t.value,
|
|
173
|
-
|
|
165
|
+
C({
|
|
174
166
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
175
167
|
v: t.value,
|
|
176
168
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
177
169
|
r: e.value.style.chart.tooltip.roundingValue
|
|
178
170
|
}),
|
|
179
171
|
{ datapoint: t, seriesIndex: l }
|
|
180
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
172
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${C({
|
|
181
173
|
v: t.proportion * 100,
|
|
182
174
|
s: "%",
|
|
183
175
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
184
|
-
})})</span></div>` :
|
|
176
|
+
})})</span></div>` : u += `<b>${C({
|
|
185
177
|
v: t.proportion * 100,
|
|
186
178
|
s: "%",
|
|
187
179
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
188
|
-
})}</b></div>`),
|
|
180
|
+
})}</b></div>`), z.value = `<div>${u}</div>`);
|
|
189
181
|
}
|
|
190
|
-
const
|
|
182
|
+
const ue = h(() => w.value.map((t, o) => ({
|
|
191
183
|
...t,
|
|
192
|
-
proportion: (t.value || 0) /
|
|
184
|
+
proportion: (t.value || 0) / g.dataset.map((l) => (l.values || []).reduce((r, u) => r + u, 0)).reduce((l, r) => l + r, 0),
|
|
193
185
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
194
186
|
shape: t.shape || "circle",
|
|
195
|
-
segregate: () =>
|
|
187
|
+
segregate: () => H(t),
|
|
196
188
|
isSegregated: y.value.includes(t.id)
|
|
197
|
-
}))),
|
|
189
|
+
}))), ze = h(() => ({
|
|
198
190
|
cy: "galaxy-div-legend",
|
|
199
191
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
200
192
|
color: e.value.style.chart.legend.color,
|
|
201
193
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
202
194
|
paddingBottom: 12,
|
|
203
195
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
204
|
-
})),
|
|
196
|
+
})), k = h(() => {
|
|
205
197
|
const t = L.value.map((l) => ({
|
|
206
198
|
name: l.name,
|
|
207
199
|
color: l.color
|
|
208
|
-
})),
|
|
209
|
-
return { head: t, body:
|
|
200
|
+
})), o = L.value.map((l) => l.value);
|
|
201
|
+
return { head: t, body: o };
|
|
210
202
|
});
|
|
211
|
-
function
|
|
212
|
-
|
|
213
|
-
const t =
|
|
214
|
-
|
|
215
|
-
], [
|
|
216
|
-
|
|
203
|
+
function ne() {
|
|
204
|
+
Xe(() => {
|
|
205
|
+
const t = k.value.head.map((r, u) => [[
|
|
206
|
+
r.name
|
|
207
|
+
], [k.value.body[u]], [isNaN(k.value.body[u] / b.value) ? "-" : k.value.body[u] / b.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = lt(o);
|
|
208
|
+
ot({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
217
209
|
});
|
|
218
210
|
}
|
|
219
|
-
const
|
|
211
|
+
const A = h(() => {
|
|
220
212
|
const t = [
|
|
221
213
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
222
|
-
|
|
214
|
+
C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
223
215
|
"100%"
|
|
224
|
-
],
|
|
225
|
-
const
|
|
216
|
+
], o = k.value.head.map((u, $) => {
|
|
217
|
+
const We = C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: k.value.body[$], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
226
218
|
return [
|
|
227
219
|
{
|
|
228
|
-
color:
|
|
229
|
-
name:
|
|
220
|
+
color: u.color,
|
|
221
|
+
name: u.name
|
|
230
222
|
},
|
|
231
|
-
|
|
232
|
-
isNaN(
|
|
233
|
-
v:
|
|
223
|
+
We,
|
|
224
|
+
isNaN(k.value.body[$] / b.value) ? "-" : C({
|
|
225
|
+
v: k.value.body[$] / b.value * 100,
|
|
234
226
|
s: "%",
|
|
235
227
|
r: e.value.table.td.roundingPercentage
|
|
236
228
|
})
|
|
@@ -255,49 +247,49 @@ const nt = ["id"], it = {
|
|
|
255
247
|
e.value.table.columnNames.percentage
|
|
256
248
|
],
|
|
257
249
|
head: t,
|
|
258
|
-
body:
|
|
250
|
+
body: o,
|
|
259
251
|
config: l
|
|
260
252
|
};
|
|
261
253
|
});
|
|
262
|
-
function
|
|
254
|
+
function ie() {
|
|
263
255
|
p.value.showTable = !p.value.showTable;
|
|
264
256
|
}
|
|
265
|
-
function
|
|
257
|
+
function ce() {
|
|
266
258
|
p.value.showTooltip = !p.value.showTooltip;
|
|
267
259
|
}
|
|
268
260
|
const F = n(!1);
|
|
269
|
-
function
|
|
261
|
+
function U() {
|
|
270
262
|
F.value = !F.value;
|
|
271
263
|
}
|
|
272
|
-
return
|
|
273
|
-
getData:
|
|
274
|
-
generatePdf:
|
|
275
|
-
generateCsv:
|
|
264
|
+
return we({
|
|
265
|
+
getData: Me,
|
|
266
|
+
generatePdf: oe,
|
|
267
|
+
generateCsv: ne,
|
|
276
268
|
generateImage: ae,
|
|
277
|
-
toggleTable:
|
|
278
|
-
toggleTooltip:
|
|
279
|
-
toggleAnnotator:
|
|
280
|
-
}), (t,
|
|
269
|
+
toggleTable: ie,
|
|
270
|
+
toggleTooltip: ce,
|
|
271
|
+
toggleAnnotator: U
|
|
272
|
+
}), (t, o) => (s(), i("div", {
|
|
281
273
|
ref_key: "galaxyChart",
|
|
282
|
-
ref:
|
|
283
|
-
class: E(`vue-ui-galaxy ${
|
|
284
|
-
style:
|
|
274
|
+
ref: D,
|
|
275
|
+
class: E(`vue-ui-galaxy ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
276
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
285
277
|
id: `galaxy_${S.value}`,
|
|
286
|
-
onMouseenter:
|
|
287
|
-
onMouseleave:
|
|
278
|
+
onMouseenter: o[3] || (o[3] = () => a(K)(!0)),
|
|
279
|
+
onMouseleave: o[4] || (o[4] = () => a(K)(!1))
|
|
288
280
|
}, [
|
|
289
|
-
e.value.userOptions.buttons.annotator ? (
|
|
281
|
+
e.value.userOptions.buttons.annotator ? (s(), x(a(Pe), {
|
|
290
282
|
key: 0,
|
|
291
|
-
svgRef:
|
|
283
|
+
svgRef: a(Z),
|
|
292
284
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
293
285
|
color: e.value.style.chart.color,
|
|
294
286
|
active: F.value,
|
|
295
|
-
onClose:
|
|
287
|
+
onClose: U
|
|
296
288
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
297
|
-
|
|
298
|
-
e.value.style.chart.title.text ? (
|
|
299
|
-
(
|
|
300
|
-
key: `title_${
|
|
289
|
+
Ve.value ? (s(), i("div", ct, null, 512)) : c("", !0),
|
|
290
|
+
e.value.style.chart.title.text ? (s(), i("div", vt, [
|
|
291
|
+
(s(), x(a(Ne), {
|
|
292
|
+
key: `title_${Y.value}`,
|
|
301
293
|
config: {
|
|
302
294
|
title: {
|
|
303
295
|
cy: "galaxy-div-title",
|
|
@@ -310,14 +302,14 @@ const nt = ["id"], it = {
|
|
|
310
302
|
}
|
|
311
303
|
}, null, 8, ["config"]))
|
|
312
304
|
])) : c("", !0),
|
|
313
|
-
e.value.userOptions.show &&
|
|
305
|
+
e.value.userOptions.show && I.value && (a(Q) || a(W)) ? (s(), x(a(Ie), {
|
|
314
306
|
ref_key: "details",
|
|
315
|
-
ref:
|
|
316
|
-
key: `user_option_${
|
|
307
|
+
ref: Fe,
|
|
308
|
+
key: `user_option_${j.value}`,
|
|
317
309
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
318
310
|
color: e.value.style.chart.color,
|
|
319
|
-
isPrinting:
|
|
320
|
-
isImaging:
|
|
311
|
+
isPrinting: a(te),
|
|
312
|
+
isImaging: a(le),
|
|
321
313
|
uid: S.value,
|
|
322
314
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
323
315
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -326,27 +318,27 @@ const nt = ["id"], it = {
|
|
|
326
318
|
hasTable: e.value.userOptions.buttons.table,
|
|
327
319
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
328
320
|
isTooltip: p.value.showTooltip,
|
|
329
|
-
isFullscreen:
|
|
321
|
+
isFullscreen: T.value,
|
|
330
322
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
331
|
-
chartElement:
|
|
323
|
+
chartElement: D.value,
|
|
332
324
|
position: e.value.userOptions.position,
|
|
333
325
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
334
326
|
isAnnotation: F.value,
|
|
335
|
-
onToggleFullscreen:
|
|
336
|
-
onGeneratePdf:
|
|
337
|
-
onGenerateCsv:
|
|
338
|
-
onGenerateImage:
|
|
339
|
-
onToggleTable:
|
|
340
|
-
onToggleTooltip:
|
|
341
|
-
onToggleAnnotator:
|
|
342
|
-
style:
|
|
343
|
-
visibility:
|
|
327
|
+
onToggleFullscreen: De,
|
|
328
|
+
onGeneratePdf: a(oe),
|
|
329
|
+
onGenerateCsv: ne,
|
|
330
|
+
onGenerateImage: a(ae),
|
|
331
|
+
onToggleTable: ie,
|
|
332
|
+
onToggleTooltip: ce,
|
|
333
|
+
onToggleAnnotator: U,
|
|
334
|
+
style: V({
|
|
335
|
+
visibility: a(Q) ? a(W) ? "visible" : "hidden" : "visible"
|
|
344
336
|
})
|
|
345
|
-
},
|
|
337
|
+
}, Ue({ _: 2 }, [
|
|
346
338
|
t.$slots.menuIcon ? {
|
|
347
339
|
name: "menuIcon",
|
|
348
|
-
fn: d(({ isOpen: l, color:
|
|
349
|
-
v(t.$slots, "menuIcon", _(
|
|
340
|
+
fn: d(({ isOpen: l, color: r }) => [
|
|
341
|
+
v(t.$slots, "menuIcon", _(O({ isOpen: l, color: r })), void 0, !0)
|
|
350
342
|
]),
|
|
351
343
|
key: "0"
|
|
352
344
|
} : void 0,
|
|
@@ -387,112 +379,112 @@ const nt = ["id"], it = {
|
|
|
387
379
|
} : void 0,
|
|
388
380
|
t.$slots.optionFullscreen ? {
|
|
389
381
|
name: "optionFullscreen",
|
|
390
|
-
fn: d(({ toggleFullscreen: l, isFullscreen:
|
|
391
|
-
v(t.$slots, "optionFullscreen", _(
|
|
382
|
+
fn: d(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
383
|
+
v(t.$slots, "optionFullscreen", _(O({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
392
384
|
]),
|
|
393
385
|
key: "6"
|
|
394
386
|
} : void 0,
|
|
395
387
|
t.$slots.optionAnnotator ? {
|
|
396
388
|
name: "optionAnnotator",
|
|
397
|
-
fn: d(({ toggleAnnotator: l, isAnnotator:
|
|
398
|
-
v(t.$slots, "optionAnnotator", _(
|
|
389
|
+
fn: d(({ toggleAnnotator: l, isAnnotator: r }) => [
|
|
390
|
+
v(t.$slots, "optionAnnotator", _(O({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
|
|
399
391
|
]),
|
|
400
392
|
key: "7"
|
|
401
393
|
} : void 0
|
|
402
394
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
403
|
-
|
|
395
|
+
I.value ? (s(), i("svg", {
|
|
404
396
|
key: 4,
|
|
405
397
|
ref_key: "svgRef",
|
|
406
|
-
ref:
|
|
407
|
-
xmlns:
|
|
408
|
-
class: E({ "vue-data-ui-fullscreen--on":
|
|
409
|
-
viewBox: `0 0 ${
|
|
410
|
-
style:
|
|
398
|
+
ref: Z,
|
|
399
|
+
xmlns: a(tt),
|
|
400
|
+
class: E({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
401
|
+
viewBox: `0 0 ${N.value.width} ${N.value.height}`,
|
|
402
|
+
style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
411
403
|
}, [
|
|
412
|
-
|
|
413
|
-
t.$slots["chart-background"] ? (
|
|
404
|
+
ve(a(Oe)),
|
|
405
|
+
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
414
406
|
key: 0,
|
|
415
407
|
x: 0,
|
|
416
408
|
y: 0,
|
|
417
|
-
width:
|
|
418
|
-
height:
|
|
409
|
+
width: N.value.width,
|
|
410
|
+
height: N.value.height,
|
|
419
411
|
style: {
|
|
420
412
|
pointerEvents: "none"
|
|
421
413
|
}
|
|
422
414
|
}, [
|
|
423
415
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
424
|
-
], 8,
|
|
425
|
-
|
|
426
|
-
|
|
416
|
+
], 8, ht)) : c("", !0),
|
|
417
|
+
P("defs", null, [
|
|
418
|
+
P("filter", {
|
|
427
419
|
id: `blur_${S.value}`,
|
|
428
420
|
x: "-50%",
|
|
429
421
|
y: "-50%",
|
|
430
422
|
width: "200%",
|
|
431
423
|
height: "200%"
|
|
432
424
|
}, [
|
|
433
|
-
|
|
425
|
+
P("feGaussianBlur", {
|
|
434
426
|
in: "SourceGraphic",
|
|
435
427
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
436
|
-
}, null, 8,
|
|
437
|
-
], 8,
|
|
428
|
+
}, null, 8, yt)
|
|
429
|
+
], 8, pt)
|
|
438
430
|
]),
|
|
439
|
-
(
|
|
440
|
-
l.value ? (
|
|
431
|
+
(s(!0), i(de, null, he(L.value, (l) => (s(), i("g", null, [
|
|
432
|
+
l.value ? (s(), i("path", {
|
|
441
433
|
key: 0,
|
|
442
434
|
d: l.path,
|
|
443
435
|
fill: "none",
|
|
444
436
|
stroke: e.value.style.chart.backgroundColor,
|
|
445
|
-
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (
|
|
437
|
+
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (f.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
446
438
|
"stroke-linecap": "round"
|
|
447
|
-
}, null, 8,
|
|
448
|
-
l.value ? (
|
|
439
|
+
}, null, 8, gt)) : c("", !0),
|
|
440
|
+
l.value ? (s(), i("path", {
|
|
449
441
|
key: 1,
|
|
450
442
|
d: l.path,
|
|
451
443
|
fill: "none",
|
|
452
444
|
stroke: l.color,
|
|
453
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (
|
|
445
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (f.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
454
446
|
"stroke-linecap": "round",
|
|
455
|
-
class: E(`${
|
|
447
|
+
class: E(`${f.value && f.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
456
448
|
}, null, 10, ft)) : c("", !0),
|
|
457
|
-
l.value && e.value.style.chart.layout.arcs.gradient.show ? (
|
|
449
|
+
l.value && e.value.style.chart.layout.arcs.gradient.show ? (s(), i("g", {
|
|
458
450
|
key: 2,
|
|
459
451
|
filter: `url(#blur_${S.value})`
|
|
460
452
|
}, [
|
|
461
|
-
|
|
453
|
+
P("path", {
|
|
462
454
|
d: l.path,
|
|
463
455
|
fill: "none",
|
|
464
456
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
465
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (
|
|
457
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (f.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
466
458
|
"stroke-linecap": "round",
|
|
467
|
-
class: E(`vue-ui-galaxy-gradient ${
|
|
468
|
-
}, null, 10,
|
|
469
|
-
], 8,
|
|
459
|
+
class: E(`vue-ui-galaxy-gradient ${f.value && f.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
460
|
+
}, null, 10, mt)
|
|
461
|
+
], 8, bt)) : c("", !0)
|
|
470
462
|
]))), 256)),
|
|
471
|
-
(
|
|
472
|
-
l.value ? (
|
|
463
|
+
(s(!0), i(de, null, he(L.value, (l, r) => (s(), i("g", null, [
|
|
464
|
+
l.value ? (s(), i("path", {
|
|
473
465
|
key: 0,
|
|
474
466
|
d: l.path,
|
|
475
467
|
fill: "none",
|
|
476
468
|
stroke: "transparent",
|
|
477
469
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
478
470
|
"stroke-linecap": "round",
|
|
479
|
-
onMouseenter: (
|
|
471
|
+
onMouseenter: (u) => Ge({
|
|
480
472
|
datapoint: l,
|
|
481
473
|
seriesIndex: l.seriesIndex,
|
|
482
474
|
show: !0
|
|
483
475
|
}),
|
|
484
|
-
onMouseleave:
|
|
485
|
-
|
|
476
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
477
|
+
G.value = !1, f.value = null;
|
|
486
478
|
}),
|
|
487
|
-
onClick: (
|
|
488
|
-
}, null, 40,
|
|
479
|
+
onClick: (u) => se("selectDatapoint", l)
|
|
480
|
+
}, null, 40, kt)) : c("", !0)
|
|
489
481
|
]))), 256)),
|
|
490
|
-
v(t.$slots, "svg", { svg:
|
|
491
|
-
], 14,
|
|
492
|
-
t.$slots.watermark ? (
|
|
493
|
-
v(t.$slots, "watermark", _(
|
|
482
|
+
v(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
483
|
+
], 14, dt)) : c("", !0),
|
|
484
|
+
t.$slots.watermark ? (s(), i("div", Ct, [
|
|
485
|
+
v(t.$slots, "watermark", _(O({ isPrinting: a(te) || a(le) })), void 0, !0)
|
|
494
486
|
])) : c("", !0),
|
|
495
|
-
|
|
487
|
+
I.value ? c("", !0) : (s(), x(a(Se), {
|
|
496
488
|
key: 6,
|
|
497
489
|
config: {
|
|
498
490
|
type: "galaxy",
|
|
@@ -504,43 +496,43 @@ const nt = ["id"], it = {
|
|
|
504
496
|
}
|
|
505
497
|
}
|
|
506
498
|
}, null, 8, ["config"])),
|
|
507
|
-
e.value.style.chart.legend.show ? (
|
|
508
|
-
key: `legend_${
|
|
509
|
-
legendSet:
|
|
510
|
-
config:
|
|
511
|
-
onClickMarker:
|
|
499
|
+
e.value.style.chart.legend.show ? (s(), x(a(_e), {
|
|
500
|
+
key: `legend_${J.value}`,
|
|
501
|
+
legendSet: ue.value,
|
|
502
|
+
config: ze.value,
|
|
503
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l))
|
|
512
504
|
}, {
|
|
513
|
-
item: d(({ legend: l, index:
|
|
514
|
-
|
|
515
|
-
onClick: (
|
|
516
|
-
style:
|
|
505
|
+
item: d(({ legend: l, index: r }) => [
|
|
506
|
+
P("div", {
|
|
507
|
+
onClick: (u) => H(l),
|
|
508
|
+
style: V(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
517
509
|
}, [
|
|
518
|
-
|
|
510
|
+
pe(M(l.name) + ": " + M(a(be)(
|
|
519
511
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
520
512
|
l.value,
|
|
521
|
-
|
|
513
|
+
a(C)({
|
|
522
514
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
523
515
|
v: l.value,
|
|
524
516
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
525
517
|
r: e.value.style.chart.legend.roundingValue
|
|
526
518
|
}),
|
|
527
|
-
{ datapoint: l, seriesIndex:
|
|
519
|
+
{ datapoint: l, seriesIndex: r }
|
|
528
520
|
)) + " ", 1),
|
|
529
|
-
y.value.includes(l.id) ? (
|
|
521
|
+
y.value.includes(l.id) ? (s(), i("span", xt, " ( - % ) ")) : (s(), i("span", $t, " (" + M(isNaN(l.value / b.value) ? "-" : a(C)({
|
|
530
522
|
v: l.value / b.value * 100,
|
|
531
523
|
s: "%",
|
|
532
524
|
r: e.value.style.chart.legend.roundingPercentage
|
|
533
525
|
})) + ") ", 1))
|
|
534
|
-
], 12,
|
|
526
|
+
], 12, wt)
|
|
535
527
|
]),
|
|
536
528
|
_: 1
|
|
537
529
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
538
|
-
v(t.$slots, "legend", { legend:
|
|
539
|
-
t.$slots.source ? (
|
|
530
|
+
v(t.$slots, "legend", { legend: ue.value }, void 0, !0),
|
|
531
|
+
t.$slots.source ? (s(), i("div", Tt, [
|
|
540
532
|
v(t.$slots, "source", {}, void 0, !0)
|
|
541
533
|
], 512)) : c("", !0),
|
|
542
|
-
|
|
543
|
-
show: p.value.showTooltip &&
|
|
534
|
+
ve(a(Le), {
|
|
535
|
+
show: p.value.showTooltip && G.value,
|
|
544
536
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
545
537
|
color: e.value.style.chart.tooltip.color,
|
|
546
538
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -550,20 +542,20 @@ const nt = ["id"], it = {
|
|
|
550
542
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
551
543
|
position: e.value.style.chart.tooltip.position,
|
|
552
544
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
553
|
-
parent:
|
|
554
|
-
content:
|
|
555
|
-
isFullscreen:
|
|
556
|
-
isCustom:
|
|
545
|
+
parent: D.value,
|
|
546
|
+
content: z.value,
|
|
547
|
+
isFullscreen: T.value,
|
|
548
|
+
isCustom: a(me)(e.value.style.chart.tooltip.customFormat)
|
|
557
549
|
}, {
|
|
558
550
|
"tooltip-before": d(() => [
|
|
559
|
-
v(t.$slots, "tooltip-before", _(
|
|
551
|
+
v(t.$slots, "tooltip-before", _(O({ ...R.value })), void 0, !0)
|
|
560
552
|
]),
|
|
561
553
|
"tooltip-after": d(() => [
|
|
562
|
-
v(t.$slots, "tooltip-after", _(
|
|
554
|
+
v(t.$slots, "tooltip-after", _(O({ ...R.value })), void 0, !0)
|
|
563
555
|
]),
|
|
564
556
|
_: 3
|
|
565
557
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
566
|
-
|
|
558
|
+
I.value ? (s(), x(a(xe), {
|
|
567
559
|
key: 9,
|
|
568
560
|
hideDetails: "",
|
|
569
561
|
config: {
|
|
@@ -580,32 +572,32 @@ const nt = ["id"], it = {
|
|
|
580
572
|
}
|
|
581
573
|
}, {
|
|
582
574
|
content: d(() => [
|
|
583
|
-
(
|
|
584
|
-
key: `table_${
|
|
585
|
-
colNames:
|
|
586
|
-
head:
|
|
587
|
-
body:
|
|
588
|
-
config:
|
|
575
|
+
(s(), x(a(Te), {
|
|
576
|
+
key: `table_${q.value}`,
|
|
577
|
+
colNames: A.value.colNames,
|
|
578
|
+
head: A.value.head,
|
|
579
|
+
body: A.value.body,
|
|
580
|
+
config: A.value.config,
|
|
589
581
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
590
|
-
onClose:
|
|
582
|
+
onClose: o[2] || (o[2] = (l) => p.value.showTable = !1)
|
|
591
583
|
}, {
|
|
592
584
|
th: d(({ th: l }) => [
|
|
593
|
-
|
|
585
|
+
P("div", {
|
|
594
586
|
innerHTML: l,
|
|
595
587
|
style: { display: "flex", "align-items": "center" }
|
|
596
588
|
}, null, 8, _t)
|
|
597
589
|
]),
|
|
598
590
|
td: d(({ td: l }) => [
|
|
599
|
-
|
|
591
|
+
pe(M(l.name || l), 1)
|
|
600
592
|
]),
|
|
601
593
|
_: 1
|
|
602
594
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
603
595
|
]),
|
|
604
596
|
_: 1
|
|
605
597
|
}, 8, ["config"])) : c("", !0)
|
|
606
|
-
], 46,
|
|
598
|
+
], 46, it));
|
|
607
599
|
}
|
|
608
|
-
},
|
|
600
|
+
}, Vt = /* @__PURE__ */ nt(Ot, [["__scopeId", "data-v-1281b625"]]);
|
|
609
601
|
export {
|
|
610
|
-
|
|
602
|
+
Vt as default
|
|
611
603
|
};
|