vue-data-ui 3.4.9 → 3.5.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/README.md +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as ht, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { t as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
1
|
+
import { defineAsyncComponent as z, computed as c, ref as i, shallowRef as ut, toRefs as ua, onBeforeUnmount as it, watch as te, nextTick as _e, watchEffect as ia, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as $, normalizeClass as re, createBlock as T, createCommentVNode as h, renderSlot as f, createElementVNode as y, withCtx as v, normalizeProps as P, guardReactiveProps as O, createSlots as Se, createVNode as Te, Fragment as m, renderList as k, mergeProps as Pe, toDisplayString as B, resolveDynamicComponent as ca, createTextVNode as Oe } from "vue";
|
|
2
|
+
import { c as Me, t as va, e as da, h as ha, p as ue, ak as ct, C as fa, B as vt, z as ga, a9 as ya, X as pa, J as ma, M as ba, a as ie, d as ce, b as xa, f as Le, g as dt, o as ka, P as Aa, Q as Ca, a4 as wa } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as ht, u as $a } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as _a, a as ft } from "./useNestedProp-DjGXw6S9.js";
|
|
5
|
+
import { u as Sa, B as Ta } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Pa } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as Oa } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ma } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as La } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as za } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Da } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { t as Ia } from "./themes-AUNCOb2G.js";
|
|
13
|
+
import Ra from "./Legend-G6GMcdAc.js";
|
|
14
|
+
import Na from "./Title-isbiM8i8.js";
|
|
15
|
+
import { _ as Fa } from "./Shape-CNXKB8O0.js";
|
|
16
|
+
import Ea from "./img-BecE5qXd.js";
|
|
17
|
+
import { _ as Ba } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"], Ga = ["stop-color"], Wa = ["stop-color"], Ya = ["stop-color"], ja = ["id"], qa = ["stop-color"], Ja = ["stop-color"], Qa = ["stop-color"], Ka = ["stop-color"], Za = { key: 0 }, el = ["fill", "d"], tl = ["stroke", "stroke-width", "d"], al = ["fill", "d"], ll = ["stroke", "stroke-dasharray", "stroke-width", "d"], ol = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], sl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], nl = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], rl = { key: 0 }, ul = ["font-size", "fill", "font-weight", "transform", "text-anchor"], il = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], cl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], hl = ["x", "y", "text-anchor", "font-size", "fill"], fl = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, gl = ["onClick"], yl = ["innerHTML"], pl = {
|
|
22
22
|
__name: "vue-ui-ridgeline",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -35,32 +35,32 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
38
|
+
setup(gt, { expose: yt, emit: pt }) {
|
|
39
|
+
const mt = z(() => import("./vue-ui-xy-NDDbNbds.js")), bt = z(() => import("./BaseIcon-BmMbm4d0.js")), xt = z(() => import("./vue-ui-accordion-CqhVCfc2.js")), kt = z(() => import("./DataTable-BT7VF2ua.js")), At = z(() => import("./PenAndPaper-SZQIAgkg.js")), Ct = z(() => import("./UserOptions-CGnQt6Fd.js")), wt = z(() => import("./PackageVersion-DQvyATVa.js")), ze = z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_ridgeline: $t } = _a(), H = gt, W = c({
|
|
40
40
|
get() {
|
|
41
|
-
return Array.isArray(
|
|
41
|
+
return Array.isArray(I.value) && I.value.length > 0;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}),
|
|
47
|
-
function
|
|
48
|
-
const t =
|
|
49
|
-
userConfig:
|
|
50
|
-
defaultConfig:
|
|
46
|
+
}), ve = pt, _ = i(null), De = i(null), Ie = i(null), M = ut(null), D = ut(null), Re = i(null), Ne = i(null), de = i(0), _t = i(0), he = i(0), A = i(Me()), Fe = i(0), St = i(0), Ee = i(512), g = i(null), X = i(null), fe = i(null), Be = i(0), ge = i(null), Y = i(null), ye = i(null);
|
|
47
|
+
function pe() {
|
|
48
|
+
const t = ft({
|
|
49
|
+
userConfig: H.config,
|
|
50
|
+
defaultConfig: $t
|
|
51
51
|
});
|
|
52
52
|
return t.theme ? {
|
|
53
|
-
...
|
|
54
|
-
userConfig:
|
|
53
|
+
...ft({
|
|
54
|
+
userConfig: Ia.vue_ui_ridgeline[t.theme] || H.config,
|
|
55
55
|
defaultConfig: t
|
|
56
56
|
}),
|
|
57
|
-
customPalette:
|
|
57
|
+
customPalette: xa[t.theme] || ue
|
|
58
58
|
} : t;
|
|
59
59
|
}
|
|
60
|
-
const e = i(
|
|
61
|
-
...
|
|
60
|
+
const e = i(pe()), { loading: j, FINAL_DATASET: I, manualLoading: me } = Sa({
|
|
61
|
+
...ua(H),
|
|
62
62
|
FINAL_CONFIG: e,
|
|
63
|
-
prepareConfig:
|
|
63
|
+
prepareConfig: pe,
|
|
64
64
|
skeletonDataset: [
|
|
65
65
|
{
|
|
66
66
|
name: "_",
|
|
@@ -153,7 +153,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
|
-
skeletonConfig:
|
|
156
|
+
skeletonConfig: va({
|
|
157
157
|
defaultConfig: e.value,
|
|
158
158
|
userConfig: {
|
|
159
159
|
userOptions: { show: !1 },
|
|
@@ -196,263 +196,277 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
196
196
|
e.value.style.chart.areas.height,
|
|
197
197
|
e.value.style.chart.areas.rowHeight
|
|
198
198
|
)), {
|
|
199
|
-
userOptionsVisible:
|
|
200
|
-
setUserOptionsVisibility:
|
|
201
|
-
keepUserOptionState:
|
|
202
|
-
} =
|
|
203
|
-
function
|
|
204
|
-
const t =
|
|
199
|
+
userOptionsVisible: ae,
|
|
200
|
+
setUserOptionsVisibility: He,
|
|
201
|
+
keepUserOptionState: Xe
|
|
202
|
+
} = La({ config: e.value }), { svgRef: le } = za({ config: e.value.style.chart.title }), be = c(() => !!e.value.debug);
|
|
203
|
+
function Ue() {
|
|
204
|
+
const t = I.value || [];
|
|
205
205
|
if (!Array.isArray(t) || t.length === 0) {
|
|
206
|
-
|
|
206
|
+
Le({ componentName: "VueUiRidgeline", type: "dataset", debug: be.value }), me.value = !0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
|
-
if (t.forEach((
|
|
210
|
-
|
|
211
|
-
datasetObject:
|
|
209
|
+
if (t.forEach((l, a) => {
|
|
210
|
+
dt({
|
|
211
|
+
datasetObject: l,
|
|
212
212
|
requiredAttributes: ["name", "datapoints"]
|
|
213
213
|
}).forEach((s) => {
|
|
214
|
-
|
|
214
|
+
W.value = !1, Le({
|
|
215
215
|
componentName: "VueUiRidgeline",
|
|
216
216
|
type: "datasetSerieAttribute",
|
|
217
217
|
property: s,
|
|
218
218
|
index: a,
|
|
219
|
-
debug:
|
|
219
|
+
debug: be.value
|
|
220
220
|
});
|
|
221
|
-
}), Array.isArray(
|
|
222
|
-
|
|
221
|
+
}), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
|
|
222
|
+
dt({
|
|
223
223
|
datasetObject: s,
|
|
224
224
|
requiredAttributes: ["name", "values"]
|
|
225
|
-
}).forEach((
|
|
226
|
-
|
|
225
|
+
}).forEach((d) => {
|
|
226
|
+
W.value = !1, Le({
|
|
227
227
|
componentName: "VueUiRidgeline",
|
|
228
228
|
type: "datasetSerieAttribute",
|
|
229
|
-
property: `datapoint.${
|
|
230
|
-
index: `${a}-${
|
|
231
|
-
debug:
|
|
229
|
+
property: `datapoint.${d}`,
|
|
230
|
+
index: `${a}-${o}`,
|
|
231
|
+
debug: be.value
|
|
232
232
|
});
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
|
-
}),
|
|
235
|
+
}), St.value = t.length, C.value = Math.min(
|
|
236
236
|
e.value.style.chart.areas.height,
|
|
237
237
|
e.value.style.chart.areas.rowHeight
|
|
238
|
-
),
|
|
239
|
-
const
|
|
240
|
-
const { width: a, height: s } =
|
|
241
|
-
chart:
|
|
242
|
-
title: e.value.style.chart.title.text ?
|
|
243
|
-
legend: e.value.style.chart.legend.show ?
|
|
244
|
-
source:
|
|
238
|
+
), ka(H.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
239
|
+
const l = ht(() => {
|
|
240
|
+
const { width: a, height: s } = $a({
|
|
241
|
+
chart: _.value,
|
|
242
|
+
title: e.value.style.chart.title.text ? De.value : null,
|
|
243
|
+
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
244
|
+
source: Re.value,
|
|
245
245
|
noTitle: Ne.value,
|
|
246
246
|
padding: e.value.style.chart.padding
|
|
247
247
|
});
|
|
248
248
|
requestAnimationFrame(() => {
|
|
249
|
-
|
|
249
|
+
Ee.value = a, C.value = t.length ? s / t.length : 0, Be.value = s - 12;
|
|
250
250
|
});
|
|
251
251
|
});
|
|
252
|
-
|
|
252
|
+
M.value && (D.value && M.value.unobserve(D.value), M.value.disconnect()), M.value = new ResizeObserver(l), D.value = _.value?.parentNode || null, D.value && M.value.observe(D.value);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
it(() => {
|
|
256
|
+
M.value && (D.value && M.value.unobserve(D.value), M.value.disconnect());
|
|
257
257
|
});
|
|
258
|
-
const { isPrinting:
|
|
258
|
+
const { isPrinting: Ve, isImaging: Ge, generatePdf: We, generateImage: Ye } = Pa({
|
|
259
259
|
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
260
260
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
261
261
|
options: e.value.userOptions.print
|
|
262
|
-
}),
|
|
262
|
+
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = c(() => da(e.value.customPalette)), R = i({
|
|
263
263
|
showTable: e.value.table.show
|
|
264
264
|
});
|
|
265
|
-
|
|
266
|
-
() =>
|
|
265
|
+
te(
|
|
266
|
+
() => I.value,
|
|
267
267
|
async (t) => {
|
|
268
|
-
Array.isArray(t) && t.length && (
|
|
268
|
+
Array.isArray(t) && t.length && (ae.value = !e.value.userOptions.showOnChartHover, await _e(), Ue(), de.value += 1, he.value += 1, R.value.showTable = e.value.table.show);
|
|
269
269
|
},
|
|
270
270
|
{ deep: !0, immediate: !0 }
|
|
271
|
-
),
|
|
272
|
-
Array.isArray(t) && t.length > 0 && (
|
|
273
|
-
}, { deep: !0 }),
|
|
274
|
-
() =>
|
|
271
|
+
), te(() => H.dataset, (t) => {
|
|
272
|
+
Array.isArray(t) && t.length > 0 && (me.value = !1);
|
|
273
|
+
}, { deep: !0 }), te(
|
|
274
|
+
() => j.value,
|
|
275
275
|
async (t) => {
|
|
276
|
-
t || (await
|
|
276
|
+
t || (await _e(), Ue());
|
|
277
277
|
},
|
|
278
278
|
{ immediate: !0 }
|
|
279
|
-
),
|
|
280
|
-
() =>
|
|
279
|
+
), te(
|
|
280
|
+
() => H.config,
|
|
281
281
|
() => {
|
|
282
|
-
e.value =
|
|
282
|
+
e.value = pe(I.value || null), ae.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), R.value.showTable = e.value.table.show, de.value += 1, he.value += 1;
|
|
283
283
|
},
|
|
284
284
|
{ deep: !0 }
|
|
285
285
|
);
|
|
286
|
-
const
|
|
287
|
-
function
|
|
288
|
-
|
|
286
|
+
const xe = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
287
|
+
function oe(t) {
|
|
288
|
+
w.value.includes(t) ? w.value = w.value.filter((l) => l !== t) : w.value.push(t), ve("selectLegend", V.value);
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
function je(t) {
|
|
291
|
+
if (!G.value.length)
|
|
292
|
+
return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
|
|
293
|
+
const l = G.value.find((a) => a.name === t);
|
|
294
|
+
return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
|
|
295
|
+
}
|
|
296
|
+
function Ot(t) {
|
|
297
|
+
const l = je(t);
|
|
298
|
+
l !== null && w.value.includes(l.id) && oe(l.id);
|
|
299
|
+
}
|
|
300
|
+
function Mt(t) {
|
|
301
|
+
const l = je(t);
|
|
302
|
+
l !== null && (w.value.includes(l.id) || oe(l.id));
|
|
303
|
+
}
|
|
304
|
+
const L = c(() => W.value ? (I.value || []).map((t) => ({
|
|
291
305
|
...t,
|
|
292
|
-
labelLen:
|
|
293
|
-
uid:
|
|
294
|
-
datapoints: t.datapoints.map((
|
|
295
|
-
const s =
|
|
296
|
-
return { ...
|
|
306
|
+
labelLen: Et(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
307
|
+
uid: Me(),
|
|
308
|
+
datapoints: t.datapoints.map((l, a) => {
|
|
309
|
+
const s = l.color ? ha(l.color) : Pt.value[a] || ue[a] || ue[a % ue.length], o = ct(l.name);
|
|
310
|
+
return { ...l, color: s, id: o };
|
|
297
311
|
})
|
|
298
|
-
})) : []),
|
|
312
|
+
})) : []), qe = c(() => e.value.style.chart.padding.top + C.value * (I.value || []).length + C.value * xe.value + e.value.style.chart.padding.bottom), p = c(() => {
|
|
299
313
|
const t = e.value.style.chart.padding;
|
|
300
314
|
return {
|
|
301
|
-
width:
|
|
302
|
-
height:
|
|
315
|
+
width: Ee.value,
|
|
316
|
+
height: qe.value,
|
|
303
317
|
padding: t
|
|
304
318
|
};
|
|
305
|
-
}),
|
|
306
|
-
|
|
319
|
+
}), Lt = c(() => p.value.width), zt = c(() => p.value.height), ke = i(0), Dt = ht((t) => {
|
|
320
|
+
ke.value = t;
|
|
307
321
|
}, 100);
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
if (!
|
|
322
|
+
ia((t) => {
|
|
323
|
+
const l = ge.value;
|
|
324
|
+
if (!l) return;
|
|
311
325
|
const a = new ResizeObserver((s) => {
|
|
312
|
-
|
|
326
|
+
Dt(s[0].contentRect.height);
|
|
313
327
|
});
|
|
314
|
-
a.observe(
|
|
315
|
-
}),
|
|
316
|
-
|
|
328
|
+
a.observe(l), t(() => a.disconnect());
|
|
329
|
+
}), it(() => {
|
|
330
|
+
ke.value = 0;
|
|
317
331
|
});
|
|
318
332
|
const b = c(() => ({
|
|
319
|
-
fullHeight:
|
|
320
|
-
top:
|
|
321
|
-
left:
|
|
322
|
-
right:
|
|
323
|
-
bottom:
|
|
324
|
-
width:
|
|
325
|
-
})),
|
|
333
|
+
fullHeight: p.value.height + ke.value,
|
|
334
|
+
top: p.value.padding.top,
|
|
335
|
+
left: p.value.padding.left,
|
|
336
|
+
right: p.value.width - p.value.padding.right,
|
|
337
|
+
bottom: p.value.height - e.value.style.chart.padding.bottom,
|
|
338
|
+
width: p.value.width - (p.value.padding.left + p.value.padding.right)
|
|
339
|
+
})), q = c(() => Math.max(...L.value.flatMap((t) => t.datapoints.map((l) => l.values.length)))), J = c(() => Ma({
|
|
326
340
|
values: e.value.style.chart.xAxis.labels.values,
|
|
327
|
-
maxDatapoints:
|
|
341
|
+
maxDatapoints: q.value,
|
|
328
342
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
329
343
|
start: 0,
|
|
330
344
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
331
|
-
})),
|
|
332
|
-
const t = Math.max(...
|
|
333
|
-
for (let
|
|
345
|
+
})), U = c(() => {
|
|
346
|
+
const t = Math.max(...L.value.map((o) => o.labelLen)), l = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - l) / q.value, s = [];
|
|
347
|
+
for (let o = 0; o < q.value; o += 1)
|
|
334
348
|
s.push({
|
|
335
|
-
selectorX:
|
|
336
|
-
x:
|
|
349
|
+
selectorX: l + a * o,
|
|
350
|
+
x: l + a * o - a / 2,
|
|
337
351
|
y: b.value.top,
|
|
338
|
-
label: e.value.style.chart.xAxis.labels.values[
|
|
339
|
-
index:
|
|
352
|
+
label: e.value.style.chart.xAxis.labels.values[o] ? J.value[o].text : "",
|
|
353
|
+
index: o,
|
|
340
354
|
width: a,
|
|
341
|
-
height:
|
|
355
|
+
height: qe.value
|
|
342
356
|
});
|
|
343
357
|
return s;
|
|
344
358
|
});
|
|
345
|
-
function
|
|
346
|
-
return
|
|
359
|
+
function Ae(t) {
|
|
360
|
+
return L.value.map((l) => l.datapoints.map((a) => ({
|
|
347
361
|
dp: a,
|
|
348
362
|
selected: a.values[t.index]
|
|
349
363
|
})));
|
|
350
364
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
365
|
+
function It(t) {
|
|
366
|
+
g.value = t;
|
|
367
|
+
const l = Ae(t);
|
|
368
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t.index });
|
|
355
369
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
358
|
-
const
|
|
359
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
370
|
+
function Rt(t) {
|
|
371
|
+
g.value = null;
|
|
372
|
+
const l = Ae(t);
|
|
373
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t.index });
|
|
360
374
|
}
|
|
361
|
-
function
|
|
362
|
-
const
|
|
363
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
375
|
+
function Nt(t) {
|
|
376
|
+
const l = Ae(t);
|
|
377
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t.index }), ve("selectX", l);
|
|
364
378
|
}
|
|
365
|
-
function
|
|
366
|
-
return t.length *
|
|
379
|
+
function Ft(t, l) {
|
|
380
|
+
return t.length * l / 2 + l;
|
|
367
381
|
}
|
|
368
|
-
function
|
|
369
|
-
const s =
|
|
382
|
+
function Je(t, l, a) {
|
|
383
|
+
const s = Ft(l, a);
|
|
370
384
|
return t + s > b.value.right;
|
|
371
385
|
}
|
|
372
|
-
function
|
|
373
|
-
const
|
|
374
|
-
return
|
|
386
|
+
function Et(t, l, a = "sans-serif") {
|
|
387
|
+
const o = document.createElement("canvas").getContext("2d"), d = typeof l == "number" ? `${l}px` : l;
|
|
388
|
+
return o.font = `${d} ${a}`, o.measureText(t).width;
|
|
375
389
|
}
|
|
376
|
-
const
|
|
390
|
+
const V = c(() => {
|
|
377
391
|
C.value;
|
|
378
|
-
const t = Math.max(...
|
|
379
|
-
function
|
|
380
|
-
return isNaN(x /
|
|
392
|
+
const t = Math.max(...L.value.map((x) => x.labelLen)), l = Math.max(...L.value.flatMap((x) => x.datapoints.flatMap((K) => K.values))), a = Math.min(...L.value.flatMap((x) => x.datapoints.flatMap((K) => K.values))), s = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (b.value.width - s) / q.value, d = Math.abs(Math.min(a, 0)), S = l + d;
|
|
393
|
+
function ot(x) {
|
|
394
|
+
return isNaN(x / S) ? 0 : x / S;
|
|
381
395
|
}
|
|
382
|
-
return
|
|
383
|
-
const
|
|
396
|
+
return L.value.map((x, K) => {
|
|
397
|
+
const st = b.value.top + C.value * K, F = b.value.top + st + C.value * xe.value * (1 - ot(d));
|
|
384
398
|
return {
|
|
385
399
|
...x,
|
|
386
400
|
label: {
|
|
387
401
|
x: s - e.value.style.chart.yAxis.labels.fontSize,
|
|
388
|
-
y:
|
|
402
|
+
y: F
|
|
389
403
|
},
|
|
390
|
-
datapoints: x.datapoints.map((
|
|
391
|
-
const
|
|
392
|
-
const
|
|
404
|
+
datapoints: x.datapoints.map((Z) => {
|
|
405
|
+
const E = Z.values.map((ee, la) => {
|
|
406
|
+
const oa = isNaN(ee) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(ee) ? 0 : ee || 0, sa = s + o * la, na = b.value.top + st + C.value * xe.value * (1 - ot(oa + d)), ra = ee === Math.max(...Z.values);
|
|
393
407
|
return {
|
|
394
|
-
x:
|
|
395
|
-
y:
|
|
396
|
-
value:
|
|
397
|
-
isMaxPoint:
|
|
398
|
-
zero:
|
|
408
|
+
x: sa,
|
|
409
|
+
y: na,
|
|
410
|
+
value: ee,
|
|
411
|
+
isMaxPoint: ra,
|
|
412
|
+
zero: F
|
|
399
413
|
};
|
|
400
|
-
}),
|
|
401
|
-
e.value.style.chart.areas.smooth ?
|
|
414
|
+
}), Zt = `${fa(E, F, !1, !1)}`, ea = `M ${s},${F} ${vt(E)} ${E.at(-1).x},${F}`, ta = `M ${s},${F} ${E.at(-1).x},${F}`, nt = `M ${ga(E)}`, rt = `M ${vt(E)}`, aa = ya(
|
|
415
|
+
e.value.style.chart.areas.smooth ? nt : rt
|
|
402
416
|
);
|
|
403
417
|
return {
|
|
404
|
-
...
|
|
405
|
-
uid:
|
|
406
|
-
plots:
|
|
407
|
-
smoothPath:
|
|
408
|
-
straightPath:
|
|
409
|
-
zeroPath:
|
|
410
|
-
pathLength:
|
|
411
|
-
smoothPathRidge:
|
|
412
|
-
straightPathRidge:
|
|
418
|
+
...Z,
|
|
419
|
+
uid: Me(),
|
|
420
|
+
plots: E,
|
|
421
|
+
smoothPath: Zt,
|
|
422
|
+
straightPath: ea,
|
|
423
|
+
zeroPath: ta,
|
|
424
|
+
pathLength: aa,
|
|
425
|
+
smoothPathRidge: nt,
|
|
426
|
+
straightPathRidge: rt
|
|
413
427
|
};
|
|
414
|
-
}).filter((
|
|
428
|
+
}).filter((Z) => !w.value.includes(Z.id))
|
|
415
429
|
};
|
|
416
430
|
});
|
|
417
|
-
}),
|
|
418
|
-
function
|
|
419
|
-
const
|
|
431
|
+
}), w = i([]);
|
|
432
|
+
function Bt(t) {
|
|
433
|
+
const l = /* @__PURE__ */ new Map();
|
|
420
434
|
return t.forEach((a) => {
|
|
421
|
-
a.datapoints.forEach((s,
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
id:
|
|
435
|
+
a.datapoints.forEach((s, o) => {
|
|
436
|
+
const d = ct(s.name);
|
|
437
|
+
l.has(d) || l.set(d, {
|
|
438
|
+
id: d,
|
|
425
439
|
name: s.name,
|
|
426
440
|
color: s.color,
|
|
427
441
|
shape: "circle",
|
|
428
|
-
segregate: () =>
|
|
429
|
-
isSegregated:
|
|
430
|
-
opacity:
|
|
442
|
+
segregate: () => oe(d),
|
|
443
|
+
isSegregated: w.value.includes(d),
|
|
444
|
+
opacity: w.value.includes(d) ? 0.5 : 1
|
|
431
445
|
});
|
|
432
446
|
});
|
|
433
|
-
}), Array.from(
|
|
447
|
+
}), Array.from(l.values());
|
|
434
448
|
}
|
|
435
|
-
const
|
|
449
|
+
const G = c(() => Bt(L.value)), Ht = c(() => ({
|
|
436
450
|
cy: "donut-div-legend",
|
|
437
451
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
438
452
|
color: e.value.style.chart.legend.color,
|
|
439
453
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
440
454
|
paddingBottom: 12,
|
|
441
455
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
442
|
-
})),
|
|
443
|
-
function
|
|
444
|
-
|
|
456
|
+
})), N = i(!1);
|
|
457
|
+
function Qe(t) {
|
|
458
|
+
N.value = t, Fe.value += 1;
|
|
445
459
|
}
|
|
446
|
-
const
|
|
447
|
-
function
|
|
448
|
-
|
|
449
|
-
name:
|
|
450
|
-
color:
|
|
460
|
+
const Ke = i({}), Ze = i([]);
|
|
461
|
+
function Xt(t) {
|
|
462
|
+
ve("selectDatapoint", t), e.value.style.chart.dialog.show && (Ze.value = t.datapoints.map((l) => ({
|
|
463
|
+
name: l.name,
|
|
464
|
+
color: l.color,
|
|
451
465
|
type: "line",
|
|
452
466
|
useArea: !0,
|
|
453
467
|
smooth: e.value.style.chart.areas.smooth,
|
|
454
|
-
series:
|
|
455
|
-
})),
|
|
468
|
+
series: l.values
|
|
469
|
+
})), X.value = t, Ke.value = wa({
|
|
456
470
|
...e.value.style.chart.dialog.xyChart,
|
|
457
471
|
responsive: !0,
|
|
458
472
|
// Overriding
|
|
@@ -482,23 +496,23 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
482
496
|
// Overriding
|
|
483
497
|
}
|
|
484
498
|
}
|
|
485
|
-
}),
|
|
499
|
+
}), fe.value && fe.value.open());
|
|
486
500
|
}
|
|
487
|
-
const
|
|
488
|
-
function
|
|
489
|
-
|
|
501
|
+
const Ce = i(null);
|
|
502
|
+
function Ut(t) {
|
|
503
|
+
Ce.value = t;
|
|
490
504
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
505
|
+
function Vt() {
|
|
506
|
+
Ce.value = null;
|
|
493
507
|
}
|
|
494
|
-
const
|
|
495
|
-
function
|
|
496
|
-
|
|
508
|
+
const se = i(!1);
|
|
509
|
+
function we() {
|
|
510
|
+
se.value = !se.value;
|
|
497
511
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
512
|
+
function et() {
|
|
513
|
+
R.value.showTable = !R.value.showTable;
|
|
500
514
|
}
|
|
501
|
-
const
|
|
515
|
+
const tt = c(() => ({ body: V.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
502
516
|
...s,
|
|
503
517
|
rowName: `${a.name}: ${s.name}`
|
|
504
518
|
}))).map((a) => [
|
|
@@ -507,11 +521,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
507
521
|
color: a.color
|
|
508
522
|
},
|
|
509
523
|
...a.values
|
|
510
|
-
]) })),
|
|
524
|
+
]) })), ne = c(() => {
|
|
511
525
|
const t = [
|
|
512
526
|
e.value.table.columnNames.series,
|
|
513
|
-
...
|
|
514
|
-
],
|
|
527
|
+
...J.value.map((s) => s.text)
|
|
528
|
+
], l = {
|
|
515
529
|
th: {
|
|
516
530
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
517
531
|
color: e.value.table.th.color,
|
|
@@ -527,74 +541,74 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
527
541
|
return {
|
|
528
542
|
colNames: [
|
|
529
543
|
e.value.table.columnNames.series,
|
|
530
|
-
...
|
|
544
|
+
...J.value.map((s) => s.text)
|
|
531
545
|
],
|
|
532
546
|
head: t,
|
|
533
|
-
body:
|
|
534
|
-
config:
|
|
547
|
+
body: tt.value.body,
|
|
548
|
+
config: l
|
|
535
549
|
};
|
|
536
550
|
});
|
|
537
|
-
function
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
[e.value.table.columnNames.series, ...
|
|
541
|
-
...
|
|
551
|
+
function $e(t = null) {
|
|
552
|
+
_e(() => {
|
|
553
|
+
const l = [
|
|
554
|
+
[e.value.table.columnNames.series, ...J.map((o) => [o.text])],
|
|
555
|
+
...tt.value.body.map((o, d) => [o[0].name, ...o.slice(1)])
|
|
542
556
|
], a = [
|
|
543
557
|
[e.value.style.chart.title.text],
|
|
544
558
|
[e.value.style.chart.title.subtitle.text]
|
|
545
|
-
].concat(
|
|
546
|
-
t ? t(s) :
|
|
559
|
+
].concat(l), s = Aa(a);
|
|
560
|
+
t ? t(s) : Ca({
|
|
547
561
|
csvContent: s,
|
|
548
562
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
549
563
|
});
|
|
550
564
|
});
|
|
551
565
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
566
|
+
function Gt() {
|
|
567
|
+
return V.value;
|
|
554
568
|
}
|
|
555
|
-
async function
|
|
556
|
-
if (
|
|
557
|
-
const { width:
|
|
569
|
+
async function Wt({ scale: t = 2 } = {}) {
|
|
570
|
+
if (!_.value) return;
|
|
571
|
+
const { width: l, height: a } = _.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: d } = await Ea({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
558
572
|
return {
|
|
559
|
-
imageUri:
|
|
560
|
-
base64:
|
|
573
|
+
imageUri: o,
|
|
574
|
+
base64: d,
|
|
561
575
|
title: e.value.style.chart.title.text,
|
|
562
|
-
width:
|
|
576
|
+
width: l,
|
|
563
577
|
height: a,
|
|
564
578
|
aspectRatio: s
|
|
565
579
|
};
|
|
566
580
|
}
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
timeLabelsEls:
|
|
570
|
-
timeLabels:
|
|
571
|
-
slicer:
|
|
581
|
+
const Yt = c(() => ({ min: 0, max: q.value }));
|
|
582
|
+
Da({
|
|
583
|
+
timeLabelsEls: ge,
|
|
584
|
+
timeLabels: J,
|
|
585
|
+
slicer: Yt,
|
|
572
586
|
configRef: e,
|
|
573
587
|
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
574
588
|
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
575
589
|
isAutoSize: !1,
|
|
576
|
-
width:
|
|
577
|
-
height:
|
|
590
|
+
width: Lt,
|
|
591
|
+
height: zt,
|
|
578
592
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
579
593
|
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
580
594
|
});
|
|
581
|
-
const
|
|
582
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
595
|
+
const Q = c(() => {
|
|
596
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = R.value.showTable;
|
|
583
597
|
return {
|
|
584
|
-
component: t ?
|
|
598
|
+
component: t ? ze : xt,
|
|
585
599
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
586
600
|
props: t ? {
|
|
587
601
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
588
602
|
color: e.value.table.th.color,
|
|
589
603
|
headerColor: e.value.table.th.color,
|
|
590
604
|
headerBg: e.value.table.th.backgroundColor,
|
|
591
|
-
isFullscreen:
|
|
592
|
-
fullscreenParent:
|
|
605
|
+
isFullscreen: N.value,
|
|
606
|
+
fullscreenParent: _.value,
|
|
593
607
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
594
608
|
} : {
|
|
595
609
|
hideDetails: !0,
|
|
596
610
|
config: {
|
|
597
|
-
open:
|
|
611
|
+
open: l,
|
|
598
612
|
maxHeight: 1e4,
|
|
599
613
|
body: {
|
|
600
614
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -608,64 +622,86 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
608
622
|
}
|
|
609
623
|
};
|
|
610
624
|
});
|
|
611
|
-
|
|
612
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
625
|
+
te(() => R.value.showTable, (t) => {
|
|
626
|
+
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
|
|
613
627
|
});
|
|
614
|
-
function
|
|
615
|
-
|
|
628
|
+
function at() {
|
|
629
|
+
R.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
|
|
616
630
|
}
|
|
617
|
-
const
|
|
631
|
+
const jt = c(() => e.value.style.chart.backgroundColor), qt = c(() => ({
|
|
618
632
|
...e.value.style.chart.legend,
|
|
619
633
|
position: "bottom"
|
|
620
|
-
})),
|
|
621
|
-
svg:
|
|
622
|
-
title:
|
|
623
|
-
legend:
|
|
624
|
-
legendItems:
|
|
625
|
-
backgroundColor:
|
|
634
|
+
})), Jt = c(() => e.value.style.chart.title), { exportSvg: Qt, getSvg: Kt } = Oa({
|
|
635
|
+
svg: le,
|
|
636
|
+
title: Jt,
|
|
637
|
+
legend: qt,
|
|
638
|
+
legendItems: G,
|
|
639
|
+
backgroundColor: jt
|
|
626
640
|
});
|
|
627
|
-
async function
|
|
641
|
+
async function lt({ isCb: t }) {
|
|
628
642
|
if (t) {
|
|
629
|
-
const { blob:
|
|
630
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
643
|
+
const { blob: l, url: a, text: s, dataUrl: o } = await Kt();
|
|
644
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o });
|
|
631
645
|
} else
|
|
632
|
-
|
|
646
|
+
Qt();
|
|
633
647
|
}
|
|
634
|
-
return
|
|
635
|
-
getData:
|
|
636
|
-
getImage:
|
|
637
|
-
generateImage:
|
|
638
|
-
generateSvg:
|
|
639
|
-
generatePdf:
|
|
640
|
-
generateCsv:
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
648
|
+
return yt({
|
|
649
|
+
getData: Gt,
|
|
650
|
+
getImage: Wt,
|
|
651
|
+
generateImage: Ye,
|
|
652
|
+
generateSvg: lt,
|
|
653
|
+
generatePdf: We,
|
|
654
|
+
generateCsv: $e,
|
|
655
|
+
hideSeries: Mt,
|
|
656
|
+
showSeries: Ot,
|
|
657
|
+
toggleAnnotator: we,
|
|
658
|
+
toggleTable: et,
|
|
659
|
+
toggleFullscreen: Qe
|
|
660
|
+
}), (t, l) => (n(), r("div", {
|
|
645
661
|
ref_key: "ridgelineChart",
|
|
646
|
-
ref:
|
|
647
|
-
class:
|
|
662
|
+
ref: _,
|
|
663
|
+
class: re(`vue-data-ui-component vue-ui-ridgeline ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
648
664
|
id: `vue-ui-ridgeline_${A.value}`,
|
|
649
|
-
style:
|
|
665
|
+
style: $({
|
|
650
666
|
fontFamily: e.value.style.fontFamily,
|
|
651
667
|
width: "100%",
|
|
652
668
|
textAlign: "center",
|
|
653
669
|
background: e.value.style.chart.backgroundColor,
|
|
654
670
|
height: e.value.responsive ? "100%" : void 0
|
|
655
671
|
}),
|
|
656
|
-
onMouseenter:
|
|
657
|
-
onMouseleave:
|
|
672
|
+
onMouseenter: l[3] || (l[3] = () => u(He)(!0)),
|
|
673
|
+
onMouseleave: l[4] || (l[4] = () => u(He)(!1))
|
|
658
674
|
}, [
|
|
659
|
-
e.value.userOptions.buttons.annotator && u(
|
|
675
|
+
e.value.userOptions.buttons.annotator && u(le) ? (n(), T(u(At), {
|
|
660
676
|
key: 0,
|
|
661
677
|
color: e.value.style.chart.color,
|
|
662
678
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
663
|
-
active:
|
|
664
|
-
svgRef: u(
|
|
665
|
-
onClose:
|
|
666
|
-
},
|
|
667
|
-
|
|
668
|
-
|
|
679
|
+
active: se.value,
|
|
680
|
+
svgRef: u(le),
|
|
681
|
+
onClose: we
|
|
682
|
+
}, {
|
|
683
|
+
"annotator-action-close": v(() => [
|
|
684
|
+
f(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
685
|
+
]),
|
|
686
|
+
"annotator-action-color": v(({ color: a }) => [
|
|
687
|
+
f(t.$slots, "annotator-action-color", P(O({ color: a })), void 0, !0)
|
|
688
|
+
]),
|
|
689
|
+
"annotator-action-draw": v(({ mode: a }) => [
|
|
690
|
+
f(t.$slots, "annotator-action-draw", P(O({ mode: a })), void 0, !0)
|
|
691
|
+
]),
|
|
692
|
+
"annotator-action-undo": v(({ disabled: a }) => [
|
|
693
|
+
f(t.$slots, "annotator-action-undo", P(O({ disabled: a })), void 0, !0)
|
|
694
|
+
]),
|
|
695
|
+
"annotator-action-redo": v(({ disabled: a }) => [
|
|
696
|
+
f(t.$slots, "annotator-action-redo", P(O({ disabled: a })), void 0, !0)
|
|
697
|
+
]),
|
|
698
|
+
"annotator-action-delete": v(({ disabled: a }) => [
|
|
699
|
+
f(t.$slots, "annotator-action-delete", P(O({ disabled: a })), void 0, !0)
|
|
700
|
+
]),
|
|
701
|
+
_: 3
|
|
702
|
+
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
703
|
+
f(t.$slots, "userConfig", {}, void 0, !0),
|
|
704
|
+
Tt.value ? (n(), r("div", {
|
|
669
705
|
key: 1,
|
|
670
706
|
ref_key: "noTitle",
|
|
671
707
|
ref: Ne,
|
|
@@ -675,11 +711,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
675
711
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
676
712
|
key: 2,
|
|
677
713
|
ref_key: "chartTitle",
|
|
678
|
-
ref:
|
|
714
|
+
ref: De,
|
|
679
715
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
680
716
|
}, [
|
|
681
|
-
(n(),
|
|
682
|
-
key: `title_${
|
|
717
|
+
(n(), T(Na, {
|
|
718
|
+
key: `title_${de.value}`,
|
|
683
719
|
config: {
|
|
684
720
|
title: {
|
|
685
721
|
cy: "ridgeline-div-title",
|
|
@@ -692,14 +728,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
692
728
|
}
|
|
693
729
|
}, null, 8, ["config"]))
|
|
694
730
|
], 512)) : h("", !0),
|
|
695
|
-
e.value.userOptions.show &&
|
|
731
|
+
e.value.userOptions.show && W.value && (u(Xe) || u(ae)) ? (n(), T(u(Ct), {
|
|
696
732
|
ref_key: "userOptionsRef",
|
|
697
|
-
ref:
|
|
733
|
+
ref: ye,
|
|
698
734
|
key: `user_option_${Fe.value}`,
|
|
699
735
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
700
736
|
color: e.value.style.chart.color,
|
|
701
|
-
isPrinting: u(
|
|
702
|
-
isImaging: u(
|
|
737
|
+
isPrinting: u(Ve),
|
|
738
|
+
isImaging: u(Ge),
|
|
703
739
|
uid: A.value,
|
|
704
740
|
hasTooltip: !1,
|
|
705
741
|
callbacks: e.value.userOptions.callbacks,
|
|
@@ -710,99 +746,99 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
710
746
|
hasTable: e.value.userOptions.buttons.table,
|
|
711
747
|
hasLabel: !1,
|
|
712
748
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
713
|
-
isFullscreen:
|
|
749
|
+
isFullscreen: N.value,
|
|
714
750
|
printScale: e.value.userOptions.print.scale,
|
|
715
|
-
chartElement:
|
|
751
|
+
chartElement: _.value,
|
|
716
752
|
position: e.value.userOptions.position,
|
|
717
753
|
isTooltip: !1,
|
|
718
754
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
719
755
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
720
|
-
isAnnotation:
|
|
756
|
+
isAnnotation: se.value,
|
|
721
757
|
tableDialog: e.value.table.useDialog,
|
|
722
|
-
style:
|
|
723
|
-
onToggleFullscreen:
|
|
724
|
-
onGeneratePdf: u(
|
|
725
|
-
onGenerateCsv:
|
|
726
|
-
onGenerateImage: u(
|
|
727
|
-
onGenerateSvg:
|
|
728
|
-
onToggleTable:
|
|
729
|
-
onToggleAnnotator:
|
|
730
|
-
},
|
|
758
|
+
style: $({ visibility: u(Xe) ? u(ae) ? "visible" : "hidden" : "visible" }),
|
|
759
|
+
onToggleFullscreen: Qe,
|
|
760
|
+
onGeneratePdf: u(We),
|
|
761
|
+
onGenerateCsv: $e,
|
|
762
|
+
onGenerateImage: u(Ye),
|
|
763
|
+
onGenerateSvg: lt,
|
|
764
|
+
onToggleTable: et,
|
|
765
|
+
onToggleAnnotator: we
|
|
766
|
+
}, Se({ _: 2 }, [
|
|
731
767
|
t.$slots.menuIcon ? {
|
|
732
768
|
name: "menuIcon",
|
|
733
|
-
fn:
|
|
734
|
-
|
|
769
|
+
fn: v(({ isOpen: a, color: s }) => [
|
|
770
|
+
f(t.$slots, "menuIcon", P(O({ isOpen: a, color: s })), void 0, !0)
|
|
735
771
|
]),
|
|
736
772
|
key: "0"
|
|
737
773
|
} : void 0,
|
|
738
774
|
t.$slots.optionTooltip ? {
|
|
739
775
|
name: "optionTooltip",
|
|
740
|
-
fn:
|
|
741
|
-
|
|
776
|
+
fn: v(() => [
|
|
777
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
742
778
|
]),
|
|
743
779
|
key: "1"
|
|
744
780
|
} : void 0,
|
|
745
781
|
t.$slots.optionPdf ? {
|
|
746
782
|
name: "optionPdf",
|
|
747
|
-
fn:
|
|
748
|
-
|
|
783
|
+
fn: v(() => [
|
|
784
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
749
785
|
]),
|
|
750
786
|
key: "2"
|
|
751
787
|
} : void 0,
|
|
752
788
|
t.$slots.optionCsv ? {
|
|
753
789
|
name: "optionCsv",
|
|
754
|
-
fn:
|
|
755
|
-
|
|
790
|
+
fn: v(() => [
|
|
791
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
756
792
|
]),
|
|
757
793
|
key: "3"
|
|
758
794
|
} : void 0,
|
|
759
795
|
t.$slots.optionImg ? {
|
|
760
796
|
name: "optionImg",
|
|
761
|
-
fn:
|
|
762
|
-
|
|
797
|
+
fn: v(() => [
|
|
798
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
763
799
|
]),
|
|
764
800
|
key: "4"
|
|
765
801
|
} : void 0,
|
|
766
802
|
t.$slots.optionSvg ? {
|
|
767
803
|
name: "optionSvg",
|
|
768
|
-
fn:
|
|
769
|
-
|
|
804
|
+
fn: v(() => [
|
|
805
|
+
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
770
806
|
]),
|
|
771
807
|
key: "5"
|
|
772
808
|
} : void 0,
|
|
773
809
|
t.$slots.optionTable ? {
|
|
774
810
|
name: "optionTable",
|
|
775
|
-
fn:
|
|
776
|
-
|
|
811
|
+
fn: v(() => [
|
|
812
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
777
813
|
]),
|
|
778
814
|
key: "6"
|
|
779
815
|
} : void 0,
|
|
780
816
|
t.$slots.optionFullscreen ? {
|
|
781
817
|
name: "optionFullscreen",
|
|
782
|
-
fn:
|
|
783
|
-
|
|
818
|
+
fn: v(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
819
|
+
f(t.$slots, "optionFullscreen", P(O({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
784
820
|
]),
|
|
785
821
|
key: "7"
|
|
786
822
|
} : void 0,
|
|
787
823
|
t.$slots.optionAnnotator ? {
|
|
788
824
|
name: "optionAnnotator",
|
|
789
|
-
fn:
|
|
790
|
-
|
|
825
|
+
fn: v(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
826
|
+
f(t.$slots, "optionAnnotator", P(O({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
791
827
|
]),
|
|
792
828
|
key: "8"
|
|
793
829
|
} : void 0
|
|
794
830
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
|
|
795
831
|
(n(), r("svg", {
|
|
796
832
|
ref_key: "svgRef",
|
|
797
|
-
ref:
|
|
798
|
-
xmlns: u(
|
|
799
|
-
class:
|
|
800
|
-
viewBox: `0 0 ${
|
|
801
|
-
style:
|
|
833
|
+
ref: le,
|
|
834
|
+
xmlns: u(pa),
|
|
835
|
+
class: re({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
836
|
+
viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
837
|
+
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Be.value}px; width: 100%;` : ""}`)
|
|
802
838
|
}, [
|
|
803
|
-
|
|
839
|
+
Te(u(wt)),
|
|
804
840
|
y("defs", null, [
|
|
805
|
-
(n(!0), r(m, null, k(
|
|
841
|
+
(n(!0), r(m, null, k(G.value, (a, s) => (n(), r("linearGradient", {
|
|
806
842
|
id: `gradient-${a.id}-${A.value}`,
|
|
807
843
|
x1: "50%",
|
|
808
844
|
y1: "0%",
|
|
@@ -813,27 +849,27 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
813
849
|
offset: "0%",
|
|
814
850
|
"stop-color": a.color,
|
|
815
851
|
"stop-opacity": "1"
|
|
816
|
-
}, null, 8,
|
|
852
|
+
}, null, 8, Va),
|
|
817
853
|
y("stop", {
|
|
818
854
|
offset: "30%",
|
|
819
855
|
"stop-color": a.color,
|
|
820
856
|
"stop-opacity": "0.7"
|
|
821
|
-
}, null, 8,
|
|
857
|
+
}, null, 8, Ga),
|
|
822
858
|
y("stop", {
|
|
823
859
|
offset: "70%",
|
|
824
860
|
"stop-color": a.color,
|
|
825
861
|
"stop-opacity": "0.3"
|
|
826
|
-
}, null, 8,
|
|
862
|
+
}, null, 8, Wa),
|
|
827
863
|
y("stop", {
|
|
828
864
|
offset: "100%",
|
|
829
865
|
"stop-color": a.color,
|
|
830
866
|
"stop-opacity": "0.1"
|
|
831
|
-
}, null, 8,
|
|
832
|
-
], 8,
|
|
833
|
-
(n(!0), r(m, null, k(
|
|
834
|
-
(n(!0), r(m, null, k(a.datapoints, (
|
|
835
|
-
key: `grad${
|
|
836
|
-
id: `gradient-single-${A.value}-${
|
|
867
|
+
}, null, 8, Ya)
|
|
868
|
+
], 8, Ua))), 256)),
|
|
869
|
+
(n(!0), r(m, null, k(V.value, (a, s) => (n(), r(m, null, [
|
|
870
|
+
(n(!0), r(m, null, k(a.datapoints, (o, d) => (n(), r("linearGradient", {
|
|
871
|
+
key: `grad${o.id}`,
|
|
872
|
+
id: `gradient-single-${A.value}-${o.uid}`,
|
|
837
873
|
x1: "50%",
|
|
838
874
|
y1: "0%",
|
|
839
875
|
x2: "50%",
|
|
@@ -841,105 +877,105 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
841
877
|
}, [
|
|
842
878
|
y("stop", {
|
|
843
879
|
offset: "0%",
|
|
844
|
-
"stop-color":
|
|
880
|
+
"stop-color": o.color,
|
|
845
881
|
"stop-opacity": "1"
|
|
846
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, qa),
|
|
847
883
|
y("stop", {
|
|
848
884
|
offset: "30%",
|
|
849
|
-
"stop-color":
|
|
885
|
+
"stop-color": o.color,
|
|
850
886
|
"stop-opacity": "0.7"
|
|
851
|
-
}, null, 8,
|
|
887
|
+
}, null, 8, Ja),
|
|
852
888
|
y("stop", {
|
|
853
889
|
offset: "70%",
|
|
854
|
-
"stop-color":
|
|
890
|
+
"stop-color": o.color,
|
|
855
891
|
"stop-opacity": "0.3"
|
|
856
|
-
}, null, 8,
|
|
892
|
+
}, null, 8, Qa),
|
|
857
893
|
y("stop", {
|
|
858
894
|
offset: "100%",
|
|
859
|
-
"stop-color":
|
|
895
|
+
"stop-color": o.color,
|
|
860
896
|
"stop-opacity": "0.1"
|
|
861
|
-
}, null, 8,
|
|
862
|
-
], 8,
|
|
897
|
+
}, null, 8, Ka)
|
|
898
|
+
], 8, ja))), 128))
|
|
863
899
|
], 64))), 256))
|
|
864
900
|
]),
|
|
865
|
-
(n(!0), r(m, null, k(
|
|
901
|
+
(n(!0), r(m, null, k(V.value, (a, s) => (n(), r("g", {
|
|
866
902
|
key: `ds-${s}`
|
|
867
903
|
}, [
|
|
868
|
-
(n(!0), r(m, null, k(a.datapoints, (
|
|
869
|
-
key:
|
|
904
|
+
(n(!0), r(m, null, k(a.datapoints, (o, d) => (n(), r("g", {
|
|
905
|
+
key: o.id
|
|
870
906
|
}, [
|
|
871
|
-
t.$slots.pattern ? (n(), r("g",
|
|
907
|
+
t.$slots.pattern ? (n(), r("g", Za, [
|
|
872
908
|
y("defs", null, [
|
|
873
|
-
|
|
909
|
+
f(t.$slots, "pattern", Pe({ ref_for: !0 }, { datapointIndex: s, seriesIndex: d, patternId: `pattern_${A.value}_${o.uid}` }), void 0, !0)
|
|
874
910
|
])
|
|
875
911
|
])) : h("", !0),
|
|
876
912
|
y("path", {
|
|
877
|
-
fill: t.$slots.pattern ? `url(#pattern_${A.value}_${
|
|
913
|
+
fill: t.$slots.pattern ? `url(#pattern_${A.value}_${o.uid})` : e.value.style.chart.backgroundColor,
|
|
878
914
|
stroke: "none",
|
|
879
915
|
"stroke-linecap": "round",
|
|
880
|
-
d: e.value.style.chart.areas.smooth ?
|
|
881
|
-
style:
|
|
916
|
+
d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
|
|
917
|
+
style: $({
|
|
882
918
|
opacity: e.value.style.chart.areas.opacity
|
|
883
919
|
})
|
|
884
|
-
}, null, 12,
|
|
920
|
+
}, null, 12, el),
|
|
885
921
|
y("path", {
|
|
886
922
|
fill: "none",
|
|
887
|
-
stroke: e.value.style.chart.areas.stroke.useSerieColor ?
|
|
923
|
+
stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
|
|
888
924
|
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
889
|
-
d: e.value.style.chart.areas.smooth ?
|
|
925
|
+
d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
|
|
890
926
|
"stroke-linecap": "round",
|
|
891
927
|
"stroke-linejoin": "round",
|
|
892
|
-
class:
|
|
893
|
-
style:
|
|
894
|
-
strokeDasharray:
|
|
895
|
-
strokeDashoffset: e.value.useCssAnimation ?
|
|
928
|
+
class: re({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(j) }),
|
|
929
|
+
style: $({
|
|
930
|
+
strokeDasharray: o.pathLength,
|
|
931
|
+
strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
|
|
896
932
|
})
|
|
897
|
-
}, null, 14,
|
|
933
|
+
}, null, 14, tl),
|
|
898
934
|
y("path", {
|
|
899
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${
|
|
935
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${o.id}-${A.value})` : `url(#gradient-single-${A.value}-${o.uid})` : o.color,
|
|
900
936
|
stroke: "none",
|
|
901
|
-
d: e.value.style.chart.areas.smooth ?
|
|
937
|
+
d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
|
|
902
938
|
"stroke-linecap": "round",
|
|
903
939
|
"stroke-linejoin": "round",
|
|
904
|
-
class:
|
|
905
|
-
style:
|
|
906
|
-
strokeDasharray:
|
|
907
|
-
strokeDashoffset: e.value.useCssAnimation ?
|
|
940
|
+
class: re({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(j) }),
|
|
941
|
+
style: $({
|
|
942
|
+
strokeDasharray: o.pathLength,
|
|
943
|
+
strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
|
|
908
944
|
})
|
|
909
|
-
}, null, 14,
|
|
945
|
+
}, null, 14, al),
|
|
910
946
|
e.value.style.chart.zeroLine.show ? (n(), r("path", {
|
|
911
947
|
key: 1,
|
|
912
|
-
stroke: e.value.style.chart.zeroLine.useSerieColor ?
|
|
948
|
+
stroke: e.value.style.chart.zeroLine.useSerieColor ? o.color : e.value.style.chart.zeroLine.stroke,
|
|
913
949
|
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
914
950
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
915
|
-
d:
|
|
951
|
+
d: o.zeroPath,
|
|
916
952
|
"stroke-linecap": "round"
|
|
917
|
-
}, null, 8,
|
|
918
|
-
e.value.style.chart.areas.maxPoint.show &&
|
|
919
|
-
|
|
953
|
+
}, null, 8, ll)) : h("", !0),
|
|
954
|
+
e.value.style.chart.areas.maxPoint.show && o.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(o.plots, (S) => (n(), r(m, null, [
|
|
955
|
+
S.isMaxPoint ? (n(), r("line", {
|
|
920
956
|
key: 0,
|
|
921
|
-
x1:
|
|
922
|
-
y1:
|
|
923
|
-
x2:
|
|
924
|
-
y2:
|
|
925
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
957
|
+
x1: S.x,
|
|
958
|
+
y1: S.y,
|
|
959
|
+
x2: S.x,
|
|
960
|
+
y2: S.zero,
|
|
961
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ma)(o.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
926
962
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
927
963
|
"stroke-linecap": "round",
|
|
928
964
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
929
|
-
}, null, 8,
|
|
965
|
+
}, null, 8, ol)) : h("", !0)
|
|
930
966
|
], 64))), 256)) : h("", !0),
|
|
931
|
-
|
|
967
|
+
o.plots.length === 1 ? (n(), r("circle", {
|
|
932
968
|
key: 3,
|
|
933
|
-
cx:
|
|
934
|
-
cy:
|
|
969
|
+
cx: o.plots[0].x,
|
|
970
|
+
cy: o.plots[0].y,
|
|
935
971
|
stroke: e.value.style.chart.selector.dot.stroke,
|
|
936
972
|
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
937
973
|
r: e.value.style.chart.selector.dot.radius,
|
|
938
|
-
fill: e.value.style.chart.selector.dot.useDatapointColor ?
|
|
974
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
|
|
939
975
|
style: {
|
|
940
976
|
pointerEvents: "none"
|
|
941
977
|
}
|
|
942
|
-
}, null, 8,
|
|
978
|
+
}, null, 8, sl)) : h("", !0)
|
|
943
979
|
]))), 128)),
|
|
944
980
|
y("text", {
|
|
945
981
|
x: a.label.x,
|
|
@@ -948,22 +984,22 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
948
984
|
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
949
985
|
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
950
986
|
fill: e.value.style.chart.yAxis.labels.color,
|
|
951
|
-
style:
|
|
987
|
+
style: $({
|
|
952
988
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
953
989
|
}),
|
|
954
|
-
"text-decoration": e.value.style.chart.dialog.show && (
|
|
955
|
-
onMouseenter: (
|
|
956
|
-
onMouseleave:
|
|
957
|
-
onClick: (
|
|
958
|
-
},
|
|
990
|
+
"text-decoration": e.value.style.chart.dialog.show && (Ce.value === s || X.value && a.uid === X.value.uid) ? "underline" : "",
|
|
991
|
+
onMouseenter: (o) => Ut(s),
|
|
992
|
+
onMouseleave: Vt,
|
|
993
|
+
onClick: (o) => Xt(a)
|
|
994
|
+
}, B(a.name), 45, nl)
|
|
959
995
|
]))), 128)),
|
|
960
996
|
e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
|
|
961
997
|
key: 0,
|
|
962
998
|
ref_key: "timeLabelsEls",
|
|
963
|
-
ref:
|
|
999
|
+
ref: ge
|
|
964
1000
|
}, [
|
|
965
|
-
(n(!0), r(m, null, k(
|
|
966
|
-
show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
1001
|
+
(n(!0), r(m, null, k(U.value, (a, s) => f(t.$slots, "time-label", Pe({ ref_for: !0 }, {
|
|
1002
|
+
show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === U.value.length - 1) || a && g.value && g.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(U.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
967
1003
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
968
1004
|
content: a.label,
|
|
969
1005
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -972,7 +1008,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
972
1008
|
x: a.selectorX,
|
|
973
1009
|
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
974
1010
|
}), () => [
|
|
975
|
-
a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
1011
|
+
a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === U.value.length - 1) || a && g.value && g.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(U.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", rl, [
|
|
976
1012
|
String(a.label).includes(`
|
|
977
1013
|
`) ? (n(), r("text", {
|
|
978
1014
|
key: 1,
|
|
@@ -982,17 +1018,17 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
982
1018
|
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
983
1019
|
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
984
1020
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
985
|
-
style:
|
|
986
|
-
opacity:
|
|
1021
|
+
style: $({
|
|
1022
|
+
opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
|
|
987
1023
|
}),
|
|
988
|
-
innerHTML: u(
|
|
1024
|
+
innerHTML: u(ba)({
|
|
989
1025
|
content: String(a.label),
|
|
990
1026
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
991
1027
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
992
1028
|
x: 0,
|
|
993
1029
|
y: 0
|
|
994
1030
|
})
|
|
995
|
-
}, null, 12,
|
|
1031
|
+
}, null, 12, il)) : (n(), r("text", {
|
|
996
1032
|
key: 0,
|
|
997
1033
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
998
1034
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1000,43 +1036,43 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
1000
1036
|
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1001
1037
|
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1002
1038
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1003
|
-
style:
|
|
1004
|
-
opacity:
|
|
1039
|
+
style: $({
|
|
1040
|
+
opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
|
|
1005
1041
|
})
|
|
1006
|
-
},
|
|
1042
|
+
}, B(a.label), 13, ul))
|
|
1007
1043
|
])) : h("", !0)
|
|
1008
1044
|
], !0)), 256))
|
|
1009
1045
|
], 512)) : h("", !0),
|
|
1010
1046
|
y("g", null, [
|
|
1011
|
-
(n(!0), r(m, null, k(
|
|
1047
|
+
(n(!0), r(m, null, k(U.value, (a, s) => (n(), r("rect", {
|
|
1012
1048
|
x: a.x,
|
|
1013
1049
|
y: a.y,
|
|
1014
1050
|
width: a.width < 0 ? 0.1 : a.width,
|
|
1015
1051
|
height: a.height < 0 ? 0.1 : a.height,
|
|
1016
1052
|
fill: "transparent",
|
|
1017
|
-
onMouseenter: (
|
|
1018
|
-
onMouseleave: (
|
|
1019
|
-
onClick: () =>
|
|
1020
|
-
}, null, 40,
|
|
1021
|
-
e.value.style.chart.selector.show &&
|
|
1053
|
+
onMouseenter: (o) => It(a),
|
|
1054
|
+
onMouseleave: (o) => Rt(a),
|
|
1055
|
+
onClick: () => Nt(a)
|
|
1056
|
+
}, null, 40, cl))), 256)),
|
|
1057
|
+
e.value.style.chart.selector.show && g.value ? (n(), r("line", {
|
|
1022
1058
|
key: 0,
|
|
1023
|
-
x1:
|
|
1024
|
-
x2:
|
|
1025
|
-
y1:
|
|
1026
|
-
y2:
|
|
1059
|
+
x1: g.value.selectorX,
|
|
1060
|
+
x2: g.value.selectorX,
|
|
1061
|
+
y1: g.value.y,
|
|
1062
|
+
y2: g.value.y + g.value.height - C.value / 2,
|
|
1027
1063
|
stroke: e.value.style.chart.selector.stroke,
|
|
1028
1064
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
1029
1065
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
1030
1066
|
"stroke-linecap": "round",
|
|
1031
1067
|
style: { pointerEvents: "none" }
|
|
1032
|
-
}, null, 8,
|
|
1033
|
-
|
|
1068
|
+
}, null, 8, vl)) : h("", !0),
|
|
1069
|
+
g.value ? (n(!0), r(m, { key: 1 }, k(V.value, (a) => (n(), r(m, null, [
|
|
1034
1070
|
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1035
|
-
(n(!0), r(m, null, k(s.plots, (
|
|
1036
|
-
|
|
1071
|
+
(n(!0), r(m, null, k(s.plots, (o, d) => (n(), r(m, null, [
|
|
1072
|
+
g.value && g.value.index === d ? (n(), r("circle", {
|
|
1037
1073
|
key: 0,
|
|
1038
|
-
cx:
|
|
1039
|
-
cy:
|
|
1074
|
+
cx: o.x,
|
|
1075
|
+
cy: o.y,
|
|
1040
1076
|
stroke: e.value.style.chart.selector.dot.stroke,
|
|
1041
1077
|
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
1042
1078
|
r: e.value.style.chart.selector.dot.radius,
|
|
@@ -1044,32 +1080,32 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
1044
1080
|
style: {
|
|
1045
1081
|
pointerEvents: "none"
|
|
1046
1082
|
}
|
|
1047
|
-
}, null, 8,
|
|
1048
|
-
|
|
1083
|
+
}, null, 8, dl)) : h("", !0),
|
|
1084
|
+
g.value && g.value.index === d ? (n(), r("text", {
|
|
1049
1085
|
key: 1,
|
|
1050
|
-
x:
|
|
1051
|
-
|
|
1052
|
-
u(
|
|
1086
|
+
x: Je(
|
|
1087
|
+
o.x,
|
|
1088
|
+
u(ie)(
|
|
1053
1089
|
e.value.style.chart.selector.labels.formatter,
|
|
1054
|
-
|
|
1055
|
-
u(
|
|
1090
|
+
o.value,
|
|
1091
|
+
u(ce)({
|
|
1056
1092
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1057
|
-
v:
|
|
1093
|
+
v: o.value,
|
|
1058
1094
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1059
1095
|
r: e.value.style.chart.selector.labels.rounding
|
|
1060
1096
|
})
|
|
1061
1097
|
),
|
|
1062
1098
|
e.value.style.chart.selector.labels.fontSize
|
|
1063
|
-
) ?
|
|
1064
|
-
y:
|
|
1065
|
-
"text-anchor":
|
|
1066
|
-
|
|
1067
|
-
u(
|
|
1099
|
+
) ? o.x - e.value.style.chart.selector.labels.fontSize / 2 : o.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
1100
|
+
y: o.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1101
|
+
"text-anchor": Je(
|
|
1102
|
+
o.x,
|
|
1103
|
+
u(ie)(
|
|
1068
1104
|
e.value.style.chart.selector.labels.formatter,
|
|
1069
|
-
|
|
1070
|
-
u(
|
|
1105
|
+
o.value,
|
|
1106
|
+
u(ce)({
|
|
1071
1107
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1072
|
-
v:
|
|
1108
|
+
v: o.value,
|
|
1073
1109
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1074
1110
|
r: e.value.style.chart.selector.labels.rounding
|
|
1075
1111
|
})
|
|
@@ -1081,48 +1117,48 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
1081
1117
|
style: {
|
|
1082
1118
|
pointerEvents: "none"
|
|
1083
1119
|
}
|
|
1084
|
-
},
|
|
1120
|
+
}, B(u(ie)(
|
|
1085
1121
|
e.value.style.chart.selector.labels.formatter,
|
|
1086
|
-
|
|
1087
|
-
u(
|
|
1122
|
+
o.value,
|
|
1123
|
+
u(ce)({
|
|
1088
1124
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1089
|
-
v:
|
|
1125
|
+
v: o.value,
|
|
1090
1126
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1091
1127
|
r: e.value.style.chart.selector.labels.rounding
|
|
1092
1128
|
})
|
|
1093
|
-
)), 9,
|
|
1129
|
+
)), 9, hl)) : h("", !0)
|
|
1094
1130
|
], 64))), 256))
|
|
1095
1131
|
], 64))), 256))
|
|
1096
1132
|
], 64))), 256)) : h("", !0)
|
|
1097
1133
|
]),
|
|
1098
|
-
|
|
1099
|
-
], 14,
|
|
1100
|
-
t.$slots.watermark ? (n(), r("div",
|
|
1101
|
-
|
|
1134
|
+
f(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
1135
|
+
], 14, Xa)),
|
|
1136
|
+
t.$slots.watermark ? (n(), r("div", fl, [
|
|
1137
|
+
f(t.$slots, "watermark", P(O({ isPrinting: u(Ve) || u(Ge) })), void 0, !0)
|
|
1102
1138
|
])) : h("", !0),
|
|
1103
1139
|
y("div", {
|
|
1104
1140
|
ref_key: "chartLegend",
|
|
1105
|
-
ref:
|
|
1141
|
+
ref: Ie
|
|
1106
1142
|
}, [
|
|
1107
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1143
|
+
e.value.style.chart.legend.show ? (n(), T(Ra, {
|
|
1108
1144
|
key: `legend_${he.value}`,
|
|
1109
|
-
legendSet:
|
|
1110
|
-
config:
|
|
1111
|
-
onClickMarker:
|
|
1112
|
-
},
|
|
1113
|
-
item:
|
|
1114
|
-
u(
|
|
1145
|
+
legendSet: G.value,
|
|
1146
|
+
config: Ht.value,
|
|
1147
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
1148
|
+
}, Se({
|
|
1149
|
+
item: v(({ legend: a }) => [
|
|
1150
|
+
u(j) ? h("", !0) : (n(), r("div", {
|
|
1115
1151
|
key: 0,
|
|
1116
|
-
style:
|
|
1152
|
+
style: $(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`),
|
|
1117
1153
|
onClick: (s) => a.segregate()
|
|
1118
|
-
},
|
|
1154
|
+
}, B(a.name), 13, gl))
|
|
1119
1155
|
]),
|
|
1120
1156
|
_: 2
|
|
1121
1157
|
}, [
|
|
1122
1158
|
t.$slots.pattern ? {
|
|
1123
1159
|
name: "legend-pattern",
|
|
1124
|
-
fn:
|
|
1125
|
-
|
|
1160
|
+
fn: v(({ legend: a, index: s }) => [
|
|
1161
|
+
Te(Fa, {
|
|
1126
1162
|
shape: a.shape,
|
|
1127
1163
|
radius: 30,
|
|
1128
1164
|
stroke: "none",
|
|
@@ -1133,40 +1169,40 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
1133
1169
|
key: "0"
|
|
1134
1170
|
} : void 0
|
|
1135
1171
|
]), 1032, ["legendSet", "config"])) : h("", !0),
|
|
1136
|
-
|
|
1172
|
+
f(t.$slots, "legend", { legend: G.value }, void 0, !0)
|
|
1137
1173
|
], 512),
|
|
1138
1174
|
t.$slots.source ? (n(), r("div", {
|
|
1139
1175
|
key: 5,
|
|
1140
1176
|
ref_key: "source",
|
|
1141
|
-
ref:
|
|
1177
|
+
ref: Re,
|
|
1142
1178
|
dir: "auto"
|
|
1143
1179
|
}, [
|
|
1144
|
-
|
|
1180
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
1145
1181
|
], 512)) : h("", !0),
|
|
1146
|
-
|
|
1182
|
+
W.value && e.value.userOptions.buttons.table ? (n(), T(ca(Q.value.component), Pe({ key: 6 }, Q.value.props, {
|
|
1147
1183
|
ref_key: "tableUnit",
|
|
1148
|
-
ref:
|
|
1149
|
-
onClose:
|
|
1150
|
-
}),
|
|
1151
|
-
content:
|
|
1152
|
-
(n(),
|
|
1153
|
-
key: `table_${
|
|
1154
|
-
colNames:
|
|
1155
|
-
head:
|
|
1156
|
-
body:
|
|
1157
|
-
config:
|
|
1158
|
-
title: e.value.table.useDialog ? "" :
|
|
1184
|
+
ref: Y,
|
|
1185
|
+
onClose: at
|
|
1186
|
+
}), Se({
|
|
1187
|
+
content: v(() => [
|
|
1188
|
+
(n(), T(u(kt), {
|
|
1189
|
+
key: `table_${_t.value}`,
|
|
1190
|
+
colNames: ne.value.colNames,
|
|
1191
|
+
head: ne.value.head,
|
|
1192
|
+
body: ne.value.body,
|
|
1193
|
+
config: ne.value.config,
|
|
1194
|
+
title: e.value.table.useDialog ? "" : Q.value.title,
|
|
1159
1195
|
withCloseButton: !e.value.table.useDialog,
|
|
1160
|
-
onClose:
|
|
1196
|
+
onClose: at
|
|
1161
1197
|
}, {
|
|
1162
|
-
th:
|
|
1163
|
-
y("div", { innerHTML: a }, null, 8,
|
|
1198
|
+
th: v(({ th: a }) => [
|
|
1199
|
+
y("div", { innerHTML: a }, null, 8, yl)
|
|
1164
1200
|
]),
|
|
1165
|
-
td:
|
|
1166
|
-
|
|
1201
|
+
td: v(({ td: a }) => [
|
|
1202
|
+
Oe(B(a.name ? a.name : u(ie)(
|
|
1167
1203
|
e.value.style.chart.selector.labels.formatter,
|
|
1168
1204
|
a,
|
|
1169
|
-
u(
|
|
1205
|
+
u(ce)({
|
|
1170
1206
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1171
1207
|
v: a,
|
|
1172
1208
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1181,57 +1217,57 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
|
|
|
1181
1217
|
}, [
|
|
1182
1218
|
e.value.table.useDialog ? {
|
|
1183
1219
|
name: "title",
|
|
1184
|
-
fn:
|
|
1185
|
-
|
|
1220
|
+
fn: v(() => [
|
|
1221
|
+
Oe(B(Q.value.title), 1)
|
|
1186
1222
|
]),
|
|
1187
1223
|
key: "0"
|
|
1188
1224
|
} : void 0,
|
|
1189
1225
|
e.value.table.useDialog ? {
|
|
1190
1226
|
name: "actions",
|
|
1191
|
-
fn:
|
|
1227
|
+
fn: v(() => [
|
|
1192
1228
|
y("button", {
|
|
1193
1229
|
tabindex: "0",
|
|
1194
1230
|
class: "vue-ui-user-options-button",
|
|
1195
|
-
onClick:
|
|
1231
|
+
onClick: l[1] || (l[1] = (a) => $e(e.value.userOptions.callbacks.csv))
|
|
1196
1232
|
}, [
|
|
1197
|
-
|
|
1233
|
+
Te(u(bt), {
|
|
1198
1234
|
name: "excel",
|
|
1199
|
-
stroke:
|
|
1235
|
+
stroke: Q.value.props.color
|
|
1200
1236
|
}, null, 8, ["stroke"])
|
|
1201
1237
|
])
|
|
1202
1238
|
]),
|
|
1203
1239
|
key: "1"
|
|
1204
1240
|
} : void 0
|
|
1205
1241
|
]), 1040)) : h("", !0),
|
|
1206
|
-
e.value.style.chart.dialog.show ? (n(),
|
|
1242
|
+
e.value.style.chart.dialog.show ? (n(), T(u(ze), {
|
|
1207
1243
|
key: 7,
|
|
1208
1244
|
ref_key: "dialog",
|
|
1209
|
-
ref:
|
|
1210
|
-
onClose:
|
|
1245
|
+
ref: fe,
|
|
1246
|
+
onClose: l[2] || (l[2] = (a) => X.value = null),
|
|
1211
1247
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1212
1248
|
color: e.value.style.chart.dialog.color,
|
|
1213
1249
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1214
1250
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1215
|
-
isFullscreen:
|
|
1216
|
-
fullscreenParent:
|
|
1251
|
+
isFullscreen: N.value,
|
|
1252
|
+
fullscreenParent: _.value,
|
|
1217
1253
|
withPadding: ""
|
|
1218
1254
|
}, {
|
|
1219
|
-
title:
|
|
1220
|
-
|
|
1255
|
+
title: v(() => [
|
|
1256
|
+
Oe(B(X.value.name), 1)
|
|
1221
1257
|
]),
|
|
1222
|
-
content:
|
|
1223
|
-
|
|
1258
|
+
content: v(() => [
|
|
1259
|
+
X.value ? (n(), T(u(mt), {
|
|
1224
1260
|
key: 0,
|
|
1225
|
-
config:
|
|
1226
|
-
dataset:
|
|
1261
|
+
config: Ke.value,
|
|
1262
|
+
dataset: Ze.value
|
|
1227
1263
|
}, null, 8, ["config", "dataset"])) : h("", !0)
|
|
1228
1264
|
]),
|
|
1229
1265
|
_: 1
|
|
1230
1266
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1231
|
-
u(
|
|
1232
|
-
], 46,
|
|
1267
|
+
u(j) ? (n(), T(Ta, { key: 8 })) : h("", !0)
|
|
1268
|
+
], 46, Ha));
|
|
1233
1269
|
}
|
|
1234
|
-
},
|
|
1270
|
+
}, Il = /* @__PURE__ */ Ba(pl, [["__scopeId", "data-v-37841d19"]]);
|
|
1235
1271
|
export {
|
|
1236
|
-
|
|
1272
|
+
Il as default
|
|
1237
1273
|
};
|