vue-data-ui 3.5.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,808 +0,0 @@
|
|
|
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
|
-
import { t as Gt, u as Rt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Wt, a as ze } from "./useNestedProp-CReNavA0.js";
|
|
5
|
-
import { u as Ut, B as zt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Ht } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
-
import { u as Xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import jt from "./img-BecE5qXd.js";
|
|
10
|
-
import { t as qt } from "./themes-AUNCOb2G.js";
|
|
11
|
-
import Qt from "./Title-BzH_LEA3.js";
|
|
12
|
-
import Jt from "./Legend-G6GMcdAc.js";
|
|
13
|
-
import { u as Kt } from "./useSvgExport-DrjCWun4.js";
|
|
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"], cl = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], vl = {
|
|
16
|
-
key: 4,
|
|
17
|
-
class: "vue-data-ui-watermark"
|
|
18
|
-
}, dl = ["id"], hl = ["onClick"], gl = ["innerHTML"], pl = {
|
|
19
|
-
__name: "vue-ui-galaxy",
|
|
20
|
-
props: {
|
|
21
|
-
config: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default() {
|
|
24
|
-
return {};
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
dataset: {
|
|
28
|
-
type: Array,
|
|
29
|
-
default() {
|
|
30
|
-
return [];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(He, { expose: Xe, emit: Ye }) {
|
|
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
|
-
FINAL_CONFIG: e,
|
|
39
|
-
prepareConfig: J,
|
|
40
|
-
callback: () => {
|
|
41
|
-
Promise.resolve().then(async () => {
|
|
42
|
-
await Ee(), p.value.showTable = e.value.table.show;
|
|
43
|
-
});
|
|
44
|
-
},
|
|
45
|
-
skeletonDataset: [
|
|
46
|
-
{ name: "_", values: [21], color: "#DBDBDB" },
|
|
47
|
-
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
48
|
-
{ name: "_", values: [8], color: "#ADADAD" }
|
|
49
|
-
],
|
|
50
|
-
skeletonConfig: It({
|
|
51
|
-
defaultConfig: e.value,
|
|
52
|
-
userConfig: {
|
|
53
|
-
userOptions: { show: !1 },
|
|
54
|
-
table: { show: !1 },
|
|
55
|
-
useCssAnimation: !1,
|
|
56
|
-
style: {
|
|
57
|
-
chart: {
|
|
58
|
-
backgroundColor: "#99999930",
|
|
59
|
-
legend: {
|
|
60
|
-
backgroundColor: "transparent"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
xt(() => {
|
|
68
|
-
he.value = !0, ye();
|
|
69
|
-
});
|
|
70
|
-
const fe = v(() => !!e.value.debug);
|
|
71
|
-
function ye() {
|
|
72
|
-
if (_t(T.dataset) ? Ge({
|
|
73
|
-
componentName: "VueUiGalaxy",
|
|
74
|
-
type: "dataset",
|
|
75
|
-
debug: fe.value
|
|
76
|
-
}) : T.dataset.forEach((t, a) => {
|
|
77
|
-
Dt({
|
|
78
|
-
datasetObject: t,
|
|
79
|
-
requiredAttributes: ["name", "values"]
|
|
80
|
-
}).forEach((l) => {
|
|
81
|
-
Ge({
|
|
82
|
-
componentName: "VueUiGalaxy",
|
|
83
|
-
type: "datasetSerieAttribute",
|
|
84
|
-
property: l,
|
|
85
|
-
index: a,
|
|
86
|
-
debug: fe.value
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}), e.value.responsive) {
|
|
90
|
-
const t = Gt(() => {
|
|
91
|
-
const { width: a, height: l } = Rt({
|
|
92
|
-
chart: k.value,
|
|
93
|
-
title: e.value.style.chart.title.text ? ie.value : null,
|
|
94
|
-
legend: e.value.style.chart.legend.show ? ce.value : null,
|
|
95
|
-
noTitle: de.value,
|
|
96
|
-
source: ve.value
|
|
97
|
-
});
|
|
98
|
-
requestAnimationFrame(() => {
|
|
99
|
-
E.value = Math.max(0.1, a), M.value = Math.max(0.1, l - 12);
|
|
100
|
-
});
|
|
101
|
-
});
|
|
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
|
-
}
|
|
104
|
-
}
|
|
105
|
-
const { userOptionsVisible: q, setUserOptionsVisibility: be, keepUserOptionState: me } = Xt({ config: e.value }), { svgRef: Q } = Yt({ config: e.value.style.chart.title });
|
|
106
|
-
function J() {
|
|
107
|
-
const t = ze({
|
|
108
|
-
userConfig: T.config,
|
|
109
|
-
defaultConfig: lt
|
|
110
|
-
});
|
|
111
|
-
return t.theme ? {
|
|
112
|
-
...ze({
|
|
113
|
-
userConfig: qt.vue_ui_galaxy[t.theme] || T.config,
|
|
114
|
-
defaultConfig: t
|
|
115
|
-
}),
|
|
116
|
-
customPalette: Lt[t.theme] || z
|
|
117
|
-
} : t;
|
|
118
|
-
}
|
|
119
|
-
Fe(() => T.config, (t) => {
|
|
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
|
-
}, { deep: !0 });
|
|
122
|
-
const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Ht({
|
|
123
|
-
elementId: `galaxy_${m.value}`,
|
|
124
|
-
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
125
|
-
options: e.value.userOptions.print
|
|
126
|
-
}), at = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), ot = v(() => Ft(e.value.customPalette)), p = o({
|
|
127
|
-
dataLabels: {
|
|
128
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
129
|
-
},
|
|
130
|
-
showTable: e.value.table.show,
|
|
131
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
132
|
-
}), E = o(250), M = o(180), st = o(0), nt = o(0), x = v(() => ({
|
|
133
|
-
width: E.value,
|
|
134
|
-
height: M.value,
|
|
135
|
-
viewBox: `${st.value} ${nt.value} ${E.value} ${M.value}`
|
|
136
|
-
})), Te = Ye, f = o([]);
|
|
137
|
-
function A(t) {
|
|
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
|
-
name: a.name,
|
|
140
|
-
color: a.color,
|
|
141
|
-
value: a.value
|
|
142
|
-
})));
|
|
143
|
-
}
|
|
144
|
-
function xe(t) {
|
|
145
|
-
if (!w.value.length)
|
|
146
|
-
return e.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null;
|
|
147
|
-
const a = w.value.find((l) => l.name === t);
|
|
148
|
-
return a || (e.value.debug && console.warn(`VueUiGalaxy - Series name not found "${t}"`), null);
|
|
149
|
-
}
|
|
150
|
-
function ut(t) {
|
|
151
|
-
const a = xe(t);
|
|
152
|
-
a !== null && f.value.includes(a.id) && A({ id: a.id });
|
|
153
|
-
}
|
|
154
|
-
function rt(t) {
|
|
155
|
-
const a = xe(t);
|
|
156
|
-
a !== null && (f.value.includes(a.id) || A({ id: a.id }));
|
|
157
|
-
}
|
|
158
|
-
const w = v(() => pe.value.map((t, a) => ({
|
|
159
|
-
name: t.name,
|
|
160
|
-
color: At(t.color) || ot.value[a] || z[a] || z[a % z.length],
|
|
161
|
-
value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
162
|
-
absoluteValues: Re(t.values),
|
|
163
|
-
id: Me()
|
|
164
|
-
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
165
|
-
...t,
|
|
166
|
-
absoluteIndex: a
|
|
167
|
-
})));
|
|
168
|
-
function it() {
|
|
169
|
-
return w.value.map((t) => ({
|
|
170
|
-
name: t.name,
|
|
171
|
-
color: t.color,
|
|
172
|
-
value: t.value
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
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
|
-
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
177
|
-
), vt = v(() => Nt({
|
|
178
|
-
maxPoints: Se.value,
|
|
179
|
-
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
180
|
-
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
181
|
-
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
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
|
-
const t = [];
|
|
189
|
-
for (let a = 0; a < Oe.value.length; a += 1) {
|
|
190
|
-
const l = Oe.value[a], s = l.value / C.value * Se.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
191
|
-
t.push({
|
|
192
|
-
points: s,
|
|
193
|
-
...l,
|
|
194
|
-
seriesIndex: a,
|
|
195
|
-
proportion: l.value / C.value,
|
|
196
|
-
path: vt.value(s)
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
200
|
-
});
|
|
201
|
-
function K(t) {
|
|
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
|
-
return {
|
|
204
|
-
border: s / 180 * a,
|
|
205
|
-
path: r / 180 * a,
|
|
206
|
-
blur: g / 180 * a
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
const D = o(!1);
|
|
210
|
-
function Pe(t) {
|
|
211
|
-
D.value = t, se.value += 1;
|
|
212
|
-
}
|
|
213
|
-
const Z = o(null);
|
|
214
|
-
function dt(t) {
|
|
215
|
-
H.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
216
|
-
}
|
|
217
|
-
function ht(t) {
|
|
218
|
-
Te("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
219
|
-
}
|
|
220
|
-
function gt({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
221
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
|
|
222
|
-
datapoint: t,
|
|
223
|
-
seriesIndex: l,
|
|
224
|
-
series: w.value,
|
|
225
|
-
config: e.value
|
|
226
|
-
}, H.value = s, _.value = t.id;
|
|
227
|
-
let r = "";
|
|
228
|
-
const g = e.value.style.chart.tooltip.customFormat;
|
|
229
|
-
Ue(g) && Mt(() => g({
|
|
230
|
-
seriesIndex: l,
|
|
231
|
-
datapoint: t,
|
|
232
|
-
series: w.value,
|
|
233
|
-
config: e.value
|
|
234
|
-
})) ? X.value = g({
|
|
235
|
-
seriesIndex: l,
|
|
236
|
-
datapoint: t,
|
|
237
|
-
series: w.value,
|
|
238
|
-
config: e.value
|
|
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
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
241
|
-
t.value,
|
|
242
|
-
I({
|
|
243
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
244
|
-
v: t.value,
|
|
245
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
246
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
247
|
-
}),
|
|
248
|
-
{ datapoint: t, seriesIndex: l }
|
|
249
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${I({
|
|
250
|
-
v: t.proportion * 100,
|
|
251
|
-
s: "%",
|
|
252
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
253
|
-
})})</span></div>` : r += `<b>${I({
|
|
254
|
-
v: t.proportion * 100,
|
|
255
|
-
s: "%",
|
|
256
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
257
|
-
})}</b></div>`), X.value = `<div>${r}</div>`);
|
|
258
|
-
}
|
|
259
|
-
const ee = v(() => w.value.map((t, a) => ({
|
|
260
|
-
...t,
|
|
261
|
-
proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
262
|
-
opacity: f.value.includes(t.id) ? 0.5 : 1,
|
|
263
|
-
shape: t.shape || "circle",
|
|
264
|
-
segregate: () => A(t),
|
|
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, I({
|
|
267
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
268
|
-
v: t.value,
|
|
269
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
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 / 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
|
-
cy: "galaxy-div-legend",
|
|
274
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
275
|
-
color: e.value.style.chart.legend.color,
|
|
276
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
277
|
-
paddingBottom: 12,
|
|
278
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
279
|
-
})), S = v(() => {
|
|
280
|
-
const t = N.value.map((l) => ({
|
|
281
|
-
name: l.name,
|
|
282
|
-
color: l.color
|
|
283
|
-
})), a = N.value.map((l) => l.value);
|
|
284
|
-
return { head: t, body: a };
|
|
285
|
-
});
|
|
286
|
-
function te(t = null) {
|
|
287
|
-
Ee(() => {
|
|
288
|
-
const a = S.value.head.map((r, g) => [[
|
|
289
|
-
r.name
|
|
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
|
-
t ? t(s) : Et({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
const G = v(() => {
|
|
295
|
-
const t = [
|
|
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
|
-
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
|
-
"100%"
|
|
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
|
-
return [
|
|
302
|
-
{
|
|
303
|
-
color: r.color,
|
|
304
|
-
name: r.name
|
|
305
|
-
},
|
|
306
|
-
$t,
|
|
307
|
-
isNaN(S.value.body[g] / C.value) ? "-" : I({
|
|
308
|
-
v: S.value.body[g] / C.value * 100,
|
|
309
|
-
s: "%",
|
|
310
|
-
r: e.value.table.td.roundingPercentage
|
|
311
|
-
})
|
|
312
|
-
];
|
|
313
|
-
}), l = {
|
|
314
|
-
th: {
|
|
315
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
316
|
-
color: e.value.table.th.color,
|
|
317
|
-
outline: e.value.table.th.outline
|
|
318
|
-
},
|
|
319
|
-
td: {
|
|
320
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
321
|
-
color: e.value.table.td.color,
|
|
322
|
-
outline: e.value.table.td.outline
|
|
323
|
-
},
|
|
324
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
325
|
-
};
|
|
326
|
-
return {
|
|
327
|
-
colNames: [
|
|
328
|
-
e.value.table.columnNames.series,
|
|
329
|
-
e.value.table.columnNames.value,
|
|
330
|
-
e.value.table.columnNames.percentage
|
|
331
|
-
],
|
|
332
|
-
head: t,
|
|
333
|
-
body: a,
|
|
334
|
-
config: l
|
|
335
|
-
};
|
|
336
|
-
});
|
|
337
|
-
function Ie() {
|
|
338
|
-
p.value.showTable = !p.value.showTable;
|
|
339
|
-
}
|
|
340
|
-
function _e() {
|
|
341
|
-
p.value.showTooltip = !p.value.showTooltip;
|
|
342
|
-
}
|
|
343
|
-
const R = o(!1);
|
|
344
|
-
function le() {
|
|
345
|
-
R.value = !R.value;
|
|
346
|
-
}
|
|
347
|
-
async function ft({ scale: t = 2 } = {}) {
|
|
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
|
-
return {
|
|
351
|
-
imageUri: r,
|
|
352
|
-
base64: g,
|
|
353
|
-
title: e.value.style.chart.title.text,
|
|
354
|
-
width: a,
|
|
355
|
-
height: l,
|
|
356
|
-
aspectRatio: s
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
const B = v(() => {
|
|
360
|
-
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
361
|
-
return {
|
|
362
|
-
component: t ? tt : Qe,
|
|
363
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
364
|
-
props: t ? {
|
|
365
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
366
|
-
color: e.value.table.th.color,
|
|
367
|
-
headerColor: e.value.table.th.color,
|
|
368
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
369
|
-
isFullscreen: D.value,
|
|
370
|
-
fullscreenParent: k.value,
|
|
371
|
-
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
372
|
-
} : {
|
|
373
|
-
hideDetails: !0,
|
|
374
|
-
config: {
|
|
375
|
-
open: a,
|
|
376
|
-
maxHeight: 1e4,
|
|
377
|
-
body: {
|
|
378
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
379
|
-
color: e.value.style.chart.color
|
|
380
|
-
},
|
|
381
|
-
head: {
|
|
382
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
383
|
-
color: e.value.style.chart.color
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
});
|
|
389
|
-
Fe(() => p.value.showTable, (t) => {
|
|
390
|
-
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
391
|
-
});
|
|
392
|
-
function De() {
|
|
393
|
-
p.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
|
|
394
|
-
}
|
|
395
|
-
const yt = v(() => ee.value.map((t) => ({
|
|
396
|
-
...t,
|
|
397
|
-
name: t.display
|
|
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
|
-
svg: Q,
|
|
400
|
-
title: kt,
|
|
401
|
-
legend: mt,
|
|
402
|
-
legendItems: yt,
|
|
403
|
-
backgroundColor: bt
|
|
404
|
-
});
|
|
405
|
-
async function Le({ isCb: t }) {
|
|
406
|
-
if (t) {
|
|
407
|
-
const { blob: a, url: l, text: s, dataUrl: r } = await Ct();
|
|
408
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: r });
|
|
409
|
-
} else
|
|
410
|
-
wt();
|
|
411
|
-
}
|
|
412
|
-
return Xe({
|
|
413
|
-
getData: it,
|
|
414
|
-
getImage: ft,
|
|
415
|
-
generatePdf: Ce,
|
|
416
|
-
generateCsv: te,
|
|
417
|
-
generateImage: $e,
|
|
418
|
-
generateSvg: Le,
|
|
419
|
-
hideSeries: rt,
|
|
420
|
-
showSeries: ut,
|
|
421
|
-
toggleTable: Ie,
|
|
422
|
-
toggleTooltip: _e,
|
|
423
|
-
toggleAnnotator: le,
|
|
424
|
-
toggleFullscreen: Pe
|
|
425
|
-
}), (t, a) => (n(), d("div", {
|
|
426
|
-
ref_key: "galaxyChart",
|
|
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
|
-
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_${m.value}`,
|
|
431
|
-
onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
|
|
432
|
-
onMouseleave: a[3] || (a[3] = () => u(be)(!1))
|
|
433
|
-
}, [
|
|
434
|
-
e.value.userOptions.buttons.annotator ? (n(), P(u(Ke), {
|
|
435
|
-
key: 0,
|
|
436
|
-
svgRef: u(Q),
|
|
437
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
438
|
-
color: e.value.style.chart.color,
|
|
439
|
-
active: R.value,
|
|
440
|
-
onClose: le
|
|
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", {
|
|
463
|
-
key: 1,
|
|
464
|
-
ref_key: "noTitle",
|
|
465
|
-
ref: de,
|
|
466
|
-
class: "vue-data-ui-no-title-space",
|
|
467
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
468
|
-
}, null, 512)) : h("", !0),
|
|
469
|
-
e.value.style.chart.title.text ? (n(), d("div", {
|
|
470
|
-
key: 2,
|
|
471
|
-
ref_key: "chartTitle",
|
|
472
|
-
ref: ie,
|
|
473
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
474
|
-
}, [
|
|
475
|
-
(n(), P(Qt, {
|
|
476
|
-
key: `title_${ne.value}`,
|
|
477
|
-
config: {
|
|
478
|
-
title: {
|
|
479
|
-
cy: "galaxy-div-title",
|
|
480
|
-
...e.value.style.chart.title
|
|
481
|
-
},
|
|
482
|
-
subtitle: {
|
|
483
|
-
cy: "galaxy-div-subtitle",
|
|
484
|
-
...e.value.style.chart.title.subtitle
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}, null, 8, ["config"]))
|
|
488
|
-
], 512)) : h("", !0),
|
|
489
|
-
$("div", {
|
|
490
|
-
id: `legend-top-${m.value}`
|
|
491
|
-
}, null, 8, tl),
|
|
492
|
-
e.value.userOptions.show && ge.value && (u(me) || u(q)) ? (n(), P(u(Ze), {
|
|
493
|
-
ref_key: "userOptionsRef",
|
|
494
|
-
ref: Y,
|
|
495
|
-
key: `user_option_${se.value}`,
|
|
496
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
497
|
-
color: e.value.style.chart.color,
|
|
498
|
-
isPrinting: u(ke),
|
|
499
|
-
isImaging: u(we),
|
|
500
|
-
uid: m.value,
|
|
501
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
502
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
503
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
504
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
505
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
506
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
507
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
508
|
-
isTooltip: p.value.showTooltip,
|
|
509
|
-
isFullscreen: D.value,
|
|
510
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
511
|
-
chartElement: k.value,
|
|
512
|
-
position: e.value.userOptions.position,
|
|
513
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
514
|
-
isAnnotation: R.value,
|
|
515
|
-
callbacks: e.value.userOptions.callbacks,
|
|
516
|
-
printScale: e.value.userOptions.print.scale,
|
|
517
|
-
tableDialog: e.value.table.useDialog,
|
|
518
|
-
onToggleFullscreen: Pe,
|
|
519
|
-
onGeneratePdf: u(Ce),
|
|
520
|
-
onGenerateCsv: te,
|
|
521
|
-
onGenerateImage: u($e),
|
|
522
|
-
onGenerateSvg: Le,
|
|
523
|
-
onToggleTable: Ie,
|
|
524
|
-
onToggleTooltip: _e,
|
|
525
|
-
onToggleAnnotator: le,
|
|
526
|
-
style: W({
|
|
527
|
-
visibility: u(me) ? u(q) ? "visible" : "hidden" : "visible"
|
|
528
|
-
})
|
|
529
|
-
}, Ae({ _: 2 }, [
|
|
530
|
-
t.$slots.menuIcon ? {
|
|
531
|
-
name: "menuIcon",
|
|
532
|
-
fn: i(({ isOpen: l, color: s }) => [
|
|
533
|
-
c(t.$slots, "menuIcon", y(b({ isOpen: l, color: s })), void 0, !0)
|
|
534
|
-
]),
|
|
535
|
-
key: "0"
|
|
536
|
-
} : void 0,
|
|
537
|
-
t.$slots.optionTooltip ? {
|
|
538
|
-
name: "optionTooltip",
|
|
539
|
-
fn: i(() => [
|
|
540
|
-
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
541
|
-
]),
|
|
542
|
-
key: "1"
|
|
543
|
-
} : void 0,
|
|
544
|
-
t.$slots.optionPdf ? {
|
|
545
|
-
name: "optionPdf",
|
|
546
|
-
fn: i(() => [
|
|
547
|
-
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
548
|
-
]),
|
|
549
|
-
key: "2"
|
|
550
|
-
} : void 0,
|
|
551
|
-
t.$slots.optionCsv ? {
|
|
552
|
-
name: "optionCsv",
|
|
553
|
-
fn: i(() => [
|
|
554
|
-
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
555
|
-
]),
|
|
556
|
-
key: "3"
|
|
557
|
-
} : void 0,
|
|
558
|
-
t.$slots.optionImg ? {
|
|
559
|
-
name: "optionImg",
|
|
560
|
-
fn: i(() => [
|
|
561
|
-
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
562
|
-
]),
|
|
563
|
-
key: "4"
|
|
564
|
-
} : void 0,
|
|
565
|
-
t.$slots.optionSvg ? {
|
|
566
|
-
name: "optionSvg",
|
|
567
|
-
fn: i(() => [
|
|
568
|
-
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
569
|
-
]),
|
|
570
|
-
key: "5"
|
|
571
|
-
} : void 0,
|
|
572
|
-
t.$slots.optionTable ? {
|
|
573
|
-
name: "optionTable",
|
|
574
|
-
fn: i(() => [
|
|
575
|
-
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
576
|
-
]),
|
|
577
|
-
key: "6"
|
|
578
|
-
} : void 0,
|
|
579
|
-
t.$slots.optionFullscreen ? {
|
|
580
|
-
name: "optionFullscreen",
|
|
581
|
-
fn: i(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
582
|
-
c(t.$slots, "optionFullscreen", y(b({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
583
|
-
]),
|
|
584
|
-
key: "7"
|
|
585
|
-
} : void 0,
|
|
586
|
-
t.$slots.optionAnnotator ? {
|
|
587
|
-
name: "optionAnnotator",
|
|
588
|
-
fn: i(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
589
|
-
c(t.$slots, "optionAnnotator", y(b({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
590
|
-
]),
|
|
591
|
-
key: "8"
|
|
592
|
-
} : void 0
|
|
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", {
|
|
595
|
-
ref_key: "svgRef",
|
|
596
|
-
ref: Q,
|
|
597
|
-
xmlns: u(Bt),
|
|
598
|
-
class: U({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
599
|
-
viewBox: x.value.viewBox,
|
|
600
|
-
style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
601
|
-
}, [
|
|
602
|
-
ae(u(et)),
|
|
603
|
-
t.$slots["chart-background"] ? (n(), d("foreignObject", {
|
|
604
|
-
key: 0,
|
|
605
|
-
x: 0,
|
|
606
|
-
y: 0,
|
|
607
|
-
width: x.value.width,
|
|
608
|
-
height: x.value.height,
|
|
609
|
-
style: {
|
|
610
|
-
pointerEvents: "none"
|
|
611
|
-
}
|
|
612
|
-
}, [
|
|
613
|
-
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
614
|
-
], 8, al)) : h("", !0),
|
|
615
|
-
$("defs", null, [
|
|
616
|
-
$("filter", {
|
|
617
|
-
id: `blur_${m.value}`,
|
|
618
|
-
x: "-50%",
|
|
619
|
-
y: "-50%",
|
|
620
|
-
width: "200%",
|
|
621
|
-
height: "200%"
|
|
622
|
-
}, [
|
|
623
|
-
$("feGaussianBlur", {
|
|
624
|
-
in: "SourceGraphic",
|
|
625
|
-
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
626
|
-
}, null, 8, sl)
|
|
627
|
-
], 8, ol)
|
|
628
|
-
]),
|
|
629
|
-
(n(!0), d(Ne, null, Be(N.value, (l) => (n(), d("g", null, [
|
|
630
|
-
l.value ? (n(), d("path", {
|
|
631
|
-
key: 0,
|
|
632
|
-
d: l.path,
|
|
633
|
-
fill: "none",
|
|
634
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
635
|
-
"stroke-width": K(l).border,
|
|
636
|
-
"stroke-linecap": "round"
|
|
637
|
-
}, null, 8, nl)) : h("", !0),
|
|
638
|
-
l.value ? (n(), d("path", {
|
|
639
|
-
key: 1,
|
|
640
|
-
d: l.path,
|
|
641
|
-
fill: "none",
|
|
642
|
-
stroke: l.color,
|
|
643
|
-
"stroke-width": K(l).path,
|
|
644
|
-
"stroke-linecap": "round",
|
|
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", {
|
|
648
|
-
key: 2,
|
|
649
|
-
filter: `url(#blur_${m.value})`
|
|
650
|
-
}, [
|
|
651
|
-
$("path", {
|
|
652
|
-
d: l.path,
|
|
653
|
-
fill: "none",
|
|
654
|
-
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
655
|
-
"stroke-width": K(l).blur,
|
|
656
|
-
"stroke-linecap": "round",
|
|
657
|
-
class: U(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
658
|
-
}, null, 10, il)
|
|
659
|
-
], 8, rl)) : h("", !0)
|
|
660
|
-
]))), 256)),
|
|
661
|
-
(n(!0), d(Ne, null, Be(N.value, (l, s) => (n(), d("g", null, [
|
|
662
|
-
l.value ? (n(), d("path", {
|
|
663
|
-
key: 0,
|
|
664
|
-
d: l.path,
|
|
665
|
-
fill: "none",
|
|
666
|
-
stroke: "transparent",
|
|
667
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
668
|
-
"stroke-linecap": "round",
|
|
669
|
-
onMouseenter: (r) => gt({
|
|
670
|
-
datapoint: l,
|
|
671
|
-
seriesIndex: l.seriesIndex,
|
|
672
|
-
show: !0
|
|
673
|
-
}),
|
|
674
|
-
onMouseleave: (r) => dt(l),
|
|
675
|
-
onClick: (r) => ht(l)
|
|
676
|
-
}, null, 40, cl)) : h("", !0)
|
|
677
|
-
]))), 256)),
|
|
678
|
-
c(t.$slots, "svg", { svg: x.value }, void 0, !0)
|
|
679
|
-
], 14, ll)),
|
|
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}`
|
|
685
|
-
}, null, 8, dl),
|
|
686
|
-
he.value ? (n(), P(St, {
|
|
687
|
-
key: 5,
|
|
688
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
689
|
-
}, [
|
|
690
|
-
$("div", {
|
|
691
|
-
ref_key: "chartLegend",
|
|
692
|
-
ref: ce
|
|
693
|
-
}, [
|
|
694
|
-
e.value.style.chart.legend.show ? (n(), P(Jt, {
|
|
695
|
-
key: `legend_${re.value}`,
|
|
696
|
-
legendSet: ee.value,
|
|
697
|
-
config: pt.value,
|
|
698
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) => A(l))
|
|
699
|
-
}, {
|
|
700
|
-
item: i(({ legend: l, index: s }) => [
|
|
701
|
-
u(j) ? h("", !0) : (n(), d("div", {
|
|
702
|
-
key: 0,
|
|
703
|
-
onClick: (r) => A(l),
|
|
704
|
-
style: W(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
705
|
-
}, oe(l.display), 13, hl))
|
|
706
|
-
]),
|
|
707
|
-
_: 1
|
|
708
|
-
}, 8, ["legendSet", "config"])) : h("", !0),
|
|
709
|
-
c(t.$slots, "legend", { legend: ee.value }, void 0, !0)
|
|
710
|
-
], 512)
|
|
711
|
-
], 8, ["to"])) : h("", !0),
|
|
712
|
-
t.$slots.source ? (n(), d("div", {
|
|
713
|
-
key: 6,
|
|
714
|
-
ref_key: "source",
|
|
715
|
-
ref: ve,
|
|
716
|
-
dir: "auto"
|
|
717
|
-
}, [
|
|
718
|
-
c(t.$slots, "source", {}, void 0, !0)
|
|
719
|
-
], 512)) : h("", !0),
|
|
720
|
-
ae(u(je), {
|
|
721
|
-
show: p.value.showTooltip && H.value,
|
|
722
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
723
|
-
color: e.value.style.chart.tooltip.color,
|
|
724
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
725
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
726
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
727
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
728
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
729
|
-
position: e.value.style.chart.tooltip.position,
|
|
730
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
731
|
-
parent: k.value,
|
|
732
|
-
content: X.value,
|
|
733
|
-
isFullscreen: D.value,
|
|
734
|
-
isCustom: u(Ue)(e.value.style.chart.tooltip.customFormat),
|
|
735
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
736
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
737
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
738
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
739
|
-
}, {
|
|
740
|
-
"tooltip-before": i(() => [
|
|
741
|
-
c(t.$slots, "tooltip-before", y(b({ ...Z.value })), void 0, !0)
|
|
742
|
-
]),
|
|
743
|
-
"tooltip-after": i(() => [
|
|
744
|
-
c(t.$slots, "tooltip-after", y(b({ ...Z.value })), void 0, !0)
|
|
745
|
-
]),
|
|
746
|
-
_: 3
|
|
747
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
748
|
-
ge.value && e.value.userOptions.buttons.table ? (n(), P(Ot(B.value.component), Pt({ key: 7 }, B.value.props, {
|
|
749
|
-
ref_key: "tableUnit",
|
|
750
|
-
ref: F,
|
|
751
|
-
onClose: De
|
|
752
|
-
}), Ae({
|
|
753
|
-
content: i(() => [
|
|
754
|
-
(n(), P(u(Je), {
|
|
755
|
-
key: `table_${ue.value}`,
|
|
756
|
-
colNames: G.value.colNames,
|
|
757
|
-
head: G.value.head,
|
|
758
|
-
body: G.value.body,
|
|
759
|
-
config: G.value.config,
|
|
760
|
-
title: e.value.table.useDialog ? "" : B.value.title,
|
|
761
|
-
withCloseButton: !e.value.table.useDialog,
|
|
762
|
-
onClose: De
|
|
763
|
-
}, {
|
|
764
|
-
th: i(({ th: l }) => [
|
|
765
|
-
$("div", {
|
|
766
|
-
innerHTML: l,
|
|
767
|
-
style: { display: "flex", "align-items": "center" }
|
|
768
|
-
}, null, 8, gl)
|
|
769
|
-
]),
|
|
770
|
-
td: i(({ td: l }) => [
|
|
771
|
-
Ve(oe(l.name || l), 1)
|
|
772
|
-
]),
|
|
773
|
-
_: 1
|
|
774
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
775
|
-
]),
|
|
776
|
-
_: 2
|
|
777
|
-
}, [
|
|
778
|
-
e.value.table.useDialog ? {
|
|
779
|
-
name: "title",
|
|
780
|
-
fn: i(() => [
|
|
781
|
-
Ve(oe(B.value.title), 1)
|
|
782
|
-
]),
|
|
783
|
-
key: "0"
|
|
784
|
-
} : void 0,
|
|
785
|
-
e.value.table.useDialog ? {
|
|
786
|
-
name: "actions",
|
|
787
|
-
fn: i(() => [
|
|
788
|
-
$("button", {
|
|
789
|
-
tabindex: "0",
|
|
790
|
-
class: "vue-ui-user-options-button",
|
|
791
|
-
onClick: a[1] || (a[1] = (l) => te(e.value.userOptions.callbacks.csv))
|
|
792
|
-
}, [
|
|
793
|
-
ae(u(qe), {
|
|
794
|
-
name: "excel",
|
|
795
|
-
stroke: B.value.props.color
|
|
796
|
-
}, null, 8, ["stroke"])
|
|
797
|
-
])
|
|
798
|
-
]),
|
|
799
|
-
key: "1"
|
|
800
|
-
} : void 0
|
|
801
|
-
]), 1040)) : h("", !0),
|
|
802
|
-
u(j) ? (n(), P(zt, { key: 8 })) : h("", !0)
|
|
803
|
-
], 46, el));
|
|
804
|
-
}
|
|
805
|
-
}, _l = /* @__PURE__ */ Zt(pl, [["__scopeId", "data-v-2bf9793a"]]);
|
|
806
|
-
export {
|
|
807
|
-
_l as default
|
|
808
|
-
};
|