vue-data-ui 3.3.3 → 3.4.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-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +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/{dom-to-png-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
- package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
- package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
- package/package.json +2 -2
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-radar-Csznqw19.js +0 -891
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Oe, t as ua, e as ia, h as ca, p as re,
|
|
1
|
+
import { defineAsyncComponent as M, computed as c, ref as i, shallowRef as rt, toRefs as sa, onBeforeUnmount as ut, watch as K, nextTick as $e, watchEffect as na, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as oe, createBlock as S, createCommentVNode as h, renderSlot as p, createElementVNode as y, createSlots as _e, withCtx as g, normalizeProps as se, guardReactiveProps as ne, createVNode as Se, Fragment as m, renderList as k, mergeProps as Te, toDisplayString as R, resolveDynamicComponent as ra, createTextVNode as Pe } from "vue";
|
|
2
|
+
import { c as Oe, t as ua, e as ia, h as ca, p as re, ak as it, C as va, B as ct, z as ha, a9 as da, X as ya, J as ga, M as fa, a as ue, d as ie, b as ma, f as Me, g as vt, o as pa, P as ba, Q as xa, a4 as ka } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as ht, u as Aa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ca, a as dt } from "./useNestedProp-
|
|
4
|
+
import { u as Ca, a as dt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
5
|
import { u as wa, B as $a } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as _a } from "./usePrinter-
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
6
|
+
import { u as _a } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as Sa } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ta } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
9
|
import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { t as
|
|
13
|
-
import za from "./Legend-
|
|
14
|
-
import Da from "./Title-
|
|
15
|
-
import { _ as Ia } from "./Shape-
|
|
16
|
-
import Na from "./img-
|
|
11
|
+
import { u as Ma } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { t as La } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import za from "./Legend-C8u37J42.js";
|
|
14
|
+
import Da from "./Title-CFmv95In.js";
|
|
15
|
+
import { _ as Ia } from "./Shape-BhNvlGIN.js";
|
|
16
|
+
import Na from "./img-CFY3JivG.js";
|
|
17
17
|
import { _ as Fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Ra = ["id"], Ea = ["xmlns", "viewBox"],
|
|
18
|
+
const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"], Xa = ["stop-color"], Ua = ["stop-color"], Va = ["stop-color"], Ga = ["id"], Wa = ["stop-color"], Ya = ["stop-color"], ja = ["stop-color"], qa = ["stop-color"], Ja = { key: 0 }, Qa = ["fill", "d"], Ka = ["stroke", "stroke-width", "d"], Za = ["fill", "d"], el = ["stroke", "stroke-dasharray", "stroke-width", "d"], tl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ll = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], ol = { key: 0 }, sl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], nl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], rl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], cl = ["x", "y", "text-anchor", "font-size", "fill"], vl = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, hl = ["onClick"], dl = ["innerHTML"], yl = {
|
|
@@ -36,14 +36,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
38
|
setup(yt, { expose: gt, emit: ft }) {
|
|
39
|
-
const mt =
|
|
39
|
+
const mt = M(() => import("./vue-ui-xy-tSMgXqqb.js")), pt = M(() => import("./BaseIcon-B5KaGWWC.js")), bt = M(() => import("./vue-ui-accordion-BKkTS12x.js")), xt = M(() => import("./DataTable-DOx3zgih.js")), kt = M(() => import("./PenAndPaper-Dj2diYr0.js")), At = M(() => import("./UserOptions-C0YT60JN.js")), Ct = M(() => import("./PackageVersion-VpPtLYhK.js")), Le = M(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_ridgeline: wt } = Ca(), E = yt, U = c({
|
|
40
40
|
get() {
|
|
41
41
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), ce = ft, $ = i(null), ze = i(null), De = i(null),
|
|
46
|
+
}), ce = ft, $ = i(null), ze = i(null), De = i(null), T = rt(null), L = rt(null), Ie = i(null), Ne = i(null), ve = i(0), $t = i(0), he = i(0), A = i(Oe()), Fe = i(0), _t = i(0), Re = i(512), d = i(null), B = i(null), de = i(null), Ee = i(0), ye = i(null), V = i(null), ge = i(null);
|
|
47
47
|
function fe() {
|
|
48
48
|
const t = dt({
|
|
49
49
|
userConfig: E.config,
|
|
@@ -51,7 +51,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
51
51
|
});
|
|
52
52
|
return t.theme ? {
|
|
53
53
|
...dt({
|
|
54
|
-
userConfig:
|
|
54
|
+
userConfig: La.vue_ui_ridgeline[t.theme] || E.config,
|
|
55
55
|
defaultConfig: t
|
|
56
56
|
}),
|
|
57
57
|
customPalette: ma[t.theme] || re
|
|
@@ -197,13 +197,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
197
197
|
e.value.style.chart.areas.rowHeight
|
|
198
198
|
)), {
|
|
199
199
|
userOptionsVisible: Z,
|
|
200
|
-
setUserOptionsVisibility:
|
|
201
|
-
keepUserOptionState:
|
|
200
|
+
setUserOptionsVisibility: Be,
|
|
201
|
+
keepUserOptionState: He
|
|
202
202
|
} = Pa({ config: e.value }), { svgRef: ee } = Oa({ config: e.value.style.chart.title }), pe = c(() => !!e.value.debug);
|
|
203
|
-
function
|
|
203
|
+
function Xe() {
|
|
204
204
|
const t = z.value || [];
|
|
205
205
|
if (!Array.isArray(t) || t.length === 0) {
|
|
206
|
-
|
|
206
|
+
Me({ componentName: "VueUiRidgeline", type: "dataset", debug: pe.value }), me.value = !0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
if (t.forEach((o, a) => {
|
|
@@ -211,7 +211,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
211
211
|
datasetObject: o,
|
|
212
212
|
requiredAttributes: ["name", "datapoints"]
|
|
213
213
|
}).forEach((s) => {
|
|
214
|
-
U.value = !1,
|
|
214
|
+
U.value = !1, Me({
|
|
215
215
|
componentName: "VueUiRidgeline",
|
|
216
216
|
type: "datasetSerieAttribute",
|
|
217
217
|
property: s,
|
|
@@ -223,7 +223,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
223
223
|
datasetObject: s,
|
|
224
224
|
requiredAttributes: ["name", "values"]
|
|
225
225
|
}).forEach((v) => {
|
|
226
|
-
U.value = !1,
|
|
226
|
+
U.value = !1, Me({
|
|
227
227
|
componentName: "VueUiRidgeline",
|
|
228
228
|
type: "datasetSerieAttribute",
|
|
229
229
|
property: `datapoint.${v}`,
|
|
@@ -249,34 +249,34 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
249
249
|
Re.value = a, C.value = t.length ? s / t.length : 0, Ee.value = s - 12;
|
|
250
250
|
});
|
|
251
251
|
});
|
|
252
|
-
|
|
252
|
+
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect()), T.value = new ResizeObserver(o), L.value = $.value?.parentNode || null, L.value && T.value.observe(L.value);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
ut(() => {
|
|
256
|
-
|
|
256
|
+
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect());
|
|
257
257
|
});
|
|
258
258
|
const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } = _a({
|
|
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
|
+
}), St = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = c(() => ia(e.value.customPalette)), D = i({
|
|
263
263
|
showTable: e.value.table.show
|
|
264
264
|
});
|
|
265
|
-
|
|
265
|
+
K(
|
|
266
266
|
() => z.value,
|
|
267
267
|
async (t) => {
|
|
268
|
-
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(),
|
|
268
|
+
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(), Xe(), ve.value += 1, he.value += 1, D.value.showTable = e.value.table.show);
|
|
269
269
|
},
|
|
270
270
|
{ deep: !0, immediate: !0 }
|
|
271
|
-
),
|
|
271
|
+
), K(() => E.dataset, (t) => {
|
|
272
272
|
Array.isArray(t) && t.length > 0 && (me.value = !1);
|
|
273
|
-
}, { deep: !0 }),
|
|
273
|
+
}, { deep: !0 }), K(
|
|
274
274
|
() => G.value,
|
|
275
275
|
async (t) => {
|
|
276
|
-
t || (await $e(),
|
|
276
|
+
t || (await $e(), Xe());
|
|
277
277
|
},
|
|
278
278
|
{ immediate: !0 }
|
|
279
|
-
),
|
|
279
|
+
), K(
|
|
280
280
|
() => E.config,
|
|
281
281
|
() => {
|
|
282
282
|
e.value = fe(z.value || null), Z.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), D.value.showTable = e.value.table.show, ve.value += 1, he.value += 1;
|
|
@@ -285,14 +285,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
285
285
|
);
|
|
286
286
|
const be = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
287
287
|
function Ye(t) {
|
|
288
|
-
O.value.includes(t) ? O.value = O.value.filter((o) => o !== t) : O.value.push(t), ce("selectLegend",
|
|
288
|
+
O.value.includes(t) ? O.value = O.value.filter((o) => o !== t) : O.value.push(t), ce("selectLegend", X.value);
|
|
289
289
|
}
|
|
290
290
|
const P = c(() => U.value ? (z.value || []).map((t) => ({
|
|
291
291
|
...t,
|
|
292
292
|
labelLen: Nt(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
293
293
|
uid: Oe(),
|
|
294
294
|
datapoints: t.datapoints.map((o, a) => {
|
|
295
|
-
const s = o.color ? ca(o.color) :
|
|
295
|
+
const s = o.color ? ca(o.color) : Tt.value[a] || re[a] || re[a % re.length], l = it(o.name);
|
|
296
296
|
return { ...o, color: s, id: l };
|
|
297
297
|
})
|
|
298
298
|
})) : []), je = c(() => e.value.style.chart.padding.top + C.value * (z.value || []).length + C.value * be.value + e.value.style.chart.padding.bottom), f = c(() => {
|
|
@@ -302,14 +302,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
302
302
|
height: je.value,
|
|
303
303
|
padding: t
|
|
304
304
|
};
|
|
305
|
-
}), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0),
|
|
305
|
+
}), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0), Mt = ht((t) => {
|
|
306
306
|
xe.value = t;
|
|
307
307
|
}, 100);
|
|
308
308
|
na((t) => {
|
|
309
309
|
const o = ye.value;
|
|
310
310
|
if (!o) return;
|
|
311
311
|
const a = new ResizeObserver((s) => {
|
|
312
|
-
|
|
312
|
+
Mt(s[0].contentRect.height);
|
|
313
313
|
});
|
|
314
314
|
a.observe(o), t(() => a.disconnect());
|
|
315
315
|
}), ut(() => {
|
|
@@ -322,13 +322,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
322
322
|
right: f.value.width - f.value.padding.right,
|
|
323
323
|
bottom: f.value.height - e.value.style.chart.padding.bottom,
|
|
324
324
|
width: f.value.width - (f.value.padding.left + f.value.padding.right)
|
|
325
|
-
})), W = c(() => Math.max(...P.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = c(() =>
|
|
325
|
+
})), W = c(() => Math.max(...P.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = c(() => Ta({
|
|
326
326
|
values: e.value.style.chart.xAxis.labels.values,
|
|
327
327
|
maxDatapoints: W.value,
|
|
328
328
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
329
329
|
start: 0,
|
|
330
330
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
331
|
-
})),
|
|
331
|
+
})), H = c(() => {
|
|
332
332
|
const t = Math.max(...P.value.map((l) => l.labelLen)), o = f.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - o) / W.value, s = [];
|
|
333
333
|
for (let l = 0; l < W.value; l += 1)
|
|
334
334
|
s.push({
|
|
@@ -348,7 +348,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
348
348
|
selected: a.values[t.index]
|
|
349
349
|
})));
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Lt(t) {
|
|
352
352
|
d.value = t;
|
|
353
353
|
const o = ke(t);
|
|
354
354
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
|
|
@@ -373,7 +373,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
373
373
|
const l = document.createElement("canvas").getContext("2d"), v = typeof o == "number" ? `${o}px` : o;
|
|
374
374
|
return l.font = `${v} ${a}`, l.measureText(t).width;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const X = c(() => {
|
|
377
377
|
C.value;
|
|
378
378
|
const t = Math.max(...P.value.map((x) => x.labelLen)), o = Math.max(...P.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), a = Math.min(...P.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), s = f.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (b.value.width - s) / W.value, v = Math.abs(Math.min(a, 0)), _ = o + v;
|
|
379
379
|
function lt(x) {
|
|
@@ -388,16 +388,16 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
388
388
|
y: N
|
|
389
389
|
},
|
|
390
390
|
datapoints: x.datapoints.map((J) => {
|
|
391
|
-
const F = J.values.map((
|
|
392
|
-
const ta = isNaN(
|
|
391
|
+
const F = J.values.map((Q, ea) => {
|
|
392
|
+
const ta = isNaN(Q) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(Q) ? 0 : Q || 0, aa = s + l * ea, la = b.value.top + ot + C.value * be.value * (1 - lt(ta + v)), oa = Q === Math.max(...J.values);
|
|
393
393
|
return {
|
|
394
394
|
x: aa,
|
|
395
395
|
y: la,
|
|
396
|
-
value:
|
|
396
|
+
value: Q,
|
|
397
397
|
isMaxPoint: oa,
|
|
398
398
|
zero: N
|
|
399
399
|
};
|
|
400
|
-
}), Jt = `${va(F, N, !1, !1)}`,
|
|
400
|
+
}), Jt = `${va(F, N, !1, !1)}`, Qt = `M ${s},${N} ${ct(F)} ${F.at(-1).x},${N}`, Kt = `M ${s},${N} ${F.at(-1).x},${N}`, st = `M ${ha(F)}`, nt = `M ${ct(F)}`, Zt = da(
|
|
401
401
|
e.value.style.chart.areas.smooth ? st : nt
|
|
402
402
|
);
|
|
403
403
|
return {
|
|
@@ -405,8 +405,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
405
405
|
uid: Oe(),
|
|
406
406
|
plots: F,
|
|
407
407
|
smoothPath: Jt,
|
|
408
|
-
straightPath:
|
|
409
|
-
zeroPath:
|
|
408
|
+
straightPath: Qt,
|
|
409
|
+
zeroPath: Kt,
|
|
410
410
|
pathLength: Zt,
|
|
411
411
|
smoothPathRidge: st,
|
|
412
412
|
straightPathRidge: nt
|
|
@@ -443,16 +443,16 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
443
443
|
function Je(t) {
|
|
444
444
|
I.value = t, Fe.value += 1;
|
|
445
445
|
}
|
|
446
|
-
const
|
|
446
|
+
const Qe = i({}), Ke = i([]);
|
|
447
447
|
function Et(t) {
|
|
448
|
-
ce("selectDatapoint", t), e.value.style.chart.dialog.show && (
|
|
448
|
+
ce("selectDatapoint", t), e.value.style.chart.dialog.show && (Ke.value = t.datapoints.map((o) => ({
|
|
449
449
|
name: o.name,
|
|
450
450
|
color: o.color,
|
|
451
451
|
type: "line",
|
|
452
452
|
useArea: !0,
|
|
453
453
|
smooth: e.value.style.chart.areas.smooth,
|
|
454
454
|
series: o.values
|
|
455
|
-
})),
|
|
455
|
+
})), B.value = t, Qe.value = ka({
|
|
456
456
|
...e.value.style.chart.dialog.xyChart,
|
|
457
457
|
responsive: !0,
|
|
458
458
|
// Overriding
|
|
@@ -485,10 +485,10 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
485
485
|
}), de.value && de.value.open());
|
|
486
486
|
}
|
|
487
487
|
const Ae = i(null);
|
|
488
|
-
function
|
|
488
|
+
function Bt(t) {
|
|
489
489
|
Ae.value = t;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Ht() {
|
|
492
492
|
Ae.value = null;
|
|
493
493
|
}
|
|
494
494
|
const ae = i(!1);
|
|
@@ -498,7 +498,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
498
498
|
function Ze() {
|
|
499
499
|
D.value.showTable = !D.value.showTable;
|
|
500
500
|
}
|
|
501
|
-
const et = c(() => ({ body:
|
|
501
|
+
const et = c(() => ({ body: X.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
502
502
|
...s,
|
|
503
503
|
rowName: `${a.name}: ${s.name}`
|
|
504
504
|
}))).map((a) => [
|
|
@@ -549,8 +549,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
549
549
|
});
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function Xt() {
|
|
553
|
+
return X.value;
|
|
554
554
|
}
|
|
555
555
|
async function Ut({ scale: t = 2 } = {}) {
|
|
556
556
|
if (!$.value) return;
|
|
@@ -565,7 +565,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
567
|
const Vt = c(() => ({ min: 0, max: W.value }));
|
|
568
|
-
|
|
568
|
+
Ma({
|
|
569
569
|
timeLabelsEls: ye,
|
|
570
570
|
timeLabels: Y,
|
|
571
571
|
slicer: Vt,
|
|
@@ -581,7 +581,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
581
581
|
const j = c(() => {
|
|
582
582
|
const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
|
|
583
583
|
return {
|
|
584
|
-
component: t ?
|
|
584
|
+
component: t ? Le : bt,
|
|
585
585
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
586
586
|
props: t ? {
|
|
587
587
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -608,7 +608,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
});
|
|
611
|
-
|
|
611
|
+
K(() => D.value.showTable, (t) => {
|
|
612
612
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
613
613
|
});
|
|
614
614
|
function tt() {
|
|
@@ -617,7 +617,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
617
617
|
const Gt = c(() => e.value.style.chart.backgroundColor), Wt = c(() => ({
|
|
618
618
|
...e.value.style.chart.legend,
|
|
619
619
|
position: "bottom"
|
|
620
|
-
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } =
|
|
620
|
+
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } = Sa({
|
|
621
621
|
svg: ee,
|
|
622
622
|
title: Yt,
|
|
623
623
|
legend: Wt,
|
|
@@ -632,7 +632,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
632
632
|
jt();
|
|
633
633
|
}
|
|
634
634
|
return gt({
|
|
635
|
-
getData:
|
|
635
|
+
getData: Xt,
|
|
636
636
|
getImage: Ut,
|
|
637
637
|
generateImage: We,
|
|
638
638
|
generateSvg: at,
|
|
@@ -653,10 +653,10 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
653
653
|
background: e.value.style.chart.backgroundColor,
|
|
654
654
|
height: e.value.responsive ? "100%" : void 0
|
|
655
655
|
}),
|
|
656
|
-
onMouseenter: o[3] || (o[3] = () => u(
|
|
657
|
-
onMouseleave: o[4] || (o[4] = () => u(
|
|
656
|
+
onMouseenter: o[3] || (o[3] = () => u(Be)(!0)),
|
|
657
|
+
onMouseleave: o[4] || (o[4] = () => u(Be)(!1))
|
|
658
658
|
}, [
|
|
659
|
-
e.value.userOptions.buttons.annotator && u(ee) ? (n(),
|
|
659
|
+
e.value.userOptions.buttons.annotator && u(ee) ? (n(), S(u(kt), {
|
|
660
660
|
key: 0,
|
|
661
661
|
color: e.value.style.chart.color,
|
|
662
662
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -665,7 +665,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
665
665
|
onClose: Ce
|
|
666
666
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
667
667
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
668
|
-
|
|
668
|
+
St.value ? (n(), r("div", {
|
|
669
669
|
key: 1,
|
|
670
670
|
ref_key: "noTitle",
|
|
671
671
|
ref: Ne,
|
|
@@ -678,7 +678,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
678
678
|
ref: ze,
|
|
679
679
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
680
680
|
}, [
|
|
681
|
-
(n(),
|
|
681
|
+
(n(), S(Da, {
|
|
682
682
|
key: `title_${ve.value}`,
|
|
683
683
|
config: {
|
|
684
684
|
title: {
|
|
@@ -692,7 +692,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
692
692
|
}
|
|
693
693
|
}, null, 8, ["config"]))
|
|
694
694
|
], 512)) : h("", !0),
|
|
695
|
-
e.value.userOptions.show && U.value && (u(
|
|
695
|
+
e.value.userOptions.show && U.value && (u(He) || u(Z)) ? (n(), S(u(At), {
|
|
696
696
|
ref_key: "userOptionsRef",
|
|
697
697
|
ref: ge,
|
|
698
698
|
key: `user_option_${Fe.value}`,
|
|
@@ -719,7 +719,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
719
719
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
720
720
|
isAnnotation: ae.value,
|
|
721
721
|
tableDialog: e.value.table.useDialog,
|
|
722
|
-
style: w({ visibility: u(
|
|
722
|
+
style: w({ visibility: u(He) ? u(Z) ? "visible" : "hidden" : "visible" }),
|
|
723
723
|
onToggleFullscreen: Je,
|
|
724
724
|
onGeneratePdf: u(Ge),
|
|
725
725
|
onGenerateCsv: we,
|
|
@@ -793,7 +793,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
793
793
|
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
794
794
|
style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Ee.value}px; width: 100%;` : ""}`)
|
|
795
795
|
}, [
|
|
796
|
-
|
|
796
|
+
Se(u(Ct)),
|
|
797
797
|
y("defs", null, [
|
|
798
798
|
(n(!0), r(m, null, k(te.value, (a, s) => (n(), r("linearGradient", {
|
|
799
799
|
id: `gradient-${a.id}-${A.value}`,
|
|
@@ -806,12 +806,12 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
806
806
|
offset: "0%",
|
|
807
807
|
"stop-color": a.color,
|
|
808
808
|
"stop-opacity": "1"
|
|
809
|
-
}, null, 8,
|
|
809
|
+
}, null, 8, Ha),
|
|
810
810
|
y("stop", {
|
|
811
811
|
offset: "30%",
|
|
812
812
|
"stop-color": a.color,
|
|
813
813
|
"stop-opacity": "0.7"
|
|
814
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, Xa),
|
|
815
815
|
y("stop", {
|
|
816
816
|
offset: "70%",
|
|
817
817
|
"stop-color": a.color,
|
|
@@ -822,8 +822,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
822
822
|
"stop-color": a.color,
|
|
823
823
|
"stop-opacity": "0.1"
|
|
824
824
|
}, null, 8, Va)
|
|
825
|
-
], 8,
|
|
826
|
-
(n(!0), r(m, null, k(
|
|
825
|
+
], 8, Ba))), 256)),
|
|
826
|
+
(n(!0), r(m, null, k(X.value, (a, s) => (n(), r(m, null, [
|
|
827
827
|
(n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("linearGradient", {
|
|
828
828
|
key: `grad${l.id}`,
|
|
829
829
|
id: `gradient-single-${A.value}-${l.uid}`,
|
|
@@ -855,7 +855,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
855
855
|
], 8, Ga))), 128))
|
|
856
856
|
], 64))), 256))
|
|
857
857
|
]),
|
|
858
|
-
(n(!0), r(m, null, k(
|
|
858
|
+
(n(!0), r(m, null, k(X.value, (a, s) => (n(), r("g", {
|
|
859
859
|
key: `ds-${s}`
|
|
860
860
|
}, [
|
|
861
861
|
(n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("g", {
|
|
@@ -863,7 +863,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
863
863
|
}, [
|
|
864
864
|
t.$slots.pattern ? (n(), r("g", Ja, [
|
|
865
865
|
y("defs", null, [
|
|
866
|
-
p(t.$slots, "pattern",
|
|
866
|
+
p(t.$slots, "pattern", Te({ ref_for: !0 }, { datapointIndex: s, seriesIndex: v, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
|
|
867
867
|
])
|
|
868
868
|
])) : h("", !0),
|
|
869
869
|
y("path", {
|
|
@@ -874,7 +874,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
874
874
|
style: w({
|
|
875
875
|
opacity: e.value.style.chart.areas.opacity
|
|
876
876
|
})
|
|
877
|
-
}, null, 12,
|
|
877
|
+
}, null, 12, Qa),
|
|
878
878
|
y("path", {
|
|
879
879
|
fill: "none",
|
|
880
880
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -887,7 +887,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
887
887
|
strokeDasharray: l.pathLength,
|
|
888
888
|
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
889
889
|
})
|
|
890
|
-
}, null, 14,
|
|
890
|
+
}, null, 14, Ka),
|
|
891
891
|
y("path", {
|
|
892
892
|
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${l.id}-${A.value})` : `url(#gradient-single-${A.value}-${l.uid})` : l.color,
|
|
893
893
|
stroke: "none",
|
|
@@ -944,9 +944,9 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
944
944
|
style: w({
|
|
945
945
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
946
946
|
}),
|
|
947
|
-
"text-decoration": e.value.style.chart.dialog.show && (Ae.value === s ||
|
|
948
|
-
onMouseenter: (l) =>
|
|
949
|
-
onMouseleave:
|
|
947
|
+
"text-decoration": e.value.style.chart.dialog.show && (Ae.value === s || B.value && a.uid === B.value.uid) ? "underline" : "",
|
|
948
|
+
onMouseenter: (l) => Bt(s),
|
|
949
|
+
onMouseleave: Ht,
|
|
950
950
|
onClick: (l) => Et(a)
|
|
951
951
|
}, R(a.name), 45, ll)
|
|
952
952
|
]))), 128)),
|
|
@@ -955,8 +955,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
955
955
|
ref_key: "timeLabelsEls",
|
|
956
956
|
ref: ye
|
|
957
957
|
}, [
|
|
958
|
-
(n(!0), r(m, null, k(
|
|
959
|
-
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 ===
|
|
958
|
+
(n(!0), r(m, null, k(H.value, (a, s) => p(t.$slots, "time-label", Te({ ref_for: !0 }, {
|
|
959
|
+
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 === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
960
960
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
961
961
|
content: a.label,
|
|
962
962
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -965,7 +965,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
965
965
|
x: a.selectorX,
|
|
966
966
|
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
967
967
|
}), () => [
|
|
968
|
-
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 ===
|
|
968
|
+
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 === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", ol, [
|
|
969
969
|
String(a.label).includes(`
|
|
970
970
|
`) ? (n(), r("text", {
|
|
971
971
|
key: 1,
|
|
@@ -1001,13 +1001,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1001
1001
|
], !0)), 256))
|
|
1002
1002
|
], 512)) : h("", !0),
|
|
1003
1003
|
y("g", null, [
|
|
1004
|
-
(n(!0), r(m, null, k(
|
|
1004
|
+
(n(!0), r(m, null, k(H.value, (a, s) => (n(), r("rect", {
|
|
1005
1005
|
x: a.x,
|
|
1006
1006
|
y: a.y,
|
|
1007
1007
|
width: a.width < 0 ? 0.1 : a.width,
|
|
1008
1008
|
height: a.height < 0 ? 0.1 : a.height,
|
|
1009
1009
|
fill: "transparent",
|
|
1010
|
-
onMouseenter: (l) =>
|
|
1010
|
+
onMouseenter: (l) => Lt(a),
|
|
1011
1011
|
onMouseleave: (l) => zt(a),
|
|
1012
1012
|
onClick: () => Dt(a)
|
|
1013
1013
|
}, null, 40, rl))), 256)),
|
|
@@ -1023,7 +1023,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1023
1023
|
"stroke-linecap": "round",
|
|
1024
1024
|
style: { pointerEvents: "none" }
|
|
1025
1025
|
}, null, 8, ul)) : h("", !0),
|
|
1026
|
-
d.value ? (n(!0), r(m, { key: 1 }, k(
|
|
1026
|
+
d.value ? (n(!0), r(m, { key: 1 }, k(X.value, (a) => (n(), r(m, null, [
|
|
1027
1027
|
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1028
1028
|
(n(!0), r(m, null, k(s.plots, (l, v) => (n(), r(m, null, [
|
|
1029
1029
|
d.value && d.value.index === v ? (n(), r("circle", {
|
|
@@ -1097,7 +1097,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1097
1097
|
ref_key: "chartLegend",
|
|
1098
1098
|
ref: De
|
|
1099
1099
|
}, [
|
|
1100
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1100
|
+
e.value.style.chart.legend.show ? (n(), S(za, {
|
|
1101
1101
|
key: `legend_${he.value}`,
|
|
1102
1102
|
legendSet: te.value,
|
|
1103
1103
|
config: Rt.value,
|
|
@@ -1115,7 +1115,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1115
1115
|
t.$slots.pattern ? {
|
|
1116
1116
|
name: "legend-pattern",
|
|
1117
1117
|
fn: g(({ legend: a, index: s }) => [
|
|
1118
|
-
|
|
1118
|
+
Se(Ia, {
|
|
1119
1119
|
shape: a.shape,
|
|
1120
1120
|
radius: 30,
|
|
1121
1121
|
stroke: "none",
|
|
@@ -1136,13 +1136,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1136
1136
|
}, [
|
|
1137
1137
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1138
1138
|
], 512)) : h("", !0),
|
|
1139
|
-
U.value && e.value.userOptions.buttons.table ? (n(),
|
|
1139
|
+
U.value && e.value.userOptions.buttons.table ? (n(), S(ra(j.value.component), Te({ key: 6 }, j.value.props, {
|
|
1140
1140
|
ref_key: "tableUnit",
|
|
1141
1141
|
ref: V,
|
|
1142
1142
|
onClose: tt
|
|
1143
1143
|
}), _e({
|
|
1144
1144
|
content: g(() => [
|
|
1145
|
-
(n(),
|
|
1145
|
+
(n(), S(u(xt), {
|
|
1146
1146
|
key: `table_${$t.value}`,
|
|
1147
1147
|
colNames: le.value.colNames,
|
|
1148
1148
|
head: le.value.head,
|
|
@@ -1187,7 +1187,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1187
1187
|
class: "vue-ui-user-options-button",
|
|
1188
1188
|
onClick: o[1] || (o[1] = (a) => we(e.value.userOptions.callbacks.csv))
|
|
1189
1189
|
}, [
|
|
1190
|
-
|
|
1190
|
+
Se(u(pt), {
|
|
1191
1191
|
name: "excel",
|
|
1192
1192
|
stroke: j.value.props.color
|
|
1193
1193
|
}, null, 8, ["stroke"])
|
|
@@ -1196,11 +1196,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1196
1196
|
key: "1"
|
|
1197
1197
|
} : void 0
|
|
1198
1198
|
]), 1040)) : h("", !0),
|
|
1199
|
-
e.value.style.chart.dialog.show ? (n(),
|
|
1199
|
+
e.value.style.chart.dialog.show ? (n(), S(u(Le), {
|
|
1200
1200
|
key: 7,
|
|
1201
1201
|
ref_key: "dialog",
|
|
1202
1202
|
ref: de,
|
|
1203
|
-
onClose: o[2] || (o[2] = (a) =>
|
|
1203
|
+
onClose: o[2] || (o[2] = (a) => B.value = null),
|
|
1204
1204
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1205
1205
|
color: e.value.style.chart.dialog.color,
|
|
1206
1206
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
@@ -1210,21 +1210,21 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1210
1210
|
withPadding: ""
|
|
1211
1211
|
}, {
|
|
1212
1212
|
title: g(() => [
|
|
1213
|
-
Pe(R(
|
|
1213
|
+
Pe(R(B.value.name), 1)
|
|
1214
1214
|
]),
|
|
1215
1215
|
content: g(() => [
|
|
1216
|
-
|
|
1216
|
+
B.value ? (n(), S(u(mt), {
|
|
1217
1217
|
key: 0,
|
|
1218
|
-
config:
|
|
1219
|
-
dataset:
|
|
1218
|
+
config: Qe.value,
|
|
1219
|
+
dataset: Ke.value
|
|
1220
1220
|
}, null, 8, ["config", "dataset"])) : h("", !0)
|
|
1221
1221
|
]),
|
|
1222
1222
|
_: 1
|
|
1223
1223
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1224
|
-
u(G) ? (n(),
|
|
1224
|
+
u(G) ? (n(), S($a, { key: 8 })) : h("", !0)
|
|
1225
1225
|
], 46, Ra));
|
|
1226
1226
|
}
|
|
1227
|
-
},
|
|
1227
|
+
}, Ll = /* @__PURE__ */ Fa(yl, [["__scopeId", "data-v-0a6ef1d2"]]);
|
|
1228
1228
|
export {
|
|
1229
|
-
|
|
1229
|
+
Ll as default
|
|
1230
1230
|
};
|