vue-data-ui 3.2.8 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- 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-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t 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 {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
1
|
+
import { defineAsyncComponent as L, computed as c, ref as i, shallowRef as rt, toRefs as sa, onBeforeUnmount as ut, watch as Q, nextTick as $e, watchEffect as na, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as oe, createBlock as T, createCommentVNode as h, renderSlot as p, createElementVNode as y, createSlots as _e, withCtx as g, normalizeProps as se, guardReactiveProps as ne, createVNode as Te, Fragment as m, renderList as k, mergeProps as Se, 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, aa as it, ab as va, T as ct, U as ha, V as da, X as ya, E as ga, L as fa, a as ue, d as ie, b as ma, f as Le, g as vt, o as pa, x as ba, y as xa, N as ka } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as ht, u as Aa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ca, a as dt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as wa, B as $a } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as _a } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as Ta } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Sa } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as La } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { t as Ma } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import za from "./Legend-DsogCeTb.js";
|
|
14
|
+
import Da from "./Title-D17CJXko.js";
|
|
15
|
+
import { _ as Ia } from "./Shape-DJG2zW7b.js";
|
|
16
|
+
import Na from "./img-6wPuVVtk.js";
|
|
17
|
+
import { _ as Fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"], Ba = ["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 }, Ka = ["fill", "d"], Qa = ["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 = {
|
|
18
19
|
key: 4,
|
|
19
20
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
21
|
+
}, hl = ["onClick"], dl = ["innerHTML"], yl = {
|
|
21
22
|
__name: "vue-ui-ridgeline",
|
|
22
23
|
props: {
|
|
23
24
|
config: {
|
|
@@ -34,32 +35,32 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
38
|
+
setup(yt, { expose: gt, emit: ft }) {
|
|
39
|
+
const mt = L(() => import("./vue-ui-xy-B2fjTYMJ.js")), pt = L(() => import("./BaseIcon-CtqN7W_g.js")), bt = L(() => import("./vue-ui-accordion-Dch9YrCi.js")), xt = L(() => import("./DataTable-BeI6gYJX.js")), kt = L(() => import("./PenAndPaper-BxbYiPy4.js")), At = L(() => import("./UserOptions-B3vCIe-u.js")), Ct = L(() => import("./PackageVersion-C9oklnuy.js")), Me = L(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_ridgeline: wt } = Ca(), E = yt, U = c({
|
|
39
40
|
get() {
|
|
40
41
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
41
42
|
},
|
|
42
43
|
set(t) {
|
|
43
44
|
return t;
|
|
44
45
|
}
|
|
45
|
-
}),
|
|
46
|
-
function
|
|
47
|
-
const t =
|
|
46
|
+
}), ce = ft, $ = i(null), ze = i(null), De = i(null), S = rt(null), M = 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), H = i(null), de = i(null), Ee = i(0), ye = i(null), V = i(null), ge = i(null);
|
|
47
|
+
function fe() {
|
|
48
|
+
const t = dt({
|
|
48
49
|
userConfig: E.config,
|
|
49
|
-
defaultConfig:
|
|
50
|
+
defaultConfig: wt
|
|
50
51
|
});
|
|
51
52
|
return t.theme ? {
|
|
52
|
-
...
|
|
53
|
-
userConfig:
|
|
53
|
+
...dt({
|
|
54
|
+
userConfig: Ma.vue_ui_ridgeline[t.theme] || E.config,
|
|
54
55
|
defaultConfig: t
|
|
55
56
|
}),
|
|
56
|
-
customPalette:
|
|
57
|
+
customPalette: ma[t.theme] || re
|
|
57
58
|
} : t;
|
|
58
59
|
}
|
|
59
|
-
const e = i(
|
|
60
|
-
...
|
|
60
|
+
const e = i(fe()), { loading: G, FINAL_DATASET: z, manualLoading: me } = wa({
|
|
61
|
+
...sa(E),
|
|
61
62
|
FINAL_CONFIG: e,
|
|
62
|
-
prepareConfig:
|
|
63
|
+
prepareConfig: fe,
|
|
63
64
|
skeletonDataset: [
|
|
64
65
|
{
|
|
65
66
|
name: "_",
|
|
@@ -152,7 +153,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
152
153
|
]
|
|
153
154
|
}
|
|
154
155
|
],
|
|
155
|
-
skeletonConfig:
|
|
156
|
+
skeletonConfig: ua({
|
|
156
157
|
defaultConfig: e.value,
|
|
157
158
|
userConfig: {
|
|
158
159
|
userOptions: { show: !1 },
|
|
@@ -198,45 +199,45 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
198
199
|
userOptionsVisible: Z,
|
|
199
200
|
setUserOptionsVisibility: He,
|
|
200
201
|
keepUserOptionState: Xe
|
|
201
|
-
} =
|
|
202
|
+
} = Pa({ config: e.value }), { svgRef: ee } = Oa({ config: e.value.style.chart.title }), pe = c(() => !!e.value.debug);
|
|
202
203
|
function Be() {
|
|
203
204
|
const t = z.value || [];
|
|
204
205
|
if (!Array.isArray(t) || t.length === 0) {
|
|
205
|
-
|
|
206
|
+
Le({ componentName: "VueUiRidgeline", type: "dataset", debug: pe.value }), me.value = !0;
|
|
206
207
|
return;
|
|
207
208
|
}
|
|
208
209
|
if (t.forEach((o, a) => {
|
|
209
|
-
|
|
210
|
+
vt({
|
|
210
211
|
datasetObject: o,
|
|
211
212
|
requiredAttributes: ["name", "datapoints"]
|
|
212
213
|
}).forEach((s) => {
|
|
213
|
-
U.value = !1,
|
|
214
|
+
U.value = !1, Le({
|
|
214
215
|
componentName: "VueUiRidgeline",
|
|
215
216
|
type: "datasetSerieAttribute",
|
|
216
217
|
property: s,
|
|
217
218
|
index: a,
|
|
218
|
-
debug:
|
|
219
|
+
debug: pe.value
|
|
219
220
|
});
|
|
220
221
|
}), Array.isArray(o.datapoints) && o.datapoints.length && o.datapoints.forEach((s, l) => {
|
|
221
|
-
|
|
222
|
+
vt({
|
|
222
223
|
datasetObject: s,
|
|
223
224
|
requiredAttributes: ["name", "values"]
|
|
224
|
-
}).forEach((
|
|
225
|
-
U.value = !1,
|
|
225
|
+
}).forEach((v) => {
|
|
226
|
+
U.value = !1, Le({
|
|
226
227
|
componentName: "VueUiRidgeline",
|
|
227
228
|
type: "datasetSerieAttribute",
|
|
228
|
-
property: `datapoint.${
|
|
229
|
+
property: `datapoint.${v}`,
|
|
229
230
|
index: `${a}-${l}`,
|
|
230
|
-
debug:
|
|
231
|
+
debug: pe.value
|
|
231
232
|
});
|
|
232
233
|
});
|
|
233
234
|
});
|
|
234
|
-
}),
|
|
235
|
+
}), _t.value = t.length, C.value = Math.min(
|
|
235
236
|
e.value.style.chart.areas.height,
|
|
236
237
|
e.value.style.chart.areas.rowHeight
|
|
237
|
-
),
|
|
238
|
-
const o =
|
|
239
|
-
const { width: a, height: s } =
|
|
238
|
+
), pa(E.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
239
|
+
const o = ht(() => {
|
|
240
|
+
const { width: a, height: s } = Aa({
|
|
240
241
|
chart: $.value,
|
|
241
242
|
title: e.value.style.chart.title.text ? ze.value : null,
|
|
242
243
|
legend: e.value.style.chart.legend.show ? De.value : null,
|
|
@@ -248,29 +249,29 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
248
249
|
Re.value = a, C.value = t.length ? s / t.length : 0, Ee.value = s - 12;
|
|
249
250
|
});
|
|
250
251
|
});
|
|
251
|
-
|
|
252
|
+
S.value && (M.value && S.value.unobserve(M.value), S.value.disconnect()), S.value = new ResizeObserver(o), M.value = $.value?.parentNode || null, M.value && S.value.observe(M.value);
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
ut(() => {
|
|
256
|
+
S.value && (M.value && S.value.unobserve(M.value), S.value.disconnect());
|
|
256
257
|
});
|
|
257
|
-
const { isPrinting: Ue, isImaging: Ve, generatePdf:
|
|
258
|
+
const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } = _a({
|
|
258
259
|
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
259
260
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
260
261
|
options: e.value.userOptions.print
|
|
261
|
-
}),
|
|
262
|
+
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), St = c(() => ia(e.value.customPalette)), D = i({
|
|
262
263
|
showTable: e.value.table.show
|
|
263
264
|
});
|
|
264
265
|
Q(
|
|
265
266
|
() => z.value,
|
|
266
267
|
async (t) => {
|
|
267
|
-
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(), Be(),
|
|
268
|
+
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(), Be(), ve.value += 1, he.value += 1, D.value.showTable = e.value.table.show);
|
|
268
269
|
},
|
|
269
270
|
{ deep: !0, immediate: !0 }
|
|
270
271
|
), Q(() => E.dataset, (t) => {
|
|
271
|
-
Array.isArray(t) && t.length > 0 && (
|
|
272
|
+
Array.isArray(t) && t.length > 0 && (me.value = !1);
|
|
272
273
|
}, { deep: !0 }), Q(
|
|
273
|
-
() =>
|
|
274
|
+
() => G.value,
|
|
274
275
|
async (t) => {
|
|
275
276
|
t || (await $e(), Be());
|
|
276
277
|
},
|
|
@@ -278,58 +279,58 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
278
279
|
), Q(
|
|
279
280
|
() => E.config,
|
|
280
281
|
() => {
|
|
281
|
-
e.value =
|
|
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;
|
|
282
283
|
},
|
|
283
284
|
{ deep: !0 }
|
|
284
285
|
);
|
|
285
|
-
const
|
|
286
|
+
const be = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
286
287
|
function Ye(t) {
|
|
287
|
-
|
|
288
|
+
O.value.includes(t) ? O.value = O.value.filter((o) => o !== t) : O.value.push(t), ce("selectLegend", B.value);
|
|
288
289
|
}
|
|
289
|
-
const
|
|
290
|
+
const P = c(() => U.value ? (z.value || []).map((t) => ({
|
|
290
291
|
...t,
|
|
291
|
-
labelLen:
|
|
292
|
-
uid:
|
|
292
|
+
labelLen: Nt(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
293
|
+
uid: Oe(),
|
|
293
294
|
datapoints: t.datapoints.map((o, a) => {
|
|
294
|
-
const s = o.color ?
|
|
295
|
+
const s = o.color ? ca(o.color) : St.value[a] || re[a] || re[a % re.length], l = it(o.name);
|
|
295
296
|
return { ...o, color: s, id: l };
|
|
296
297
|
})
|
|
297
|
-
})) : []), je =
|
|
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(() => {
|
|
298
299
|
const t = e.value.style.chart.padding;
|
|
299
300
|
return {
|
|
300
301
|
width: Re.value,
|
|
301
302
|
height: je.value,
|
|
302
303
|
padding: t
|
|
303
304
|
};
|
|
304
|
-
}), Pt =
|
|
305
|
-
|
|
305
|
+
}), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0), Lt = ht((t) => {
|
|
306
|
+
xe.value = t;
|
|
306
307
|
}, 100);
|
|
307
|
-
|
|
308
|
-
const o =
|
|
308
|
+
na((t) => {
|
|
309
|
+
const o = ye.value;
|
|
309
310
|
if (!o) return;
|
|
310
311
|
const a = new ResizeObserver((s) => {
|
|
311
|
-
|
|
312
|
+
Lt(s[0].contentRect.height);
|
|
312
313
|
});
|
|
313
314
|
a.observe(o), t(() => a.disconnect());
|
|
314
|
-
}),
|
|
315
|
-
|
|
315
|
+
}), ut(() => {
|
|
316
|
+
xe.value = 0;
|
|
316
317
|
});
|
|
317
|
-
const b =
|
|
318
|
-
fullHeight:
|
|
319
|
-
top:
|
|
320
|
-
left:
|
|
321
|
-
right:
|
|
322
|
-
bottom:
|
|
323
|
-
width:
|
|
324
|
-
})),
|
|
318
|
+
const b = c(() => ({
|
|
319
|
+
fullHeight: f.value.height + xe.value,
|
|
320
|
+
top: f.value.padding.top,
|
|
321
|
+
left: f.value.padding.left,
|
|
322
|
+
right: f.value.width - f.value.padding.right,
|
|
323
|
+
bottom: f.value.height - e.value.style.chart.padding.bottom,
|
|
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(() => Sa({
|
|
325
326
|
values: e.value.style.chart.xAxis.labels.values,
|
|
326
|
-
maxDatapoints:
|
|
327
|
+
maxDatapoints: W.value,
|
|
327
328
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
328
329
|
start: 0,
|
|
329
330
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
330
|
-
})), X =
|
|
331
|
-
const t = Math.max(...
|
|
332
|
-
for (let l = 0; l <
|
|
331
|
+
})), X = c(() => {
|
|
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
|
+
for (let l = 0; l < W.value; l += 1)
|
|
333
334
|
s.push({
|
|
334
335
|
selectorX: o + a * l,
|
|
335
336
|
x: o + a * l - a / 2,
|
|
@@ -341,45 +342,45 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
341
342
|
});
|
|
342
343
|
return s;
|
|
343
344
|
});
|
|
344
|
-
function
|
|
345
|
-
return
|
|
345
|
+
function ke(t) {
|
|
346
|
+
return P.value.map((o) => o.datapoints.map((a) => ({
|
|
346
347
|
dp: a,
|
|
347
348
|
selected: a.values[t.index]
|
|
348
349
|
})));
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
const o =
|
|
351
|
+
function Mt(t) {
|
|
352
|
+
d.value = t;
|
|
353
|
+
const o = ke(t);
|
|
353
354
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
357
|
-
const o =
|
|
356
|
+
function zt(t) {
|
|
357
|
+
d.value = null;
|
|
358
|
+
const o = ke(t);
|
|
358
359
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t.index });
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
-
const o =
|
|
362
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }),
|
|
361
|
+
function Dt(t) {
|
|
362
|
+
const o = ke(t);
|
|
363
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }), ce("selectX", o);
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function It(t, o) {
|
|
365
366
|
return t.length * o / 2 + o;
|
|
366
367
|
}
|
|
367
368
|
function qe(t, o, a) {
|
|
368
|
-
const s =
|
|
369
|
+
const s = It(o, a);
|
|
369
370
|
return t + s > b.value.right;
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
-
const l = document.createElement("canvas").getContext("2d"),
|
|
373
|
-
return l.font = `${
|
|
372
|
+
function Nt(t, o, a = "sans-serif") {
|
|
373
|
+
const l = document.createElement("canvas").getContext("2d"), v = typeof o == "number" ? `${o}px` : o;
|
|
374
|
+
return l.font = `${v} ${a}`, l.measureText(t).width;
|
|
374
375
|
}
|
|
375
|
-
const B =
|
|
376
|
+
const B = c(() => {
|
|
376
377
|
C.value;
|
|
377
|
-
const t = Math.max(...
|
|
378
|
-
function
|
|
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
|
+
function lt(x) {
|
|
379
380
|
return isNaN(x / _) ? 0 : x / _;
|
|
380
381
|
}
|
|
381
|
-
return
|
|
382
|
-
const
|
|
382
|
+
return P.value.map((x, q) => {
|
|
383
|
+
const ot = b.value.top + C.value * q, N = b.value.top + ot + C.value * be.value * (1 - lt(v));
|
|
383
384
|
return {
|
|
384
385
|
...x,
|
|
385
386
|
label: {
|
|
@@ -387,51 +388,51 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
387
388
|
y: N
|
|
388
389
|
},
|
|
389
390
|
datapoints: x.datapoints.map((J) => {
|
|
390
|
-
const F = J.values.map((K,
|
|
391
|
-
const
|
|
391
|
+
const F = J.values.map((K, ea) => {
|
|
392
|
+
const ta = isNaN(K) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(K) ? 0 : K || 0, aa = s + l * ea, la = b.value.top + ot + C.value * be.value * (1 - lt(ta + v)), oa = K === Math.max(...J.values);
|
|
392
393
|
return {
|
|
393
|
-
x:
|
|
394
|
-
y:
|
|
394
|
+
x: aa,
|
|
395
|
+
y: la,
|
|
395
396
|
value: K,
|
|
396
|
-
isMaxPoint:
|
|
397
|
+
isMaxPoint: oa,
|
|
397
398
|
zero: N
|
|
398
399
|
};
|
|
399
|
-
}),
|
|
400
|
-
e.value.style.chart.areas.smooth ?
|
|
400
|
+
}), Jt = `${va(F, N, !1, !1)}`, Kt = `M ${s},${N} ${ct(F)} ${F.at(-1).x},${N}`, Qt = `M ${s},${N} ${F.at(-1).x},${N}`, st = `M ${ha(F)}`, nt = `M ${ct(F)}`, Zt = da(
|
|
401
|
+
e.value.style.chart.areas.smooth ? st : nt
|
|
401
402
|
);
|
|
402
403
|
return {
|
|
403
404
|
...J,
|
|
404
|
-
uid:
|
|
405
|
+
uid: Oe(),
|
|
405
406
|
plots: F,
|
|
406
|
-
smoothPath:
|
|
407
|
-
straightPath:
|
|
408
|
-
zeroPath:
|
|
409
|
-
pathLength:
|
|
410
|
-
smoothPathRidge:
|
|
411
|
-
straightPathRidge:
|
|
407
|
+
smoothPath: Jt,
|
|
408
|
+
straightPath: Kt,
|
|
409
|
+
zeroPath: Qt,
|
|
410
|
+
pathLength: Zt,
|
|
411
|
+
smoothPathRidge: st,
|
|
412
|
+
straightPathRidge: nt
|
|
412
413
|
};
|
|
413
|
-
}).filter((J) => !
|
|
414
|
+
}).filter((J) => !O.value.includes(J.id))
|
|
414
415
|
};
|
|
415
416
|
});
|
|
416
|
-
}),
|
|
417
|
-
function
|
|
417
|
+
}), O = i([]);
|
|
418
|
+
function Ft(t) {
|
|
418
419
|
const o = /* @__PURE__ */ new Map();
|
|
419
420
|
return t.forEach((a) => {
|
|
420
421
|
a.datapoints.forEach((s, l) => {
|
|
421
|
-
const
|
|
422
|
-
o.has(
|
|
423
|
-
id:
|
|
422
|
+
const v = it(s.name);
|
|
423
|
+
o.has(v) || o.set(v, {
|
|
424
|
+
id: v,
|
|
424
425
|
name: s.name,
|
|
425
426
|
color: s.color,
|
|
426
427
|
shape: "circle",
|
|
427
|
-
segregate: () => Ye(
|
|
428
|
-
isSegregated:
|
|
429
|
-
opacity:
|
|
428
|
+
segregate: () => Ye(v),
|
|
429
|
+
isSegregated: O.value.includes(v),
|
|
430
|
+
opacity: O.value.includes(v) ? 0.5 : 1
|
|
430
431
|
});
|
|
431
432
|
});
|
|
432
433
|
}), Array.from(o.values());
|
|
433
434
|
}
|
|
434
|
-
const
|
|
435
|
+
const te = c(() => Ft(P.value)), Rt = c(() => ({
|
|
435
436
|
cy: "donut-div-legend",
|
|
436
437
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
437
438
|
color: e.value.style.chart.legend.color,
|
|
@@ -443,15 +444,15 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
443
444
|
I.value = t, Fe.value += 1;
|
|
444
445
|
}
|
|
445
446
|
const Ke = i({}), Qe = i([]);
|
|
446
|
-
function
|
|
447
|
-
|
|
447
|
+
function Et(t) {
|
|
448
|
+
ce("selectDatapoint", t), e.value.style.chart.dialog.show && (Qe.value = t.datapoints.map((o) => ({
|
|
448
449
|
name: o.name,
|
|
449
450
|
color: o.color,
|
|
450
451
|
type: "line",
|
|
451
452
|
useArea: !0,
|
|
452
453
|
smooth: e.value.style.chart.areas.smooth,
|
|
453
454
|
series: o.values
|
|
454
|
-
})), H.value = t, Ke.value =
|
|
455
|
+
})), H.value = t, Ke.value = ka({
|
|
455
456
|
...e.value.style.chart.dialog.xyChart,
|
|
456
457
|
responsive: !0,
|
|
457
458
|
// Overriding
|
|
@@ -481,23 +482,23 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
481
482
|
// Overriding
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
|
-
}),
|
|
485
|
+
}), de.value && de.value.open());
|
|
485
486
|
}
|
|
486
487
|
const Ae = i(null);
|
|
487
|
-
function
|
|
488
|
+
function Ht(t) {
|
|
488
489
|
Ae.value = t;
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
+
function Xt() {
|
|
491
492
|
Ae.value = null;
|
|
492
493
|
}
|
|
493
|
-
const
|
|
494
|
+
const ae = i(!1);
|
|
494
495
|
function Ce() {
|
|
495
|
-
|
|
496
|
+
ae.value = !ae.value;
|
|
496
497
|
}
|
|
497
498
|
function Ze() {
|
|
498
499
|
D.value.showTable = !D.value.showTable;
|
|
499
500
|
}
|
|
500
|
-
const et =
|
|
501
|
+
const et = c(() => ({ body: B.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
501
502
|
...s,
|
|
502
503
|
rowName: `${a.name}: ${s.name}`
|
|
503
504
|
}))).map((a) => [
|
|
@@ -506,7 +507,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
506
507
|
color: a.color
|
|
507
508
|
},
|
|
508
509
|
...a.values
|
|
509
|
-
]) })),
|
|
510
|
+
]) })), le = c(() => {
|
|
510
511
|
const t = [
|
|
511
512
|
e.value.table.columnNames.series,
|
|
512
513
|
...Y.value.map((s) => s.text)
|
|
@@ -537,50 +538,50 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
537
538
|
$e(() => {
|
|
538
539
|
const o = [
|
|
539
540
|
[e.value.table.columnNames.series, ...Y.map((l) => [l.text])],
|
|
540
|
-
...et.value.body.map((l,
|
|
541
|
+
...et.value.body.map((l, v) => [l[0].name, ...l.slice(1)])
|
|
541
542
|
], a = [
|
|
542
543
|
[e.value.style.chart.title.text],
|
|
543
544
|
[e.value.style.chart.title.subtitle.text]
|
|
544
|
-
].concat(o), s =
|
|
545
|
-
t ? t(s) :
|
|
545
|
+
].concat(o), s = ba(a);
|
|
546
|
+
t ? t(s) : xa({
|
|
546
547
|
csvContent: s,
|
|
547
548
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
548
549
|
});
|
|
549
550
|
});
|
|
550
551
|
}
|
|
551
|
-
function
|
|
552
|
+
function Bt() {
|
|
552
553
|
return B.value;
|
|
553
554
|
}
|
|
554
|
-
async function
|
|
555
|
+
async function Ut({ scale: t = 2 } = {}) {
|
|
555
556
|
if (!$.value) return;
|
|
556
|
-
const { width: o, height: a } = $.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64:
|
|
557
|
+
const { width: o, height: a } = $.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: v } = await Na({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
557
558
|
return {
|
|
558
559
|
imageUri: l,
|
|
559
|
-
base64:
|
|
560
|
+
base64: v,
|
|
560
561
|
title: e.value.style.chart.title.text,
|
|
561
562
|
width: o,
|
|
562
563
|
height: a,
|
|
563
564
|
aspectRatio: s
|
|
564
565
|
};
|
|
565
566
|
}
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
timeLabelsEls:
|
|
567
|
+
const Vt = c(() => ({ min: 0, max: W.value }));
|
|
568
|
+
La({
|
|
569
|
+
timeLabelsEls: ye,
|
|
569
570
|
timeLabels: Y,
|
|
570
|
-
slicer:
|
|
571
|
+
slicer: Vt,
|
|
571
572
|
configRef: e,
|
|
572
573
|
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
573
574
|
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
574
575
|
isAutoSize: !1,
|
|
575
576
|
width: Pt,
|
|
576
|
-
height:
|
|
577
|
+
height: Ot,
|
|
577
578
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
578
579
|
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
579
580
|
});
|
|
580
|
-
const j =
|
|
581
|
+
const j = c(() => {
|
|
581
582
|
const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
|
|
582
583
|
return {
|
|
583
|
-
component: t ?
|
|
584
|
+
component: t ? Me : bt,
|
|
584
585
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
585
586
|
props: t ? {
|
|
586
587
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -611,13 +612,31 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
611
612
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
612
613
|
});
|
|
613
614
|
function tt() {
|
|
614
|
-
D.value.showTable = !1,
|
|
615
|
+
D.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
|
|
615
616
|
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
const Gt = c(() => e.value.style.chart.backgroundColor), Wt = c(() => ({
|
|
618
|
+
...e.value.style.chart.legend,
|
|
619
|
+
position: "bottom"
|
|
620
|
+
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } = Ta({
|
|
621
|
+
svg: ee,
|
|
622
|
+
title: Yt,
|
|
623
|
+
legend: Wt,
|
|
624
|
+
legendItems: te,
|
|
625
|
+
backgroundColor: Gt
|
|
626
|
+
});
|
|
627
|
+
async function at({ isCb: t }) {
|
|
628
|
+
if (t) {
|
|
629
|
+
const { blob: o, url: a, text: s, dataUrl: l } = await qt();
|
|
630
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: l });
|
|
631
|
+
} else
|
|
632
|
+
jt();
|
|
633
|
+
}
|
|
634
|
+
return gt({
|
|
635
|
+
getData: Bt,
|
|
636
|
+
getImage: Ut,
|
|
637
|
+
generateImage: We,
|
|
638
|
+
generateSvg: at,
|
|
639
|
+
generatePdf: Ge,
|
|
621
640
|
generateCsv: we,
|
|
622
641
|
toggleAnnotator: Ce,
|
|
623
642
|
toggleTable: Ze,
|
|
@@ -625,7 +644,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
625
644
|
}), (t, o) => (n(), r("div", {
|
|
626
645
|
ref_key: "ridgelineChart",
|
|
627
646
|
ref: $,
|
|
628
|
-
class:
|
|
647
|
+
class: oe(`vue-data-ui-component vue-ui-ridgeline ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
629
648
|
id: `vue-ui-ridgeline_${A.value}`,
|
|
630
649
|
style: w({
|
|
631
650
|
fontFamily: e.value.style.fontFamily,
|
|
@@ -637,30 +656,30 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
637
656
|
onMouseenter: o[3] || (o[3] = () => u(He)(!0)),
|
|
638
657
|
onMouseleave: o[4] || (o[4] = () => u(He)(!1))
|
|
639
658
|
}, [
|
|
640
|
-
e.value.userOptions.buttons.annotator && u(
|
|
659
|
+
e.value.userOptions.buttons.annotator && u(ee) ? (n(), T(u(kt), {
|
|
641
660
|
key: 0,
|
|
642
661
|
color: e.value.style.chart.color,
|
|
643
662
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
644
|
-
active:
|
|
645
|
-
svgRef: u(
|
|
663
|
+
active: ae.value,
|
|
664
|
+
svgRef: u(ee),
|
|
646
665
|
onClose: Ce
|
|
647
|
-
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) :
|
|
666
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
648
667
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
649
|
-
|
|
668
|
+
Tt.value ? (n(), r("div", {
|
|
650
669
|
key: 1,
|
|
651
670
|
ref_key: "noTitle",
|
|
652
671
|
ref: Ne,
|
|
653
672
|
class: "vue-data-ui-no-title-space",
|
|
654
673
|
style: "height:36px; width: 100%;background:transparent"
|
|
655
|
-
}, null, 512)) :
|
|
674
|
+
}, null, 512)) : h("", !0),
|
|
656
675
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
657
676
|
key: 2,
|
|
658
677
|
ref_key: "chartTitle",
|
|
659
678
|
ref: ze,
|
|
660
679
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
661
680
|
}, [
|
|
662
|
-
(n(), T(
|
|
663
|
-
key: `title_${
|
|
681
|
+
(n(), T(Da, {
|
|
682
|
+
key: `title_${ve.value}`,
|
|
664
683
|
config: {
|
|
665
684
|
title: {
|
|
666
685
|
cy: "ridgeline-div-title",
|
|
@@ -672,10 +691,10 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
672
691
|
}
|
|
673
692
|
}
|
|
674
693
|
}, null, 8, ["config"]))
|
|
675
|
-
], 512)) :
|
|
676
|
-
e.value.userOptions.show && U.value && (u(Xe) || u(Z)) ? (n(), T(u(
|
|
694
|
+
], 512)) : h("", !0),
|
|
695
|
+
e.value.userOptions.show && U.value && (u(Xe) || u(Z)) ? (n(), T(u(At), {
|
|
677
696
|
ref_key: "userOptionsRef",
|
|
678
|
-
ref:
|
|
697
|
+
ref: ge,
|
|
679
698
|
key: `user_option_${Fe.value}`,
|
|
680
699
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
681
700
|
color: e.value.style.chart.color,
|
|
@@ -686,6 +705,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
686
705
|
callbacks: e.value.userOptions.callbacks,
|
|
687
706
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
688
707
|
hasImg: e.value.userOptions.buttons.img,
|
|
708
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
689
709
|
hasXls: e.value.userOptions.buttons.csv,
|
|
690
710
|
hasTable: e.value.userOptions.buttons.table,
|
|
691
711
|
hasLabel: !1,
|
|
@@ -697,84 +717,85 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
697
717
|
isTooltip: !1,
|
|
698
718
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
699
719
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
700
|
-
isAnnotation:
|
|
720
|
+
isAnnotation: ae.value,
|
|
701
721
|
tableDialog: e.value.table.useDialog,
|
|
702
722
|
style: w({ visibility: u(Xe) ? u(Z) ? "visible" : "hidden" : "visible" }),
|
|
703
723
|
onToggleFullscreen: Je,
|
|
704
|
-
onGeneratePdf: u(
|
|
724
|
+
onGeneratePdf: u(Ge),
|
|
705
725
|
onGenerateCsv: we,
|
|
706
|
-
onGenerateImage: u(
|
|
726
|
+
onGenerateImage: u(We),
|
|
727
|
+
onGenerateSvg: at,
|
|
707
728
|
onToggleTable: Ze,
|
|
708
729
|
onToggleAnnotator: Ce
|
|
709
730
|
}, _e({ _: 2 }, [
|
|
710
731
|
t.$slots.menuIcon ? {
|
|
711
732
|
name: "menuIcon",
|
|
712
|
-
fn:
|
|
713
|
-
p(t.$slots, "menuIcon",
|
|
733
|
+
fn: g(({ isOpen: a, color: s }) => [
|
|
734
|
+
p(t.$slots, "menuIcon", se(ne({ isOpen: a, color: s })), void 0, !0)
|
|
714
735
|
]),
|
|
715
736
|
key: "0"
|
|
716
737
|
} : void 0,
|
|
717
738
|
t.$slots.optionTooltip ? {
|
|
718
739
|
name: "optionTooltip",
|
|
719
|
-
fn:
|
|
740
|
+
fn: g(() => [
|
|
720
741
|
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
721
742
|
]),
|
|
722
743
|
key: "1"
|
|
723
744
|
} : void 0,
|
|
724
745
|
t.$slots.optionPdf ? {
|
|
725
746
|
name: "optionPdf",
|
|
726
|
-
fn:
|
|
747
|
+
fn: g(() => [
|
|
727
748
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
728
749
|
]),
|
|
729
750
|
key: "2"
|
|
730
751
|
} : void 0,
|
|
731
752
|
t.$slots.optionCsv ? {
|
|
732
753
|
name: "optionCsv",
|
|
733
|
-
fn:
|
|
754
|
+
fn: g(() => [
|
|
734
755
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
735
756
|
]),
|
|
736
757
|
key: "3"
|
|
737
758
|
} : void 0,
|
|
738
759
|
t.$slots.optionImg ? {
|
|
739
760
|
name: "optionImg",
|
|
740
|
-
fn:
|
|
761
|
+
fn: g(() => [
|
|
741
762
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
742
763
|
]),
|
|
743
764
|
key: "4"
|
|
744
765
|
} : void 0,
|
|
745
766
|
t.$slots.optionTable ? {
|
|
746
767
|
name: "optionTable",
|
|
747
|
-
fn:
|
|
768
|
+
fn: g(() => [
|
|
748
769
|
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
749
770
|
]),
|
|
750
771
|
key: "5"
|
|
751
772
|
} : void 0,
|
|
752
773
|
t.$slots.optionFullscreen ? {
|
|
753
774
|
name: "optionFullscreen",
|
|
754
|
-
fn:
|
|
755
|
-
p(t.$slots, "optionFullscreen",
|
|
775
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
776
|
+
p(t.$slots, "optionFullscreen", se(ne({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
756
777
|
]),
|
|
757
778
|
key: "6"
|
|
758
779
|
} : void 0,
|
|
759
780
|
t.$slots.optionAnnotator ? {
|
|
760
781
|
name: "optionAnnotator",
|
|
761
|
-
fn:
|
|
762
|
-
p(t.$slots, "optionAnnotator",
|
|
782
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
783
|
+
p(t.$slots, "optionAnnotator", se(ne({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
763
784
|
]),
|
|
764
785
|
key: "7"
|
|
765
786
|
} : void 0
|
|
766
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) :
|
|
787
|
+
]), 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),
|
|
767
788
|
(n(), r("svg", {
|
|
768
789
|
ref_key: "svgRef",
|
|
769
|
-
ref:
|
|
770
|
-
xmlns: u(
|
|
771
|
-
class:
|
|
772
|
-
viewBox: `0 0 ${
|
|
790
|
+
ref: ee,
|
|
791
|
+
xmlns: u(ya),
|
|
792
|
+
class: oe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
793
|
+
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
773
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%;` : ""}`)
|
|
774
795
|
}, [
|
|
775
|
-
Te(u(
|
|
796
|
+
Te(u(Ct)),
|
|
776
797
|
y("defs", null, [
|
|
777
|
-
(n(!0), r(m, null, k(
|
|
798
|
+
(n(!0), r(m, null, k(te.value, (a, s) => (n(), r("linearGradient", {
|
|
778
799
|
id: `gradient-${a.id}-${A.value}`,
|
|
779
800
|
x1: "50%",
|
|
780
801
|
y1: "0%",
|
|
@@ -785,25 +806,25 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
785
806
|
offset: "0%",
|
|
786
807
|
"stop-color": a.color,
|
|
787
808
|
"stop-opacity": "1"
|
|
788
|
-
}, null, 8,
|
|
809
|
+
}, null, 8, Xa),
|
|
789
810
|
y("stop", {
|
|
790
811
|
offset: "30%",
|
|
791
812
|
"stop-color": a.color,
|
|
792
813
|
"stop-opacity": "0.7"
|
|
793
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, Ba),
|
|
794
815
|
y("stop", {
|
|
795
816
|
offset: "70%",
|
|
796
817
|
"stop-color": a.color,
|
|
797
818
|
"stop-opacity": "0.3"
|
|
798
|
-
}, null, 8,
|
|
819
|
+
}, null, 8, Ua),
|
|
799
820
|
y("stop", {
|
|
800
821
|
offset: "100%",
|
|
801
822
|
"stop-color": a.color,
|
|
802
823
|
"stop-opacity": "0.1"
|
|
803
|
-
}, null, 8,
|
|
804
|
-
], 8,
|
|
824
|
+
}, null, 8, Va)
|
|
825
|
+
], 8, Ha))), 256)),
|
|
805
826
|
(n(!0), r(m, null, k(B.value, (a, s) => (n(), r(m, null, [
|
|
806
|
-
(n(!0), r(m, null, k(a.datapoints, (l,
|
|
827
|
+
(n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("linearGradient", {
|
|
807
828
|
key: `grad${l.id}`,
|
|
808
829
|
id: `gradient-single-${A.value}-${l.uid}`,
|
|
809
830
|
x1: "50%",
|
|
@@ -815,36 +836,36 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
815
836
|
offset: "0%",
|
|
816
837
|
"stop-color": l.color,
|
|
817
838
|
"stop-opacity": "1"
|
|
818
|
-
}, null, 8,
|
|
839
|
+
}, null, 8, Wa),
|
|
819
840
|
y("stop", {
|
|
820
841
|
offset: "30%",
|
|
821
842
|
"stop-color": l.color,
|
|
822
843
|
"stop-opacity": "0.7"
|
|
823
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, Ya),
|
|
824
845
|
y("stop", {
|
|
825
846
|
offset: "70%",
|
|
826
847
|
"stop-color": l.color,
|
|
827
848
|
"stop-opacity": "0.3"
|
|
828
|
-
}, null, 8,
|
|
849
|
+
}, null, 8, ja),
|
|
829
850
|
y("stop", {
|
|
830
851
|
offset: "100%",
|
|
831
852
|
"stop-color": l.color,
|
|
832
853
|
"stop-opacity": "0.1"
|
|
833
|
-
}, null, 8,
|
|
834
|
-
], 8,
|
|
854
|
+
}, null, 8, qa)
|
|
855
|
+
], 8, Ga))), 128))
|
|
835
856
|
], 64))), 256))
|
|
836
857
|
]),
|
|
837
858
|
(n(!0), r(m, null, k(B.value, (a, s) => (n(), r("g", {
|
|
838
859
|
key: `ds-${s}`
|
|
839
860
|
}, [
|
|
840
|
-
(n(!0), r(m, null, k(a.datapoints, (l,
|
|
861
|
+
(n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("g", {
|
|
841
862
|
key: l.id
|
|
842
863
|
}, [
|
|
843
|
-
t.$slots.pattern ? (n(), r("g",
|
|
864
|
+
t.$slots.pattern ? (n(), r("g", Ja, [
|
|
844
865
|
y("defs", null, [
|
|
845
|
-
p(t.$slots, "pattern",
|
|
866
|
+
p(t.$slots, "pattern", Se({ ref_for: !0 }, { datapointIndex: s, seriesIndex: v, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
|
|
846
867
|
])
|
|
847
|
-
])) :
|
|
868
|
+
])) : h("", !0),
|
|
848
869
|
y("path", {
|
|
849
870
|
fill: t.$slots.pattern ? `url(#pattern_${A.value}_${l.uid})` : e.value.style.chart.backgroundColor,
|
|
850
871
|
stroke: "none",
|
|
@@ -853,7 +874,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
853
874
|
style: w({
|
|
854
875
|
opacity: e.value.style.chart.areas.opacity
|
|
855
876
|
})
|
|
856
|
-
}, null, 12,
|
|
877
|
+
}, null, 12, Ka),
|
|
857
878
|
y("path", {
|
|
858
879
|
fill: "none",
|
|
859
880
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -861,24 +882,24 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
861
882
|
d: e.value.style.chart.areas.smooth ? l.smoothPathRidge : l.straightPathRidge,
|
|
862
883
|
"stroke-linecap": "round",
|
|
863
884
|
"stroke-linejoin": "round",
|
|
864
|
-
class:
|
|
885
|
+
class: oe({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(G) }),
|
|
865
886
|
style: w({
|
|
866
887
|
strokeDasharray: l.pathLength,
|
|
867
888
|
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
868
889
|
})
|
|
869
|
-
}, null, 14,
|
|
890
|
+
}, null, 14, Qa),
|
|
870
891
|
y("path", {
|
|
871
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,
|
|
872
893
|
stroke: "none",
|
|
873
894
|
d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
|
|
874
895
|
"stroke-linecap": "round",
|
|
875
896
|
"stroke-linejoin": "round",
|
|
876
|
-
class:
|
|
897
|
+
class: oe({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(G) }),
|
|
877
898
|
style: w({
|
|
878
899
|
strokeDasharray: l.pathLength,
|
|
879
900
|
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
880
901
|
})
|
|
881
|
-
}, null, 14,
|
|
902
|
+
}, null, 14, Za),
|
|
882
903
|
e.value.style.chart.zeroLine.show ? (n(), r("path", {
|
|
883
904
|
key: 1,
|
|
884
905
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? l.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -886,7 +907,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
886
907
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
887
908
|
d: l.zeroPath,
|
|
888
909
|
"stroke-linecap": "round"
|
|
889
|
-
}, null, 8,
|
|
910
|
+
}, null, 8, el)) : h("", !0),
|
|
890
911
|
e.value.style.chart.areas.maxPoint.show && l.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(l.plots, (_) => (n(), r(m, null, [
|
|
891
912
|
_.isMaxPoint ? (n(), r("line", {
|
|
892
913
|
key: 0,
|
|
@@ -894,12 +915,12 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
894
915
|
y1: _.y,
|
|
895
916
|
x2: _.x,
|
|
896
917
|
y2: _.zero,
|
|
897
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
918
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ga)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
898
919
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
899
920
|
"stroke-linecap": "round",
|
|
900
921
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
901
|
-
}, null, 8,
|
|
902
|
-
], 64))), 256)) :
|
|
922
|
+
}, null, 8, tl)) : h("", !0)
|
|
923
|
+
], 64))), 256)) : h("", !0),
|
|
903
924
|
l.plots.length === 1 ? (n(), r("circle", {
|
|
904
925
|
key: 3,
|
|
905
926
|
cx: l.plots[0].x,
|
|
@@ -911,7 +932,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
911
932
|
style: {
|
|
912
933
|
pointerEvents: "none"
|
|
913
934
|
}
|
|
914
|
-
}, null, 8,
|
|
935
|
+
}, null, 8, al)) : h("", !0)
|
|
915
936
|
]))), 128)),
|
|
916
937
|
y("text", {
|
|
917
938
|
x: a.label.x,
|
|
@@ -924,18 +945,18 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
924
945
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
925
946
|
}),
|
|
926
947
|
"text-decoration": e.value.style.chart.dialog.show && (Ae.value === s || H.value && a.uid === H.value.uid) ? "underline" : "",
|
|
927
|
-
onMouseenter: (l) =>
|
|
928
|
-
onMouseleave:
|
|
929
|
-
onClick: (l) =>
|
|
930
|
-
}, R(a.name), 45,
|
|
948
|
+
onMouseenter: (l) => Ht(s),
|
|
949
|
+
onMouseleave: Xt,
|
|
950
|
+
onClick: (l) => Et(a)
|
|
951
|
+
}, R(a.name), 45, ll)
|
|
931
952
|
]))), 128)),
|
|
932
953
|
e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
|
|
933
954
|
key: 0,
|
|
934
955
|
ref_key: "timeLabelsEls",
|
|
935
|
-
ref:
|
|
956
|
+
ref: ye
|
|
936
957
|
}, [
|
|
937
|
-
(n(!0), r(m, null, k(X.value, (a, s) => p(t.$slots, "time-label",
|
|
938
|
-
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 === X.value.length - 1) || a &&
|
|
958
|
+
(n(!0), r(m, null, k(X.value, (a, s) => p(t.$slots, "time-label", Se({ 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 === X.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(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
939
960
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
940
961
|
content: a.label,
|
|
941
962
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -944,7 +965,7 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
944
965
|
x: a.selectorX,
|
|
945
966
|
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
946
967
|
}), () => [
|
|
947
|
-
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 === X.value.length - 1) || a &&
|
|
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 === X.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(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", ol, [
|
|
948
969
|
String(a.label).includes(`
|
|
949
970
|
`) ? (n(), r("text", {
|
|
950
971
|
key: 1,
|
|
@@ -955,16 +976,16 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
955
976
|
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
956
977
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
957
978
|
style: w({
|
|
958
|
-
opacity:
|
|
979
|
+
opacity: d.value ? d.value.index === s ? 1 : 0.2 : 1
|
|
959
980
|
}),
|
|
960
|
-
innerHTML: u(
|
|
981
|
+
innerHTML: u(fa)({
|
|
961
982
|
content: String(a.label),
|
|
962
983
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
963
984
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
964
985
|
x: 0,
|
|
965
986
|
y: 0
|
|
966
987
|
})
|
|
967
|
-
}, null, 12,
|
|
988
|
+
}, null, 12, nl)) : (n(), r("text", {
|
|
968
989
|
key: 0,
|
|
969
990
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
970
991
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -973,12 +994,12 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
973
994
|
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
974
995
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
975
996
|
style: w({
|
|
976
|
-
opacity:
|
|
997
|
+
opacity: d.value ? d.value.index === s ? 1 : 0.2 : 1
|
|
977
998
|
})
|
|
978
|
-
}, R(a.label), 13,
|
|
979
|
-
])) :
|
|
999
|
+
}, R(a.label), 13, sl))
|
|
1000
|
+
])) : h("", !0)
|
|
980
1001
|
], !0)), 256))
|
|
981
|
-
], 512)) :
|
|
1002
|
+
], 512)) : h("", !0),
|
|
982
1003
|
y("g", null, [
|
|
983
1004
|
(n(!0), r(m, null, k(X.value, (a, s) => (n(), r("rect", {
|
|
984
1005
|
x: a.x,
|
|
@@ -986,26 +1007,26 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
986
1007
|
width: a.width < 0 ? 0.1 : a.width,
|
|
987
1008
|
height: a.height < 0 ? 0.1 : a.height,
|
|
988
1009
|
fill: "transparent",
|
|
989
|
-
onMouseenter: (l) =>
|
|
990
|
-
onMouseleave: (l) =>
|
|
991
|
-
onClick: () =>
|
|
992
|
-
}, null, 40,
|
|
993
|
-
e.value.style.chart.selector.show &&
|
|
1010
|
+
onMouseenter: (l) => Mt(a),
|
|
1011
|
+
onMouseleave: (l) => zt(a),
|
|
1012
|
+
onClick: () => Dt(a)
|
|
1013
|
+
}, null, 40, rl))), 256)),
|
|
1014
|
+
e.value.style.chart.selector.show && d.value ? (n(), r("line", {
|
|
994
1015
|
key: 0,
|
|
995
|
-
x1:
|
|
996
|
-
x2:
|
|
997
|
-
y1:
|
|
998
|
-
y2:
|
|
1016
|
+
x1: d.value.selectorX,
|
|
1017
|
+
x2: d.value.selectorX,
|
|
1018
|
+
y1: d.value.y,
|
|
1019
|
+
y2: d.value.y + d.value.height - C.value / 2,
|
|
999
1020
|
stroke: e.value.style.chart.selector.stroke,
|
|
1000
1021
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
1001
1022
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
1002
1023
|
"stroke-linecap": "round",
|
|
1003
1024
|
style: { pointerEvents: "none" }
|
|
1004
|
-
}, null, 8,
|
|
1005
|
-
|
|
1025
|
+
}, null, 8, ul)) : h("", !0),
|
|
1026
|
+
d.value ? (n(!0), r(m, { key: 1 }, k(B.value, (a) => (n(), r(m, null, [
|
|
1006
1027
|
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1007
|
-
(n(!0), r(m, null, k(s.plots, (l,
|
|
1008
|
-
|
|
1028
|
+
(n(!0), r(m, null, k(s.plots, (l, v) => (n(), r(m, null, [
|
|
1029
|
+
d.value && d.value.index === v ? (n(), r("circle", {
|
|
1009
1030
|
key: 0,
|
|
1010
1031
|
cx: l.x,
|
|
1011
1032
|
cy: l.y,
|
|
@@ -1016,15 +1037,15 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1016
1037
|
style: {
|
|
1017
1038
|
pointerEvents: "none"
|
|
1018
1039
|
}
|
|
1019
|
-
}, null, 8,
|
|
1020
|
-
|
|
1040
|
+
}, null, 8, il)) : h("", !0),
|
|
1041
|
+
d.value && d.value.index === v ? (n(), r("text", {
|
|
1021
1042
|
key: 1,
|
|
1022
1043
|
x: qe(
|
|
1023
1044
|
l.x,
|
|
1024
|
-
u(
|
|
1045
|
+
u(ue)(
|
|
1025
1046
|
e.value.style.chart.selector.labels.formatter,
|
|
1026
1047
|
l.value,
|
|
1027
|
-
u(
|
|
1048
|
+
u(ie)({
|
|
1028
1049
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1029
1050
|
v: l.value,
|
|
1030
1051
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1036,10 +1057,10 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1036
1057
|
y: l.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1037
1058
|
"text-anchor": qe(
|
|
1038
1059
|
l.x,
|
|
1039
|
-
u(
|
|
1060
|
+
u(ue)(
|
|
1040
1061
|
e.value.style.chart.selector.labels.formatter,
|
|
1041
1062
|
l.value,
|
|
1042
|
-
u(
|
|
1063
|
+
u(ie)({
|
|
1043
1064
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1044
1065
|
v: l.value,
|
|
1045
1066
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1053,48 +1074,48 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1053
1074
|
style: {
|
|
1054
1075
|
pointerEvents: "none"
|
|
1055
1076
|
}
|
|
1056
|
-
}, R(u(
|
|
1077
|
+
}, R(u(ue)(
|
|
1057
1078
|
e.value.style.chart.selector.labels.formatter,
|
|
1058
1079
|
l.value,
|
|
1059
|
-
u(
|
|
1080
|
+
u(ie)({
|
|
1060
1081
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1061
1082
|
v: l.value,
|
|
1062
1083
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1063
1084
|
r: e.value.style.chart.selector.labels.rounding
|
|
1064
1085
|
})
|
|
1065
|
-
)), 9,
|
|
1086
|
+
)), 9, cl)) : h("", !0)
|
|
1066
1087
|
], 64))), 256))
|
|
1067
1088
|
], 64))), 256))
|
|
1068
|
-
], 64))), 256)) :
|
|
1089
|
+
], 64))), 256)) : h("", !0)
|
|
1069
1090
|
]),
|
|
1070
|
-
p(t.$slots, "svg", { svg:
|
|
1071
|
-
], 14,
|
|
1072
|
-
t.$slots.watermark ? (n(), r("div",
|
|
1073
|
-
p(t.$slots, "watermark",
|
|
1074
|
-
])) :
|
|
1091
|
+
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1092
|
+
], 14, Ea)),
|
|
1093
|
+
t.$slots.watermark ? (n(), r("div", vl, [
|
|
1094
|
+
p(t.$slots, "watermark", se(ne({ isPrinting: u(Ue) || u(Ve) })), void 0, !0)
|
|
1095
|
+
])) : h("", !0),
|
|
1075
1096
|
y("div", {
|
|
1076
1097
|
ref_key: "chartLegend",
|
|
1077
1098
|
ref: De
|
|
1078
1099
|
}, [
|
|
1079
|
-
e.value.style.chart.legend.show ? (n(), T(
|
|
1080
|
-
key: `legend_${
|
|
1081
|
-
legendSet:
|
|
1082
|
-
config:
|
|
1100
|
+
e.value.style.chart.legend.show ? (n(), T(za, {
|
|
1101
|
+
key: `legend_${he.value}`,
|
|
1102
|
+
legendSet: te.value,
|
|
1103
|
+
config: Rt.value,
|
|
1083
1104
|
onClickMarker: o[0] || (o[0] = ({ legend: a }) => Ye(a.id))
|
|
1084
1105
|
}, _e({
|
|
1085
|
-
item:
|
|
1086
|
-
u(
|
|
1106
|
+
item: g(({ legend: a }) => [
|
|
1107
|
+
u(G) ? h("", !0) : (n(), r("div", {
|
|
1087
1108
|
key: 0,
|
|
1088
|
-
style: w(`opacity:${
|
|
1109
|
+
style: w(`opacity:${O.value.includes(a.id) ? 0.5 : 1}`),
|
|
1089
1110
|
onClick: (s) => a.segregate()
|
|
1090
|
-
}, R(a.name), 13,
|
|
1111
|
+
}, R(a.name), 13, hl))
|
|
1091
1112
|
]),
|
|
1092
1113
|
_: 2
|
|
1093
1114
|
}, [
|
|
1094
1115
|
t.$slots.pattern ? {
|
|
1095
1116
|
name: "legend-pattern",
|
|
1096
|
-
fn:
|
|
1097
|
-
Te(
|
|
1117
|
+
fn: g(({ legend: a, index: s }) => [
|
|
1118
|
+
Te(Ia, {
|
|
1098
1119
|
shape: a.shape,
|
|
1099
1120
|
radius: 30,
|
|
1100
1121
|
stroke: "none",
|
|
@@ -1104,8 +1125,8 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1104
1125
|
]),
|
|
1105
1126
|
key: "0"
|
|
1106
1127
|
} : void 0
|
|
1107
|
-
]), 1032, ["legendSet", "config"])) :
|
|
1108
|
-
p(t.$slots, "legend", { legend:
|
|
1128
|
+
]), 1032, ["legendSet", "config"])) : h("", !0),
|
|
1129
|
+
p(t.$slots, "legend", { legend: te.value }, void 0, !0)
|
|
1109
1130
|
], 512),
|
|
1110
1131
|
t.$slots.source ? (n(), r("div", {
|
|
1111
1132
|
key: 5,
|
|
@@ -1114,31 +1135,31 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1114
1135
|
dir: "auto"
|
|
1115
1136
|
}, [
|
|
1116
1137
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1117
|
-
], 512)) :
|
|
1118
|
-
U.value && e.value.userOptions.buttons.table ? (n(), T(
|
|
1138
|
+
], 512)) : h("", !0),
|
|
1139
|
+
U.value && e.value.userOptions.buttons.table ? (n(), T(ra(j.value.component), Se({ key: 6 }, j.value.props, {
|
|
1119
1140
|
ref_key: "tableUnit",
|
|
1120
1141
|
ref: V,
|
|
1121
1142
|
onClose: tt
|
|
1122
1143
|
}), _e({
|
|
1123
|
-
content:
|
|
1124
|
-
(n(), T(u(
|
|
1125
|
-
key: `table_${
|
|
1126
|
-
colNames:
|
|
1127
|
-
head:
|
|
1128
|
-
body:
|
|
1129
|
-
config:
|
|
1144
|
+
content: g(() => [
|
|
1145
|
+
(n(), T(u(xt), {
|
|
1146
|
+
key: `table_${$t.value}`,
|
|
1147
|
+
colNames: le.value.colNames,
|
|
1148
|
+
head: le.value.head,
|
|
1149
|
+
body: le.value.body,
|
|
1150
|
+
config: le.value.config,
|
|
1130
1151
|
title: e.value.table.useDialog ? "" : j.value.title,
|
|
1131
1152
|
withCloseButton: !e.value.table.useDialog,
|
|
1132
1153
|
onClose: tt
|
|
1133
1154
|
}, {
|
|
1134
|
-
th:
|
|
1135
|
-
y("div", { innerHTML: a }, null, 8,
|
|
1155
|
+
th: g(({ th: a }) => [
|
|
1156
|
+
y("div", { innerHTML: a }, null, 8, dl)
|
|
1136
1157
|
]),
|
|
1137
|
-
td:
|
|
1138
|
-
|
|
1158
|
+
td: g(({ td: a }) => [
|
|
1159
|
+
Pe(R(a.name ? a.name : u(ue)(
|
|
1139
1160
|
e.value.style.chart.selector.labels.formatter,
|
|
1140
1161
|
a,
|
|
1141
|
-
u(
|
|
1162
|
+
u(ie)({
|
|
1142
1163
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1143
1164
|
v: a,
|
|
1144
1165
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1153,20 +1174,20 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1153
1174
|
}, [
|
|
1154
1175
|
e.value.table.useDialog ? {
|
|
1155
1176
|
name: "title",
|
|
1156
|
-
fn:
|
|
1157
|
-
|
|
1177
|
+
fn: g(() => [
|
|
1178
|
+
Pe(R(j.value.title), 1)
|
|
1158
1179
|
]),
|
|
1159
1180
|
key: "0"
|
|
1160
1181
|
} : void 0,
|
|
1161
1182
|
e.value.table.useDialog ? {
|
|
1162
1183
|
name: "actions",
|
|
1163
|
-
fn:
|
|
1184
|
+
fn: g(() => [
|
|
1164
1185
|
y("button", {
|
|
1165
1186
|
tabindex: "0",
|
|
1166
1187
|
class: "vue-ui-user-options-button",
|
|
1167
1188
|
onClick: o[1] || (o[1] = (a) => we(e.value.userOptions.callbacks.csv))
|
|
1168
1189
|
}, [
|
|
1169
|
-
Te(u(
|
|
1190
|
+
Te(u(pt), {
|
|
1170
1191
|
name: "excel",
|
|
1171
1192
|
stroke: j.value.props.color
|
|
1172
1193
|
}, null, 8, ["stroke"])
|
|
@@ -1174,11 +1195,11 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1174
1195
|
]),
|
|
1175
1196
|
key: "1"
|
|
1176
1197
|
} : void 0
|
|
1177
|
-
]), 1040)) :
|
|
1178
|
-
e.value.style.chart.dialog.show ? (n(), T(u(
|
|
1198
|
+
]), 1040)) : h("", !0),
|
|
1199
|
+
e.value.style.chart.dialog.show ? (n(), T(u(Me), {
|
|
1179
1200
|
key: 7,
|
|
1180
1201
|
ref_key: "dialog",
|
|
1181
|
-
ref:
|
|
1202
|
+
ref: de,
|
|
1182
1203
|
onClose: o[2] || (o[2] = (a) => H.value = null),
|
|
1183
1204
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1184
1205
|
color: e.value.style.chart.dialog.color,
|
|
@@ -1188,22 +1209,22 @@ const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"],
|
|
|
1188
1209
|
fullscreenParent: $.value,
|
|
1189
1210
|
withPadding: ""
|
|
1190
1211
|
}, {
|
|
1191
|
-
title:
|
|
1192
|
-
|
|
1212
|
+
title: g(() => [
|
|
1213
|
+
Pe(R(H.value.name), 1)
|
|
1193
1214
|
]),
|
|
1194
|
-
content:
|
|
1195
|
-
H.value ? (n(), T(u(
|
|
1215
|
+
content: g(() => [
|
|
1216
|
+
H.value ? (n(), T(u(mt), {
|
|
1196
1217
|
key: 0,
|
|
1197
1218
|
config: Ke.value,
|
|
1198
1219
|
dataset: Qe.value
|
|
1199
|
-
}, null, 8, ["config", "dataset"])) :
|
|
1220
|
+
}, null, 8, ["config", "dataset"])) : h("", !0)
|
|
1200
1221
|
]),
|
|
1201
1222
|
_: 1
|
|
1202
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) :
|
|
1203
|
-
u(
|
|
1204
|
-
], 46,
|
|
1223
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1224
|
+
u(G) ? (n(), T($a, { key: 8 })) : h("", !0)
|
|
1225
|
+
], 46, Ra));
|
|
1205
1226
|
}
|
|
1206
|
-
},
|
|
1227
|
+
}, Ml = /* @__PURE__ */ Fa(yl, [["__scopeId", "data-v-0a6ef1d2"]]);
|
|
1207
1228
|
export {
|
|
1208
|
-
|
|
1229
|
+
Ml as default
|
|
1209
1230
|
};
|