vue-data-ui 3.19.8 → 3.19.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-Dl9W5zJD.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-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/style.css +1 -1
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-nsosW-n5.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
- package/dist/{vue-ui-age-pyramid-Bu3bocZx.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
- package/dist/{vue-ui-bullet-COSSZ7RU.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
- package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-LQuPTOlm.js} +1 -1
- package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
- package/dist/{vue-ui-carousel-table-Q2uTIELA.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
- package/dist/{vue-ui-chestnut-DdNKhXkN.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
- package/dist/{vue-ui-chord-CYzGIRtA.js → vue-ui-chord-YflKRyWK.js} +1 -1
- package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
- package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-C5_wkWul.js} +1 -1
- package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-mH0baWM3.js} +1 -1
- package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
- package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-BYBtwXy_.js} +1 -1
- package/dist/{vue-ui-donut-BSanYbqb.js → vue-ui-donut-B3L7jeHL.js} +434 -432
- package/dist/{vue-ui-donut-evolution-BVttNIzH.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
- package/dist/{vue-ui-dumbbell-D-KcBLOF.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
- package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-BYYyk5KL.js} +1 -1
- package/dist/{vue-ui-funnel-COwXzAbB.js → vue-ui-funnel-BfY509t-.js} +1 -1
- package/dist/{vue-ui-galaxy-Cg9VStNF.js → vue-ui-galaxy-D061gTYS.js} +260 -257
- package/dist/{vue-ui-gauge-DHWCS6jR.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
- package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BwOMFUVr.js} +1 -1
- package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
- package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
- package/dist/{vue-ui-history-plot-CgPjudHv.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
- package/dist/{vue-ui-horizontal-bar-CpQCmBQD.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
- package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
- package/dist/{vue-ui-molecule-CvfwMxYY.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
- package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-C-LWBXmg.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
- package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-MN-PjNJq.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
- package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
- package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-D2pVd53z.js} +115 -112
- package/dist/{vue-ui-relation-circle-MxYh6hSt.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
- package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
- package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-DkHS5dwd.js} +105 -102
- package/dist/{vue-ui-scatter-DrS1nrwL.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
- package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
- package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
- package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
- package/dist/{vue-ui-sparkline-BAWc3ROJ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
- package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
- package/dist/{vue-ui-stackline-DwtlEdOE.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
- package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
- package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-DuA_CfGn.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
- package/dist/{vue-ui-thermometer-Io8LdW1o.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
- package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-9LNNDl4q.js} +1 -1
- package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
- package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-BexKMBhz.js} +373 -373
- package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
- package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-BETHlWsO.js} +1 -1
- package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
- package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-CcgbuSp_.js} +1 -1
- package/dist/{vue-ui-xy-BCeOqJYR.js → vue-ui-xy-BQ1YONCq.js} +280 -277
- package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
- package/dist/vue-ui-sparkstackbar-BI8zG-DG.js +0 -662
|
@@ -18,25 +18,25 @@ import { t as Te } from "./useChartAccessibility-Do37qcw2.js";
|
|
|
18
18
|
import { t as Ee } from "./labelUtils-Cr97N8E1.js";
|
|
19
19
|
import { t as De } from "./Legend-Gg5Q4Clb.js";
|
|
20
20
|
import { t as Oe } from "./vue_ui_galaxy-70vtkEBw.js";
|
|
21
|
-
import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as
|
|
21
|
+
import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as g, normalizeClass as Fe, normalizeProps as _, normalizeStyle as v, onMounted as Ie, openBlock as y, ref as b, renderList as Le, renderSlot as x, resolveDynamicComponent as Re, toDisplayString as S, toRefs as ze, unref as C, watch as Be, withCtx as w } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-galaxy.vue
|
|
23
|
-
var
|
|
23
|
+
var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We = ["id"], Ge = { style: { position: "relative" } }, Ke = [
|
|
24
24
|
"xmlns",
|
|
25
25
|
"aria-describedby",
|
|
26
26
|
"viewBox"
|
|
27
|
-
],
|
|
27
|
+
], qe = ["width", "height"], Je = ["id"], Ye = ["stdDeviation"], Xe = [
|
|
28
28
|
"d",
|
|
29
29
|
"stroke",
|
|
30
30
|
"stroke-width"
|
|
31
|
-
],
|
|
31
|
+
], Ze = [
|
|
32
32
|
"d",
|
|
33
33
|
"stroke",
|
|
34
34
|
"stroke-width"
|
|
35
|
-
],
|
|
35
|
+
], Qe = ["filter"], $e = [
|
|
36
36
|
"d",
|
|
37
37
|
"stroke",
|
|
38
38
|
"stroke-width"
|
|
39
|
-
],
|
|
39
|
+
], et = [
|
|
40
40
|
"data-a11y-serie-id",
|
|
41
41
|
"d",
|
|
42
42
|
"stroke-width",
|
|
@@ -44,7 +44,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
44
44
|
"onMouseenter",
|
|
45
45
|
"onMouseleave",
|
|
46
46
|
"onClick"
|
|
47
|
-
],
|
|
47
|
+
], tt = {
|
|
48
48
|
key: 0,
|
|
49
49
|
style: {
|
|
50
50
|
position: "absolute",
|
|
@@ -54,10 +54,10 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
54
54
|
},
|
|
55
55
|
"data-dom-to-png-ignore": "",
|
|
56
56
|
"aria-hidden": "true"
|
|
57
|
-
},
|
|
57
|
+
}, nt = {
|
|
58
58
|
key: 5,
|
|
59
59
|
class: "vue-data-ui-watermark"
|
|
60
|
-
},
|
|
60
|
+
}, rt = ["id"], it = ["onClick"], at = ["innerHTML"], ot = /* @__PURE__ */ ye({
|
|
61
61
|
__name: "vue-ui-galaxy",
|
|
62
62
|
props: {
|
|
63
63
|
config: {
|
|
@@ -78,11 +78,11 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
78
78
|
"selectDatapoint",
|
|
79
79
|
"copyAlt"
|
|
80
80
|
],
|
|
81
|
-
setup(e, { expose: ye, emit:
|
|
82
|
-
let
|
|
81
|
+
setup(e, { expose: ye, emit: Ve }) {
|
|
82
|
+
let ot = m(() => import("./Tooltip-CuWEYGr3.js")), st = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ct = m(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), lt = m(() => import("./DataTable-DmE8Oo4i.js")), ut = m(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), dt = m(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), ft = m(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), pt = m(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_galaxy: mt } = ue(), { isThemeValid: ht, warnInvalidTheme: gt } = ge(), T = e, E = b(n()), D = b(null), O = b(!1), _t = b(""), k = b(null), vt = b(0), yt = b(0), bt = b(0), xt = b(0), St = b(null), Ct = b(null), wt = b(null), Tt = b(null), A = b(null), Et = b(null), Dt = b(!1), j = b(null), Ot = b(null), kt = b(!1), M = b(!1), N = b(null), At = b(null), jt = b({
|
|
83
83
|
x: 0,
|
|
84
84
|
y: 0
|
|
85
|
-
}),
|
|
85
|
+
}), Mt = b("pointer"), P = b(!1), Nt = l(() => !!T.dataset && T.dataset.length), F = b(Ht()), I = l(() => F.value.userOptions.useCursorPointer), Pt = l(() => le({
|
|
86
86
|
defaultConfig: {
|
|
87
87
|
userOptions: { show: !1 },
|
|
88
88
|
table: { show: !1 },
|
|
@@ -94,15 +94,15 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
94
94
|
},
|
|
95
95
|
userConfig: F.value.skeletonConfig ?? {}
|
|
96
96
|
})), { loading: Ft, FINAL_DATASET: It } = fe({
|
|
97
|
-
...
|
|
97
|
+
...ze(T),
|
|
98
98
|
FINAL_CONFIG: F,
|
|
99
99
|
prepareConfig: Ht,
|
|
100
100
|
callback: () => {
|
|
101
101
|
Promise.resolve().then(async () => {
|
|
102
|
-
await
|
|
102
|
+
await g(), R.value.showTable = F.value.table.show;
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
|
-
skeletonDataset:
|
|
105
|
+
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
106
106
|
{
|
|
107
107
|
name: "_",
|
|
108
108
|
values: [21],
|
|
@@ -124,16 +124,16 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
124
124
|
userConfig: Pt.value
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
Ie(() => {
|
|
128
128
|
Dt.value = !0, Rt();
|
|
129
129
|
});
|
|
130
130
|
let Lt = l(() => !!F.value.debug);
|
|
131
131
|
function Rt() {
|
|
132
|
-
if (s(
|
|
132
|
+
if (s(T.dataset) ? ee({
|
|
133
133
|
componentName: "VueUiGalaxy",
|
|
134
134
|
type: "dataset",
|
|
135
135
|
debug: Lt.value
|
|
136
|
-
}) :
|
|
136
|
+
}) : T.dataset.forEach((e, t) => {
|
|
137
137
|
ie({
|
|
138
138
|
datasetObject: e,
|
|
139
139
|
requiredAttributes: ["name", "values"]
|
|
@@ -149,32 +149,32 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
149
149
|
}), F.value.responsive) {
|
|
150
150
|
let e = be(() => {
|
|
151
151
|
let { width: e, height: t } = xe({
|
|
152
|
-
chart:
|
|
153
|
-
title: F.value.style.chart.title.text ?
|
|
154
|
-
legend: F.value.style.chart.legend.show ?
|
|
155
|
-
noTitle:
|
|
156
|
-
source:
|
|
152
|
+
chart: D.value,
|
|
153
|
+
title: F.value.style.chart.title.text ? St.value : null,
|
|
154
|
+
legend: F.value.style.chart.legend.show ? Ct.value : null,
|
|
155
|
+
noTitle: Tt.value,
|
|
156
|
+
source: wt.value
|
|
157
157
|
});
|
|
158
158
|
requestAnimationFrame(() => {
|
|
159
159
|
z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
|
-
|
|
162
|
+
A.value && (Et.value && A.value.unobserve(Et.value), A.value.disconnect()), A.value = new ResizeObserver(e), Et.value = D.value.parentNode, A.value.observe(Et.value);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
let { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = we({ config: F.value }), { svgRef: L } = Te({ config: F.value.style.chart.title });
|
|
166
166
|
function Ht() {
|
|
167
167
|
let e = he({
|
|
168
|
-
userConfig:
|
|
169
|
-
defaultConfig:
|
|
168
|
+
userConfig: T.config,
|
|
169
|
+
defaultConfig: mt
|
|
170
170
|
}), t = e.theme;
|
|
171
171
|
if (!t) return e;
|
|
172
|
-
if (!
|
|
172
|
+
if (!ht.value(e)) return gt(e), e;
|
|
173
173
|
let n = he({
|
|
174
|
-
userConfig: Oe[t] ||
|
|
174
|
+
userConfig: Oe[t] || T.config,
|
|
175
175
|
defaultConfig: e
|
|
176
176
|
}), r = he({
|
|
177
|
-
userConfig:
|
|
177
|
+
userConfig: T.config,
|
|
178
178
|
defaultConfig: n
|
|
179
179
|
});
|
|
180
180
|
return {
|
|
@@ -182,43 +182,46 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
182
182
|
customPalette: r.customPalette.length ? r.customPalette : i[t] || c
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
F.value = Ht(), zt.value = !F.value.userOptions.showOnChartHover, Rt(),
|
|
185
|
+
Be(() => T.config, (e) => {
|
|
186
|
+
F.value = Ht(), zt.value = !F.value.userOptions.showOnChartHover, Rt(), yt.value += 1, bt.value += 1, xt.value += 1, R.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, R.value.showTable = F.value.table.show, R.value.showTooltip = F.value.style.chart.tooltip.show;
|
|
187
187
|
}, { deep: !0 });
|
|
188
188
|
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = de({
|
|
189
|
-
elementId: `galaxy_${
|
|
189
|
+
elementId: `galaxy_${E.value}`,
|
|
190
190
|
fileName: F.value.style.chart.title.text || "vue-ui-galaxy",
|
|
191
191
|
options: F.value.userOptions.print
|
|
192
|
-
}), qt = l(() => F.value.userOptions.show && !F.value.style.chart.title.text), Jt = l(() => se(F.value.customPalette)), R =
|
|
192
|
+
}), qt = l(() => F.value.userOptions.show && !F.value.style.chart.title.text), Jt = l(() => se(F.value.customPalette)), R = b({
|
|
193
193
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
194
194
|
showTable: F.value.table.show,
|
|
195
195
|
showTooltip: F.value.style.chart.tooltip.show
|
|
196
|
-
}), z =
|
|
196
|
+
}), z = b(250), B = b(180), Yt = b(0), Xt = b(0), V = l(() => ({
|
|
197
197
|
width: z.value,
|
|
198
198
|
height: B.value,
|
|
199
199
|
viewBox: `${Yt.value} ${Xt.value} ${z.value} ${B.value}`
|
|
200
|
-
})), Zt =
|
|
200
|
+
})), Zt = Ve, H = b([]);
|
|
201
201
|
function Qt() {
|
|
202
|
-
|
|
203
|
-
H.value.push(e.id);
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function U(e) {
|
|
207
|
-
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), Zt("selectLegend", K.value.map((e) => ({
|
|
202
|
+
Zt("selectLegend", K.value.map((e) => ({
|
|
208
203
|
name: e.name,
|
|
209
204
|
color: e.color,
|
|
210
205
|
value: e.value
|
|
211
206
|
})));
|
|
212
207
|
}
|
|
213
|
-
function $t(
|
|
214
|
-
|
|
208
|
+
function $t() {
|
|
209
|
+
H.value.length ? H.value = [] : J.value.forEach((e) => {
|
|
210
|
+
H.value.push(e.id);
|
|
211
|
+
}), Qt();
|
|
212
|
+
}
|
|
213
|
+
function U(e) {
|
|
214
|
+
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), Qt();
|
|
215
215
|
}
|
|
216
216
|
function en(e) {
|
|
217
|
-
|
|
218
|
-
t !== null && H.value.includes(t.id) && U({ id: t.id });
|
|
217
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null);
|
|
219
218
|
}
|
|
220
219
|
function tn(e) {
|
|
221
|
-
let t =
|
|
220
|
+
let t = en(e);
|
|
221
|
+
t !== null && H.value.includes(t.id) && U({ id: t.id });
|
|
222
|
+
}
|
|
223
|
+
function nn(e) {
|
|
224
|
+
let t = en(e);
|
|
222
225
|
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
223
226
|
}
|
|
224
227
|
let W = l(() => It.value.map((e, t) => ({
|
|
@@ -231,15 +234,15 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
231
234
|
...e,
|
|
232
235
|
absoluteIndex: t
|
|
233
236
|
})));
|
|
234
|
-
function
|
|
237
|
+
function rn() {
|
|
235
238
|
return W.value.map((e) => ({
|
|
236
239
|
name: e.name,
|
|
237
240
|
color: e.color,
|
|
238
241
|
value: e.value
|
|
239
242
|
}));
|
|
240
243
|
}
|
|
241
|
-
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)),
|
|
242
|
-
maxPoints:
|
|
244
|
+
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an = b(190), on = l(() => W.value.filter((e) => !H.value.includes(e.id))), sn = l(() => (F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth) / 2 + (F.value.style.chart.layout.padding ?? 12)), cn = l(() => a({
|
|
245
|
+
maxPoints: an.value,
|
|
243
246
|
a: F.value.style.chart.layout.arcs.a ?? 6,
|
|
244
247
|
b: F.value.style.chart.layout.arcs.b ?? 6,
|
|
245
248
|
angleStep: F.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
@@ -247,60 +250,60 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
247
250
|
startY: V.value.height / 2 + F.value.style.chart.layout.arcs.offsetY,
|
|
248
251
|
boxWidth: V.value.width,
|
|
249
252
|
boxHeight: V.value.height,
|
|
250
|
-
padding:
|
|
253
|
+
padding: sn.value
|
|
251
254
|
})), K = l(() => {
|
|
252
255
|
let e = [];
|
|
253
|
-
for (let t = 0; t <
|
|
254
|
-
let n =
|
|
256
|
+
for (let t = 0; t < on.value.length; t += 1) {
|
|
257
|
+
let n = on.value[t], r = n.value / G.value * an.value + (t > 0 && e.length ? e[t - 1].points : 0);
|
|
255
258
|
e.push({
|
|
256
259
|
points: r,
|
|
257
260
|
...n,
|
|
258
261
|
seriesIndex: t,
|
|
259
262
|
proportion: n.value / G.value,
|
|
260
|
-
path:
|
|
263
|
+
path: cn.value(r)
|
|
261
264
|
});
|
|
262
265
|
}
|
|
263
266
|
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
264
267
|
});
|
|
265
|
-
function
|
|
266
|
-
let t = Math.min(z.value, B.value), n =
|
|
268
|
+
function ln(e) {
|
|
269
|
+
let t = Math.min(z.value, B.value), n = k.value === e.id && F.value.style.chart.layout.arcs.hoverEffect.show ? F.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, r = (F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth) * n, i = F.value.style.chart.layout.arcs.strokeWidth * n, a = F.value.style.chart.layout.arcs.strokeWidth / 2 * n;
|
|
267
270
|
return {
|
|
268
271
|
border: r / 180 * t,
|
|
269
272
|
path: i / 180 * t,
|
|
270
273
|
blur: a / 180 * t
|
|
271
274
|
};
|
|
272
275
|
}
|
|
273
|
-
let q =
|
|
274
|
-
function
|
|
275
|
-
q.value = e,
|
|
276
|
+
let q = b(!1);
|
|
277
|
+
function un(e) {
|
|
278
|
+
q.value = e, vt.value += 1;
|
|
276
279
|
}
|
|
277
|
-
let
|
|
278
|
-
function
|
|
279
|
-
|
|
280
|
+
let dn = b(null);
|
|
281
|
+
function fn() {
|
|
282
|
+
O.value = !1, k.value = null, N.value = null, At.value = null;
|
|
280
283
|
}
|
|
281
|
-
function
|
|
284
|
+
function pn(e) {
|
|
282
285
|
if (!L.value || !e) return;
|
|
283
286
|
let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
284
287
|
if (!t) return;
|
|
285
288
|
let n = t.getBoundingClientRect();
|
|
286
|
-
|
|
289
|
+
jt.value = {
|
|
287
290
|
x: n.left + n.width / 2,
|
|
288
291
|
y: n.top + n.height / 2
|
|
289
292
|
};
|
|
290
293
|
}
|
|
291
|
-
function
|
|
294
|
+
function mn(e) {
|
|
292
295
|
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
293
296
|
datapoint: e,
|
|
294
297
|
seriesIndex: e.absoluteIndex
|
|
295
|
-
}), !(
|
|
298
|
+
}), !(At.value === e.id && Mt.value === "keyboard") && (O.value = !1, k.value = null);
|
|
296
299
|
}
|
|
297
|
-
function
|
|
300
|
+
function hn(e) {
|
|
298
301
|
Zt("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
|
|
299
302
|
datapoint: e,
|
|
300
303
|
seriesIndex: e.absoluteIndex
|
|
301
304
|
});
|
|
302
305
|
}
|
|
303
|
-
function
|
|
306
|
+
function gn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
304
307
|
let i = F.value.style.chart.layout.labels.dataLabels;
|
|
305
308
|
return Ee({
|
|
306
309
|
config: i,
|
|
@@ -310,29 +313,29 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
310
313
|
showPercentage: r
|
|
311
314
|
});
|
|
312
315
|
}
|
|
313
|
-
function
|
|
316
|
+
function _n({ datapoint: e, _relativeIndex: n, seriesIndex: r, show: i = !1, triggerMode: a = "pointer", flatIndex: o = null }) {
|
|
314
317
|
if (F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
315
318
|
datapoint: e,
|
|
316
319
|
seriesIndex: e.absoluteIndex
|
|
317
320
|
}), !R.value.showTooltip) return;
|
|
318
|
-
|
|
321
|
+
Mt.value = a, N.value = o, At.value = e.id, dn.value = {
|
|
319
322
|
datapoint: e,
|
|
320
323
|
seriesIndex: r,
|
|
321
324
|
series: W.value,
|
|
322
325
|
config: F.value
|
|
323
|
-
},
|
|
326
|
+
}, O.value = i, k.value = e.id;
|
|
324
327
|
let s = "", c = F.value.style.chart.tooltip.customFormat;
|
|
325
328
|
ae(c) && re(() => c({
|
|
326
329
|
seriesIndex: r,
|
|
327
330
|
datapoint: e,
|
|
328
331
|
series: W.value,
|
|
329
332
|
config: F.value
|
|
330
|
-
})) ?
|
|
333
|
+
})) ? _t.value = c({
|
|
331
334
|
seriesIndex: r,
|
|
332
335
|
datapoint: e,
|
|
333
336
|
series: W.value,
|
|
334
337
|
config: F.value
|
|
335
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<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="${e.color}"/></svg>`, s += `<b>${
|
|
338
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<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="${e.color}"/></svg>`, s += `<b>${gn({
|
|
336
339
|
showVal: F.value.style.chart.tooltip.showValue,
|
|
337
340
|
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
338
341
|
val: te(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, t({
|
|
@@ -349,8 +352,8 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
349
352
|
s: "%",
|
|
350
353
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
351
354
|
})
|
|
352
|
-
})}</b></div>`,
|
|
353
|
-
|
|
355
|
+
})}</b></div>`, _t.value = `<div>${s}</div>`), a === "keyboard" && g(() => {
|
|
356
|
+
pn(e.id);
|
|
354
357
|
});
|
|
355
358
|
}
|
|
356
359
|
let J = l(() => W.value.map((e, n) => {
|
|
@@ -366,7 +369,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
366
369
|
v: e.value / G.value * 100,
|
|
367
370
|
s: "%",
|
|
368
371
|
r: F.value.style.chart.legend.roundingPercentage
|
|
369
|
-
}), a =
|
|
372
|
+
}), a = gn({
|
|
370
373
|
showVal: F.value.style.chart.legend.showValue,
|
|
371
374
|
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
372
375
|
val: r,
|
|
@@ -381,7 +384,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
381
384
|
isSegregated: H.value.includes(e.id),
|
|
382
385
|
display: `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${a}`
|
|
383
386
|
};
|
|
384
|
-
})),
|
|
387
|
+
})), vn = l(() => ({
|
|
385
388
|
cy: "galaxy-div-legend",
|
|
386
389
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
387
390
|
color: F.value.style.chart.legend.color,
|
|
@@ -395,8 +398,8 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
395
398
|
})),
|
|
396
399
|
body: K.value.map((e) => e.value)
|
|
397
400
|
}));
|
|
398
|
-
function
|
|
399
|
-
|
|
401
|
+
function yn(e = null) {
|
|
402
|
+
g(() => {
|
|
400
403
|
let t = Y.value.head.map((e, t) => [
|
|
401
404
|
[e.name],
|
|
402
405
|
[Y.value.body[t]],
|
|
@@ -469,20 +472,20 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
469
472
|
config: r
|
|
470
473
|
};
|
|
471
474
|
});
|
|
472
|
-
function
|
|
475
|
+
function bn() {
|
|
473
476
|
R.value.showTable = !R.value.showTable;
|
|
474
477
|
}
|
|
475
|
-
function
|
|
478
|
+
function xn() {
|
|
476
479
|
R.value.showTooltip = !R.value.showTooltip;
|
|
477
480
|
}
|
|
478
|
-
let Z =
|
|
479
|
-
function
|
|
481
|
+
let Z = b(!1);
|
|
482
|
+
function Sn() {
|
|
480
483
|
Z.value = !Z.value;
|
|
481
484
|
}
|
|
482
|
-
async function
|
|
483
|
-
if (!
|
|
484
|
-
let { width: t, height: n } =
|
|
485
|
-
domElement:
|
|
485
|
+
async function Cn({ scale: e = 2 } = {}) {
|
|
486
|
+
if (!D.value) return;
|
|
487
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
488
|
+
domElement: D.value,
|
|
486
489
|
base64: !0,
|
|
487
490
|
img: !0,
|
|
488
491
|
scale: e
|
|
@@ -499,7 +502,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
499
502
|
let Q = l(() => {
|
|
500
503
|
let e = F.value.table.useDialog && !F.value.table.show, t = R.value.showTable;
|
|
501
504
|
return {
|
|
502
|
-
component: e ?
|
|
505
|
+
component: e ? pt : ct,
|
|
503
506
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
504
507
|
props: e ? {
|
|
505
508
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -507,7 +510,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
507
510
|
headerColor: F.value.table.th.color,
|
|
508
511
|
headerBg: F.value.table.th.backgroundColor,
|
|
509
512
|
isFullscreen: q.value,
|
|
510
|
-
fullscreenParent:
|
|
513
|
+
fullscreenParent: D.value,
|
|
511
514
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
512
515
|
isCursorPointer: I.value
|
|
513
516
|
} : {
|
|
@@ -527,39 +530,39 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
527
530
|
}
|
|
528
531
|
};
|
|
529
532
|
});
|
|
530
|
-
|
|
533
|
+
Be(() => R.value.showTable, (e) => {
|
|
531
534
|
F.value.table.show || (e && F.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
532
535
|
});
|
|
533
|
-
function
|
|
536
|
+
function wn() {
|
|
534
537
|
R.value.showTable = !1, Ot.value && Ot.value.setTableIconState(!1);
|
|
535
538
|
}
|
|
536
|
-
let
|
|
539
|
+
let Tn = l(() => J.value.map((e) => ({
|
|
537
540
|
...e,
|
|
538
541
|
name: e.display
|
|
539
|
-
}))),
|
|
542
|
+
}))), En = l(() => F.value.style.chart.backgroundColor), Dn = l(() => F.value.style.chart.legend), { exportSvg: On, getSvg: kn } = me({
|
|
540
543
|
svg: L,
|
|
541
544
|
title: l(() => F.value.style.chart.title),
|
|
542
|
-
legend:
|
|
543
|
-
legendItems:
|
|
544
|
-
backgroundColor:
|
|
545
|
+
legend: Dn,
|
|
546
|
+
legendItems: Tn,
|
|
547
|
+
backgroundColor: En
|
|
545
548
|
});
|
|
546
|
-
async function
|
|
547
|
-
M.value = !0, await
|
|
549
|
+
async function An({ isCb: e }) {
|
|
550
|
+
M.value = !0, await g();
|
|
548
551
|
try {
|
|
549
552
|
if (e) {
|
|
550
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
553
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await kn();
|
|
551
554
|
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
552
555
|
blob: e,
|
|
553
556
|
url: t,
|
|
554
557
|
text: n,
|
|
555
558
|
dataUrl: r
|
|
556
559
|
}));
|
|
557
|
-
} else await Promise.resolve(
|
|
560
|
+
} else await Promise.resolve(On());
|
|
558
561
|
} finally {
|
|
559
562
|
M.value = !1;
|
|
560
563
|
}
|
|
561
564
|
}
|
|
562
|
-
function
|
|
565
|
+
function jn(e) {
|
|
563
566
|
if (e?.stage === "start") {
|
|
564
567
|
kt.value = !0;
|
|
565
568
|
return;
|
|
@@ -570,7 +573,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
570
573
|
}
|
|
571
574
|
Kt();
|
|
572
575
|
}
|
|
573
|
-
async function
|
|
576
|
+
async function Mn() {
|
|
574
577
|
if (Zt("copyAlt", {
|
|
575
578
|
config: F.value,
|
|
576
579
|
dataset: W.value
|
|
@@ -583,31 +586,31 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
583
586
|
dataset: W.value
|
|
584
587
|
}));
|
|
585
588
|
}
|
|
586
|
-
function Mn() {
|
|
587
|
-
N.value = null, P.value = null, Mt.value = !0;
|
|
588
|
-
}
|
|
589
589
|
function Nn() {
|
|
590
|
-
|
|
590
|
+
N.value = null, At.value = null, P.value = !0;
|
|
591
591
|
}
|
|
592
|
-
function Pn(
|
|
592
|
+
function Pn() {
|
|
593
|
+
fn(), P.value = !1;
|
|
594
|
+
}
|
|
595
|
+
function Fn(e) {
|
|
593
596
|
if (!L.value || Z.value || document.activeElement !== L.value || !$.value.length) return;
|
|
594
597
|
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
595
598
|
if (!t && !n && !r && !i) return;
|
|
596
599
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
597
|
-
|
|
600
|
+
fn();
|
|
598
601
|
return;
|
|
599
602
|
}
|
|
600
603
|
if (r) {
|
|
601
604
|
if (N.value === null) return;
|
|
602
605
|
let e = $.value[N.value];
|
|
603
606
|
if (!e) return;
|
|
604
|
-
|
|
607
|
+
hn(e.datapoint);
|
|
605
608
|
return;
|
|
606
609
|
}
|
|
607
610
|
let a = N.value;
|
|
608
611
|
a === null || a < 0 || a >= $.value.length ? a = n ? 0 : $.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0));
|
|
609
612
|
let o = $.value[a];
|
|
610
|
-
o &&
|
|
613
|
+
o && _n({
|
|
611
614
|
datapoint: o.datapoint,
|
|
612
615
|
seriesIndex: o.datapoint.seriesIndex,
|
|
613
616
|
show: !0,
|
|
@@ -615,7 +618,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
615
618
|
flatIndex: a
|
|
616
619
|
});
|
|
617
620
|
}
|
|
618
|
-
let
|
|
621
|
+
let In = l(() => ({
|
|
619
622
|
headers: X.value?.colNames ?? [],
|
|
620
623
|
rows: X.value?.body ?? []
|
|
621
624
|
})), $ = l(() => K.value.map((e, t) => ({
|
|
@@ -623,39 +626,39 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
623
626
|
index: t
|
|
624
627
|
})));
|
|
625
628
|
return ye({
|
|
626
|
-
getData:
|
|
627
|
-
getImage:
|
|
629
|
+
getData: rn,
|
|
630
|
+
getImage: Cn,
|
|
628
631
|
generatePdf: Gt,
|
|
629
|
-
generateCsv:
|
|
632
|
+
generateCsv: yn,
|
|
630
633
|
generateImage: Kt,
|
|
631
|
-
generateSvg:
|
|
632
|
-
hideSeries:
|
|
633
|
-
showSeries:
|
|
634
|
-
toggleTable:
|
|
635
|
-
toggleTooltip:
|
|
636
|
-
toggleAnnotator:
|
|
637
|
-
toggleFullscreen:
|
|
638
|
-
copyAlt:
|
|
639
|
-
}), (e, n) => (
|
|
634
|
+
generateSvg: An,
|
|
635
|
+
hideSeries: nn,
|
|
636
|
+
showSeries: tn,
|
|
637
|
+
toggleTable: bn,
|
|
638
|
+
toggleTooltip: xn,
|
|
639
|
+
toggleAnnotator: Sn,
|
|
640
|
+
toggleFullscreen: un,
|
|
641
|
+
copyAlt: Mn
|
|
642
|
+
}), (e, n) => (y(), f("div", {
|
|
640
643
|
ref_key: "galaxyChart",
|
|
641
|
-
ref:
|
|
642
|
-
class:
|
|
643
|
-
style:
|
|
644
|
-
id: `galaxy_${
|
|
645
|
-
onMouseenter: n[2] ||= () =>
|
|
644
|
+
ref: D,
|
|
645
|
+
class: Fe(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"} ${C(Ft) ? "loading" : ""}`),
|
|
646
|
+
style: v(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;${F.value.style.chart.title.text ? "" : "padding-top:36px"};background:${F.value.style.chart.backgroundColor}`),
|
|
647
|
+
id: `galaxy_${E.value}`,
|
|
648
|
+
onMouseenter: n[2] ||= () => C(Bt)(!0),
|
|
646
649
|
onMouseleave: n[3] ||= () => {
|
|
647
|
-
|
|
650
|
+
C(Bt)(!1), P.value || fn();
|
|
648
651
|
}
|
|
649
652
|
}, [
|
|
650
653
|
p("div", {
|
|
651
|
-
id: `chart-instructions-${
|
|
654
|
+
id: `chart-instructions-${E.value}`,
|
|
652
655
|
class: "sr-only"
|
|
653
|
-
}, [p("p", null,
|
|
654
|
-
|
|
656
|
+
}, [p("p", null, S(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
|
|
657
|
+
In.value?.rows?.length ? (y(), u(Ce, {
|
|
655
658
|
key: 0,
|
|
656
|
-
uid:
|
|
657
|
-
head:
|
|
658
|
-
body:
|
|
659
|
+
uid: E.value,
|
|
660
|
+
head: In.value.headers,
|
|
661
|
+
body: In.value.rows,
|
|
659
662
|
notice: F.value.a11y.translations.tableAvailable,
|
|
660
663
|
caption: F.value.a11y.translations.tableCaption
|
|
661
664
|
}, null, 8, [
|
|
@@ -665,21 +668,21 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
665
668
|
"notice",
|
|
666
669
|
"caption"
|
|
667
670
|
])) : d("", !0),
|
|
668
|
-
F.value.userOptions.buttons.annotator ? (
|
|
671
|
+
F.value.userOptions.buttons.annotator ? (y(), u(C(ut), {
|
|
669
672
|
key: 1,
|
|
670
|
-
svgRef:
|
|
673
|
+
svgRef: C(L),
|
|
671
674
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
672
675
|
color: F.value.style.chart.color,
|
|
673
676
|
active: Z.value,
|
|
674
677
|
isCursorPointer: I.value,
|
|
675
|
-
onClose:
|
|
678
|
+
onClose: Sn
|
|
676
679
|
}, {
|
|
677
|
-
"annotator-action-close":
|
|
678
|
-
"annotator-action-color":
|
|
679
|
-
"annotator-action-draw":
|
|
680
|
-
"annotator-action-undo":
|
|
681
|
-
"annotator-action-redo":
|
|
682
|
-
"annotator-action-delete":
|
|
680
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
681
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
682
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
683
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
684
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
685
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
683
686
|
_: 3
|
|
684
687
|
}, 8, [
|
|
685
688
|
"svgRef",
|
|
@@ -688,20 +691,20 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
688
691
|
"active",
|
|
689
692
|
"isCursorPointer"
|
|
690
693
|
])) : d("", !0),
|
|
691
|
-
qt.value ? (
|
|
694
|
+
qt.value ? (y(), f("div", {
|
|
692
695
|
key: 2,
|
|
693
696
|
ref_key: "noTitle",
|
|
694
|
-
ref:
|
|
697
|
+
ref: Tt,
|
|
695
698
|
class: "vue-data-ui-no-title-space",
|
|
696
699
|
style: "height:36px; width: 100%;background:transparent"
|
|
697
700
|
}, null, 512)) : d("", !0),
|
|
698
|
-
F.value.style.chart.title.text ? (
|
|
701
|
+
F.value.style.chart.title.text ? (y(), f("div", {
|
|
699
702
|
key: 3,
|
|
700
703
|
ref_key: "chartTitle",
|
|
701
|
-
ref:
|
|
704
|
+
ref: St,
|
|
702
705
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
703
|
-
}, [(
|
|
704
|
-
key: `title_${
|
|
706
|
+
}, [(y(), u(ve, {
|
|
707
|
+
key: `title_${yt.value}`,
|
|
705
708
|
config: {
|
|
706
709
|
title: {
|
|
707
710
|
cy: "galaxy-div-title",
|
|
@@ -713,16 +716,16 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
713
716
|
}
|
|
714
717
|
}
|
|
715
718
|
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
716
|
-
p("div", { id: `legend-top-${
|
|
717
|
-
F.value.userOptions.show && Nt.value && (
|
|
719
|
+
p("div", { id: `legend-top-${E.value}` }, null, 8, We),
|
|
720
|
+
F.value.userOptions.show && Nt.value && (C(Vt) || C(zt)) ? (y(), u(C(dt), {
|
|
718
721
|
ref_key: "userOptionsRef",
|
|
719
722
|
ref: Ot,
|
|
720
|
-
key: `user_option_${
|
|
723
|
+
key: `user_option_${vt.value}`,
|
|
721
724
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
722
725
|
color: F.value.style.chart.color,
|
|
723
|
-
isPrinting:
|
|
724
|
-
isImaging:
|
|
725
|
-
uid:
|
|
726
|
+
isPrinting: C(Ut),
|
|
727
|
+
isImaging: C(Wt),
|
|
728
|
+
uid: E.value,
|
|
726
729
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
727
730
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
728
731
|
hasXls: F.value.userOptions.buttons.csv,
|
|
@@ -734,7 +737,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
734
737
|
isTooltip: R.value.showTooltip,
|
|
735
738
|
isFullscreen: q.value,
|
|
736
739
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
737
|
-
chartElement:
|
|
740
|
+
chartElement: D.value,
|
|
738
741
|
position: F.value.userOptions.position,
|
|
739
742
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
740
743
|
isAnnotation: Z.value,
|
|
@@ -742,20 +745,20 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
742
745
|
printScale: F.value.userOptions.print.scale,
|
|
743
746
|
tableDialog: F.value.table.useDialog,
|
|
744
747
|
isCursorPointer: I.value,
|
|
745
|
-
onToggleFullscreen:
|
|
746
|
-
onGeneratePdf:
|
|
747
|
-
onGenerateCsv:
|
|
748
|
-
onGenerateImage:
|
|
749
|
-
onGenerateSvg:
|
|
750
|
-
onToggleTable:
|
|
751
|
-
onToggleTooltip:
|
|
752
|
-
onToggleAnnotator:
|
|
753
|
-
onCopyAlt:
|
|
754
|
-
style:
|
|
748
|
+
onToggleFullscreen: un,
|
|
749
|
+
onGeneratePdf: C(Gt),
|
|
750
|
+
onGenerateCsv: yn,
|
|
751
|
+
onGenerateImage: jn,
|
|
752
|
+
onGenerateSvg: An,
|
|
753
|
+
onToggleTable: bn,
|
|
754
|
+
onToggleTooltip: xn,
|
|
755
|
+
onToggleAnnotator: Sn,
|
|
756
|
+
onCopyAlt: Mn,
|
|
757
|
+
style: v({ visibility: C(Vt) ? C(zt) ? "visible" : "hidden" : "visible" })
|
|
755
758
|
}, je({ _: 2 }, [
|
|
756
759
|
e.$slots.menuIcon ? {
|
|
757
760
|
name: "menuIcon",
|
|
758
|
-
fn:
|
|
761
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
|
|
759
762
|
isOpen: t,
|
|
760
763
|
color: n
|
|
761
764
|
})), void 0, !0)]),
|
|
@@ -763,37 +766,37 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
763
766
|
} : void 0,
|
|
764
767
|
e.$slots.optionTooltip ? {
|
|
765
768
|
name: "optionTooltip",
|
|
766
|
-
fn:
|
|
769
|
+
fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
767
770
|
key: "1"
|
|
768
771
|
} : void 0,
|
|
769
772
|
e.$slots.optionPdf ? {
|
|
770
773
|
name: "optionPdf",
|
|
771
|
-
fn:
|
|
774
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
772
775
|
key: "2"
|
|
773
776
|
} : void 0,
|
|
774
777
|
e.$slots.optionCsv ? {
|
|
775
778
|
name: "optionCsv",
|
|
776
|
-
fn:
|
|
779
|
+
fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
777
780
|
key: "3"
|
|
778
781
|
} : void 0,
|
|
779
782
|
e.$slots.optionImg ? {
|
|
780
783
|
name: "optionImg",
|
|
781
|
-
fn:
|
|
784
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
782
785
|
key: "4"
|
|
783
786
|
} : void 0,
|
|
784
787
|
e.$slots.optionSvg ? {
|
|
785
788
|
name: "optionSvg",
|
|
786
|
-
fn:
|
|
789
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
787
790
|
key: "5"
|
|
788
791
|
} : void 0,
|
|
789
792
|
e.$slots.optionTable ? {
|
|
790
793
|
name: "optionTable",
|
|
791
|
-
fn:
|
|
794
|
+
fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
792
795
|
key: "6"
|
|
793
796
|
} : void 0,
|
|
794
797
|
e.$slots.optionFullscreen ? {
|
|
795
798
|
name: "optionFullscreen",
|
|
796
|
-
fn:
|
|
799
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
|
|
797
800
|
toggleFullscreen: t,
|
|
798
801
|
isFullscreen: n
|
|
799
802
|
})), void 0, !0)]),
|
|
@@ -801,7 +804,7 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
801
804
|
} : void 0,
|
|
802
805
|
e.$slots.optionAnnotator ? {
|
|
803
806
|
name: "optionAnnotator",
|
|
804
|
-
fn:
|
|
807
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
|
|
805
808
|
toggleAnnotator: t,
|
|
806
809
|
isAnnotator: n
|
|
807
810
|
})), void 0, !0)]),
|
|
@@ -809,47 +812,47 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
809
812
|
} : void 0,
|
|
810
813
|
e.$slots.optionAltCopy ? {
|
|
811
814
|
name: "optionAltCopy",
|
|
812
|
-
fn:
|
|
815
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
813
816
|
key: "9"
|
|
814
817
|
} : void 0,
|
|
815
818
|
e.$slots["custom-menu-before"] ? {
|
|
816
819
|
name: "custom-menu-before",
|
|
817
|
-
fn:
|
|
820
|
+
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
818
821
|
key: "10"
|
|
819
822
|
} : void 0,
|
|
820
823
|
e.$slots["custom-menu-after"] ? {
|
|
821
824
|
name: "custom-menu-after",
|
|
822
|
-
fn:
|
|
825
|
+
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
823
826
|
key: "11"
|
|
824
827
|
} : void 0
|
|
825
828
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
826
|
-
p("div",
|
|
829
|
+
p("div", Ge, [(y(), f("svg", {
|
|
827
830
|
ref_key: "svgRef",
|
|
828
831
|
ref: L,
|
|
829
|
-
xmlns:
|
|
830
|
-
"aria-describedby": `chart-instructions-${
|
|
831
|
-
class:
|
|
832
|
+
xmlns: C(oe),
|
|
833
|
+
"aria-describedby": `chart-instructions-${E.value}`,
|
|
834
|
+
class: Fe({
|
|
832
835
|
"vue-data-ui-fullscreen--on": q.value,
|
|
833
836
|
"vue-data-ui-fulscreen--off": !q.value
|
|
834
837
|
}),
|
|
835
838
|
viewBox: V.value.viewBox,
|
|
836
|
-
style:
|
|
839
|
+
style: v(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color}`),
|
|
837
840
|
tabindex: "0",
|
|
838
|
-
onFocus:
|
|
839
|
-
onBlur:
|
|
840
|
-
onKeydown:
|
|
841
|
+
onFocus: Nn,
|
|
842
|
+
onBlur: Pn,
|
|
843
|
+
onKeydown: Fn
|
|
841
844
|
}, [
|
|
842
|
-
Ne(
|
|
843
|
-
e.$slots["chart-background"] ? (
|
|
845
|
+
Ne(C(ft)),
|
|
846
|
+
e.$slots["chart-background"] ? (y(), f("foreignObject", {
|
|
844
847
|
key: 0,
|
|
845
848
|
x: 0,
|
|
846
849
|
y: 0,
|
|
847
850
|
width: V.value.width,
|
|
848
851
|
height: V.value.height,
|
|
849
852
|
style: { pointerEvents: "none" }
|
|
850
|
-
}, [
|
|
853
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, qe)) : d("", !0),
|
|
851
854
|
p("defs", null, [p("filter", {
|
|
852
|
-
id: `blur_${
|
|
855
|
+
id: `blur_${E.value}`,
|
|
853
856
|
x: "-50%",
|
|
854
857
|
y: "-50%",
|
|
855
858
|
width: "200%",
|
|
@@ -857,38 +860,38 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
857
860
|
}, [p("feGaussianBlur", {
|
|
858
861
|
in: "SourceGraphic",
|
|
859
862
|
stdDeviation: 100 / F.value.style.chart.layout.arcs.gradient.intensity
|
|
860
|
-
}, null, 8,
|
|
861
|
-
(
|
|
862
|
-
e.value ? (
|
|
863
|
+
}, null, 8, Ye)], 8, Je)]),
|
|
864
|
+
(y(!0), f(ke, null, Le(K.value, (e) => (y(), f("g", null, [
|
|
865
|
+
e.value ? (y(), f("path", {
|
|
863
866
|
key: 0,
|
|
864
867
|
d: e.path,
|
|
865
868
|
fill: "none",
|
|
866
869
|
stroke: F.value.style.chart.backgroundColor,
|
|
867
|
-
"stroke-width":
|
|
870
|
+
"stroke-width": ln(e).border,
|
|
868
871
|
"stroke-linecap": "round"
|
|
869
|
-
}, null, 8,
|
|
870
|
-
e.value ? (
|
|
872
|
+
}, null, 8, Xe)) : d("", !0),
|
|
873
|
+
e.value ? (y(), f("path", {
|
|
871
874
|
key: 1,
|
|
872
875
|
d: e.path,
|
|
873
876
|
fill: "none",
|
|
874
877
|
stroke: e.color,
|
|
875
|
-
"stroke-width":
|
|
878
|
+
"stroke-width": ln(e).path,
|
|
876
879
|
"stroke-linecap": "round",
|
|
877
|
-
class:
|
|
878
|
-
}, null, 10,
|
|
879
|
-
e.value && F.value.style.chart.layout.arcs.gradient.show ? (
|
|
880
|
+
class: Fe(`${k.value && k.value !== e.id && F.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
881
|
+
}, null, 10, Ze)) : d("", !0),
|
|
882
|
+
e.value && F.value.style.chart.layout.arcs.gradient.show ? (y(), f("g", {
|
|
880
883
|
key: 2,
|
|
881
|
-
filter: `url(#blur_${
|
|
884
|
+
filter: `url(#blur_${E.value})`
|
|
882
885
|
}, [p("path", {
|
|
883
886
|
d: e.path,
|
|
884
887
|
fill: "none",
|
|
885
888
|
stroke: F.value.style.chart.layout.arcs.gradient.color,
|
|
886
|
-
"stroke-width":
|
|
889
|
+
"stroke-width": ln(e).blur,
|
|
887
890
|
"stroke-linecap": "round",
|
|
888
|
-
class:
|
|
889
|
-
}, null, 10,
|
|
891
|
+
class: Fe(`vue-ui-galaxy-gradient ${k.value && k.value !== e.id && F.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
892
|
+
}, null, 10, $e)], 8, Qe)) : d("", !0)
|
|
890
893
|
]))), 256)),
|
|
891
|
-
(
|
|
894
|
+
(y(!0), f(ke, null, Le(K.value, (e, n) => (y(), f("g", null, [e.value ? (y(), f("path", {
|
|
892
895
|
key: 0,
|
|
893
896
|
"data-a11y-serie-id": e.id,
|
|
894
897
|
d: e.path,
|
|
@@ -896,13 +899,13 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
896
899
|
stroke: "transparent",
|
|
897
900
|
"stroke-width": F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth,
|
|
898
901
|
"stroke-linecap": "round",
|
|
899
|
-
"aria-label": `${e.name}: ${
|
|
902
|
+
"aria-label": `${e.name}: ${C(t)({
|
|
900
903
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
901
904
|
v: e.value,
|
|
902
905
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
903
906
|
r: F.value.style.chart.tooltip.roundingValue
|
|
904
907
|
})}`,
|
|
905
|
-
onMouseenter: (t) =>
|
|
908
|
+
onMouseenter: (t) => _n({
|
|
906
909
|
datapoint: e,
|
|
907
910
|
relativeIndex: n,
|
|
908
911
|
seriesIndex: e.seriesIndex,
|
|
@@ -910,44 +913,44 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
910
913
|
triggerMode: "pointer",
|
|
911
914
|
flatIndex: n
|
|
912
915
|
}),
|
|
913
|
-
onMouseleave: (t) =>
|
|
914
|
-
onClick: (t) =>
|
|
915
|
-
}, null, 40,
|
|
916
|
-
|
|
916
|
+
onMouseleave: (t) => mn(e),
|
|
917
|
+
onClick: (t) => hn(e)
|
|
918
|
+
}, null, 40, et)) : d("", !0)]))), 256)),
|
|
919
|
+
x(e.$slots, "svg", { svg: {
|
|
917
920
|
...V.value,
|
|
918
|
-
isPrintingImg:
|
|
921
|
+
isPrintingImg: C(Ut) || C(Wt) || kt.value,
|
|
919
922
|
isPrintingSvg: M.value
|
|
920
923
|
} }, void 0, !0)
|
|
921
|
-
], 46,
|
|
924
|
+
], 46, Ke)), e.$slots.hint ? (y(), f("div", tt, [x(e.$slots, "hint", _(h({
|
|
922
925
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
923
|
-
isVisible:
|
|
926
|
+
isVisible: P.value
|
|
924
927
|
})), void 0, !0)])) : d("", !0)]),
|
|
925
|
-
e.$slots.watermark ? (
|
|
926
|
-
p("div", { id: `legend-bottom-${
|
|
927
|
-
Dt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (
|
|
928
|
+
e.$slots.watermark ? (y(), f("div", nt, [x(e.$slots, "watermark", _(h({ isPrinting: C(Ut) || C(Wt) || kt.value || M.value })), void 0, !0)])) : d("", !0),
|
|
929
|
+
p("div", { id: `legend-bottom-${E.value}` }, null, 8, rt),
|
|
930
|
+
Dt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Ae, {
|
|
928
931
|
key: 6,
|
|
929
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
932
|
+
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
930
933
|
}, [p("div", {
|
|
931
934
|
ref_key: "chartLegend",
|
|
932
|
-
ref:
|
|
933
|
-
}, [
|
|
934
|
-
key: `legend_${
|
|
935
|
+
ref: Ct
|
|
936
|
+
}, [x(e.$slots, "legend", { legend: J.value }, () => [F.value.style.chart.legend.show ? (y(), u(De, {
|
|
937
|
+
key: `legend_${xt.value}`,
|
|
935
938
|
legendSet: J.value,
|
|
936
|
-
config:
|
|
939
|
+
config: vn.value,
|
|
937
940
|
onClickMarker: n[0] ||= ({ legend: e }) => U(e)
|
|
938
941
|
}, {
|
|
939
|
-
item:
|
|
942
|
+
item: w(({ legend: e, index: t }) => [C(Ft) ? d("", !0) : (y(), f("div", {
|
|
940
943
|
key: 0,
|
|
941
944
|
onClick: (t) => U(e),
|
|
942
|
-
style:
|
|
943
|
-
},
|
|
944
|
-
legendToggle:
|
|
945
|
+
style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
946
|
+
}, S(e.display), 13, it))]),
|
|
947
|
+
legendToggle: w(() => [J.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !C(Ft) ? (y(), u(Se, {
|
|
945
948
|
key: 0,
|
|
946
949
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
947
950
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
948
951
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
949
952
|
checked: H.value.length > 0,
|
|
950
|
-
onToggle:
|
|
953
|
+
onToggle: $t
|
|
951
954
|
}, null, 8, [
|
|
952
955
|
"backgroundColor",
|
|
953
956
|
"color",
|
|
@@ -956,15 +959,15 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
956
959
|
])) : d("", !0)]),
|
|
957
960
|
_: 1
|
|
958
961
|
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
959
|
-
e.$slots.source ? (
|
|
962
|
+
e.$slots.source ? (y(), f("div", {
|
|
960
963
|
key: 7,
|
|
961
964
|
ref_key: "source",
|
|
962
|
-
ref:
|
|
965
|
+
ref: wt,
|
|
963
966
|
dir: "auto"
|
|
964
|
-
}, [
|
|
965
|
-
Ne(
|
|
967
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
968
|
+
Ne(C(ot), {
|
|
966
969
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
967
|
-
show: R.value.showTooltip &&
|
|
970
|
+
show: R.value.showTooltip && O.value,
|
|
968
971
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
969
972
|
color: F.value.style.chart.tooltip.color,
|
|
970
973
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -975,20 +978,20 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
975
978
|
position: F.value.style.chart.tooltip.position,
|
|
976
979
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
977
980
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
978
|
-
parent:
|
|
979
|
-
content:
|
|
981
|
+
parent: D.value,
|
|
982
|
+
content: _t.value,
|
|
980
983
|
isFullscreen: q.value,
|
|
981
|
-
isCustom:
|
|
984
|
+
isCustom: C(ae)(F.value.style.chart.tooltip.customFormat),
|
|
982
985
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
983
986
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
984
987
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
985
988
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
986
|
-
isA11yMode:
|
|
987
|
-
a11yPosition:
|
|
989
|
+
isA11yMode: Mt.value === "keyboard",
|
|
990
|
+
a11yPosition: jt.value
|
|
988
991
|
}, {
|
|
989
|
-
"tooltip-before":
|
|
990
|
-
tooltip:
|
|
991
|
-
"tooltip-after":
|
|
992
|
+
"tooltip-before": w(() => [x(e.$slots, "tooltip-before", _(h({ ...dn.value })), void 0, !0)]),
|
|
993
|
+
tooltip: w(() => [x(e.$slots, "tooltip", _(h({ ...dn.value })), void 0, !0)]),
|
|
994
|
+
"tooltip-after": w(() => [x(e.$slots, "tooltip-after", _(h({ ...dn.value })), void 0, !0)]),
|
|
992
995
|
_: 3
|
|
993
996
|
}, 8, [
|
|
994
997
|
"teleportTo",
|
|
@@ -1014,13 +1017,13 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
1014
1017
|
"isA11yMode",
|
|
1015
1018
|
"a11yPosition"
|
|
1016
1019
|
]),
|
|
1017
|
-
Nt.value && F.value.userOptions.buttons.table ? (
|
|
1020
|
+
Nt.value && F.value.userOptions.buttons.table ? (y(), u(Re(Q.value.component), Pe({ key: 8 }, Q.value.props, {
|
|
1018
1021
|
ref_key: "tableUnit",
|
|
1019
1022
|
ref: j,
|
|
1020
|
-
onClose:
|
|
1023
|
+
onClose: wn
|
|
1021
1024
|
}), je({
|
|
1022
|
-
content:
|
|
1023
|
-
key: `table_${
|
|
1025
|
+
content: w(() => [(y(), u(C(lt), {
|
|
1026
|
+
key: `table_${bt.value}`,
|
|
1024
1027
|
colNames: X.value.colNames,
|
|
1025
1028
|
head: X.value.head,
|
|
1026
1029
|
body: X.value.body,
|
|
@@ -1028,16 +1031,16 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
1028
1031
|
title: F.value.table.useDialog ? "" : Q.value.title,
|
|
1029
1032
|
withCloseButton: !F.value.table.useDialog,
|
|
1030
1033
|
isCursorPointer: I.value,
|
|
1031
|
-
onClose:
|
|
1034
|
+
onClose: wn
|
|
1032
1035
|
}, {
|
|
1033
|
-
th:
|
|
1036
|
+
th: w(({ th: e }) => [p("div", {
|
|
1034
1037
|
innerHTML: e,
|
|
1035
1038
|
style: {
|
|
1036
1039
|
display: "flex",
|
|
1037
1040
|
"align-items": "center"
|
|
1038
1041
|
}
|
|
1039
|
-
}, null, 8,
|
|
1040
|
-
td:
|
|
1042
|
+
}, null, 8, at)]),
|
|
1043
|
+
td: w(({ td: e }) => [Me(S(e.name || e), 1)]),
|
|
1041
1044
|
_: 1
|
|
1042
1045
|
}, 8, [
|
|
1043
1046
|
"colNames",
|
|
@@ -1051,24 +1054,24 @@ var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge
|
|
|
1051
1054
|
_: 2
|
|
1052
1055
|
}, [F.value.table.useDialog ? {
|
|
1053
1056
|
name: "title",
|
|
1054
|
-
fn:
|
|
1057
|
+
fn: w(() => [Me(S(Q.value.title), 1)]),
|
|
1055
1058
|
key: "0"
|
|
1056
1059
|
} : void 0, F.value.table.useDialog ? {
|
|
1057
1060
|
name: "actions",
|
|
1058
|
-
fn:
|
|
1061
|
+
fn: w(() => [p("button", {
|
|
1059
1062
|
tabindex: "0",
|
|
1060
1063
|
class: "vue-ui-user-options-button",
|
|
1061
|
-
onClick: n[1] ||= (e) =>
|
|
1062
|
-
style:
|
|
1063
|
-
}, [Ne(
|
|
1064
|
+
onClick: n[1] ||= (e) => yn(F.value.userOptions.callbacks.csv),
|
|
1065
|
+
style: v({ cursor: I.value ? "pointer" : "default" })
|
|
1066
|
+
}, [Ne(C(st), {
|
|
1064
1067
|
name: "fileCsv",
|
|
1065
1068
|
stroke: Q.value.props.color
|
|
1066
1069
|
}, null, 8, ["stroke"])], 4)]),
|
|
1067
1070
|
key: "1"
|
|
1068
1071
|
} : void 0]), 1040)) : d("", !0),
|
|
1069
|
-
|
|
1070
|
-
], 46,
|
|
1072
|
+
x(e.$slots, "skeleton", {}, () => [C(Ft) ? (y(), u(pe, { key: 0 })) : d("", !0)], !0)
|
|
1073
|
+
], 46, He));
|
|
1071
1074
|
}
|
|
1072
|
-
}, [["__scopeId", "data-v-
|
|
1075
|
+
}, [["__scopeId", "data-v-d013ae09"]]);
|
|
1073
1076
|
//#endregion
|
|
1074
|
-
export {
|
|
1077
|
+
export { Ve as n, ot as t };
|