vue-data-ui 2.12.6 → 2.12.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { computed as g, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { t as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import { _ as Yt } from "./Shape-C69a0f29.js";
|
|
14
|
-
import qt from "./vue-ui-skeleton-B_YI7Yuc.js";
|
|
15
|
-
import { _ as Jt } from "./Title-CzaCeCOm.js";
|
|
16
|
-
import Kt from "./vue-ui-xy-K2G7QQxG.js";
|
|
17
|
-
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"], al = ["stop-color"], ol = ["stop-color"], sl = ["stop-color"], rl = ["id"], nl = ["stop-color"], ul = ["stop-color"], il = ["stop-color"], cl = ["stop-color"], hl = { key: 0 }, vl = ["fill", "d"], dl = ["stroke", "stroke-width", "d"], yl = ["fill", "d"], fl = ["stroke", "stroke-dasharray", "stroke-width", "d"], gl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ml = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], bl = { key: 0 }, xl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], kl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $l = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Cl = ["x", "y", "text-anchor", "font-size", "fill"], wl = {
|
|
1
|
+
import { defineAsyncComponent as S, computed as g, ref as c, shallowRef as Ee, onMounted as St, onBeforeUnmount as zt, watch as He, createElementBlock as n, openBlock as r, unref as u, normalizeStyle as M, normalizeClass as Y, createBlock as P, createCommentVNode as v, renderSlot as p, createElementVNode as d, createSlots as Ve, withCtx as m, normalizeProps as q, guardReactiveProps as J, createVNode as Be, Fragment as f, renderList as C, mergeProps as Ue, toDisplayString as E, createTextVNode as Ge, nextTick as Nt } from "vue";
|
|
2
|
+
import { u as Lt, c as ie, o as Dt, e as ce, g as We, b as It, d as Ft, p as K, al as je, a8 as Rt, T as Ye, U as Xt, V as Et, X as Ht, G as Vt, i as Q, f as Z, t as Bt, a as Ut, q as Gt, r as Wt, J as jt } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { u as Yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { u as Jt } from "./usePrinter-C8URL2IU.js";
|
|
6
|
+
import { t as Kt, u as Qt } from "./useResponsive-JZ9xq-JV.js";
|
|
7
|
+
import { u as qe } from "./useNestedProp-CZztHZIm.js";
|
|
8
|
+
import Zt from "./Legend-DtTYopxf.js";
|
|
9
|
+
import el from "./Title-Bc66VstS.js";
|
|
10
|
+
import tl from "./Shape-B6kIkp2s.js";
|
|
11
|
+
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"], nl = ["stop-color"], ul = ["stop-color"], il = ["stop-color"], cl = ["id"], vl = ["stop-color"], hl = ["stop-color"], dl = ["stop-color"], yl = ["stop-color"], fl = { key: 0 }, gl = ["fill", "d"], pl = ["stroke", "stroke-width", "d"], ml = ["fill", "d"], bl = ["stroke", "stroke-dasharray", "stroke-width", "d"], xl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Al = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Cl = { key: 0 }, wl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], $l = ["x", "y", "width", "height", "onMouseenter", "onClick"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ml = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Pl = ["x", "y", "text-anchor", "font-size", "fill"], Tl = {
|
|
19
13
|
key: 5,
|
|
20
14
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
15
|
+
}, Ol = ["onClick"], Sl = ["innerHTML"], zl = {
|
|
22
16
|
__name: "vue-ui-ridgeline",
|
|
23
17
|
props: {
|
|
24
18
|
config: {
|
|
@@ -35,63 +29,61 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
35
29
|
}
|
|
36
30
|
},
|
|
37
31
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
|
-
setup(
|
|
39
|
-
const { vue_ui_ridgeline:
|
|
32
|
+
setup(Je, { expose: Ke, emit: Qe }) {
|
|
33
|
+
const Ze = S(() => import("./vue-ui-accordion-DntThSTF.js")), et = S(() => import("./BaseDraggableDialog-CKbomZCX.js")), tt = S(() => import("./DataTable-Y5HbiUZU.js")), lt = S(() => import("./PackageVersion-DaWGaZxE.js")), at = S(() => import("./PenAndPaper-C-CpE0NC.js")), ot = S(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), st = S(() => import("./UserOptions-C8X2STEg.js")), rt = S(() => import("./vue-ui-xy-D1luVUXJ.js")), { vue_ui_ridgeline: nt } = Lt(), x = Je, z = g({
|
|
40
34
|
get() {
|
|
41
35
|
return !!x.dataset && x.dataset.length;
|
|
42
36
|
},
|
|
43
37
|
set(l) {
|
|
44
38
|
return l;
|
|
45
39
|
}
|
|
46
|
-
}),
|
|
47
|
-
function
|
|
48
|
-
const l =
|
|
40
|
+
}), ee = Qe, G = c(null), ve = c(null), he = c(null), T = Ee(null), I = Ee(null), de = c(null), ye = c(null), fe = c(0), ut = c(0), ge = c(0), w = c(ie()), pe = c(0), it = c(0), me = c(512), h = c(null), F = c(null), te = c(null), be = c(0);
|
|
41
|
+
function xe() {
|
|
42
|
+
const l = qe({
|
|
49
43
|
userConfig: x.config,
|
|
50
|
-
defaultConfig:
|
|
44
|
+
defaultConfig: nt
|
|
51
45
|
});
|
|
52
46
|
return l.theme ? {
|
|
53
|
-
...
|
|
54
|
-
userConfig:
|
|
47
|
+
...qe({
|
|
48
|
+
userConfig: Ut.vue_ui_ridgeline[l.theme] || x.config,
|
|
55
49
|
defaultConfig: l
|
|
56
50
|
}),
|
|
57
|
-
customPalette:
|
|
51
|
+
customPalette: Bt[l.theme] || K
|
|
58
52
|
} : l;
|
|
59
53
|
}
|
|
60
54
|
const e = g({
|
|
61
|
-
get: () =>
|
|
55
|
+
get: () => xe(),
|
|
62
56
|
set: (l) => l
|
|
63
|
-
}),
|
|
57
|
+
}), $ = c(Math.min(
|
|
64
58
|
e.value.style.chart.areas.height,
|
|
65
59
|
e.value.style.chart.areas.rowHeight
|
|
66
60
|
)), {
|
|
67
|
-
userOptionsVisible:
|
|
68
|
-
setUserOptionsVisibility:
|
|
69
|
-
keepUserOptionState:
|
|
70
|
-
} =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
function le() {
|
|
75
|
-
if (Ct(x.dataset) ? ue({
|
|
61
|
+
userOptionsVisible: le,
|
|
62
|
+
setUserOptionsVisibility: ke,
|
|
63
|
+
keepUserOptionState: Ae
|
|
64
|
+
} = Yt({ config: e.value }), { svgRef: ae } = qt({ config: e.value.style.chart.title });
|
|
65
|
+
St(oe);
|
|
66
|
+
function oe() {
|
|
67
|
+
if (Dt(x.dataset) ? ce({
|
|
76
68
|
componentName: "VueUiRidgeline",
|
|
77
69
|
type: "dataset"
|
|
78
70
|
}) : x.dataset.forEach((l, s) => {
|
|
79
|
-
|
|
71
|
+
We({
|
|
80
72
|
datasetObject: l,
|
|
81
73
|
requiredAttributes: ["name", "datapoints"]
|
|
82
74
|
}).forEach((t) => {
|
|
83
|
-
|
|
75
|
+
z.value = !1, ce({
|
|
84
76
|
componentName: "VueUiRidgeline",
|
|
85
77
|
type: "datasetSerieAttribute",
|
|
86
78
|
property: t,
|
|
87
79
|
index: s
|
|
88
80
|
});
|
|
89
81
|
}), l.datapoints.length && l.datapoints.forEach((t, o) => {
|
|
90
|
-
|
|
82
|
+
We({
|
|
91
83
|
datasetObject: t,
|
|
92
84
|
requiredAttributes: ["name", "values"]
|
|
93
85
|
}).forEach((a) => {
|
|
94
|
-
|
|
86
|
+
z.value = !1, ce({
|
|
95
87
|
componentName: "VueUiRidgeline",
|
|
96
88
|
type: "datasetSerieAttribute",
|
|
97
89
|
property: `datapoint.${a}`,
|
|
@@ -99,56 +91,59 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
99
91
|
});
|
|
100
92
|
});
|
|
101
93
|
});
|
|
102
|
-
}),
|
|
94
|
+
}), it.value = x.dataset.length, $.value = Math.min(
|
|
103
95
|
e.value.style.chart.areas.height,
|
|
104
96
|
e.value.style.chart.areas.rowHeight
|
|
105
97
|
), e.value.responsive) {
|
|
106
|
-
const l =
|
|
107
|
-
const { width: s, height: t } =
|
|
108
|
-
chart:
|
|
109
|
-
title: e.value.style.chart.title.text ?
|
|
110
|
-
legend: e.value.style.chart.legend.show ?
|
|
111
|
-
source:
|
|
112
|
-
noTitle:
|
|
98
|
+
const l = Kt(() => {
|
|
99
|
+
const { width: s, height: t } = Qt({
|
|
100
|
+
chart: G.value,
|
|
101
|
+
title: e.value.style.chart.title.text ? ve.value : null,
|
|
102
|
+
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
103
|
+
source: de.value,
|
|
104
|
+
noTitle: ye.value,
|
|
113
105
|
padding: e.value.style.chart.padding
|
|
114
106
|
});
|
|
115
107
|
requestAnimationFrame(() => {
|
|
116
|
-
|
|
108
|
+
me.value = s, $.value = t / x.dataset.length, be.value = t;
|
|
117
109
|
});
|
|
118
110
|
});
|
|
119
|
-
|
|
111
|
+
T.value && (I.value && T.value.unobserve(I.value), T.value.disconnect()), T.value = new ResizeObserver(l), I.value = G.value.parentNode, T.value.observe(I.value);
|
|
120
112
|
}
|
|
121
113
|
}
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
zt(() => {
|
|
115
|
+
T.value && (I.value && T.value.unobserve(I.value), T.value.disconnect());
|
|
116
|
+
});
|
|
117
|
+
const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: _e } = Jt({
|
|
118
|
+
elementId: `vue-ui-ridgeline_${w.value}`,
|
|
124
119
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
125
120
|
options: e.value.userOptions.print
|
|
126
|
-
}),
|
|
121
|
+
}), ct = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), vt = g(() => It(e.value.customPalette)), H = c({
|
|
127
122
|
showTable: e.value.table.show
|
|
128
123
|
});
|
|
129
|
-
|
|
130
|
-
e.value =
|
|
124
|
+
He(() => x.config, (l) => {
|
|
125
|
+
e.value = xe(), le.value = !e.value.userOptions.showOnChartHover, oe(), fe.value += 1, ge.value += 1, $.value = Math.min(
|
|
131
126
|
e.value.style.chart.areas.height,
|
|
132
127
|
e.value.style.chart.areas.rowHeight
|
|
133
|
-
),
|
|
134
|
-
}, { deep: !0 }),
|
|
135
|
-
const
|
|
136
|
-
function
|
|
137
|
-
|
|
128
|
+
), H.value.showTable = e.value.table.show;
|
|
129
|
+
}, { deep: !0 }), He(() => x.dataset, oe, { deep: !0 });
|
|
130
|
+
const se = g(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
131
|
+
function Me(l) {
|
|
132
|
+
O.value.includes(l) ? O.value = O.value.filter((s) => s !== l) : O.value.push(l), ee("selectLegend", X.value);
|
|
138
133
|
}
|
|
139
|
-
const _ = g(() =>
|
|
134
|
+
const _ = g(() => z.value ? x.dataset.map((l, s) => ({
|
|
140
135
|
...l,
|
|
141
|
-
labelLen:
|
|
142
|
-
uid:
|
|
136
|
+
labelLen: yt(l.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
137
|
+
uid: ie(),
|
|
143
138
|
datapoints: l.datapoints.map((t, o) => {
|
|
144
|
-
const a = t.color ?
|
|
139
|
+
const a = t.color ? Ft(t.color) : vt.value[o] || K[o] || K[o % K.length], i = je(t.name);
|
|
145
140
|
return {
|
|
146
141
|
...t,
|
|
147
142
|
color: a,
|
|
148
|
-
id:
|
|
143
|
+
id: i
|
|
149
144
|
};
|
|
150
145
|
})
|
|
151
|
-
})) : []),
|
|
146
|
+
})) : []), Pe = g(() => e.value.style.chart.padding.top + $.value * x.dataset.length + $.value * se.value), k = g(() => ({
|
|
152
147
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
153
148
|
top: y.value.padding.top,
|
|
154
149
|
left: y.value.padding.left,
|
|
@@ -158,121 +153,121 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
158
153
|
})), y = g(() => {
|
|
159
154
|
const l = e.value.style.chart.padding;
|
|
160
155
|
return {
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
156
|
+
width: me.value,
|
|
157
|
+
height: Pe.value,
|
|
163
158
|
padding: l
|
|
164
159
|
};
|
|
165
|
-
}),
|
|
166
|
-
const l = Math.max(..._.value.map((
|
|
167
|
-
for (let
|
|
160
|
+
}), R = g(() => {
|
|
161
|
+
const l = Math.max(..._.value.map((i) => i.labelLen)), s = Math.max(..._.value.flatMap((i) => i.datapoints.map((A) => A.values.length))), t = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (k.value.width - t) / s, a = [];
|
|
162
|
+
for (let i = 0; i < s; i += 1)
|
|
168
163
|
a.push({
|
|
169
|
-
selectorX: t + o *
|
|
170
|
-
x: t + o *
|
|
164
|
+
selectorX: t + o * i,
|
|
165
|
+
x: t + o * i - o / 2,
|
|
171
166
|
y: k.value.top,
|
|
172
|
-
label: e.value.style.chart.xAxis.labels.values[
|
|
173
|
-
index:
|
|
167
|
+
label: e.value.style.chart.xAxis.labels.values[i] || "",
|
|
168
|
+
index: i,
|
|
174
169
|
width: o,
|
|
175
|
-
height:
|
|
170
|
+
height: Pe.value
|
|
176
171
|
});
|
|
177
172
|
return a;
|
|
178
173
|
});
|
|
179
|
-
function
|
|
180
|
-
|
|
174
|
+
function ht(l) {
|
|
175
|
+
ee("selectX", _.value.map((s) => s.datapoints.map((t) => ({
|
|
181
176
|
dp: t,
|
|
182
177
|
selected: t.values[l.index]
|
|
183
178
|
}))));
|
|
184
179
|
}
|
|
185
|
-
function
|
|
180
|
+
function dt(l, s) {
|
|
186
181
|
return l.length * s / 2 + s;
|
|
187
182
|
}
|
|
188
|
-
function
|
|
189
|
-
const o =
|
|
183
|
+
function Te(l, s, t) {
|
|
184
|
+
const o = dt(s, t);
|
|
190
185
|
return l + o > k.value.right;
|
|
191
186
|
}
|
|
192
|
-
function
|
|
193
|
-
const a = document.createElement("canvas").getContext("2d"),
|
|
194
|
-
return a.font = `${
|
|
187
|
+
function yt(l, s, t = "sans-serif") {
|
|
188
|
+
const a = document.createElement("canvas").getContext("2d"), i = typeof s == "number" ? `${s}px` : s;
|
|
189
|
+
return a.font = `${i} ${t}`, a.measureText(l).width;
|
|
195
190
|
}
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
const l = Math.max(..._.value.map((b) => b.labelLen)), s = Math.max(..._.value.flatMap((b) => b.datapoints.map((
|
|
199
|
-
function
|
|
200
|
-
return isNaN(b /
|
|
191
|
+
const X = g(() => {
|
|
192
|
+
$.value;
|
|
193
|
+
const l = Math.max(..._.value.map((b) => b.labelLen)), s = Math.max(..._.value.flatMap((b) => b.datapoints.map((N) => N.values.length))), t = Math.max(..._.value.flatMap((b) => b.datapoints.flatMap((N) => N.values))), o = Math.min(..._.value.flatMap((b) => b.datapoints.flatMap((N) => N.values))), a = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, i = (k.value.width - a) / s, A = Math.abs(Math.min(o, 0)), De = t + A;
|
|
194
|
+
function Ie(b) {
|
|
195
|
+
return isNaN(b / De) ? 0 : b / De;
|
|
201
196
|
}
|
|
202
|
-
return _.value.map((b,
|
|
203
|
-
const
|
|
197
|
+
return _.value.map((b, N) => {
|
|
198
|
+
const Fe = k.value.top + $.value * N, L = k.value.top + Fe + $.value * se.value * (1 - Ie(A));
|
|
204
199
|
return {
|
|
205
200
|
...b,
|
|
206
201
|
label: {
|
|
207
202
|
x: a - e.value.style.chart.yAxis.labels.fontSize,
|
|
208
|
-
y:
|
|
203
|
+
y: L
|
|
209
204
|
},
|
|
210
|
-
datapoints: b.datapoints.map((
|
|
211
|
-
const
|
|
212
|
-
const
|
|
205
|
+
datapoints: b.datapoints.map((B) => {
|
|
206
|
+
const D = B.values.map((U, _t) => {
|
|
207
|
+
const Mt = isNaN(U) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(U) ? 0 : U || 0, Pt = a + i * _t, Tt = k.value.top + Fe + $.value * se.value * (1 - Ie(Mt + A)), Ot = U === Math.max(...B.values);
|
|
213
208
|
return {
|
|
214
|
-
x:
|
|
215
|
-
y:
|
|
216
|
-
value:
|
|
217
|
-
isMaxPoint:
|
|
218
|
-
zero:
|
|
209
|
+
x: Pt,
|
|
210
|
+
y: Tt,
|
|
211
|
+
value: U,
|
|
212
|
+
isMaxPoint: Ot,
|
|
213
|
+
zero: L
|
|
219
214
|
};
|
|
220
|
-
}),
|
|
221
|
-
e.value.style.chart.areas.smooth ?
|
|
215
|
+
}), At = `${Rt(D, L, !1, !1)}`, Ct = `M ${a},${L} ${Ye(D)} ${D.at(-1).x},${L}`, wt = `M ${a},${L} ${D.at(-1).x},${L}`, Re = `M ${Xt(D)}`, Xe = `M ${Ye(D)}`, $t = Et(
|
|
216
|
+
e.value.style.chart.areas.smooth ? Re : Xe
|
|
222
217
|
);
|
|
223
218
|
return {
|
|
224
|
-
...
|
|
225
|
-
uid:
|
|
226
|
-
plots:
|
|
227
|
-
smoothPath:
|
|
228
|
-
straightPath:
|
|
229
|
-
zeroPath:
|
|
230
|
-
pathLength:
|
|
231
|
-
smoothPathRidge:
|
|
232
|
-
straightPathRidge:
|
|
219
|
+
...B,
|
|
220
|
+
uid: ie(),
|
|
221
|
+
plots: D,
|
|
222
|
+
smoothPath: At,
|
|
223
|
+
straightPath: Ct,
|
|
224
|
+
zeroPath: wt,
|
|
225
|
+
pathLength: $t,
|
|
226
|
+
smoothPathRidge: Re,
|
|
227
|
+
straightPathRidge: Xe
|
|
233
228
|
};
|
|
234
|
-
}).filter((
|
|
229
|
+
}).filter((B) => !O.value.includes(B.id))
|
|
235
230
|
};
|
|
236
231
|
});
|
|
237
|
-
}),
|
|
238
|
-
function
|
|
232
|
+
}), O = c([]);
|
|
233
|
+
function ft(l) {
|
|
239
234
|
const s = /* @__PURE__ */ new Map();
|
|
240
235
|
return l.forEach((t) => {
|
|
241
236
|
t.datapoints.forEach((o, a) => {
|
|
242
|
-
const
|
|
243
|
-
s.has(
|
|
244
|
-
id:
|
|
237
|
+
const i = je(o.name);
|
|
238
|
+
s.has(i) || s.set(i, {
|
|
239
|
+
id: i,
|
|
245
240
|
name: o.name,
|
|
246
241
|
color: o.color,
|
|
247
242
|
shape: "circle",
|
|
248
|
-
segregate: () =>
|
|
249
|
-
isSegregated:
|
|
250
|
-
opacity:
|
|
243
|
+
segregate: () => Me(i),
|
|
244
|
+
isSegregated: O.value.includes(i),
|
|
245
|
+
opacity: O.value.includes(i) ? 0.5 : 1
|
|
251
246
|
});
|
|
252
247
|
});
|
|
253
248
|
}), Array.from(s.values());
|
|
254
249
|
}
|
|
255
|
-
const
|
|
250
|
+
const re = g(() => ft(_.value)), gt = g(() => ({
|
|
256
251
|
cy: "donut-div-legend",
|
|
257
252
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
258
253
|
color: e.value.style.chart.legend.color,
|
|
259
254
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
260
255
|
paddingBottom: 12,
|
|
261
256
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
262
|
-
})),
|
|
263
|
-
function
|
|
264
|
-
|
|
257
|
+
})), V = c(!1);
|
|
258
|
+
function pt(l) {
|
|
259
|
+
V.value = l, pe.value += 1;
|
|
265
260
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
268
|
-
|
|
261
|
+
const Oe = c({}), Se = c([]);
|
|
262
|
+
function mt(l) {
|
|
263
|
+
ee("selectDatapoint", l), e.value.style.chart.dialog.show && (Se.value = l.datapoints.map((s) => ({
|
|
269
264
|
name: s.name,
|
|
270
265
|
color: s.color,
|
|
271
266
|
type: "line",
|
|
272
267
|
useArea: !0,
|
|
273
268
|
smooth: e.value.style.chart.areas.smooth,
|
|
274
269
|
series: s.values
|
|
275
|
-
})),
|
|
270
|
+
})), F.value = l, Oe.value = jt({
|
|
276
271
|
...e.value.style.chart.dialog.xyChart,
|
|
277
272
|
responsive: !0,
|
|
278
273
|
// Overriding
|
|
@@ -295,23 +290,23 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
295
290
|
// Overriding
|
|
296
291
|
}
|
|
297
292
|
}
|
|
298
|
-
}),
|
|
293
|
+
}), te.value && te.value.open());
|
|
299
294
|
}
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
|
|
295
|
+
const ne = c(null);
|
|
296
|
+
function bt(l) {
|
|
297
|
+
ne.value = l;
|
|
303
298
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
299
|
+
function xt() {
|
|
300
|
+
ne.value = null;
|
|
306
301
|
}
|
|
307
|
-
const
|
|
308
|
-
function
|
|
309
|
-
|
|
302
|
+
const W = c(!1);
|
|
303
|
+
function ue() {
|
|
304
|
+
W.value = !W.value;
|
|
310
305
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
306
|
+
function ze() {
|
|
307
|
+
H.value.showTable = !H.value.showTable;
|
|
313
308
|
}
|
|
314
|
-
const
|
|
309
|
+
const Ne = g(() => ({ body: X.value.flatMap((t) => t.datapoints.flatMap((o) => ({
|
|
315
310
|
...o,
|
|
316
311
|
rowName: `${t.name}: ${o.name}`
|
|
317
312
|
}))).map((t) => [
|
|
@@ -320,7 +315,7 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
320
315
|
color: t.color
|
|
321
316
|
},
|
|
322
317
|
...t.values
|
|
323
|
-
]) })),
|
|
318
|
+
]) })), j = g(() => {
|
|
324
319
|
const l = [
|
|
325
320
|
e.value.table.columnNames.series,
|
|
326
321
|
...e.value.style.chart.xAxis.labels.values
|
|
@@ -343,40 +338,40 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
343
338
|
...e.value.style.chart.xAxis.labels.values
|
|
344
339
|
],
|
|
345
340
|
head: l,
|
|
346
|
-
body:
|
|
341
|
+
body: Ne.value.body,
|
|
347
342
|
config: s
|
|
348
343
|
};
|
|
349
344
|
});
|
|
350
|
-
function
|
|
351
|
-
|
|
345
|
+
function Le() {
|
|
346
|
+
Nt(() => {
|
|
352
347
|
const l = [
|
|
353
348
|
[e.value.table.columnNames.series, ...e.value.style.chart.xAxis.labels.values.map((o) => [o])],
|
|
354
|
-
...
|
|
349
|
+
...Ne.value.body.map((o, a) => [o[0].name, ...o.slice(1)])
|
|
355
350
|
], s = [
|
|
356
351
|
[e.value.style.chart.title.text],
|
|
357
352
|
[e.value.style.chart.title.subtitle.text]
|
|
358
|
-
].concat(l), t =
|
|
359
|
-
|
|
353
|
+
].concat(l), t = Gt(s);
|
|
354
|
+
Wt({
|
|
360
355
|
csvContent: t,
|
|
361
356
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
362
357
|
});
|
|
363
358
|
});
|
|
364
359
|
}
|
|
365
|
-
function
|
|
366
|
-
return
|
|
360
|
+
function kt() {
|
|
361
|
+
return X.value;
|
|
367
362
|
}
|
|
368
|
-
return
|
|
369
|
-
getData:
|
|
370
|
-
generateImage:
|
|
363
|
+
return Ke({
|
|
364
|
+
getData: kt,
|
|
365
|
+
generateImage: _e,
|
|
371
366
|
generatePdf: $e,
|
|
372
|
-
generateCsv:
|
|
373
|
-
toggleAnnotator:
|
|
374
|
-
toggleTable:
|
|
367
|
+
generateCsv: Le,
|
|
368
|
+
toggleAnnotator: ue,
|
|
369
|
+
toggleTable: ze
|
|
375
370
|
}), (l, s) => (r(), n("div", {
|
|
376
371
|
ref_key: "ridgelineChart",
|
|
377
|
-
ref:
|
|
378
|
-
class:
|
|
379
|
-
id: `vue-ui-ridgeline_${
|
|
372
|
+
ref: G,
|
|
373
|
+
class: Y(`vue-ui-ridgeline ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
374
|
+
id: `vue-ui-ridgeline_${w.value}`,
|
|
380
375
|
style: M({
|
|
381
376
|
fontFamily: e.value.style.fontFamily,
|
|
382
377
|
width: "100%",
|
|
@@ -384,33 +379,33 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
384
379
|
background: e.value.style.chart.backgroundColor,
|
|
385
380
|
height: e.value.responsive ? "100%" : void 0
|
|
386
381
|
}),
|
|
387
|
-
onMouseenter: s[4] || (s[4] = () =>
|
|
388
|
-
onMouseleave: s[5] || (s[5] = () =>
|
|
382
|
+
onMouseenter: s[4] || (s[4] = () => u(ke)(!0)),
|
|
383
|
+
onMouseleave: s[5] || (s[5] = () => u(ke)(!1))
|
|
389
384
|
}, [
|
|
390
|
-
e.value.userOptions.buttons.annotator &&
|
|
385
|
+
e.value.userOptions.buttons.annotator && u(ae) ? (r(), P(u(at), {
|
|
391
386
|
key: 0,
|
|
392
387
|
color: e.value.style.chart.color,
|
|
393
388
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
394
|
-
active:
|
|
395
|
-
svgRef:
|
|
396
|
-
onClose:
|
|
397
|
-
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) :
|
|
389
|
+
active: W.value,
|
|
390
|
+
svgRef: u(ae),
|
|
391
|
+
onClose: ue
|
|
392
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
398
393
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
399
|
-
|
|
394
|
+
ct.value ? (r(), n("div", {
|
|
400
395
|
key: 1,
|
|
401
396
|
ref_key: "noTitle",
|
|
402
|
-
ref:
|
|
397
|
+
ref: ye,
|
|
403
398
|
class: "vue-data-ui-no-title-space",
|
|
404
399
|
style: "height:36px; width: 100%;background:transparent"
|
|
405
|
-
}, null, 512)) :
|
|
400
|
+
}, null, 512)) : v("", !0),
|
|
406
401
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
407
402
|
key: 2,
|
|
408
403
|
ref_key: "chartTitle",
|
|
409
|
-
ref:
|
|
404
|
+
ref: ve,
|
|
410
405
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
411
406
|
}, [
|
|
412
|
-
(r(),
|
|
413
|
-
key: `title_${
|
|
407
|
+
(r(), P(el, {
|
|
408
|
+
key: `title_${fe.value}`,
|
|
414
409
|
config: {
|
|
415
410
|
title: {
|
|
416
411
|
cy: "ridgeline-div-title",
|
|
@@ -422,15 +417,15 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
422
417
|
}
|
|
423
418
|
}
|
|
424
419
|
}, null, 8, ["config"]))
|
|
425
|
-
], 512)) :
|
|
426
|
-
e.value.userOptions.show &&
|
|
420
|
+
], 512)) : v("", !0),
|
|
421
|
+
e.value.userOptions.show && z.value && (u(Ae) || u(le)) ? (r(), P(u(st), {
|
|
427
422
|
ref: "details",
|
|
428
|
-
key: `user_option_${
|
|
423
|
+
key: `user_option_${pe.value}`,
|
|
429
424
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
430
425
|
color: e.value.style.chart.color,
|
|
431
|
-
isPrinting:
|
|
432
|
-
isImaging:
|
|
433
|
-
uid:
|
|
426
|
+
isPrinting: u(Ce),
|
|
427
|
+
isImaging: u(we),
|
|
428
|
+
uid: w.value,
|
|
434
429
|
hasTooltip: !1,
|
|
435
430
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
436
431
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -438,27 +433,27 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
438
433
|
hasTable: e.value.userOptions.buttons.table,
|
|
439
434
|
hasLabel: !1,
|
|
440
435
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
441
|
-
isFullscreen:
|
|
442
|
-
chartElement:
|
|
436
|
+
isFullscreen: V.value,
|
|
437
|
+
chartElement: G.value,
|
|
443
438
|
position: e.value.userOptions.position,
|
|
444
439
|
isTooltip: !1,
|
|
445
440
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
446
441
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
447
|
-
isAnnotation:
|
|
442
|
+
isAnnotation: W.value,
|
|
448
443
|
style: M({
|
|
449
|
-
visibility:
|
|
444
|
+
visibility: u(Ae) ? u(le) ? "visible" : "hidden" : "visible"
|
|
450
445
|
}),
|
|
451
|
-
onToggleFullscreen:
|
|
452
|
-
onGeneratePdf:
|
|
453
|
-
onGenerateCsv:
|
|
454
|
-
onGenerateImage:
|
|
455
|
-
onToggleTable:
|
|
456
|
-
onToggleAnnotator:
|
|
457
|
-
},
|
|
446
|
+
onToggleFullscreen: pt,
|
|
447
|
+
onGeneratePdf: u($e),
|
|
448
|
+
onGenerateCsv: Le,
|
|
449
|
+
onGenerateImage: u(_e),
|
|
450
|
+
onToggleTable: ze,
|
|
451
|
+
onToggleAnnotator: ue
|
|
452
|
+
}, Ve({ _: 2 }, [
|
|
458
453
|
l.$slots.menuIcon ? {
|
|
459
454
|
name: "menuIcon",
|
|
460
455
|
fn: m(({ isOpen: t, color: o }) => [
|
|
461
|
-
p(l.$slots, "menuIcon",
|
|
456
|
+
p(l.$slots, "menuIcon", q(J({ isOpen: t, color: o })), void 0, !0)
|
|
462
457
|
]),
|
|
463
458
|
key: "0"
|
|
464
459
|
} : void 0,
|
|
@@ -500,30 +495,31 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
500
495
|
l.$slots.optionFullscreen ? {
|
|
501
496
|
name: "optionFullscreen",
|
|
502
497
|
fn: m(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
503
|
-
p(l.$slots, "optionFullscreen",
|
|
498
|
+
p(l.$slots, "optionFullscreen", q(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
504
499
|
]),
|
|
505
500
|
key: "6"
|
|
506
501
|
} : void 0,
|
|
507
502
|
l.$slots.optionAnnotator ? {
|
|
508
503
|
name: "optionAnnotator",
|
|
509
504
|
fn: m(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
510
|
-
p(l.$slots, "optionAnnotator",
|
|
505
|
+
p(l.$slots, "optionAnnotator", q(J({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
511
506
|
]),
|
|
512
507
|
key: "7"
|
|
513
508
|
} : void 0
|
|
514
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) :
|
|
515
|
-
|
|
509
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
510
|
+
z.value ? (r(), n("svg", {
|
|
516
511
|
key: 4,
|
|
517
512
|
ref_key: "svgRef",
|
|
518
|
-
ref:
|
|
519
|
-
xmlns:
|
|
520
|
-
class:
|
|
513
|
+
ref: ae,
|
|
514
|
+
xmlns: u(Ht),
|
|
515
|
+
class: Y({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
521
516
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${k.value.fullHeight <= 0 ? 10 : k.value.fullHeight}`,
|
|
522
|
-
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${
|
|
517
|
+
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${be.value}px; width: 100%;` : ""}`)
|
|
523
518
|
}, [
|
|
519
|
+
Be(u(lt)),
|
|
524
520
|
d("defs", null, [
|
|
525
|
-
(r(!0), n(f, null,
|
|
526
|
-
id: `gradient-${t.id}-${
|
|
521
|
+
(r(!0), n(f, null, C(re.value, (t, o) => (r(), n("linearGradient", {
|
|
522
|
+
id: `gradient-${t.id}-${w.value}`,
|
|
527
523
|
x1: "50%",
|
|
528
524
|
y1: "0%",
|
|
529
525
|
x2: "50%",
|
|
@@ -533,27 +529,27 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
533
529
|
offset: "0%",
|
|
534
530
|
"stop-color": t.color,
|
|
535
531
|
"stop-opacity": "1"
|
|
536
|
-
}, null, 8,
|
|
532
|
+
}, null, 8, rl),
|
|
537
533
|
d("stop", {
|
|
538
534
|
offset: "30%",
|
|
539
535
|
"stop-color": t.color,
|
|
540
536
|
"stop-opacity": "0.7"
|
|
541
|
-
}, null, 8,
|
|
537
|
+
}, null, 8, nl),
|
|
542
538
|
d("stop", {
|
|
543
539
|
offset: "70%",
|
|
544
540
|
"stop-color": t.color,
|
|
545
541
|
"stop-opacity": "0.3"
|
|
546
|
-
}, null, 8,
|
|
542
|
+
}, null, 8, ul),
|
|
547
543
|
d("stop", {
|
|
548
544
|
offset: "100%",
|
|
549
545
|
"stop-color": t.color,
|
|
550
546
|
"stop-opacity": "0.1"
|
|
551
|
-
}, null, 8,
|
|
552
|
-
], 8,
|
|
553
|
-
(r(!0), n(f, null,
|
|
554
|
-
(r(!0), n(f, null,
|
|
547
|
+
}, null, 8, il)
|
|
548
|
+
], 8, sl))), 256)),
|
|
549
|
+
(r(!0), n(f, null, C(X.value, (t, o) => (r(), n(f, null, [
|
|
550
|
+
(r(!0), n(f, null, C(t.datapoints, (a, i) => (r(), n("linearGradient", {
|
|
555
551
|
key: `grad${a.id}`,
|
|
556
|
-
id: `gradient-single-${
|
|
552
|
+
id: `gradient-single-${w.value}-${a.uid}`,
|
|
557
553
|
x1: "50%",
|
|
558
554
|
y1: "0%",
|
|
559
555
|
x2: "50%",
|
|
@@ -563,45 +559,45 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
563
559
|
offset: "0%",
|
|
564
560
|
"stop-color": a.color,
|
|
565
561
|
"stop-opacity": "1"
|
|
566
|
-
}, null, 8,
|
|
562
|
+
}, null, 8, vl),
|
|
567
563
|
d("stop", {
|
|
568
564
|
offset: "30%",
|
|
569
565
|
"stop-color": a.color,
|
|
570
566
|
"stop-opacity": "0.7"
|
|
571
|
-
}, null, 8,
|
|
567
|
+
}, null, 8, hl),
|
|
572
568
|
d("stop", {
|
|
573
569
|
offset: "70%",
|
|
574
570
|
"stop-color": a.color,
|
|
575
571
|
"stop-opacity": "0.3"
|
|
576
|
-
}, null, 8,
|
|
572
|
+
}, null, 8, dl),
|
|
577
573
|
d("stop", {
|
|
578
574
|
offset: "100%",
|
|
579
575
|
"stop-color": a.color,
|
|
580
576
|
"stop-opacity": "0.1"
|
|
581
|
-
}, null, 8,
|
|
582
|
-
], 8,
|
|
577
|
+
}, null, 8, yl)
|
|
578
|
+
], 8, cl))), 128))
|
|
583
579
|
], 64))), 256))
|
|
584
580
|
]),
|
|
585
|
-
(r(!0), n(f, null,
|
|
581
|
+
(r(!0), n(f, null, C(X.value, (t, o) => (r(), n("g", {
|
|
586
582
|
key: `ds-${o}`
|
|
587
583
|
}, [
|
|
588
|
-
(r(!0), n(f, null,
|
|
584
|
+
(r(!0), n(f, null, C(t.datapoints, (a, i) => (r(), n("g", {
|
|
589
585
|
key: a.id
|
|
590
586
|
}, [
|
|
591
|
-
l.$slots.pattern ? (r(), n("g",
|
|
587
|
+
l.$slots.pattern ? (r(), n("g", fl, [
|
|
592
588
|
d("defs", null, [
|
|
593
|
-
p(l.$slots, "pattern",
|
|
589
|
+
p(l.$slots, "pattern", Ue({ ref_for: !0 }, { datapointIndex: o, seriesIndex: i, patternId: `pattern_${w.value}_${a.uid}` }), void 0, !0)
|
|
594
590
|
])
|
|
595
|
-
])) :
|
|
591
|
+
])) : v("", !0),
|
|
596
592
|
d("path", {
|
|
597
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
593
|
+
fill: l.$slots.pattern ? `url(#pattern_${w.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
598
594
|
stroke: "none",
|
|
599
595
|
"stroke-linecap": "round",
|
|
600
596
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
601
597
|
style: M({
|
|
602
598
|
opacity: e.value.style.chart.areas.opacity
|
|
603
599
|
})
|
|
604
|
-
}, null, 12,
|
|
600
|
+
}, null, 12, gl),
|
|
605
601
|
d("path", {
|
|
606
602
|
fill: "none",
|
|
607
603
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -609,24 +605,24 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
609
605
|
d: e.value.style.chart.areas.smooth ? a.smoothPathRidge : a.straightPathRidge,
|
|
610
606
|
"stroke-linecap": "round",
|
|
611
607
|
"stroke-linejoin": "round",
|
|
612
|
-
class:
|
|
608
|
+
class: Y({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
613
609
|
style: M({
|
|
614
610
|
strokeDasharray: a.pathLength,
|
|
615
611
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
616
612
|
})
|
|
617
|
-
}, null, 14,
|
|
613
|
+
}, null, 14, pl),
|
|
618
614
|
d("path", {
|
|
619
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${
|
|
615
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${w.value})` : `url(#gradient-single-${w.value}-${a.uid})` : a.color,
|
|
620
616
|
stroke: "none",
|
|
621
617
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
622
618
|
"stroke-linecap": "round",
|
|
623
619
|
"stroke-linejoin": "round",
|
|
624
|
-
class:
|
|
620
|
+
class: Y({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
625
621
|
style: M({
|
|
626
622
|
strokeDasharray: a.pathLength,
|
|
627
623
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
628
624
|
})
|
|
629
|
-
}, null, 14,
|
|
625
|
+
}, null, 14, ml),
|
|
630
626
|
e.value.style.chart.zeroLine.show ? (r(), n("path", {
|
|
631
627
|
key: 1,
|
|
632
628
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -634,20 +630,20 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
634
630
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
635
631
|
d: a.zeroPath,
|
|
636
632
|
"stroke-linecap": "round"
|
|
637
|
-
}, null, 8,
|
|
638
|
-
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(f, { key: 2 },
|
|
633
|
+
}, null, 8, bl)) : v("", !0),
|
|
634
|
+
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(f, { key: 2 }, C(a.plots, (A) => (r(), n(f, null, [
|
|
639
635
|
A.isMaxPoint ? (r(), n("line", {
|
|
640
636
|
key: 0,
|
|
641
637
|
x1: A.x,
|
|
642
638
|
y1: A.y,
|
|
643
639
|
x2: A.x,
|
|
644
640
|
y2: A.zero,
|
|
645
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ?
|
|
641
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Vt)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
646
642
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
647
643
|
"stroke-linecap": "round",
|
|
648
644
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
649
|
-
}, null, 8,
|
|
650
|
-
], 64))), 256)) :
|
|
645
|
+
}, null, 8, xl)) : v("", !0)
|
|
646
|
+
], 64))), 256)) : v("", !0),
|
|
651
647
|
a.plots.length === 1 ? (r(), n("circle", {
|
|
652
648
|
key: 3,
|
|
653
649
|
cx: a.plots[0].x,
|
|
@@ -659,7 +655,7 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
659
655
|
style: {
|
|
660
656
|
pointerEvents: "none"
|
|
661
657
|
}
|
|
662
|
-
}, null, 8,
|
|
658
|
+
}, null, 8, kl)) : v("", !0)
|
|
663
659
|
]))), 128)),
|
|
664
660
|
d("text", {
|
|
665
661
|
x: t.label.x,
|
|
@@ -671,15 +667,15 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
671
667
|
style: M({
|
|
672
668
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
673
669
|
}),
|
|
674
|
-
"text-decoration": e.value.style.chart.dialog.show && (
|
|
675
|
-
onMouseenter: (a) =>
|
|
676
|
-
onMouseleave:
|
|
677
|
-
onClick: (a) =>
|
|
678
|
-
},
|
|
670
|
+
"text-decoration": e.value.style.chart.dialog.show && (ne.value === o || F.value && t.uid === F.value.uid) ? "underline" : "",
|
|
671
|
+
onMouseenter: (a) => bt(o),
|
|
672
|
+
onMouseleave: xt,
|
|
673
|
+
onClick: (a) => mt(t)
|
|
674
|
+
}, E(t.name), 45, Al)
|
|
679
675
|
]))), 128)),
|
|
680
|
-
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g",
|
|
681
|
-
(r(!0), n(f, null,
|
|
682
|
-
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o ===
|
|
676
|
+
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", Cl, [
|
|
677
|
+
(r(!0), n(f, null, C(R.value, (t, o) => p(l.$slots, "time-label", Ue({ ref_for: !0 }, {
|
|
678
|
+
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === R.value.length - 1) || t && h.value && h.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(R.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
683
679
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
684
680
|
content: t.label,
|
|
685
681
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -688,7 +684,7 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
688
684
|
x: t.selectorX,
|
|
689
685
|
y: k.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
690
686
|
}), () => [
|
|
691
|
-
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o ===
|
|
687
|
+
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === R.value.length - 1) || t && h.value && h.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(R.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), n("text", {
|
|
692
688
|
key: 0,
|
|
693
689
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
694
690
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
@@ -696,38 +692,38 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
696
692
|
transform: `translate(${t.selectorX}, ${k.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
697
693
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
698
694
|
style: M({
|
|
699
|
-
opacity:
|
|
695
|
+
opacity: h.value ? h.value.index === o ? 1 : 0.2 : 1
|
|
700
696
|
})
|
|
701
|
-
},
|
|
697
|
+
}, E(t.label), 13, wl)) : v("", !0)
|
|
702
698
|
], !0)), 256))
|
|
703
|
-
])) :
|
|
699
|
+
])) : v("", !0),
|
|
704
700
|
d("g", null, [
|
|
705
|
-
(r(!0), n(f, null,
|
|
701
|
+
(r(!0), n(f, null, C(R.value, (t, o) => (r(), n("rect", {
|
|
706
702
|
x: t.x,
|
|
707
703
|
y: t.y,
|
|
708
704
|
width: t.width < 0 ? 0.1 : t.width,
|
|
709
705
|
height: t.height < 0 ? 0.1 : t.height,
|
|
710
706
|
fill: "transparent",
|
|
711
|
-
onMouseenter: (a) =>
|
|
712
|
-
onMouseleave: s[0] || (s[0] = (a) =>
|
|
713
|
-
onClick: () =>
|
|
714
|
-
}, null, 40,
|
|
715
|
-
e.value.style.chart.selector.show &&
|
|
707
|
+
onMouseenter: (a) => h.value = t,
|
|
708
|
+
onMouseleave: s[0] || (s[0] = (a) => h.value = null),
|
|
709
|
+
onClick: () => ht(t)
|
|
710
|
+
}, null, 40, $l))), 256)),
|
|
711
|
+
e.value.style.chart.selector.show && h.value ? (r(), n("line", {
|
|
716
712
|
key: 0,
|
|
717
|
-
x1:
|
|
718
|
-
x2:
|
|
719
|
-
y1:
|
|
720
|
-
y2:
|
|
713
|
+
x1: h.value.selectorX,
|
|
714
|
+
x2: h.value.selectorX,
|
|
715
|
+
y1: h.value.y,
|
|
716
|
+
y2: h.value.y + h.value.height - $.value / 2,
|
|
721
717
|
stroke: e.value.style.chart.selector.stroke,
|
|
722
718
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
723
719
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
724
720
|
"stroke-linecap": "round",
|
|
725
721
|
style: { pointerEvents: "none" }
|
|
726
|
-
}, null, 8,
|
|
727
|
-
|
|
728
|
-
(r(!0), n(f, null,
|
|
729
|
-
(r(!0), n(f, null,
|
|
730
|
-
|
|
722
|
+
}, null, 8, _l)) : v("", !0),
|
|
723
|
+
h.value ? (r(!0), n(f, { key: 1 }, C(X.value, (t) => (r(), n(f, null, [
|
|
724
|
+
(r(!0), n(f, null, C(t.datapoints, (o) => (r(), n(f, null, [
|
|
725
|
+
(r(!0), n(f, null, C(o.plots, (a, i) => (r(), n(f, null, [
|
|
726
|
+
h.value && h.value.index === i ? (r(), n("circle", {
|
|
731
727
|
key: 0,
|
|
732
728
|
cx: a.x,
|
|
733
729
|
cy: a.y,
|
|
@@ -738,15 +734,15 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
738
734
|
style: {
|
|
739
735
|
pointerEvents: "none"
|
|
740
736
|
}
|
|
741
|
-
}, null, 8,
|
|
742
|
-
|
|
737
|
+
}, null, 8, Ml)) : v("", !0),
|
|
738
|
+
h.value && h.value.index === i ? (r(), n("text", {
|
|
743
739
|
key: 1,
|
|
744
|
-
x:
|
|
740
|
+
x: Te(
|
|
745
741
|
a.x,
|
|
746
|
-
|
|
742
|
+
u(Q)(
|
|
747
743
|
e.value.style.chart.selector.labels.formatter,
|
|
748
744
|
a.value,
|
|
749
|
-
|
|
745
|
+
u(Z)({
|
|
750
746
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
751
747
|
v: a.value,
|
|
752
748
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -756,12 +752,12 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
756
752
|
e.value.style.chart.selector.labels.fontSize
|
|
757
753
|
) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
758
754
|
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
759
|
-
"text-anchor":
|
|
755
|
+
"text-anchor": Te(
|
|
760
756
|
a.x,
|
|
761
|
-
|
|
757
|
+
u(Q)(
|
|
762
758
|
e.value.style.chart.selector.labels.formatter,
|
|
763
759
|
a.value,
|
|
764
|
-
|
|
760
|
+
u(Z)({
|
|
765
761
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
766
762
|
v: a.value,
|
|
767
763
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -775,26 +771,26 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
775
771
|
style: {
|
|
776
772
|
pointerEvents: "none"
|
|
777
773
|
}
|
|
778
|
-
},
|
|
774
|
+
}, E(u(Q)(
|
|
779
775
|
e.value.style.chart.selector.labels.formatter,
|
|
780
776
|
a.value,
|
|
781
|
-
|
|
777
|
+
u(Z)({
|
|
782
778
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
783
779
|
v: a.value,
|
|
784
780
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
785
781
|
r: e.value.style.chart.selector.labels.rounding
|
|
786
782
|
})
|
|
787
|
-
)), 9,
|
|
783
|
+
)), 9, Pl)) : v("", !0)
|
|
788
784
|
], 64))), 256))
|
|
789
785
|
], 64))), 256))
|
|
790
|
-
], 64))), 256)) :
|
|
786
|
+
], 64))), 256)) : v("", !0)
|
|
791
787
|
]),
|
|
792
788
|
p(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
793
|
-
], 14,
|
|
794
|
-
l.$slots.watermark ? (r(), n("div",
|
|
795
|
-
p(l.$slots, "watermark",
|
|
796
|
-
])) :
|
|
797
|
-
|
|
789
|
+
], 14, ol)) : v("", !0),
|
|
790
|
+
l.$slots.watermark ? (r(), n("div", Tl, [
|
|
791
|
+
p(l.$slots, "watermark", q(J({ isPrinting: u(Ce) || u(we) })), void 0, !0)
|
|
792
|
+
])) : v("", !0),
|
|
793
|
+
z.value ? v("", !0) : (r(), P(u(ot), {
|
|
798
794
|
key: 6,
|
|
799
795
|
config: {
|
|
800
796
|
type: "ridgeline",
|
|
@@ -808,51 +804,51 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
808
804
|
}, null, 8, ["config"])),
|
|
809
805
|
d("div", {
|
|
810
806
|
ref_key: "chartLegend",
|
|
811
|
-
ref:
|
|
807
|
+
ref: he
|
|
812
808
|
}, [
|
|
813
|
-
e.value.style.chart.legend.show ? (r(),
|
|
814
|
-
key: `legend_${
|
|
815
|
-
legendSet:
|
|
816
|
-
config:
|
|
817
|
-
onClickMarker: s[1] || (s[1] = ({ legend: t }) =>
|
|
818
|
-
},
|
|
809
|
+
e.value.style.chart.legend.show ? (r(), P(Zt, {
|
|
810
|
+
key: `legend_${ge.value}`,
|
|
811
|
+
legendSet: re.value,
|
|
812
|
+
config: gt.value,
|
|
813
|
+
onClickMarker: s[1] || (s[1] = ({ legend: t }) => Me(t.id))
|
|
814
|
+
}, Ve({
|
|
819
815
|
item: m(({ legend: t }) => [
|
|
820
816
|
d("div", {
|
|
821
|
-
style: M(`opacity:${
|
|
817
|
+
style: M(`opacity:${O.value.includes(t.id) ? 0.5 : 1}`),
|
|
822
818
|
onClick: (o) => t.segregate()
|
|
823
|
-
},
|
|
819
|
+
}, E(t.name), 13, Ol)
|
|
824
820
|
]),
|
|
825
821
|
_: 2
|
|
826
822
|
}, [
|
|
827
823
|
l.$slots.pattern ? {
|
|
828
824
|
name: "legend-pattern",
|
|
829
825
|
fn: m(({ legend: t, index: o }) => [
|
|
830
|
-
|
|
826
|
+
Be(tl, {
|
|
831
827
|
shape: t.shape,
|
|
832
828
|
radius: 30,
|
|
833
829
|
stroke: "none",
|
|
834
830
|
plot: { x: 30, y: 30 },
|
|
835
|
-
fill: `url(#pattern_${
|
|
831
|
+
fill: `url(#pattern_${w.value}_${o})`
|
|
836
832
|
}, null, 8, ["shape", "fill"])
|
|
837
833
|
]),
|
|
838
834
|
key: "0"
|
|
839
835
|
} : void 0
|
|
840
|
-
]), 1032, ["legendSet", "config"])) :
|
|
841
|
-
p(l.$slots, "legend", { legend:
|
|
836
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
837
|
+
p(l.$slots, "legend", { legend: re.value }, void 0, !0)
|
|
842
838
|
], 512),
|
|
843
839
|
l.$slots.source ? (r(), n("div", {
|
|
844
840
|
key: 7,
|
|
845
841
|
ref_key: "source",
|
|
846
|
-
ref:
|
|
842
|
+
ref: de,
|
|
847
843
|
dir: "auto"
|
|
848
844
|
}, [
|
|
849
845
|
p(l.$slots, "source", {}, void 0, !0)
|
|
850
|
-
], 512)) :
|
|
851
|
-
|
|
846
|
+
], 512)) : v("", !0),
|
|
847
|
+
z.value ? (r(), P(u(Ze), {
|
|
852
848
|
key: 8,
|
|
853
849
|
hideDetails: "",
|
|
854
850
|
config: {
|
|
855
|
-
open:
|
|
851
|
+
open: H.value.showTable,
|
|
856
852
|
maxHeight: 1e4,
|
|
857
853
|
body: {
|
|
858
854
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -865,23 +861,23 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
865
861
|
}
|
|
866
862
|
}, {
|
|
867
863
|
content: m(() => [
|
|
868
|
-
(r(),
|
|
869
|
-
key: `table_${
|
|
870
|
-
colNames:
|
|
871
|
-
head:
|
|
872
|
-
body:
|
|
873
|
-
config:
|
|
864
|
+
(r(), P(u(tt), {
|
|
865
|
+
key: `table_${ut.value}`,
|
|
866
|
+
colNames: j.value.colNames,
|
|
867
|
+
head: j.value.head,
|
|
868
|
+
body: j.value.body,
|
|
869
|
+
config: j.value.config,
|
|
874
870
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` :${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
875
|
-
onClose: s[2] || (s[2] = (t) =>
|
|
871
|
+
onClose: s[2] || (s[2] = (t) => H.value.showTable = !1)
|
|
876
872
|
}, {
|
|
877
873
|
th: m(({ th: t }) => [
|
|
878
|
-
d("div", { innerHTML: t }, null, 8,
|
|
874
|
+
d("div", { innerHTML: t }, null, 8, Sl)
|
|
879
875
|
]),
|
|
880
876
|
td: m(({ td: t }) => [
|
|
881
|
-
|
|
877
|
+
Ge(E(t.name ? t.name : u(Q)(
|
|
882
878
|
e.value.style.chart.selector.labels.formatter,
|
|
883
879
|
t,
|
|
884
|
-
|
|
880
|
+
u(Z)({
|
|
885
881
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
886
882
|
v: t,
|
|
887
883
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -893,32 +889,32 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
893
889
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
894
890
|
]),
|
|
895
891
|
_: 1
|
|
896
|
-
}, 8, ["config"])) :
|
|
897
|
-
e.value.style.chart.dialog.show ? (r(),
|
|
892
|
+
}, 8, ["config"])) : v("", !0),
|
|
893
|
+
e.value.style.chart.dialog.show ? (r(), P(u(et), {
|
|
898
894
|
key: 9,
|
|
899
895
|
ref_key: "dialog",
|
|
900
|
-
ref:
|
|
901
|
-
onClose: s[3] || (s[3] = (t) =>
|
|
896
|
+
ref: te,
|
|
897
|
+
onClose: s[3] || (s[3] = (t) => F.value = null),
|
|
902
898
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
903
899
|
color: e.value.style.chart.dialog.color,
|
|
904
900
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
905
901
|
headerColor: e.value.style.chart.dialog.header.color
|
|
906
902
|
}, {
|
|
907
903
|
title: m(() => [
|
|
908
|
-
|
|
904
|
+
Ge(E(F.value.name), 1)
|
|
909
905
|
]),
|
|
910
906
|
default: m(() => [
|
|
911
|
-
|
|
907
|
+
F.value ? (r(), P(u(rt), {
|
|
912
908
|
key: 0,
|
|
913
|
-
config:
|
|
914
|
-
dataset:
|
|
915
|
-
}, null, 8, ["config", "dataset"])) :
|
|
909
|
+
config: Oe.value,
|
|
910
|
+
dataset: Se.value
|
|
911
|
+
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
916
912
|
]),
|
|
917
913
|
_: 1
|
|
918
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) :
|
|
919
|
-
], 46,
|
|
914
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) : v("", !0)
|
|
915
|
+
], 46, al));
|
|
920
916
|
}
|
|
921
|
-
},
|
|
917
|
+
}, Ul = /* @__PURE__ */ ll(zl, [["__scopeId", "data-v-52302b79"]]);
|
|
922
918
|
export {
|
|
923
|
-
|
|
919
|
+
Ul as default
|
|
924
920
|
};
|