vue-data-ui 3.22.2 → 3.22.4
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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.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-bump.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-dag.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-geo.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-stackline.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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as t, Gt as n, H as r, Ot as i, Q as a, R as ee, S as o, Ut as s, W as te, X as ne, Y as re, b as ie, ft as ae, i as oe, j as se, jt as c, q as l, r as ce, t as le, ut as ue, w as de, zt as fe } from "./lib-CuwHGt1j.js";
|
|
3
3
|
import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
-
import { t as me } from "./useConfig-
|
|
5
|
-
import { t as he } from "./usePrinter-
|
|
4
|
+
import { t as me } from "./useConfig-pVLia3dt.js";
|
|
5
|
+
import { t as he } from "./usePrinter-C0wAS8yc.js";
|
|
6
6
|
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as ye } from "./useNestedProp-
|
|
8
|
+
import { t as ye } from "./useNestedProp-BjkuFaz1.js";
|
|
9
9
|
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as Se } from "./img-
|
|
12
|
-
import { n as Ce } from "./Title-
|
|
13
|
-
import { t as we } from "./Shape-
|
|
11
|
+
import { t as Se } from "./img-B29J8tV5.js";
|
|
12
|
+
import { n as Ce } from "./Title-DDEEO-Nr.js";
|
|
13
|
+
import { t as we } from "./Shape-BnF9aMPX.js";
|
|
14
14
|
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { c as Ee } from "./canvas-lib-BOP_HS11.js";
|
|
16
16
|
import { t as De } from "./useResponsive-BfnK0KxU.js";
|
|
17
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Oe } from "./BaseLegendToggle-C4Usj0LI.js";
|
|
18
18
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as Me } from "./Legend-
|
|
21
|
+
import { t as Me } from "./Legend-DXOzbXb-.js";
|
|
22
22
|
import { t as Ne } from "./vue_ui_ridgeline-VM8_mx4J.js";
|
|
23
23
|
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as We, watchEffect as Ge, withCtx as E } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-ridgeline.vue
|
|
@@ -137,15 +137,15 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
137
137
|
"copyAlt"
|
|
138
138
|
],
|
|
139
139
|
setup(e, { expose: Te, emit: Ke }) {
|
|
140
|
-
let Et = g(() => import("./vue-ui-xy-
|
|
140
|
+
let Et = g(() => import("./vue-ui-xy-Dg0wxSeC.js").then((e) => e.n)), Dt = g(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Ot = g(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), kt = g(() => import("./DataTable-PidUPOit.js")), At = g(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), jt = g(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Mt = g(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Nt = g(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_ridgeline: Pt } = me(), { isThemeValid: Ft, warnInvalidTheme: It } = be(), D = e, Lt = d({
|
|
141
141
|
get() {
|
|
142
|
-
return Array.isArray(
|
|
142
|
+
return Array.isArray(R.value) && R.value.length > 0;
|
|
143
143
|
},
|
|
144
144
|
set(e) {
|
|
145
145
|
return e;
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
148
|
-
function
|
|
147
|
+
}), Rt = Ke, O = x(null), zt = x(null), Bt = x(null), k = He(null), A = He(null), Vt = x(null), Ht = x(null), Ut = x(0), Wt = x(0), Gt = x(0), j = x(te()), Kt = x(0), qt = x(0), Jt = x(512), M = x(null), N = x(null), Yt = x(null), Xt = x(0), Zt = x(null), Qt = x(null), $t = x(null), en = x(!1), tn = x(!1), P = x(null), nn = x(!1);
|
|
148
|
+
function rn() {
|
|
149
149
|
let e = ye({
|
|
150
150
|
userConfig: D.config,
|
|
151
151
|
defaultConfig: Pt
|
|
@@ -161,10 +161,10 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
161
161
|
});
|
|
162
162
|
return {
|
|
163
163
|
...r,
|
|
164
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
164
|
+
customPalette: r.customPalette.length ? r.customPalette : s[t] || c
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
let
|
|
167
|
+
let F = x(rn()), I = d(() => F.value.userOptions.useCursorPointer), an = d(() => n({
|
|
168
168
|
defaultConfig: {
|
|
169
169
|
userOptions: { show: !1 },
|
|
170
170
|
table: { show: !1 },
|
|
@@ -185,11 +185,11 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
185
185
|
zeroLine: { show: !1 }
|
|
186
186
|
} }
|
|
187
187
|
},
|
|
188
|
-
userConfig:
|
|
189
|
-
})), { loading:
|
|
188
|
+
userConfig: F.value.skeletonConfig ?? {}
|
|
189
|
+
})), { loading: L, FINAL_DATASET: R, manualLoading: on } = ge({
|
|
190
190
|
...Ue(D),
|
|
191
|
-
FINAL_CONFIG:
|
|
192
|
-
prepareConfig:
|
|
191
|
+
FINAL_CONFIG: F,
|
|
192
|
+
prepareConfig: rn,
|
|
193
193
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
194
194
|
{
|
|
195
195
|
name: "_",
|
|
@@ -420,226 +420,226 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
420
420
|
}]
|
|
421
421
|
}
|
|
422
422
|
],
|
|
423
|
-
skeletonConfig:
|
|
424
|
-
defaultConfig:
|
|
425
|
-
userConfig:
|
|
423
|
+
skeletonConfig: n({
|
|
424
|
+
defaultConfig: F.value,
|
|
425
|
+
userConfig: an.value
|
|
426
426
|
})
|
|
427
|
-
}),
|
|
428
|
-
function
|
|
429
|
-
let e =
|
|
427
|
+
}), z = x(Math.min(F.value.style.chart.areas.height, F.value.style.chart.areas.rowHeight)), { userOptionsVisible: sn, setUserOptionsVisibility: cn, keepUserOptionState: ln } = Ae({ config: F.value }), { svgRef: B } = je({ config: F.value.style.chart.title }), un = d(() => !!F.value.debug);
|
|
428
|
+
function dn() {
|
|
429
|
+
let e = R.value || [];
|
|
430
430
|
if (!Array.isArray(e) || e.length === 0) {
|
|
431
|
-
|
|
431
|
+
a({
|
|
432
432
|
componentName: "VueUiRidgeline",
|
|
433
433
|
type: "dataset",
|
|
434
|
-
debug:
|
|
435
|
-
}),
|
|
434
|
+
debug: un.value
|
|
435
|
+
}), on.value = !0;
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
438
|
if (e.forEach((e, t) => {
|
|
439
|
-
|
|
439
|
+
ue({
|
|
440
440
|
datasetObject: e,
|
|
441
441
|
requiredAttributes: ["name", "datapoints"]
|
|
442
442
|
}).forEach((e) => {
|
|
443
|
-
|
|
443
|
+
Lt.value = !1, a({
|
|
444
444
|
componentName: "VueUiRidgeline",
|
|
445
445
|
type: "datasetSerieAttribute",
|
|
446
446
|
property: e,
|
|
447
447
|
index: t,
|
|
448
|
-
debug:
|
|
448
|
+
debug: un.value
|
|
449
449
|
});
|
|
450
450
|
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
451
|
-
|
|
451
|
+
ue({
|
|
452
452
|
datasetObject: e,
|
|
453
453
|
requiredAttributes: ["name", "values"]
|
|
454
454
|
}).forEach((e) => {
|
|
455
|
-
|
|
455
|
+
Lt.value = !1, a({
|
|
456
456
|
componentName: "VueUiRidgeline",
|
|
457
457
|
type: "datasetSerieAttribute",
|
|
458
458
|
property: `datapoint.${e}`,
|
|
459
459
|
index: `${t}-${n}`,
|
|
460
|
-
debug:
|
|
460
|
+
debug: un.value
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
|
-
}),
|
|
464
|
+
}), qt.value = e.length, z.value = Math.min(F.value.style.chart.areas.height, F.value.style.chart.areas.rowHeight), i(D.dataset) || (on.value = F.value.loading), F.value.responsive) {
|
|
465
465
|
let t = Ee(() => {
|
|
466
466
|
let { width: t, height: n } = De({
|
|
467
|
-
chart:
|
|
468
|
-
title:
|
|
469
|
-
legend:
|
|
470
|
-
source:
|
|
471
|
-
noTitle:
|
|
472
|
-
padding:
|
|
467
|
+
chart: O.value,
|
|
468
|
+
title: F.value.style.chart.title.text ? zt.value : null,
|
|
469
|
+
legend: F.value.style.chart.legend.show ? Bt.value : null,
|
|
470
|
+
source: Vt.value,
|
|
471
|
+
noTitle: Ht.value,
|
|
472
|
+
padding: F.value.style.chart.padding
|
|
473
473
|
});
|
|
474
474
|
requestAnimationFrame(() => {
|
|
475
|
-
|
|
475
|
+
Jt.value = t, z.value = e.length ? n / e.length : 0, Xt.value = n - 12;
|
|
476
476
|
});
|
|
477
477
|
});
|
|
478
|
-
|
|
478
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = O.value?.parentNode || null, A.value && k.value.observe(A.value);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
Be(() => {
|
|
482
|
-
|
|
482
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
|
|
483
483
|
});
|
|
484
|
-
let { isPrinting:
|
|
485
|
-
elementId: `vue-ui-ridgeline_${
|
|
486
|
-
fileName:
|
|
487
|
-
options:
|
|
488
|
-
}),
|
|
489
|
-
We(() =>
|
|
490
|
-
Array.isArray(e) && e.length && (
|
|
484
|
+
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = he({
|
|
485
|
+
elementId: `vue-ui-ridgeline_${j.value}`,
|
|
486
|
+
fileName: F.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
487
|
+
options: F.value.userOptions.print
|
|
488
|
+
}), gn = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), _n = d(() => o(F.value.customPalette)), V = x({ showTable: F.value.table.show });
|
|
489
|
+
We(() => R.value, async (e) => {
|
|
490
|
+
Array.isArray(e) && e.length && (sn.value = !F.value.userOptions.showOnChartHover, await Re(), dn(), Ut.value += 1, Gt.value += 1, V.value.showTable = F.value.table.show);
|
|
491
491
|
}, {
|
|
492
492
|
deep: !0,
|
|
493
493
|
immediate: !0
|
|
494
494
|
}), We(() => D.dataset, (e) => {
|
|
495
|
-
Array.isArray(e) && e.length > 0 && (
|
|
496
|
-
}, { deep: !0 }), We(() =>
|
|
497
|
-
e || (await Re(),
|
|
495
|
+
Array.isArray(e) && e.length > 0 && (on.value = !1);
|
|
496
|
+
}, { deep: !0 }), We(() => L.value, async (e) => {
|
|
497
|
+
e || (await Re(), dn());
|
|
498
498
|
}, { immediate: !0 }), We(() => D.config, () => {
|
|
499
|
-
|
|
499
|
+
F.value = rn(R.value || null), sn.value = !F.value.userOptions.showOnChartHover, z.value = Math.min(F.value.style.chart.areas.height, F.value.style.chart.areas.rowHeight), V.value.showTable = F.value.table.show, Ut.value += 1, Gt.value += 1;
|
|
500
500
|
}, { deep: !0 });
|
|
501
|
-
let
|
|
502
|
-
function
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
}),
|
|
506
|
-
}
|
|
507
|
-
function yn(e) {
|
|
508
|
-
Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), Lt("selectLegend", J.value);
|
|
501
|
+
let vn = d(() => F.value.style.chart.areas.height / F.value.style.chart.areas.rowHeight);
|
|
502
|
+
function yn() {
|
|
503
|
+
J.value.length ? J.value = [] : Y.value.forEach((e) => {
|
|
504
|
+
J.value.push(e.id);
|
|
505
|
+
}), Rt("selectLegend", q.value);
|
|
509
506
|
}
|
|
510
507
|
function bn(e) {
|
|
511
|
-
|
|
508
|
+
J.value.includes(e) ? J.value = J.value.filter((t) => t !== e) : J.value.push(e), Rt("selectLegend", q.value);
|
|
512
509
|
}
|
|
513
510
|
function xn(e) {
|
|
514
|
-
|
|
515
|
-
t !== null && Y.value.includes(t.id) && yn(t.id);
|
|
511
|
+
return Y.value.length ? Y.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null);
|
|
516
512
|
}
|
|
517
513
|
function Sn(e) {
|
|
518
|
-
let t =
|
|
519
|
-
t !== null &&
|
|
514
|
+
let t = xn(e);
|
|
515
|
+
t !== null && J.value.includes(t.id) && bn(t.id);
|
|
516
|
+
}
|
|
517
|
+
function Cn(e) {
|
|
518
|
+
let t = xn(e);
|
|
519
|
+
t !== null && (J.value.includes(t.id) || bn(t.id));
|
|
520
520
|
}
|
|
521
|
-
let
|
|
521
|
+
let H = d(() => Lt.value ? (R.value || []).map((e) => ({
|
|
522
522
|
...e,
|
|
523
|
-
labelLen:
|
|
524
|
-
uid:
|
|
523
|
+
labelLen: Ln(e.name, F.value.style.chart.yAxis.labels.fontSize),
|
|
524
|
+
uid: te(),
|
|
525
525
|
datapoints: e.datapoints.map((e, t) => {
|
|
526
|
-
let n = e.color ?
|
|
526
|
+
let n = e.color ? ie(e.color) : _n.value[t] || c[t] || c[t % c.length], r = fe(e.name);
|
|
527
527
|
return {
|
|
528
528
|
...e,
|
|
529
529
|
color: n,
|
|
530
530
|
id: r
|
|
531
531
|
};
|
|
532
532
|
})
|
|
533
|
-
})) : []),
|
|
534
|
-
let e =
|
|
533
|
+
})) : []), wn = d(() => F.value.style.chart.padding.top + z.value * (R.value || []).length + z.value * vn.value + F.value.style.chart.padding.bottom), U = d(() => {
|
|
534
|
+
let e = F.value.style.chart.padding;
|
|
535
535
|
return {
|
|
536
|
-
width:
|
|
537
|
-
height:
|
|
536
|
+
width: Jt.value,
|
|
537
|
+
height: wn.value,
|
|
538
538
|
padding: e
|
|
539
539
|
};
|
|
540
|
-
}),
|
|
541
|
-
|
|
540
|
+
}), Tn = d(() => U.value.width), En = d(() => U.value.height), Dn = x(0), On = Ee((e) => {
|
|
541
|
+
Dn.value = e;
|
|
542
542
|
}, 100);
|
|
543
543
|
Ge((e) => {
|
|
544
|
-
let t =
|
|
544
|
+
let t = Zt.value;
|
|
545
545
|
if (!t) return;
|
|
546
546
|
let n = new ResizeObserver((e) => {
|
|
547
|
-
|
|
547
|
+
On(e[0].contentRect.height);
|
|
548
548
|
});
|
|
549
549
|
n.observe(t), e(() => n.disconnect());
|
|
550
550
|
}), Be(() => {
|
|
551
|
-
|
|
551
|
+
Dn.value = 0;
|
|
552
552
|
});
|
|
553
|
-
let
|
|
554
|
-
fullHeight:
|
|
555
|
-
top:
|
|
556
|
-
left:
|
|
557
|
-
right:
|
|
558
|
-
bottom:
|
|
559
|
-
width:
|
|
560
|
-
})),
|
|
553
|
+
let W = d(() => ({
|
|
554
|
+
fullHeight: U.value.height + Dn.value,
|
|
555
|
+
top: U.value.padding.top,
|
|
556
|
+
left: U.value.padding.left,
|
|
557
|
+
right: U.value.width - U.value.padding.right,
|
|
558
|
+
bottom: U.value.height - F.value.style.chart.padding.bottom,
|
|
559
|
+
width: U.value.width - (U.value.padding.left + U.value.padding.right)
|
|
560
|
+
})), kn = d(() => Math.max(...H.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), G = x([]), An = 0;
|
|
561
561
|
Ge(() => {
|
|
562
|
-
let e = ++
|
|
562
|
+
let e = ++An;
|
|
563
563
|
(async () => {
|
|
564
564
|
let t = await pe({
|
|
565
|
-
values:
|
|
566
|
-
maxDatapoints:
|
|
567
|
-
formatter:
|
|
565
|
+
values: F.value.style.chart.xAxis.labels.values,
|
|
566
|
+
maxDatapoints: kn.value,
|
|
567
|
+
formatter: F.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
568
568
|
start: 0,
|
|
569
|
-
end:
|
|
569
|
+
end: F.value.style.chart.xAxis.labels.values.length
|
|
570
570
|
});
|
|
571
|
-
e ===
|
|
571
|
+
e === An && (G.value = t);
|
|
572
572
|
})();
|
|
573
573
|
});
|
|
574
|
-
let
|
|
575
|
-
let e = Math.max(...
|
|
576
|
-
for (let e = 0; e <
|
|
574
|
+
let K = d(() => {
|
|
575
|
+
let e = Math.max(...H.value.map((e) => e.labelLen)), t = U.value.padding.left + e + 16 + F.value.style.chart.yAxis.labels.offsetX, n = (W.value.width - t) / kn.value, r = [];
|
|
576
|
+
for (let e = 0; e < kn.value; e += 1) r.push({
|
|
577
577
|
selectorX: t + n * e,
|
|
578
578
|
x: t + n * e - n / 2,
|
|
579
|
-
y:
|
|
580
|
-
label:
|
|
579
|
+
y: W.value.top,
|
|
580
|
+
label: F.value.style.chart.xAxis.labels.values[e] ? G.value[e]?.text ?? "" : "",
|
|
581
581
|
index: e,
|
|
582
582
|
width: n,
|
|
583
|
-
height:
|
|
583
|
+
height: wn.value
|
|
584
584
|
});
|
|
585
585
|
return r;
|
|
586
586
|
});
|
|
587
|
-
function
|
|
588
|
-
return
|
|
587
|
+
function jn(e) {
|
|
588
|
+
return H.value.map((t) => t.datapoints.map((t) => ({
|
|
589
589
|
dp: t,
|
|
590
590
|
selected: t.values[e.index]
|
|
591
591
|
})));
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
|
|
595
|
-
let t =
|
|
596
|
-
|
|
593
|
+
function Mn(e) {
|
|
594
|
+
M.value = e;
|
|
595
|
+
let t = jn(e);
|
|
596
|
+
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
597
597
|
datapoint: t,
|
|
598
598
|
seriesIndex: e.index
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
let t =
|
|
604
|
-
|
|
601
|
+
function Nn(e) {
|
|
602
|
+
M.value = null;
|
|
603
|
+
let t = jn(e);
|
|
604
|
+
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
605
605
|
datapoint: t,
|
|
606
606
|
seriesIndex: e.index
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
let t =
|
|
611
|
-
|
|
609
|
+
function Pn(e) {
|
|
610
|
+
let t = jn(e);
|
|
611
|
+
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
612
612
|
datapoint: t,
|
|
613
613
|
seriesIndex: e.index
|
|
614
|
-
}),
|
|
614
|
+
}), Rt("selectX", t);
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Fn(e, t) {
|
|
617
617
|
return e.length * t / 2 + t;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return e +
|
|
619
|
+
function In(e, t, n) {
|
|
620
|
+
return e + Fn(t, n) > W.value.right;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Ln(e, t, n = "sans-serif") {
|
|
623
623
|
let r = document.createElement("canvas").getContext("2d");
|
|
624
624
|
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
625
625
|
}
|
|
626
|
-
let
|
|
627
|
-
|
|
628
|
-
let e = Math.max(...
|
|
626
|
+
let q = d(() => {
|
|
627
|
+
z.value;
|
|
628
|
+
let e = Math.max(...H.value.map((e) => e.labelLen)), n = Math.max(...H.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = Math.min(...H.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), i = U.value.padding.left + e + 16 + F.value.style.chart.yAxis.labels.offsetX, a = (W.value.width - i) / kn.value, o = Math.abs(Math.min(r, 0)), s = n + o;
|
|
629
629
|
function ne(e) {
|
|
630
630
|
return isNaN(e / s) ? 0 : e / s;
|
|
631
631
|
}
|
|
632
|
-
return
|
|
633
|
-
let
|
|
632
|
+
return H.value.map((e, n) => {
|
|
633
|
+
let r = W.value.top + z.value * n, s = W.value.top + r + z.value * vn.value * (1 - ne(o));
|
|
634
634
|
return {
|
|
635
635
|
...e,
|
|
636
636
|
label: {
|
|
637
|
-
x:
|
|
637
|
+
x: i - F.value.style.chart.yAxis.labels.fontSize,
|
|
638
638
|
y: s
|
|
639
639
|
},
|
|
640
640
|
datapoints: e.datapoints.map((e) => {
|
|
641
|
-
let
|
|
642
|
-
let
|
|
641
|
+
let n = e.values.map((t, n) => {
|
|
642
|
+
let ee = isNaN(t) || [
|
|
643
643
|
void 0,
|
|
644
644
|
null,
|
|
645
645
|
"NaN",
|
|
@@ -648,140 +648,140 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
648
648
|
-Infinity
|
|
649
649
|
].includes(t) ? 0 : t || 0;
|
|
650
650
|
return {
|
|
651
|
-
x:
|
|
652
|
-
y:
|
|
651
|
+
x: i + a * n,
|
|
652
|
+
y: W.value.top + r + z.value * vn.value * (1 - ne(ee + o)),
|
|
653
653
|
value: t,
|
|
654
654
|
isMaxPoint: t === Math.max(...e.values),
|
|
655
655
|
zero: s
|
|
656
656
|
};
|
|
657
|
-
}), re = `${
|
|
657
|
+
}), re = `${t(n, s, !1, !1)}`, ie = `M ${i},${s} ${ee(n)} ${n.at(-1).x},${s}`, oe = `M ${i},${s} ${n.at(-1).x},${s}`, c = `M ${se(n)}`, l = `M ${ee(n)}`, ce = ae(F.value.style.chart.areas.smooth ? c : l);
|
|
658
658
|
return {
|
|
659
659
|
...e,
|
|
660
|
-
uid:
|
|
661
|
-
plots:
|
|
660
|
+
uid: te(),
|
|
661
|
+
plots: n,
|
|
662
662
|
smoothPath: re,
|
|
663
663
|
straightPath: ie,
|
|
664
|
-
zeroPath:
|
|
665
|
-
pathLength:
|
|
664
|
+
zeroPath: oe,
|
|
665
|
+
pathLength: ce,
|
|
666
666
|
smoothPathRidge: c,
|
|
667
667
|
straightPathRidge: l
|
|
668
668
|
};
|
|
669
|
-
}).filter((e) => !
|
|
669
|
+
}).filter((e) => !J.value.includes(e.id))
|
|
670
670
|
};
|
|
671
671
|
});
|
|
672
|
-
}),
|
|
673
|
-
function
|
|
672
|
+
}), J = x([]);
|
|
673
|
+
function Rn(e) {
|
|
674
674
|
let t = /* @__PURE__ */ new Map();
|
|
675
675
|
return e.forEach((e) => {
|
|
676
676
|
e.datapoints.forEach((e, n) => {
|
|
677
|
-
let r =
|
|
677
|
+
let r = fe(e.name);
|
|
678
678
|
t.has(r) || t.set(r, {
|
|
679
679
|
id: r,
|
|
680
680
|
name: e.name,
|
|
681
681
|
color: e.color,
|
|
682
682
|
shape: "circle",
|
|
683
|
-
segregate: () =>
|
|
684
|
-
isSegregated:
|
|
685
|
-
opacity:
|
|
683
|
+
segregate: () => bn(r),
|
|
684
|
+
isSegregated: J.value.includes(r),
|
|
685
|
+
opacity: J.value.includes(r) ? .5 : 1
|
|
686
686
|
});
|
|
687
687
|
});
|
|
688
688
|
}), Array.from(t.values());
|
|
689
689
|
}
|
|
690
|
-
let
|
|
690
|
+
let Y = d(() => Rn(H.value)), zn = d(() => ({
|
|
691
691
|
cy: "donut-div-legend",
|
|
692
|
-
backgroundColor:
|
|
693
|
-
color:
|
|
694
|
-
fontSize:
|
|
692
|
+
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
693
|
+
color: F.value.style.chart.legend.color,
|
|
694
|
+
fontSize: F.value.style.chart.legend.fontSize,
|
|
695
695
|
paddingBottom: 12,
|
|
696
|
-
fontWeight:
|
|
697
|
-
})),
|
|
698
|
-
function
|
|
699
|
-
|
|
696
|
+
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
697
|
+
})), X = x(!1);
|
|
698
|
+
function Bn(e) {
|
|
699
|
+
X.value = e, Kt.value += 1;
|
|
700
700
|
}
|
|
701
|
-
let
|
|
702
|
-
function
|
|
703
|
-
|
|
701
|
+
let Vn = x({}), Hn = x([]);
|
|
702
|
+
function Un(e) {
|
|
703
|
+
Rt("selectDatapoint", e), F.value.style.chart.dialog.show && (Hn.value = e.datapoints.map((e) => ({
|
|
704
704
|
name: e.name,
|
|
705
705
|
color: e.color,
|
|
706
706
|
type: "line",
|
|
707
707
|
useArea: !0,
|
|
708
|
-
smooth:
|
|
708
|
+
smooth: F.value.style.chart.areas.smooth,
|
|
709
709
|
series: e.values
|
|
710
|
-
})),
|
|
711
|
-
...
|
|
710
|
+
})), N.value = e, Vn.value = re({
|
|
711
|
+
...F.value.style.chart.dialog.xyChart,
|
|
712
712
|
responsive: !0,
|
|
713
713
|
chart: {
|
|
714
|
-
...
|
|
714
|
+
...F.value.style.chart.dialog.xyChart.chart,
|
|
715
715
|
grid: {
|
|
716
|
-
...
|
|
716
|
+
...F.value.style.chart.dialog.xyChart.chart.grid,
|
|
717
717
|
labels: {
|
|
718
|
-
...
|
|
718
|
+
...F.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
719
719
|
xAxisLabels: {
|
|
720
|
-
...
|
|
721
|
-
values:
|
|
720
|
+
...F.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
721
|
+
values: F.value.style.chart.xAxis.labels.values,
|
|
722
722
|
autoRotate: {
|
|
723
723
|
enable: !0,
|
|
724
|
-
angle:
|
|
724
|
+
angle: F.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
725
725
|
},
|
|
726
|
-
datetimeFormatter:
|
|
726
|
+
datetimeFormatter: F.value.style.chart.xAxis.labels.datetimeFormatter
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
},
|
|
730
730
|
tooltip: {
|
|
731
|
-
...
|
|
732
|
-
showTimeLabel:
|
|
731
|
+
...F.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
732
|
+
showTimeLabel: F.value.style.chart.xAxis.labels.values.length > 0
|
|
733
733
|
},
|
|
734
734
|
userOptions: {
|
|
735
|
-
...
|
|
735
|
+
...F.value.style.chart.dialog.xyChart.chart.userOptions,
|
|
736
736
|
buttons: {
|
|
737
|
-
...
|
|
738
|
-
altCopy:
|
|
737
|
+
...F.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
|
|
738
|
+
altCopy: F.value.userOptions.buttons.altCopy
|
|
739
739
|
},
|
|
740
740
|
callbacks: {
|
|
741
|
-
...
|
|
741
|
+
...F.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
|
|
742
742
|
altCopy: () => {}
|
|
743
743
|
},
|
|
744
|
-
useCursorPointer:
|
|
744
|
+
useCursorPointer: F.value.userOptions.useCursorPointer
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
}),
|
|
747
|
+
}), Yt.value && Yt.value.open());
|
|
748
748
|
}
|
|
749
|
-
let
|
|
749
|
+
let Z = x(null);
|
|
750
750
|
function Wn(e) {
|
|
751
|
-
|
|
751
|
+
Z.value = e;
|
|
752
752
|
}
|
|
753
753
|
function Gn() {
|
|
754
|
-
|
|
754
|
+
Z.value = null;
|
|
755
755
|
}
|
|
756
756
|
let Kn = x(!1);
|
|
757
757
|
function qn() {
|
|
758
758
|
Kn.value = !Kn.value;
|
|
759
759
|
}
|
|
760
760
|
function Jn() {
|
|
761
|
-
|
|
761
|
+
V.value.showTable = !V.value.showTable;
|
|
762
762
|
}
|
|
763
|
-
let Yn = d(() => ({ body:
|
|
763
|
+
let Yn = d(() => ({ body: q.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
764
764
|
...t,
|
|
765
765
|
rowName: `${e.name}: ${t.name}`
|
|
766
766
|
}))).map((e) => [{
|
|
767
767
|
name: e.rowName,
|
|
768
768
|
color: e.color
|
|
769
769
|
}, ...e.values]) })), Q = d(() => {
|
|
770
|
-
let e = [
|
|
770
|
+
let e = [F.value.table.columnNames.series, ...G.value.map((e) => e.text)], t = {
|
|
771
771
|
th: {
|
|
772
|
-
backgroundColor:
|
|
773
|
-
color:
|
|
774
|
-
outline:
|
|
772
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
773
|
+
color: F.value.table.th.color,
|
|
774
|
+
outline: F.value.table.th.outline
|
|
775
775
|
},
|
|
776
776
|
td: {
|
|
777
|
-
backgroundColor:
|
|
778
|
-
color:
|
|
779
|
-
outline:
|
|
777
|
+
backgroundColor: F.value.table.td.backgroundColor,
|
|
778
|
+
color: F.value.table.td.color,
|
|
779
|
+
outline: F.value.table.td.outline
|
|
780
780
|
},
|
|
781
|
-
breakpoint:
|
|
781
|
+
breakpoint: F.value.table.responsiveBreakpoint
|
|
782
782
|
};
|
|
783
783
|
return {
|
|
784
|
-
colNames: [
|
|
784
|
+
colNames: [F.value.table.columnNames.series, ...G.value.map((e) => e.text)],
|
|
785
785
|
head: e,
|
|
786
786
|
body: Yn.value.body,
|
|
787
787
|
config: t
|
|
@@ -789,20 +789,20 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
789
789
|
});
|
|
790
790
|
function Xn(e = null) {
|
|
791
791
|
Re(() => {
|
|
792
|
-
let t = [[
|
|
793
|
-
e ? e(n) :
|
|
792
|
+
let t = [[F.value.table.columnNames.series, ...G.map((e) => [e.text])], ...Yn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = de([[F.value.style.chart.title.text], [F.value.style.chart.title.subtitle.text]].concat(t));
|
|
793
|
+
e ? e(n) : ne({
|
|
794
794
|
csvContent: n,
|
|
795
|
-
title:
|
|
795
|
+
title: F.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
796
796
|
});
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
function Zn() {
|
|
800
|
-
return
|
|
800
|
+
return q.value;
|
|
801
801
|
}
|
|
802
802
|
async function Qn({ scale: e = 2 } = {}) {
|
|
803
|
-
if (!
|
|
804
|
-
let { width: t, height: n } =
|
|
805
|
-
domElement:
|
|
803
|
+
if (!O.value) return;
|
|
804
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
805
|
+
domElement: O.value,
|
|
806
806
|
base64: !0,
|
|
807
807
|
img: !0,
|
|
808
808
|
scale: e
|
|
@@ -810,20 +810,20 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
810
810
|
return {
|
|
811
811
|
imageUri: i,
|
|
812
812
|
base64: a,
|
|
813
|
-
title:
|
|
813
|
+
title: F.value.style.chart.title.text,
|
|
814
814
|
width: t,
|
|
815
815
|
height: n,
|
|
816
816
|
aspectRatio: r
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
819
|
xe({
|
|
820
|
-
timeLabelsEls:
|
|
821
|
-
timeLabels:
|
|
820
|
+
timeLabelsEls: Zt,
|
|
821
|
+
timeLabels: G,
|
|
822
822
|
slicer: d(() => ({
|
|
823
823
|
min: 0,
|
|
824
|
-
max:
|
|
824
|
+
max: kn.value
|
|
825
825
|
})),
|
|
826
|
-
configRef:
|
|
826
|
+
configRef: F,
|
|
827
827
|
rotationPath: [
|
|
828
828
|
"style",
|
|
829
829
|
"chart",
|
|
@@ -840,64 +840,64 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
840
840
|
"enable"
|
|
841
841
|
],
|
|
842
842
|
isAutoSize: !1,
|
|
843
|
-
width:
|
|
844
|
-
height:
|
|
843
|
+
width: Tn,
|
|
844
|
+
height: En,
|
|
845
845
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
846
|
-
angle:
|
|
846
|
+
angle: F.value.style.chart.xAxis.labels.autoRotate.angle
|
|
847
847
|
});
|
|
848
848
|
let $n = d(() => {
|
|
849
|
-
let e =
|
|
849
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = V.value.showTable;
|
|
850
850
|
return {
|
|
851
851
|
component: e ? Nt : Ot,
|
|
852
|
-
title: `${
|
|
852
|
+
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
853
853
|
props: e ? {
|
|
854
|
-
backgroundColor:
|
|
855
|
-
color:
|
|
856
|
-
headerColor:
|
|
857
|
-
headerBg:
|
|
858
|
-
isFullscreen:
|
|
859
|
-
fullscreenParent:
|
|
854
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
855
|
+
color: F.value.table.th.color,
|
|
856
|
+
headerColor: F.value.table.th.color,
|
|
857
|
+
headerBg: F.value.table.th.backgroundColor,
|
|
858
|
+
isFullscreen: X.value,
|
|
859
|
+
fullscreenParent: O.value,
|
|
860
860
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
861
|
-
isCursorPointer:
|
|
861
|
+
isCursorPointer: I.value
|
|
862
862
|
} : {
|
|
863
863
|
hideDetails: !0,
|
|
864
864
|
config: {
|
|
865
865
|
open: t,
|
|
866
866
|
maxHeight: 1e4,
|
|
867
867
|
body: {
|
|
868
|
-
backgroundColor:
|
|
869
|
-
color:
|
|
868
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
869
|
+
color: F.value.style.chart.color
|
|
870
870
|
},
|
|
871
871
|
head: {
|
|
872
|
-
backgroundColor:
|
|
873
|
-
color:
|
|
872
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
873
|
+
color: F.value.style.chart.color
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
878
|
});
|
|
879
|
-
We(() =>
|
|
880
|
-
|
|
879
|
+
We(() => V.value.showTable, (e) => {
|
|
880
|
+
F.value.table.show || (e && F.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
|
|
881
881
|
});
|
|
882
882
|
function er() {
|
|
883
|
-
|
|
883
|
+
V.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
|
|
884
884
|
}
|
|
885
|
-
let tr = d(() =>
|
|
886
|
-
...
|
|
885
|
+
let tr = d(() => F.value.style.chart.backgroundColor), nr = d(() => ({
|
|
886
|
+
...F.value.style.chart.legend,
|
|
887
887
|
position: "bottom"
|
|
888
888
|
})), { exportSvg: rr, getSvg: ir } = ve({
|
|
889
|
-
svg:
|
|
890
|
-
title: d(() =>
|
|
889
|
+
svg: B,
|
|
890
|
+
title: d(() => F.value.style.chart.title),
|
|
891
891
|
legend: nr,
|
|
892
|
-
legendItems:
|
|
892
|
+
legendItems: Y,
|
|
893
893
|
backgroundColor: tr
|
|
894
894
|
});
|
|
895
895
|
async function ar({ isCb: e }) {
|
|
896
|
-
|
|
896
|
+
tn.value = !0, await Re();
|
|
897
897
|
try {
|
|
898
898
|
if (e) {
|
|
899
899
|
let { blob: e, url: t, text: n, dataUrl: r } = await ir();
|
|
900
|
-
await Promise.resolve(
|
|
900
|
+
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
901
901
|
blob: e,
|
|
902
902
|
url: t,
|
|
903
903
|
text: n,
|
|
@@ -905,46 +905,46 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
905
905
|
}));
|
|
906
906
|
} else await Promise.resolve(rr());
|
|
907
907
|
} finally {
|
|
908
|
-
|
|
908
|
+
tn.value = !1;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
function or(e) {
|
|
912
912
|
if (e?.stage === "start") {
|
|
913
|
-
|
|
913
|
+
en.value = !0;
|
|
914
914
|
return;
|
|
915
915
|
}
|
|
916
916
|
if (e?.stage === "end") {
|
|
917
|
-
|
|
917
|
+
en.value = !1;
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
|
-
|
|
920
|
+
hn();
|
|
921
921
|
}
|
|
922
922
|
function sr(e) {
|
|
923
923
|
cr("xy-zoom", e.dataset, e.config);
|
|
924
924
|
}
|
|
925
925
|
async function cr(e = "main-chart", t = null, n = null) {
|
|
926
|
-
if (
|
|
926
|
+
if (Rt("copyAlt", {
|
|
927
927
|
source: e,
|
|
928
|
-
config: e === "main-chart" ?
|
|
929
|
-
dataset: e === "main-chart" ?
|
|
930
|
-
}), !
|
|
928
|
+
config: e === "main-chart" ? F.value : Vn.value,
|
|
929
|
+
dataset: e === "main-chart" ? q.value : Hn.value
|
|
930
|
+
}), !F.value.userOptions.callbacks.altCopy) {
|
|
931
931
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
|
-
await Promise.resolve(
|
|
934
|
+
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
935
935
|
source: e,
|
|
936
|
-
config: e === "main-chart" ?
|
|
937
|
-
dataset: e === "main-chart" ?
|
|
936
|
+
config: e === "main-chart" ? F.value : Vn.value,
|
|
937
|
+
dataset: e === "main-chart" ? q.value : Hn.value
|
|
938
938
|
}));
|
|
939
939
|
}
|
|
940
940
|
function lr() {
|
|
941
|
-
|
|
941
|
+
P.value = null, nn.value = !0;
|
|
942
942
|
}
|
|
943
943
|
function ur() {
|
|
944
|
-
mr(),
|
|
944
|
+
mr(), nn.value = !1;
|
|
945
945
|
}
|
|
946
946
|
function dr(e) {
|
|
947
|
-
if (!
|
|
947
|
+
if (!B.value || Kn.value || document.activeElement !== B.value || !q.value.length) return;
|
|
948
948
|
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
|
|
949
949
|
if (!t && !n && !r && !i && !a && !ee) return;
|
|
950
950
|
if (e.preventDefault(), e.stopPropagation(), ee) {
|
|
@@ -952,77 +952,77 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
954
|
if (a) {
|
|
955
|
-
if (
|
|
956
|
-
let e =
|
|
957
|
-
e &&
|
|
955
|
+
if (P.value !== null) {
|
|
956
|
+
let e = q.value[P.value];
|
|
957
|
+
e && Un(e);
|
|
958
958
|
return;
|
|
959
959
|
}
|
|
960
|
-
|
|
960
|
+
M.value && Pn(M.value);
|
|
961
961
|
return;
|
|
962
962
|
}
|
|
963
963
|
if (t || n) {
|
|
964
|
-
let e =
|
|
965
|
-
e = e === null ? n ? 0 :
|
|
964
|
+
let e = P.value;
|
|
965
|
+
e = e === null ? n ? 0 : q.value.length - 1 : fr(e + (n ? 1 : -1)), P.value = e, Z.value = e;
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
|
-
if (!
|
|
969
|
-
let o =
|
|
970
|
-
o = o === null ? i ? 0 :
|
|
971
|
-
let
|
|
972
|
-
|
|
968
|
+
if (!K.value.length) return;
|
|
969
|
+
let o = M.value?.index ?? null;
|
|
970
|
+
o = o === null ? i ? 0 : K.value.length - 1 : pr(o + (i ? 1 : -1));
|
|
971
|
+
let s = K.value[o];
|
|
972
|
+
s && Mn(s);
|
|
973
973
|
}
|
|
974
974
|
function fr(e) {
|
|
975
|
-
let t =
|
|
975
|
+
let t = q.value.length;
|
|
976
976
|
return t ? (e % t + t) % t : null;
|
|
977
977
|
}
|
|
978
978
|
function pr(e) {
|
|
979
|
-
let t =
|
|
979
|
+
let t = K.value.length;
|
|
980
980
|
return t ? (e % t + t) % t : null;
|
|
981
981
|
}
|
|
982
982
|
function mr() {
|
|
983
|
-
|
|
983
|
+
P.value = null, Z.value = null, M.value ? Nn(M.value) : M.value = null;
|
|
984
984
|
}
|
|
985
985
|
let $ = d(() => ({
|
|
986
986
|
head: Q.value.head,
|
|
987
987
|
body: Q.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
988
|
-
caption:
|
|
989
|
-
notice:
|
|
988
|
+
caption: F.value.a11y.translations.tableCaption,
|
|
989
|
+
notice: F.value.a11y.translations.tableAvailable
|
|
990
990
|
}));
|
|
991
991
|
return Te({
|
|
992
992
|
getData: Zn,
|
|
993
993
|
getImage: Qn,
|
|
994
|
-
generateImage:
|
|
994
|
+
generateImage: hn,
|
|
995
995
|
generateSvg: ar,
|
|
996
|
-
generatePdf:
|
|
996
|
+
generatePdf: mn,
|
|
997
997
|
generateCsv: Xn,
|
|
998
|
-
hideSeries:
|
|
999
|
-
showSeries:
|
|
998
|
+
hideSeries: Cn,
|
|
999
|
+
showSeries: Sn,
|
|
1000
1000
|
toggleAnnotator: qn,
|
|
1001
1001
|
toggleTable: Jn,
|
|
1002
|
-
toggleFullscreen:
|
|
1002
|
+
toggleFullscreen: Bn,
|
|
1003
1003
|
copyAlt: cr
|
|
1004
|
-
}), (e,
|
|
1004
|
+
}), (e, t) => (b(), m("div", {
|
|
1005
1005
|
ref_key: "ridgelineChart",
|
|
1006
|
-
ref:
|
|
1007
|
-
class: ze(`vue-data-ui-component vue-ui-ridgeline ${
|
|
1008
|
-
id: `vue-ui-ridgeline_${
|
|
1006
|
+
ref: O,
|
|
1007
|
+
class: ze(`vue-data-ui-component vue-ui-ridgeline ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1008
|
+
id: `vue-ui-ridgeline_${j.value}`,
|
|
1009
1009
|
style: y({
|
|
1010
|
-
fontFamily:
|
|
1010
|
+
fontFamily: F.value.style.fontFamily,
|
|
1011
1011
|
width: "100%",
|
|
1012
1012
|
textAlign: "center",
|
|
1013
|
-
background:
|
|
1014
|
-
height:
|
|
1013
|
+
background: F.value.style.chart.backgroundColor,
|
|
1014
|
+
height: F.value.responsive ? "100%" : void 0
|
|
1015
1015
|
}),
|
|
1016
|
-
onMouseenter:
|
|
1017
|
-
onMouseleave:
|
|
1016
|
+
onMouseenter: t[3] ||= () => T(cn)(!0),
|
|
1017
|
+
onMouseleave: t[4] ||= () => T(cn)(!1)
|
|
1018
1018
|
}, [
|
|
1019
1019
|
h("div", {
|
|
1020
|
-
id: `chart-instructions-${
|
|
1020
|
+
id: `chart-instructions-${j.value}`,
|
|
1021
1021
|
class: "sr-only"
|
|
1022
|
-
}, [h("p", null, w(
|
|
1022
|
+
}, [h("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
1023
1023
|
$.value.body.length ? (b(), f(ke, {
|
|
1024
1024
|
key: 0,
|
|
1025
|
-
uid:
|
|
1025
|
+
uid: j.value,
|
|
1026
1026
|
head: $.value.head,
|
|
1027
1027
|
body: $.value.body,
|
|
1028
1028
|
caption: $.value.caption,
|
|
@@ -1034,13 +1034,13 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1034
1034
|
"caption",
|
|
1035
1035
|
"notice"
|
|
1036
1036
|
])) : p("", !0),
|
|
1037
|
-
|
|
1037
|
+
F.value.userOptions.buttons.annotator && T(B) ? (b(), f(T(At), {
|
|
1038
1038
|
key: 1,
|
|
1039
|
-
color:
|
|
1040
|
-
backgroundColor:
|
|
1039
|
+
color: F.value.style.chart.color,
|
|
1040
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
1041
1041
|
active: Kn.value,
|
|
1042
|
-
svgRef: T(
|
|
1043
|
-
isCursorPointer:
|
|
1042
|
+
svgRef: T(B),
|
|
1043
|
+
isCursorPointer: I.value,
|
|
1044
1044
|
onClose: qn
|
|
1045
1045
|
}, {
|
|
1046
1046
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -1058,63 +1058,63 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1058
1058
|
"isCursorPointer"
|
|
1059
1059
|
])) : p("", !0),
|
|
1060
1060
|
C(e.$slots, "userConfig", {}, void 0, !0),
|
|
1061
|
-
|
|
1061
|
+
gn.value ? (b(), m("div", {
|
|
1062
1062
|
key: 2,
|
|
1063
1063
|
ref_key: "noTitle",
|
|
1064
|
-
ref:
|
|
1064
|
+
ref: Ht,
|
|
1065
1065
|
class: "vue-data-ui-no-title-space",
|
|
1066
1066
|
style: "height:36px; width: 100%;background:transparent"
|
|
1067
1067
|
}, null, 512)) : p("", !0),
|
|
1068
|
-
|
|
1068
|
+
F.value.style.chart.title.text ? (b(), m("div", {
|
|
1069
1069
|
key: 3,
|
|
1070
1070
|
ref_key: "chartTitle",
|
|
1071
|
-
ref:
|
|
1071
|
+
ref: zt,
|
|
1072
1072
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1073
1073
|
}, [(b(), f(Ce, {
|
|
1074
|
-
key: `title_${
|
|
1074
|
+
key: `title_${Ut.value}`,
|
|
1075
1075
|
config: {
|
|
1076
1076
|
title: {
|
|
1077
1077
|
cy: "ridgeline-div-title",
|
|
1078
|
-
...
|
|
1078
|
+
...F.value.style.chart.title
|
|
1079
1079
|
},
|
|
1080
1080
|
subtitle: {
|
|
1081
1081
|
cy: "ridgeline-div-subtitle",
|
|
1082
|
-
...
|
|
1082
|
+
...F.value.style.chart.title.subtitle
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1086
|
-
|
|
1086
|
+
F.value.userOptions.show && Lt.value && (T(ln) || T(sn)) ? (b(), f(T(jt), {
|
|
1087
1087
|
ref_key: "userOptionsRef",
|
|
1088
|
-
ref:
|
|
1089
|
-
key: `user_option_${
|
|
1090
|
-
backgroundColor:
|
|
1091
|
-
color:
|
|
1092
|
-
isPrinting: T(
|
|
1093
|
-
isImaging: T(
|
|
1094
|
-
uid:
|
|
1088
|
+
ref: $t,
|
|
1089
|
+
key: `user_option_${Kt.value}`,
|
|
1090
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
1091
|
+
color: F.value.style.chart.color,
|
|
1092
|
+
isPrinting: T(fn),
|
|
1093
|
+
isImaging: T(pn),
|
|
1094
|
+
uid: j.value,
|
|
1095
1095
|
hasTooltip: !1,
|
|
1096
|
-
callbacks:
|
|
1097
|
-
hasPdf:
|
|
1098
|
-
hasImg:
|
|
1099
|
-
hasSvg:
|
|
1100
|
-
hasXls:
|
|
1101
|
-
hasTable:
|
|
1096
|
+
callbacks: F.value.userOptions.callbacks,
|
|
1097
|
+
hasPdf: F.value.userOptions.buttons.pdf,
|
|
1098
|
+
hasImg: F.value.userOptions.buttons.img,
|
|
1099
|
+
hasSvg: F.value.userOptions.buttons.svg,
|
|
1100
|
+
hasXls: F.value.userOptions.buttons.csv,
|
|
1101
|
+
hasTable: F.value.userOptions.buttons.table,
|
|
1102
1102
|
hasLabel: !1,
|
|
1103
|
-
hasFullscreen:
|
|
1104
|
-
hasAltCopy:
|
|
1105
|
-
isFullscreen:
|
|
1106
|
-
printScale:
|
|
1107
|
-
chartElement:
|
|
1108
|
-
position:
|
|
1103
|
+
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
1104
|
+
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
1105
|
+
isFullscreen: X.value,
|
|
1106
|
+
printScale: F.value.userOptions.print.scale,
|
|
1107
|
+
chartElement: O.value,
|
|
1108
|
+
position: F.value.userOptions.position,
|
|
1109
1109
|
isTooltip: !1,
|
|
1110
|
-
titles: { ...
|
|
1111
|
-
hasAnnotator:
|
|
1110
|
+
titles: { ...F.value.userOptions.buttonTitles },
|
|
1111
|
+
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
1112
1112
|
isAnnotation: Kn.value,
|
|
1113
|
-
tableDialog:
|
|
1114
|
-
style: y({ visibility: T(
|
|
1115
|
-
isCursorPointer:
|
|
1116
|
-
onToggleFullscreen:
|
|
1117
|
-
onGeneratePdf: T(
|
|
1113
|
+
tableDialog: F.value.table.useDialog,
|
|
1114
|
+
style: y({ visibility: T(ln) ? T(sn) ? "visible" : "hidden" : "visible" }),
|
|
1115
|
+
isCursorPointer: I.value,
|
|
1116
|
+
onToggleFullscreen: Bn,
|
|
1117
|
+
onGeneratePdf: T(mn),
|
|
1118
1118
|
onGenerateCsv: Xn,
|
|
1119
1119
|
onGenerateImage: or,
|
|
1120
1120
|
onGenerateSvg: ar,
|
|
@@ -1219,23 +1219,23 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1219
1219
|
])) : p("", !0),
|
|
1220
1220
|
h("div", Ye, [(b(), m("svg", {
|
|
1221
1221
|
ref_key: "svgRef",
|
|
1222
|
-
ref:
|
|
1222
|
+
ref: B,
|
|
1223
1223
|
xmlns: T(le),
|
|
1224
|
-
"aria-describedby": `chart-instructions-${
|
|
1224
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1225
1225
|
class: ze({
|
|
1226
|
-
"vue-data-ui-fullscreen--on":
|
|
1227
|
-
"vue-data-ui-fulscreen--off": !
|
|
1226
|
+
"vue-data-ui-fullscreen--on": X.value,
|
|
1227
|
+
"vue-data-ui-fulscreen--off": !X.value
|
|
1228
1228
|
}),
|
|
1229
|
-
viewBox: `0 0 ${
|
|
1230
|
-
style: y(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1229
|
+
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${W.value.fullHeight <= 0 ? 10 : W.value.fullHeight}`,
|
|
1230
|
+
style: y(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color};${F.value.responsive ? `height: ${Xt.value}px; width: 100%;` : ""}`),
|
|
1231
1231
|
tabindex: "0",
|
|
1232
1232
|
onFocus: lr,
|
|
1233
1233
|
onBlur: ur,
|
|
1234
1234
|
onKeydown: dr
|
|
1235
1235
|
}, [
|
|
1236
1236
|
Ie(T(Mt)),
|
|
1237
|
-
h("defs", null, [(b(!0), m(u, null, S(
|
|
1238
|
-
id: `gradient-${e.id}-${
|
|
1237
|
+
h("defs", null, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("linearGradient", {
|
|
1238
|
+
id: `gradient-${e.id}-${j.value}`,
|
|
1239
1239
|
x1: "50%",
|
|
1240
1240
|
y1: "0%",
|
|
1241
1241
|
x2: "50%",
|
|
@@ -1261,9 +1261,9 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1261
1261
|
"stop-color": e.color,
|
|
1262
1262
|
"stop-opacity": "0.1"
|
|
1263
1263
|
}, null, 8, tt)
|
|
1264
|
-
], 8, Ze))), 256)), (b(!0), m(u, null, S(
|
|
1264
|
+
], 8, Ze))), 256)), (b(!0), m(u, null, S(q.value, (e, t) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e, t) => (b(), m("linearGradient", {
|
|
1265
1265
|
key: `grad${e.id}`,
|
|
1266
|
-
id: `gradient-single-${
|
|
1266
|
+
id: `gradient-single-${j.value}-${e.uid}`,
|
|
1267
1267
|
x1: "50%",
|
|
1268
1268
|
y1: "0%",
|
|
1269
1269
|
x2: "50%",
|
|
@@ -1290,216 +1290,216 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1290
1290
|
"stop-opacity": "0.1"
|
|
1291
1291
|
}, null, 8, ot)
|
|
1292
1292
|
], 8, nt))), 128))], 64))), 256))]),
|
|
1293
|
-
(b(!0), m(u, null, S(
|
|
1293
|
+
(b(!0), m(u, null, S(q.value, (t, n) => (b(), m("g", { key: `ds-${n}` }, [(b(!0), m(u, null, S(t.datapoints, (t, r) => (b(), m("g", { key: t.id }, [
|
|
1294
1294
|
e.$slots.pattern ? (b(), m("g", st, [h("defs", null, [C(e.$slots, "pattern", Le({ ref_for: !0 }, {
|
|
1295
1295
|
datapointIndex: n,
|
|
1296
1296
|
seriesIndex: r,
|
|
1297
|
-
patternId: `pattern_${
|
|
1297
|
+
patternId: `pattern_${j.value}_${t.uid}`
|
|
1298
1298
|
}), void 0, !0)])])) : p("", !0),
|
|
1299
1299
|
h("path", {
|
|
1300
|
-
fill: e.$slots.pattern ? `url(#pattern_${
|
|
1300
|
+
fill: e.$slots.pattern ? `url(#pattern_${j.value}_${t.uid})` : F.value.style.chart.backgroundColor,
|
|
1301
1301
|
stroke: "none",
|
|
1302
1302
|
"stroke-linecap": "round",
|
|
1303
|
-
d:
|
|
1304
|
-
style: y({ opacity:
|
|
1303
|
+
d: F.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1304
|
+
style: y({ opacity: F.value.style.chart.areas.opacity })
|
|
1305
1305
|
}, null, 12, ct),
|
|
1306
1306
|
h("path", {
|
|
1307
1307
|
fill: "none",
|
|
1308
|
-
stroke:
|
|
1309
|
-
"stroke-width":
|
|
1310
|
-
d:
|
|
1308
|
+
stroke: F.value.style.chart.areas.stroke.useSerieColor ? t.color : F.value.style.chart.areas.stroke.color,
|
|
1309
|
+
"stroke-width": F.value.style.chart.areas.strokeWidth,
|
|
1310
|
+
d: F.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
|
|
1311
1311
|
"stroke-linecap": "round",
|
|
1312
1312
|
"stroke-linejoin": "round",
|
|
1313
|
-
class: ze({ "vue-ui-ridgeline-animate":
|
|
1313
|
+
class: ze({ "vue-ui-ridgeline-animate": F.value.useCssAnimation && !T(L) }),
|
|
1314
1314
|
style: y({
|
|
1315
1315
|
strokeDasharray: t.pathLength,
|
|
1316
|
-
strokeDashoffset:
|
|
1316
|
+
strokeDashoffset: F.value.useCssAnimation ? t.pathLength : 0
|
|
1317
1317
|
})
|
|
1318
1318
|
}, null, 14, lt),
|
|
1319
1319
|
h("path", {
|
|
1320
|
-
fill:
|
|
1320
|
+
fill: F.value.style.chart.areas.useGradient ? F.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${j.value})` : `url(#gradient-single-${j.value}-${t.uid})` : t.color,
|
|
1321
1321
|
stroke: "none",
|
|
1322
|
-
d:
|
|
1322
|
+
d: F.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1323
1323
|
"stroke-linecap": "round",
|
|
1324
1324
|
"stroke-linejoin": "round",
|
|
1325
|
-
class: ze({ "vue-ui-ridgeline-animate":
|
|
1325
|
+
class: ze({ "vue-ui-ridgeline-animate": F.value.useCssAnimation && !T(L) }),
|
|
1326
1326
|
style: y({
|
|
1327
1327
|
strokeDasharray: t.pathLength,
|
|
1328
|
-
strokeDashoffset:
|
|
1328
|
+
strokeDashoffset: F.value.useCssAnimation ? t.pathLength : 0
|
|
1329
1329
|
})
|
|
1330
1330
|
}, null, 14, ut),
|
|
1331
|
-
|
|
1331
|
+
F.value.style.chart.zeroLine.show ? (b(), m("path", {
|
|
1332
1332
|
key: 1,
|
|
1333
|
-
stroke:
|
|
1334
|
-
"stroke-dasharray":
|
|
1335
|
-
"stroke-width":
|
|
1333
|
+
stroke: F.value.style.chart.zeroLine.useSerieColor ? t.color : F.value.style.chart.zeroLine.stroke,
|
|
1334
|
+
"stroke-dasharray": F.value.style.chart.zeroLine.strokeDasharray,
|
|
1335
|
+
"stroke-width": F.value.style.chart.zeroLine.strokeWidth,
|
|
1336
1336
|
d: t.zeroPath,
|
|
1337
1337
|
"stroke-linecap": "round"
|
|
1338
1338
|
}, null, 8, dt)) : p("", !0),
|
|
1339
|
-
|
|
1339
|
+
F.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (b(!0), m(u, { key: 2 }, S(t.plots, (e) => (b(), m(u, null, [e.isMaxPoint ? (b(), m("line", {
|
|
1340
1340
|
key: 0,
|
|
1341
1341
|
x1: e.x,
|
|
1342
1342
|
y1: e.y,
|
|
1343
1343
|
x2: e.x,
|
|
1344
1344
|
y2: e.zero,
|
|
1345
|
-
stroke:
|
|
1346
|
-
"stroke-width":
|
|
1345
|
+
stroke: F.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? T(ce)(t.color) : F.value.style.chart.areas.maxPoint.stroke,
|
|
1346
|
+
"stroke-width": F.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1347
1347
|
"stroke-linecap": "round",
|
|
1348
|
-
"stroke-dasharray":
|
|
1348
|
+
"stroke-dasharray": F.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1349
1349
|
}, null, 8, ft)) : p("", !0)], 64))), 256)) : p("", !0),
|
|
1350
1350
|
t.plots.length === 1 ? (b(), m("circle", {
|
|
1351
1351
|
key: 3,
|
|
1352
1352
|
cx: t.plots[0].x,
|
|
1353
1353
|
cy: t.plots[0].y,
|
|
1354
|
-
stroke:
|
|
1355
|
-
"stroke-width":
|
|
1356
|
-
r:
|
|
1357
|
-
fill:
|
|
1354
|
+
stroke: F.value.style.chart.selector.dot.stroke,
|
|
1355
|
+
"stroke-width": F.value.style.chart.selector.dot.strokeWidth,
|
|
1356
|
+
r: F.value.style.chart.selector.dot.radius,
|
|
1357
|
+
fill: F.value.style.chart.selector.dot.useDatapointColor ? t.color : F.value.style.chart.selector.dot.fill,
|
|
1358
1358
|
style: { pointerEvents: "none" }
|
|
1359
1359
|
}, null, 8, pt)) : p("", !0)
|
|
1360
1360
|
]))), 128)), h("text", {
|
|
1361
1361
|
x: t.label.x,
|
|
1362
1362
|
y: t.label.y,
|
|
1363
1363
|
"text-anchor": "end",
|
|
1364
|
-
"font-size":
|
|
1365
|
-
"font-weight":
|
|
1366
|
-
fill:
|
|
1367
|
-
style: y({ cursor:
|
|
1368
|
-
"text-decoration":
|
|
1364
|
+
"font-size": F.value.style.chart.yAxis.labels.fontSize,
|
|
1365
|
+
"font-weight": F.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1366
|
+
fill: F.value.style.chart.yAxis.labels.color,
|
|
1367
|
+
style: y({ cursor: F.value.style.chart.dialog.show && I.value ? "pointer" : "default" }),
|
|
1368
|
+
"text-decoration": F.value.style.chart.dialog.show && (Z.value === n || N.value && t.uid === N.value.uid || P.value === n) ? "underline" : "",
|
|
1369
1369
|
onMouseenter: (e) => Wn(n),
|
|
1370
1370
|
onMouseleave: Gn,
|
|
1371
|
-
onClick: (e) =>
|
|
1371
|
+
onClick: (e) => Un(t)
|
|
1372
1372
|
}, w(t.name), 45, mt)]))), 128)),
|
|
1373
|
-
|
|
1373
|
+
F.value.style.chart.xAxis.labels.values.length ? (b(), m("g", {
|
|
1374
1374
|
key: 0,
|
|
1375
1375
|
ref_key: "timeLabelsEls",
|
|
1376
|
-
ref:
|
|
1377
|
-
}, [(b(!0), m(u, null, S(
|
|
1378
|
-
show:
|
|
1379
|
-
fontSize:
|
|
1380
|
-
content:
|
|
1381
|
-
textAnchor:
|
|
1382
|
-
fill:
|
|
1383
|
-
transform: `translate(${
|
|
1384
|
-
x:
|
|
1385
|
-
y:
|
|
1386
|
-
}), () => [
|
|
1376
|
+
ref: Zt
|
|
1377
|
+
}, [(b(!0), m(u, null, S(K.value, (t, n) => C(e.$slots, "time-label", Le({ ref_for: !0 }, {
|
|
1378
|
+
show: t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !F.value.style.chart.xAxis.labels.showOnlyAtModulo || t && F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === K.value.length - 1) || t && M.value && M.value.index === n || t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && F.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(K.value.length / F.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1379
|
+
fontSize: F.value.style.chart.xAxis.labels.fontSize,
|
|
1380
|
+
content: t.label,
|
|
1381
|
+
textAnchor: F.value.style.chart.xAxis.labels.rotation > 0 ? "start" : F.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1382
|
+
fill: F.value.style.chart.xAxis.labels.color,
|
|
1383
|
+
transform: `translate(${t.selectorX}, ${W.value.top + t.height + F.value.style.chart.xAxis.labels.offsetY}), rotate(${F.value.style.chart.xAxis.labels.rotation})`,
|
|
1384
|
+
x: t.selectorX,
|
|
1385
|
+
y: W.value.bottom + F.value.style.chart.xAxis.labels.offsetY
|
|
1386
|
+
}), () => [t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !F.value.style.chart.xAxis.labels.showOnlyAtModulo || t && F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === K.value.length - 1) || t && M.value && M.value.index === n || t && !F.value.style.chart.xAxis.labels.showOnlyFirstAndLast && F.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(K.value.length / F.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g", ht, [String(t.label).includes("\n") ? (b(), m("text", {
|
|
1387
1387
|
key: 1,
|
|
1388
1388
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1389
|
-
"font-size":
|
|
1390
|
-
fill:
|
|
1391
|
-
"font-weight":
|
|
1392
|
-
transform: `translate(${
|
|
1393
|
-
"text-anchor":
|
|
1394
|
-
style: y({ opacity:
|
|
1395
|
-
innerHTML: T(
|
|
1396
|
-
content: String(
|
|
1397
|
-
fontSize:
|
|
1398
|
-
fill:
|
|
1389
|
+
"font-size": F.value.style.chart.xAxis.labels.fontSize,
|
|
1390
|
+
fill: F.value.style.chart.xAxis.labels.color,
|
|
1391
|
+
"font-weight": F.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1392
|
+
transform: `translate(${t.selectorX}, ${W.value.bottom + F.value.style.chart.xAxis.labels.offsetY}), rotate(${F.value.style.chart.xAxis.labels.rotation})`,
|
|
1393
|
+
"text-anchor": F.value.style.chart.xAxis.labels.rotation > 0 ? "start" : F.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1394
|
+
style: y({ opacity: M.value ? M.value.index === n ? 1 : .2 : 1 }),
|
|
1395
|
+
innerHTML: T(r)({
|
|
1396
|
+
content: String(t.label),
|
|
1397
|
+
fontSize: F.value.style.chart.xAxis.labels.fontSize,
|
|
1398
|
+
fill: F.value.style.chart.xAxis.labels.color,
|
|
1399
1399
|
x: 0,
|
|
1400
1400
|
y: 0
|
|
1401
1401
|
})
|
|
1402
1402
|
}, null, 12, _t)) : (b(), m("text", {
|
|
1403
1403
|
key: 0,
|
|
1404
1404
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1405
|
-
"font-size":
|
|
1406
|
-
fill:
|
|
1407
|
-
"font-weight":
|
|
1408
|
-
transform: `translate(${
|
|
1409
|
-
"text-anchor":
|
|
1410
|
-
style: y({ opacity:
|
|
1411
|
-
}, w(
|
|
1405
|
+
"font-size": F.value.style.chart.xAxis.labels.fontSize,
|
|
1406
|
+
fill: F.value.style.chart.xAxis.labels.color,
|
|
1407
|
+
"font-weight": F.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1408
|
+
transform: `translate(${t.selectorX}, ${W.value.bottom + F.value.style.chart.xAxis.labels.offsetY}), rotate(${F.value.style.chart.xAxis.labels.rotation})`,
|
|
1409
|
+
"text-anchor": F.value.style.chart.xAxis.labels.rotation > 0 ? "start" : F.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1410
|
+
style: y({ opacity: M.value ? M.value.index === n ? 1 : .2 : 1 })
|
|
1411
|
+
}, w(t.label), 13, gt))])) : p("", !0)], !0)), 256))], 512)) : p("", !0),
|
|
1412
1412
|
h("g", null, [
|
|
1413
|
-
(b(!0), m(u, null, S(
|
|
1413
|
+
(b(!0), m(u, null, S(K.value, (e, t) => (b(), m("rect", {
|
|
1414
1414
|
x: e.x,
|
|
1415
1415
|
y: e.y,
|
|
1416
1416
|
width: e.width < 0 ? .1 : e.width,
|
|
1417
1417
|
height: e.height < 0 ? .1 : e.height,
|
|
1418
1418
|
fill: "transparent",
|
|
1419
|
-
onMouseenter: (t) =>
|
|
1420
|
-
onMouseleave: (t) =>
|
|
1421
|
-
onClick: () =>
|
|
1419
|
+
onMouseenter: (t) => Mn(e),
|
|
1420
|
+
onMouseleave: (t) => Nn(e),
|
|
1421
|
+
onClick: () => Pn(e)
|
|
1422
1422
|
}, null, 40, vt))), 256)),
|
|
1423
|
-
|
|
1423
|
+
F.value.style.chart.selector.show && M.value ? (b(), m("line", {
|
|
1424
1424
|
key: 0,
|
|
1425
|
-
x1:
|
|
1426
|
-
x2:
|
|
1427
|
-
y1:
|
|
1428
|
-
y2:
|
|
1429
|
-
stroke:
|
|
1430
|
-
"stroke-width":
|
|
1431
|
-
"stroke-dasharray":
|
|
1425
|
+
x1: M.value.selectorX,
|
|
1426
|
+
x2: M.value.selectorX,
|
|
1427
|
+
y1: M.value.y,
|
|
1428
|
+
y2: M.value.y + M.value.height - z.value / 2,
|
|
1429
|
+
stroke: F.value.style.chart.selector.stroke,
|
|
1430
|
+
"stroke-width": F.value.style.chart.selector.strokeWidth,
|
|
1431
|
+
"stroke-dasharray": F.value.style.chart.selector.strokeDasharray,
|
|
1432
1432
|
"stroke-linecap": "round",
|
|
1433
1433
|
style: { pointerEvents: "none" }
|
|
1434
1434
|
}, null, 8, yt)) : p("", !0),
|
|
1435
|
-
|
|
1435
|
+
M.value ? (b(!0), m(u, { key: 1 }, S(q.value, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.plots, (t, n) => (b(), m(u, null, [M.value && M.value.index === n ? (b(), m("circle", {
|
|
1436
1436
|
key: 0,
|
|
1437
1437
|
cx: t.x,
|
|
1438
1438
|
cy: t.y,
|
|
1439
|
-
stroke:
|
|
1440
|
-
"stroke-width":
|
|
1441
|
-
r:
|
|
1442
|
-
fill:
|
|
1439
|
+
stroke: F.value.style.chart.selector.dot.stroke,
|
|
1440
|
+
"stroke-width": F.value.style.chart.selector.dot.strokeWidth,
|
|
1441
|
+
r: F.value.style.chart.selector.dot.radius,
|
|
1442
|
+
fill: F.value.style.chart.selector.dot.useDatapointColor ? e.color : F.value.style.chart.selector.dot.fill,
|
|
1443
1443
|
style: { pointerEvents: "none" }
|
|
1444
|
-
}, null, 8, bt)) : p("", !0),
|
|
1444
|
+
}, null, 8, bt)) : p("", !0), M.value && M.value.index === n ? (b(), m("text", {
|
|
1445
1445
|
key: 1,
|
|
1446
|
-
x:
|
|
1447
|
-
p:
|
|
1446
|
+
x: In(t.x, T(oe)(F.value.style.chart.selector.labels.formatter, t.value, T(l)({
|
|
1447
|
+
p: F.value.style.chart.xAxis.labels.prefix,
|
|
1448
1448
|
v: t.value,
|
|
1449
|
-
s:
|
|
1450
|
-
r:
|
|
1451
|
-
})),
|
|
1452
|
-
y: t.y +
|
|
1453
|
-
"text-anchor":
|
|
1454
|
-
p:
|
|
1449
|
+
s: F.value.style.chart.xAxis.labels.suffix,
|
|
1450
|
+
r: F.value.style.chart.selector.labels.rounding
|
|
1451
|
+
})), F.value.style.chart.selector.labels.fontSize) ? t.x - F.value.style.chart.selector.labels.fontSize / 2 : t.x + F.value.style.chart.selector.labels.fontSize / 2,
|
|
1452
|
+
y: t.y + F.value.style.chart.selector.labels.fontSize / 3,
|
|
1453
|
+
"text-anchor": In(t.x, T(oe)(F.value.style.chart.selector.labels.formatter, t.value, T(l)({
|
|
1454
|
+
p: F.value.style.chart.xAxis.labels.prefix,
|
|
1455
1455
|
v: t.value,
|
|
1456
|
-
s:
|
|
1457
|
-
r:
|
|
1458
|
-
})),
|
|
1459
|
-
"font-size":
|
|
1460
|
-
fill:
|
|
1456
|
+
s: F.value.style.chart.xAxis.labels.suffix,
|
|
1457
|
+
r: F.value.style.chart.selector.labels.rounding
|
|
1458
|
+
})), F.value.style.chart.selector.labels.fontSize) ? "end" : "start",
|
|
1459
|
+
"font-size": F.value.style.chart.selector.labels.fontSize,
|
|
1460
|
+
fill: F.value.style.chart.selector.labels.color,
|
|
1461
1461
|
style: { pointerEvents: "none" }
|
|
1462
|
-
}, w(T(
|
|
1463
|
-
p:
|
|
1462
|
+
}, w(T(oe)(F.value.style.chart.selector.labels.formatter, t.value, T(l)({
|
|
1463
|
+
p: F.value.style.chart.xAxis.labels.prefix,
|
|
1464
1464
|
v: t.value,
|
|
1465
|
-
s:
|
|
1466
|
-
r:
|
|
1465
|
+
s: F.value.style.chart.xAxis.labels.suffix,
|
|
1466
|
+
r: F.value.style.chart.selector.labels.rounding
|
|
1467
1467
|
}))), 9, xt)) : p("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : p("", !0)
|
|
1468
1468
|
]),
|
|
1469
1469
|
C(e.$slots, "svg", { svg: {
|
|
1470
|
-
...
|
|
1471
|
-
drawingArea:
|
|
1472
|
-
isPrintingImg: T(
|
|
1473
|
-
isPrintingSvg:
|
|
1470
|
+
...U.value,
|
|
1471
|
+
drawingArea: W.value,
|
|
1472
|
+
isPrintingImg: T(fn) || T(pn) || en.value,
|
|
1473
|
+
isPrintingSvg: tn.value
|
|
1474
1474
|
} }, void 0, !0)
|
|
1475
1475
|
], 46, Xe)), e.$slots.hint ? (b(), m("div", St, [C(e.$slots, "hint", v(_({
|
|
1476
|
-
hint:
|
|
1477
|
-
isVisible:
|
|
1476
|
+
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1477
|
+
isVisible: nn.value
|
|
1478
1478
|
})), void 0, !0)])) : p("", !0)]),
|
|
1479
|
-
e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(_({ isPrinting: T(
|
|
1479
|
+
e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(_({ isPrinting: T(fn) || T(pn) || en.value || tn.value })), void 0, !0)])) : p("", !0),
|
|
1480
1480
|
h("div", {
|
|
1481
1481
|
ref_key: "chartLegend",
|
|
1482
|
-
ref:
|
|
1483
|
-
}, [C(e.$slots, "legend", { legend:
|
|
1484
|
-
key: `legend_${
|
|
1485
|
-
legendSet:
|
|
1486
|
-
config:
|
|
1487
|
-
isCursorPointer:
|
|
1488
|
-
onClickMarker:
|
|
1482
|
+
ref: Bt
|
|
1483
|
+
}, [C(e.$slots, "legend", { legend: Y.value }, () => [F.value.style.chart.legend.show ? (b(), f(Me, {
|
|
1484
|
+
key: `legend_${Gt.value}`,
|
|
1485
|
+
legendSet: Y.value,
|
|
1486
|
+
config: zn.value,
|
|
1487
|
+
isCursorPointer: I.value,
|
|
1488
|
+
onClickMarker: t[0] ||= ({ legend: e }) => bn(e.id)
|
|
1489
1489
|
}, Pe({
|
|
1490
|
-
item: E(({ legend: e }) => [T(
|
|
1490
|
+
item: E(({ legend: e }) => [T(L) ? p("", !0) : (b(), m("div", {
|
|
1491
1491
|
key: 0,
|
|
1492
|
-
style: y(`opacity:${
|
|
1492
|
+
style: y(`opacity:${J.value.includes(e.id) ? .5 : 1}`),
|
|
1493
1493
|
onClick: (t) => e.segregate()
|
|
1494
1494
|
}, w(e.name), 13, wt))]),
|
|
1495
|
-
legendToggle: E(() => [
|
|
1495
|
+
legendToggle: E(() => [Y.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !T(L) ? (b(), f(Oe, {
|
|
1496
1496
|
key: 0,
|
|
1497
|
-
backgroundColor:
|
|
1498
|
-
color:
|
|
1499
|
-
fontSize:
|
|
1500
|
-
checked:
|
|
1501
|
-
isCursorPointer:
|
|
1502
|
-
onToggle:
|
|
1497
|
+
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1498
|
+
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1499
|
+
fontSize: F.value.style.chart.legend.fontSize,
|
|
1500
|
+
checked: J.value.length > 0,
|
|
1501
|
+
isCursorPointer: I.value,
|
|
1502
|
+
onToggle: yn
|
|
1503
1503
|
}, null, 8, [
|
|
1504
1504
|
"backgroundColor",
|
|
1505
1505
|
"color",
|
|
@@ -1518,7 +1518,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1518
1518
|
x: 30,
|
|
1519
1519
|
y: 30
|
|
1520
1520
|
},
|
|
1521
|
-
fill: `url(#pattern_${
|
|
1521
|
+
fill: `url(#pattern_${j.value}_${t})`
|
|
1522
1522
|
}, null, 8, ["shape", "fill"])]),
|
|
1523
1523
|
key: "0"
|
|
1524
1524
|
} : void 0]), 1032, [
|
|
@@ -1529,31 +1529,31 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1529
1529
|
e.$slots.source ? (b(), m("div", {
|
|
1530
1530
|
key: 6,
|
|
1531
1531
|
ref_key: "source",
|
|
1532
|
-
ref:
|
|
1532
|
+
ref: Vt,
|
|
1533
1533
|
dir: "auto"
|
|
1534
1534
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1535
|
-
|
|
1535
|
+
Lt.value && F.value.userOptions.buttons.table ? (b(), f(Ve($n.value.component), Le({ key: 7 }, $n.value.props, {
|
|
1536
1536
|
ref_key: "tableUnit",
|
|
1537
|
-
ref:
|
|
1537
|
+
ref: Qt,
|
|
1538
1538
|
onClose: er
|
|
1539
1539
|
}), Pe({
|
|
1540
1540
|
content: E(() => [(b(), f(T(kt), {
|
|
1541
|
-
key: `table_${
|
|
1541
|
+
key: `table_${Wt.value}`,
|
|
1542
1542
|
colNames: Q.value.colNames,
|
|
1543
1543
|
head: Q.value.head,
|
|
1544
1544
|
body: Q.value.body,
|
|
1545
1545
|
config: Q.value.config,
|
|
1546
|
-
title:
|
|
1547
|
-
withCloseButton: !
|
|
1548
|
-
isCursorPointer:
|
|
1546
|
+
title: F.value.table.useDialog ? "" : $n.value.title,
|
|
1547
|
+
withCloseButton: !F.value.table.useDialog,
|
|
1548
|
+
isCursorPointer: I.value,
|
|
1549
1549
|
onClose: er
|
|
1550
1550
|
}, {
|
|
1551
1551
|
th: E(({ th: e }) => [h("div", { innerHTML: e }, null, 8, Tt)]),
|
|
1552
|
-
td: E(({ td: e }) => [Fe(w(e.name ? e.name : T(
|
|
1553
|
-
p:
|
|
1552
|
+
td: E(({ td: e }) => [Fe(w(e.name ? e.name : T(oe)(F.value.style.chart.selector.labels.formatter, e, T(l)({
|
|
1553
|
+
p: F.value.style.chart.xAxis.labels.prefix,
|
|
1554
1554
|
v: e,
|
|
1555
|
-
s:
|
|
1556
|
-
r:
|
|
1555
|
+
s: F.value.style.chart.xAxis.labels.suffix,
|
|
1556
|
+
r: F.value.table.td.roundingValue
|
|
1557
1557
|
}))), 1)]),
|
|
1558
1558
|
_: 1
|
|
1559
1559
|
}, 8, [
|
|
@@ -1566,42 +1566,42 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1566
1566
|
"isCursorPointer"
|
|
1567
1567
|
]))]),
|
|
1568
1568
|
_: 2
|
|
1569
|
-
}, [
|
|
1569
|
+
}, [F.value.table.useDialog ? {
|
|
1570
1570
|
name: "title",
|
|
1571
1571
|
fn: E(() => [Fe(w($n.value.title), 1)]),
|
|
1572
1572
|
key: "0"
|
|
1573
|
-
} : void 0,
|
|
1573
|
+
} : void 0, F.value.table.useDialog ? {
|
|
1574
1574
|
name: "actions",
|
|
1575
1575
|
fn: E(() => [h("button", {
|
|
1576
1576
|
tabindex: "0",
|
|
1577
1577
|
class: "vue-ui-user-options-button",
|
|
1578
|
-
onClick:
|
|
1579
|
-
style: y({ cursor:
|
|
1578
|
+
onClick: t[1] ||= (e) => Xn(F.value.userOptions.callbacks.csv),
|
|
1579
|
+
style: y({ cursor: I.value ? "pointer" : "default" })
|
|
1580
1580
|
}, [Ie(T(Dt), {
|
|
1581
1581
|
name: "fileCsv",
|
|
1582
1582
|
stroke: $n.value.props.color
|
|
1583
1583
|
}, null, 8, ["stroke"])], 4)]),
|
|
1584
1584
|
key: "1"
|
|
1585
1585
|
} : void 0]), 1040)) : p("", !0),
|
|
1586
|
-
|
|
1586
|
+
F.value.style.chart.dialog.show ? (b(), f(T(Nt), {
|
|
1587
1587
|
key: 8,
|
|
1588
1588
|
ref_key: "dialog",
|
|
1589
|
-
ref:
|
|
1590
|
-
onClose:
|
|
1591
|
-
backgroundColor:
|
|
1592
|
-
color:
|
|
1593
|
-
headerBg:
|
|
1594
|
-
headerColor:
|
|
1595
|
-
isFullscreen:
|
|
1596
|
-
fullscreenParent:
|
|
1597
|
-
isCursorPointer:
|
|
1589
|
+
ref: Yt,
|
|
1590
|
+
onClose: t[2] ||= (e) => N.value = null,
|
|
1591
|
+
backgroundColor: F.value.style.chart.dialog.backgroundColor,
|
|
1592
|
+
color: F.value.style.chart.dialog.color,
|
|
1593
|
+
headerBg: F.value.style.chart.dialog.header.backgroundColor,
|
|
1594
|
+
headerColor: F.value.style.chart.dialog.header.color,
|
|
1595
|
+
isFullscreen: X.value,
|
|
1596
|
+
fullscreenParent: O.value,
|
|
1597
|
+
isCursorPointer: I.value,
|
|
1598
1598
|
withPadding: ""
|
|
1599
1599
|
}, {
|
|
1600
|
-
title: E(() => [Fe(w(
|
|
1601
|
-
content: E(() => [
|
|
1600
|
+
title: E(() => [Fe(w(N.value.name), 1)]),
|
|
1601
|
+
content: E(() => [N.value ? (b(), f(T(Et), {
|
|
1602
1602
|
key: 0,
|
|
1603
|
-
config:
|
|
1604
|
-
dataset:
|
|
1603
|
+
config: Vn.value,
|
|
1604
|
+
dataset: Hn.value,
|
|
1605
1605
|
onCopyAlt: sr
|
|
1606
1606
|
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1607
1607
|
_: 1
|
|
@@ -1614,7 +1614,7 @@ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye
|
|
|
1614
1614
|
"fullscreenParent",
|
|
1615
1615
|
"isCursorPointer"
|
|
1616
1616
|
])) : p("", !0),
|
|
1617
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1617
|
+
C(e.$slots, "skeleton", {}, () => [T(L) ? (b(), f(_e, { key: 0 })) : p("", !0)], !0)
|
|
1618
1618
|
], 46, qe));
|
|
1619
1619
|
}
|
|
1620
1620
|
}, [["__scopeId", "data-v-ca7f8c0d"]]);
|