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