vue-data-ui 3.10.0 → 3.10.2
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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -0,0 +1,1306 @@
|
|
|
1
|
+
import { defineAsyncComponent as S, computed as c, ref as u, shallowRef as uo, toRefs as mt, onBeforeUnmount as co, watch as oe, nextTick as De, watchEffect as pt, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as F, normalizeClass as ne, createBlock as _, createCommentVNode as v, renderSlot as C, createElementVNode as f, withCtx as d, normalizeProps as B, guardReactiveProps as E, createSlots as $e, createVNode as _e, Fragment as A, renderList as p, mergeProps as Be, toDisplayString as V, resolveDynamicComponent as kt, createTextVNode as Ee } from "vue";
|
|
2
|
+
import { c as Te, t as xt, k as wt, m as Ft, j as ie, at as ho, V as Dt, C as vo, A as $t, ah as _t, X as Bt, x as Et, $ as Tt, a as ue, d as ce, i as Lt, g as Le, l as Co, o as St, v as zt, r as Ot, aa as Mt } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as go, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nt, a as Se } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as Rt, B as It } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as Vt } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as Ht } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as Xt } from "./useTimeLabels-DKoynYae.js";
|
|
9
|
+
import { u as Ut } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as Wt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import Yt from "./Legend-DN5UJOBH.js";
|
|
14
|
+
import qt from "./Title-NgeRXqRA.js";
|
|
15
|
+
import { _ as Jt } from "./Shape-PzdCMGsP.js";
|
|
16
|
+
import Kt from "./img-6fNF_rG0.js";
|
|
17
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const fo = { userOptions: { show: !1 }, style: { chart: { dialog: { xyChart: { chart: { userOptions: { show: !1 }, legend: { show: !1 } } } } } } }, bo = { userOptions: { show: !1 }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, areas: { stroke: { color: "#1A1A1A" } }, dialog: { backgroundColor: "#1A1A1A", color: "#CCCCCC", header: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, xyChart: { chart: { userOptions: { show: !1 }, backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" }, xAxis: { showBaseline: !1 } } }, legend: { show: !1, color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" }, selector: { stroke: "#CCCCCC", dot: { fill: "#CCCCCC", stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" } }, xAxis: { labels: { color: "#CCCCCC" } }, yAxis: { labels: { color: "#CCCCCC" } }, zeroLine: { stroke: "#5A5A5A" } } } }, Ao = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, areas: { stroke: { color: "#1A1A1A" } }, dialog: { backgroundColor: "#1A1A1A", color: "#CCCCCC", header: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, xyChart: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, selector: { stroke: "#CCCCCC", dot: { fill: "#CCCCCC", stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" } }, xAxis: { labels: { color: "#CCCCCC" } }, yAxis: { labels: { color: "#CCCCCC" } }, zeroLine: { stroke: "#5A5A5A" } } } }, yo = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, areas: { stroke: { color: "#8F837A" } }, dialog: { backgroundColor: "#FFF8E1", color: "#424242", header: { backgroundColor: "#FFF8E1", color: "#424242" }, xyChart: { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#424242", indicatorColor: "#FF8A65" } }, highlighter: { color: "#424242" }, timeTag: { backgroundColor: "#424242", color: "#FFF8E1", circleMarker: { color: "#424242" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#424242", xAxisLabels: { color: "#424242" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#FFF8E1" }, labels: { color: "#424242" }, serieName: { color: "#424242" } }, line: { labels: { color: "#424242" } }, plot: { labels: { color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, selector: { stroke: "#FF8A65", dot: { fill: "#424242", stroke: "#FFF8E1" }, labels: { color: "#424242" } }, xAxis: { labels: { color: "#424242" } }, yAxis: { labels: { color: "#424242" } }, zeroLine: { stroke: "#5D4037" } } } }, mo = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, areas: { stroke: { color: "#8F837A" } }, dialog: { backgroundColor: "#1E1E1E", color: "#BDBDBD", header: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, xyChart: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#FF6B6B", indicatorColor: "#FF8A65" } }, highlighter: { color: "#FFF8E1" }, timeTag: { backgroundColor: "#5D4037", color: "#FFF8E1", circleMarker: { color: "#5D4037" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#BDBDBD", xAxisLabels: { color: "#BDBDBD" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" }, serieName: { color: "#BDBDBD" } }, line: { labels: { color: "#BDBDBD" } }, plot: { labels: { color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, selector: { stroke: "#FF8A65", dot: { fill: "#424242", stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" } }, xAxis: { labels: { color: "#BDBDBD" } }, yAxis: { labels: { color: "#BDBDBD" } }, zeroLine: { stroke: "#5D4037" } } } }, po = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, areas: { stroke: { color: "#66CC66" } }, dialog: { backgroundColor: "#1A1A1A", color: "#99AA99", header: { backgroundColor: "#1A1A1A", color: "#99AA99" }, xyChart: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, timeTag: { backgroundColor: "#1A1A1A", color: "#66CC66", circleMarker: { color: "#66CC66" } }, grid: { stroke: "#5F6A5F", showVerticalLines: !1, labels: { color: "#99AA99", xAxisLabels: { color: "#99AA99" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, bar: { borderRadius: 0, border: { stroke: "#66CC66" }, labels: { color: "#AACCAA" }, serieName: { color: "#99CC99" } }, line: { labels: { color: "#AACCAA" } }, plot: { labels: { color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, selector: { stroke: "#99AA99", dot: { fill: "#4A4A4A", stroke: "#1A1A1A" }, labels: { color: "#99AA99" } }, xAxis: { labels: { color: "#99AA99" } }, yAxis: { labels: { color: "#99AA99" } }, zeroLine: { stroke: "#2A2A2A" } } } }, ko = { table: { th: { backgroundColor: "#fbfafa", color: "#8A9892" }, td: { backgroundColor: "#fbfafa", color: "#8A9892" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, areas: { stroke: { color: "#8F837A" } }, dialog: { backgroundColor: "#fbfafa", color: "#8A9892", header: { backgroundColor: "#fbfafa", color: "#8A9892" }, xyChart: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, timeTag: { backgroundColor: "#fbfafa", color: "#8A9892", circleMarker: { color: "#8A9892" } }, grid: { stroke: "transparent", labels: { show: !1, color: "#99AA99", xAxisLabels: { show: !1, color: "#99AA99" }, zeroLine: { show: !1 }, yAxis: { showBaseline: !1 } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, bar: { borderRadius: 4, border: { stroke: "#D7E0D2" }, labels: { color: "#8F837A" }, serieName: { color: "#858480" } }, line: { labels: { color: "#8F837A" } }, plot: { labels: { color: "#8F837A" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } } }, legend: { backgroundColor: "#fbfafa", color: "#8A9892" }, selector: { stroke: "#8F837A", dot: { fill: "#8F837A", stroke: "#fbfafa" }, labels: { color: "#8F837A" } }, xAxis: { labels: { color: "#8F837A" } }, yAxis: { labels: { color: "#8F837A" } }, zeroLine: { stroke: "#8F837A" } } } }, xo = { table: { th: { backgroundColor: "#fbfafa", color: "#8A9892" }, td: { backgroundColor: "#fbfafa", color: "#8A9892" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, areas: { stroke: { color: "#829C98" } }, dialog: { backgroundColor: "#f6f6fb", color: "#50606C", header: { backgroundColor: "#f6f6fb", color: "#50606C" }, xyChart: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, timeTag: { backgroundColor: "#f6f6fb", color: "#50606C", circleMarker: { color: "#50606C" } }, grid: { stroke: "#829C98", showVerticalLines: !0, showHorizontalLines: !0, labels: { color: "#50606C", xAxisLabels: { color: "#50606C" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, bar: { borderRadius: 2, border: { stroke: "#404C4D" }, labels: { color: "#50606C" }, serieName: { color: "#61747E" } }, line: { labels: { color: "#50606C" } }, plot: { labels: { color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } } }, legend: { backgroundColor: "#f6f6fb", color: "#50606C" }, selector: { stroke: "#7DA9B5", dot: { fill: "#7DA9B5", stroke: "#f6f6fb" }, labels: { color: "#50606C" } }, xAxis: { labels: { color: "#50606C" } }, yAxis: { labels: { color: "#50606C" } }, zeroLine: { stroke: "#829C98" } } } }, wo = {
|
|
19
|
+
default: {},
|
|
20
|
+
minimal: fo,
|
|
21
|
+
minimalDark: bo,
|
|
22
|
+
dark: Ao,
|
|
23
|
+
celebration: yo,
|
|
24
|
+
celebrationNight: mo,
|
|
25
|
+
hack: po,
|
|
26
|
+
zen: ko,
|
|
27
|
+
concrete: xo
|
|
28
|
+
}, Yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
+
__proto__: null,
|
|
30
|
+
celebration: yo,
|
|
31
|
+
celebrationNight: mo,
|
|
32
|
+
concrete: xo,
|
|
33
|
+
dark: Ao,
|
|
34
|
+
default: wo,
|
|
35
|
+
hack: po,
|
|
36
|
+
minimal: fo,
|
|
37
|
+
minimalDark: bo,
|
|
38
|
+
zen: ko
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), Zt = ["id"], el = ["xmlns", "viewBox"], ol = ["id"], tl = ["stop-color"], ll = ["stop-color"], al = ["stop-color"], rl = ["stop-color"], sl = ["id"], nl = ["stop-color"], il = ["stop-color"], ul = ["stop-color"], cl = ["stop-color"], dl = { key: 0 }, hl = ["fill", "d"], vl = ["stroke", "stroke-width", "d"], Cl = ["fill", "d"], gl = ["stroke", "stroke-dasharray", "stroke-width", "d"], fl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Al = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], yl = { key: 0 }, ml = ["font-size", "fill", "font-weight", "transform", "text-anchor"], pl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], kl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], wl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Fl = ["x", "y", "text-anchor", "font-size", "fill"], Dl = {
|
|
40
|
+
key: 4,
|
|
41
|
+
class: "vue-data-ui-watermark"
|
|
42
|
+
}, $l = ["onClick"], _l = ["innerHTML"], Bl = {
|
|
43
|
+
__name: "vue-ui-ridgeline",
|
|
44
|
+
props: {
|
|
45
|
+
config: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default() {
|
|
48
|
+
return {};
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
dataset: {
|
|
52
|
+
type: Array,
|
|
53
|
+
default() {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
59
|
+
setup(Fo, { expose: Do, emit: $o }) {
|
|
60
|
+
const _o = S(() => import("./vue-ui-xy-spqKboQb.js").then((o) => o.a)), Bo = S(() => import("./BaseIcon-4uOct8re.js")), Eo = S(() => import("./vue-ui-accordion-DFKaB_05.js")), To = S(() => import("./DataTable-DyoDzNNY.js")), Lo = S(() => import("./PenAndPaper-LTuSTmWE.js")), So = S(() => import("./UserOptions-CX7Xsusk.js")), zo = S(() => import("./PackageVersion-CQxJyGQr.js")), ze = S(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_ridgeline: Oo } = Nt(), { isThemeValid: Mo, warnInvalidTheme: Po } = Ut(), z = Fo, G = c({
|
|
61
|
+
get() {
|
|
62
|
+
return Array.isArray(M.value) && M.value.length > 0;
|
|
63
|
+
},
|
|
64
|
+
set(o) {
|
|
65
|
+
return o;
|
|
66
|
+
}
|
|
67
|
+
}), de = $o, D = u(null), Oe = u(null), Me = u(null), T = uo(null), O = uo(null), Pe = u(null), Ne = u(null), he = u(0), No = u(0), ve = u(0), k = u(Te()), Re = u(0), Ro = u(0), Ie = u(512), g = u(null), H = u(null), Ce = u(null), Ve = u(0), ge = u(null), W = u(null), fe = u(null);
|
|
68
|
+
function be() {
|
|
69
|
+
const o = Se({
|
|
70
|
+
userConfig: z.config,
|
|
71
|
+
defaultConfig: Oo
|
|
72
|
+
}), l = o.theme;
|
|
73
|
+
if (!l) return o;
|
|
74
|
+
if (!Mo.value(o))
|
|
75
|
+
return Po(o), o;
|
|
76
|
+
const t = Se({
|
|
77
|
+
userConfig: wo[l] || z.config,
|
|
78
|
+
defaultConfig: o
|
|
79
|
+
}), r = Se({
|
|
80
|
+
userConfig: z.config,
|
|
81
|
+
defaultConfig: t
|
|
82
|
+
});
|
|
83
|
+
return {
|
|
84
|
+
...r,
|
|
85
|
+
customPalette: r.customPalette.length ? r.customPalette : Lt[l] || ie
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const e = u(be()), { loading: Y, FINAL_DATASET: M, manualLoading: Ae } = Rt({
|
|
89
|
+
...mt(z),
|
|
90
|
+
FINAL_CONFIG: e,
|
|
91
|
+
prepareConfig: be,
|
|
92
|
+
skeletonDataset: [
|
|
93
|
+
{
|
|
94
|
+
name: "_",
|
|
95
|
+
datapoints: [
|
|
96
|
+
{
|
|
97
|
+
name: "__",
|
|
98
|
+
color: "#999999",
|
|
99
|
+
values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "_",
|
|
103
|
+
color: "#CACACA",
|
|
104
|
+
values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "_",
|
|
110
|
+
datapoints: [
|
|
111
|
+
{
|
|
112
|
+
name: "_",
|
|
113
|
+
color: "#999999",
|
|
114
|
+
values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "_",
|
|
118
|
+
color: "#CACACA",
|
|
119
|
+
values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "_",
|
|
125
|
+
datapoints: [
|
|
126
|
+
{
|
|
127
|
+
name: "_",
|
|
128
|
+
color: "#999999",
|
|
129
|
+
values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "_",
|
|
133
|
+
color: "#CACACA",
|
|
134
|
+
values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "_",
|
|
140
|
+
datapoints: [
|
|
141
|
+
{
|
|
142
|
+
name: "_",
|
|
143
|
+
color: "#999999",
|
|
144
|
+
values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: "_",
|
|
148
|
+
color: "#CACACA",
|
|
149
|
+
values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "_",
|
|
155
|
+
datapoints: [
|
|
156
|
+
{
|
|
157
|
+
name: "_",
|
|
158
|
+
color: "#999999",
|
|
159
|
+
values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "_",
|
|
163
|
+
color: "#CACACA",
|
|
164
|
+
values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "_",
|
|
170
|
+
datapoints: [
|
|
171
|
+
{
|
|
172
|
+
name: "_",
|
|
173
|
+
color: "#999999",
|
|
174
|
+
values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "_",
|
|
178
|
+
color: "#CACACA",
|
|
179
|
+
values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
skeletonConfig: xt({
|
|
185
|
+
defaultConfig: e.value,
|
|
186
|
+
userConfig: {
|
|
187
|
+
userOptions: { show: !1 },
|
|
188
|
+
table: { show: !1 },
|
|
189
|
+
style: {
|
|
190
|
+
chart: {
|
|
191
|
+
backgroundColor: "#99999930",
|
|
192
|
+
areas: {
|
|
193
|
+
maxPoint: {
|
|
194
|
+
show: !1
|
|
195
|
+
},
|
|
196
|
+
opacity: 0.9,
|
|
197
|
+
stroke: {
|
|
198
|
+
useSerieColor: !0
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
legend: {
|
|
202
|
+
backgroundColor: "transparent"
|
|
203
|
+
},
|
|
204
|
+
padding: {
|
|
205
|
+
right: -24,
|
|
206
|
+
left: 0
|
|
207
|
+
},
|
|
208
|
+
xAxis: {
|
|
209
|
+
labels: {
|
|
210
|
+
values: []
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
yAxis: {
|
|
214
|
+
labels: {
|
|
215
|
+
fontSize: 0
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
zeroLine: { show: !1 }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
})
|
|
223
|
+
}), x = u(Math.min(
|
|
224
|
+
e.value.style.chart.areas.height,
|
|
225
|
+
e.value.style.chart.areas.rowHeight
|
|
226
|
+
)), {
|
|
227
|
+
userOptionsVisible: te,
|
|
228
|
+
setUserOptionsVisibility: He,
|
|
229
|
+
keepUserOptionState: Xe
|
|
230
|
+
} = jt({ config: e.value }), { svgRef: le } = Gt({ config: e.value.style.chart.title }), ye = c(() => !!e.value.debug);
|
|
231
|
+
function Ue() {
|
|
232
|
+
const o = M.value || [];
|
|
233
|
+
if (!Array.isArray(o) || o.length === 0) {
|
|
234
|
+
Le({ componentName: "VueUiRidgeline", type: "dataset", debug: ye.value }), Ae.value = !0;
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (o.forEach((l, t) => {
|
|
238
|
+
Co({
|
|
239
|
+
datasetObject: l,
|
|
240
|
+
requiredAttributes: ["name", "datapoints"]
|
|
241
|
+
}).forEach((r) => {
|
|
242
|
+
G.value = !1, Le({
|
|
243
|
+
componentName: "VueUiRidgeline",
|
|
244
|
+
type: "datasetSerieAttribute",
|
|
245
|
+
property: r,
|
|
246
|
+
index: t,
|
|
247
|
+
debug: ye.value
|
|
248
|
+
});
|
|
249
|
+
}), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((r, a) => {
|
|
250
|
+
Co({
|
|
251
|
+
datasetObject: r,
|
|
252
|
+
requiredAttributes: ["name", "values"]
|
|
253
|
+
}).forEach((h) => {
|
|
254
|
+
G.value = !1, Le({
|
|
255
|
+
componentName: "VueUiRidgeline",
|
|
256
|
+
type: "datasetSerieAttribute",
|
|
257
|
+
property: `datapoint.${h}`,
|
|
258
|
+
index: `${t}-${a}`,
|
|
259
|
+
debug: ye.value
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
}), Ro.value = o.length, x.value = Math.min(
|
|
264
|
+
e.value.style.chart.areas.height,
|
|
265
|
+
e.value.style.chart.areas.rowHeight
|
|
266
|
+
), St(z.dataset) || (Ae.value = e.value.loading), e.value.responsive) {
|
|
267
|
+
const l = go(() => {
|
|
268
|
+
const { width: t, height: r } = Pt({
|
|
269
|
+
chart: D.value,
|
|
270
|
+
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
271
|
+
legend: e.value.style.chart.legend.show ? Me.value : null,
|
|
272
|
+
source: Pe.value,
|
|
273
|
+
noTitle: Ne.value,
|
|
274
|
+
padding: e.value.style.chart.padding
|
|
275
|
+
});
|
|
276
|
+
requestAnimationFrame(() => {
|
|
277
|
+
Ie.value = t, x.value = o.length ? r / o.length : 0, Ve.value = r - 12;
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
T.value && (O.value && T.value.unobserve(O.value), T.value.disconnect()), T.value = new ResizeObserver(l), O.value = D.value?.parentNode || null, O.value && T.value.observe(O.value);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
co(() => {
|
|
284
|
+
T.value && (O.value && T.value.unobserve(O.value), T.value.disconnect());
|
|
285
|
+
});
|
|
286
|
+
const { isPrinting: je, isImaging: Ge, generatePdf: We, generateImage: Ye } = Vt({
|
|
287
|
+
elementId: `vue-ui-ridgeline_${k.value}`,
|
|
288
|
+
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
289
|
+
options: e.value.userOptions.print
|
|
290
|
+
}), Io = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Vo = c(() => wt(e.value.customPalette)), P = u({
|
|
291
|
+
showTable: e.value.table.show
|
|
292
|
+
});
|
|
293
|
+
oe(
|
|
294
|
+
() => M.value,
|
|
295
|
+
async (o) => {
|
|
296
|
+
Array.isArray(o) && o.length && (te.value = !e.value.userOptions.showOnChartHover, await De(), Ue(), he.value += 1, ve.value += 1, P.value.showTable = e.value.table.show);
|
|
297
|
+
},
|
|
298
|
+
{ deep: !0, immediate: !0 }
|
|
299
|
+
), oe(() => z.dataset, (o) => {
|
|
300
|
+
Array.isArray(o) && o.length > 0 && (Ae.value = !1);
|
|
301
|
+
}, { deep: !0 }), oe(
|
|
302
|
+
() => Y.value,
|
|
303
|
+
async (o) => {
|
|
304
|
+
o || (await De(), Ue());
|
|
305
|
+
},
|
|
306
|
+
{ immediate: !0 }
|
|
307
|
+
), oe(
|
|
308
|
+
() => z.config,
|
|
309
|
+
() => {
|
|
310
|
+
e.value = be(M.value || null), te.value = !e.value.userOptions.showOnChartHover, x.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), P.value.showTable = e.value.table.show, he.value += 1, ve.value += 1;
|
|
311
|
+
},
|
|
312
|
+
{ deep: !0 }
|
|
313
|
+
);
|
|
314
|
+
const me = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
315
|
+
function ae(o) {
|
|
316
|
+
w.value.includes(o) ? w.value = w.value.filter((l) => l !== o) : w.value.push(o), de("selectLegend", U.value);
|
|
317
|
+
}
|
|
318
|
+
function qe(o) {
|
|
319
|
+
if (!j.value.length)
|
|
320
|
+
return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
|
|
321
|
+
const l = j.value.find((t) => t.name === o);
|
|
322
|
+
return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${o}"`), null);
|
|
323
|
+
}
|
|
324
|
+
function Ho(o) {
|
|
325
|
+
const l = qe(o);
|
|
326
|
+
l !== null && w.value.includes(l.id) && ae(l.id);
|
|
327
|
+
}
|
|
328
|
+
function Xo(o) {
|
|
329
|
+
const l = qe(o);
|
|
330
|
+
l !== null && (w.value.includes(l.id) || ae(l.id));
|
|
331
|
+
}
|
|
332
|
+
const L = c(() => G.value ? (M.value || []).map((o) => ({
|
|
333
|
+
...o,
|
|
334
|
+
labelLen: Ko(o.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
335
|
+
uid: Te(),
|
|
336
|
+
datapoints: o.datapoints.map((l, t) => {
|
|
337
|
+
const r = l.color ? Ft(l.color) : Vo.value[t] || ie[t] || ie[t % ie.length], a = ho(l.name);
|
|
338
|
+
return { ...l, color: r, id: a };
|
|
339
|
+
})
|
|
340
|
+
})) : []), Je = c(() => e.value.style.chart.padding.top + x.value * (M.value || []).length + x.value * me.value + e.value.style.chart.padding.bottom), b = c(() => {
|
|
341
|
+
const o = e.value.style.chart.padding;
|
|
342
|
+
return {
|
|
343
|
+
width: Ie.value,
|
|
344
|
+
height: Je.value,
|
|
345
|
+
padding: o
|
|
346
|
+
};
|
|
347
|
+
}), Uo = c(() => b.value.width), jo = c(() => b.value.height), pe = u(0), Go = go((o) => {
|
|
348
|
+
pe.value = o;
|
|
349
|
+
}, 100);
|
|
350
|
+
pt((o) => {
|
|
351
|
+
const l = ge.value;
|
|
352
|
+
if (!l) return;
|
|
353
|
+
const t = new ResizeObserver((r) => {
|
|
354
|
+
Go(r[0].contentRect.height);
|
|
355
|
+
});
|
|
356
|
+
t.observe(l), o(() => t.disconnect());
|
|
357
|
+
}), co(() => {
|
|
358
|
+
pe.value = 0;
|
|
359
|
+
});
|
|
360
|
+
const y = c(() => ({
|
|
361
|
+
fullHeight: b.value.height + pe.value,
|
|
362
|
+
top: b.value.padding.top,
|
|
363
|
+
left: b.value.padding.left,
|
|
364
|
+
right: b.value.width - b.value.padding.right,
|
|
365
|
+
bottom: b.value.height - e.value.style.chart.padding.bottom,
|
|
366
|
+
width: b.value.width - (b.value.padding.left + b.value.padding.right)
|
|
367
|
+
})), q = c(() => Math.max(...L.value.flatMap((o) => o.datapoints.map((l) => l.values.length)))), J = c(() => Xt({
|
|
368
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
369
|
+
maxDatapoints: q.value,
|
|
370
|
+
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
371
|
+
start: 0,
|
|
372
|
+
end: e.value.style.chart.xAxis.labels.values.length
|
|
373
|
+
})), X = c(() => {
|
|
374
|
+
const o = Math.max(...L.value.map((a) => a.labelLen)), l = b.value.padding.left + o + 16 + e.value.style.chart.yAxis.labels.offsetX, t = (y.value.width - l) / q.value, r = [];
|
|
375
|
+
for (let a = 0; a < q.value; a += 1)
|
|
376
|
+
r.push({
|
|
377
|
+
selectorX: l + t * a,
|
|
378
|
+
x: l + t * a - t / 2,
|
|
379
|
+
y: y.value.top,
|
|
380
|
+
label: e.value.style.chart.xAxis.labels.values[a] ? J.value[a].text : "",
|
|
381
|
+
index: a,
|
|
382
|
+
width: t,
|
|
383
|
+
height: Je.value
|
|
384
|
+
});
|
|
385
|
+
return r;
|
|
386
|
+
});
|
|
387
|
+
function ke(o) {
|
|
388
|
+
return L.value.map((l) => l.datapoints.map((t) => ({
|
|
389
|
+
dp: t,
|
|
390
|
+
selected: t.values[o.index]
|
|
391
|
+
})));
|
|
392
|
+
}
|
|
393
|
+
function Wo(o) {
|
|
394
|
+
g.value = o;
|
|
395
|
+
const l = ke(o);
|
|
396
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: o.index });
|
|
397
|
+
}
|
|
398
|
+
function Yo(o) {
|
|
399
|
+
g.value = null;
|
|
400
|
+
const l = ke(o);
|
|
401
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o.index });
|
|
402
|
+
}
|
|
403
|
+
function qo(o) {
|
|
404
|
+
const l = ke(o);
|
|
405
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o.index }), de("selectX", l);
|
|
406
|
+
}
|
|
407
|
+
function Jo(o, l) {
|
|
408
|
+
return o.length * l / 2 + l;
|
|
409
|
+
}
|
|
410
|
+
function Ke(o, l, t) {
|
|
411
|
+
const r = Jo(l, t);
|
|
412
|
+
return o + r > y.value.right;
|
|
413
|
+
}
|
|
414
|
+
function Ko(o, l, t = "sans-serif") {
|
|
415
|
+
const a = document.createElement("canvas").getContext("2d"), h = typeof l == "number" ? `${l}px` : l;
|
|
416
|
+
return a.font = `${h} ${t}`, a.measureText(o).width;
|
|
417
|
+
}
|
|
418
|
+
const U = c(() => {
|
|
419
|
+
x.value;
|
|
420
|
+
const o = Math.max(...L.value.map((m) => m.labelLen)), l = Math.max(...L.value.flatMap((m) => m.datapoints.flatMap((Q) => Q.values))), t = Math.min(...L.value.flatMap((m) => m.datapoints.flatMap((Q) => Q.values))), r = b.value.padding.left + o + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (y.value.width - r) / q.value, h = Math.abs(Math.min(t, 0)), $ = l + h;
|
|
421
|
+
function ro(m) {
|
|
422
|
+
return isNaN(m / $) ? 0 : m / $;
|
|
423
|
+
}
|
|
424
|
+
return L.value.map((m, Q) => {
|
|
425
|
+
const so = y.value.top + x.value * Q, R = y.value.top + so + x.value * me.value * (1 - ro(h));
|
|
426
|
+
return {
|
|
427
|
+
...m,
|
|
428
|
+
label: {
|
|
429
|
+
x: r - e.value.style.chart.yAxis.labels.fontSize,
|
|
430
|
+
y: R
|
|
431
|
+
},
|
|
432
|
+
datapoints: m.datapoints.map((Z) => {
|
|
433
|
+
const I = Z.values.map((ee, gt) => {
|
|
434
|
+
const ft = isNaN(ee) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(ee) ? 0 : ee || 0, bt = r + a * gt, At = y.value.top + so + x.value * me.value * (1 - ro(ft + h)), yt = ee === Math.max(...Z.values);
|
|
435
|
+
return {
|
|
436
|
+
x: bt,
|
|
437
|
+
y: At,
|
|
438
|
+
value: ee,
|
|
439
|
+
isMaxPoint: yt,
|
|
440
|
+
zero: R
|
|
441
|
+
};
|
|
442
|
+
}), dt = `${Dt(I, R, !1, !1)}`, ht = `M ${r},${R} ${vo(I)} ${I.at(-1).x},${R}`, vt = `M ${r},${R} ${I.at(-1).x},${R}`, no = `M ${$t(I)}`, io = `M ${vo(I)}`, Ct = _t(
|
|
443
|
+
e.value.style.chart.areas.smooth ? no : io
|
|
444
|
+
);
|
|
445
|
+
return {
|
|
446
|
+
...Z,
|
|
447
|
+
uid: Te(),
|
|
448
|
+
plots: I,
|
|
449
|
+
smoothPath: dt,
|
|
450
|
+
straightPath: ht,
|
|
451
|
+
zeroPath: vt,
|
|
452
|
+
pathLength: Ct,
|
|
453
|
+
smoothPathRidge: no,
|
|
454
|
+
straightPathRidge: io
|
|
455
|
+
};
|
|
456
|
+
}).filter((Z) => !w.value.includes(Z.id))
|
|
457
|
+
};
|
|
458
|
+
});
|
|
459
|
+
}), w = u([]);
|
|
460
|
+
function Qo(o) {
|
|
461
|
+
const l = /* @__PURE__ */ new Map();
|
|
462
|
+
return o.forEach((t) => {
|
|
463
|
+
t.datapoints.forEach((r, a) => {
|
|
464
|
+
const h = ho(r.name);
|
|
465
|
+
l.has(h) || l.set(h, {
|
|
466
|
+
id: h,
|
|
467
|
+
name: r.name,
|
|
468
|
+
color: r.color,
|
|
469
|
+
shape: "circle",
|
|
470
|
+
segregate: () => ae(h),
|
|
471
|
+
isSegregated: w.value.includes(h),
|
|
472
|
+
opacity: w.value.includes(h) ? 0.5 : 1
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
}), Array.from(l.values());
|
|
476
|
+
}
|
|
477
|
+
const j = c(() => Qo(L.value)), Zo = c(() => ({
|
|
478
|
+
cy: "donut-div-legend",
|
|
479
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
480
|
+
color: e.value.style.chart.legend.color,
|
|
481
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
482
|
+
paddingBottom: 12,
|
|
483
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
484
|
+
})), N = u(!1);
|
|
485
|
+
function Qe(o) {
|
|
486
|
+
N.value = o, Re.value += 1;
|
|
487
|
+
}
|
|
488
|
+
const Ze = u({}), eo = u([]);
|
|
489
|
+
function et(o) {
|
|
490
|
+
de("selectDatapoint", o), e.value.style.chart.dialog.show && (eo.value = o.datapoints.map((l) => ({
|
|
491
|
+
name: l.name,
|
|
492
|
+
color: l.color,
|
|
493
|
+
type: "line",
|
|
494
|
+
useArea: !0,
|
|
495
|
+
smooth: e.value.style.chart.areas.smooth,
|
|
496
|
+
series: l.values
|
|
497
|
+
})), H.value = o, Ze.value = Mt({
|
|
498
|
+
...e.value.style.chart.dialog.xyChart,
|
|
499
|
+
responsive: !0,
|
|
500
|
+
// Overriding
|
|
501
|
+
chart: {
|
|
502
|
+
...e.value.style.chart.dialog.xyChart.chart,
|
|
503
|
+
grid: {
|
|
504
|
+
...e.value.style.chart.dialog.xyChart.chart.grid,
|
|
505
|
+
labels: {
|
|
506
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
507
|
+
xAxisLabels: {
|
|
508
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
509
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
510
|
+
// Overriding
|
|
511
|
+
autoRotate: {
|
|
512
|
+
enable: !0,
|
|
513
|
+
angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
514
|
+
},
|
|
515
|
+
// overriding
|
|
516
|
+
datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
|
|
517
|
+
// Overriding
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
tooltip: {
|
|
522
|
+
...e.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
523
|
+
showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
|
|
524
|
+
// Overriding
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}), Ce.value && Ce.value.open());
|
|
528
|
+
}
|
|
529
|
+
const xe = u(null);
|
|
530
|
+
function ot(o) {
|
|
531
|
+
xe.value = o;
|
|
532
|
+
}
|
|
533
|
+
function tt() {
|
|
534
|
+
xe.value = null;
|
|
535
|
+
}
|
|
536
|
+
const re = u(!1);
|
|
537
|
+
function we() {
|
|
538
|
+
re.value = !re.value;
|
|
539
|
+
}
|
|
540
|
+
function oo() {
|
|
541
|
+
P.value.showTable = !P.value.showTable;
|
|
542
|
+
}
|
|
543
|
+
const to = c(() => ({ body: U.value.flatMap((t) => t.datapoints.flatMap((r) => ({
|
|
544
|
+
...r,
|
|
545
|
+
rowName: `${t.name}: ${r.name}`
|
|
546
|
+
}))).map((t) => [
|
|
547
|
+
{
|
|
548
|
+
name: t.rowName,
|
|
549
|
+
color: t.color
|
|
550
|
+
},
|
|
551
|
+
...t.values
|
|
552
|
+
]) })), se = c(() => {
|
|
553
|
+
const o = [
|
|
554
|
+
e.value.table.columnNames.series,
|
|
555
|
+
...J.value.map((r) => r.text)
|
|
556
|
+
], l = {
|
|
557
|
+
th: {
|
|
558
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
559
|
+
color: e.value.table.th.color,
|
|
560
|
+
outline: e.value.table.th.outline
|
|
561
|
+
},
|
|
562
|
+
td: {
|
|
563
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
564
|
+
color: e.value.table.td.color,
|
|
565
|
+
outline: e.value.table.td.outline
|
|
566
|
+
},
|
|
567
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
568
|
+
};
|
|
569
|
+
return {
|
|
570
|
+
colNames: [
|
|
571
|
+
e.value.table.columnNames.series,
|
|
572
|
+
...J.value.map((r) => r.text)
|
|
573
|
+
],
|
|
574
|
+
head: o,
|
|
575
|
+
body: to.value.body,
|
|
576
|
+
config: l
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
function Fe(o = null) {
|
|
580
|
+
De(() => {
|
|
581
|
+
const l = [
|
|
582
|
+
[e.value.table.columnNames.series, ...J.map((a) => [a.text])],
|
|
583
|
+
...to.value.body.map((a, h) => [a[0].name, ...a.slice(1)])
|
|
584
|
+
], t = [
|
|
585
|
+
[e.value.style.chart.title.text],
|
|
586
|
+
[e.value.style.chart.title.subtitle.text]
|
|
587
|
+
].concat(l), r = zt(t);
|
|
588
|
+
o ? o(r) : Ot({
|
|
589
|
+
csvContent: r,
|
|
590
|
+
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
591
|
+
});
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
function lt() {
|
|
595
|
+
return U.value;
|
|
596
|
+
}
|
|
597
|
+
async function at({ scale: o = 2 } = {}) {
|
|
598
|
+
if (!D.value) return;
|
|
599
|
+
const { width: l, height: t } = D.value.getBoundingClientRect(), r = l / t, { imageUri: a, base64: h } = await Kt({ domElement: D.value, base64: !0, img: !0, scale: o });
|
|
600
|
+
return {
|
|
601
|
+
imageUri: a,
|
|
602
|
+
base64: h,
|
|
603
|
+
title: e.value.style.chart.title.text,
|
|
604
|
+
width: l,
|
|
605
|
+
height: t,
|
|
606
|
+
aspectRatio: r
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
const rt = c(() => ({ min: 0, max: q.value }));
|
|
610
|
+
Wt({
|
|
611
|
+
timeLabelsEls: ge,
|
|
612
|
+
timeLabels: J,
|
|
613
|
+
slicer: rt,
|
|
614
|
+
configRef: e,
|
|
615
|
+
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
616
|
+
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
617
|
+
isAutoSize: !1,
|
|
618
|
+
width: Uo,
|
|
619
|
+
height: jo,
|
|
620
|
+
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
621
|
+
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
622
|
+
});
|
|
623
|
+
const K = c(() => {
|
|
624
|
+
const o = e.value.table.useDialog && !e.value.table.show, l = P.value.showTable;
|
|
625
|
+
return {
|
|
626
|
+
component: o ? ze : Eo,
|
|
627
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
628
|
+
props: o ? {
|
|
629
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
630
|
+
color: e.value.table.th.color,
|
|
631
|
+
headerColor: e.value.table.th.color,
|
|
632
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
633
|
+
isFullscreen: N.value,
|
|
634
|
+
fullscreenParent: D.value,
|
|
635
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
636
|
+
} : {
|
|
637
|
+
hideDetails: !0,
|
|
638
|
+
config: {
|
|
639
|
+
open: l,
|
|
640
|
+
maxHeight: 1e4,
|
|
641
|
+
body: {
|
|
642
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
643
|
+
color: e.value.style.chart.color
|
|
644
|
+
},
|
|
645
|
+
head: {
|
|
646
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
647
|
+
color: e.value.style.chart.color
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
});
|
|
653
|
+
oe(() => P.value.showTable, (o) => {
|
|
654
|
+
e.value.table.show || (o && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
|
|
655
|
+
});
|
|
656
|
+
function lo() {
|
|
657
|
+
P.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
|
|
658
|
+
}
|
|
659
|
+
const st = c(() => e.value.style.chart.backgroundColor), nt = c(() => ({
|
|
660
|
+
...e.value.style.chart.legend,
|
|
661
|
+
position: "bottom"
|
|
662
|
+
})), it = c(() => e.value.style.chart.title), { exportSvg: ut, getSvg: ct } = Ht({
|
|
663
|
+
svg: le,
|
|
664
|
+
title: it,
|
|
665
|
+
legend: nt,
|
|
666
|
+
legendItems: j,
|
|
667
|
+
backgroundColor: st
|
|
668
|
+
});
|
|
669
|
+
async function ao({ isCb: o }) {
|
|
670
|
+
if (o) {
|
|
671
|
+
const { blob: l, url: t, text: r, dataUrl: a } = await ct();
|
|
672
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: r, dataUrl: a });
|
|
673
|
+
} else
|
|
674
|
+
ut();
|
|
675
|
+
}
|
|
676
|
+
return Do({
|
|
677
|
+
getData: lt,
|
|
678
|
+
getImage: at,
|
|
679
|
+
generateImage: Ye,
|
|
680
|
+
generateSvg: ao,
|
|
681
|
+
generatePdf: We,
|
|
682
|
+
generateCsv: Fe,
|
|
683
|
+
hideSeries: Xo,
|
|
684
|
+
showSeries: Ho,
|
|
685
|
+
toggleAnnotator: we,
|
|
686
|
+
toggleTable: oo,
|
|
687
|
+
toggleFullscreen: Qe
|
|
688
|
+
}), (o, l) => (s(), n("div", {
|
|
689
|
+
ref_key: "ridgelineChart",
|
|
690
|
+
ref: D,
|
|
691
|
+
class: ne(`vue-data-ui-component vue-ui-ridgeline ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
692
|
+
id: `vue-ui-ridgeline_${k.value}`,
|
|
693
|
+
style: F({
|
|
694
|
+
fontFamily: e.value.style.fontFamily,
|
|
695
|
+
width: "100%",
|
|
696
|
+
textAlign: "center",
|
|
697
|
+
background: e.value.style.chart.backgroundColor,
|
|
698
|
+
height: e.value.responsive ? "100%" : void 0
|
|
699
|
+
}),
|
|
700
|
+
onMouseenter: l[3] || (l[3] = () => i(He)(!0)),
|
|
701
|
+
onMouseleave: l[4] || (l[4] = () => i(He)(!1))
|
|
702
|
+
}, [
|
|
703
|
+
e.value.userOptions.buttons.annotator && i(le) ? (s(), _(i(Lo), {
|
|
704
|
+
key: 0,
|
|
705
|
+
color: e.value.style.chart.color,
|
|
706
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
707
|
+
active: re.value,
|
|
708
|
+
svgRef: i(le),
|
|
709
|
+
onClose: we
|
|
710
|
+
}, {
|
|
711
|
+
"annotator-action-close": d(() => [
|
|
712
|
+
C(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
713
|
+
]),
|
|
714
|
+
"annotator-action-color": d(({ color: t }) => [
|
|
715
|
+
C(o.$slots, "annotator-action-color", B(E({ color: t })), void 0, !0)
|
|
716
|
+
]),
|
|
717
|
+
"annotator-action-draw": d(({ mode: t }) => [
|
|
718
|
+
C(o.$slots, "annotator-action-draw", B(E({ mode: t })), void 0, !0)
|
|
719
|
+
]),
|
|
720
|
+
"annotator-action-undo": d(({ disabled: t }) => [
|
|
721
|
+
C(o.$slots, "annotator-action-undo", B(E({ disabled: t })), void 0, !0)
|
|
722
|
+
]),
|
|
723
|
+
"annotator-action-redo": d(({ disabled: t }) => [
|
|
724
|
+
C(o.$slots, "annotator-action-redo", B(E({ disabled: t })), void 0, !0)
|
|
725
|
+
]),
|
|
726
|
+
"annotator-action-delete": d(({ disabled: t }) => [
|
|
727
|
+
C(o.$slots, "annotator-action-delete", B(E({ disabled: t })), void 0, !0)
|
|
728
|
+
]),
|
|
729
|
+
_: 3
|
|
730
|
+
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
731
|
+
C(o.$slots, "userConfig", {}, void 0, !0),
|
|
732
|
+
Io.value ? (s(), n("div", {
|
|
733
|
+
key: 1,
|
|
734
|
+
ref_key: "noTitle",
|
|
735
|
+
ref: Ne,
|
|
736
|
+
class: "vue-data-ui-no-title-space",
|
|
737
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
738
|
+
}, null, 512)) : v("", !0),
|
|
739
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
740
|
+
key: 2,
|
|
741
|
+
ref_key: "chartTitle",
|
|
742
|
+
ref: Oe,
|
|
743
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
744
|
+
}, [
|
|
745
|
+
(s(), _(qt, {
|
|
746
|
+
key: `title_${he.value}`,
|
|
747
|
+
config: {
|
|
748
|
+
title: {
|
|
749
|
+
cy: "ridgeline-div-title",
|
|
750
|
+
...e.value.style.chart.title
|
|
751
|
+
},
|
|
752
|
+
subtitle: {
|
|
753
|
+
cy: "ridgeline-div-subtitle",
|
|
754
|
+
...e.value.style.chart.title.subtitle
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}, null, 8, ["config"]))
|
|
758
|
+
], 512)) : v("", !0),
|
|
759
|
+
e.value.userOptions.show && G.value && (i(Xe) || i(te)) ? (s(), _(i(So), {
|
|
760
|
+
ref_key: "userOptionsRef",
|
|
761
|
+
ref: fe,
|
|
762
|
+
key: `user_option_${Re.value}`,
|
|
763
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
764
|
+
color: e.value.style.chart.color,
|
|
765
|
+
isPrinting: i(je),
|
|
766
|
+
isImaging: i(Ge),
|
|
767
|
+
uid: k.value,
|
|
768
|
+
hasTooltip: !1,
|
|
769
|
+
callbacks: e.value.userOptions.callbacks,
|
|
770
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
771
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
772
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
773
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
774
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
775
|
+
hasLabel: !1,
|
|
776
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
777
|
+
isFullscreen: N.value,
|
|
778
|
+
printScale: e.value.userOptions.print.scale,
|
|
779
|
+
chartElement: D.value,
|
|
780
|
+
position: e.value.userOptions.position,
|
|
781
|
+
isTooltip: !1,
|
|
782
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
783
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
784
|
+
isAnnotation: re.value,
|
|
785
|
+
tableDialog: e.value.table.useDialog,
|
|
786
|
+
style: F({ visibility: i(Xe) ? i(te) ? "visible" : "hidden" : "visible" }),
|
|
787
|
+
onToggleFullscreen: Qe,
|
|
788
|
+
onGeneratePdf: i(We),
|
|
789
|
+
onGenerateCsv: Fe,
|
|
790
|
+
onGenerateImage: i(Ye),
|
|
791
|
+
onGenerateSvg: ao,
|
|
792
|
+
onToggleTable: oo,
|
|
793
|
+
onToggleAnnotator: we
|
|
794
|
+
}, $e({ _: 2 }, [
|
|
795
|
+
o.$slots.menuIcon ? {
|
|
796
|
+
name: "menuIcon",
|
|
797
|
+
fn: d(({ isOpen: t, color: r }) => [
|
|
798
|
+
C(o.$slots, "menuIcon", B(E({ isOpen: t, color: r })), void 0, !0)
|
|
799
|
+
]),
|
|
800
|
+
key: "0"
|
|
801
|
+
} : void 0,
|
|
802
|
+
o.$slots.optionTooltip ? {
|
|
803
|
+
name: "optionTooltip",
|
|
804
|
+
fn: d(() => [
|
|
805
|
+
C(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
806
|
+
]),
|
|
807
|
+
key: "1"
|
|
808
|
+
} : void 0,
|
|
809
|
+
o.$slots.optionPdf ? {
|
|
810
|
+
name: "optionPdf",
|
|
811
|
+
fn: d(() => [
|
|
812
|
+
C(o.$slots, "optionPdf", {}, void 0, !0)
|
|
813
|
+
]),
|
|
814
|
+
key: "2"
|
|
815
|
+
} : void 0,
|
|
816
|
+
o.$slots.optionCsv ? {
|
|
817
|
+
name: "optionCsv",
|
|
818
|
+
fn: d(() => [
|
|
819
|
+
C(o.$slots, "optionCsv", {}, void 0, !0)
|
|
820
|
+
]),
|
|
821
|
+
key: "3"
|
|
822
|
+
} : void 0,
|
|
823
|
+
o.$slots.optionImg ? {
|
|
824
|
+
name: "optionImg",
|
|
825
|
+
fn: d(() => [
|
|
826
|
+
C(o.$slots, "optionImg", {}, void 0, !0)
|
|
827
|
+
]),
|
|
828
|
+
key: "4"
|
|
829
|
+
} : void 0,
|
|
830
|
+
o.$slots.optionSvg ? {
|
|
831
|
+
name: "optionSvg",
|
|
832
|
+
fn: d(() => [
|
|
833
|
+
C(o.$slots, "optionSvg", {}, void 0, !0)
|
|
834
|
+
]),
|
|
835
|
+
key: "5"
|
|
836
|
+
} : void 0,
|
|
837
|
+
o.$slots.optionTable ? {
|
|
838
|
+
name: "optionTable",
|
|
839
|
+
fn: d(() => [
|
|
840
|
+
C(o.$slots, "optionTable", {}, void 0, !0)
|
|
841
|
+
]),
|
|
842
|
+
key: "6"
|
|
843
|
+
} : void 0,
|
|
844
|
+
o.$slots.optionFullscreen ? {
|
|
845
|
+
name: "optionFullscreen",
|
|
846
|
+
fn: d(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
847
|
+
C(o.$slots, "optionFullscreen", B(E({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
848
|
+
]),
|
|
849
|
+
key: "7"
|
|
850
|
+
} : void 0,
|
|
851
|
+
o.$slots.optionAnnotator ? {
|
|
852
|
+
name: "optionAnnotator",
|
|
853
|
+
fn: d(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
854
|
+
C(o.$slots, "optionAnnotator", B(E({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
855
|
+
]),
|
|
856
|
+
key: "8"
|
|
857
|
+
} : void 0
|
|
858
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
859
|
+
(s(), n("svg", {
|
|
860
|
+
ref_key: "svgRef",
|
|
861
|
+
ref: le,
|
|
862
|
+
xmlns: i(Bt),
|
|
863
|
+
class: ne({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
864
|
+
viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${y.value.fullHeight <= 0 ? 10 : y.value.fullHeight}`,
|
|
865
|
+
style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Ve.value}px; width: 100%;` : ""}`)
|
|
866
|
+
}, [
|
|
867
|
+
_e(i(zo)),
|
|
868
|
+
f("defs", null, [
|
|
869
|
+
(s(!0), n(A, null, p(j.value, (t, r) => (s(), n("linearGradient", {
|
|
870
|
+
id: `gradient-${t.id}-${k.value}`,
|
|
871
|
+
x1: "50%",
|
|
872
|
+
y1: "0%",
|
|
873
|
+
x2: "50%",
|
|
874
|
+
y2: "100%"
|
|
875
|
+
}, [
|
|
876
|
+
f("stop", {
|
|
877
|
+
offset: "0%",
|
|
878
|
+
"stop-color": t.color,
|
|
879
|
+
"stop-opacity": "1"
|
|
880
|
+
}, null, 8, tl),
|
|
881
|
+
f("stop", {
|
|
882
|
+
offset: "30%",
|
|
883
|
+
"stop-color": t.color,
|
|
884
|
+
"stop-opacity": "0.7"
|
|
885
|
+
}, null, 8, ll),
|
|
886
|
+
f("stop", {
|
|
887
|
+
offset: "70%",
|
|
888
|
+
"stop-color": t.color,
|
|
889
|
+
"stop-opacity": "0.3"
|
|
890
|
+
}, null, 8, al),
|
|
891
|
+
f("stop", {
|
|
892
|
+
offset: "100%",
|
|
893
|
+
"stop-color": t.color,
|
|
894
|
+
"stop-opacity": "0.1"
|
|
895
|
+
}, null, 8, rl)
|
|
896
|
+
], 8, ol))), 256)),
|
|
897
|
+
(s(!0), n(A, null, p(U.value, (t, r) => (s(), n(A, null, [
|
|
898
|
+
(s(!0), n(A, null, p(t.datapoints, (a, h) => (s(), n("linearGradient", {
|
|
899
|
+
key: `grad${a.id}`,
|
|
900
|
+
id: `gradient-single-${k.value}-${a.uid}`,
|
|
901
|
+
x1: "50%",
|
|
902
|
+
y1: "0%",
|
|
903
|
+
x2: "50%",
|
|
904
|
+
y2: "100%"
|
|
905
|
+
}, [
|
|
906
|
+
f("stop", {
|
|
907
|
+
offset: "0%",
|
|
908
|
+
"stop-color": a.color,
|
|
909
|
+
"stop-opacity": "1"
|
|
910
|
+
}, null, 8, nl),
|
|
911
|
+
f("stop", {
|
|
912
|
+
offset: "30%",
|
|
913
|
+
"stop-color": a.color,
|
|
914
|
+
"stop-opacity": "0.7"
|
|
915
|
+
}, null, 8, il),
|
|
916
|
+
f("stop", {
|
|
917
|
+
offset: "70%",
|
|
918
|
+
"stop-color": a.color,
|
|
919
|
+
"stop-opacity": "0.3"
|
|
920
|
+
}, null, 8, ul),
|
|
921
|
+
f("stop", {
|
|
922
|
+
offset: "100%",
|
|
923
|
+
"stop-color": a.color,
|
|
924
|
+
"stop-opacity": "0.1"
|
|
925
|
+
}, null, 8, cl)
|
|
926
|
+
], 8, sl))), 128))
|
|
927
|
+
], 64))), 256))
|
|
928
|
+
]),
|
|
929
|
+
(s(!0), n(A, null, p(U.value, (t, r) => (s(), n("g", {
|
|
930
|
+
key: `ds-${r}`
|
|
931
|
+
}, [
|
|
932
|
+
(s(!0), n(A, null, p(t.datapoints, (a, h) => (s(), n("g", {
|
|
933
|
+
key: a.id
|
|
934
|
+
}, [
|
|
935
|
+
o.$slots.pattern ? (s(), n("g", dl, [
|
|
936
|
+
f("defs", null, [
|
|
937
|
+
C(o.$slots, "pattern", Be({ ref_for: !0 }, { datapointIndex: r, seriesIndex: h, patternId: `pattern_${k.value}_${a.uid}` }), void 0, !0)
|
|
938
|
+
])
|
|
939
|
+
])) : v("", !0),
|
|
940
|
+
f("path", {
|
|
941
|
+
fill: o.$slots.pattern ? `url(#pattern_${k.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
942
|
+
stroke: "none",
|
|
943
|
+
"stroke-linecap": "round",
|
|
944
|
+
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
945
|
+
style: F({
|
|
946
|
+
opacity: e.value.style.chart.areas.opacity
|
|
947
|
+
})
|
|
948
|
+
}, null, 12, hl),
|
|
949
|
+
f("path", {
|
|
950
|
+
fill: "none",
|
|
951
|
+
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
952
|
+
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
953
|
+
d: e.value.style.chart.areas.smooth ? a.smoothPathRidge : a.straightPathRidge,
|
|
954
|
+
"stroke-linecap": "round",
|
|
955
|
+
"stroke-linejoin": "round",
|
|
956
|
+
class: ne({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(Y) }),
|
|
957
|
+
style: F({
|
|
958
|
+
strokeDasharray: a.pathLength,
|
|
959
|
+
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
960
|
+
})
|
|
961
|
+
}, null, 14, vl),
|
|
962
|
+
f("path", {
|
|
963
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${k.value})` : `url(#gradient-single-${k.value}-${a.uid})` : a.color,
|
|
964
|
+
stroke: "none",
|
|
965
|
+
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
966
|
+
"stroke-linecap": "round",
|
|
967
|
+
"stroke-linejoin": "round",
|
|
968
|
+
class: ne({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(Y) }),
|
|
969
|
+
style: F({
|
|
970
|
+
strokeDasharray: a.pathLength,
|
|
971
|
+
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
972
|
+
})
|
|
973
|
+
}, null, 14, Cl),
|
|
974
|
+
e.value.style.chart.zeroLine.show ? (s(), n("path", {
|
|
975
|
+
key: 1,
|
|
976
|
+
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
977
|
+
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
978
|
+
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
979
|
+
d: a.zeroPath,
|
|
980
|
+
"stroke-linecap": "round"
|
|
981
|
+
}, null, 8, gl)) : v("", !0),
|
|
982
|
+
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (s(!0), n(A, { key: 2 }, p(a.plots, ($) => (s(), n(A, null, [
|
|
983
|
+
$.isMaxPoint ? (s(), n("line", {
|
|
984
|
+
key: 0,
|
|
985
|
+
x1: $.x,
|
|
986
|
+
y1: $.y,
|
|
987
|
+
x2: $.x,
|
|
988
|
+
y2: $.zero,
|
|
989
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? i(Et)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
990
|
+
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
991
|
+
"stroke-linecap": "round",
|
|
992
|
+
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
993
|
+
}, null, 8, fl)) : v("", !0)
|
|
994
|
+
], 64))), 256)) : v("", !0),
|
|
995
|
+
a.plots.length === 1 ? (s(), n("circle", {
|
|
996
|
+
key: 3,
|
|
997
|
+
cx: a.plots[0].x,
|
|
998
|
+
cy: a.plots[0].y,
|
|
999
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
1000
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
1001
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
1002
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? a.color : e.value.style.chart.selector.dot.fill,
|
|
1003
|
+
style: {
|
|
1004
|
+
pointerEvents: "none"
|
|
1005
|
+
}
|
|
1006
|
+
}, null, 8, bl)) : v("", !0)
|
|
1007
|
+
]))), 128)),
|
|
1008
|
+
f("text", {
|
|
1009
|
+
x: t.label.x,
|
|
1010
|
+
y: t.label.y,
|
|
1011
|
+
"text-anchor": "end",
|
|
1012
|
+
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
1013
|
+
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1014
|
+
fill: e.value.style.chart.yAxis.labels.color,
|
|
1015
|
+
style: F({
|
|
1016
|
+
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
1017
|
+
}),
|
|
1018
|
+
"text-decoration": e.value.style.chart.dialog.show && (xe.value === r || H.value && t.uid === H.value.uid) ? "underline" : "",
|
|
1019
|
+
onMouseenter: (a) => ot(r),
|
|
1020
|
+
onMouseleave: tt,
|
|
1021
|
+
onClick: (a) => et(t)
|
|
1022
|
+
}, V(t.name), 45, Al)
|
|
1023
|
+
]))), 128)),
|
|
1024
|
+
e.value.style.chart.xAxis.labels.values.length ? (s(), n("g", {
|
|
1025
|
+
key: 0,
|
|
1026
|
+
ref_key: "timeLabelsEls",
|
|
1027
|
+
ref: ge
|
|
1028
|
+
}, [
|
|
1029
|
+
(s(!0), n(A, null, p(X.value, (t, r) => C(o.$slots, "time-label", Be({ ref_for: !0 }, {
|
|
1030
|
+
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === X.value.length - 1) || t && g.value && g.value.index === r || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1031
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
1032
|
+
content: t.label,
|
|
1033
|
+
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1034
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1035
|
+
transform: `translate(${t.selectorX}, ${y.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1036
|
+
x: t.selectorX,
|
|
1037
|
+
y: y.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
1038
|
+
}), () => [
|
|
1039
|
+
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === X.value.length - 1) || t && g.value && g.value.index === r || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (s(), n("g", yl, [
|
|
1040
|
+
String(t.label).includes(`
|
|
1041
|
+
`) ? (s(), n("text", {
|
|
1042
|
+
key: 1,
|
|
1043
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1044
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
1045
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1046
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1047
|
+
transform: `translate(${t.selectorX}, ${y.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1048
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1049
|
+
style: F({
|
|
1050
|
+
opacity: g.value ? g.value.index === r ? 1 : 0.2 : 1
|
|
1051
|
+
}),
|
|
1052
|
+
innerHTML: i(Tt)({
|
|
1053
|
+
content: String(t.label),
|
|
1054
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
1055
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1056
|
+
x: 0,
|
|
1057
|
+
y: 0
|
|
1058
|
+
})
|
|
1059
|
+
}, null, 12, pl)) : (s(), n("text", {
|
|
1060
|
+
key: 0,
|
|
1061
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1062
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
1063
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1064
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1065
|
+
transform: `translate(${t.selectorX}, ${y.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1066
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1067
|
+
style: F({
|
|
1068
|
+
opacity: g.value ? g.value.index === r ? 1 : 0.2 : 1
|
|
1069
|
+
})
|
|
1070
|
+
}, V(t.label), 13, ml))
|
|
1071
|
+
])) : v("", !0)
|
|
1072
|
+
], !0)), 256))
|
|
1073
|
+
], 512)) : v("", !0),
|
|
1074
|
+
f("g", null, [
|
|
1075
|
+
(s(!0), n(A, null, p(X.value, (t, r) => (s(), n("rect", {
|
|
1076
|
+
x: t.x,
|
|
1077
|
+
y: t.y,
|
|
1078
|
+
width: t.width < 0 ? 0.1 : t.width,
|
|
1079
|
+
height: t.height < 0 ? 0.1 : t.height,
|
|
1080
|
+
fill: "transparent",
|
|
1081
|
+
onMouseenter: (a) => Wo(t),
|
|
1082
|
+
onMouseleave: (a) => Yo(t),
|
|
1083
|
+
onClick: () => qo(t)
|
|
1084
|
+
}, null, 40, kl))), 256)),
|
|
1085
|
+
e.value.style.chart.selector.show && g.value ? (s(), n("line", {
|
|
1086
|
+
key: 0,
|
|
1087
|
+
x1: g.value.selectorX,
|
|
1088
|
+
x2: g.value.selectorX,
|
|
1089
|
+
y1: g.value.y,
|
|
1090
|
+
y2: g.value.y + g.value.height - x.value / 2,
|
|
1091
|
+
stroke: e.value.style.chart.selector.stroke,
|
|
1092
|
+
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
1093
|
+
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
1094
|
+
"stroke-linecap": "round",
|
|
1095
|
+
style: { pointerEvents: "none" }
|
|
1096
|
+
}, null, 8, xl)) : v("", !0),
|
|
1097
|
+
g.value ? (s(!0), n(A, { key: 1 }, p(U.value, (t) => (s(), n(A, null, [
|
|
1098
|
+
(s(!0), n(A, null, p(t.datapoints, (r) => (s(), n(A, null, [
|
|
1099
|
+
(s(!0), n(A, null, p(r.plots, (a, h) => (s(), n(A, null, [
|
|
1100
|
+
g.value && g.value.index === h ? (s(), n("circle", {
|
|
1101
|
+
key: 0,
|
|
1102
|
+
cx: a.x,
|
|
1103
|
+
cy: a.y,
|
|
1104
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
1105
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
1106
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
1107
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? r.color : e.value.style.chart.selector.dot.fill,
|
|
1108
|
+
style: {
|
|
1109
|
+
pointerEvents: "none"
|
|
1110
|
+
}
|
|
1111
|
+
}, null, 8, wl)) : v("", !0),
|
|
1112
|
+
g.value && g.value.index === h ? (s(), n("text", {
|
|
1113
|
+
key: 1,
|
|
1114
|
+
x: Ke(
|
|
1115
|
+
a.x,
|
|
1116
|
+
i(ue)(
|
|
1117
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1118
|
+
a.value,
|
|
1119
|
+
i(ce)({
|
|
1120
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1121
|
+
v: a.value,
|
|
1122
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1123
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1124
|
+
})
|
|
1125
|
+
),
|
|
1126
|
+
e.value.style.chart.selector.labels.fontSize
|
|
1127
|
+
) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
1128
|
+
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1129
|
+
"text-anchor": Ke(
|
|
1130
|
+
a.x,
|
|
1131
|
+
i(ue)(
|
|
1132
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1133
|
+
a.value,
|
|
1134
|
+
i(ce)({
|
|
1135
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1136
|
+
v: a.value,
|
|
1137
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1138
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1139
|
+
})
|
|
1140
|
+
),
|
|
1141
|
+
e.value.style.chart.selector.labels.fontSize
|
|
1142
|
+
) ? "end" : "start",
|
|
1143
|
+
"font-size": e.value.style.chart.selector.labels.fontSize,
|
|
1144
|
+
fill: e.value.style.chart.selector.labels.color,
|
|
1145
|
+
style: {
|
|
1146
|
+
pointerEvents: "none"
|
|
1147
|
+
}
|
|
1148
|
+
}, V(i(ue)(
|
|
1149
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1150
|
+
a.value,
|
|
1151
|
+
i(ce)({
|
|
1152
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1153
|
+
v: a.value,
|
|
1154
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1155
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1156
|
+
})
|
|
1157
|
+
)), 9, Fl)) : v("", !0)
|
|
1158
|
+
], 64))), 256))
|
|
1159
|
+
], 64))), 256))
|
|
1160
|
+
], 64))), 256)) : v("", !0)
|
|
1161
|
+
]),
|
|
1162
|
+
C(o.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
1163
|
+
], 14, el)),
|
|
1164
|
+
o.$slots.watermark ? (s(), n("div", Dl, [
|
|
1165
|
+
C(o.$slots, "watermark", B(E({ isPrinting: i(je) || i(Ge) })), void 0, !0)
|
|
1166
|
+
])) : v("", !0),
|
|
1167
|
+
f("div", {
|
|
1168
|
+
ref_key: "chartLegend",
|
|
1169
|
+
ref: Me
|
|
1170
|
+
}, [
|
|
1171
|
+
e.value.style.chart.legend.show ? (s(), _(Yt, {
|
|
1172
|
+
key: `legend_${ve.value}`,
|
|
1173
|
+
legendSet: j.value,
|
|
1174
|
+
config: Zo.value,
|
|
1175
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => ae(t.id))
|
|
1176
|
+
}, $e({
|
|
1177
|
+
item: d(({ legend: t }) => [
|
|
1178
|
+
i(Y) ? v("", !0) : (s(), n("div", {
|
|
1179
|
+
key: 0,
|
|
1180
|
+
style: F(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`),
|
|
1181
|
+
onClick: (r) => t.segregate()
|
|
1182
|
+
}, V(t.name), 13, $l))
|
|
1183
|
+
]),
|
|
1184
|
+
_: 2
|
|
1185
|
+
}, [
|
|
1186
|
+
o.$slots.pattern ? {
|
|
1187
|
+
name: "legend-pattern",
|
|
1188
|
+
fn: d(({ legend: t, index: r }) => [
|
|
1189
|
+
_e(Jt, {
|
|
1190
|
+
shape: t.shape,
|
|
1191
|
+
radius: 30,
|
|
1192
|
+
stroke: "none",
|
|
1193
|
+
plot: { x: 30, y: 30 },
|
|
1194
|
+
fill: `url(#pattern_${k.value}_${r})`
|
|
1195
|
+
}, null, 8, ["shape", "fill"])
|
|
1196
|
+
]),
|
|
1197
|
+
key: "0"
|
|
1198
|
+
} : void 0
|
|
1199
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1200
|
+
C(o.$slots, "legend", { legend: j.value }, void 0, !0)
|
|
1201
|
+
], 512),
|
|
1202
|
+
o.$slots.source ? (s(), n("div", {
|
|
1203
|
+
key: 5,
|
|
1204
|
+
ref_key: "source",
|
|
1205
|
+
ref: Pe,
|
|
1206
|
+
dir: "auto"
|
|
1207
|
+
}, [
|
|
1208
|
+
C(o.$slots, "source", {}, void 0, !0)
|
|
1209
|
+
], 512)) : v("", !0),
|
|
1210
|
+
G.value && e.value.userOptions.buttons.table ? (s(), _(kt(K.value.component), Be({ key: 6 }, K.value.props, {
|
|
1211
|
+
ref_key: "tableUnit",
|
|
1212
|
+
ref: W,
|
|
1213
|
+
onClose: lo
|
|
1214
|
+
}), $e({
|
|
1215
|
+
content: d(() => [
|
|
1216
|
+
(s(), _(i(To), {
|
|
1217
|
+
key: `table_${No.value}`,
|
|
1218
|
+
colNames: se.value.colNames,
|
|
1219
|
+
head: se.value.head,
|
|
1220
|
+
body: se.value.body,
|
|
1221
|
+
config: se.value.config,
|
|
1222
|
+
title: e.value.table.useDialog ? "" : K.value.title,
|
|
1223
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1224
|
+
onClose: lo
|
|
1225
|
+
}, {
|
|
1226
|
+
th: d(({ th: t }) => [
|
|
1227
|
+
f("div", { innerHTML: t }, null, 8, _l)
|
|
1228
|
+
]),
|
|
1229
|
+
td: d(({ td: t }) => [
|
|
1230
|
+
Ee(V(t.name ? t.name : i(ue)(
|
|
1231
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1232
|
+
t,
|
|
1233
|
+
i(ce)({
|
|
1234
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1235
|
+
v: t,
|
|
1236
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1237
|
+
r: e.value.table.td.roundingValue
|
|
1238
|
+
})
|
|
1239
|
+
)), 1)
|
|
1240
|
+
]),
|
|
1241
|
+
_: 1
|
|
1242
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1243
|
+
]),
|
|
1244
|
+
_: 2
|
|
1245
|
+
}, [
|
|
1246
|
+
e.value.table.useDialog ? {
|
|
1247
|
+
name: "title",
|
|
1248
|
+
fn: d(() => [
|
|
1249
|
+
Ee(V(K.value.title), 1)
|
|
1250
|
+
]),
|
|
1251
|
+
key: "0"
|
|
1252
|
+
} : void 0,
|
|
1253
|
+
e.value.table.useDialog ? {
|
|
1254
|
+
name: "actions",
|
|
1255
|
+
fn: d(() => [
|
|
1256
|
+
f("button", {
|
|
1257
|
+
tabindex: "0",
|
|
1258
|
+
class: "vue-ui-user-options-button",
|
|
1259
|
+
onClick: l[1] || (l[1] = (t) => Fe(e.value.userOptions.callbacks.csv))
|
|
1260
|
+
}, [
|
|
1261
|
+
_e(i(Bo), {
|
|
1262
|
+
name: "excel",
|
|
1263
|
+
stroke: K.value.props.color
|
|
1264
|
+
}, null, 8, ["stroke"])
|
|
1265
|
+
])
|
|
1266
|
+
]),
|
|
1267
|
+
key: "1"
|
|
1268
|
+
} : void 0
|
|
1269
|
+
]), 1040)) : v("", !0),
|
|
1270
|
+
e.value.style.chart.dialog.show ? (s(), _(i(ze), {
|
|
1271
|
+
key: 7,
|
|
1272
|
+
ref_key: "dialog",
|
|
1273
|
+
ref: Ce,
|
|
1274
|
+
onClose: l[2] || (l[2] = (t) => H.value = null),
|
|
1275
|
+
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1276
|
+
color: e.value.style.chart.dialog.color,
|
|
1277
|
+
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1278
|
+
headerColor: e.value.style.chart.dialog.header.color,
|
|
1279
|
+
isFullscreen: N.value,
|
|
1280
|
+
fullscreenParent: D.value,
|
|
1281
|
+
withPadding: ""
|
|
1282
|
+
}, {
|
|
1283
|
+
title: d(() => [
|
|
1284
|
+
Ee(V(H.value.name), 1)
|
|
1285
|
+
]),
|
|
1286
|
+
content: d(() => [
|
|
1287
|
+
H.value ? (s(), _(i(_o), {
|
|
1288
|
+
key: 0,
|
|
1289
|
+
config: Ze.value,
|
|
1290
|
+
dataset: eo.value
|
|
1291
|
+
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1292
|
+
]),
|
|
1293
|
+
_: 1
|
|
1294
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1295
|
+
i(Y) ? (s(), _(It, { key: 8 })) : v("", !0)
|
|
1296
|
+
], 46, Zt));
|
|
1297
|
+
}
|
|
1298
|
+
}, El = /* @__PURE__ */ Qt(Bl, [["__scopeId", "data-v-e547ab5e"]]), ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1299
|
+
__proto__: null,
|
|
1300
|
+
default: El
|
|
1301
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1302
|
+
export {
|
|
1303
|
+
Yl as a,
|
|
1304
|
+
ql as b,
|
|
1305
|
+
El as v
|
|
1306
|
+
};
|