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,1239 @@
|
|
|
1
|
+
import { defineAsyncComponent as O, ref as v, shallowRef as Ue, computed as d, onMounted as Gt, onBeforeUnmount as qt, toRefs as Zt, watch as Q, watchEffect as Jt, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as $, normalizeClass as N, renderSlot as f, createBlock as E, createCommentVNode as h, createElementVNode as S, createVNode as xe, withCtx as x, normalizeProps as _, guardReactiveProps as L, createSlots as We, Fragment as m, renderList as k, toDisplayString as z, Teleport as Kt, resolveDynamicComponent as Qt, mergeProps as el, createTextVNode as Ve, nextTick as tl } from "vue";
|
|
2
|
+
import { c as Ge, o as qe, g as Ze, k as ll, t as al, j as ol, l as sl, p as ee, F as Je, a as R, d as Y, X as rl, n as nl, r as il, U as ul, w as cl, Y as P, i as vl, W as te, u as dl, q as hl, x as yl } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Ke, u as fl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as xl, a as be } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as bl, B as gl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as pl } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as ml } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as kl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Al } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as wl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import Sl from "./img-DUzJeMlr.js";
|
|
13
|
+
import _l from "./Title-DfFUb9hd.js";
|
|
14
|
+
import Ll from "./Legend-Web3GjlR.js";
|
|
15
|
+
import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Qe = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, grid: { xAxis: { stroke: "#5A5A5A" }, horizontalLines: { stroke: "#4A4A4A" }, yAxis: { stroke: "#5A5A5A" }, verticalLines: { stroke: "#4A4A4A" } }, axes: { x: { labels: { color: "#CCCCCC" }, name: { color: "#CCCCCC" } }, y: { labels: { color: "#CCCCCC" }, name: { color: "#CCCCCC" } } }, plots: { stroke: "#1A1A1A", labels: { color: "#CCCCCC" } } } } }, et = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, grid: { xAxis: { stroke: "#5D403740" }, horizontalLines: { stroke: "#5D403740" }, yAxis: { stroke: "#5D403740" }, verticalLines: { stroke: "#5D403740" } }, axes: { x: { labels: { color: "#424242" }, name: { color: "#424242" } }, y: { labels: { color: "#424242" }, name: { color: "#424242" } } }, plots: { stroke: "#FFF8E1", gradient: { intensity: 20 }, labels: { color: "#424242" } } } } }, tt = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, grid: { xAxis: { stroke: "#5D403780" }, horizontalLines: { stroke: "#5D403780" }, yAxis: { stroke: "#5D403780" }, verticalLines: { stroke: "#5D403780" } }, axes: { x: { labels: { color: "#BDBDBD" }, name: { color: "#BDBDBD" } }, y: { labels: { color: "#BDBDBD" }, name: { color: "#BDBDBD" } } }, plots: { stroke: "#1E1E1E", gradient: { intensity: 20 }, labels: { color: "#BDBDBD" } } } } }, lt = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, grid: { xAxis: { stroke: "#5F6A5F" }, horizontalLines: { stroke: "#3A3A3A" }, yAxis: { stroke: "#5F6A5F" }, verticalLines: { stroke: "#3A3A3A" } }, axes: { x: { labels: { color: "#5F6A5F" }, name: { color: "#5F6A5F" } }, y: { labels: { color: "#5F6A5F" }, name: { color: "#5F6A5F" } } }, plots: { stroke: "#1A1A1A", gradient: { intensity: 20 }, labels: { color: "#5F6A5F" } } } } }, at = { table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, grid: { xAxis: { stroke: "#8F837A" }, horizontalLines: { show: !1 }, yAxis: { stroke: "#8F837A" }, verticalLines: { show: !1 } }, axes: { x: { labels: { color: "#8F837A" }, name: { color: "#8F837A" } }, y: { labels: { color: "#8F837A" }, name: { color: "#8F837A" } } }, plots: { stroke: "#fbfafa", gradient: { intensity: 20 }, labels: { color: "#8F837A" } } } } }, ot = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, grid: { xAxis: { stroke: "#829C98" }, horizontalLines: { stroke: "#92B0AB" }, yAxis: { stroke: "#829C98" }, verticalLines: { stroke: "#92B0AB" } }, axes: { x: { labels: { color: "#50606C" }, name: { color: "#50606C" } }, y: { labels: { color: "#50606C" }, name: { color: "#50606C" } } }, plots: { stroke: "#50606C", gradient: { intensity: 20 }, labels: { color: "#50606C" } } } } }, st = {
|
|
17
|
+
default: {},
|
|
18
|
+
dark: Qe,
|
|
19
|
+
celebration: et,
|
|
20
|
+
celebrationNight: tt,
|
|
21
|
+
hack: lt,
|
|
22
|
+
zen: at,
|
|
23
|
+
concrete: ot
|
|
24
|
+
}, $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
celebration: et,
|
|
27
|
+
celebrationNight: tt,
|
|
28
|
+
concrete: ot,
|
|
29
|
+
dark: Qe,
|
|
30
|
+
default: st,
|
|
31
|
+
hack: lt,
|
|
32
|
+
zen: at
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), $l = ["id"], Tl = ["id"], Dl = ["xmlns", "viewBox"], zl = ["x", "y", "width", "height"], Ml = { key: 1 }, Bl = ["id"], Ol = ["stop-color"], El = ["stop-color"], Il = ["stop-color"], Nl = { key: 2 }, Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xl = { key: 3 }, Rl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Yl = ["x", "y", "fill", "font-size"], Hl = ["transform", "font-size", "fill", "font-weight"], jl = { key: 6 }, Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = { key: 7 }, Vl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Gl = ["transform", "fill", "font-size", "text-anchor"], ql = ["x", "y", "font-size", "fill", "font-weight"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kl = ["d", "stroke", "stroke-width"], Ql = ["d", "stroke", "stroke-width"], ea = ["cx", "cy", "fill", "r"], ta = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], la = { key: 1 }, aa = ["x", "y", "font-size", "fill", "font-weight"], oa = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], sa = { key: 2 }, ra = ["x", "y", "font-size", "font-weight", "fill"], na = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ia = {
|
|
34
|
+
key: 4,
|
|
35
|
+
class: "vue-data-ui-watermark"
|
|
36
|
+
}, ua = ["id"], ca = ["onClick"], va = ["innerHTML"], da = {
|
|
37
|
+
__name: "vue-ui-history-plot",
|
|
38
|
+
props: {
|
|
39
|
+
config: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default() {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
dataset: {
|
|
46
|
+
type: Array,
|
|
47
|
+
default() {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
emits: ["selectLegend", "selectDatapoint"],
|
|
53
|
+
setup(rt, { expose: nt, emit: it }) {
|
|
54
|
+
const ut = O(() => import("./Tooltip-WD0Ros6G.js")), ct = O(() => import("./BaseIcon-CofSxalQ.js")), vt = O(() => import("./vue-ui-accordion-DSdZUn2C.js")), dt = O(() => import("./DataTable-CHaOCmsE.js")), ht = O(() => import("./PenAndPaper-HCZQTkqi.js")), yt = O(() => import("./UserOptions-B3I-s3Lw.js")), ft = O(() => import("./PackageVersion-Bq_mtsqr.js")), xt = O(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_history_plot: bt } = xl(), { isThemeValid: gt, warnInvalidTheme: pt } = kl(), y = rt, T = v(null), ge = v(null), pe = v(0), me = v(null), ke = v(0), Ce = v(0), Ae = v(0), M = Ue(null), X = Ue(null), we = v(null), D = v(Ge()), le = v(!1), ae = v(""), p = v([]), H = v(!1), w = v(null), j = v(!1), Se = v(null), _e = v(!1), U = v(null), oe = v(null), se = v(null), re = v(null), V = v(null), ne = v(null), G = d({
|
|
55
|
+
get: () => !!y.dataset && y.dataset.length,
|
|
56
|
+
set: (t) => t
|
|
57
|
+
}), Le = it;
|
|
58
|
+
Gt(() => {
|
|
59
|
+
_e.value = !0, $e();
|
|
60
|
+
});
|
|
61
|
+
const Fe = d(() => !!e.value.debug);
|
|
62
|
+
function $e() {
|
|
63
|
+
if (qe(y.dataset) ? (Ze({
|
|
64
|
+
componentName: "VueUiHistoryPlot",
|
|
65
|
+
type: "dataset",
|
|
66
|
+
debug: Fe.value
|
|
67
|
+
}), ue.value = !0) : y.dataset.forEach((t, a) => {
|
|
68
|
+
ll({
|
|
69
|
+
datasetObject: t,
|
|
70
|
+
requiredAttributes: ["name", "values"]
|
|
71
|
+
}).forEach((l) => {
|
|
72
|
+
G.value = !1, Ze({
|
|
73
|
+
componentName: "VueUiHistoryPlot",
|
|
74
|
+
type: "datasetSerieAttribute",
|
|
75
|
+
property: l,
|
|
76
|
+
index: a,
|
|
77
|
+
debug: Fe.value
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}), qe(y.dataset) || (ue.value = e.value.loading), e.value.responsive) {
|
|
81
|
+
const t = Ke(() => {
|
|
82
|
+
const { width: a, height: l } = fl({
|
|
83
|
+
chart: T.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? ge.value : null,
|
|
85
|
+
noTitle: we.value,
|
|
86
|
+
legend: e.value.style.chart.legend.show ? me.value : null,
|
|
87
|
+
source: Se.value
|
|
88
|
+
});
|
|
89
|
+
requestAnimationFrame(() => {
|
|
90
|
+
b.value.width = a, b.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = P({
|
|
91
|
+
relator: Math.min(a, l),
|
|
92
|
+
adjuster: 600,
|
|
93
|
+
source: e.value.style.chart.plots.radius,
|
|
94
|
+
threshold: 3,
|
|
95
|
+
fallback: 3
|
|
96
|
+
}), n.value.indexLabels = P({
|
|
97
|
+
relator: Math.min(a, l),
|
|
98
|
+
adjuster: 600,
|
|
99
|
+
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
100
|
+
threshold: 6,
|
|
101
|
+
fallback: 6
|
|
102
|
+
}), n.value.labels = P({
|
|
103
|
+
relator: Math.min(a, l),
|
|
104
|
+
adjuster: 600,
|
|
105
|
+
source: e.value.style.chart.plots.labels.fontSize,
|
|
106
|
+
threshold: 6,
|
|
107
|
+
fallback: 6
|
|
108
|
+
}), n.value.xAxisLabels = P({
|
|
109
|
+
relator: Math.min(a, l),
|
|
110
|
+
adjuster: 600,
|
|
111
|
+
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
112
|
+
threshold: 6,
|
|
113
|
+
fallback: 6
|
|
114
|
+
}), n.value.xAxisName = P({
|
|
115
|
+
relator: Math.min(a, l),
|
|
116
|
+
adjuster: 600,
|
|
117
|
+
source: e.value.style.chart.axes.x.name.fontSize,
|
|
118
|
+
threshold: 6,
|
|
119
|
+
fallback: 6
|
|
120
|
+
}), n.value.yAxisLabels = P({
|
|
121
|
+
relator: Math.min(a, l),
|
|
122
|
+
adjuster: 600,
|
|
123
|
+
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
124
|
+
threshold: 6,
|
|
125
|
+
fallback: 6
|
|
126
|
+
}), n.value.yAxisName = P({
|
|
127
|
+
relator: Math.min(a, l),
|
|
128
|
+
adjuster: 600,
|
|
129
|
+
source: e.value.style.chart.axes.y.name.fontSize,
|
|
130
|
+
threshold: 6,
|
|
131
|
+
fallback: 6
|
|
132
|
+
})) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value = T.value.parentNode, M.value.observe(X.value);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
qt(() => {
|
|
139
|
+
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect());
|
|
140
|
+
});
|
|
141
|
+
function ie() {
|
|
142
|
+
const t = be({
|
|
143
|
+
userConfig: y.config,
|
|
144
|
+
defaultConfig: bt
|
|
145
|
+
});
|
|
146
|
+
let a = {};
|
|
147
|
+
const l = t.theme;
|
|
148
|
+
if (l)
|
|
149
|
+
if (!gt.value(t))
|
|
150
|
+
pt(t), a = t;
|
|
151
|
+
else {
|
|
152
|
+
const i = be({
|
|
153
|
+
userConfig: st[l] || y.config,
|
|
154
|
+
defaultConfig: t
|
|
155
|
+
});
|
|
156
|
+
a = {
|
|
157
|
+
...be({
|
|
158
|
+
userConfig: y.config,
|
|
159
|
+
defaultConfig: i
|
|
160
|
+
}),
|
|
161
|
+
customPalette: t.customPalette.length ? t.customPalette : vl[l] || ee
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
else
|
|
165
|
+
a = t;
|
|
166
|
+
return y.config && te(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && te(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && te(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && te(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
167
|
+
}
|
|
168
|
+
const e = v(ie()), { loading: B, FINAL_DATASET: mt, manualLoading: ue } = bl({
|
|
169
|
+
...Zt(y),
|
|
170
|
+
FINAL_CONFIG: e,
|
|
171
|
+
prepareConfig: ie,
|
|
172
|
+
skeletonDataset: [
|
|
173
|
+
{
|
|
174
|
+
name: "",
|
|
175
|
+
color: "#CACACA",
|
|
176
|
+
values: [
|
|
177
|
+
{ label: "", x: 1, y: 9 },
|
|
178
|
+
{ label: "", x: 4, y: 1 },
|
|
179
|
+
{ label: "", x: 7, y: 9 },
|
|
180
|
+
{ label: "", x: 9, y: 4 }
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
skeletonConfig: al({
|
|
185
|
+
defaultConfig: e.value,
|
|
186
|
+
userConfig: {
|
|
187
|
+
userOptions: { show: !1 },
|
|
188
|
+
table: { show: !1 },
|
|
189
|
+
style: {
|
|
190
|
+
chart: {
|
|
191
|
+
backgroundColor: "#99999930",
|
|
192
|
+
axes: {
|
|
193
|
+
x: {
|
|
194
|
+
scaleMin: 0,
|
|
195
|
+
scaleMax: 10,
|
|
196
|
+
labels: { show: !1 },
|
|
197
|
+
name: { text: "" }
|
|
198
|
+
},
|
|
199
|
+
y: {
|
|
200
|
+
scaleMin: 0,
|
|
201
|
+
scaleMax: 10,
|
|
202
|
+
labels: { show: !1 },
|
|
203
|
+
name: { text: "" }
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
grid: {
|
|
207
|
+
xAxis: {
|
|
208
|
+
stroke: "#6A6A6A"
|
|
209
|
+
},
|
|
210
|
+
horizontalLines: {
|
|
211
|
+
stroke: "#6A6A6A50"
|
|
212
|
+
},
|
|
213
|
+
yAxis: {
|
|
214
|
+
stroke: "#6A6A6A"
|
|
215
|
+
},
|
|
216
|
+
verticalLines: {
|
|
217
|
+
stroke: "#6A6A6A50"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
legend: {
|
|
221
|
+
backgroundColor: "transparent"
|
|
222
|
+
},
|
|
223
|
+
paths: {
|
|
224
|
+
useSerieColor: !1,
|
|
225
|
+
stroke: "#6A6A6A"
|
|
226
|
+
},
|
|
227
|
+
plots: {
|
|
228
|
+
stroke: "#6A6A6A",
|
|
229
|
+
indexLabels: { show: !1 },
|
|
230
|
+
labels: { show: !1 }
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
})
|
|
236
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Te, keepUserOptionState: De } = Cl({ config: e.value }), { svgRef: ve } = Al({ config: e.value.style.chart.title });
|
|
237
|
+
Q(() => y.config, (t) => {
|
|
238
|
+
B.value || (e.value = ie()), ce.value = !e.value.userOptions.showOnChartHover, $e(), pe.value += 1, Ce.value += 1, ke.value += 1, b.value.height = e.value.style.chart.height, b.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
239
|
+
}, { deep: !0 }), Q(() => y.dataset, (t) => {
|
|
240
|
+
Array.isArray(t) && t.length > 0 && (ue.value = !1);
|
|
241
|
+
}, { deep: !0 });
|
|
242
|
+
const { isPrinting: ze, isImaging: Me, generatePdf: Be, generateImage: Oe } = pl({
|
|
243
|
+
elementId: `history_plot_${D.value}`,
|
|
244
|
+
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
245
|
+
options: e.value.userOptions.print
|
|
246
|
+
}), kt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ct = d(() => ol(e.value.customPalette)), A = v({
|
|
247
|
+
showTable: e.value.table.show,
|
|
248
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
249
|
+
});
|
|
250
|
+
Q(e, () => {
|
|
251
|
+
A.value = {
|
|
252
|
+
showTable: e.value.table.show,
|
|
253
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
254
|
+
};
|
|
255
|
+
}, { immediate: !0 });
|
|
256
|
+
const b = v({
|
|
257
|
+
height: e.value.style.chart.height,
|
|
258
|
+
width: e.value.style.chart.width
|
|
259
|
+
}), At = d(() => b.value.width), wt = d(() => b.value.height);
|
|
260
|
+
function St() {
|
|
261
|
+
let t = 0;
|
|
262
|
+
ne.value && (t = Array.from(ne.value.querySelectorAll("text")).reduce((i, o) => {
|
|
263
|
+
const C = o.getComputedTextLength();
|
|
264
|
+
return C > i ? C : i;
|
|
265
|
+
}, 0));
|
|
266
|
+
const a = re.value ? re.value.getBoundingClientRect().width : 0;
|
|
267
|
+
return t + a + (a ? 24 : 0);
|
|
268
|
+
}
|
|
269
|
+
const Ee = v(0), _t = Ke((t) => {
|
|
270
|
+
Ee.value = t;
|
|
271
|
+
});
|
|
272
|
+
Jt((t) => {
|
|
273
|
+
const a = V.value;
|
|
274
|
+
if (!a) return;
|
|
275
|
+
const l = new ResizeObserver((i) => {
|
|
276
|
+
_t(i[0].contentRect.height);
|
|
277
|
+
});
|
|
278
|
+
l.observe(a), t(() => l.disconnect());
|
|
279
|
+
});
|
|
280
|
+
const Ie = d(() => {
|
|
281
|
+
let t = 0;
|
|
282
|
+
se.value && (t = se.value.getBBox().height + n.value.xAxisName / 2);
|
|
283
|
+
let a = 0;
|
|
284
|
+
return V.value && (a = Ee.value), t + a;
|
|
285
|
+
}), c = d(() => {
|
|
286
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = St(), i = e.value.style.chart.plots.radius;
|
|
287
|
+
return {
|
|
288
|
+
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
289
|
+
top: a + i,
|
|
290
|
+
right: b.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
|
|
291
|
+
bottom: b.value.height - e.value.style.chart.padding.bottom - Ie.value - i - e.value.style.chart.axes.x.name.offsetY,
|
|
292
|
+
width: b.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
|
|
293
|
+
height: b.value.height - a - e.value.style.chart.padding.bottom - Ie.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
294
|
+
};
|
|
295
|
+
}), n = v({
|
|
296
|
+
plots: e.value.style.chart.plots.radius,
|
|
297
|
+
indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
|
|
298
|
+
labels: e.value.style.chart.plots.labels.fontSize,
|
|
299
|
+
xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
|
|
300
|
+
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
301
|
+
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
302
|
+
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
303
|
+
}), F = d(() => mt.value.map((t, a) => ({
|
|
304
|
+
...t,
|
|
305
|
+
color: t.color ? sl(t.color) : Ct.value[a] || ee[a] || ee[a % ee.length],
|
|
306
|
+
seriesIndex: a
|
|
307
|
+
}))), Lt = d(() => Math.max(...F.value.filter((t) => !p.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), Ft = d(() => {
|
|
308
|
+
const t = Math.min(...F.value.filter((a) => !p.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
309
|
+
return t < 0 ? t : 0;
|
|
310
|
+
}), $t = d(() => Math.max(...F.value.filter((t) => !p.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), Tt = d(() => {
|
|
311
|
+
const t = Math.min(...F.value.filter((a) => !p.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
312
|
+
return t < 0 ? t : 0;
|
|
313
|
+
}), g = d(() => {
|
|
314
|
+
const t = Je(
|
|
315
|
+
e.value.style.chart.axes.x.scaleMin === null ? Ft.value : e.value.style.chart.axes.x.scaleMin,
|
|
316
|
+
e.value.style.chart.axes.x.scaleMax === null ? Lt.value : e.value.style.chart.axes.x.scaleMax,
|
|
317
|
+
e.value.style.chart.axes.x.ticks
|
|
318
|
+
), a = Je(
|
|
319
|
+
e.value.style.chart.axes.y.scaleMin === null ? Tt.value : e.value.style.chart.axes.y.scaleMin,
|
|
320
|
+
e.value.style.chart.axes.y.scaleMax === null ? $t.value : e.value.style.chart.axes.y.scaleMax,
|
|
321
|
+
e.value.style.chart.axes.y.ticks
|
|
322
|
+
);
|
|
323
|
+
return {
|
|
324
|
+
x: t,
|
|
325
|
+
y: a,
|
|
326
|
+
tickX: t.ticks.map((l) => ({
|
|
327
|
+
x: c.value.left + (l - t.min) / (t.max - t.min) * c.value.width,
|
|
328
|
+
y1: c.value.top,
|
|
329
|
+
y2: c.value.bottom,
|
|
330
|
+
value: l
|
|
331
|
+
})),
|
|
332
|
+
tickY: a.ticks.map((l) => ({
|
|
333
|
+
y: c.value.bottom - (l - a.min) / (a.max - a.min) * c.value.height,
|
|
334
|
+
x1: c.value.left,
|
|
335
|
+
x2: c.value.right,
|
|
336
|
+
value: l
|
|
337
|
+
}))
|
|
338
|
+
};
|
|
339
|
+
});
|
|
340
|
+
function Dt(t) {
|
|
341
|
+
const a = g.value.x.min < 0 ? Math.abs(g.value.x.min) : g.value.x.min > 0 ? -g.value.x.min : 0;
|
|
342
|
+
return c.value.left + ((t || 0) + a) / (g.value.x.max + a) * c.value.width;
|
|
343
|
+
}
|
|
344
|
+
function zt(t) {
|
|
345
|
+
const a = g.value.y.min < 0 ? Math.abs(g.value.y.min) : g.value.y.min > 0 ? -g.value.y.min : 0;
|
|
346
|
+
return c.value.bottom - ((t || 0) + a) / (g.value.y.max + a) * c.value.height;
|
|
347
|
+
}
|
|
348
|
+
const I = d(() => F.value.filter((t) => !p.value.includes(t.seriesIndex)).map((t, a) => {
|
|
349
|
+
const l = t.values.map((o, C) => ({
|
|
350
|
+
valueX: o.x,
|
|
351
|
+
valueY: o.y,
|
|
352
|
+
label: o.label,
|
|
353
|
+
x: Dt(o.x),
|
|
354
|
+
y: zt(o.y),
|
|
355
|
+
color: t.color,
|
|
356
|
+
seriesName: t.name,
|
|
357
|
+
id: Ge()
|
|
358
|
+
})), i = l.map((o) => `${o.x},${o.y} `).join("").trim();
|
|
359
|
+
return {
|
|
360
|
+
...t,
|
|
361
|
+
plots: l,
|
|
362
|
+
path: `M${i}`
|
|
363
|
+
};
|
|
364
|
+
}));
|
|
365
|
+
function q(t) {
|
|
366
|
+
p.value.includes(t) ? p.value = p.value.filter((a) => a !== t) : p.value.push(t);
|
|
367
|
+
}
|
|
368
|
+
function Ne(t) {
|
|
369
|
+
if (!F.value.length)
|
|
370
|
+
return e.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null;
|
|
371
|
+
const a = F.value.find((l) => l.name === t);
|
|
372
|
+
return a || (e.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${t}"`), null);
|
|
373
|
+
}
|
|
374
|
+
function Mt(t) {
|
|
375
|
+
const a = Ne(t);
|
|
376
|
+
a !== null && p.value.includes(a.seriesIndex) && q(a.seriesIndex);
|
|
377
|
+
}
|
|
378
|
+
function Bt(t) {
|
|
379
|
+
const a = Ne(t);
|
|
380
|
+
a !== null && (p.value.includes(a.seriesIndex) || q(a.seriesIndex));
|
|
381
|
+
}
|
|
382
|
+
const de = d(() => F.value.map((t) => ({
|
|
383
|
+
...t,
|
|
384
|
+
opacity: p.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
385
|
+
segregate: () => q(t.seriesIndex),
|
|
386
|
+
isSegregated: p.value.includes(t.seriesIndex),
|
|
387
|
+
shape: "circle"
|
|
388
|
+
}))), Ot = d(() => ({
|
|
389
|
+
cy: "history-plot-div-legend",
|
|
390
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
391
|
+
color: e.value.style.chart.legend.color,
|
|
392
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
393
|
+
paddingBottom: 12,
|
|
394
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
395
|
+
}));
|
|
396
|
+
function Et({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
397
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), Le("selectDatapoint", t);
|
|
398
|
+
}
|
|
399
|
+
function Pe(t) {
|
|
400
|
+
Le("selectLegend", {
|
|
401
|
+
...t,
|
|
402
|
+
isSegregated: !t.isSegregated,
|
|
403
|
+
opacity: t.isSegregated ? 1 : 0.5
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
function Xe(t) {
|
|
407
|
+
H.value = t, Ae.value += 1;
|
|
408
|
+
}
|
|
409
|
+
const he = v(null);
|
|
410
|
+
function It({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
411
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), le.value = !1, w.value = null;
|
|
412
|
+
}
|
|
413
|
+
function Nt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
414
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), he.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: F.value }, w.value = t;
|
|
415
|
+
const i = e.value.style.chart.tooltip.customFormat;
|
|
416
|
+
if (j.value = !1, yl(i))
|
|
417
|
+
try {
|
|
418
|
+
const o = i({
|
|
419
|
+
seriesIndex: l,
|
|
420
|
+
datapoint: t,
|
|
421
|
+
plotIndex: a,
|
|
422
|
+
series: F.value,
|
|
423
|
+
config: e.value
|
|
424
|
+
});
|
|
425
|
+
typeof o == "string" && (ae.value = o, j.value = !0);
|
|
426
|
+
} catch {
|
|
427
|
+
console.warn("Custom format cannot be applied."), j.value = !1;
|
|
428
|
+
}
|
|
429
|
+
if (!j.value) {
|
|
430
|
+
let o = "";
|
|
431
|
+
o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${R(
|
|
432
|
+
e.value.style.chart.axes.x.labels.formatter,
|
|
433
|
+
t.valueX,
|
|
434
|
+
Y({
|
|
435
|
+
p: e.value.style.chart.axes.x.labels.prefix,
|
|
436
|
+
v: t.valueX,
|
|
437
|
+
s: e.value.style.chart.axes.x.labels.suffix,
|
|
438
|
+
r: e.value.style.chart.axes.x.labels.rounding
|
|
439
|
+
})
|
|
440
|
+
)}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${R(
|
|
441
|
+
e.value.style.chart.axes.y.labels.formatter,
|
|
442
|
+
t.valueY,
|
|
443
|
+
Y({
|
|
444
|
+
p: e.value.style.chart.axes.y.labels.prefix,
|
|
445
|
+
v: t.valueY,
|
|
446
|
+
s: e.value.style.chart.axes.y.labels.suffix,
|
|
447
|
+
r: e.value.style.chart.axes.y.labels.rounding
|
|
448
|
+
})
|
|
449
|
+
)}</div>`, ae.value = `<div>${o}</div>`;
|
|
450
|
+
}
|
|
451
|
+
le.value = !0;
|
|
452
|
+
}
|
|
453
|
+
d(() => ({ head: I.value.map((a) => ({
|
|
454
|
+
name: a.name,
|
|
455
|
+
color: a.color
|
|
456
|
+
})) }));
|
|
457
|
+
const Z = d(() => {
|
|
458
|
+
const t = [
|
|
459
|
+
e.value.table.columnNames.series,
|
|
460
|
+
e.value.table.columnNames.datapoint,
|
|
461
|
+
e.value.table.columnNames.x,
|
|
462
|
+
e.value.table.columnNames.y
|
|
463
|
+
], a = I.value.flatMap((i) => i.plots.map((o) => [
|
|
464
|
+
{
|
|
465
|
+
color: o.color,
|
|
466
|
+
name: o.seriesName
|
|
467
|
+
},
|
|
468
|
+
o.label,
|
|
469
|
+
R(
|
|
470
|
+
e.value.style.chart.axes.x.labels.formatter,
|
|
471
|
+
o.valueX,
|
|
472
|
+
Y({
|
|
473
|
+
p: e.value.style.chart.axes.x.labels.prefix,
|
|
474
|
+
v: o.valueX,
|
|
475
|
+
s: e.value.style.chart.axes.x.labels.suffix,
|
|
476
|
+
r: e.value.style.chart.axes.x.labels.rounding
|
|
477
|
+
})
|
|
478
|
+
),
|
|
479
|
+
R(
|
|
480
|
+
e.value.style.chart.axes.y.labels.formatter,
|
|
481
|
+
o.valueY,
|
|
482
|
+
Y({
|
|
483
|
+
p: e.value.style.chart.axes.y.labels.prefix,
|
|
484
|
+
v: o.valueY,
|
|
485
|
+
s: e.value.style.chart.axes.y.labels.suffix,
|
|
486
|
+
r: e.value.style.chart.axes.y.labels.rounding
|
|
487
|
+
})
|
|
488
|
+
)
|
|
489
|
+
])), l = {
|
|
490
|
+
th: {
|
|
491
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
492
|
+
color: e.value.table.th.color,
|
|
493
|
+
outline: e.value.table.th.outline
|
|
494
|
+
},
|
|
495
|
+
td: {
|
|
496
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
497
|
+
color: e.value.table.td.color,
|
|
498
|
+
outline: e.value.table.td.outline
|
|
499
|
+
},
|
|
500
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
501
|
+
};
|
|
502
|
+
return {
|
|
503
|
+
head: t,
|
|
504
|
+
body: a,
|
|
505
|
+
config: l,
|
|
506
|
+
colNames: t
|
|
507
|
+
};
|
|
508
|
+
});
|
|
509
|
+
function ye(t = null) {
|
|
510
|
+
tl(() => {
|
|
511
|
+
const a = [
|
|
512
|
+
[e.value.table.columnNames.series],
|
|
513
|
+
[e.value.table.columnNames.datapoint],
|
|
514
|
+
[e.value.table.columnNames.x],
|
|
515
|
+
[e.value.table.columnNames.y]
|
|
516
|
+
], l = I.value.flatMap((C) => C.plots.map((K) => [
|
|
517
|
+
[K.seriesName],
|
|
518
|
+
[K.label],
|
|
519
|
+
[K.valueX],
|
|
520
|
+
[K.valueY]
|
|
521
|
+
])), i = [
|
|
522
|
+
[e.value.style.chart.title.text],
|
|
523
|
+
[e.value.style.chart.title.subtitle.text],
|
|
524
|
+
a
|
|
525
|
+
].concat(l), o = dl(i);
|
|
526
|
+
t ? t(o) : hl({
|
|
527
|
+
csvContent: o,
|
|
528
|
+
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
const J = v(!1);
|
|
533
|
+
function fe() {
|
|
534
|
+
J.value = !J.value;
|
|
535
|
+
}
|
|
536
|
+
function Re() {
|
|
537
|
+
A.value.showTable = !A.value.showTable;
|
|
538
|
+
}
|
|
539
|
+
function Ye() {
|
|
540
|
+
A.value.showTooltip = !A.value.showTooltip;
|
|
541
|
+
}
|
|
542
|
+
function Pt() {
|
|
543
|
+
return I.value;
|
|
544
|
+
}
|
|
545
|
+
async function Xt({ scale: t = 2 } = {}) {
|
|
546
|
+
if (!T.value) return;
|
|
547
|
+
const { width: a, height: l } = T.value.getBoundingClientRect(), i = a / l, { imageUri: o, base64: C } = await Sl({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
548
|
+
return {
|
|
549
|
+
imageUri: o,
|
|
550
|
+
base64: C,
|
|
551
|
+
title: e.value.style.chart.title.text,
|
|
552
|
+
width: a,
|
|
553
|
+
height: l,
|
|
554
|
+
aspectRatio: i
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
const Rt = d(() => g.value.tickX), Yt = d(() => ({ start: 0, end: g.value.tickX.length }));
|
|
558
|
+
wl({
|
|
559
|
+
timeLabelsEls: V,
|
|
560
|
+
timeLabels: Rt,
|
|
561
|
+
slicer: Yt,
|
|
562
|
+
configRef: e,
|
|
563
|
+
rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
|
|
564
|
+
autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
|
|
565
|
+
isAutoSize: !1,
|
|
566
|
+
width: At,
|
|
567
|
+
height: wt,
|
|
568
|
+
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
569
|
+
rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
|
|
570
|
+
});
|
|
571
|
+
const W = d(() => {
|
|
572
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = A.value.showTable;
|
|
573
|
+
return {
|
|
574
|
+
component: t ? xt : vt,
|
|
575
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
576
|
+
props: t ? {
|
|
577
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
578
|
+
color: e.value.table.th.color,
|
|
579
|
+
headerColor: e.value.table.th.color,
|
|
580
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
581
|
+
isFullscreen: H.value,
|
|
582
|
+
fullscreenParent: T.value,
|
|
583
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
584
|
+
} : {
|
|
585
|
+
hideDetails: !0,
|
|
586
|
+
config: {
|
|
587
|
+
open: a,
|
|
588
|
+
maxHeight: 1e4,
|
|
589
|
+
body: {
|
|
590
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
591
|
+
color: e.value.style.chart.color
|
|
592
|
+
},
|
|
593
|
+
head: {
|
|
594
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
595
|
+
color: e.value.style.chart.color
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
});
|
|
601
|
+
Q(() => A.value.showTable, (t) => {
|
|
602
|
+
e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
|
|
603
|
+
});
|
|
604
|
+
function He() {
|
|
605
|
+
A.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
|
|
606
|
+
}
|
|
607
|
+
const Ht = d(() => e.value.style.chart.backgroundColor), jt = d(() => e.value.style.chart.legend), Ut = d(() => e.value.style.chart.title), { exportSvg: Wt, getSvg: Vt } = ml({
|
|
608
|
+
svg: ve,
|
|
609
|
+
title: Ut,
|
|
610
|
+
legend: jt,
|
|
611
|
+
legendItems: de,
|
|
612
|
+
backgroundColor: Ht
|
|
613
|
+
});
|
|
614
|
+
async function je({ isCb: t }) {
|
|
615
|
+
if (t) {
|
|
616
|
+
const { blob: a, url: l, text: i, dataUrl: o } = await Vt();
|
|
617
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: i, dataUrl: o });
|
|
618
|
+
} else
|
|
619
|
+
Wt();
|
|
620
|
+
}
|
|
621
|
+
return nt({
|
|
622
|
+
getData: Pt,
|
|
623
|
+
getImage: Xt,
|
|
624
|
+
generatePdf: Be,
|
|
625
|
+
generateCsv: ye,
|
|
626
|
+
generateImage: Oe,
|
|
627
|
+
generateSvg: je,
|
|
628
|
+
hideSeries: Bt,
|
|
629
|
+
showSeries: Mt,
|
|
630
|
+
toggleTable: Re,
|
|
631
|
+
toggleTooltip: Ye,
|
|
632
|
+
toggleAnnotator: fe,
|
|
633
|
+
toggleFullscreen: Xe
|
|
634
|
+
}), (t, a) => (s(), r("div", {
|
|
635
|
+
id: `history_plot_${D.value}`,
|
|
636
|
+
ref_key: "historyPlotChart",
|
|
637
|
+
ref: T,
|
|
638
|
+
class: N({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
|
|
639
|
+
style: $(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
640
|
+
onMouseenter: a[2] || (a[2] = () => u(Te)(!0)),
|
|
641
|
+
onMouseleave: a[3] || (a[3] = () => u(Te)(!1))
|
|
642
|
+
}, [
|
|
643
|
+
f(t.$slots, "userConfig", {}, void 0, !0),
|
|
644
|
+
e.value.userOptions.buttons.annotator ? (s(), E(u(ht), {
|
|
645
|
+
key: 0,
|
|
646
|
+
svgRef: u(ve),
|
|
647
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
648
|
+
color: e.value.style.chart.color,
|
|
649
|
+
active: J.value,
|
|
650
|
+
onClose: fe
|
|
651
|
+
}, {
|
|
652
|
+
"annotator-action-close": x(() => [
|
|
653
|
+
f(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
654
|
+
]),
|
|
655
|
+
"annotator-action-color": x(({ color: l }) => [
|
|
656
|
+
f(t.$slots, "annotator-action-color", _(L({ color: l })), void 0, !0)
|
|
657
|
+
]),
|
|
658
|
+
"annotator-action-draw": x(({ mode: l }) => [
|
|
659
|
+
f(t.$slots, "annotator-action-draw", _(L({ mode: l })), void 0, !0)
|
|
660
|
+
]),
|
|
661
|
+
"annotator-action-undo": x(({ disabled: l }) => [
|
|
662
|
+
f(t.$slots, "annotator-action-undo", _(L({ disabled: l })), void 0, !0)
|
|
663
|
+
]),
|
|
664
|
+
"annotator-action-redo": x(({ disabled: l }) => [
|
|
665
|
+
f(t.$slots, "annotator-action-redo", _(L({ disabled: l })), void 0, !0)
|
|
666
|
+
]),
|
|
667
|
+
"annotator-action-delete": x(({ disabled: l }) => [
|
|
668
|
+
f(t.$slots, "annotator-action-delete", _(L({ disabled: l })), void 0, !0)
|
|
669
|
+
]),
|
|
670
|
+
_: 3
|
|
671
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
672
|
+
kt.value ? (s(), r("div", {
|
|
673
|
+
key: 1,
|
|
674
|
+
ref_key: "noTitle",
|
|
675
|
+
ref: we,
|
|
676
|
+
class: "vue-data-ui-no-title-space",
|
|
677
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
678
|
+
}, null, 512)) : h("", !0),
|
|
679
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
680
|
+
key: 2,
|
|
681
|
+
ref_key: "chartTitle",
|
|
682
|
+
ref: ge,
|
|
683
|
+
class: "vue-ui-xy-title",
|
|
684
|
+
style: $(`font-family:${e.value.style.fontFamily}`)
|
|
685
|
+
}, [
|
|
686
|
+
(s(), E(_l, {
|
|
687
|
+
key: `title_${pe.value}`,
|
|
688
|
+
config: {
|
|
689
|
+
title: {
|
|
690
|
+
cy: "history-plot-div-title",
|
|
691
|
+
...e.value.style.chart.title
|
|
692
|
+
},
|
|
693
|
+
subtitle: {
|
|
694
|
+
cy: "history-plot-div-subtitle",
|
|
695
|
+
...e.value.style.chart.title.subtitle
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}, null, 8, ["config"]))
|
|
699
|
+
], 4)) : h("", !0),
|
|
700
|
+
S("div", {
|
|
701
|
+
id: `legend-top-${D.value}`
|
|
702
|
+
}, null, 8, Tl),
|
|
703
|
+
e.value.userOptions.show && G.value && (u(De) || u(ce)) ? (s(), E(u(yt), {
|
|
704
|
+
ref_key: "userOptionsRef",
|
|
705
|
+
ref: oe,
|
|
706
|
+
key: `user_option_${Ae.value}`,
|
|
707
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
708
|
+
color: e.value.style.chart.color,
|
|
709
|
+
isPrinting: u(ze),
|
|
710
|
+
isImaging: u(Me),
|
|
711
|
+
uid: D.value,
|
|
712
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
713
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
714
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
715
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
716
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
717
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
718
|
+
hasLabel: !1,
|
|
719
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
720
|
+
isFullscreen: H.value,
|
|
721
|
+
chartElement: T.value,
|
|
722
|
+
position: e.value.userOptions.position,
|
|
723
|
+
isTooltip: A.value.showTooltip,
|
|
724
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
725
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
726
|
+
isAnnotation: J.value,
|
|
727
|
+
callbacks: e.value.userOptions.callbacks,
|
|
728
|
+
printScale: e.value.userOptions.print.scale,
|
|
729
|
+
tableDialog: e.value.table.useDialog,
|
|
730
|
+
onToggleFullscreen: Xe,
|
|
731
|
+
onGeneratePdf: u(Be),
|
|
732
|
+
onGenerateCsv: ye,
|
|
733
|
+
onGenerateImage: u(Oe),
|
|
734
|
+
onGenerateSvg: je,
|
|
735
|
+
onToggleTable: Re,
|
|
736
|
+
onToggleTooltip: Ye,
|
|
737
|
+
onToggleAnnotator: fe,
|
|
738
|
+
style: $({
|
|
739
|
+
visibility: u(De) ? u(ce) ? "visible" : "hidden" : "visible"
|
|
740
|
+
})
|
|
741
|
+
}, We({ _: 2 }, [
|
|
742
|
+
t.$slots.menuIcon ? {
|
|
743
|
+
name: "menuIcon",
|
|
744
|
+
fn: x(({ isOpen: l, color: i }) => [
|
|
745
|
+
f(t.$slots, "menuIcon", _(L({ isOpen: l, color: i })), void 0, !0)
|
|
746
|
+
]),
|
|
747
|
+
key: "0"
|
|
748
|
+
} : void 0,
|
|
749
|
+
t.$slots.optionTooltip ? {
|
|
750
|
+
name: "optionTooltip",
|
|
751
|
+
fn: x(() => [
|
|
752
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
753
|
+
]),
|
|
754
|
+
key: "1"
|
|
755
|
+
} : void 0,
|
|
756
|
+
t.$slots.optionPdf ? {
|
|
757
|
+
name: "optionPdf",
|
|
758
|
+
fn: x(() => [
|
|
759
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
760
|
+
]),
|
|
761
|
+
key: "2"
|
|
762
|
+
} : void 0,
|
|
763
|
+
t.$slots.optionCsv ? {
|
|
764
|
+
name: "optionCsv",
|
|
765
|
+
fn: x(() => [
|
|
766
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
767
|
+
]),
|
|
768
|
+
key: "3"
|
|
769
|
+
} : void 0,
|
|
770
|
+
t.$slots.optionImg ? {
|
|
771
|
+
name: "optionImg",
|
|
772
|
+
fn: x(() => [
|
|
773
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
774
|
+
]),
|
|
775
|
+
key: "4"
|
|
776
|
+
} : void 0,
|
|
777
|
+
t.$slots.optionSvg ? {
|
|
778
|
+
name: "optionSvg",
|
|
779
|
+
fn: x(() => [
|
|
780
|
+
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
781
|
+
]),
|
|
782
|
+
key: "5"
|
|
783
|
+
} : void 0,
|
|
784
|
+
t.$slots.optionTable ? {
|
|
785
|
+
name: "optionTable",
|
|
786
|
+
fn: x(() => [
|
|
787
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
788
|
+
]),
|
|
789
|
+
key: "6"
|
|
790
|
+
} : void 0,
|
|
791
|
+
t.$slots.optionFullscreen ? {
|
|
792
|
+
name: "optionFullscreen",
|
|
793
|
+
fn: x(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
794
|
+
f(t.$slots, "optionFullscreen", _(L({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
795
|
+
]),
|
|
796
|
+
key: "7"
|
|
797
|
+
} : void 0,
|
|
798
|
+
t.$slots.optionAnnotator ? {
|
|
799
|
+
name: "optionAnnotator",
|
|
800
|
+
fn: x(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
801
|
+
f(t.$slots, "optionAnnotator", _(L({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
802
|
+
]),
|
|
803
|
+
key: "8"
|
|
804
|
+
} : void 0
|
|
805
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
806
|
+
(s(), r("svg", {
|
|
807
|
+
ref_key: "svgRef",
|
|
808
|
+
ref: ve,
|
|
809
|
+
xmlns: u(rl),
|
|
810
|
+
viewBox: `0 0 ${b.value.width < 0 ? 0.1 : b.value.width} ${b.value.height < 0 ? 0.1 : b.value.height}`,
|
|
811
|
+
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
812
|
+
}, [
|
|
813
|
+
xe(u(ft)),
|
|
814
|
+
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
815
|
+
key: 0,
|
|
816
|
+
x: c.value.left,
|
|
817
|
+
y: c.value.top,
|
|
818
|
+
width: c.value.width <= 0 ? 10 : c.value.width,
|
|
819
|
+
height: c.value.height <= 0 ? 10 : c.value.height,
|
|
820
|
+
style: {
|
|
821
|
+
pointerEvents: "none"
|
|
822
|
+
}
|
|
823
|
+
}, [
|
|
824
|
+
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
825
|
+
], 8, zl)) : h("", !0),
|
|
826
|
+
e.value.style.chart.plots.gradient.show ? (s(), r("defs", Ml, [
|
|
827
|
+
(s(!0), r(m, null, k(I.value, (l, i) => (s(), r("radialGradient", {
|
|
828
|
+
id: `gradient_${i}_${D.value}`,
|
|
829
|
+
fy: "30%"
|
|
830
|
+
}, [
|
|
831
|
+
S("stop", {
|
|
832
|
+
offset: "10%",
|
|
833
|
+
"stop-color": u(nl)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
834
|
+
}, null, 8, Ol),
|
|
835
|
+
S("stop", {
|
|
836
|
+
offset: "90%",
|
|
837
|
+
"stop-color": u(il)(l.color, 0.1)
|
|
838
|
+
}, null, 8, El),
|
|
839
|
+
S("stop", {
|
|
840
|
+
offset: "100%",
|
|
841
|
+
"stop-color": l.color
|
|
842
|
+
}, null, 8, Il)
|
|
843
|
+
], 8, Bl))), 256))
|
|
844
|
+
])) : h("", !0),
|
|
845
|
+
e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Nl, [
|
|
846
|
+
(s(!0), r(m, null, k(g.value.tickX, (l) => (s(), r("line", {
|
|
847
|
+
x1: l.x,
|
|
848
|
+
x2: l.x,
|
|
849
|
+
y1: l.y1,
|
|
850
|
+
y2: l.y2,
|
|
851
|
+
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
852
|
+
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
853
|
+
"stroke-linecap": "round"
|
|
854
|
+
}, null, 8, Pl))), 256))
|
|
855
|
+
])) : h("", !0),
|
|
856
|
+
e.value.style.chart.axes.y.labels.show ? (s(), r("g", Xl, [
|
|
857
|
+
(s(!0), r(m, null, k(g.value.tickY, (l) => (s(), r("line", {
|
|
858
|
+
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
859
|
+
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
860
|
+
"stroke-linecap": "round",
|
|
861
|
+
x1: c.value.left - 5,
|
|
862
|
+
x2: c.value.left,
|
|
863
|
+
y1: l.y,
|
|
864
|
+
y2: l.y
|
|
865
|
+
}, null, 8, Rl))), 256))
|
|
866
|
+
])) : h("", !0),
|
|
867
|
+
e.value.style.chart.axes.y.labels.show ? (s(), r("g", {
|
|
868
|
+
key: 4,
|
|
869
|
+
ref_key: "yAxisScales",
|
|
870
|
+
ref: ne
|
|
871
|
+
}, [
|
|
872
|
+
(s(!0), r(m, null, k(g.value.tickY, (l) => (s(), r("text", {
|
|
873
|
+
x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
874
|
+
y: l.y + n.value.yAxisLabels / 3,
|
|
875
|
+
fill: e.value.style.chart.axes.y.labels.color,
|
|
876
|
+
"font-size": n.value.yAxisLabels,
|
|
877
|
+
"text-anchor": "end"
|
|
878
|
+
}, z(u(R)(
|
|
879
|
+
e.value.style.chart.axes.y.labels.formatter,
|
|
880
|
+
l.value,
|
|
881
|
+
u(Y)({
|
|
882
|
+
p: e.value.style.chart.axes.y.labels.prefix,
|
|
883
|
+
v: l.value,
|
|
884
|
+
s: e.value.style.chart.axes.y.labels.suffix,
|
|
885
|
+
r: e.value.style.chart.axes.y.labels.rounding
|
|
886
|
+
})
|
|
887
|
+
)), 9, Yl))), 256))
|
|
888
|
+
], 512)) : h("", !0),
|
|
889
|
+
e.value.style.chart.axes.y.name.text ? (s(), r("text", {
|
|
890
|
+
key: 5,
|
|
891
|
+
ref_key: "yAxisLabel",
|
|
892
|
+
ref: re,
|
|
893
|
+
transform: `translate(${n.value.yAxisName}, ${b.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
894
|
+
"font-size": n.value.yAxisName,
|
|
895
|
+
fill: e.value.style.chart.axes.y.name.color,
|
|
896
|
+
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
897
|
+
"text-anchor": "middle"
|
|
898
|
+
}, z(e.value.style.chart.axes.y.name.text), 9, Hl)) : h("", !0),
|
|
899
|
+
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", jl, [
|
|
900
|
+
(s(!0), r(m, null, k(g.value.tickY, (l) => (s(), r("line", {
|
|
901
|
+
x1: l.x1,
|
|
902
|
+
x2: l.x2,
|
|
903
|
+
y1: l.y,
|
|
904
|
+
y2: l.y,
|
|
905
|
+
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
906
|
+
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
907
|
+
"stroke-linecap": "round"
|
|
908
|
+
}, null, 8, Ul))), 256))
|
|
909
|
+
])) : h("", !0),
|
|
910
|
+
e.value.style.chart.axes.x.labels.show ? (s(), r("g", Wl, [
|
|
911
|
+
(s(!0), r(m, null, k(g.value.tickX, (l) => (s(), r("line", {
|
|
912
|
+
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
913
|
+
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
914
|
+
"stroke-linecap": "round",
|
|
915
|
+
x1: l.x,
|
|
916
|
+
x2: l.x,
|
|
917
|
+
y1: c.value.bottom,
|
|
918
|
+
y2: c.value.bottom + 5
|
|
919
|
+
}, null, 8, Vl))), 256))
|
|
920
|
+
])) : h("", !0),
|
|
921
|
+
e.value.style.chart.axes.x.labels.show ? (s(), r("g", {
|
|
922
|
+
key: 8,
|
|
923
|
+
ref_key: "xAxisScales",
|
|
924
|
+
ref: V
|
|
925
|
+
}, [
|
|
926
|
+
(s(!0), r(m, null, k(g.value.tickX, (l) => (s(), r("text", {
|
|
927
|
+
class: "vue-ui-history-plot-x-axis-scale",
|
|
928
|
+
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
929
|
+
fill: e.value.style.chart.axes.x.labels.color,
|
|
930
|
+
"font-size": n.value.xAxisLabels,
|
|
931
|
+
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
932
|
+
}, z(u(R)(
|
|
933
|
+
e.value.style.chart.axes.x.labels.formatter,
|
|
934
|
+
l.value,
|
|
935
|
+
u(Y)({
|
|
936
|
+
p: e.value.style.chart.axes.x.labels.prefix,
|
|
937
|
+
v: l.value,
|
|
938
|
+
s: e.value.style.chart.axes.x.labels.suffix,
|
|
939
|
+
r: e.value.style.chart.axes.x.labels.rounding
|
|
940
|
+
})
|
|
941
|
+
)), 9, Gl))), 256))
|
|
942
|
+
], 512)) : h("", !0),
|
|
943
|
+
e.value.style.chart.axes.x.name.text ? (s(), r("text", {
|
|
944
|
+
key: 9,
|
|
945
|
+
ref_key: "xAxisLabel",
|
|
946
|
+
ref: se,
|
|
947
|
+
x: b.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
948
|
+
y: b.value.height,
|
|
949
|
+
"font-size": n.value.xAxisName,
|
|
950
|
+
fill: e.value.style.chart.axes.x.name.color,
|
|
951
|
+
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
952
|
+
"text-anchor": "middle"
|
|
953
|
+
}, z(e.value.style.chart.axes.x.name.text), 9, ql)) : h("", !0),
|
|
954
|
+
e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
|
|
955
|
+
key: 10,
|
|
956
|
+
x1: c.value.left,
|
|
957
|
+
x2: c.value.left + c.value.width,
|
|
958
|
+
y1: c.value.bottom,
|
|
959
|
+
y2: c.value.bottom,
|
|
960
|
+
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
961
|
+
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
962
|
+
"stroke-linecap": "round"
|
|
963
|
+
}, null, 8, Zl)) : h("", !0),
|
|
964
|
+
e.value.style.chart.grid.yAxis.show ? (s(), r("line", {
|
|
965
|
+
key: 11,
|
|
966
|
+
x1: c.value.left,
|
|
967
|
+
x2: c.value.left,
|
|
968
|
+
y1: c.value.top,
|
|
969
|
+
y2: c.value.bottom,
|
|
970
|
+
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
971
|
+
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
972
|
+
"stroke-linecap": "round"
|
|
973
|
+
}, null, 8, Jl)) : h("", !0),
|
|
974
|
+
(s(!0), r(m, null, k(I.value, (l, i) => (s(), r("g", null, [
|
|
975
|
+
e.value.style.chart.paths.show ? (s(), r("g", {
|
|
976
|
+
key: 0,
|
|
977
|
+
style: $({
|
|
978
|
+
opacity: w.value === null ? 1 : 0.3
|
|
979
|
+
})
|
|
980
|
+
}, [
|
|
981
|
+
S("path", {
|
|
982
|
+
d: l.path,
|
|
983
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
984
|
+
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
985
|
+
fill: "none",
|
|
986
|
+
"stroke-linecap": "round",
|
|
987
|
+
"stroke-linejoin": "round",
|
|
988
|
+
class: N({ animated: e.value.useCssAnimation && !u(B) })
|
|
989
|
+
}, null, 10, Kl),
|
|
990
|
+
S("path", {
|
|
991
|
+
d: l.path,
|
|
992
|
+
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
993
|
+
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
994
|
+
fill: "none",
|
|
995
|
+
"stroke-linecap": "round",
|
|
996
|
+
"stroke-linejoin": "round",
|
|
997
|
+
class: N({ animated: e.value.useCssAnimation && !u(B) })
|
|
998
|
+
}, null, 10, Ql)
|
|
999
|
+
], 4)) : h("", !0),
|
|
1000
|
+
(s(!0), r(m, null, k(l.plots, (o) => (s(), r("circle", {
|
|
1001
|
+
cx: o.x,
|
|
1002
|
+
cy: o.y,
|
|
1003
|
+
fill: e.value.style.chart.backgroundColor,
|
|
1004
|
+
r: n.value.plots,
|
|
1005
|
+
stroke: "none"
|
|
1006
|
+
}, null, 8, ea))), 256)),
|
|
1007
|
+
(s(!0), r(m, null, k(l.plots, (o) => (s(), r("circle", {
|
|
1008
|
+
cx: o.x,
|
|
1009
|
+
cy: o.y,
|
|
1010
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${D.value})` : o.color,
|
|
1011
|
+
r: n.value.plots,
|
|
1012
|
+
stroke: e.value.style.chart.plots.stroke,
|
|
1013
|
+
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
1014
|
+
class: N({ animated: e.value.useCssAnimation && !u(B) }),
|
|
1015
|
+
style: $({
|
|
1016
|
+
opacity: w.value === null || w.value.id === o.id ? 1 : 0.3,
|
|
1017
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1018
|
+
})
|
|
1019
|
+
}, null, 14, ta))), 256)),
|
|
1020
|
+
e.value.style.chart.plots.labels.show ? (s(), r("g", la, [
|
|
1021
|
+
(s(!0), r(m, null, k(l.plots, (o) => (s(), r("g", null, [
|
|
1022
|
+
String(o.label).includes(`
|
|
1023
|
+
`) ? (s(), r("text", {
|
|
1024
|
+
key: 1,
|
|
1025
|
+
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
1026
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
1027
|
+
"font-size": n.value.labels,
|
|
1028
|
+
fill: e.value.style.chart.plots.labels.color,
|
|
1029
|
+
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1030
|
+
"text-anchor": "middle",
|
|
1031
|
+
class: N({ animated: e.value.useCssAnimation && !u(B) }),
|
|
1032
|
+
style: $({
|
|
1033
|
+
opacity: w.value === null || w.value.id === o.id ? 1 : 0.3,
|
|
1034
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1035
|
+
}),
|
|
1036
|
+
innerHTML: u(ul)({
|
|
1037
|
+
content: String(o.label),
|
|
1038
|
+
fontSize: n.value.labels,
|
|
1039
|
+
fill: e.value.style.chart.plots.labels.color,
|
|
1040
|
+
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
1041
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
|
|
1042
|
+
})
|
|
1043
|
+
}, null, 14, oa)) : (s(), r("text", {
|
|
1044
|
+
key: 0,
|
|
1045
|
+
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
1046
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
1047
|
+
"font-size": n.value.labels,
|
|
1048
|
+
fill: e.value.style.chart.plots.labels.color,
|
|
1049
|
+
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1050
|
+
"text-anchor": "middle",
|
|
1051
|
+
class: N({ animated: e.value.useCssAnimation && !u(B) }),
|
|
1052
|
+
style: $({
|
|
1053
|
+
opacity: w.value === null || w.value.id === o.id ? 1 : 0.3,
|
|
1054
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1055
|
+
})
|
|
1056
|
+
}, z(o.label), 15, aa))
|
|
1057
|
+
]))), 256))
|
|
1058
|
+
])) : h("", !0),
|
|
1059
|
+
e.value.style.chart.plots.indexLabels.show ? (s(), r("g", sa, [
|
|
1060
|
+
(s(!0), r(m, null, k(l.plots, (o, C) => (s(), r("text", {
|
|
1061
|
+
x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
1062
|
+
y: o.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
1063
|
+
"font-size": n.value.indexLabels,
|
|
1064
|
+
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1065
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(cl)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
1066
|
+
"text-anchor": "middle",
|
|
1067
|
+
class: N({ animated: e.value.useCssAnimation && !u(B) }),
|
|
1068
|
+
style: $({
|
|
1069
|
+
opacity: w.value === null || w.value.id === o.id ? 1 : 0.3,
|
|
1070
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1071
|
+
})
|
|
1072
|
+
}, z(e.value.style.chart.plots.indexLabels.startAtZero ? C : C + 1), 15, ra))), 256))
|
|
1073
|
+
])) : h("", !0)
|
|
1074
|
+
]))), 256)),
|
|
1075
|
+
(s(!0), r(m, null, k(I.value, (l) => (s(), r("g", null, [
|
|
1076
|
+
(s(!0), r(m, null, k(l.plots, (i, o) => (s(), r("circle", {
|
|
1077
|
+
cx: i.x,
|
|
1078
|
+
cy: i.y,
|
|
1079
|
+
fill: "transparent",
|
|
1080
|
+
r: n.value.plots,
|
|
1081
|
+
stroke: "none",
|
|
1082
|
+
onMouseenter: (C) => Nt({
|
|
1083
|
+
datapoint: i,
|
|
1084
|
+
plotIndex: o,
|
|
1085
|
+
seriesIndex: l.seriesIndex
|
|
1086
|
+
}),
|
|
1087
|
+
onMouseleave: (C) => It({
|
|
1088
|
+
datapoint: i,
|
|
1089
|
+
plotIndex: o,
|
|
1090
|
+
seriesIndex: l.seriesIndex
|
|
1091
|
+
}),
|
|
1092
|
+
onClick: (C) => Et({
|
|
1093
|
+
datapoint: i,
|
|
1094
|
+
plotIndex: o,
|
|
1095
|
+
seriesIndex: l.seriesIndex
|
|
1096
|
+
})
|
|
1097
|
+
}, null, 40, na))), 256))
|
|
1098
|
+
]))), 256)),
|
|
1099
|
+
f(t.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
1100
|
+
], 12, Dl)),
|
|
1101
|
+
t.$slots.watermark ? (s(), r("div", ia, [
|
|
1102
|
+
f(t.$slots, "watermark", _(L({ isPrinting: u(ze) || u(Me) })), void 0, !0)
|
|
1103
|
+
])) : h("", !0),
|
|
1104
|
+
S("div", {
|
|
1105
|
+
id: `legend-bottom-${D.value}`
|
|
1106
|
+
}, null, 8, ua),
|
|
1107
|
+
_e.value ? (s(), E(Kt, {
|
|
1108
|
+
key: 5,
|
|
1109
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1110
|
+
}, [
|
|
1111
|
+
S("div", {
|
|
1112
|
+
ref_key: "chartLegend",
|
|
1113
|
+
ref: me
|
|
1114
|
+
}, [
|
|
1115
|
+
e.value.style.chart.legend.show && G.value ? (s(), E(Ll, {
|
|
1116
|
+
key: `legend_${ke.value}`,
|
|
1117
|
+
legendSet: de.value,
|
|
1118
|
+
config: Ot.value,
|
|
1119
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
1120
|
+
q(l.seriesIndex), Pe(l);
|
|
1121
|
+
})
|
|
1122
|
+
}, {
|
|
1123
|
+
item: x(({ legend: l, index: i }) => [
|
|
1124
|
+
S("div", {
|
|
1125
|
+
onClick: (o) => {
|
|
1126
|
+
l.segregate(), Pe(l);
|
|
1127
|
+
},
|
|
1128
|
+
style: $(`opacity:${p.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
1129
|
+
}, z(l.name), 13, ca)
|
|
1130
|
+
]),
|
|
1131
|
+
_: 1
|
|
1132
|
+
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
1133
|
+
key: 1,
|
|
1134
|
+
legend: de.value
|
|
1135
|
+
}, void 0, !0)
|
|
1136
|
+
], 512)
|
|
1137
|
+
], 8, ["to"])) : h("", !0),
|
|
1138
|
+
t.$slots.source ? (s(), r("div", {
|
|
1139
|
+
key: 6,
|
|
1140
|
+
ref_key: "source",
|
|
1141
|
+
ref: Se,
|
|
1142
|
+
dir: "auto"
|
|
1143
|
+
}, [
|
|
1144
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
1145
|
+
], 512)) : h("", !0),
|
|
1146
|
+
xe(u(ut), {
|
|
1147
|
+
show: A.value.showTooltip && le.value,
|
|
1148
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1149
|
+
color: e.value.style.chart.tooltip.color,
|
|
1150
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1151
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1152
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1153
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1154
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1155
|
+
position: e.value.style.chart.tooltip.position,
|
|
1156
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1157
|
+
parent: T.value,
|
|
1158
|
+
content: ae.value,
|
|
1159
|
+
isCustom: j.value,
|
|
1160
|
+
isFullscreen: H.value,
|
|
1161
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1162
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1163
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1164
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1165
|
+
}, {
|
|
1166
|
+
"tooltip-before": x(() => [
|
|
1167
|
+
f(t.$slots, "tooltip-before", _(L({ ...he.value })), void 0, !0)
|
|
1168
|
+
]),
|
|
1169
|
+
"tooltip-after": x(() => [
|
|
1170
|
+
f(t.$slots, "tooltip-after", _(L({ ...he.value })), void 0, !0)
|
|
1171
|
+
]),
|
|
1172
|
+
_: 3
|
|
1173
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1174
|
+
G.value && e.value.userOptions.buttons.table ? (s(), E(Qt(W.value.component), el({ key: 7 }, W.value.props, {
|
|
1175
|
+
ref_key: "tableUnit",
|
|
1176
|
+
ref: U,
|
|
1177
|
+
onClose: He
|
|
1178
|
+
}), We({
|
|
1179
|
+
content: x(() => [
|
|
1180
|
+
(s(), E(u(dt), {
|
|
1181
|
+
key: `table_${Ce.value}`,
|
|
1182
|
+
colNames: Z.value.colNames,
|
|
1183
|
+
head: Z.value.head,
|
|
1184
|
+
body: Z.value.body,
|
|
1185
|
+
config: Z.value.config,
|
|
1186
|
+
title: e.value.table.useDialog ? "" : W.value.title,
|
|
1187
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1188
|
+
onClose: He
|
|
1189
|
+
}, {
|
|
1190
|
+
th: x(({ th: l }) => [
|
|
1191
|
+
S("div", {
|
|
1192
|
+
innerHTML: l,
|
|
1193
|
+
style: { display: "flex", "align-items": "center" }
|
|
1194
|
+
}, null, 8, va)
|
|
1195
|
+
]),
|
|
1196
|
+
td: x(({ td: l }) => [
|
|
1197
|
+
Ve(z(l.name || l), 1)
|
|
1198
|
+
]),
|
|
1199
|
+
_: 1
|
|
1200
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1201
|
+
]),
|
|
1202
|
+
_: 2
|
|
1203
|
+
}, [
|
|
1204
|
+
e.value.table.useDialog ? {
|
|
1205
|
+
name: "title",
|
|
1206
|
+
fn: x(() => [
|
|
1207
|
+
Ve(z(W.value.title), 1)
|
|
1208
|
+
]),
|
|
1209
|
+
key: "0"
|
|
1210
|
+
} : void 0,
|
|
1211
|
+
e.value.table.useDialog ? {
|
|
1212
|
+
name: "actions",
|
|
1213
|
+
fn: x(() => [
|
|
1214
|
+
S("button", {
|
|
1215
|
+
tabindex: "0",
|
|
1216
|
+
class: "vue-ui-user-options-button",
|
|
1217
|
+
onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
|
|
1218
|
+
}, [
|
|
1219
|
+
xe(u(ct), {
|
|
1220
|
+
name: "excel",
|
|
1221
|
+
stroke: W.value.props.color
|
|
1222
|
+
}, null, 8, ["stroke"])
|
|
1223
|
+
])
|
|
1224
|
+
]),
|
|
1225
|
+
key: "1"
|
|
1226
|
+
} : void 0
|
|
1227
|
+
]), 1040)) : h("", !0),
|
|
1228
|
+
u(B) ? (s(), E(gl, { key: 8 })) : h("", !0)
|
|
1229
|
+
], 46, $l));
|
|
1230
|
+
}
|
|
1231
|
+
}, ha = /* @__PURE__ */ Fl(da, [["__scopeId", "data-v-64d73bdd"]]), Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1232
|
+
__proto__: null,
|
|
1233
|
+
default: ha
|
|
1234
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1235
|
+
export {
|
|
1236
|
+
$a as a,
|
|
1237
|
+
Ta as b,
|
|
1238
|
+
ha as v
|
|
1239
|
+
};
|