vue-data-ui 3.5.0 → 3.5.2
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 +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-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-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-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Me, t as
|
|
1
|
+
import { defineAsyncComponent as O, ref as o, computed as v, toRefs as Tt, onMounted as xt, watch as Fe, createElementBlock as d, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as U, createBlock as P, createCommentVNode as h, createElementVNode as $, createVNode as ae, withCtx as i, renderSlot as c, normalizeProps as y, guardReactiveProps as b, createSlots as Ae, Fragment as Ne, renderList as Be, Teleport as St, toDisplayString as oe, resolveDynamicComponent as Ot, mergeProps as Pt, createTextVNode as Ve, nextTick as Ee } from "vue";
|
|
2
|
+
import { c as Me, t as It, o as _t, f as Ge, g as Dt, b as Lt, p as z, e as Ft, a1 as Re, h as At, a5 as Nt, a as We, d as I, X as Bt, G as Ue, P as Vt, Q as Et, H as Mt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Gt, u as Rt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Wt, a as ze } from "./useNestedProp-
|
|
4
|
+
import { u as Wt, a as ze } from "./useNestedProp-CReNavA0.js";
|
|
5
5
|
import { u as Ut, B as zt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Ht } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as Xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import jt from "./img-BecE5qXd.js";
|
|
10
10
|
import { t as qt } from "./themes-AUNCOb2G.js";
|
|
11
|
-
import Qt from "./Title-
|
|
11
|
+
import Qt from "./Title-BzH_LEA3.js";
|
|
12
12
|
import Jt from "./Legend-G6GMcdAc.js";
|
|
13
13
|
import { u as Kt } from "./useSvgExport-DrjCWun4.js";
|
|
14
14
|
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "height"], ol = ["id"], sl = ["stdDeviation"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["filter"], il = ["d", "stroke", "stroke-width"],
|
|
15
|
+
const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "height"], ol = ["id"], sl = ["stdDeviation"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["filter"], il = ["d", "stroke", "stroke-width"], cl = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], vl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, dl = ["id"], hl = ["onClick"], gl = ["innerHTML"], pl = {
|
|
@@ -33,8 +33,8 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup(He, { expose: Xe, emit: Ye }) {
|
|
36
|
-
const je =
|
|
37
|
-
...
|
|
36
|
+
const je = O(() => import("./Tooltip-oWCO1HKy.js")), qe = O(() => import("./BaseIcon-BmMbm4d0.js")), Qe = O(() => import("./vue-ui-accordion-BmFTVF1a.js")), Je = O(() => import("./DataTable-BT7VF2ua.js")), Ke = O(() => import("./PenAndPaper-SZQIAgkg.js")), Ze = O(() => import("./UserOptions-CGnQt6Fd.js")), et = O(() => import("./PackageVersion-Y7t79Jtq.js")), tt = O(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_galaxy: lt } = Wt(), T = He, m = o(Me()), k = o(null), H = o(!1), X = o(""), _ = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ce = o(null), ve = o(null), de = o(null), L = o(null), V = o(null), he = o(!1), F = o(null), Y = o(null), ge = v(() => !!T.dataset && T.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: pe } = Ut({
|
|
37
|
+
...Tt(T),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
39
|
prepareConfig: J,
|
|
40
40
|
callback: () => {
|
|
@@ -47,7 +47,7 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
47
47
|
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
48
48
|
{ name: "_", values: [8], color: "#ADADAD" }
|
|
49
49
|
],
|
|
50
|
-
skeletonConfig:
|
|
50
|
+
skeletonConfig: It({
|
|
51
51
|
defaultConfig: e.value,
|
|
52
52
|
userConfig: {
|
|
53
53
|
userOptions: { show: !1 },
|
|
@@ -64,16 +64,16 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
64
64
|
}
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
xt(() => {
|
|
68
68
|
he.value = !0, ye();
|
|
69
69
|
});
|
|
70
|
-
const fe =
|
|
70
|
+
const fe = v(() => !!e.value.debug);
|
|
71
71
|
function ye() {
|
|
72
|
-
if (
|
|
72
|
+
if (_t(T.dataset) ? Ge({
|
|
73
73
|
componentName: "VueUiGalaxy",
|
|
74
74
|
type: "dataset",
|
|
75
75
|
debug: fe.value
|
|
76
|
-
}) :
|
|
76
|
+
}) : T.dataset.forEach((t, a) => {
|
|
77
77
|
Dt({
|
|
78
78
|
datasetObject: t,
|
|
79
79
|
requiredAttributes: ["name", "values"]
|
|
@@ -89,73 +89,73 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
89
89
|
}), e.value.responsive) {
|
|
90
90
|
const t = Gt(() => {
|
|
91
91
|
const { width: a, height: l } = Rt({
|
|
92
|
-
chart:
|
|
92
|
+
chart: k.value,
|
|
93
93
|
title: e.value.style.chart.title.text ? ie.value : null,
|
|
94
|
-
legend: e.value.style.chart.legend.show ?
|
|
94
|
+
legend: e.value.style.chart.legend.show ? ce.value : null,
|
|
95
95
|
noTitle: de.value,
|
|
96
|
-
source:
|
|
96
|
+
source: ve.value
|
|
97
97
|
});
|
|
98
98
|
requestAnimationFrame(() => {
|
|
99
99
|
E.value = Math.max(0.1, a), M.value = Math.max(0.1, l - 12);
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
L.value && (V.value && L.value.unobserve(V.value), L.value.disconnect()), L.value = new ResizeObserver(t), V.value =
|
|
102
|
+
L.value && (V.value && L.value.unobserve(V.value), L.value.disconnect()), L.value = new ResizeObserver(t), V.value = k.value.parentNode, L.value.observe(V.value);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
const { userOptionsVisible: q, setUserOptionsVisibility: be, keepUserOptionState: me } = Xt({ config: e.value }), { svgRef: Q } = Yt({ config: e.value.style.chart.title });
|
|
106
106
|
function J() {
|
|
107
107
|
const t = ze({
|
|
108
|
-
userConfig:
|
|
108
|
+
userConfig: T.config,
|
|
109
109
|
defaultConfig: lt
|
|
110
110
|
});
|
|
111
111
|
return t.theme ? {
|
|
112
112
|
...ze({
|
|
113
|
-
userConfig: qt.vue_ui_galaxy[t.theme] ||
|
|
113
|
+
userConfig: qt.vue_ui_galaxy[t.theme] || T.config,
|
|
114
114
|
defaultConfig: t
|
|
115
115
|
}),
|
|
116
116
|
customPalette: Lt[t.theme] || z
|
|
117
117
|
} : t;
|
|
118
118
|
}
|
|
119
|
-
Fe(() =>
|
|
119
|
+
Fe(() => T.config, (t) => {
|
|
120
120
|
e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ye(), ne.value += 1, ue.value += 1, re.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;
|
|
121
121
|
}, { deep: !0 });
|
|
122
122
|
const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Ht({
|
|
123
|
-
elementId: `galaxy_${
|
|
123
|
+
elementId: `galaxy_${m.value}`,
|
|
124
124
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
125
125
|
options: e.value.userOptions.print
|
|
126
|
-
}), at =
|
|
126
|
+
}), at = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), ot = v(() => Ft(e.value.customPalette)), p = o({
|
|
127
127
|
dataLabels: {
|
|
128
128
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
129
129
|
},
|
|
130
130
|
showTable: e.value.table.show,
|
|
131
131
|
showTooltip: e.value.style.chart.tooltip.show
|
|
132
|
-
}), E = o(250), M = o(180), st = o(0), nt = o(0),
|
|
132
|
+
}), E = o(250), M = o(180), st = o(0), nt = o(0), x = v(() => ({
|
|
133
133
|
width: E.value,
|
|
134
134
|
height: M.value,
|
|
135
135
|
viewBox: `${st.value} ${nt.value} ${E.value} ${M.value}`
|
|
136
|
-
})),
|
|
136
|
+
})), Te = Ye, f = o([]);
|
|
137
137
|
function A(t) {
|
|
138
|
-
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id),
|
|
138
|
+
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), Te("selectLegend", N.value.map((a) => ({
|
|
139
139
|
name: a.name,
|
|
140
140
|
color: a.color,
|
|
141
141
|
value: a.value
|
|
142
142
|
})));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
if (!
|
|
144
|
+
function xe(t) {
|
|
145
|
+
if (!w.value.length)
|
|
146
146
|
return e.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null;
|
|
147
|
-
const a =
|
|
147
|
+
const a = w.value.find((l) => l.name === t);
|
|
148
148
|
return a || (e.value.debug && console.warn(`VueUiGalaxy - Series name not found "${t}"`), null);
|
|
149
149
|
}
|
|
150
150
|
function ut(t) {
|
|
151
|
-
const a =
|
|
151
|
+
const a = xe(t);
|
|
152
152
|
a !== null && f.value.includes(a.id) && A({ id: a.id });
|
|
153
153
|
}
|
|
154
154
|
function rt(t) {
|
|
155
|
-
const a =
|
|
155
|
+
const a = xe(t);
|
|
156
156
|
a !== null && (f.value.includes(a.id) || A({ id: a.id }));
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const w = v(() => pe.value.map((t, a) => ({
|
|
159
159
|
name: t.name,
|
|
160
160
|
color: At(t.color) || ot.value[a] || z[a] || z[a % z.length],
|
|
161
161
|
value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
@@ -166,117 +166,117 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
166
166
|
absoluteIndex: a
|
|
167
167
|
})));
|
|
168
168
|
function it() {
|
|
169
|
-
return
|
|
169
|
+
return w.value.map((t) => ({
|
|
170
170
|
name: t.name,
|
|
171
171
|
color: t.color,
|
|
172
172
|
value: t.value
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
175
|
-
const
|
|
175
|
+
const C = v(() => w.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Se = o(190), Oe = v(() => w.value.filter((t) => !f.value.includes(t.id))), ct = v(
|
|
176
176
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
177
|
-
),
|
|
177
|
+
), vt = v(() => Nt({
|
|
178
178
|
maxPoints: Se.value,
|
|
179
179
|
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
180
180
|
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
181
181
|
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
182
|
-
startX:
|
|
183
|
-
startY:
|
|
184
|
-
boxWidth:
|
|
185
|
-
boxHeight:
|
|
186
|
-
padding:
|
|
187
|
-
})), N =
|
|
182
|
+
startX: x.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
|
|
183
|
+
startY: x.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
|
|
184
|
+
boxWidth: x.value.width,
|
|
185
|
+
boxHeight: x.value.height,
|
|
186
|
+
padding: ct.value
|
|
187
|
+
})), N = v(() => {
|
|
188
188
|
const t = [];
|
|
189
189
|
for (let a = 0; a < Oe.value.length; a += 1) {
|
|
190
|
-
const l = Oe.value[a], s = l.value /
|
|
190
|
+
const l = Oe.value[a], s = l.value / C.value * Se.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
191
191
|
t.push({
|
|
192
192
|
points: s,
|
|
193
193
|
...l,
|
|
194
194
|
seriesIndex: a,
|
|
195
|
-
proportion: l.value /
|
|
196
|
-
path:
|
|
195
|
+
proportion: l.value / C.value,
|
|
196
|
+
path: vt.value(s)
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
200
200
|
});
|
|
201
201
|
function K(t) {
|
|
202
|
-
const a = Math.min(E.value, M.value), l =
|
|
202
|
+
const a = Math.min(E.value, M.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, g = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
203
203
|
return {
|
|
204
204
|
border: s / 180 * a,
|
|
205
205
|
path: r / 180 * a,
|
|
206
206
|
blur: g / 180 * a
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const D = o(!1);
|
|
210
210
|
function Pe(t) {
|
|
211
|
-
|
|
211
|
+
D.value = t, se.value += 1;
|
|
212
212
|
}
|
|
213
213
|
const Z = o(null);
|
|
214
214
|
function dt(t) {
|
|
215
|
-
H.value = !1,
|
|
215
|
+
H.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
216
216
|
}
|
|
217
217
|
function ht(t) {
|
|
218
|
-
|
|
218
|
+
Te("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
219
219
|
}
|
|
220
220
|
function gt({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
221
221
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
|
|
222
222
|
datapoint: t,
|
|
223
223
|
seriesIndex: l,
|
|
224
|
-
series:
|
|
224
|
+
series: w.value,
|
|
225
225
|
config: e.value
|
|
226
|
-
}, H.value = s,
|
|
226
|
+
}, H.value = s, _.value = t.id;
|
|
227
227
|
let r = "";
|
|
228
228
|
const g = e.value.style.chart.tooltip.customFormat;
|
|
229
229
|
Ue(g) && Mt(() => g({
|
|
230
230
|
seriesIndex: l,
|
|
231
231
|
datapoint: t,
|
|
232
|
-
series:
|
|
232
|
+
series: w.value,
|
|
233
233
|
config: e.value
|
|
234
234
|
})) ? X.value = g({
|
|
235
235
|
seriesIndex: l,
|
|
236
236
|
datapoint: t,
|
|
237
|
-
series:
|
|
237
|
+
series: w.value,
|
|
238
238
|
config: e.value
|
|
239
239
|
}) : (r += `<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>`, r += `<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 && (r += `<b>${We(
|
|
240
240
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
241
241
|
t.value,
|
|
242
|
-
|
|
242
|
+
I({
|
|
243
243
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
244
244
|
v: t.value,
|
|
245
245
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
246
246
|
r: e.value.style.chart.tooltip.roundingValue
|
|
247
247
|
}),
|
|
248
248
|
{ datapoint: t, seriesIndex: l }
|
|
249
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
249
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${I({
|
|
250
250
|
v: t.proportion * 100,
|
|
251
251
|
s: "%",
|
|
252
252
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
253
|
-
})})</span></div>` : r += `<b>${
|
|
253
|
+
})})</span></div>` : r += `<b>${I({
|
|
254
254
|
v: t.proportion * 100,
|
|
255
255
|
s: "%",
|
|
256
256
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
257
257
|
})}</b></div>`), X.value = `<div>${r}</div>`);
|
|
258
258
|
}
|
|
259
|
-
const ee =
|
|
259
|
+
const ee = v(() => w.value.map((t, a) => ({
|
|
260
260
|
...t,
|
|
261
261
|
proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
262
262
|
opacity: f.value.includes(t.id) ? 0.5 : 1,
|
|
263
263
|
shape: t.shape || "circle",
|
|
264
264
|
segregate: () => A(t),
|
|
265
265
|
isSegregated: f.value.includes(t.id),
|
|
266
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value,
|
|
266
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, I({
|
|
267
267
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
268
268
|
v: t.value,
|
|
269
269
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
270
270
|
r: e.value.style.chart.legend.roundingValue
|
|
271
|
-
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value /
|
|
272
|
-
}))), pt =
|
|
271
|
+
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / C.value) ? "-" : I({ v: t.value / C.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
272
|
+
}))), pt = v(() => ({
|
|
273
273
|
cy: "galaxy-div-legend",
|
|
274
274
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
275
275
|
color: e.value.style.chart.legend.color,
|
|
276
276
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
277
277
|
paddingBottom: 12,
|
|
278
278
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
279
|
-
})),
|
|
279
|
+
})), S = v(() => {
|
|
280
280
|
const t = N.value.map((l) => ({
|
|
281
281
|
name: l.name,
|
|
282
282
|
color: l.color
|
|
@@ -285,27 +285,27 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
285
285
|
});
|
|
286
286
|
function te(t = null) {
|
|
287
287
|
Ee(() => {
|
|
288
|
-
const a =
|
|
288
|
+
const a = S.value.head.map((r, g) => [[
|
|
289
289
|
r.name
|
|
290
|
-
], [
|
|
290
|
+
], [S.value.body[g]], [isNaN(S.value.body[g] / C.value) ? "-" : S.value.body[g] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Vt(l);
|
|
291
291
|
t ? t(s) : Et({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
-
const G =
|
|
294
|
+
const G = v(() => {
|
|
295
295
|
const t = [
|
|
296
296
|
' <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>',
|
|
297
|
-
|
|
297
|
+
I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
298
298
|
"100%"
|
|
299
|
-
], a =
|
|
300
|
-
const $t =
|
|
299
|
+
], a = S.value.head.map((r, g) => {
|
|
300
|
+
const $t = I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
301
301
|
return [
|
|
302
302
|
{
|
|
303
303
|
color: r.color,
|
|
304
304
|
name: r.name
|
|
305
305
|
},
|
|
306
306
|
$t,
|
|
307
|
-
isNaN(
|
|
308
|
-
v:
|
|
307
|
+
isNaN(S.value.body[g] / C.value) ? "-" : I({
|
|
308
|
+
v: S.value.body[g] / C.value * 100,
|
|
309
309
|
s: "%",
|
|
310
310
|
r: e.value.table.td.roundingPercentage
|
|
311
311
|
})
|
|
@@ -334,10 +334,10 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
334
334
|
config: l
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
|
-
function
|
|
337
|
+
function Ie() {
|
|
338
338
|
p.value.showTable = !p.value.showTable;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function _e() {
|
|
341
341
|
p.value.showTooltip = !p.value.showTooltip;
|
|
342
342
|
}
|
|
343
343
|
const R = o(!1);
|
|
@@ -345,8 +345,8 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
345
345
|
R.value = !R.value;
|
|
346
346
|
}
|
|
347
347
|
async function ft({ scale: t = 2 } = {}) {
|
|
348
|
-
if (!
|
|
349
|
-
const { width: a, height: l } =
|
|
348
|
+
if (!k.value) return;
|
|
349
|
+
const { width: a, height: l } = k.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: g } = await jt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
350
350
|
return {
|
|
351
351
|
imageUri: r,
|
|
352
352
|
base64: g,
|
|
@@ -356,7 +356,7 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
356
356
|
aspectRatio: s
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
const B =
|
|
359
|
+
const B = v(() => {
|
|
360
360
|
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
361
361
|
return {
|
|
362
362
|
component: t ? tt : Qe,
|
|
@@ -366,8 +366,8 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
366
366
|
color: e.value.table.th.color,
|
|
367
367
|
headerColor: e.value.table.th.color,
|
|
368
368
|
headerBg: e.value.table.th.backgroundColor,
|
|
369
|
-
isFullscreen:
|
|
370
|
-
fullscreenParent:
|
|
369
|
+
isFullscreen: D.value,
|
|
370
|
+
fullscreenParent: k.value,
|
|
371
371
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
372
372
|
} : {
|
|
373
373
|
hideDetails: !0,
|
|
@@ -392,10 +392,10 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
392
392
|
function De() {
|
|
393
393
|
p.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
|
|
394
394
|
}
|
|
395
|
-
const yt =
|
|
395
|
+
const yt = v(() => ee.value.map((t) => ({
|
|
396
396
|
...t,
|
|
397
397
|
name: t.display
|
|
398
|
-
}))), bt =
|
|
398
|
+
}))), bt = v(() => e.value.style.chart.backgroundColor), mt = v(() => e.value.style.chart.legend), kt = v(() => e.value.style.chart.title), { exportSvg: wt, getSvg: Ct } = Kt({
|
|
399
399
|
svg: Q,
|
|
400
400
|
title: kt,
|
|
401
401
|
legend: mt,
|
|
@@ -418,41 +418,61 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
418
418
|
generateSvg: Le,
|
|
419
419
|
hideSeries: rt,
|
|
420
420
|
showSeries: ut,
|
|
421
|
-
toggleTable:
|
|
422
|
-
toggleTooltip:
|
|
421
|
+
toggleTable: Ie,
|
|
422
|
+
toggleTooltip: _e,
|
|
423
423
|
toggleAnnotator: le,
|
|
424
424
|
toggleFullscreen: Pe
|
|
425
|
-
}), (t, a) => (n(),
|
|
425
|
+
}), (t, a) => (n(), d("div", {
|
|
426
426
|
ref_key: "galaxyChart",
|
|
427
|
-
ref:
|
|
428
|
-
class: U(`vue-data-ui-component vue-ui-galaxy ${
|
|
427
|
+
ref: k,
|
|
428
|
+
class: U(`vue-data-ui-component vue-ui-galaxy ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
|
|
429
429
|
style: W(`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}`),
|
|
430
|
-
id: `galaxy_${
|
|
430
|
+
id: `galaxy_${m.value}`,
|
|
431
431
|
onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
|
|
432
432
|
onMouseleave: a[3] || (a[3] = () => u(be)(!1))
|
|
433
433
|
}, [
|
|
434
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
434
|
+
e.value.userOptions.buttons.annotator ? (n(), P(u(Ke), {
|
|
435
435
|
key: 0,
|
|
436
436
|
svgRef: u(Q),
|
|
437
437
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
438
438
|
color: e.value.style.chart.color,
|
|
439
439
|
active: R.value,
|
|
440
440
|
onClose: le
|
|
441
|
-
},
|
|
442
|
-
|
|
441
|
+
}, {
|
|
442
|
+
"annotator-action-close": i(() => [
|
|
443
|
+
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
444
|
+
]),
|
|
445
|
+
"annotator-action-color": i(({ color: l }) => [
|
|
446
|
+
c(t.$slots, "annotator-action-color", y(b({ color: l })), void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
"annotator-action-draw": i(({ mode: l }) => [
|
|
449
|
+
c(t.$slots, "annotator-action-draw", y(b({ mode: l })), void 0, !0)
|
|
450
|
+
]),
|
|
451
|
+
"annotator-action-undo": i(({ disabled: l }) => [
|
|
452
|
+
c(t.$slots, "annotator-action-undo", y(b({ disabled: l })), void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
"annotator-action-redo": i(({ disabled: l }) => [
|
|
455
|
+
c(t.$slots, "annotator-action-redo", y(b({ disabled: l })), void 0, !0)
|
|
456
|
+
]),
|
|
457
|
+
"annotator-action-delete": i(({ disabled: l }) => [
|
|
458
|
+
c(t.$slots, "annotator-action-delete", y(b({ disabled: l })), void 0, !0)
|
|
459
|
+
]),
|
|
460
|
+
_: 3
|
|
461
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
462
|
+
at.value ? (n(), d("div", {
|
|
443
463
|
key: 1,
|
|
444
464
|
ref_key: "noTitle",
|
|
445
465
|
ref: de,
|
|
446
466
|
class: "vue-data-ui-no-title-space",
|
|
447
467
|
style: "height:36px; width: 100%;background:transparent"
|
|
448
|
-
}, null, 512)) :
|
|
449
|
-
e.value.style.chart.title.text ? (n(),
|
|
468
|
+
}, null, 512)) : h("", !0),
|
|
469
|
+
e.value.style.chart.title.text ? (n(), d("div", {
|
|
450
470
|
key: 2,
|
|
451
471
|
ref_key: "chartTitle",
|
|
452
472
|
ref: ie,
|
|
453
473
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
454
474
|
}, [
|
|
455
|
-
(n(),
|
|
475
|
+
(n(), P(Qt, {
|
|
456
476
|
key: `title_${ne.value}`,
|
|
457
477
|
config: {
|
|
458
478
|
title: {
|
|
@@ -465,11 +485,11 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
465
485
|
}
|
|
466
486
|
}
|
|
467
487
|
}, null, 8, ["config"]))
|
|
468
|
-
], 512)) :
|
|
469
|
-
|
|
470
|
-
id: `legend-top-${
|
|
488
|
+
], 512)) : h("", !0),
|
|
489
|
+
$("div", {
|
|
490
|
+
id: `legend-top-${m.value}`
|
|
471
491
|
}, null, 8, tl),
|
|
472
|
-
e.value.userOptions.show && ge.value && (u(me) || u(q)) ? (n(),
|
|
492
|
+
e.value.userOptions.show && ge.value && (u(me) || u(q)) ? (n(), P(u(Ze), {
|
|
473
493
|
ref_key: "userOptionsRef",
|
|
474
494
|
ref: Y,
|
|
475
495
|
key: `user_option_${se.value}`,
|
|
@@ -477,7 +497,7 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
477
497
|
color: e.value.style.chart.color,
|
|
478
498
|
isPrinting: u(ke),
|
|
479
499
|
isImaging: u(we),
|
|
480
|
-
uid:
|
|
500
|
+
uid: m.value,
|
|
481
501
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
482
502
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
483
503
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -486,9 +506,9 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
486
506
|
hasTable: e.value.userOptions.buttons.table,
|
|
487
507
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
488
508
|
isTooltip: p.value.showTooltip,
|
|
489
|
-
isFullscreen:
|
|
509
|
+
isFullscreen: D.value,
|
|
490
510
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
491
|
-
chartElement:
|
|
511
|
+
chartElement: k.value,
|
|
492
512
|
position: e.value.userOptions.position,
|
|
493
513
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
494
514
|
isAnnotation: R.value,
|
|
@@ -500,8 +520,8 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
500
520
|
onGenerateCsv: te,
|
|
501
521
|
onGenerateImage: u($e),
|
|
502
522
|
onGenerateSvg: Le,
|
|
503
|
-
onToggleTable:
|
|
504
|
-
onToggleTooltip:
|
|
523
|
+
onToggleTable: Ie,
|
|
524
|
+
onToggleTooltip: _e,
|
|
505
525
|
onToggleAnnotator: le,
|
|
506
526
|
style: W({
|
|
507
527
|
visibility: u(me) ? u(q) ? "visible" : "hidden" : "visible"
|
|
@@ -509,137 +529,137 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
509
529
|
}, Ae({ _: 2 }, [
|
|
510
530
|
t.$slots.menuIcon ? {
|
|
511
531
|
name: "menuIcon",
|
|
512
|
-
fn:
|
|
513
|
-
|
|
532
|
+
fn: i(({ isOpen: l, color: s }) => [
|
|
533
|
+
c(t.$slots, "menuIcon", y(b({ isOpen: l, color: s })), void 0, !0)
|
|
514
534
|
]),
|
|
515
535
|
key: "0"
|
|
516
536
|
} : void 0,
|
|
517
537
|
t.$slots.optionTooltip ? {
|
|
518
538
|
name: "optionTooltip",
|
|
519
|
-
fn:
|
|
520
|
-
|
|
539
|
+
fn: i(() => [
|
|
540
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
521
541
|
]),
|
|
522
542
|
key: "1"
|
|
523
543
|
} : void 0,
|
|
524
544
|
t.$slots.optionPdf ? {
|
|
525
545
|
name: "optionPdf",
|
|
526
|
-
fn:
|
|
527
|
-
|
|
546
|
+
fn: i(() => [
|
|
547
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
528
548
|
]),
|
|
529
549
|
key: "2"
|
|
530
550
|
} : void 0,
|
|
531
551
|
t.$slots.optionCsv ? {
|
|
532
552
|
name: "optionCsv",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
553
|
+
fn: i(() => [
|
|
554
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
535
555
|
]),
|
|
536
556
|
key: "3"
|
|
537
557
|
} : void 0,
|
|
538
558
|
t.$slots.optionImg ? {
|
|
539
559
|
name: "optionImg",
|
|
540
|
-
fn:
|
|
541
|
-
|
|
560
|
+
fn: i(() => [
|
|
561
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
542
562
|
]),
|
|
543
563
|
key: "4"
|
|
544
564
|
} : void 0,
|
|
545
565
|
t.$slots.optionSvg ? {
|
|
546
566
|
name: "optionSvg",
|
|
547
|
-
fn:
|
|
548
|
-
|
|
567
|
+
fn: i(() => [
|
|
568
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
549
569
|
]),
|
|
550
570
|
key: "5"
|
|
551
571
|
} : void 0,
|
|
552
572
|
t.$slots.optionTable ? {
|
|
553
573
|
name: "optionTable",
|
|
554
|
-
fn:
|
|
555
|
-
|
|
574
|
+
fn: i(() => [
|
|
575
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
556
576
|
]),
|
|
557
577
|
key: "6"
|
|
558
578
|
} : void 0,
|
|
559
579
|
t.$slots.optionFullscreen ? {
|
|
560
580
|
name: "optionFullscreen",
|
|
561
|
-
fn:
|
|
562
|
-
|
|
581
|
+
fn: i(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
582
|
+
c(t.$slots, "optionFullscreen", y(b({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
563
583
|
]),
|
|
564
584
|
key: "7"
|
|
565
585
|
} : void 0,
|
|
566
586
|
t.$slots.optionAnnotator ? {
|
|
567
587
|
name: "optionAnnotator",
|
|
568
|
-
fn:
|
|
569
|
-
|
|
588
|
+
fn: i(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
589
|
+
c(t.$slots, "optionAnnotator", y(b({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
570
590
|
]),
|
|
571
591
|
key: "8"
|
|
572
592
|
} : void 0
|
|
573
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
574
|
-
(n(),
|
|
593
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
594
|
+
(n(), d("svg", {
|
|
575
595
|
ref_key: "svgRef",
|
|
576
596
|
ref: Q,
|
|
577
597
|
xmlns: u(Bt),
|
|
578
|
-
class: U({ "vue-data-ui-fullscreen--on":
|
|
579
|
-
viewBox:
|
|
598
|
+
class: U({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
599
|
+
viewBox: x.value.viewBox,
|
|
580
600
|
style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
581
601
|
}, [
|
|
582
602
|
ae(u(et)),
|
|
583
|
-
t.$slots["chart-background"] ? (n(),
|
|
603
|
+
t.$slots["chart-background"] ? (n(), d("foreignObject", {
|
|
584
604
|
key: 0,
|
|
585
605
|
x: 0,
|
|
586
606
|
y: 0,
|
|
587
|
-
width:
|
|
588
|
-
height:
|
|
607
|
+
width: x.value.width,
|
|
608
|
+
height: x.value.height,
|
|
589
609
|
style: {
|
|
590
610
|
pointerEvents: "none"
|
|
591
611
|
}
|
|
592
612
|
}, [
|
|
593
|
-
|
|
594
|
-
], 8, al)) :
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
id: `blur_${
|
|
613
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
614
|
+
], 8, al)) : h("", !0),
|
|
615
|
+
$("defs", null, [
|
|
616
|
+
$("filter", {
|
|
617
|
+
id: `blur_${m.value}`,
|
|
598
618
|
x: "-50%",
|
|
599
619
|
y: "-50%",
|
|
600
620
|
width: "200%",
|
|
601
621
|
height: "200%"
|
|
602
622
|
}, [
|
|
603
|
-
|
|
623
|
+
$("feGaussianBlur", {
|
|
604
624
|
in: "SourceGraphic",
|
|
605
625
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
606
626
|
}, null, 8, sl)
|
|
607
627
|
], 8, ol)
|
|
608
628
|
]),
|
|
609
|
-
(n(!0),
|
|
610
|
-
l.value ? (n(),
|
|
629
|
+
(n(!0), d(Ne, null, Be(N.value, (l) => (n(), d("g", null, [
|
|
630
|
+
l.value ? (n(), d("path", {
|
|
611
631
|
key: 0,
|
|
612
632
|
d: l.path,
|
|
613
633
|
fill: "none",
|
|
614
634
|
stroke: e.value.style.chart.backgroundColor,
|
|
615
635
|
"stroke-width": K(l).border,
|
|
616
636
|
"stroke-linecap": "round"
|
|
617
|
-
}, null, 8, nl)) :
|
|
618
|
-
l.value ? (n(),
|
|
637
|
+
}, null, 8, nl)) : h("", !0),
|
|
638
|
+
l.value ? (n(), d("path", {
|
|
619
639
|
key: 1,
|
|
620
640
|
d: l.path,
|
|
621
641
|
fill: "none",
|
|
622
642
|
stroke: l.color,
|
|
623
643
|
"stroke-width": K(l).path,
|
|
624
644
|
"stroke-linecap": "round",
|
|
625
|
-
class: U(`${
|
|
626
|
-
}, null, 10, ul)) :
|
|
627
|
-
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(),
|
|
645
|
+
class: U(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
646
|
+
}, null, 10, ul)) : h("", !0),
|
|
647
|
+
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), d("g", {
|
|
628
648
|
key: 2,
|
|
629
|
-
filter: `url(#blur_${
|
|
649
|
+
filter: `url(#blur_${m.value})`
|
|
630
650
|
}, [
|
|
631
|
-
|
|
651
|
+
$("path", {
|
|
632
652
|
d: l.path,
|
|
633
653
|
fill: "none",
|
|
634
654
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
635
655
|
"stroke-width": K(l).blur,
|
|
636
656
|
"stroke-linecap": "round",
|
|
637
|
-
class: U(`vue-ui-galaxy-gradient ${
|
|
657
|
+
class: U(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
638
658
|
}, null, 10, il)
|
|
639
|
-
], 8, rl)) :
|
|
659
|
+
], 8, rl)) : h("", !0)
|
|
640
660
|
]))), 256)),
|
|
641
|
-
(n(!0),
|
|
642
|
-
l.value ? (n(),
|
|
661
|
+
(n(!0), d(Ne, null, Be(N.value, (l, s) => (n(), d("g", null, [
|
|
662
|
+
l.value ? (n(), d("path", {
|
|
643
663
|
key: 0,
|
|
644
664
|
d: l.path,
|
|
645
665
|
fill: "none",
|
|
@@ -653,50 +673,50 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
653
673
|
}),
|
|
654
674
|
onMouseleave: (r) => dt(l),
|
|
655
675
|
onClick: (r) => ht(l)
|
|
656
|
-
}, null, 40,
|
|
676
|
+
}, null, 40, cl)) : h("", !0)
|
|
657
677
|
]))), 256)),
|
|
658
|
-
|
|
678
|
+
c(t.$slots, "svg", { svg: x.value }, void 0, !0)
|
|
659
679
|
], 14, ll)),
|
|
660
|
-
t.$slots.watermark ? (n(),
|
|
661
|
-
|
|
662
|
-
])) :
|
|
663
|
-
|
|
664
|
-
id: `legend-bottom-${
|
|
680
|
+
t.$slots.watermark ? (n(), d("div", vl, [
|
|
681
|
+
c(t.$slots, "watermark", y(b({ isPrinting: u(ke) || u(we) })), void 0, !0)
|
|
682
|
+
])) : h("", !0),
|
|
683
|
+
$("div", {
|
|
684
|
+
id: `legend-bottom-${m.value}`
|
|
665
685
|
}, null, 8, dl),
|
|
666
|
-
he.value ? (n(),
|
|
686
|
+
he.value ? (n(), P(St, {
|
|
667
687
|
key: 5,
|
|
668
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
688
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
669
689
|
}, [
|
|
670
|
-
|
|
690
|
+
$("div", {
|
|
671
691
|
ref_key: "chartLegend",
|
|
672
|
-
ref:
|
|
692
|
+
ref: ce
|
|
673
693
|
}, [
|
|
674
|
-
e.value.style.chart.legend.show ? (n(),
|
|
694
|
+
e.value.style.chart.legend.show ? (n(), P(Jt, {
|
|
675
695
|
key: `legend_${re.value}`,
|
|
676
696
|
legendSet: ee.value,
|
|
677
697
|
config: pt.value,
|
|
678
698
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => A(l))
|
|
679
699
|
}, {
|
|
680
|
-
item:
|
|
681
|
-
u(j) ?
|
|
700
|
+
item: i(({ legend: l, index: s }) => [
|
|
701
|
+
u(j) ? h("", !0) : (n(), d("div", {
|
|
682
702
|
key: 0,
|
|
683
703
|
onClick: (r) => A(l),
|
|
684
704
|
style: W(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
685
705
|
}, oe(l.display), 13, hl))
|
|
686
706
|
]),
|
|
687
707
|
_: 1
|
|
688
|
-
}, 8, ["legendSet", "config"])) :
|
|
689
|
-
|
|
708
|
+
}, 8, ["legendSet", "config"])) : h("", !0),
|
|
709
|
+
c(t.$slots, "legend", { legend: ee.value }, void 0, !0)
|
|
690
710
|
], 512)
|
|
691
|
-
], 8, ["to"])) :
|
|
692
|
-
t.$slots.source ? (n(),
|
|
711
|
+
], 8, ["to"])) : h("", !0),
|
|
712
|
+
t.$slots.source ? (n(), d("div", {
|
|
693
713
|
key: 6,
|
|
694
714
|
ref_key: "source",
|
|
695
|
-
ref:
|
|
715
|
+
ref: ve,
|
|
696
716
|
dir: "auto"
|
|
697
717
|
}, [
|
|
698
|
-
|
|
699
|
-
], 512)) :
|
|
718
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
719
|
+
], 512)) : h("", !0),
|
|
700
720
|
ae(u(je), {
|
|
701
721
|
show: p.value.showTooltip && H.value,
|
|
702
722
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -708,30 +728,30 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
708
728
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
709
729
|
position: e.value.style.chart.tooltip.position,
|
|
710
730
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
711
|
-
parent:
|
|
731
|
+
parent: k.value,
|
|
712
732
|
content: X.value,
|
|
713
|
-
isFullscreen:
|
|
733
|
+
isFullscreen: D.value,
|
|
714
734
|
isCustom: u(Ue)(e.value.style.chart.tooltip.customFormat),
|
|
715
735
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
716
736
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
717
737
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
718
738
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
719
739
|
}, {
|
|
720
|
-
"tooltip-before":
|
|
721
|
-
|
|
740
|
+
"tooltip-before": i(() => [
|
|
741
|
+
c(t.$slots, "tooltip-before", y(b({ ...Z.value })), void 0, !0)
|
|
722
742
|
]),
|
|
723
|
-
"tooltip-after":
|
|
724
|
-
|
|
743
|
+
"tooltip-after": i(() => [
|
|
744
|
+
c(t.$slots, "tooltip-after", y(b({ ...Z.value })), void 0, !0)
|
|
725
745
|
]),
|
|
726
746
|
_: 3
|
|
727
747
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
728
|
-
ge.value && e.value.userOptions.buttons.table ? (n(),
|
|
748
|
+
ge.value && e.value.userOptions.buttons.table ? (n(), P(Ot(B.value.component), Pt({ key: 7 }, B.value.props, {
|
|
729
749
|
ref_key: "tableUnit",
|
|
730
750
|
ref: F,
|
|
731
751
|
onClose: De
|
|
732
752
|
}), Ae({
|
|
733
|
-
content:
|
|
734
|
-
(n(),
|
|
753
|
+
content: i(() => [
|
|
754
|
+
(n(), P(u(Je), {
|
|
735
755
|
key: `table_${ue.value}`,
|
|
736
756
|
colNames: G.value.colNames,
|
|
737
757
|
head: G.value.head,
|
|
@@ -741,13 +761,13 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
741
761
|
withCloseButton: !e.value.table.useDialog,
|
|
742
762
|
onClose: De
|
|
743
763
|
}, {
|
|
744
|
-
th:
|
|
745
|
-
|
|
764
|
+
th: i(({ th: l }) => [
|
|
765
|
+
$("div", {
|
|
746
766
|
innerHTML: l,
|
|
747
767
|
style: { display: "flex", "align-items": "center" }
|
|
748
768
|
}, null, 8, gl)
|
|
749
769
|
]),
|
|
750
|
-
td:
|
|
770
|
+
td: i(({ td: l }) => [
|
|
751
771
|
Ve(oe(l.name || l), 1)
|
|
752
772
|
]),
|
|
753
773
|
_: 1
|
|
@@ -757,15 +777,15 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
757
777
|
}, [
|
|
758
778
|
e.value.table.useDialog ? {
|
|
759
779
|
name: "title",
|
|
760
|
-
fn:
|
|
780
|
+
fn: i(() => [
|
|
761
781
|
Ve(oe(B.value.title), 1)
|
|
762
782
|
]),
|
|
763
783
|
key: "0"
|
|
764
784
|
} : void 0,
|
|
765
785
|
e.value.table.useDialog ? {
|
|
766
786
|
name: "actions",
|
|
767
|
-
fn:
|
|
768
|
-
|
|
787
|
+
fn: i(() => [
|
|
788
|
+
$("button", {
|
|
769
789
|
tabindex: "0",
|
|
770
790
|
class: "vue-ui-user-options-button",
|
|
771
791
|
onClick: a[1] || (a[1] = (l) => te(e.value.userOptions.callbacks.csv))
|
|
@@ -778,11 +798,11 @@ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "heigh
|
|
|
778
798
|
]),
|
|
779
799
|
key: "1"
|
|
780
800
|
} : void 0
|
|
781
|
-
]), 1040)) :
|
|
782
|
-
u(j) ? (n(),
|
|
801
|
+
]), 1040)) : h("", !0),
|
|
802
|
+
u(j) ? (n(), P(zt, { key: 8 })) : h("", !0)
|
|
783
803
|
], 46, el));
|
|
784
804
|
}
|
|
785
|
-
},
|
|
805
|
+
}, _l = /* @__PURE__ */ Zt(pl, [["__scopeId", "data-v-2bf9793a"]]);
|
|
786
806
|
export {
|
|
787
|
-
|
|
807
|
+
_l as default
|
|
788
808
|
};
|