vue-data-ui 3.5.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -0,0 +1,1302 @@
|
|
|
1
|
+
import { defineAsyncComponent as L, computed as c, ref as u, shallowRef as ut, toRefs as Cl, onBeforeUnmount as ct, watch as te, nextTick as De, watchEffect as yl, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as F, normalizeClass as ne, createBlock as _, createCommentVNode as v, renderSlot as g, createElementVNode as b, withCtx as d, normalizeProps as B, guardReactiveProps as E, createSlots as $e, createVNode as _e, Fragment as y, renderList as p, mergeProps as Be, toDisplayString as H, resolveDynamicComponent as Al, createTextVNode as Ee } from "vue";
|
|
2
|
+
import { c as Te, t as ml, j as pl, l as kl, p as ie, an as dt, N as xl, B as ht, z as wl, ad as Fl, X as Dl, w as $l, U as _l, a as ue, d as ce, i as Bl, g as Se, k as vt, o as El, u as Tl, q as Sl, a8 as Ll } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as gt, u as zl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ol, a as Le } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Ml, B as Pl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Nl } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as Rl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Il } from "./useTimeLabels-C5qMhpbe.js";
|
|
9
|
+
import { u as Hl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
|
+
import { u as Vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as Ul } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import jl from "./Legend-Web3GjlR.js";
|
|
14
|
+
import Gl from "./Title-DfFUb9hd.js";
|
|
15
|
+
import { _ as Wl } from "./Shape-DE6X_t31.js";
|
|
16
|
+
import Yl from "./img-DUzJeMlr.js";
|
|
17
|
+
import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const ft = { 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" } } } }, bt = { 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" } } } }, Ct = { 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" } } } }, yt = { 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" } } } }, At = { 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" } } } }, mt = { 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" } } } }, pt = {
|
|
19
|
+
default: {},
|
|
20
|
+
dark: ft,
|
|
21
|
+
celebration: bt,
|
|
22
|
+
celebrationNight: Ct,
|
|
23
|
+
hack: yt,
|
|
24
|
+
zen: At,
|
|
25
|
+
concrete: mt
|
|
26
|
+
}, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
|
+
__proto__: null,
|
|
28
|
+
celebration: bt,
|
|
29
|
+
celebrationNight: Ct,
|
|
30
|
+
concrete: mt,
|
|
31
|
+
dark: ft,
|
|
32
|
+
default: pt,
|
|
33
|
+
hack: yt,
|
|
34
|
+
zen: At
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), Jl = ["id"], Kl = ["xmlns", "viewBox"], Ql = ["id"], Zl = ["stop-color"], eo = ["stop-color"], to = ["stop-color"], lo = ["stop-color"], oo = ["id"], ao = ["stop-color"], ro = ["stop-color"], so = ["stop-color"], no = ["stop-color"], io = { key: 0 }, uo = ["fill", "d"], co = ["stroke", "stroke-width", "d"], ho = ["fill", "d"], vo = ["stroke", "stroke-dasharray", "stroke-width", "d"], go = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], fo = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], bo = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Co = { key: 0 }, yo = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ao = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], mo = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ko = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], xo = ["x", "y", "text-anchor", "font-size", "fill"], wo = {
|
|
36
|
+
key: 4,
|
|
37
|
+
class: "vue-data-ui-watermark"
|
|
38
|
+
}, Fo = ["onClick"], Do = ["innerHTML"], $o = {
|
|
39
|
+
__name: "vue-ui-ridgeline",
|
|
40
|
+
props: {
|
|
41
|
+
config: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default() {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
dataset: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default() {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
55
|
+
setup(kt, { expose: xt, emit: wt }) {
|
|
56
|
+
const Ft = L(() => import("./vue-ui-xy-Cy7mOurZ.js").then((t) => t.a)), Dt = L(() => import("./BaseIcon-CofSxalQ.js")), $t = L(() => import("./vue-ui-accordion-DSdZUn2C.js")), _t = L(() => import("./DataTable-CHaOCmsE.js")), Bt = L(() => import("./PenAndPaper-HCZQTkqi.js")), Et = L(() => import("./UserOptions-B3I-s3Lw.js")), Tt = L(() => import("./PackageVersion-Bq_mtsqr.js")), ze = L(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_ridgeline: St } = Ol(), { isThemeValid: Lt, warnInvalidTheme: zt } = Hl(), z = kt, G = c({
|
|
57
|
+
get() {
|
|
58
|
+
return Array.isArray(M.value) && M.value.length > 0;
|
|
59
|
+
},
|
|
60
|
+
set(t) {
|
|
61
|
+
return t;
|
|
62
|
+
}
|
|
63
|
+
}), de = wt, D = u(null), Oe = u(null), Me = u(null), T = ut(null), O = ut(null), Pe = u(null), Ne = u(null), he = u(0), Ot = u(0), ve = u(0), k = u(Te()), Re = u(0), Mt = u(0), Ie = u(512), f = u(null), V = u(null), ge = u(null), He = u(0), fe = u(null), W = u(null), be = u(null);
|
|
64
|
+
function Ce() {
|
|
65
|
+
const t = Le({
|
|
66
|
+
userConfig: z.config,
|
|
67
|
+
defaultConfig: St
|
|
68
|
+
}), o = t.theme;
|
|
69
|
+
if (!o) return t;
|
|
70
|
+
if (!Lt.value(t))
|
|
71
|
+
return zt(t), t;
|
|
72
|
+
const l = Le({
|
|
73
|
+
userConfig: pt[o] || z.config,
|
|
74
|
+
defaultConfig: t
|
|
75
|
+
}), r = Le({
|
|
76
|
+
userConfig: z.config,
|
|
77
|
+
defaultConfig: l
|
|
78
|
+
});
|
|
79
|
+
return {
|
|
80
|
+
...r,
|
|
81
|
+
customPalette: r.customPalette.length ? r.customPalette : Bl[o] || ie
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const e = u(Ce()), { loading: Y, FINAL_DATASET: M, manualLoading: ye } = Ml({
|
|
85
|
+
...Cl(z),
|
|
86
|
+
FINAL_CONFIG: e,
|
|
87
|
+
prepareConfig: Ce,
|
|
88
|
+
skeletonDataset: [
|
|
89
|
+
{
|
|
90
|
+
name: "_",
|
|
91
|
+
datapoints: [
|
|
92
|
+
{
|
|
93
|
+
name: "__",
|
|
94
|
+
color: "#999999",
|
|
95
|
+
values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "_",
|
|
99
|
+
color: "#CACACA",
|
|
100
|
+
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]
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "_",
|
|
106
|
+
datapoints: [
|
|
107
|
+
{
|
|
108
|
+
name: "_",
|
|
109
|
+
color: "#999999",
|
|
110
|
+
values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "_",
|
|
114
|
+
color: "#CACACA",
|
|
115
|
+
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]
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "_",
|
|
121
|
+
datapoints: [
|
|
122
|
+
{
|
|
123
|
+
name: "_",
|
|
124
|
+
color: "#999999",
|
|
125
|
+
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]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "_",
|
|
129
|
+
color: "#CACACA",
|
|
130
|
+
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]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "_",
|
|
136
|
+
datapoints: [
|
|
137
|
+
{
|
|
138
|
+
name: "_",
|
|
139
|
+
color: "#999999",
|
|
140
|
+
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]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "_",
|
|
144
|
+
color: "#CACACA",
|
|
145
|
+
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]
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: "_",
|
|
151
|
+
datapoints: [
|
|
152
|
+
{
|
|
153
|
+
name: "_",
|
|
154
|
+
color: "#999999",
|
|
155
|
+
values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "_",
|
|
159
|
+
color: "#CACACA",
|
|
160
|
+
values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "_",
|
|
166
|
+
datapoints: [
|
|
167
|
+
{
|
|
168
|
+
name: "_",
|
|
169
|
+
color: "#999999",
|
|
170
|
+
values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "_",
|
|
174
|
+
color: "#CACACA",
|
|
175
|
+
values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
skeletonConfig: ml({
|
|
181
|
+
defaultConfig: e.value,
|
|
182
|
+
userConfig: {
|
|
183
|
+
userOptions: { show: !1 },
|
|
184
|
+
table: { show: !1 },
|
|
185
|
+
style: {
|
|
186
|
+
chart: {
|
|
187
|
+
backgroundColor: "#99999930",
|
|
188
|
+
areas: {
|
|
189
|
+
maxPoint: {
|
|
190
|
+
show: !1
|
|
191
|
+
},
|
|
192
|
+
opacity: 0.9,
|
|
193
|
+
stroke: {
|
|
194
|
+
useSerieColor: !0
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
legend: {
|
|
198
|
+
backgroundColor: "transparent"
|
|
199
|
+
},
|
|
200
|
+
padding: {
|
|
201
|
+
right: -24,
|
|
202
|
+
left: 0
|
|
203
|
+
},
|
|
204
|
+
xAxis: {
|
|
205
|
+
labels: {
|
|
206
|
+
values: []
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
yAxis: {
|
|
210
|
+
labels: {
|
|
211
|
+
fontSize: 0
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
zeroLine: { show: !1 }
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
})
|
|
219
|
+
}), x = u(Math.min(
|
|
220
|
+
e.value.style.chart.areas.height,
|
|
221
|
+
e.value.style.chart.areas.rowHeight
|
|
222
|
+
)), {
|
|
223
|
+
userOptionsVisible: le,
|
|
224
|
+
setUserOptionsVisibility: Ve,
|
|
225
|
+
keepUserOptionState: Xe
|
|
226
|
+
} = Vl({ config: e.value }), { svgRef: oe } = Xl({ config: e.value.style.chart.title }), Ae = c(() => !!e.value.debug);
|
|
227
|
+
function Ue() {
|
|
228
|
+
const t = M.value || [];
|
|
229
|
+
if (!Array.isArray(t) || t.length === 0) {
|
|
230
|
+
Se({ componentName: "VueUiRidgeline", type: "dataset", debug: Ae.value }), ye.value = !0;
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (t.forEach((o, l) => {
|
|
234
|
+
vt({
|
|
235
|
+
datasetObject: o,
|
|
236
|
+
requiredAttributes: ["name", "datapoints"]
|
|
237
|
+
}).forEach((r) => {
|
|
238
|
+
G.value = !1, Se({
|
|
239
|
+
componentName: "VueUiRidgeline",
|
|
240
|
+
type: "datasetSerieAttribute",
|
|
241
|
+
property: r,
|
|
242
|
+
index: l,
|
|
243
|
+
debug: Ae.value
|
|
244
|
+
});
|
|
245
|
+
}), Array.isArray(o.datapoints) && o.datapoints.length && o.datapoints.forEach((r, a) => {
|
|
246
|
+
vt({
|
|
247
|
+
datasetObject: r,
|
|
248
|
+
requiredAttributes: ["name", "values"]
|
|
249
|
+
}).forEach((h) => {
|
|
250
|
+
G.value = !1, Se({
|
|
251
|
+
componentName: "VueUiRidgeline",
|
|
252
|
+
type: "datasetSerieAttribute",
|
|
253
|
+
property: `datapoint.${h}`,
|
|
254
|
+
index: `${l}-${a}`,
|
|
255
|
+
debug: Ae.value
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
}), Mt.value = t.length, x.value = Math.min(
|
|
260
|
+
e.value.style.chart.areas.height,
|
|
261
|
+
e.value.style.chart.areas.rowHeight
|
|
262
|
+
), El(z.dataset) || (ye.value = e.value.loading), e.value.responsive) {
|
|
263
|
+
const o = gt(() => {
|
|
264
|
+
const { width: l, height: r } = zl({
|
|
265
|
+
chart: D.value,
|
|
266
|
+
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
267
|
+
legend: e.value.style.chart.legend.show ? Me.value : null,
|
|
268
|
+
source: Pe.value,
|
|
269
|
+
noTitle: Ne.value,
|
|
270
|
+
padding: e.value.style.chart.padding
|
|
271
|
+
});
|
|
272
|
+
requestAnimationFrame(() => {
|
|
273
|
+
Ie.value = l, x.value = t.length ? r / t.length : 0, He.value = r - 12;
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
T.value && (O.value && T.value.unobserve(O.value), T.value.disconnect()), T.value = new ResizeObserver(o), O.value = D.value?.parentNode || null, O.value && T.value.observe(O.value);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
ct(() => {
|
|
280
|
+
T.value && (O.value && T.value.unobserve(O.value), T.value.disconnect());
|
|
281
|
+
});
|
|
282
|
+
const { isPrinting: je, isImaging: Ge, generatePdf: We, generateImage: Ye } = Nl({
|
|
283
|
+
elementId: `vue-ui-ridgeline_${k.value}`,
|
|
284
|
+
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
285
|
+
options: e.value.userOptions.print
|
|
286
|
+
}), Pt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Nt = c(() => pl(e.value.customPalette)), P = u({
|
|
287
|
+
showTable: e.value.table.show
|
|
288
|
+
});
|
|
289
|
+
te(
|
|
290
|
+
() => M.value,
|
|
291
|
+
async (t) => {
|
|
292
|
+
Array.isArray(t) && t.length && (le.value = !e.value.userOptions.showOnChartHover, await De(), Ue(), he.value += 1, ve.value += 1, P.value.showTable = e.value.table.show);
|
|
293
|
+
},
|
|
294
|
+
{ deep: !0, immediate: !0 }
|
|
295
|
+
), te(() => z.dataset, (t) => {
|
|
296
|
+
Array.isArray(t) && t.length > 0 && (ye.value = !1);
|
|
297
|
+
}, { deep: !0 }), te(
|
|
298
|
+
() => Y.value,
|
|
299
|
+
async (t) => {
|
|
300
|
+
t || (await De(), Ue());
|
|
301
|
+
},
|
|
302
|
+
{ immediate: !0 }
|
|
303
|
+
), te(
|
|
304
|
+
() => z.config,
|
|
305
|
+
() => {
|
|
306
|
+
e.value = Ce(M.value || null), le.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;
|
|
307
|
+
},
|
|
308
|
+
{ deep: !0 }
|
|
309
|
+
);
|
|
310
|
+
const me = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
311
|
+
function ae(t) {
|
|
312
|
+
w.value.includes(t) ? w.value = w.value.filter((o) => o !== t) : w.value.push(t), de("selectLegend", U.value);
|
|
313
|
+
}
|
|
314
|
+
function qe(t) {
|
|
315
|
+
if (!j.value.length)
|
|
316
|
+
return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
|
|
317
|
+
const o = j.value.find((l) => l.name === t);
|
|
318
|
+
return o || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
|
|
319
|
+
}
|
|
320
|
+
function Rt(t) {
|
|
321
|
+
const o = qe(t);
|
|
322
|
+
o !== null && w.value.includes(o.id) && ae(o.id);
|
|
323
|
+
}
|
|
324
|
+
function It(t) {
|
|
325
|
+
const o = qe(t);
|
|
326
|
+
o !== null && (w.value.includes(o.id) || ae(o.id));
|
|
327
|
+
}
|
|
328
|
+
const S = c(() => G.value ? (M.value || []).map((t) => ({
|
|
329
|
+
...t,
|
|
330
|
+
labelLen: Yt(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
331
|
+
uid: Te(),
|
|
332
|
+
datapoints: t.datapoints.map((o, l) => {
|
|
333
|
+
const r = o.color ? kl(o.color) : Nt.value[l] || ie[l] || ie[l % ie.length], a = dt(o.name);
|
|
334
|
+
return { ...o, color: r, id: a };
|
|
335
|
+
})
|
|
336
|
+
})) : []), Je = c(() => e.value.style.chart.padding.top + x.value * (M.value || []).length + x.value * me.value + e.value.style.chart.padding.bottom), C = c(() => {
|
|
337
|
+
const t = e.value.style.chart.padding;
|
|
338
|
+
return {
|
|
339
|
+
width: Ie.value,
|
|
340
|
+
height: Je.value,
|
|
341
|
+
padding: t
|
|
342
|
+
};
|
|
343
|
+
}), Ht = c(() => C.value.width), Vt = c(() => C.value.height), pe = u(0), Xt = gt((t) => {
|
|
344
|
+
pe.value = t;
|
|
345
|
+
}, 100);
|
|
346
|
+
yl((t) => {
|
|
347
|
+
const o = fe.value;
|
|
348
|
+
if (!o) return;
|
|
349
|
+
const l = new ResizeObserver((r) => {
|
|
350
|
+
Xt(r[0].contentRect.height);
|
|
351
|
+
});
|
|
352
|
+
l.observe(o), t(() => l.disconnect());
|
|
353
|
+
}), ct(() => {
|
|
354
|
+
pe.value = 0;
|
|
355
|
+
});
|
|
356
|
+
const A = c(() => ({
|
|
357
|
+
fullHeight: C.value.height + pe.value,
|
|
358
|
+
top: C.value.padding.top,
|
|
359
|
+
left: C.value.padding.left,
|
|
360
|
+
right: C.value.width - C.value.padding.right,
|
|
361
|
+
bottom: C.value.height - e.value.style.chart.padding.bottom,
|
|
362
|
+
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
363
|
+
})), q = c(() => Math.max(...S.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), J = c(() => Il({
|
|
364
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
365
|
+
maxDatapoints: q.value,
|
|
366
|
+
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
367
|
+
start: 0,
|
|
368
|
+
end: e.value.style.chart.xAxis.labels.values.length
|
|
369
|
+
})), X = c(() => {
|
|
370
|
+
const t = Math.max(...S.value.map((a) => a.labelLen)), o = C.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (A.value.width - o) / q.value, r = [];
|
|
371
|
+
for (let a = 0; a < q.value; a += 1)
|
|
372
|
+
r.push({
|
|
373
|
+
selectorX: o + l * a,
|
|
374
|
+
x: o + l * a - l / 2,
|
|
375
|
+
y: A.value.top,
|
|
376
|
+
label: e.value.style.chart.xAxis.labels.values[a] ? J.value[a].text : "",
|
|
377
|
+
index: a,
|
|
378
|
+
width: l,
|
|
379
|
+
height: Je.value
|
|
380
|
+
});
|
|
381
|
+
return r;
|
|
382
|
+
});
|
|
383
|
+
function ke(t) {
|
|
384
|
+
return S.value.map((o) => o.datapoints.map((l) => ({
|
|
385
|
+
dp: l,
|
|
386
|
+
selected: l.values[t.index]
|
|
387
|
+
})));
|
|
388
|
+
}
|
|
389
|
+
function Ut(t) {
|
|
390
|
+
f.value = t;
|
|
391
|
+
const o = ke(t);
|
|
392
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
|
|
393
|
+
}
|
|
394
|
+
function jt(t) {
|
|
395
|
+
f.value = null;
|
|
396
|
+
const o = ke(t);
|
|
397
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t.index });
|
|
398
|
+
}
|
|
399
|
+
function Gt(t) {
|
|
400
|
+
const o = ke(t);
|
|
401
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }), de("selectX", o);
|
|
402
|
+
}
|
|
403
|
+
function Wt(t, o) {
|
|
404
|
+
return t.length * o / 2 + o;
|
|
405
|
+
}
|
|
406
|
+
function Ke(t, o, l) {
|
|
407
|
+
const r = Wt(o, l);
|
|
408
|
+
return t + r > A.value.right;
|
|
409
|
+
}
|
|
410
|
+
function Yt(t, o, l = "sans-serif") {
|
|
411
|
+
const a = document.createElement("canvas").getContext("2d"), h = typeof o == "number" ? `${o}px` : o;
|
|
412
|
+
return a.font = `${h} ${l}`, a.measureText(t).width;
|
|
413
|
+
}
|
|
414
|
+
const U = c(() => {
|
|
415
|
+
x.value;
|
|
416
|
+
const t = Math.max(...S.value.map((m) => m.labelLen)), o = Math.max(...S.value.flatMap((m) => m.datapoints.flatMap((Q) => Q.values))), l = Math.min(...S.value.flatMap((m) => m.datapoints.flatMap((Q) => Q.values))), r = C.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (A.value.width - r) / q.value, h = Math.abs(Math.min(l, 0)), $ = o + h;
|
|
417
|
+
function rt(m) {
|
|
418
|
+
return isNaN(m / $) ? 0 : m / $;
|
|
419
|
+
}
|
|
420
|
+
return S.value.map((m, Q) => {
|
|
421
|
+
const st = A.value.top + x.value * Q, R = A.value.top + st + x.value * me.value * (1 - rt(h));
|
|
422
|
+
return {
|
|
423
|
+
...m,
|
|
424
|
+
label: {
|
|
425
|
+
x: r - e.value.style.chart.yAxis.labels.fontSize,
|
|
426
|
+
y: R
|
|
427
|
+
},
|
|
428
|
+
datapoints: m.datapoints.map((Z) => {
|
|
429
|
+
const I = Z.values.map((ee, hl) => {
|
|
430
|
+
const vl = isNaN(ee) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(ee) ? 0 : ee || 0, gl = r + a * hl, fl = A.value.top + st + x.value * me.value * (1 - rt(vl + h)), bl = ee === Math.max(...Z.values);
|
|
431
|
+
return {
|
|
432
|
+
x: gl,
|
|
433
|
+
y: fl,
|
|
434
|
+
value: ee,
|
|
435
|
+
isMaxPoint: bl,
|
|
436
|
+
zero: R
|
|
437
|
+
};
|
|
438
|
+
}), il = `${xl(I, R, !1, !1)}`, ul = `M ${r},${R} ${ht(I)} ${I.at(-1).x},${R}`, cl = `M ${r},${R} ${I.at(-1).x},${R}`, nt = `M ${wl(I)}`, it = `M ${ht(I)}`, dl = Fl(
|
|
439
|
+
e.value.style.chart.areas.smooth ? nt : it
|
|
440
|
+
);
|
|
441
|
+
return {
|
|
442
|
+
...Z,
|
|
443
|
+
uid: Te(),
|
|
444
|
+
plots: I,
|
|
445
|
+
smoothPath: il,
|
|
446
|
+
straightPath: ul,
|
|
447
|
+
zeroPath: cl,
|
|
448
|
+
pathLength: dl,
|
|
449
|
+
smoothPathRidge: nt,
|
|
450
|
+
straightPathRidge: it
|
|
451
|
+
};
|
|
452
|
+
}).filter((Z) => !w.value.includes(Z.id))
|
|
453
|
+
};
|
|
454
|
+
});
|
|
455
|
+
}), w = u([]);
|
|
456
|
+
function qt(t) {
|
|
457
|
+
const o = /* @__PURE__ */ new Map();
|
|
458
|
+
return t.forEach((l) => {
|
|
459
|
+
l.datapoints.forEach((r, a) => {
|
|
460
|
+
const h = dt(r.name);
|
|
461
|
+
o.has(h) || o.set(h, {
|
|
462
|
+
id: h,
|
|
463
|
+
name: r.name,
|
|
464
|
+
color: r.color,
|
|
465
|
+
shape: "circle",
|
|
466
|
+
segregate: () => ae(h),
|
|
467
|
+
isSegregated: w.value.includes(h),
|
|
468
|
+
opacity: w.value.includes(h) ? 0.5 : 1
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
}), Array.from(o.values());
|
|
472
|
+
}
|
|
473
|
+
const j = c(() => qt(S.value)), Jt = c(() => ({
|
|
474
|
+
cy: "donut-div-legend",
|
|
475
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
476
|
+
color: e.value.style.chart.legend.color,
|
|
477
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
478
|
+
paddingBottom: 12,
|
|
479
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
480
|
+
})), N = u(!1);
|
|
481
|
+
function Qe(t) {
|
|
482
|
+
N.value = t, Re.value += 1;
|
|
483
|
+
}
|
|
484
|
+
const Ze = u({}), et = u([]);
|
|
485
|
+
function Kt(t) {
|
|
486
|
+
de("selectDatapoint", t), e.value.style.chart.dialog.show && (et.value = t.datapoints.map((o) => ({
|
|
487
|
+
name: o.name,
|
|
488
|
+
color: o.color,
|
|
489
|
+
type: "line",
|
|
490
|
+
useArea: !0,
|
|
491
|
+
smooth: e.value.style.chart.areas.smooth,
|
|
492
|
+
series: o.values
|
|
493
|
+
})), V.value = t, Ze.value = Ll({
|
|
494
|
+
...e.value.style.chart.dialog.xyChart,
|
|
495
|
+
responsive: !0,
|
|
496
|
+
// Overriding
|
|
497
|
+
chart: {
|
|
498
|
+
...e.value.style.chart.dialog.xyChart.chart,
|
|
499
|
+
grid: {
|
|
500
|
+
...e.value.style.chart.dialog.xyChart.chart.grid,
|
|
501
|
+
labels: {
|
|
502
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
503
|
+
xAxisLabels: {
|
|
504
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
505
|
+
values: e.value.style.chart.xAxis.labels.values,
|
|
506
|
+
// Overriding
|
|
507
|
+
autoRotate: {
|
|
508
|
+
enable: !0,
|
|
509
|
+
angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
510
|
+
},
|
|
511
|
+
// overriding
|
|
512
|
+
datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
|
|
513
|
+
// Overriding
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
tooltip: {
|
|
518
|
+
...e.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
519
|
+
showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
|
|
520
|
+
// Overriding
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}), ge.value && ge.value.open());
|
|
524
|
+
}
|
|
525
|
+
const xe = u(null);
|
|
526
|
+
function Qt(t) {
|
|
527
|
+
xe.value = t;
|
|
528
|
+
}
|
|
529
|
+
function Zt() {
|
|
530
|
+
xe.value = null;
|
|
531
|
+
}
|
|
532
|
+
const re = u(!1);
|
|
533
|
+
function we() {
|
|
534
|
+
re.value = !re.value;
|
|
535
|
+
}
|
|
536
|
+
function tt() {
|
|
537
|
+
P.value.showTable = !P.value.showTable;
|
|
538
|
+
}
|
|
539
|
+
const lt = c(() => ({ body: U.value.flatMap((l) => l.datapoints.flatMap((r) => ({
|
|
540
|
+
...r,
|
|
541
|
+
rowName: `${l.name}: ${r.name}`
|
|
542
|
+
}))).map((l) => [
|
|
543
|
+
{
|
|
544
|
+
name: l.rowName,
|
|
545
|
+
color: l.color
|
|
546
|
+
},
|
|
547
|
+
...l.values
|
|
548
|
+
]) })), se = c(() => {
|
|
549
|
+
const t = [
|
|
550
|
+
e.value.table.columnNames.series,
|
|
551
|
+
...J.value.map((r) => r.text)
|
|
552
|
+
], o = {
|
|
553
|
+
th: {
|
|
554
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
555
|
+
color: e.value.table.th.color,
|
|
556
|
+
outline: e.value.table.th.outline
|
|
557
|
+
},
|
|
558
|
+
td: {
|
|
559
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
560
|
+
color: e.value.table.td.color,
|
|
561
|
+
outline: e.value.table.td.outline
|
|
562
|
+
},
|
|
563
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
564
|
+
};
|
|
565
|
+
return {
|
|
566
|
+
colNames: [
|
|
567
|
+
e.value.table.columnNames.series,
|
|
568
|
+
...J.value.map((r) => r.text)
|
|
569
|
+
],
|
|
570
|
+
head: t,
|
|
571
|
+
body: lt.value.body,
|
|
572
|
+
config: o
|
|
573
|
+
};
|
|
574
|
+
});
|
|
575
|
+
function Fe(t = null) {
|
|
576
|
+
De(() => {
|
|
577
|
+
const o = [
|
|
578
|
+
[e.value.table.columnNames.series, ...J.map((a) => [a.text])],
|
|
579
|
+
...lt.value.body.map((a, h) => [a[0].name, ...a.slice(1)])
|
|
580
|
+
], l = [
|
|
581
|
+
[e.value.style.chart.title.text],
|
|
582
|
+
[e.value.style.chart.title.subtitle.text]
|
|
583
|
+
].concat(o), r = Tl(l);
|
|
584
|
+
t ? t(r) : Sl({
|
|
585
|
+
csvContent: r,
|
|
586
|
+
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
function el() {
|
|
591
|
+
return U.value;
|
|
592
|
+
}
|
|
593
|
+
async function tl({ scale: t = 2 } = {}) {
|
|
594
|
+
if (!D.value) return;
|
|
595
|
+
const { width: o, height: l } = D.value.getBoundingClientRect(), r = o / l, { imageUri: a, base64: h } = await Yl({ domElement: D.value, base64: !0, img: !0, scale: t });
|
|
596
|
+
return {
|
|
597
|
+
imageUri: a,
|
|
598
|
+
base64: h,
|
|
599
|
+
title: e.value.style.chart.title.text,
|
|
600
|
+
width: o,
|
|
601
|
+
height: l,
|
|
602
|
+
aspectRatio: r
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
const ll = c(() => ({ min: 0, max: q.value }));
|
|
606
|
+
Ul({
|
|
607
|
+
timeLabelsEls: fe,
|
|
608
|
+
timeLabels: J,
|
|
609
|
+
slicer: ll,
|
|
610
|
+
configRef: e,
|
|
611
|
+
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
612
|
+
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
613
|
+
isAutoSize: !1,
|
|
614
|
+
width: Ht,
|
|
615
|
+
height: Vt,
|
|
616
|
+
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
617
|
+
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
618
|
+
});
|
|
619
|
+
const K = c(() => {
|
|
620
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = P.value.showTable;
|
|
621
|
+
return {
|
|
622
|
+
component: t ? ze : $t,
|
|
623
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
624
|
+
props: t ? {
|
|
625
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
626
|
+
color: e.value.table.th.color,
|
|
627
|
+
headerColor: e.value.table.th.color,
|
|
628
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
629
|
+
isFullscreen: N.value,
|
|
630
|
+
fullscreenParent: D.value,
|
|
631
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
632
|
+
} : {
|
|
633
|
+
hideDetails: !0,
|
|
634
|
+
config: {
|
|
635
|
+
open: o,
|
|
636
|
+
maxHeight: 1e4,
|
|
637
|
+
body: {
|
|
638
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
639
|
+
color: e.value.style.chart.color
|
|
640
|
+
},
|
|
641
|
+
head: {
|
|
642
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
643
|
+
color: e.value.style.chart.color
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
});
|
|
649
|
+
te(() => P.value.showTable, (t) => {
|
|
650
|
+
e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
|
|
651
|
+
});
|
|
652
|
+
function ot() {
|
|
653
|
+
P.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
654
|
+
}
|
|
655
|
+
const ol = c(() => e.value.style.chart.backgroundColor), al = c(() => ({
|
|
656
|
+
...e.value.style.chart.legend,
|
|
657
|
+
position: "bottom"
|
|
658
|
+
})), rl = c(() => e.value.style.chart.title), { exportSvg: sl, getSvg: nl } = Rl({
|
|
659
|
+
svg: oe,
|
|
660
|
+
title: rl,
|
|
661
|
+
legend: al,
|
|
662
|
+
legendItems: j,
|
|
663
|
+
backgroundColor: ol
|
|
664
|
+
});
|
|
665
|
+
async function at({ isCb: t }) {
|
|
666
|
+
if (t) {
|
|
667
|
+
const { blob: o, url: l, text: r, dataUrl: a } = await nl();
|
|
668
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: r, dataUrl: a });
|
|
669
|
+
} else
|
|
670
|
+
sl();
|
|
671
|
+
}
|
|
672
|
+
return xt({
|
|
673
|
+
getData: el,
|
|
674
|
+
getImage: tl,
|
|
675
|
+
generateImage: Ye,
|
|
676
|
+
generateSvg: at,
|
|
677
|
+
generatePdf: We,
|
|
678
|
+
generateCsv: Fe,
|
|
679
|
+
hideSeries: It,
|
|
680
|
+
showSeries: Rt,
|
|
681
|
+
toggleAnnotator: we,
|
|
682
|
+
toggleTable: tt,
|
|
683
|
+
toggleFullscreen: Qe
|
|
684
|
+
}), (t, o) => (s(), n("div", {
|
|
685
|
+
ref_key: "ridgelineChart",
|
|
686
|
+
ref: D,
|
|
687
|
+
class: ne(`vue-data-ui-component vue-ui-ridgeline ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
688
|
+
id: `vue-ui-ridgeline_${k.value}`,
|
|
689
|
+
style: F({
|
|
690
|
+
fontFamily: e.value.style.fontFamily,
|
|
691
|
+
width: "100%",
|
|
692
|
+
textAlign: "center",
|
|
693
|
+
background: e.value.style.chart.backgroundColor,
|
|
694
|
+
height: e.value.responsive ? "100%" : void 0
|
|
695
|
+
}),
|
|
696
|
+
onMouseenter: o[3] || (o[3] = () => i(Ve)(!0)),
|
|
697
|
+
onMouseleave: o[4] || (o[4] = () => i(Ve)(!1))
|
|
698
|
+
}, [
|
|
699
|
+
e.value.userOptions.buttons.annotator && i(oe) ? (s(), _(i(Bt), {
|
|
700
|
+
key: 0,
|
|
701
|
+
color: e.value.style.chart.color,
|
|
702
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
703
|
+
active: re.value,
|
|
704
|
+
svgRef: i(oe),
|
|
705
|
+
onClose: we
|
|
706
|
+
}, {
|
|
707
|
+
"annotator-action-close": d(() => [
|
|
708
|
+
g(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
709
|
+
]),
|
|
710
|
+
"annotator-action-color": d(({ color: l }) => [
|
|
711
|
+
g(t.$slots, "annotator-action-color", B(E({ color: l })), void 0, !0)
|
|
712
|
+
]),
|
|
713
|
+
"annotator-action-draw": d(({ mode: l }) => [
|
|
714
|
+
g(t.$slots, "annotator-action-draw", B(E({ mode: l })), void 0, !0)
|
|
715
|
+
]),
|
|
716
|
+
"annotator-action-undo": d(({ disabled: l }) => [
|
|
717
|
+
g(t.$slots, "annotator-action-undo", B(E({ disabled: l })), void 0, !0)
|
|
718
|
+
]),
|
|
719
|
+
"annotator-action-redo": d(({ disabled: l }) => [
|
|
720
|
+
g(t.$slots, "annotator-action-redo", B(E({ disabled: l })), void 0, !0)
|
|
721
|
+
]),
|
|
722
|
+
"annotator-action-delete": d(({ disabled: l }) => [
|
|
723
|
+
g(t.$slots, "annotator-action-delete", B(E({ disabled: l })), void 0, !0)
|
|
724
|
+
]),
|
|
725
|
+
_: 3
|
|
726
|
+
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
727
|
+
g(t.$slots, "userConfig", {}, void 0, !0),
|
|
728
|
+
Pt.value ? (s(), n("div", {
|
|
729
|
+
key: 1,
|
|
730
|
+
ref_key: "noTitle",
|
|
731
|
+
ref: Ne,
|
|
732
|
+
class: "vue-data-ui-no-title-space",
|
|
733
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
734
|
+
}, null, 512)) : v("", !0),
|
|
735
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
736
|
+
key: 2,
|
|
737
|
+
ref_key: "chartTitle",
|
|
738
|
+
ref: Oe,
|
|
739
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
740
|
+
}, [
|
|
741
|
+
(s(), _(Gl, {
|
|
742
|
+
key: `title_${he.value}`,
|
|
743
|
+
config: {
|
|
744
|
+
title: {
|
|
745
|
+
cy: "ridgeline-div-title",
|
|
746
|
+
...e.value.style.chart.title
|
|
747
|
+
},
|
|
748
|
+
subtitle: {
|
|
749
|
+
cy: "ridgeline-div-subtitle",
|
|
750
|
+
...e.value.style.chart.title.subtitle
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}, null, 8, ["config"]))
|
|
754
|
+
], 512)) : v("", !0),
|
|
755
|
+
e.value.userOptions.show && G.value && (i(Xe) || i(le)) ? (s(), _(i(Et), {
|
|
756
|
+
ref_key: "userOptionsRef",
|
|
757
|
+
ref: be,
|
|
758
|
+
key: `user_option_${Re.value}`,
|
|
759
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
760
|
+
color: e.value.style.chart.color,
|
|
761
|
+
isPrinting: i(je),
|
|
762
|
+
isImaging: i(Ge),
|
|
763
|
+
uid: k.value,
|
|
764
|
+
hasTooltip: !1,
|
|
765
|
+
callbacks: e.value.userOptions.callbacks,
|
|
766
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
767
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
768
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
769
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
770
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
771
|
+
hasLabel: !1,
|
|
772
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
773
|
+
isFullscreen: N.value,
|
|
774
|
+
printScale: e.value.userOptions.print.scale,
|
|
775
|
+
chartElement: D.value,
|
|
776
|
+
position: e.value.userOptions.position,
|
|
777
|
+
isTooltip: !1,
|
|
778
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
779
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
780
|
+
isAnnotation: re.value,
|
|
781
|
+
tableDialog: e.value.table.useDialog,
|
|
782
|
+
style: F({ visibility: i(Xe) ? i(le) ? "visible" : "hidden" : "visible" }),
|
|
783
|
+
onToggleFullscreen: Qe,
|
|
784
|
+
onGeneratePdf: i(We),
|
|
785
|
+
onGenerateCsv: Fe,
|
|
786
|
+
onGenerateImage: i(Ye),
|
|
787
|
+
onGenerateSvg: at,
|
|
788
|
+
onToggleTable: tt,
|
|
789
|
+
onToggleAnnotator: we
|
|
790
|
+
}, $e({ _: 2 }, [
|
|
791
|
+
t.$slots.menuIcon ? {
|
|
792
|
+
name: "menuIcon",
|
|
793
|
+
fn: d(({ isOpen: l, color: r }) => [
|
|
794
|
+
g(t.$slots, "menuIcon", B(E({ isOpen: l, color: r })), void 0, !0)
|
|
795
|
+
]),
|
|
796
|
+
key: "0"
|
|
797
|
+
} : void 0,
|
|
798
|
+
t.$slots.optionTooltip ? {
|
|
799
|
+
name: "optionTooltip",
|
|
800
|
+
fn: d(() => [
|
|
801
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
802
|
+
]),
|
|
803
|
+
key: "1"
|
|
804
|
+
} : void 0,
|
|
805
|
+
t.$slots.optionPdf ? {
|
|
806
|
+
name: "optionPdf",
|
|
807
|
+
fn: d(() => [
|
|
808
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
809
|
+
]),
|
|
810
|
+
key: "2"
|
|
811
|
+
} : void 0,
|
|
812
|
+
t.$slots.optionCsv ? {
|
|
813
|
+
name: "optionCsv",
|
|
814
|
+
fn: d(() => [
|
|
815
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
816
|
+
]),
|
|
817
|
+
key: "3"
|
|
818
|
+
} : void 0,
|
|
819
|
+
t.$slots.optionImg ? {
|
|
820
|
+
name: "optionImg",
|
|
821
|
+
fn: d(() => [
|
|
822
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
823
|
+
]),
|
|
824
|
+
key: "4"
|
|
825
|
+
} : void 0,
|
|
826
|
+
t.$slots.optionSvg ? {
|
|
827
|
+
name: "optionSvg",
|
|
828
|
+
fn: d(() => [
|
|
829
|
+
g(t.$slots, "optionSvg", {}, void 0, !0)
|
|
830
|
+
]),
|
|
831
|
+
key: "5"
|
|
832
|
+
} : void 0,
|
|
833
|
+
t.$slots.optionTable ? {
|
|
834
|
+
name: "optionTable",
|
|
835
|
+
fn: d(() => [
|
|
836
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
837
|
+
]),
|
|
838
|
+
key: "6"
|
|
839
|
+
} : void 0,
|
|
840
|
+
t.$slots.optionFullscreen ? {
|
|
841
|
+
name: "optionFullscreen",
|
|
842
|
+
fn: d(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
843
|
+
g(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
844
|
+
]),
|
|
845
|
+
key: "7"
|
|
846
|
+
} : void 0,
|
|
847
|
+
t.$slots.optionAnnotator ? {
|
|
848
|
+
name: "optionAnnotator",
|
|
849
|
+
fn: d(({ toggleAnnotator: l, isAnnotator: r }) => [
|
|
850
|
+
g(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
|
|
851
|
+
]),
|
|
852
|
+
key: "8"
|
|
853
|
+
} : void 0
|
|
854
|
+
]), 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),
|
|
855
|
+
(s(), n("svg", {
|
|
856
|
+
ref_key: "svgRef",
|
|
857
|
+
ref: oe,
|
|
858
|
+
xmlns: i(Dl),
|
|
859
|
+
class: ne({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
860
|
+
viewBox: `0 0 ${C.value.width <= 0 ? 10 : C.value.width} ${A.value.fullHeight <= 0 ? 10 : A.value.fullHeight}`,
|
|
861
|
+
style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${He.value}px; width: 100%;` : ""}`)
|
|
862
|
+
}, [
|
|
863
|
+
_e(i(Tt)),
|
|
864
|
+
b("defs", null, [
|
|
865
|
+
(s(!0), n(y, null, p(j.value, (l, r) => (s(), n("linearGradient", {
|
|
866
|
+
id: `gradient-${l.id}-${k.value}`,
|
|
867
|
+
x1: "50%",
|
|
868
|
+
y1: "0%",
|
|
869
|
+
x2: "50%",
|
|
870
|
+
y2: "100%"
|
|
871
|
+
}, [
|
|
872
|
+
b("stop", {
|
|
873
|
+
offset: "0%",
|
|
874
|
+
"stop-color": l.color,
|
|
875
|
+
"stop-opacity": "1"
|
|
876
|
+
}, null, 8, Zl),
|
|
877
|
+
b("stop", {
|
|
878
|
+
offset: "30%",
|
|
879
|
+
"stop-color": l.color,
|
|
880
|
+
"stop-opacity": "0.7"
|
|
881
|
+
}, null, 8, eo),
|
|
882
|
+
b("stop", {
|
|
883
|
+
offset: "70%",
|
|
884
|
+
"stop-color": l.color,
|
|
885
|
+
"stop-opacity": "0.3"
|
|
886
|
+
}, null, 8, to),
|
|
887
|
+
b("stop", {
|
|
888
|
+
offset: "100%",
|
|
889
|
+
"stop-color": l.color,
|
|
890
|
+
"stop-opacity": "0.1"
|
|
891
|
+
}, null, 8, lo)
|
|
892
|
+
], 8, Ql))), 256)),
|
|
893
|
+
(s(!0), n(y, null, p(U.value, (l, r) => (s(), n(y, null, [
|
|
894
|
+
(s(!0), n(y, null, p(l.datapoints, (a, h) => (s(), n("linearGradient", {
|
|
895
|
+
key: `grad${a.id}`,
|
|
896
|
+
id: `gradient-single-${k.value}-${a.uid}`,
|
|
897
|
+
x1: "50%",
|
|
898
|
+
y1: "0%",
|
|
899
|
+
x2: "50%",
|
|
900
|
+
y2: "100%"
|
|
901
|
+
}, [
|
|
902
|
+
b("stop", {
|
|
903
|
+
offset: "0%",
|
|
904
|
+
"stop-color": a.color,
|
|
905
|
+
"stop-opacity": "1"
|
|
906
|
+
}, null, 8, ao),
|
|
907
|
+
b("stop", {
|
|
908
|
+
offset: "30%",
|
|
909
|
+
"stop-color": a.color,
|
|
910
|
+
"stop-opacity": "0.7"
|
|
911
|
+
}, null, 8, ro),
|
|
912
|
+
b("stop", {
|
|
913
|
+
offset: "70%",
|
|
914
|
+
"stop-color": a.color,
|
|
915
|
+
"stop-opacity": "0.3"
|
|
916
|
+
}, null, 8, so),
|
|
917
|
+
b("stop", {
|
|
918
|
+
offset: "100%",
|
|
919
|
+
"stop-color": a.color,
|
|
920
|
+
"stop-opacity": "0.1"
|
|
921
|
+
}, null, 8, no)
|
|
922
|
+
], 8, oo))), 128))
|
|
923
|
+
], 64))), 256))
|
|
924
|
+
]),
|
|
925
|
+
(s(!0), n(y, null, p(U.value, (l, r) => (s(), n("g", {
|
|
926
|
+
key: `ds-${r}`
|
|
927
|
+
}, [
|
|
928
|
+
(s(!0), n(y, null, p(l.datapoints, (a, h) => (s(), n("g", {
|
|
929
|
+
key: a.id
|
|
930
|
+
}, [
|
|
931
|
+
t.$slots.pattern ? (s(), n("g", io, [
|
|
932
|
+
b("defs", null, [
|
|
933
|
+
g(t.$slots, "pattern", Be({ ref_for: !0 }, { datapointIndex: r, seriesIndex: h, patternId: `pattern_${k.value}_${a.uid}` }), void 0, !0)
|
|
934
|
+
])
|
|
935
|
+
])) : v("", !0),
|
|
936
|
+
b("path", {
|
|
937
|
+
fill: t.$slots.pattern ? `url(#pattern_${k.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
938
|
+
stroke: "none",
|
|
939
|
+
"stroke-linecap": "round",
|
|
940
|
+
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
941
|
+
style: F({
|
|
942
|
+
opacity: e.value.style.chart.areas.opacity
|
|
943
|
+
})
|
|
944
|
+
}, null, 12, uo),
|
|
945
|
+
b("path", {
|
|
946
|
+
fill: "none",
|
|
947
|
+
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
948
|
+
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
949
|
+
d: e.value.style.chart.areas.smooth ? a.smoothPathRidge : a.straightPathRidge,
|
|
950
|
+
"stroke-linecap": "round",
|
|
951
|
+
"stroke-linejoin": "round",
|
|
952
|
+
class: ne({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(Y) }),
|
|
953
|
+
style: F({
|
|
954
|
+
strokeDasharray: a.pathLength,
|
|
955
|
+
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
956
|
+
})
|
|
957
|
+
}, null, 14, co),
|
|
958
|
+
b("path", {
|
|
959
|
+
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,
|
|
960
|
+
stroke: "none",
|
|
961
|
+
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
962
|
+
"stroke-linecap": "round",
|
|
963
|
+
"stroke-linejoin": "round",
|
|
964
|
+
class: ne({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(Y) }),
|
|
965
|
+
style: F({
|
|
966
|
+
strokeDasharray: a.pathLength,
|
|
967
|
+
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
968
|
+
})
|
|
969
|
+
}, null, 14, ho),
|
|
970
|
+
e.value.style.chart.zeroLine.show ? (s(), n("path", {
|
|
971
|
+
key: 1,
|
|
972
|
+
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
973
|
+
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
974
|
+
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
975
|
+
d: a.zeroPath,
|
|
976
|
+
"stroke-linecap": "round"
|
|
977
|
+
}, null, 8, vo)) : v("", !0),
|
|
978
|
+
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (s(!0), n(y, { key: 2 }, p(a.plots, ($) => (s(), n(y, null, [
|
|
979
|
+
$.isMaxPoint ? (s(), n("line", {
|
|
980
|
+
key: 0,
|
|
981
|
+
x1: $.x,
|
|
982
|
+
y1: $.y,
|
|
983
|
+
x2: $.x,
|
|
984
|
+
y2: $.zero,
|
|
985
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? i($l)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
986
|
+
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
987
|
+
"stroke-linecap": "round",
|
|
988
|
+
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
989
|
+
}, null, 8, go)) : v("", !0)
|
|
990
|
+
], 64))), 256)) : v("", !0),
|
|
991
|
+
a.plots.length === 1 ? (s(), n("circle", {
|
|
992
|
+
key: 3,
|
|
993
|
+
cx: a.plots[0].x,
|
|
994
|
+
cy: a.plots[0].y,
|
|
995
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
996
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
997
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
998
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? a.color : e.value.style.chart.selector.dot.fill,
|
|
999
|
+
style: {
|
|
1000
|
+
pointerEvents: "none"
|
|
1001
|
+
}
|
|
1002
|
+
}, null, 8, fo)) : v("", !0)
|
|
1003
|
+
]))), 128)),
|
|
1004
|
+
b("text", {
|
|
1005
|
+
x: l.label.x,
|
|
1006
|
+
y: l.label.y,
|
|
1007
|
+
"text-anchor": "end",
|
|
1008
|
+
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
1009
|
+
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1010
|
+
fill: e.value.style.chart.yAxis.labels.color,
|
|
1011
|
+
style: F({
|
|
1012
|
+
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
1013
|
+
}),
|
|
1014
|
+
"text-decoration": e.value.style.chart.dialog.show && (xe.value === r || V.value && l.uid === V.value.uid) ? "underline" : "",
|
|
1015
|
+
onMouseenter: (a) => Qt(r),
|
|
1016
|
+
onMouseleave: Zt,
|
|
1017
|
+
onClick: (a) => Kt(l)
|
|
1018
|
+
}, H(l.name), 45, bo)
|
|
1019
|
+
]))), 128)),
|
|
1020
|
+
e.value.style.chart.xAxis.labels.values.length ? (s(), n("g", {
|
|
1021
|
+
key: 0,
|
|
1022
|
+
ref_key: "timeLabelsEls",
|
|
1023
|
+
ref: fe
|
|
1024
|
+
}, [
|
|
1025
|
+
(s(!0), n(y, null, p(X.value, (l, r) => g(t.$slots, "time-label", Be({ ref_for: !0 }, {
|
|
1026
|
+
show: l && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || l && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === X.value.length - 1) || l && f.value && f.value.index === r || l && !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,
|
|
1027
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
1028
|
+
content: l.label,
|
|
1029
|
+
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1030
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1031
|
+
transform: `translate(${l.selectorX}, ${A.value.top + l.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1032
|
+
x: l.selectorX,
|
|
1033
|
+
y: A.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
1034
|
+
}), () => [
|
|
1035
|
+
l && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || l && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === X.value.length - 1) || l && f.value && f.value.index === r || l && !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", Co, [
|
|
1036
|
+
String(l.label).includes(`
|
|
1037
|
+
`) ? (s(), n("text", {
|
|
1038
|
+
key: 1,
|
|
1039
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1040
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
1041
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1042
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1043
|
+
transform: `translate(${l.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1044
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1045
|
+
style: F({
|
|
1046
|
+
opacity: f.value ? f.value.index === r ? 1 : 0.2 : 1
|
|
1047
|
+
}),
|
|
1048
|
+
innerHTML: i(_l)({
|
|
1049
|
+
content: String(l.label),
|
|
1050
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
1051
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1052
|
+
x: 0,
|
|
1053
|
+
y: 0
|
|
1054
|
+
})
|
|
1055
|
+
}, null, 12, Ao)) : (s(), n("text", {
|
|
1056
|
+
key: 0,
|
|
1057
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1058
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
1059
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
1060
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1061
|
+
transform: `translate(${l.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1062
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1063
|
+
style: F({
|
|
1064
|
+
opacity: f.value ? f.value.index === r ? 1 : 0.2 : 1
|
|
1065
|
+
})
|
|
1066
|
+
}, H(l.label), 13, yo))
|
|
1067
|
+
])) : v("", !0)
|
|
1068
|
+
], !0)), 256))
|
|
1069
|
+
], 512)) : v("", !0),
|
|
1070
|
+
b("g", null, [
|
|
1071
|
+
(s(!0), n(y, null, p(X.value, (l, r) => (s(), n("rect", {
|
|
1072
|
+
x: l.x,
|
|
1073
|
+
y: l.y,
|
|
1074
|
+
width: l.width < 0 ? 0.1 : l.width,
|
|
1075
|
+
height: l.height < 0 ? 0.1 : l.height,
|
|
1076
|
+
fill: "transparent",
|
|
1077
|
+
onMouseenter: (a) => Ut(l),
|
|
1078
|
+
onMouseleave: (a) => jt(l),
|
|
1079
|
+
onClick: () => Gt(l)
|
|
1080
|
+
}, null, 40, mo))), 256)),
|
|
1081
|
+
e.value.style.chart.selector.show && f.value ? (s(), n("line", {
|
|
1082
|
+
key: 0,
|
|
1083
|
+
x1: f.value.selectorX,
|
|
1084
|
+
x2: f.value.selectorX,
|
|
1085
|
+
y1: f.value.y,
|
|
1086
|
+
y2: f.value.y + f.value.height - x.value / 2,
|
|
1087
|
+
stroke: e.value.style.chart.selector.stroke,
|
|
1088
|
+
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
1089
|
+
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
1090
|
+
"stroke-linecap": "round",
|
|
1091
|
+
style: { pointerEvents: "none" }
|
|
1092
|
+
}, null, 8, po)) : v("", !0),
|
|
1093
|
+
f.value ? (s(!0), n(y, { key: 1 }, p(U.value, (l) => (s(), n(y, null, [
|
|
1094
|
+
(s(!0), n(y, null, p(l.datapoints, (r) => (s(), n(y, null, [
|
|
1095
|
+
(s(!0), n(y, null, p(r.plots, (a, h) => (s(), n(y, null, [
|
|
1096
|
+
f.value && f.value.index === h ? (s(), n("circle", {
|
|
1097
|
+
key: 0,
|
|
1098
|
+
cx: a.x,
|
|
1099
|
+
cy: a.y,
|
|
1100
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
1101
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
1102
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
1103
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? r.color : e.value.style.chart.selector.dot.fill,
|
|
1104
|
+
style: {
|
|
1105
|
+
pointerEvents: "none"
|
|
1106
|
+
}
|
|
1107
|
+
}, null, 8, ko)) : v("", !0),
|
|
1108
|
+
f.value && f.value.index === h ? (s(), n("text", {
|
|
1109
|
+
key: 1,
|
|
1110
|
+
x: Ke(
|
|
1111
|
+
a.x,
|
|
1112
|
+
i(ue)(
|
|
1113
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1114
|
+
a.value,
|
|
1115
|
+
i(ce)({
|
|
1116
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1117
|
+
v: a.value,
|
|
1118
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1119
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1120
|
+
})
|
|
1121
|
+
),
|
|
1122
|
+
e.value.style.chart.selector.labels.fontSize
|
|
1123
|
+
) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
1124
|
+
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1125
|
+
"text-anchor": Ke(
|
|
1126
|
+
a.x,
|
|
1127
|
+
i(ue)(
|
|
1128
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1129
|
+
a.value,
|
|
1130
|
+
i(ce)({
|
|
1131
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1132
|
+
v: a.value,
|
|
1133
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1134
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1135
|
+
})
|
|
1136
|
+
),
|
|
1137
|
+
e.value.style.chart.selector.labels.fontSize
|
|
1138
|
+
) ? "end" : "start",
|
|
1139
|
+
"font-size": e.value.style.chart.selector.labels.fontSize,
|
|
1140
|
+
fill: e.value.style.chart.selector.labels.color,
|
|
1141
|
+
style: {
|
|
1142
|
+
pointerEvents: "none"
|
|
1143
|
+
}
|
|
1144
|
+
}, H(i(ue)(
|
|
1145
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1146
|
+
a.value,
|
|
1147
|
+
i(ce)({
|
|
1148
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1149
|
+
v: a.value,
|
|
1150
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1151
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
1152
|
+
})
|
|
1153
|
+
)), 9, xo)) : v("", !0)
|
|
1154
|
+
], 64))), 256))
|
|
1155
|
+
], 64))), 256))
|
|
1156
|
+
], 64))), 256)) : v("", !0)
|
|
1157
|
+
]),
|
|
1158
|
+
g(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
1159
|
+
], 14, Kl)),
|
|
1160
|
+
t.$slots.watermark ? (s(), n("div", wo, [
|
|
1161
|
+
g(t.$slots, "watermark", B(E({ isPrinting: i(je) || i(Ge) })), void 0, !0)
|
|
1162
|
+
])) : v("", !0),
|
|
1163
|
+
b("div", {
|
|
1164
|
+
ref_key: "chartLegend",
|
|
1165
|
+
ref: Me
|
|
1166
|
+
}, [
|
|
1167
|
+
e.value.style.chart.legend.show ? (s(), _(jl, {
|
|
1168
|
+
key: `legend_${ve.value}`,
|
|
1169
|
+
legendSet: j.value,
|
|
1170
|
+
config: Jt.value,
|
|
1171
|
+
onClickMarker: o[0] || (o[0] = ({ legend: l }) => ae(l.id))
|
|
1172
|
+
}, $e({
|
|
1173
|
+
item: d(({ legend: l }) => [
|
|
1174
|
+
i(Y) ? v("", !0) : (s(), n("div", {
|
|
1175
|
+
key: 0,
|
|
1176
|
+
style: F(`opacity:${w.value.includes(l.id) ? 0.5 : 1}`),
|
|
1177
|
+
onClick: (r) => l.segregate()
|
|
1178
|
+
}, H(l.name), 13, Fo))
|
|
1179
|
+
]),
|
|
1180
|
+
_: 2
|
|
1181
|
+
}, [
|
|
1182
|
+
t.$slots.pattern ? {
|
|
1183
|
+
name: "legend-pattern",
|
|
1184
|
+
fn: d(({ legend: l, index: r }) => [
|
|
1185
|
+
_e(Wl, {
|
|
1186
|
+
shape: l.shape,
|
|
1187
|
+
radius: 30,
|
|
1188
|
+
stroke: "none",
|
|
1189
|
+
plot: { x: 30, y: 30 },
|
|
1190
|
+
fill: `url(#pattern_${k.value}_${r})`
|
|
1191
|
+
}, null, 8, ["shape", "fill"])
|
|
1192
|
+
]),
|
|
1193
|
+
key: "0"
|
|
1194
|
+
} : void 0
|
|
1195
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1196
|
+
g(t.$slots, "legend", { legend: j.value }, void 0, !0)
|
|
1197
|
+
], 512),
|
|
1198
|
+
t.$slots.source ? (s(), n("div", {
|
|
1199
|
+
key: 5,
|
|
1200
|
+
ref_key: "source",
|
|
1201
|
+
ref: Pe,
|
|
1202
|
+
dir: "auto"
|
|
1203
|
+
}, [
|
|
1204
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
1205
|
+
], 512)) : v("", !0),
|
|
1206
|
+
G.value && e.value.userOptions.buttons.table ? (s(), _(Al(K.value.component), Be({ key: 6 }, K.value.props, {
|
|
1207
|
+
ref_key: "tableUnit",
|
|
1208
|
+
ref: W,
|
|
1209
|
+
onClose: ot
|
|
1210
|
+
}), $e({
|
|
1211
|
+
content: d(() => [
|
|
1212
|
+
(s(), _(i(_t), {
|
|
1213
|
+
key: `table_${Ot.value}`,
|
|
1214
|
+
colNames: se.value.colNames,
|
|
1215
|
+
head: se.value.head,
|
|
1216
|
+
body: se.value.body,
|
|
1217
|
+
config: se.value.config,
|
|
1218
|
+
title: e.value.table.useDialog ? "" : K.value.title,
|
|
1219
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1220
|
+
onClose: ot
|
|
1221
|
+
}, {
|
|
1222
|
+
th: d(({ th: l }) => [
|
|
1223
|
+
b("div", { innerHTML: l }, null, 8, Do)
|
|
1224
|
+
]),
|
|
1225
|
+
td: d(({ td: l }) => [
|
|
1226
|
+
Ee(H(l.name ? l.name : i(ue)(
|
|
1227
|
+
e.value.style.chart.selector.labels.formatter,
|
|
1228
|
+
l,
|
|
1229
|
+
i(ce)({
|
|
1230
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1231
|
+
v: l,
|
|
1232
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1233
|
+
r: e.value.table.td.roundingValue
|
|
1234
|
+
})
|
|
1235
|
+
)), 1)
|
|
1236
|
+
]),
|
|
1237
|
+
_: 1
|
|
1238
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1239
|
+
]),
|
|
1240
|
+
_: 2
|
|
1241
|
+
}, [
|
|
1242
|
+
e.value.table.useDialog ? {
|
|
1243
|
+
name: "title",
|
|
1244
|
+
fn: d(() => [
|
|
1245
|
+
Ee(H(K.value.title), 1)
|
|
1246
|
+
]),
|
|
1247
|
+
key: "0"
|
|
1248
|
+
} : void 0,
|
|
1249
|
+
e.value.table.useDialog ? {
|
|
1250
|
+
name: "actions",
|
|
1251
|
+
fn: d(() => [
|
|
1252
|
+
b("button", {
|
|
1253
|
+
tabindex: "0",
|
|
1254
|
+
class: "vue-ui-user-options-button",
|
|
1255
|
+
onClick: o[1] || (o[1] = (l) => Fe(e.value.userOptions.callbacks.csv))
|
|
1256
|
+
}, [
|
|
1257
|
+
_e(i(Dt), {
|
|
1258
|
+
name: "excel",
|
|
1259
|
+
stroke: K.value.props.color
|
|
1260
|
+
}, null, 8, ["stroke"])
|
|
1261
|
+
])
|
|
1262
|
+
]),
|
|
1263
|
+
key: "1"
|
|
1264
|
+
} : void 0
|
|
1265
|
+
]), 1040)) : v("", !0),
|
|
1266
|
+
e.value.style.chart.dialog.show ? (s(), _(i(ze), {
|
|
1267
|
+
key: 7,
|
|
1268
|
+
ref_key: "dialog",
|
|
1269
|
+
ref: ge,
|
|
1270
|
+
onClose: o[2] || (o[2] = (l) => V.value = null),
|
|
1271
|
+
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1272
|
+
color: e.value.style.chart.dialog.color,
|
|
1273
|
+
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1274
|
+
headerColor: e.value.style.chart.dialog.header.color,
|
|
1275
|
+
isFullscreen: N.value,
|
|
1276
|
+
fullscreenParent: D.value,
|
|
1277
|
+
withPadding: ""
|
|
1278
|
+
}, {
|
|
1279
|
+
title: d(() => [
|
|
1280
|
+
Ee(H(V.value.name), 1)
|
|
1281
|
+
]),
|
|
1282
|
+
content: d(() => [
|
|
1283
|
+
V.value ? (s(), _(i(Ft), {
|
|
1284
|
+
key: 0,
|
|
1285
|
+
config: Ze.value,
|
|
1286
|
+
dataset: et.value
|
|
1287
|
+
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1288
|
+
]),
|
|
1289
|
+
_: 1
|
|
1290
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1291
|
+
i(Y) ? (s(), _(Pl, { key: 8 })) : v("", !0)
|
|
1292
|
+
], 46, Jl));
|
|
1293
|
+
}
|
|
1294
|
+
}, _o = /* @__PURE__ */ ql($o, [["__scopeId", "data-v-e547ab5e"]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1295
|
+
__proto__: null,
|
|
1296
|
+
default: _o
|
|
1297
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1298
|
+
export {
|
|
1299
|
+
Go as a,
|
|
1300
|
+
Wo as b,
|
|
1301
|
+
_o as v
|
|
1302
|
+
};
|