vue-data-ui 2.12.7-beta.0 → 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-CmqjRRUl.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-CKbomZCX.js} +2 -2
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-F4TctKaQ.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-Y5HbiUZU.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-DtTYopxf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-PC9Yu1K_.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-DaWGaZxE.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-C-CpE0NC.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-B6kIkp2s.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-DcdMxgqn.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-Bc66VstS.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B07vY6jm.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-C8X2STEg.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-BHEd2dgu.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-C8URL2IU.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-CriyJ0Da.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BwgozppD.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-C20X1YRt.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-B264jwvu.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-ECSEPy9m.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-BxjeL4B6.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-CJNnQbPC.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-0RLVrL7y.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-BIFf4SLq.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-mc_-1JSs.js} +7 -7
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-D50S44wU.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-CxDTjjYn.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-DeC0U017.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-n0MW2u-q.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-AYMCSEtU.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-Ckz1h7XW.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-m0SgFsTu.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-BrcF_YLL.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-DiVxDYiV.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-BCUC8QED.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-DrrjD9S1.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-8RTss1yH.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-CmPLnisN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-CdM3bVZs.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-C-lgCI6O.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-Dq94lb99.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-DsKddA_I.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-CVR7NvJ_.js} +116 -115
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-B0soMLZ5.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-Bq4_NUfW.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-CG3Pn3Zg.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend--6lA4742.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-BXx7Vglf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-zM4_Tgqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BDNrZbWN.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-CzzyDmYJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-tBSUQ_09.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-BriZOfj6.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-DzYyFp3o.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-COKfg2KT.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D7C5AiCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-CDG6vSMm.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-DOoO0CVB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-BSPIy1A3.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DsMmxgin.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-B2_ZHuyv.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-YhkwHcUX.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-CWHJwyyL.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BLgEqHRF.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-BQelvSLD.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-D1luVUXJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-C7Pu9RFN.js} +7 -7
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent 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 qe } from "./useNestedProp-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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";
|
|
10
11
|
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
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"],
|
|
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 = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, Ol = ["onClick"], Sl = ["innerHTML"], zl = {
|
|
15
16
|
__name: "vue-ui-ridgeline",
|
|
16
17
|
props: {
|
|
17
18
|
config: {
|
|
@@ -29,28 +30,28 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
31
32
|
setup(Je, { expose: Ke, emit: Qe }) {
|
|
32
|
-
const Ze =
|
|
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({
|
|
33
34
|
get() {
|
|
34
35
|
return !!x.dataset && x.dataset.length;
|
|
35
36
|
},
|
|
36
37
|
set(l) {
|
|
37
38
|
return l;
|
|
38
39
|
}
|
|
39
|
-
}), ee = Qe, G = c(null), ve = c(null), he = c(null),
|
|
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);
|
|
40
41
|
function xe() {
|
|
41
42
|
const l = qe({
|
|
42
43
|
userConfig: x.config,
|
|
43
|
-
defaultConfig:
|
|
44
|
+
defaultConfig: nt
|
|
44
45
|
});
|
|
45
46
|
return l.theme ? {
|
|
46
47
|
...qe({
|
|
47
|
-
userConfig:
|
|
48
|
+
userConfig: Ut.vue_ui_ridgeline[l.theme] || x.config,
|
|
48
49
|
defaultConfig: l
|
|
49
50
|
}),
|
|
50
|
-
customPalette:
|
|
51
|
+
customPalette: Bt[l.theme] || K
|
|
51
52
|
} : l;
|
|
52
53
|
}
|
|
53
|
-
const e =
|
|
54
|
+
const e = g({
|
|
54
55
|
get: () => xe(),
|
|
55
56
|
set: (l) => l
|
|
56
57
|
}), $ = c(Math.min(
|
|
@@ -60,10 +61,10 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
60
61
|
userOptionsVisible: le,
|
|
61
62
|
setUserOptionsVisibility: ke,
|
|
62
63
|
keepUserOptionState: Ae
|
|
63
|
-
} =
|
|
64
|
-
|
|
64
|
+
} = Yt({ config: e.value }), { svgRef: ae } = qt({ config: e.value.style.chart.title });
|
|
65
|
+
St(oe);
|
|
65
66
|
function oe() {
|
|
66
|
-
if (
|
|
67
|
+
if (Dt(x.dataset) ? ce({
|
|
67
68
|
componentName: "VueUiRidgeline",
|
|
68
69
|
type: "dataset"
|
|
69
70
|
}) : x.dataset.forEach((l, s) => {
|
|
@@ -90,12 +91,12 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
90
91
|
});
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
|
-
}),
|
|
94
|
+
}), it.value = x.dataset.length, $.value = Math.min(
|
|
94
95
|
e.value.style.chart.areas.height,
|
|
95
96
|
e.value.style.chart.areas.rowHeight
|
|
96
97
|
), e.value.responsive) {
|
|
97
|
-
const l =
|
|
98
|
-
const { width: s, height: t } =
|
|
98
|
+
const l = Kt(() => {
|
|
99
|
+
const { width: s, height: t } = Qt({
|
|
99
100
|
chart: G.value,
|
|
100
101
|
title: e.value.style.chart.title.text ? ve.value : null,
|
|
101
102
|
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
@@ -107,56 +108,56 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
107
108
|
me.value = s, $.value = t / x.dataset.length, be.value = t;
|
|
108
109
|
});
|
|
109
110
|
});
|
|
110
|
-
|
|
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);
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
zt(() => {
|
|
115
|
+
T.value && (I.value && T.value.unobserve(I.value), T.value.disconnect());
|
|
115
116
|
});
|
|
116
|
-
const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: _e } =
|
|
117
|
+
const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: _e } = Jt({
|
|
117
118
|
elementId: `vue-ui-ridgeline_${w.value}`,
|
|
118
119
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
119
120
|
options: e.value.userOptions.print
|
|
120
|
-
}),
|
|
121
|
+
}), ct = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), vt = g(() => It(e.value.customPalette)), H = c({
|
|
121
122
|
showTable: e.value.table.show
|
|
122
123
|
});
|
|
123
124
|
He(() => x.config, (l) => {
|
|
124
|
-
e.value = xe(), le.value = !e.value.userOptions.showOnChartHover, oe(),
|
|
125
|
+
e.value = xe(), le.value = !e.value.userOptions.showOnChartHover, oe(), fe.value += 1, ge.value += 1, $.value = Math.min(
|
|
125
126
|
e.value.style.chart.areas.height,
|
|
126
127
|
e.value.style.chart.areas.rowHeight
|
|
127
128
|
), H.value.showTable = e.value.table.show;
|
|
128
129
|
}, { deep: !0 }), He(() => x.dataset, oe, { deep: !0 });
|
|
129
|
-
const se =
|
|
130
|
+
const se = g(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
130
131
|
function Me(l) {
|
|
131
132
|
O.value.includes(l) ? O.value = O.value.filter((s) => s !== l) : O.value.push(l), ee("selectLegend", X.value);
|
|
132
133
|
}
|
|
133
|
-
const _ =
|
|
134
|
+
const _ = g(() => z.value ? x.dataset.map((l, s) => ({
|
|
134
135
|
...l,
|
|
135
|
-
labelLen:
|
|
136
|
+
labelLen: yt(l.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
136
137
|
uid: ie(),
|
|
137
138
|
datapoints: l.datapoints.map((t, o) => {
|
|
138
|
-
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);
|
|
139
140
|
return {
|
|
140
141
|
...t,
|
|
141
142
|
color: a,
|
|
142
143
|
id: i
|
|
143
144
|
};
|
|
144
145
|
})
|
|
145
|
-
})) : []), Pe =
|
|
146
|
+
})) : []), Pe = g(() => e.value.style.chart.padding.top + $.value * x.dataset.length + $.value * se.value), k = g(() => ({
|
|
146
147
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
147
148
|
top: y.value.padding.top,
|
|
148
149
|
left: y.value.padding.left,
|
|
149
150
|
right: y.value.width - y.value.padding.right,
|
|
150
151
|
bottom: y.value.padding.top + y.value.height,
|
|
151
152
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
152
|
-
})), y =
|
|
153
|
+
})), y = g(() => {
|
|
153
154
|
const l = e.value.style.chart.padding;
|
|
154
155
|
return {
|
|
155
156
|
width: me.value,
|
|
156
157
|
height: Pe.value,
|
|
157
158
|
padding: l
|
|
158
159
|
};
|
|
159
|
-
}), R =
|
|
160
|
+
}), R = g(() => {
|
|
160
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 = [];
|
|
161
162
|
for (let i = 0; i < s; i += 1)
|
|
162
163
|
a.push({
|
|
@@ -170,24 +171,24 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
170
171
|
});
|
|
171
172
|
return a;
|
|
172
173
|
});
|
|
173
|
-
function
|
|
174
|
+
function ht(l) {
|
|
174
175
|
ee("selectX", _.value.map((s) => s.datapoints.map((t) => ({
|
|
175
176
|
dp: t,
|
|
176
177
|
selected: t.values[l.index]
|
|
177
178
|
}))));
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
+
function dt(l, s) {
|
|
180
181
|
return l.length * s / 2 + s;
|
|
181
182
|
}
|
|
182
183
|
function Te(l, s, t) {
|
|
183
|
-
const o =
|
|
184
|
+
const o = dt(s, t);
|
|
184
185
|
return l + o > k.value.right;
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
+
function yt(l, s, t = "sans-serif") {
|
|
187
188
|
const a = document.createElement("canvas").getContext("2d"), i = typeof s == "number" ? `${s}px` : s;
|
|
188
189
|
return a.font = `${i} ${t}`, a.measureText(l).width;
|
|
189
190
|
}
|
|
190
|
-
const X =
|
|
191
|
+
const X = g(() => {
|
|
191
192
|
$.value;
|
|
192
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;
|
|
193
194
|
function Ie(b) {
|
|
@@ -202,26 +203,26 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
202
203
|
y: L
|
|
203
204
|
},
|
|
204
205
|
datapoints: b.datapoints.map((B) => {
|
|
205
|
-
const D = B.values.map((U,
|
|
206
|
-
const
|
|
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);
|
|
207
208
|
return {
|
|
208
|
-
x:
|
|
209
|
-
y:
|
|
209
|
+
x: Pt,
|
|
210
|
+
y: Tt,
|
|
210
211
|
value: U,
|
|
211
212
|
isMaxPoint: Ot,
|
|
212
213
|
zero: L
|
|
213
214
|
};
|
|
214
|
-
}),
|
|
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(
|
|
215
216
|
e.value.style.chart.areas.smooth ? Re : Xe
|
|
216
217
|
);
|
|
217
218
|
return {
|
|
218
219
|
...B,
|
|
219
220
|
uid: ie(),
|
|
220
221
|
plots: D,
|
|
221
|
-
smoothPath:
|
|
222
|
-
straightPath:
|
|
223
|
-
zeroPath:
|
|
224
|
-
pathLength:
|
|
222
|
+
smoothPath: At,
|
|
223
|
+
straightPath: Ct,
|
|
224
|
+
zeroPath: wt,
|
|
225
|
+
pathLength: $t,
|
|
225
226
|
smoothPathRidge: Re,
|
|
226
227
|
straightPathRidge: Xe
|
|
227
228
|
};
|
|
@@ -246,7 +247,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
246
247
|
});
|
|
247
248
|
}), Array.from(s.values());
|
|
248
249
|
}
|
|
249
|
-
const re =
|
|
250
|
+
const re = g(() => ft(_.value)), gt = g(() => ({
|
|
250
251
|
cy: "donut-div-legend",
|
|
251
252
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
252
253
|
color: e.value.style.chart.legend.color,
|
|
@@ -254,19 +255,19 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
254
255
|
paddingBottom: 12,
|
|
255
256
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
256
257
|
})), V = c(!1);
|
|
257
|
-
function
|
|
258
|
+
function pt(l) {
|
|
258
259
|
V.value = l, pe.value += 1;
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
-
function
|
|
262
|
-
ee("selectDatapoint", l), e.value.style.chart.dialog.show && (
|
|
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) => ({
|
|
263
264
|
name: s.name,
|
|
264
265
|
color: s.color,
|
|
265
266
|
type: "line",
|
|
266
267
|
useArea: !0,
|
|
267
268
|
smooth: e.value.style.chart.areas.smooth,
|
|
268
269
|
series: s.values
|
|
269
|
-
})), F.value = l,
|
|
270
|
+
})), F.value = l, Oe.value = jt({
|
|
270
271
|
...e.value.style.chart.dialog.xyChart,
|
|
271
272
|
responsive: !0,
|
|
272
273
|
// Overriding
|
|
@@ -292,10 +293,10 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
292
293
|
}), te.value && te.value.open());
|
|
293
294
|
}
|
|
294
295
|
const ne = c(null);
|
|
295
|
-
function
|
|
296
|
+
function bt(l) {
|
|
296
297
|
ne.value = l;
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function xt() {
|
|
299
300
|
ne.value = null;
|
|
300
301
|
}
|
|
301
302
|
const W = c(!1);
|
|
@@ -305,7 +306,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
305
306
|
function ze() {
|
|
306
307
|
H.value.showTable = !H.value.showTable;
|
|
307
308
|
}
|
|
308
|
-
const Ne =
|
|
309
|
+
const Ne = g(() => ({ body: X.value.flatMap((t) => t.datapoints.flatMap((o) => ({
|
|
309
310
|
...o,
|
|
310
311
|
rowName: `${t.name}: ${o.name}`
|
|
311
312
|
}))).map((t) => [
|
|
@@ -314,7 +315,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
314
315
|
color: t.color
|
|
315
316
|
},
|
|
316
317
|
...t.values
|
|
317
|
-
]) })), j =
|
|
318
|
+
]) })), j = g(() => {
|
|
318
319
|
const l = [
|
|
319
320
|
e.value.table.columnNames.series,
|
|
320
321
|
...e.value.style.chart.xAxis.labels.values
|
|
@@ -342,25 +343,25 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
342
343
|
};
|
|
343
344
|
});
|
|
344
345
|
function Le() {
|
|
345
|
-
|
|
346
|
+
Nt(() => {
|
|
346
347
|
const l = [
|
|
347
348
|
[e.value.table.columnNames.series, ...e.value.style.chart.xAxis.labels.values.map((o) => [o])],
|
|
348
349
|
...Ne.value.body.map((o, a) => [o[0].name, ...o.slice(1)])
|
|
349
350
|
], s = [
|
|
350
351
|
[e.value.style.chart.title.text],
|
|
351
352
|
[e.value.style.chart.title.subtitle.text]
|
|
352
|
-
].concat(l), t =
|
|
353
|
-
|
|
353
|
+
].concat(l), t = Gt(s);
|
|
354
|
+
Wt({
|
|
354
355
|
csvContent: t,
|
|
355
356
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
356
357
|
});
|
|
357
358
|
});
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function kt() {
|
|
360
361
|
return X.value;
|
|
361
362
|
}
|
|
362
363
|
return Ke({
|
|
363
|
-
getData:
|
|
364
|
+
getData: kt,
|
|
364
365
|
generateImage: _e,
|
|
365
366
|
generatePdf: $e,
|
|
366
367
|
generateCsv: Le,
|
|
@@ -371,7 +372,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
371
372
|
ref: G,
|
|
372
373
|
class: Y(`vue-ui-ridgeline ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
373
374
|
id: `vue-ui-ridgeline_${w.value}`,
|
|
374
|
-
style:
|
|
375
|
+
style: M({
|
|
375
376
|
fontFamily: e.value.style.fontFamily,
|
|
376
377
|
width: "100%",
|
|
377
378
|
textAlign: "center",
|
|
@@ -381,7 +382,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
381
382
|
onMouseenter: s[4] || (s[4] = () => u(ke)(!0)),
|
|
382
383
|
onMouseleave: s[5] || (s[5] = () => u(ke)(!1))
|
|
383
384
|
}, [
|
|
384
|
-
e.value.userOptions.buttons.annotator && u(ae) ? (r(),
|
|
385
|
+
e.value.userOptions.buttons.annotator && u(ae) ? (r(), P(u(at), {
|
|
385
386
|
key: 0,
|
|
386
387
|
color: e.value.style.chart.color,
|
|
387
388
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -390,7 +391,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
390
391
|
onClose: ue
|
|
391
392
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
392
393
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
393
|
-
|
|
394
|
+
ct.value ? (r(), n("div", {
|
|
394
395
|
key: 1,
|
|
395
396
|
ref_key: "noTitle",
|
|
396
397
|
ref: ye,
|
|
@@ -403,8 +404,8 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
403
404
|
ref: ve,
|
|
404
405
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
405
406
|
}, [
|
|
406
|
-
(r(),
|
|
407
|
-
key: `title_${
|
|
407
|
+
(r(), P(el, {
|
|
408
|
+
key: `title_${fe.value}`,
|
|
408
409
|
config: {
|
|
409
410
|
title: {
|
|
410
411
|
cy: "ridgeline-div-title",
|
|
@@ -417,7 +418,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
417
418
|
}
|
|
418
419
|
}, null, 8, ["config"]))
|
|
419
420
|
], 512)) : v("", !0),
|
|
420
|
-
e.value.userOptions.show && z.value && (u(Ae) || u(le)) ? (r(),
|
|
421
|
+
e.value.userOptions.show && z.value && (u(Ae) || u(le)) ? (r(), P(u(st), {
|
|
421
422
|
ref: "details",
|
|
422
423
|
key: `user_option_${pe.value}`,
|
|
423
424
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -439,10 +440,10 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
439
440
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
440
441
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
441
442
|
isAnnotation: W.value,
|
|
442
|
-
style:
|
|
443
|
+
style: M({
|
|
443
444
|
visibility: u(Ae) ? u(le) ? "visible" : "hidden" : "visible"
|
|
444
445
|
}),
|
|
445
|
-
onToggleFullscreen:
|
|
446
|
+
onToggleFullscreen: pt,
|
|
446
447
|
onGeneratePdf: u($e),
|
|
447
448
|
onGenerateCsv: Le,
|
|
448
449
|
onGenerateImage: u(_e),
|
|
@@ -510,14 +511,14 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
510
511
|
key: 4,
|
|
511
512
|
ref_key: "svgRef",
|
|
512
513
|
ref: ae,
|
|
513
|
-
xmlns: u(
|
|
514
|
+
xmlns: u(Ht),
|
|
514
515
|
class: Y({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
515
516
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${k.value.fullHeight <= 0 ? 10 : k.value.fullHeight}`,
|
|
516
|
-
style:
|
|
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%;` : ""}`)
|
|
517
518
|
}, [
|
|
518
519
|
Be(u(lt)),
|
|
519
520
|
d("defs", null, [
|
|
520
|
-
(r(!0), n(
|
|
521
|
+
(r(!0), n(f, null, C(re.value, (t, o) => (r(), n("linearGradient", {
|
|
521
522
|
id: `gradient-${t.id}-${w.value}`,
|
|
522
523
|
x1: "50%",
|
|
523
524
|
y1: "0%",
|
|
@@ -545,8 +546,8 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
545
546
|
"stop-opacity": "0.1"
|
|
546
547
|
}, null, 8, il)
|
|
547
548
|
], 8, sl))), 256)),
|
|
548
|
-
(r(!0), n(
|
|
549
|
-
(r(!0), n(
|
|
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", {
|
|
550
551
|
key: `grad${a.id}`,
|
|
551
552
|
id: `gradient-single-${w.value}-${a.uid}`,
|
|
552
553
|
x1: "50%",
|
|
@@ -577,13 +578,13 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
577
578
|
], 8, cl))), 128))
|
|
578
579
|
], 64))), 256))
|
|
579
580
|
]),
|
|
580
|
-
(r(!0), n(
|
|
581
|
+
(r(!0), n(f, null, C(X.value, (t, o) => (r(), n("g", {
|
|
581
582
|
key: `ds-${o}`
|
|
582
583
|
}, [
|
|
583
|
-
(r(!0), n(
|
|
584
|
+
(r(!0), n(f, null, C(t.datapoints, (a, i) => (r(), n("g", {
|
|
584
585
|
key: a.id
|
|
585
586
|
}, [
|
|
586
|
-
l.$slots.pattern ? (r(), n("g",
|
|
587
|
+
l.$slots.pattern ? (r(), n("g", fl, [
|
|
587
588
|
d("defs", null, [
|
|
588
589
|
p(l.$slots, "pattern", Ue({ ref_for: !0 }, { datapointIndex: o, seriesIndex: i, patternId: `pattern_${w.value}_${a.uid}` }), void 0, !0)
|
|
589
590
|
])
|
|
@@ -593,10 +594,10 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
593
594
|
stroke: "none",
|
|
594
595
|
"stroke-linecap": "round",
|
|
595
596
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
596
|
-
style:
|
|
597
|
+
style: M({
|
|
597
598
|
opacity: e.value.style.chart.areas.opacity
|
|
598
599
|
})
|
|
599
|
-
}, null, 12,
|
|
600
|
+
}, null, 12, gl),
|
|
600
601
|
d("path", {
|
|
601
602
|
fill: "none",
|
|
602
603
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -605,7 +606,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
605
606
|
"stroke-linecap": "round",
|
|
606
607
|
"stroke-linejoin": "round",
|
|
607
608
|
class: Y({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
608
|
-
style:
|
|
609
|
+
style: M({
|
|
609
610
|
strokeDasharray: a.pathLength,
|
|
610
611
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
611
612
|
})
|
|
@@ -617,7 +618,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
617
618
|
"stroke-linecap": "round",
|
|
618
619
|
"stroke-linejoin": "round",
|
|
619
620
|
class: Y({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
620
|
-
style:
|
|
621
|
+
style: M({
|
|
621
622
|
strokeDasharray: a.pathLength,
|
|
622
623
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
623
624
|
})
|
|
@@ -630,14 +631,14 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
630
631
|
d: a.zeroPath,
|
|
631
632
|
"stroke-linecap": "round"
|
|
632
633
|
}, null, 8, bl)) : v("", !0),
|
|
633
|
-
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(
|
|
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, [
|
|
634
635
|
A.isMaxPoint ? (r(), n("line", {
|
|
635
636
|
key: 0,
|
|
636
637
|
x1: A.x,
|
|
637
638
|
y1: A.y,
|
|
638
639
|
x2: A.x,
|
|
639
640
|
y2: A.zero,
|
|
640
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
641
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Vt)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
641
642
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
642
643
|
"stroke-linecap": "round",
|
|
643
644
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
@@ -663,17 +664,17 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
663
664
|
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
664
665
|
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
665
666
|
fill: e.value.style.chart.yAxis.labels.color,
|
|
666
|
-
style:
|
|
667
|
+
style: M({
|
|
667
668
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
668
669
|
}),
|
|
669
670
|
"text-decoration": e.value.style.chart.dialog.show && (ne.value === o || F.value && t.uid === F.value.uid) ? "underline" : "",
|
|
670
|
-
onMouseenter: (a) =>
|
|
671
|
-
onMouseleave:
|
|
672
|
-
onClick: (a) =>
|
|
671
|
+
onMouseenter: (a) => bt(o),
|
|
672
|
+
onMouseleave: xt,
|
|
673
|
+
onClick: (a) => mt(t)
|
|
673
674
|
}, E(t.name), 45, Al)
|
|
674
675
|
]))), 128)),
|
|
675
676
|
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", Cl, [
|
|
676
|
-
(r(!0), n(
|
|
677
|
+
(r(!0), n(f, null, C(R.value, (t, o) => p(l.$slots, "time-label", Ue({ ref_for: !0 }, {
|
|
677
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,
|
|
678
679
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
679
680
|
content: t.label,
|
|
@@ -690,14 +691,14 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
690
691
|
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
691
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})`,
|
|
692
693
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
693
|
-
style:
|
|
694
|
+
style: M({
|
|
694
695
|
opacity: h.value ? h.value.index === o ? 1 : 0.2 : 1
|
|
695
696
|
})
|
|
696
697
|
}, E(t.label), 13, wl)) : v("", !0)
|
|
697
698
|
], !0)), 256))
|
|
698
699
|
])) : v("", !0),
|
|
699
700
|
d("g", null, [
|
|
700
|
-
(r(!0), n(
|
|
701
|
+
(r(!0), n(f, null, C(R.value, (t, o) => (r(), n("rect", {
|
|
701
702
|
x: t.x,
|
|
702
703
|
y: t.y,
|
|
703
704
|
width: t.width < 0 ? 0.1 : t.width,
|
|
@@ -705,7 +706,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
705
706
|
fill: "transparent",
|
|
706
707
|
onMouseenter: (a) => h.value = t,
|
|
707
708
|
onMouseleave: s[0] || (s[0] = (a) => h.value = null),
|
|
708
|
-
onClick: () =>
|
|
709
|
+
onClick: () => ht(t)
|
|
709
710
|
}, null, 40, $l))), 256)),
|
|
710
711
|
e.value.style.chart.selector.show && h.value ? (r(), n("line", {
|
|
711
712
|
key: 0,
|
|
@@ -719,9 +720,9 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
719
720
|
"stroke-linecap": "round",
|
|
720
721
|
style: { pointerEvents: "none" }
|
|
721
722
|
}, null, 8, _l)) : v("", !0),
|
|
722
|
-
h.value ? (r(!0), n(
|
|
723
|
-
(r(!0), n(
|
|
724
|
-
(r(!0), n(
|
|
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, [
|
|
725
726
|
h.value && h.value.index === i ? (r(), n("circle", {
|
|
726
727
|
key: 0,
|
|
727
728
|
cx: a.x,
|
|
@@ -789,7 +790,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
789
790
|
l.$slots.watermark ? (r(), n("div", Tl, [
|
|
790
791
|
p(l.$slots, "watermark", q(J({ isPrinting: u(Ce) || u(we) })), void 0, !0)
|
|
791
792
|
])) : v("", !0),
|
|
792
|
-
z.value ? v("", !0) : (r(),
|
|
793
|
+
z.value ? v("", !0) : (r(), P(u(ot), {
|
|
793
794
|
key: 6,
|
|
794
795
|
config: {
|
|
795
796
|
type: "ridgeline",
|
|
@@ -805,24 +806,24 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
805
806
|
ref_key: "chartLegend",
|
|
806
807
|
ref: he
|
|
807
808
|
}, [
|
|
808
|
-
e.value.style.chart.legend.show ? (r(),
|
|
809
|
-
key: `legend_${
|
|
809
|
+
e.value.style.chart.legend.show ? (r(), P(Zt, {
|
|
810
|
+
key: `legend_${ge.value}`,
|
|
810
811
|
legendSet: re.value,
|
|
811
|
-
config:
|
|
812
|
+
config: gt.value,
|
|
812
813
|
onClickMarker: s[1] || (s[1] = ({ legend: t }) => Me(t.id))
|
|
813
814
|
}, Ve({
|
|
814
815
|
item: m(({ legend: t }) => [
|
|
815
816
|
d("div", {
|
|
816
|
-
style:
|
|
817
|
+
style: M(`opacity:${O.value.includes(t.id) ? 0.5 : 1}`),
|
|
817
818
|
onClick: (o) => t.segregate()
|
|
818
|
-
}, E(t.name), 13,
|
|
819
|
+
}, E(t.name), 13, Ol)
|
|
819
820
|
]),
|
|
820
821
|
_: 2
|
|
821
822
|
}, [
|
|
822
823
|
l.$slots.pattern ? {
|
|
823
824
|
name: "legend-pattern",
|
|
824
825
|
fn: m(({ legend: t, index: o }) => [
|
|
825
|
-
Be(
|
|
826
|
+
Be(tl, {
|
|
826
827
|
shape: t.shape,
|
|
827
828
|
radius: 30,
|
|
828
829
|
stroke: "none",
|
|
@@ -843,7 +844,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
843
844
|
}, [
|
|
844
845
|
p(l.$slots, "source", {}, void 0, !0)
|
|
845
846
|
], 512)) : v("", !0),
|
|
846
|
-
z.value ? (r(),
|
|
847
|
+
z.value ? (r(), P(u(Ze), {
|
|
847
848
|
key: 8,
|
|
848
849
|
hideDetails: "",
|
|
849
850
|
config: {
|
|
@@ -860,8 +861,8 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
860
861
|
}
|
|
861
862
|
}, {
|
|
862
863
|
content: m(() => [
|
|
863
|
-
(r(),
|
|
864
|
-
key: `table_${
|
|
864
|
+
(r(), P(u(tt), {
|
|
865
|
+
key: `table_${ut.value}`,
|
|
865
866
|
colNames: j.value.colNames,
|
|
866
867
|
head: j.value.head,
|
|
867
868
|
body: j.value.body,
|
|
@@ -870,7 +871,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
870
871
|
onClose: s[2] || (s[2] = (t) => H.value.showTable = !1)
|
|
871
872
|
}, {
|
|
872
873
|
th: m(({ th: t }) => [
|
|
873
|
-
d("div", { innerHTML: t }, null, 8,
|
|
874
|
+
d("div", { innerHTML: t }, null, 8, Sl)
|
|
874
875
|
]),
|
|
875
876
|
td: m(({ td: t }) => [
|
|
876
877
|
Ge(E(t.name ? t.name : u(Q)(
|
|
@@ -889,7 +890,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
889
890
|
]),
|
|
890
891
|
_: 1
|
|
891
892
|
}, 8, ["config"])) : v("", !0),
|
|
892
|
-
e.value.style.chart.dialog.show ? (r(),
|
|
893
|
+
e.value.style.chart.dialog.show ? (r(), P(u(et), {
|
|
893
894
|
key: 9,
|
|
894
895
|
ref_key: "dialog",
|
|
895
896
|
ref: te,
|
|
@@ -903,17 +904,17 @@ const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"],
|
|
|
903
904
|
Ge(E(F.value.name), 1)
|
|
904
905
|
]),
|
|
905
906
|
default: m(() => [
|
|
906
|
-
F.value ? (r(),
|
|
907
|
+
F.value ? (r(), P(u(rt), {
|
|
907
908
|
key: 0,
|
|
908
|
-
config:
|
|
909
|
-
dataset:
|
|
909
|
+
config: Oe.value,
|
|
910
|
+
dataset: Se.value
|
|
910
911
|
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
911
912
|
]),
|
|
912
913
|
_: 1
|
|
913
914
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) : v("", !0)
|
|
914
915
|
], 46, al));
|
|
915
916
|
}
|
|
916
|
-
},
|
|
917
|
+
}, Ul = /* @__PURE__ */ ll(zl, [["__scopeId", "data-v-52302b79"]]);
|
|
917
918
|
export {
|
|
918
|
-
|
|
919
|
+
Ul as default
|
|
919
920
|
};
|