vue-data-ui 3.25.5 → 3.25.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,1531 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Pt as r, Ut as i, X as a, Y as o, Zt as s, _ as ee, b as te, ht as ne, i as c, jt as l, nt as re, q as ie, t as ae } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as le } from "./usePrinter-DISD7q5m.js";
|
|
6
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
-
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as ge } from "./img-DhGApYG0.js";
|
|
12
|
-
import { n as _e } from "./Title-CPHi-evi.js";
|
|
13
|
-
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as u } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
-
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as we } from "./Legend-X4kF4PvW.js";
|
|
20
|
-
import { t as Te } from "./usePrefersMotion-BC-CsqR1.js";
|
|
21
|
-
import { t as Ee } from "./vue_ui_dumbbell-Bfe_jFyi.js";
|
|
22
|
-
import { Fragment as d, Teleport as De, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Oe, createTextVNode as ke, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ne, onMounted as Pe, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as E, toRefs as Le, unref as D, vShow as Re, watch as ze, watchEffect as Be, withCtx as O, withDirectives as Ve } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-dumbbell.vue
|
|
24
|
-
var He = /* @__PURE__ */ e({ default: () => Dt }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"viewBox",
|
|
27
|
-
"aria-describedby"
|
|
28
|
-
], Je = [
|
|
29
|
-
"x",
|
|
30
|
-
"y",
|
|
31
|
-
"width",
|
|
32
|
-
"height"
|
|
33
|
-
], Ye = { key: 1 }, Xe = [
|
|
34
|
-
"x1",
|
|
35
|
-
"x2",
|
|
36
|
-
"y1",
|
|
37
|
-
"y2",
|
|
38
|
-
"stroke",
|
|
39
|
-
"stroke-width",
|
|
40
|
-
"stroke-dasharray"
|
|
41
|
-
], Ze = { key: 2 }, Qe = [
|
|
42
|
-
"x1",
|
|
43
|
-
"x2",
|
|
44
|
-
"y1",
|
|
45
|
-
"y2",
|
|
46
|
-
"stroke",
|
|
47
|
-
"stroke-width",
|
|
48
|
-
"stroke-dasharray"
|
|
49
|
-
], $e = [
|
|
50
|
-
"x1",
|
|
51
|
-
"x2",
|
|
52
|
-
"y1",
|
|
53
|
-
"y2",
|
|
54
|
-
"stroke",
|
|
55
|
-
"stroke-width",
|
|
56
|
-
"stroke-dasharray"
|
|
57
|
-
], et = [
|
|
58
|
-
"transform",
|
|
59
|
-
"font-size",
|
|
60
|
-
"fill"
|
|
61
|
-
], tt = [
|
|
62
|
-
"x",
|
|
63
|
-
"y",
|
|
64
|
-
"font-size",
|
|
65
|
-
"fill",
|
|
66
|
-
"font-weight",
|
|
67
|
-
"onMouseenter",
|
|
68
|
-
"onMouseleave",
|
|
69
|
-
"onClick"
|
|
70
|
-
], nt = [
|
|
71
|
-
"x",
|
|
72
|
-
"y",
|
|
73
|
-
"font-size",
|
|
74
|
-
"fill",
|
|
75
|
-
"onMouseenter",
|
|
76
|
-
"onMouseleave",
|
|
77
|
-
"onClick"
|
|
78
|
-
], rt = [
|
|
79
|
-
"x",
|
|
80
|
-
"y",
|
|
81
|
-
"font-size",
|
|
82
|
-
"fill"
|
|
83
|
-
], it = [
|
|
84
|
-
"transform",
|
|
85
|
-
"font-size",
|
|
86
|
-
"fill",
|
|
87
|
-
"font-weight",
|
|
88
|
-
"text-anchor"
|
|
89
|
-
], at = [
|
|
90
|
-
"d",
|
|
91
|
-
"stroke",
|
|
92
|
-
"stroke-width",
|
|
93
|
-
"stroke-dasharray"
|
|
94
|
-
], ot = [
|
|
95
|
-
"d",
|
|
96
|
-
"stroke",
|
|
97
|
-
"stroke-width",
|
|
98
|
-
"stroke-dasharray"
|
|
99
|
-
], st = [
|
|
100
|
-
"x",
|
|
101
|
-
"y",
|
|
102
|
-
"height",
|
|
103
|
-
"width",
|
|
104
|
-
"fill"
|
|
105
|
-
], ct = [
|
|
106
|
-
"transform",
|
|
107
|
-
"fill",
|
|
108
|
-
"font-size"
|
|
109
|
-
], lt = { key: 0 }, ut = { key: 0 }, dt = ["d", "fill"], ft = { key: 1 }, pt = [
|
|
110
|
-
"x",
|
|
111
|
-
"y",
|
|
112
|
-
"height",
|
|
113
|
-
"width",
|
|
114
|
-
"fill"
|
|
115
|
-
], mt = [
|
|
116
|
-
"cx",
|
|
117
|
-
"cy",
|
|
118
|
-
"r",
|
|
119
|
-
"fill",
|
|
120
|
-
"stroke",
|
|
121
|
-
"stroke-width"
|
|
122
|
-
], ht = [
|
|
123
|
-
"cx",
|
|
124
|
-
"cy",
|
|
125
|
-
"r",
|
|
126
|
-
"fill",
|
|
127
|
-
"stroke",
|
|
128
|
-
"stroke-width"
|
|
129
|
-
], gt = { key: 7 }, _t = [
|
|
130
|
-
"x",
|
|
131
|
-
"y",
|
|
132
|
-
"fill",
|
|
133
|
-
"font-size"
|
|
134
|
-
], vt = { key: 8 }, yt = [
|
|
135
|
-
"x",
|
|
136
|
-
"y",
|
|
137
|
-
"fill",
|
|
138
|
-
"font-size"
|
|
139
|
-
], bt = [
|
|
140
|
-
"x",
|
|
141
|
-
"y",
|
|
142
|
-
"width",
|
|
143
|
-
"height",
|
|
144
|
-
"fill",
|
|
145
|
-
"onMouseenter",
|
|
146
|
-
"onMouseleave",
|
|
147
|
-
"onClick"
|
|
148
|
-
], xt = {
|
|
149
|
-
key: 0,
|
|
150
|
-
style: {
|
|
151
|
-
position: "absolute",
|
|
152
|
-
top: "100%",
|
|
153
|
-
left: "0",
|
|
154
|
-
width: "100%"
|
|
155
|
-
},
|
|
156
|
-
"data-dom-to-png-ignore": "",
|
|
157
|
-
"aria-hidden": "true"
|
|
158
|
-
}, St = {
|
|
159
|
-
key: 5,
|
|
160
|
-
class: "vue-data-ui-watermark"
|
|
161
|
-
}, Ct = ["id"], wt = [
|
|
162
|
-
"xmlns",
|
|
163
|
-
"height",
|
|
164
|
-
"width"
|
|
165
|
-
], Tt = ["fill"], Et = { style: {
|
|
166
|
-
display: "flex",
|
|
167
|
-
"align-items": "center"
|
|
168
|
-
} }, Dt = /*#__PURE__*/ ve({
|
|
169
|
-
__name: "vue-ui-dumbbell",
|
|
170
|
-
props: {
|
|
171
|
-
config: {
|
|
172
|
-
type: Object,
|
|
173
|
-
default() {
|
|
174
|
-
return {};
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
dataset: {
|
|
178
|
-
type: Array,
|
|
179
|
-
default() {
|
|
180
|
-
return [];
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
emits: ["selectDatapoint", "copyAlt"],
|
|
185
|
-
setup(e, { expose: ve, emit: He }) {
|
|
186
|
-
let Dt = v(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Ot = v(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), kt = v(() => import("./DataTable-COIO9gi4.js")), At = v(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), jt = v(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Mt = v(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Nt = v(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_dumbbell: Pt } = ce(), { isThemeValid: Ft, warnInvalidTheme: It } = pe(), Lt = Te(), k = e, Rt = He, zt = f({
|
|
187
|
-
get() {
|
|
188
|
-
return !!k.dataset && k.dataset.length;
|
|
189
|
-
},
|
|
190
|
-
set(e) {
|
|
191
|
-
return e;
|
|
192
|
-
}
|
|
193
|
-
}), A = C(ie()), Bt = C(0), j = C(null), Vt = C(null), Ht = C(null), Ut = C(null), Wt = C(null), Gt = C(0), Kt = C(0), qt = C(0), Jt = C(!1), M = C(null), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(null), N = C(null), P = C(null), F = C(null), en = C(!1), I = C(!1), L = C(ln());
|
|
194
|
-
oe({
|
|
195
|
-
config: () => L.value,
|
|
196
|
-
dataset: () => k.dataset,
|
|
197
|
-
component: "VueUiDumbbell",
|
|
198
|
-
rules: [se.emptyArray, {
|
|
199
|
-
test: (e) => e.length > 31,
|
|
200
|
-
message: [
|
|
201
|
-
"👀 The number of series is > 31. Consider:",
|
|
202
|
-
"",
|
|
203
|
-
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
204
|
-
"",
|
|
205
|
-
"▶️ Using multiple instances of the component to display related series."
|
|
206
|
-
]
|
|
207
|
-
}]
|
|
208
|
-
});
|
|
209
|
-
let R = f(() => L.value.userOptions.useCursorPointer), tn = f(() => s({
|
|
210
|
-
defaultConfig: {
|
|
211
|
-
userOptions: { show: !1 },
|
|
212
|
-
table: { show: !1 },
|
|
213
|
-
useAnimation: !1,
|
|
214
|
-
style: { chart: {
|
|
215
|
-
backgroundColor: "#99999930",
|
|
216
|
-
padding: {
|
|
217
|
-
top: 12,
|
|
218
|
-
right: 12,
|
|
219
|
-
bottom: 12,
|
|
220
|
-
left: 12
|
|
221
|
-
},
|
|
222
|
-
grid: {
|
|
223
|
-
horizontalGrid: { stroke: "#6A6A6A" },
|
|
224
|
-
verticalGrid: { stroke: "#6A6A6A" }
|
|
225
|
-
},
|
|
226
|
-
labels: {
|
|
227
|
-
axis: {
|
|
228
|
-
yLabel: "",
|
|
229
|
-
xLabel: ""
|
|
230
|
-
},
|
|
231
|
-
xAxisLabels: { show: !1 },
|
|
232
|
-
yAxisLabels: { show: !1 },
|
|
233
|
-
endLabels: { show: !1 },
|
|
234
|
-
startLabels: { show: !1 }
|
|
235
|
-
},
|
|
236
|
-
legend: { backgroundColor: "transparent" },
|
|
237
|
-
plots: {
|
|
238
|
-
endColor: "#969696",
|
|
239
|
-
startColor: "#DBDBDB",
|
|
240
|
-
stroke: "#6A6A6A",
|
|
241
|
-
evaluationColors: { enable: !1 }
|
|
242
|
-
}
|
|
243
|
-
} }
|
|
244
|
-
},
|
|
245
|
-
userConfig: L.value.skeletonConfig ?? {}
|
|
246
|
-
})), { loading: nn, FINAL_DATASET: rn, manualLoading: an } = ue({
|
|
247
|
-
...Le(k),
|
|
248
|
-
FINAL_CONFIG: L,
|
|
249
|
-
prepareConfig: ln,
|
|
250
|
-
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
251
|
-
{
|
|
252
|
-
name: "_",
|
|
253
|
-
start: 21,
|
|
254
|
-
end: 34
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
name: "_",
|
|
258
|
-
start: 13,
|
|
259
|
-
end: 21
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
name: "_",
|
|
263
|
-
start: 8,
|
|
264
|
-
end: 13
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
name: "_",
|
|
268
|
-
start: 5,
|
|
269
|
-
end: 8
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
name: "_",
|
|
273
|
-
start: 3,
|
|
274
|
-
end: 5
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
skeletonConfig: s({
|
|
278
|
-
defaultConfig: L.value,
|
|
279
|
-
userConfig: tn.value
|
|
280
|
-
})
|
|
281
|
-
}), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = Se({ config: L.value }), { svgRef: z } = Ce({ config: L.value.style.chart.title });
|
|
282
|
-
function ln() {
|
|
283
|
-
let e = fe({
|
|
284
|
-
userConfig: k.config,
|
|
285
|
-
defaultConfig: Pt
|
|
286
|
-
}), t = e.theme;
|
|
287
|
-
if (!t) return e;
|
|
288
|
-
if (!Ft.value(e)) return It(e), e;
|
|
289
|
-
let n = fe({
|
|
290
|
-
userConfig: Ee[t] || k.config,
|
|
291
|
-
defaultConfig: e
|
|
292
|
-
});
|
|
293
|
-
return fe({
|
|
294
|
-
userConfig: k.config,
|
|
295
|
-
defaultConfig: n
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
ze(() => k.config, (e) => {
|
|
299
|
-
nn.value || (L.value = ln()), on.value = !L.value.userOptions.showOnChartHover, dn(), Gt.value += 1, Kt.value += 1, qt.value += 1, G.value = L.value.style.chart.rowHeight, K.value = L.value.style.chart.width, H.value.showTable = L.value.table.show;
|
|
300
|
-
}, { deep: !0 }), ze(() => rn.value, (e) => {
|
|
301
|
-
Array.isArray(e) && e.length > 0 && (an.value = !1), Tn(), En();
|
|
302
|
-
}, { deep: !0 });
|
|
303
|
-
let B = Ie(null), V = Ie(null);
|
|
304
|
-
Pe(() => {
|
|
305
|
-
Jt.value = !0, dn();
|
|
306
|
-
});
|
|
307
|
-
let un = f(() => L.value.debug);
|
|
308
|
-
function dn() {
|
|
309
|
-
if (r(k.dataset) ? re({
|
|
310
|
-
componentName: "VueUiDumbbell",
|
|
311
|
-
type: "dataset",
|
|
312
|
-
debug: un.value
|
|
313
|
-
}) : k.dataset.forEach((e, t) => {
|
|
314
|
-
ne({
|
|
315
|
-
datasetObject: e,
|
|
316
|
-
requiredAttributes: [
|
|
317
|
-
"name",
|
|
318
|
-
"start",
|
|
319
|
-
"end"
|
|
320
|
-
]
|
|
321
|
-
}).forEach((e) => {
|
|
322
|
-
zt.value = !1, re({
|
|
323
|
-
componentName: "VueUiDumbbell",
|
|
324
|
-
type: "datasetSerieAttribute",
|
|
325
|
-
property: e,
|
|
326
|
-
index: t,
|
|
327
|
-
debug: un.value
|
|
328
|
-
});
|
|
329
|
-
});
|
|
330
|
-
}), L.value.responsive) {
|
|
331
|
-
let e = ye(() => {
|
|
332
|
-
let { width: e, height: t } = be({
|
|
333
|
-
chart: j.value,
|
|
334
|
-
title: L.value.style.chart.title.text ? Vt.value : null,
|
|
335
|
-
legend: L.value.style.chart.legend.show ? Ht.value : null,
|
|
336
|
-
source: Ut.value,
|
|
337
|
-
noTitle: Wt.value
|
|
338
|
-
}), n = L.value.style.chart.title.text ? 24 : 0, r = L.value.style.chart.legend.show ? 24 : 0;
|
|
339
|
-
requestAnimationFrame(async () => {
|
|
340
|
-
K.value = Math.max(.1, e), G.value = Math.max(.1, (Math.max(.1, t) - (n + r)) / rn.value.length), Bn();
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = j.value.parentNode, B.value.observe(V.value);
|
|
344
|
-
}
|
|
345
|
-
Bn();
|
|
346
|
-
}
|
|
347
|
-
Ne(() => {
|
|
348
|
-
X.value != null && (cancelAnimationFrame(X.value), X.value = null), B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
349
|
-
});
|
|
350
|
-
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = le({
|
|
351
|
-
elementId: `dumbbell_${A.value}`,
|
|
352
|
-
fileName: L.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
353
|
-
options: L.value.userOptions.print
|
|
354
|
-
}), gn = f(() => L.value.userOptions.show && !L.value.style.chart.title.text), H = C({ showTable: L.value.table.show });
|
|
355
|
-
ze(L, () => {
|
|
356
|
-
H.value = { showTable: L.value.table.show };
|
|
357
|
-
}, { immediate: !0 });
|
|
358
|
-
let U = f(() => rn.value.map((e, t) => ({
|
|
359
|
-
...e,
|
|
360
|
-
start: te(e.start),
|
|
361
|
-
end: te(e.end),
|
|
362
|
-
id: e.id ?? `${String(e.name)}__${String(e.start)}__${String(e.end)}__${ie()}`
|
|
363
|
-
}))), _n = f(() => {
|
|
364
|
-
let e = L.value.style.chart.grid, t = U.value.flatMap((e) => [e.start, e.end]).map((e) => Number(e)).filter((e) => Number.isFinite(e)), n = t.length ? Math.min(...t) : 0, r = t.length ? Math.max(...t) : 0;
|
|
365
|
-
return {
|
|
366
|
-
min: e.scaleMin ?? Math.min(n, 0),
|
|
367
|
-
max: e.scaleMax ?? r
|
|
368
|
-
};
|
|
369
|
-
}), W = f(() => ee(_n.value.min, _n.value.max, L.value.style.chart.grid.scaleSteps)), G = C(L.value.style.chart.rowHeight), K = C(L.value.style.chart.width);
|
|
370
|
-
function vn() {
|
|
371
|
-
let e = 0;
|
|
372
|
-
Zt.value && (e = Array.from(Zt.value.querySelectorAll("text")).reduce((e, t) => {
|
|
373
|
-
let n = t.getComputedTextLength();
|
|
374
|
-
return n > e ? n : e;
|
|
375
|
-
}, 0));
|
|
376
|
-
let t = Xt.value ? Xt.value.getBoundingClientRect().width : 0;
|
|
377
|
-
return e + t + (t ? 24 + L.value.style.chart.labels.axis.yLabelOffsetX : 0);
|
|
378
|
-
}
|
|
379
|
-
let yn = C(0), bn = ye((e) => {
|
|
380
|
-
yn.value = e;
|
|
381
|
-
}, 100);
|
|
382
|
-
Be((e) => {
|
|
383
|
-
let t = Qt.value;
|
|
384
|
-
if (!t) return;
|
|
385
|
-
let n = new ResizeObserver((e) => {
|
|
386
|
-
bn(e[0].contentRect.height);
|
|
387
|
-
});
|
|
388
|
-
n.observe(t), e(() => n.disconnect());
|
|
389
|
-
}), Ne(() => {
|
|
390
|
-
yn.value = 0;
|
|
391
|
-
});
|
|
392
|
-
let xn = f(() => {
|
|
393
|
-
I.value;
|
|
394
|
-
let e = 0;
|
|
395
|
-
$t.value && (e = $t.value.getBBox().height);
|
|
396
|
-
let t = 0;
|
|
397
|
-
return Qt.value && (t = yn.value), e + t;
|
|
398
|
-
}), Sn = f(() => U.value.length);
|
|
399
|
-
function Cn(e, t, n) {
|
|
400
|
-
let r = Number(e), i = Number(t.min), a = Number(t.max), o = Number(n.width);
|
|
401
|
-
if (!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) || !Number.isFinite(o)) return n.left;
|
|
402
|
-
let s = a - i;
|
|
403
|
-
return s <= 0 ? n.left : n.left + (r - i) / s * o;
|
|
404
|
-
}
|
|
405
|
-
let q = f(() => {
|
|
406
|
-
I.value;
|
|
407
|
-
let e = vn(), t = L.value.style.chart.padding, n = L.value.style.chart.labels.axis.xLabel ? L.value.style.chart.labels.axis.xLabelOffsetY : 0, r = G.value * Sn.value - xn.value - t.top - t.bottom - n, i = r / Sn.value, a = G.value * Sn.value, o = K.value - e - t.left - t.right, s = W.value.ticks.length * (o / W.value.ticks.length);
|
|
408
|
-
return {
|
|
409
|
-
left: L.value.style.chart.padding.left + e,
|
|
410
|
-
right: K.value - L.value.style.chart.padding.right,
|
|
411
|
-
top: L.value.style.chart.padding.top,
|
|
412
|
-
bottom: a - L.value.style.chart.padding.bottom - xn.value - n,
|
|
413
|
-
width: o,
|
|
414
|
-
height: r,
|
|
415
|
-
rowHeight: i,
|
|
416
|
-
absoluteHeight: a,
|
|
417
|
-
widthPlotReference: s
|
|
418
|
-
};
|
|
419
|
-
}), J = f(() => Math.min(G.value / 2 * .7, L.value.style.chart.plots.radius)), wn = C([]), Y = f({
|
|
420
|
-
get() {
|
|
421
|
-
let e = q.value, t = W.value;
|
|
422
|
-
return wn.value.map((n, r) => {
|
|
423
|
-
let i = Cn(n.start, t, e), a = Cn(n.endVal, t, e), o = i + (a - i) / 2, s = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end > n.start, ee = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end < n.start, te = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end === n.start || [null, void 0].includes(n.start) || [null, void 0].includes(n.end), ne = s ? L.value.style.chart.plots.evaluationColors.positive : ee ? L.value.style.chart.plots.evaluationColors.negative : L.value.style.chart.plots.evaluationColors.neutral;
|
|
424
|
-
return {
|
|
425
|
-
...n,
|
|
426
|
-
isPositive: s,
|
|
427
|
-
isNegative: ee,
|
|
428
|
-
isNeutral: te,
|
|
429
|
-
evaluationColor: ne,
|
|
430
|
-
evaluationGrad: `url(#${s ? "positive" : ee ? "negative" : "neutral"}_grad_${A.value})`,
|
|
431
|
-
startX: i,
|
|
432
|
-
endX: a,
|
|
433
|
-
centerX: o,
|
|
434
|
-
y: e.top + r * e.rowHeight + e.rowHeight / 2
|
|
435
|
-
};
|
|
436
|
-
});
|
|
437
|
-
},
|
|
438
|
-
set(e) {
|
|
439
|
-
wn.value = e;
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
function Tn() {
|
|
443
|
-
wn.value = U.value.map((e) => {
|
|
444
|
-
let t = Number(e.start);
|
|
445
|
-
return {
|
|
446
|
-
...e,
|
|
447
|
-
endVal: Number.isFinite(t) ? t : 0
|
|
448
|
-
};
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
let X = C(null);
|
|
452
|
-
Pe(() => {
|
|
453
|
-
En();
|
|
454
|
-
});
|
|
455
|
-
function En() {
|
|
456
|
-
if (X.value != null && (cancelAnimationFrame(X.value), X.value = null), Tn(), !L.value.useAnimation || Lt.value) {
|
|
457
|
-
Y.value = wn.value.map((e) => {
|
|
458
|
-
let t = Number(e.end);
|
|
459
|
-
return {
|
|
460
|
-
...e,
|
|
461
|
-
endVal: Number.isFinite(t) ? t : e.endVal
|
|
462
|
-
};
|
|
463
|
-
});
|
|
464
|
-
return;
|
|
465
|
-
}
|
|
466
|
-
let e = Math.max(1, Math.min(100, L.value.animationSpeed || 100)) / 100, t = U.value.map((e) => {
|
|
467
|
-
let t = Number(e.start), n = Number(e.end), r = Number.isFinite(t) ? t : 0;
|
|
468
|
-
return (Number.isFinite(n) ? n : r) - r;
|
|
469
|
-
}), n = () => {
|
|
470
|
-
let r = !0;
|
|
471
|
-
Y.value = wn.value.map((n, i) => {
|
|
472
|
-
let a = Number.isFinite(Number(n.end)) ? Number(n.end) : n.endVal, o = n.endVal + t[i] * e, s = t[i] >= 0 ? Math.min(o, a) : Math.max(o, a);
|
|
473
|
-
return s !== a && (r = !1), {
|
|
474
|
-
...n,
|
|
475
|
-
endVal: s
|
|
476
|
-
};
|
|
477
|
-
}), r ? X.value = null : X.value = requestAnimationFrame(n);
|
|
478
|
-
};
|
|
479
|
-
X.value = requestAnimationFrame(n);
|
|
480
|
-
}
|
|
481
|
-
let Dn = f(() => L.value.style.chart.plots.evaluationColors.enable ? [
|
|
482
|
-
{
|
|
483
|
-
name: L.value.style.chart.legend.labelNegative,
|
|
484
|
-
color: L.value.style.chart.plots.gradient.show ? `url(#negative_grad_${A.value})` : L.value.style.chart.plots.evaluationColors.negative
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
name: L.value.style.chart.legend.labelNeutral,
|
|
488
|
-
color: L.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${A.value})` : L.value.style.chart.plots.evaluationColors.neutral
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
name: L.value.style.chart.legend.labelPositive,
|
|
492
|
-
color: L.value.style.chart.plots.gradient.show ? `url(#positive_grad_${A.value})` : L.value.style.chart.plots.evaluationColors.positive
|
|
493
|
-
}
|
|
494
|
-
] : [{
|
|
495
|
-
name: L.value.style.chart.legend.labelStart,
|
|
496
|
-
color: L.value.style.chart.plots.gradient.show ? `url(#start_grad_${A.value})` : L.value.style.chart.plots.startColor
|
|
497
|
-
}, {
|
|
498
|
-
name: L.value.style.chart.legend.labelEnd,
|
|
499
|
-
color: L.value.style.chart.plots.gradient.show ? `url(#end_grad_${A.value})` : L.value.style.chart.plots.endColor
|
|
500
|
-
}]), On = f(() => ({
|
|
501
|
-
cy: "donut-div-legend",
|
|
502
|
-
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
503
|
-
color: L.value.style.chart.legend.color,
|
|
504
|
-
fontSize: L.value.style.chart.legend.fontSize,
|
|
505
|
-
paddingBottom: 12,
|
|
506
|
-
paddingTop: 12,
|
|
507
|
-
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
508
|
-
})), Z = f(() => ({
|
|
509
|
-
head: Y.value.map((e) => ({ name: e.name })),
|
|
510
|
-
body: Y.value.map((e) => ({
|
|
511
|
-
start: e.start,
|
|
512
|
-
end: e.end
|
|
513
|
-
}))
|
|
514
|
-
})), Q = f(() => {
|
|
515
|
-
let e = [
|
|
516
|
-
L.value.table.columnNames.series,
|
|
517
|
-
L.value.table.columnNames.start,
|
|
518
|
-
L.value.table.columnNames.end,
|
|
519
|
-
L.value.table.columnNames.progression
|
|
520
|
-
], t = Z.value.head.map((e, t) => {
|
|
521
|
-
let n = a({
|
|
522
|
-
p: L.value.style.chart.labels.prefix,
|
|
523
|
-
v: Z.value.body[t].start,
|
|
524
|
-
s: L.value.style.chart.labels.suffix,
|
|
525
|
-
r: L.value.table.td.roundingValue
|
|
526
|
-
}), r = a({
|
|
527
|
-
p: L.value.style.chart.labels.prefix,
|
|
528
|
-
v: Z.value.body[t].end,
|
|
529
|
-
s: L.value.style.chart.labels.suffix,
|
|
530
|
-
r: L.value.table.td.roundingValue
|
|
531
|
-
}), i = a({
|
|
532
|
-
v: 100 * (Z.value.body[t].end / Z.value.body[t].start - 1),
|
|
533
|
-
s: "%",
|
|
534
|
-
r: L.value.table.td.roundingPercentage
|
|
535
|
-
});
|
|
536
|
-
return [
|
|
537
|
-
{ name: e.name },
|
|
538
|
-
n,
|
|
539
|
-
r,
|
|
540
|
-
i
|
|
541
|
-
];
|
|
542
|
-
}), n = {
|
|
543
|
-
th: {
|
|
544
|
-
backgroundColor: L.value.table.th.backgroundColor,
|
|
545
|
-
color: L.value.table.th.color,
|
|
546
|
-
outline: L.value.table.th.outline
|
|
547
|
-
},
|
|
548
|
-
td: {
|
|
549
|
-
backgroundColor: L.value.table.td.backgroundColor,
|
|
550
|
-
color: L.value.table.td.color,
|
|
551
|
-
outline: L.value.table.td.outline
|
|
552
|
-
},
|
|
553
|
-
breakpoint: L.value.table.responsiveBreakpoint
|
|
554
|
-
};
|
|
555
|
-
return {
|
|
556
|
-
colNames: [
|
|
557
|
-
L.value.table.columnNames.series,
|
|
558
|
-
L.value.table.columnNames.start,
|
|
559
|
-
L.value.table.columnNames.end,
|
|
560
|
-
L.value.table.columnNames.progression
|
|
561
|
-
],
|
|
562
|
-
head: e,
|
|
563
|
-
body: t,
|
|
564
|
-
config: n
|
|
565
|
-
};
|
|
566
|
-
});
|
|
567
|
-
function kn(e = null) {
|
|
568
|
-
je(() => {
|
|
569
|
-
let r = Z.value.head.map((e, t) => [
|
|
570
|
-
[e.name],
|
|
571
|
-
[Z.value.body[t].start],
|
|
572
|
-
[Z.value.body[t].end]
|
|
573
|
-
]), i = [
|
|
574
|
-
[L.value.style.chart.title.text],
|
|
575
|
-
[L.value.style.chart.title.subtitle.text],
|
|
576
|
-
[
|
|
577
|
-
[L.value.table.columnNames.series],
|
|
578
|
-
[L.value.table.columnNames.start],
|
|
579
|
-
[L.value.table.columnNames.end]
|
|
580
|
-
]
|
|
581
|
-
].concat(r), a = n(i);
|
|
582
|
-
e ? e(a) : t({
|
|
583
|
-
csvContent: a,
|
|
584
|
-
title: L.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
585
|
-
});
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
let $ = C(!1);
|
|
589
|
-
function An(e) {
|
|
590
|
-
$.value = e, Bt.value += 1;
|
|
591
|
-
}
|
|
592
|
-
function jn() {
|
|
593
|
-
return U.value;
|
|
594
|
-
}
|
|
595
|
-
function Mn() {
|
|
596
|
-
H.value.showTable = !H.value.showTable;
|
|
597
|
-
}
|
|
598
|
-
let Nn = C(!1);
|
|
599
|
-
function Pn() {
|
|
600
|
-
Nn.value = !Nn.value;
|
|
601
|
-
}
|
|
602
|
-
async function Fn({ scale: e = 2 } = {}) {
|
|
603
|
-
if (!j.value) return;
|
|
604
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
|
|
605
|
-
domElement: j.value,
|
|
606
|
-
base64: !0,
|
|
607
|
-
img: !0,
|
|
608
|
-
scale: e
|
|
609
|
-
});
|
|
610
|
-
return {
|
|
611
|
-
imageUri: i,
|
|
612
|
-
base64: a,
|
|
613
|
-
title: L.value.style.chart.title.text,
|
|
614
|
-
width: t,
|
|
615
|
-
height: n,
|
|
616
|
-
aspectRatio: r
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
let In = f(() => W.value.ticks), Ln = f(() => ({
|
|
620
|
-
start: 0,
|
|
621
|
-
end: In.value.length
|
|
622
|
-
}));
|
|
623
|
-
he({
|
|
624
|
-
timeLabelsEls: Qt,
|
|
625
|
-
timeLabels: In,
|
|
626
|
-
slicer: Ln,
|
|
627
|
-
configRef: L,
|
|
628
|
-
rotationPath: [
|
|
629
|
-
"style",
|
|
630
|
-
"chart",
|
|
631
|
-
"labels",
|
|
632
|
-
"xAxisLabels",
|
|
633
|
-
"rotation"
|
|
634
|
-
],
|
|
635
|
-
autoRotatePath: [
|
|
636
|
-
"style",
|
|
637
|
-
"chart",
|
|
638
|
-
"labels",
|
|
639
|
-
"xAxisLabels",
|
|
640
|
-
"autoRotate",
|
|
641
|
-
"enable"
|
|
642
|
-
],
|
|
643
|
-
isAutoSize: !1,
|
|
644
|
-
width: K,
|
|
645
|
-
height: G,
|
|
646
|
-
targetClass: ".vue-ui-dumbbell-scale-label",
|
|
647
|
-
rotation: L.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
648
|
-
});
|
|
649
|
-
function Rn({ rowHeight: e, fontSize: t, showProgression: n }) {
|
|
650
|
-
if (!n) return !1;
|
|
651
|
-
let r = e / 3, i = e / 1.3;
|
|
652
|
-
return Math.abs(i - r) < t * 1.2;
|
|
653
|
-
}
|
|
654
|
-
let zn = (() => {
|
|
655
|
-
let e = null, t = 0;
|
|
656
|
-
return (n) => {
|
|
657
|
-
if (n === I.value) {
|
|
658
|
-
e = null, t = 0;
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
e === null || e !== n ? (e = n, t = 1) : (t += 1, t >= 1 && (I.value = n, e = null, t = 0));
|
|
662
|
-
};
|
|
663
|
-
})(), Bn = ye(() => {
|
|
664
|
-
requestAnimationFrame(() => {
|
|
665
|
-
requestAnimationFrame(() => {
|
|
666
|
-
let e = Rn({
|
|
667
|
-
rowHeight: q.value.rowHeight,
|
|
668
|
-
fontSize: L.value.style.chart.labels.yAxisLabels.fontSize,
|
|
669
|
-
showProgression: L.value.style.chart.labels.yAxisLabels.showProgression
|
|
670
|
-
});
|
|
671
|
-
zn(e);
|
|
672
|
-
});
|
|
673
|
-
});
|
|
674
|
-
}, 100);
|
|
675
|
-
function Vn({ datapoint: e, seriesIndex: t }) {
|
|
676
|
-
N.value = t, P.value = e, L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
677
|
-
datapoint: e,
|
|
678
|
-
seriesIndex: t
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
function Hn({ datapoint: e, seriesIndex: t }) {
|
|
682
|
-
N.value = null, P.value = null, L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
683
|
-
datapoint: e,
|
|
684
|
-
seriesIndex: t
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
function Un({ datapoint: e, seriesIndex: t }) {
|
|
688
|
-
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
689
|
-
datapoint: e,
|
|
690
|
-
seriesIndex: t
|
|
691
|
-
}), Rt("selectDatapoint", {
|
|
692
|
-
...e,
|
|
693
|
-
seriesIndex: t
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
let Wn = f(() => {
|
|
697
|
-
if (P.value === null) return 0;
|
|
698
|
-
let e = ![null, void 0].includes(P.value.start), t = ![null, void 0].includes(P.value.end);
|
|
699
|
-
return e && t ? Math.min(P.value.startX, P.value.endX) + Math.abs(P.value.startX - P.value.endX) / 2 : e && !t ? P.value.startX : t && !e ? P.value.endX : null;
|
|
700
|
-
}), Gn = f(() => {
|
|
701
|
-
if (P.value === null) return "";
|
|
702
|
-
let e = ![null, void 0].includes(P.value.start), t = ![null, void 0].includes(P.value.end), n = "", r = "";
|
|
703
|
-
return e && (n = c(L.value.style.chart.labels.formatter, P.value.start, a({
|
|
704
|
-
p: L.value.style.chart.labels.prefix,
|
|
705
|
-
v: P.value.start,
|
|
706
|
-
s: L.value.style.chart.labels.suffix,
|
|
707
|
-
r: L.value.style.chart.labels.startLabels.rounding
|
|
708
|
-
}), {
|
|
709
|
-
datapoint: P.value,
|
|
710
|
-
seriesIndex: N.value
|
|
711
|
-
})), t && (r = c(L.value.style.chart.labels.formatter, P.value.end, a({
|
|
712
|
-
p: L.value.style.chart.labels.prefix,
|
|
713
|
-
v: P.value.end,
|
|
714
|
-
s: L.value.style.chart.labels.suffix,
|
|
715
|
-
r: L.value.style.chart.labels.startLabels.rounding
|
|
716
|
-
}), {
|
|
717
|
-
datapoint: P.value,
|
|
718
|
-
seriesIndex: N.value
|
|
719
|
-
})), e && t ? `${n} → ${r}` : e && !t ? n : t && !e ? r : "";
|
|
720
|
-
}), Kn = f(() => {
|
|
721
|
-
let e = L.value.table.useDialog && !L.value.table.show, t = H.value.showTable;
|
|
722
|
-
return {
|
|
723
|
-
component: e ? Nt : Ot,
|
|
724
|
-
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
725
|
-
props: e ? {
|
|
726
|
-
backgroundColor: L.value.table.th.backgroundColor,
|
|
727
|
-
color: L.value.table.th.color,
|
|
728
|
-
headerColor: L.value.table.th.color,
|
|
729
|
-
headerBg: L.value.table.th.backgroundColor,
|
|
730
|
-
isFullscreen: $.value,
|
|
731
|
-
fullscreenParent: j.value,
|
|
732
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
733
|
-
isCursorPointer: R.value
|
|
734
|
-
} : {
|
|
735
|
-
hideDetails: !0,
|
|
736
|
-
config: {
|
|
737
|
-
open: t,
|
|
738
|
-
maxHeight: 1e4,
|
|
739
|
-
body: {
|
|
740
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
741
|
-
color: L.value.style.chart.color
|
|
742
|
-
},
|
|
743
|
-
head: {
|
|
744
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
745
|
-
color: L.value.style.chart.color
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
});
|
|
751
|
-
ze(() => H.value.showTable, (e) => {
|
|
752
|
-
L.value.table.show || (e && L.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
753
|
-
});
|
|
754
|
-
function qn() {
|
|
755
|
-
H.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
756
|
-
}
|
|
757
|
-
let Jn = f(() => Dn.value.map((e) => ({
|
|
758
|
-
...e,
|
|
759
|
-
shape: "circle"
|
|
760
|
-
}))), Yn = f(() => L.value.style.chart.backgroundColor), Xn = f(() => L.value.style.chart.legend), Zn = f(() => L.value.style.chart.title), { isCallbackImaging: Qn, isCallbackSvg: $n, generateSvg: er, onGenerateImage: tr } = me({
|
|
761
|
-
svg: z,
|
|
762
|
-
title: Zn,
|
|
763
|
-
legend: Xn,
|
|
764
|
-
legendItems: Jn,
|
|
765
|
-
backgroundColor: Yn,
|
|
766
|
-
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
767
|
-
generateImage: hn
|
|
768
|
-
});
|
|
769
|
-
async function nr() {
|
|
770
|
-
if (Rt("copyAlt", {
|
|
771
|
-
config: L.value,
|
|
772
|
-
dataset: Y.value
|
|
773
|
-
}), !L.value.userOptions.callbacks.altCopy) {
|
|
774
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
775
|
-
return;
|
|
776
|
-
}
|
|
777
|
-
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
778
|
-
config: L.value,
|
|
779
|
-
dataset: Y.value
|
|
780
|
-
}));
|
|
781
|
-
}
|
|
782
|
-
function rr(e) {
|
|
783
|
-
let t = Y.value.length;
|
|
784
|
-
return t ? (e % t + t) % t : null;
|
|
785
|
-
}
|
|
786
|
-
function ir() {
|
|
787
|
-
if (F.value !== null) {
|
|
788
|
-
let e = Y.value[F.value];
|
|
789
|
-
e && Hn({
|
|
790
|
-
datapoint: e,
|
|
791
|
-
seriesIndex: F.value
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
F.value = null, N.value = null, P.value = null;
|
|
795
|
-
}
|
|
796
|
-
function ar() {
|
|
797
|
-
F.value = null, en.value = !0;
|
|
798
|
-
}
|
|
799
|
-
function or() {
|
|
800
|
-
ir(), en.value = !1;
|
|
801
|
-
}
|
|
802
|
-
function sr(e) {
|
|
803
|
-
if (!z.value || Nn.value || document.activeElement !== z.value || !Y.value.length) return;
|
|
804
|
-
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
805
|
-
if (!t && !n && !r && !i) return;
|
|
806
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
807
|
-
ir();
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
if (r) {
|
|
811
|
-
if (F.value === null) return;
|
|
812
|
-
let e = Y.value[F.value];
|
|
813
|
-
if (!e) return;
|
|
814
|
-
Un({
|
|
815
|
-
datapoint: e,
|
|
816
|
-
seriesIndex: F.value
|
|
817
|
-
});
|
|
818
|
-
return;
|
|
819
|
-
}
|
|
820
|
-
let a = F.value;
|
|
821
|
-
a = a === null ? n ? 0 : Y.value.length - 1 : rr(a + (n ? 1 : -1));
|
|
822
|
-
let o = Y.value[a];
|
|
823
|
-
o && (F.value = a, Vn({
|
|
824
|
-
datapoint: o,
|
|
825
|
-
seriesIndex: a
|
|
826
|
-
}));
|
|
827
|
-
}
|
|
828
|
-
let cr = f(() => ({
|
|
829
|
-
head: Q.value.head,
|
|
830
|
-
body: Q.value.body.map((e) => [
|
|
831
|
-
e[0]?.name ?? "",
|
|
832
|
-
e[1],
|
|
833
|
-
e[2],
|
|
834
|
-
e[3]
|
|
835
|
-
]),
|
|
836
|
-
caption: L.value.a11y.translations.tableCaption,
|
|
837
|
-
notice: L.value.a11y.translations.tableAvailable
|
|
838
|
-
}));
|
|
839
|
-
return ve({
|
|
840
|
-
getData: jn,
|
|
841
|
-
getImage: Fn,
|
|
842
|
-
generatePdf: mn,
|
|
843
|
-
generateCsv: kn,
|
|
844
|
-
generateImage: hn,
|
|
845
|
-
generateSvg: er,
|
|
846
|
-
toggleTable: Mn,
|
|
847
|
-
toggleAnnotator: Pn,
|
|
848
|
-
toggleFullscreen: An,
|
|
849
|
-
copyAlt: nr
|
|
850
|
-
}), (e, t) => (S(), h("div", {
|
|
851
|
-
ref_key: "dumbbellChart",
|
|
852
|
-
ref: j,
|
|
853
|
-
class: Me(`vue-data-ui-component vue-ui-dumbbell ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
854
|
-
style: x(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${L.value.style.chart.backgroundColor};${L.value.responsive ? "height:100%" : ""}`),
|
|
855
|
-
id: `dumbbell_${A.value}`,
|
|
856
|
-
onMouseenter: t[1] ||= () => D(sn)(!0),
|
|
857
|
-
onMouseleave: t[2] ||= () => D(sn)(!1)
|
|
858
|
-
}, [
|
|
859
|
-
g("div", {
|
|
860
|
-
id: `chart-instructions-${A.value}`,
|
|
861
|
-
class: "sr-only"
|
|
862
|
-
}, [g("p", null, E(L.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
863
|
-
cr.value.body.length ? (S(), p(xe, {
|
|
864
|
-
key: 0,
|
|
865
|
-
uid: A.value,
|
|
866
|
-
head: cr.value.head,
|
|
867
|
-
body: cr.value.body,
|
|
868
|
-
caption: cr.value.caption,
|
|
869
|
-
notice: cr.value.notice
|
|
870
|
-
}, null, 8, [
|
|
871
|
-
"uid",
|
|
872
|
-
"head",
|
|
873
|
-
"body",
|
|
874
|
-
"caption",
|
|
875
|
-
"notice"
|
|
876
|
-
])) : m("", !0),
|
|
877
|
-
L.value.userOptions.buttons.annotator ? (S(), p(D(At), {
|
|
878
|
-
key: 1,
|
|
879
|
-
svgRef: D(z),
|
|
880
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
881
|
-
color: L.value.style.chart.color,
|
|
882
|
-
active: Nn.value,
|
|
883
|
-
isCursorPointer: R.value,
|
|
884
|
-
palette: L.value.userOptions.annotatorPalette,
|
|
885
|
-
onClose: Pn
|
|
886
|
-
}, {
|
|
887
|
-
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
888
|
-
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
889
|
-
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
890
|
-
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
891
|
-
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
892
|
-
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
893
|
-
_: 3
|
|
894
|
-
}, 8, [
|
|
895
|
-
"svgRef",
|
|
896
|
-
"backgroundColor",
|
|
897
|
-
"color",
|
|
898
|
-
"active",
|
|
899
|
-
"isCursorPointer",
|
|
900
|
-
"palette"
|
|
901
|
-
])) : m("", !0),
|
|
902
|
-
gn.value ? (S(), h("div", {
|
|
903
|
-
key: 2,
|
|
904
|
-
ref_key: "noTitle",
|
|
905
|
-
ref: Wt,
|
|
906
|
-
class: "vue-data-ui-no-title-space",
|
|
907
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
908
|
-
}, null, 512)) : m("", !0),
|
|
909
|
-
L.value.style.chart.title.text ? (S(), h("div", {
|
|
910
|
-
key: 3,
|
|
911
|
-
ref_key: "chartTitle",
|
|
912
|
-
ref: Vt,
|
|
913
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
914
|
-
}, [(S(), p(_e, {
|
|
915
|
-
key: `title_${Gt.value}`,
|
|
916
|
-
config: {
|
|
917
|
-
title: {
|
|
918
|
-
cy: "donut-div-title",
|
|
919
|
-
...L.value.style.chart.title
|
|
920
|
-
},
|
|
921
|
-
subtitle: {
|
|
922
|
-
cy: "donut-div-subtitle",
|
|
923
|
-
...L.value.style.chart.title.subtitle
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
927
|
-
g("div", { id: `legend-top-${A.value}` }, null, 8, Ge),
|
|
928
|
-
L.value.userOptions.show && zt.value && (D(cn) || D(on)) ? (S(), p(D(jt), {
|
|
929
|
-
ref_key: "userOptionsRef",
|
|
930
|
-
ref: Yt,
|
|
931
|
-
key: `user_option_${Bt.value}`,
|
|
932
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
933
|
-
color: L.value.style.chart.color,
|
|
934
|
-
isPrinting: D(fn),
|
|
935
|
-
isImaging: D(pn),
|
|
936
|
-
uid: A.value,
|
|
937
|
-
hasPdf: L.value.userOptions.buttons.pdf,
|
|
938
|
-
hasXls: L.value.userOptions.buttons.csv,
|
|
939
|
-
hasImg: L.value.userOptions.buttons.img,
|
|
940
|
-
hasSvg: L.value.userOptions.buttons.svg,
|
|
941
|
-
hasTable: L.value.userOptions.buttons.table,
|
|
942
|
-
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
943
|
-
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
944
|
-
isFullscreen: $.value,
|
|
945
|
-
titles: { ...L.value.userOptions.buttonTitles },
|
|
946
|
-
chartElement: j.value,
|
|
947
|
-
position: L.value.userOptions.position,
|
|
948
|
-
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
949
|
-
isAnnotation: Nn.value,
|
|
950
|
-
callbacks: L.value.userOptions.callbacks,
|
|
951
|
-
printScale: L.value.userOptions.print.scale,
|
|
952
|
-
tableDialog: L.value.table.useDialog,
|
|
953
|
-
isCursorPointer: R.value,
|
|
954
|
-
onToggleFullscreen: An,
|
|
955
|
-
onGeneratePdf: D(mn),
|
|
956
|
-
onGenerateCsv: kn,
|
|
957
|
-
onGenerateImage: D(tr),
|
|
958
|
-
onGenerateSvg: D(er),
|
|
959
|
-
onToggleTable: Mn,
|
|
960
|
-
onToggleAnnotator: Pn,
|
|
961
|
-
onCopyAlt: nr,
|
|
962
|
-
style: x({ visibility: D(cn) ? D(on) ? "visible" : "hidden" : "visible" })
|
|
963
|
-
}, Oe({ _: 2 }, [
|
|
964
|
-
e.$slots.menuIcon ? {
|
|
965
|
-
name: "menuIcon",
|
|
966
|
-
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(y({
|
|
967
|
-
isOpen: t,
|
|
968
|
-
color: n
|
|
969
|
-
})), void 0, !0)]),
|
|
970
|
-
key: "0"
|
|
971
|
-
} : void 0,
|
|
972
|
-
e.$slots.optionPdf ? {
|
|
973
|
-
name: "optionPdf",
|
|
974
|
-
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
975
|
-
key: "1"
|
|
976
|
-
} : void 0,
|
|
977
|
-
e.$slots.optionCsv ? {
|
|
978
|
-
name: "optionCsv",
|
|
979
|
-
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
980
|
-
key: "2"
|
|
981
|
-
} : void 0,
|
|
982
|
-
e.$slots.optionImg ? {
|
|
983
|
-
name: "optionImg",
|
|
984
|
-
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
985
|
-
key: "3"
|
|
986
|
-
} : void 0,
|
|
987
|
-
e.$slots.optionSvg ? {
|
|
988
|
-
name: "optionSvg",
|
|
989
|
-
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
990
|
-
key: "4"
|
|
991
|
-
} : void 0,
|
|
992
|
-
e.$slots.optionTable ? {
|
|
993
|
-
name: "optionTable",
|
|
994
|
-
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
995
|
-
key: "5"
|
|
996
|
-
} : void 0,
|
|
997
|
-
e.$slots.optionFullscreen ? {
|
|
998
|
-
name: "optionFullscreen",
|
|
999
|
-
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(y({
|
|
1000
|
-
toggleFullscreen: t,
|
|
1001
|
-
isFullscreen: n
|
|
1002
|
-
})), void 0, !0)]),
|
|
1003
|
-
key: "6"
|
|
1004
|
-
} : void 0,
|
|
1005
|
-
e.$slots.optionAnnotator ? {
|
|
1006
|
-
name: "optionAnnotator",
|
|
1007
|
-
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(y({
|
|
1008
|
-
toggleAnnotator: t,
|
|
1009
|
-
isAnnotator: n
|
|
1010
|
-
})), void 0, !0)]),
|
|
1011
|
-
key: "7"
|
|
1012
|
-
} : void 0,
|
|
1013
|
-
e.$slots.optionAltCopy ? {
|
|
1014
|
-
name: "optionAltCopy",
|
|
1015
|
-
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1016
|
-
key: "8"
|
|
1017
|
-
} : void 0,
|
|
1018
|
-
e.$slots["custom-menu-before"] ? {
|
|
1019
|
-
name: "custom-menu-before",
|
|
1020
|
-
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1021
|
-
key: "9"
|
|
1022
|
-
} : void 0,
|
|
1023
|
-
e.$slots["custom-menu-after"] ? {
|
|
1024
|
-
name: "custom-menu-after",
|
|
1025
|
-
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1026
|
-
key: "10"
|
|
1027
|
-
} : void 0
|
|
1028
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
1029
|
-
g("div", Ke, [(S(), h("svg", {
|
|
1030
|
-
ref_key: "svgRef",
|
|
1031
|
-
ref: z,
|
|
1032
|
-
xmlns: D(ae),
|
|
1033
|
-
class: Me({
|
|
1034
|
-
"vue-data-ui-fullscreen--on": $.value,
|
|
1035
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1036
|
-
}),
|
|
1037
|
-
viewBox: `0 0 ${K.value} ${q.value.absoluteHeight <= 0 ? 10 : q.value.absoluteHeight}`,
|
|
1038
|
-
style: x(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color}`),
|
|
1039
|
-
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1040
|
-
tabindex: "0",
|
|
1041
|
-
onFocus: ar,
|
|
1042
|
-
onBlur: or,
|
|
1043
|
-
onKeydown: sr
|
|
1044
|
-
}, [
|
|
1045
|
-
_(D(Mt)),
|
|
1046
|
-
e.$slots["chart-background"] ? (S(), h("foreignObject", {
|
|
1047
|
-
key: 0,
|
|
1048
|
-
x: q.value.left,
|
|
1049
|
-
y: q.value.top,
|
|
1050
|
-
width: Math.max(.1, q.value.width),
|
|
1051
|
-
height: Math.max(.1, q.value.height),
|
|
1052
|
-
style: { pointerEvents: "none" }
|
|
1053
|
-
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : m("", !0),
|
|
1054
|
-
L.value.style.chart.grid.verticalGrid.show ? (S(), h("g", Ye, [(S(!0), h(d, null, w(W.value.ticks, (e, t) => (S(), h("line", {
|
|
1055
|
-
x1: q.value.left + t * q.value.width / (W.value.ticks.length - 1),
|
|
1056
|
-
x2: q.value.left + t * q.value.width / (W.value.ticks.length - 1),
|
|
1057
|
-
y1: q.value.top,
|
|
1058
|
-
y2: q.value.bottom,
|
|
1059
|
-
stroke: L.value.style.chart.grid.verticalGrid.stroke,
|
|
1060
|
-
"stroke-width": L.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
1061
|
-
"stroke-dasharray": L.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
1062
|
-
}, null, 8, Xe))), 256))])) : m("", !0),
|
|
1063
|
-
L.value.style.chart.grid.horizontalGrid.show ? (S(), h("g", Ze, [(S(!0), h(d, null, w(U.value, (e, t) => (S(), h("line", {
|
|
1064
|
-
x1: q.value.left,
|
|
1065
|
-
x2: q.value.right,
|
|
1066
|
-
y1: q.value.top + t * q.value.rowHeight,
|
|
1067
|
-
y2: q.value.top + t * q.value.rowHeight,
|
|
1068
|
-
stroke: L.value.style.chart.grid.horizontalGrid.stroke,
|
|
1069
|
-
"stroke-width": L.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1070
|
-
"stroke-dasharray": L.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
1071
|
-
}, null, 8, Qe))), 256)), g("line", {
|
|
1072
|
-
x1: q.value.left,
|
|
1073
|
-
x2: q.value.right,
|
|
1074
|
-
y1: q.value.bottom,
|
|
1075
|
-
y2: q.value.bottom,
|
|
1076
|
-
stroke: L.value.style.chart.grid.horizontalGrid.stroke,
|
|
1077
|
-
"stroke-width": L.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1078
|
-
"stroke-dasharray": L.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
1079
|
-
}, null, 8, $e)])) : m("", !0),
|
|
1080
|
-
L.value.style.chart.labels.axis.yLabel ? (S(), h("text", {
|
|
1081
|
-
key: 3,
|
|
1082
|
-
ref_key: "yAxisLabel",
|
|
1083
|
-
ref: Xt,
|
|
1084
|
-
transform: `translate(${L.value.style.chart.labels.axis.fontSize}, ${q.value.absoluteHeight / 2}), rotate(-90)`,
|
|
1085
|
-
"font-size": L.value.style.chart.labels.axis.fontSize,
|
|
1086
|
-
fill: L.value.style.chart.labels.axis.color,
|
|
1087
|
-
"text-anchor": "middle"
|
|
1088
|
-
}, E(L.value.style.chart.labels.axis.yLabel), 9, et)) : m("", !0),
|
|
1089
|
-
L.value.style.chart.labels.yAxisLabels.show ? (S(), h("g", {
|
|
1090
|
-
key: 4,
|
|
1091
|
-
ref_key: "serieLabels",
|
|
1092
|
-
ref: Zt
|
|
1093
|
-
}, [(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("text", {
|
|
1094
|
-
class: "vue-ui-dumbbell-serie-name",
|
|
1095
|
-
key: `serieLabel_${e.id}_${t}`,
|
|
1096
|
-
x: q.value.left - 6 + L.value.style.chart.labels.yAxisLabels.offsetX,
|
|
1097
|
-
y: q.value.top + t * q.value.rowHeight + (!L.value.style.chart.labels.yAxisLabels.showProgression || I.value ? q.value.rowHeight / 2 : q.value.rowHeight / 3) + L.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1098
|
-
"font-size": L.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1099
|
-
fill: L.value.style.chart.labels.yAxisLabels.color,
|
|
1100
|
-
"font-weight": L.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
1101
|
-
"text-anchor": "end",
|
|
1102
|
-
onMouseenter: (n) => Vn({
|
|
1103
|
-
datapoint: e,
|
|
1104
|
-
seriesIndex: t
|
|
1105
|
-
}),
|
|
1106
|
-
onMouseleave: (n) => Hn({
|
|
1107
|
-
datapoint: e,
|
|
1108
|
-
seriesIndex: t
|
|
1109
|
-
}),
|
|
1110
|
-
onClick: (n) => Un({
|
|
1111
|
-
datapoint: e,
|
|
1112
|
-
seriesIndex: t
|
|
1113
|
-
})
|
|
1114
|
-
}, E(e.name) + " " + E(I.value && L.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : `(${D(c)(L.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), D(a)({
|
|
1115
|
-
v: 100 * (e.end / e.start - 1),
|
|
1116
|
-
s: "%",
|
|
1117
|
-
r: L.value.style.chart.labels.yAxisLabels.rounding
|
|
1118
|
-
}), { datapoint: e })})` : ""), 41, tt))), 128)), L.value.style.chart.labels.yAxisLabels.showProgression && !I.value ? (S(!0), h(d, { key: 0 }, w(Y.value, (e, t) => (S(), h("text", {
|
|
1119
|
-
class: "vue-ui-dumbbell-serie-value",
|
|
1120
|
-
x: q.value.left - 6 + L.value.style.chart.labels.yAxisLabels.offsetX,
|
|
1121
|
-
y: q.value.top + t * q.value.rowHeight + q.value.rowHeight / 1.3 + L.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1122
|
-
"font-size": L.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1123
|
-
fill: L.value.style.chart.labels.yAxisLabels.color,
|
|
1124
|
-
"text-anchor": "end",
|
|
1125
|
-
onMouseenter: (n) => Vn({
|
|
1126
|
-
datapoint: e,
|
|
1127
|
-
seriesIndex: t
|
|
1128
|
-
}),
|
|
1129
|
-
onMouseleave: (n) => Hn({
|
|
1130
|
-
datapoint: e,
|
|
1131
|
-
seriesIndex: t
|
|
1132
|
-
}),
|
|
1133
|
-
onClick: (n) => Un({
|
|
1134
|
-
datapoint: e,
|
|
1135
|
-
seriesIndex: t
|
|
1136
|
-
})
|
|
1137
|
-
}, E([null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : D(c)(L.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), D(a)({
|
|
1138
|
-
v: 100 * (e.end / e.start - 1),
|
|
1139
|
-
s: "%",
|
|
1140
|
-
r: L.value.style.chart.labels.yAxisLabels.rounding
|
|
1141
|
-
}), { datapoint: e })), 41, nt))), 256)) : m("", !0)], 512)) : m("", !0),
|
|
1142
|
-
L.value.style.chart.labels.axis.xLabel ? (S(), h("text", {
|
|
1143
|
-
key: 5,
|
|
1144
|
-
ref_key: "xAxisLabel",
|
|
1145
|
-
ref: $t,
|
|
1146
|
-
x: q.value.left + q.value.width / 2,
|
|
1147
|
-
y: q.value.absoluteHeight - L.value.style.chart.labels.axis.fontSize / 3,
|
|
1148
|
-
"font-size": L.value.style.chart.labels.axis.fontSize,
|
|
1149
|
-
fill: L.value.style.chart.labels.axis.color,
|
|
1150
|
-
"text-anchor": "middle"
|
|
1151
|
-
}, E(L.value.style.chart.labels.axis.xLabel), 9, rt)) : m("", !0),
|
|
1152
|
-
L.value.style.chart.labels.xAxisLabels.show ? (S(), h("g", {
|
|
1153
|
-
key: 6,
|
|
1154
|
-
ref_key: "scaleLabels",
|
|
1155
|
-
ref: Qt
|
|
1156
|
-
}, [(S(!0), h(d, null, w(W.value.ticks, (e, t) => (S(), h("text", {
|
|
1157
|
-
class: "vue-ui-dumbbell-scale-label",
|
|
1158
|
-
key: `tick_${t}`,
|
|
1159
|
-
transform: `translate(${q.value.left + t * (q.value.width / (W.value.ticks.length - 1))}, ${q.value.bottom + L.value.style.chart.labels.xAxisLabels.fontSize + L.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${L.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1160
|
-
"font-size": L.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1161
|
-
fill: L.value.style.chart.labels.xAxisLabels.color,
|
|
1162
|
-
"font-weight": L.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
1163
|
-
"text-anchor": L.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : L.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
1164
|
-
}, E(D(c)(L.value.style.chart.labels.formatter, e, D(a)({
|
|
1165
|
-
p: L.value.style.chart.labels.prefix,
|
|
1166
|
-
v: e,
|
|
1167
|
-
s: L.value.style.chart.labels.suffix,
|
|
1168
|
-
r: L.value.style.chart.labels.xAxisLabels.rounding
|
|
1169
|
-
}), {
|
|
1170
|
-
datapoint: e,
|
|
1171
|
-
seriesIndex: t
|
|
1172
|
-
})), 9, it))), 128))], 512)) : m("", !0),
|
|
1173
|
-
Ve(g("g", null, [
|
|
1174
|
-
Ve(g("path", {
|
|
1175
|
-
d: `M ${P.value ? P.value.startX : q.value.left},${q.value.top} ${P.value ? P.value.startX : q.value.left},${q.value.bottom}`,
|
|
1176
|
-
stroke: P.value ? L.value.style.chart.plots.evaluationColors.enable ? P.value.evaluationColor : L.value.style.chart.plots.startColor : "transparent",
|
|
1177
|
-
"stroke-width": L.value.style.chart.comparisonLines.strokeWidth,
|
|
1178
|
-
"stroke-dasharray": L.value.style.chart.comparisonLines.strokeDasharray,
|
|
1179
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1180
|
-
}, null, 8, at), [[Re, P.value !== null && ![null, void 0].includes(P.value.start)]]),
|
|
1181
|
-
Ve(g("path", {
|
|
1182
|
-
d: `M ${P.value ? P.value.endX : q.value.left},${q.value.top} ${P.value ? P.value.endX : q.value.left},${q.value.bottom}`,
|
|
1183
|
-
stroke: P.value ? L.value.style.chart.plots.evaluationColors.enable ? P.value.evaluationColor : L.value.style.chart.plots.endColor : "transparent",
|
|
1184
|
-
"stroke-width": L.value.style.chart.comparisonLines.strokeWidth,
|
|
1185
|
-
"stroke-dasharray": L.value.style.chart.comparisonLines.strokeDasharray,
|
|
1186
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1187
|
-
}, null, 8, ot), [[Re, P.value !== null && ![null, void 0].includes(P.value.end)]]),
|
|
1188
|
-
Ve(g("rect", {
|
|
1189
|
-
x: P.value ? Math.min(P.value.startX, P.value.endX) : q.value.left,
|
|
1190
|
-
y: q.value.top,
|
|
1191
|
-
height: Math.max(.1, q.value.height),
|
|
1192
|
-
width: P.value ? Math.max(.1, Math.abs(P.value.endX - P.value.startX)) : 0,
|
|
1193
|
-
fill: P.value ? D(i)(L.value.style.chart.comparisonLines.rectColor, L.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
1194
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1195
|
-
}, null, 8, st), [[Re, L.value.style.chart.comparisonLines.showRect && P.value !== null && ![null, void 0].includes(P.value.start) && ![null, void 0].includes(P.value.end)]]),
|
|
1196
|
-
Ve(g("text", {
|
|
1197
|
-
transform: `translate(${Wn.value == null ? 0 : Wn.value}, ${q.value.top - 6})`,
|
|
1198
|
-
fill: L.value.style.chart.comparisonLines.labelColor,
|
|
1199
|
-
"font-size": L.value.style.chart.comparisonLines.labelFontSize,
|
|
1200
|
-
"text-anchor": "middle",
|
|
1201
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1202
|
-
}, E(Gn.value), 9, ct), [[Re, P.value !== null && Wn.value !== null && L.value.style.chart.comparisonLines.showLabel]])
|
|
1203
|
-
], 512), [[Re, L.value.style.chart.comparisonLines.show && N.value !== null]]),
|
|
1204
|
-
g("defs", null, [
|
|
1205
|
-
_(u, {
|
|
1206
|
-
t: "radial",
|
|
1207
|
-
id: `start_grad_${A.value}`,
|
|
1208
|
-
fy: "30%",
|
|
1209
|
-
stops: [
|
|
1210
|
-
[
|
|
1211
|
-
"10%",
|
|
1212
|
-
D(l)(L.value.style.chart.plots.startColor, L.value.style.chart.plots.gradient.intensity / 100),
|
|
1213
|
-
1
|
|
1214
|
-
],
|
|
1215
|
-
[
|
|
1216
|
-
"90%",
|
|
1217
|
-
D(o)(L.value.style.chart.plots.startColor, .1),
|
|
1218
|
-
1
|
|
1219
|
-
],
|
|
1220
|
-
[
|
|
1221
|
-
"100%",
|
|
1222
|
-
L.value.style.chart.plots.startColor,
|
|
1223
|
-
1
|
|
1224
|
-
]
|
|
1225
|
-
]
|
|
1226
|
-
}, null, 8, ["id", "stops"]),
|
|
1227
|
-
_(u, {
|
|
1228
|
-
t: "radial",
|
|
1229
|
-
id: `end_grad_${A.value}`,
|
|
1230
|
-
fy: "30%",
|
|
1231
|
-
stops: [
|
|
1232
|
-
[
|
|
1233
|
-
"10%",
|
|
1234
|
-
D(l)(L.value.style.chart.plots.endColor, L.value.style.chart.plots.gradient.intensity / 100),
|
|
1235
|
-
1
|
|
1236
|
-
],
|
|
1237
|
-
[
|
|
1238
|
-
"90%",
|
|
1239
|
-
D(o)(L.value.style.chart.plots.endColor, .1),
|
|
1240
|
-
1
|
|
1241
|
-
],
|
|
1242
|
-
[
|
|
1243
|
-
"100%",
|
|
1244
|
-
L.value.style.chart.plots.endColor,
|
|
1245
|
-
1
|
|
1246
|
-
]
|
|
1247
|
-
]
|
|
1248
|
-
}, null, 8, ["id", "stops"]),
|
|
1249
|
-
_(u, {
|
|
1250
|
-
t: "radial",
|
|
1251
|
-
id: `positive_grad_${A.value}`,
|
|
1252
|
-
fy: "30%",
|
|
1253
|
-
stops: [
|
|
1254
|
-
[
|
|
1255
|
-
"10%",
|
|
1256
|
-
D(l)(L.value.style.chart.plots.evaluationColors.positive, L.value.style.chart.plots.gradient.intensity / 100),
|
|
1257
|
-
1
|
|
1258
|
-
],
|
|
1259
|
-
[
|
|
1260
|
-
"90%",
|
|
1261
|
-
D(o)(L.value.style.chart.plots.evaluationColors.positive, .1),
|
|
1262
|
-
1
|
|
1263
|
-
],
|
|
1264
|
-
[
|
|
1265
|
-
"100%",
|
|
1266
|
-
L.value.style.chart.plots.evaluationColors.positive,
|
|
1267
|
-
1
|
|
1268
|
-
]
|
|
1269
|
-
]
|
|
1270
|
-
}, null, 8, ["id", "stops"]),
|
|
1271
|
-
_(u, {
|
|
1272
|
-
t: "radial",
|
|
1273
|
-
id: `negative_grad_${A.value}`,
|
|
1274
|
-
fy: "30%",
|
|
1275
|
-
stops: [
|
|
1276
|
-
[
|
|
1277
|
-
"10%",
|
|
1278
|
-
D(l)(L.value.style.chart.plots.evaluationColors.negative, L.value.style.chart.plots.gradient.intensity / 100),
|
|
1279
|
-
1
|
|
1280
|
-
],
|
|
1281
|
-
[
|
|
1282
|
-
"90%",
|
|
1283
|
-
D(o)(L.value.style.chart.plots.evaluationColors.negative, .1),
|
|
1284
|
-
1
|
|
1285
|
-
],
|
|
1286
|
-
[
|
|
1287
|
-
"100%",
|
|
1288
|
-
L.value.style.chart.plots.evaluationColors.negative,
|
|
1289
|
-
1
|
|
1290
|
-
]
|
|
1291
|
-
]
|
|
1292
|
-
}, null, 8, ["id", "stops"]),
|
|
1293
|
-
_(u, {
|
|
1294
|
-
t: "radial",
|
|
1295
|
-
id: `neutral_grad_${A.value}`,
|
|
1296
|
-
fy: "30%",
|
|
1297
|
-
stops: [
|
|
1298
|
-
[
|
|
1299
|
-
"10%",
|
|
1300
|
-
D(l)(L.value.style.chart.plots.evaluationColors.neutral, L.value.style.chart.plots.gradient.intensity / 100),
|
|
1301
|
-
1
|
|
1302
|
-
],
|
|
1303
|
-
[
|
|
1304
|
-
"90%",
|
|
1305
|
-
D(o)(L.value.style.chart.plots.evaluationColors.neutral, .1),
|
|
1306
|
-
1
|
|
1307
|
-
],
|
|
1308
|
-
[
|
|
1309
|
-
"100%",
|
|
1310
|
-
L.value.style.chart.plots.evaluationColors.neutral,
|
|
1311
|
-
1
|
|
1312
|
-
]
|
|
1313
|
-
]
|
|
1314
|
-
}, null, 8, ["id", "stops"])
|
|
1315
|
-
]),
|
|
1316
|
-
(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("g", { key: `plot_${t}_${e.id}` }, [
|
|
1317
|
-
g("defs", null, [_(u, {
|
|
1318
|
-
t: "linear",
|
|
1319
|
-
id: `grad_pos_${A.value}`,
|
|
1320
|
-
x1: "0%",
|
|
1321
|
-
x2: "100%",
|
|
1322
|
-
y1: "0%",
|
|
1323
|
-
y2: "0%",
|
|
1324
|
-
stops: [[
|
|
1325
|
-
"0%",
|
|
1326
|
-
L.value.style.chart.plots.startColor,
|
|
1327
|
-
1
|
|
1328
|
-
], [
|
|
1329
|
-
"100%",
|
|
1330
|
-
L.value.style.chart.plots.endColor,
|
|
1331
|
-
1
|
|
1332
|
-
]]
|
|
1333
|
-
}, null, 8, ["id", "stops"]), _(u, {
|
|
1334
|
-
t: "linear",
|
|
1335
|
-
id: `grad_neg_${A.value}`,
|
|
1336
|
-
x1: "0%",
|
|
1337
|
-
x2: "100%",
|
|
1338
|
-
y1: "0%",
|
|
1339
|
-
y2: "0%",
|
|
1340
|
-
stops: [[
|
|
1341
|
-
"0%",
|
|
1342
|
-
L.value.style.chart.plots.endColor,
|
|
1343
|
-
1
|
|
1344
|
-
], [
|
|
1345
|
-
"100%",
|
|
1346
|
-
L.value.style.chart.plots.startColor,
|
|
1347
|
-
1
|
|
1348
|
-
]]
|
|
1349
|
-
}, null, 8, ["id", "stops"])]),
|
|
1350
|
-
![void 0, null].includes(e.end) && ![void 0, null].includes(e.start) ? (S(), h("g", lt, [L.value.style.chart.plots.link.type === "curved" ? (S(), h("g", ut, [g("path", {
|
|
1351
|
-
d: `M
|
|
1352
|
-
${e.startX},${e.y + J.value / 2}
|
|
1353
|
-
C ${e.centerX},${e.y} ${e.centerX},${e.y}
|
|
1354
|
-
${e.endX},${e.y + J.value / 2}
|
|
1355
|
-
L ${e.endX},${e.y - J.value / 2}
|
|
1356
|
-
C ${e.centerX},${e.y} ${e.centerX},${e.y}
|
|
1357
|
-
${e.startX},${e.y - J.value / 2}
|
|
1358
|
-
Z
|
|
1359
|
-
`,
|
|
1360
|
-
fill: L.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
|
|
1361
|
-
}, null, 8, dt)])) : (S(), h("g", ft, [g("rect", {
|
|
1362
|
-
x: e.endX > e.startX ? e.startX : e.endX,
|
|
1363
|
-
y: e.y - L.value.style.chart.plots.link.strokeWidth / 2,
|
|
1364
|
-
height: Math.max(.01, L.value.style.chart.plots.link.strokeWidth),
|
|
1365
|
-
width: Math.max(.01, Math.abs(e.endX - e.startX)),
|
|
1366
|
-
fill: L.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
|
|
1367
|
-
}, null, 8, pt)]))])) : m("", !0),
|
|
1368
|
-
[null, void 0].includes(e.start) ? m("", !0) : (S(), h("circle", {
|
|
1369
|
-
key: 1,
|
|
1370
|
-
cx: e.startX,
|
|
1371
|
-
cy: e.y,
|
|
1372
|
-
r: J.value,
|
|
1373
|
-
fill: L.value.style.chart.plots.gradient.show ? L.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#start_grad_${A.value})` : L.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : L.value.style.chart.plots.startColor,
|
|
1374
|
-
stroke: L.value.style.chart.plots.stroke,
|
|
1375
|
-
"stroke-width": L.value.style.chart.plots.strokeWidth
|
|
1376
|
-
}, null, 8, mt)),
|
|
1377
|
-
[null, void 0].includes(e.end) ? m("", !0) : (S(), h("circle", {
|
|
1378
|
-
key: 2,
|
|
1379
|
-
cx: e.endX,
|
|
1380
|
-
cy: e.y,
|
|
1381
|
-
r: J.value,
|
|
1382
|
-
fill: L.value.style.chart.plots.gradient.show ? L.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#end_grad_${A.value})` : L.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : L.value.style.chart.plots.endColor,
|
|
1383
|
-
stroke: L.value.style.chart.plots.stroke,
|
|
1384
|
-
"stroke-width": L.value.style.chart.plots.strokeWidth
|
|
1385
|
-
}, null, 8, ht))
|
|
1386
|
-
]))), 128)),
|
|
1387
|
-
L.value.style.chart.labels.startLabels.show ? (S(), h("g", gt, [(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("g", { key: `start_label_${t}_${e.id}` }, [[null, void 0].includes(e.start) ? m("", !0) : (S(), h("text", {
|
|
1388
|
-
key: 0,
|
|
1389
|
-
x: e.startX,
|
|
1390
|
-
y: e.y + J.value * 2 + L.value.style.chart.labels.startLabels.fontSize / 2,
|
|
1391
|
-
fill: L.value.style.chart.plots.evaluationColors.enable && L.value.style.chart.labels.startLabels.useEvaluationColor ? e.evaluationColor : L.value.style.chart.labels.startLabels.useStartColor ? L.value.style.chart.plots.startColor : L.value.style.chart.labels.startLabels.color,
|
|
1392
|
-
"font-size": L.value.style.chart.labels.startLabels.fontSize,
|
|
1393
|
-
"text-anchor": "middle"
|
|
1394
|
-
}, E(D(c)(L.value.style.chart.labels.formatter, e.start, D(a)({
|
|
1395
|
-
p: L.value.style.chart.labels.prefix,
|
|
1396
|
-
v: e.start,
|
|
1397
|
-
s: L.value.style.chart.labels.suffix,
|
|
1398
|
-
r: L.value.style.chart.labels.startLabels.rounding
|
|
1399
|
-
}), {
|
|
1400
|
-
datapoint: e,
|
|
1401
|
-
seriesIndex: t
|
|
1402
|
-
})), 9, _t))]))), 128))])) : m("", !0),
|
|
1403
|
-
L.value.style.chart.labels.endLabels.show ? (S(), h("g", vt, [(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("g", { key: `end_label_${t}_${e.id}` }, [[null, void 0].includes(e.end) ? m("", !0) : (S(), h("text", {
|
|
1404
|
-
key: 0,
|
|
1405
|
-
x: e.endX,
|
|
1406
|
-
y: e.y - (J.value * 2 - L.value.style.chart.labels.startLabels.fontSize / 3),
|
|
1407
|
-
fill: L.value.style.chart.plots.evaluationColors.enable && L.value.style.chart.labels.endLabels.useEvaluationColor ? e.evaluationColor : L.value.style.chart.labels.endLabels.useEndColor ? L.value.style.chart.plots.endColor : L.value.style.chart.labels.endLabels.color,
|
|
1408
|
-
"font-size": L.value.style.chart.labels.endLabels.fontSize,
|
|
1409
|
-
"text-anchor": "middle"
|
|
1410
|
-
}, E(D(c)(L.value.style.chart.labels.formatter, e.end, D(a)({
|
|
1411
|
-
p: L.value.style.chart.labels.prefix,
|
|
1412
|
-
v: e.end,
|
|
1413
|
-
s: L.value.style.chart.labels.suffix,
|
|
1414
|
-
r: L.value.style.chart.labels.endLabels.rounding
|
|
1415
|
-
}), {
|
|
1416
|
-
datapoint: e,
|
|
1417
|
-
seriesIndex: t
|
|
1418
|
-
})), 9, yt))]))), 128))])) : m("", !0),
|
|
1419
|
-
g("g", null, [(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("rect", {
|
|
1420
|
-
x: q.value.left,
|
|
1421
|
-
y: q.value.top + t * Math.max(.1, q.value.rowHeight),
|
|
1422
|
-
width: Math.max(.1, q.value.width),
|
|
1423
|
-
height: Math.max(.1, q.value.rowHeight),
|
|
1424
|
-
fill: N.value === null ? "transparent" : N.value === t ? D(i)(L.value.style.chart.highlighter.color, L.value.style.chart.highlighter.opacity) : "transparent",
|
|
1425
|
-
onMouseenter: (n) => Vn({
|
|
1426
|
-
datapoint: e,
|
|
1427
|
-
seriesIndex: t
|
|
1428
|
-
}),
|
|
1429
|
-
onMouseleave: (n) => Hn({
|
|
1430
|
-
datapoint: e,
|
|
1431
|
-
seriesIndex: t
|
|
1432
|
-
}),
|
|
1433
|
-
onClick: (n) => Un({
|
|
1434
|
-
datapoint: e,
|
|
1435
|
-
seriesIndex: t
|
|
1436
|
-
})
|
|
1437
|
-
}, null, 40, bt))), 256))]),
|
|
1438
|
-
T(e.$slots, "svg", { svg: {
|
|
1439
|
-
...q.value,
|
|
1440
|
-
isPrintingImg: D(fn) || D(pn) || D(Qn),
|
|
1441
|
-
isPrintingSvg: D($n)
|
|
1442
|
-
} }, void 0, !0)
|
|
1443
|
-
], 46, qe)), e.$slots.hint ? (S(), h("div", xt, [T(e.$slots, "hint", b(y({
|
|
1444
|
-
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1445
|
-
isVisible: en.value
|
|
1446
|
-
})), void 0, !0)])) : m("", !0)]),
|
|
1447
|
-
e.$slots.watermark ? (S(), h("div", St, [T(e.$slots, "watermark", b(y({ isPrinting: D(fn) || D(pn) || D(Qn) || D($n) })), void 0, !0)])) : m("", !0),
|
|
1448
|
-
g("div", { id: `legend-bottom-${A.value}` }, null, 8, Ct),
|
|
1449
|
-
Jt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(De, {
|
|
1450
|
-
key: 6,
|
|
1451
|
-
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1452
|
-
}, [g("div", {
|
|
1453
|
-
ref_key: "chartLegend",
|
|
1454
|
-
ref: Ht
|
|
1455
|
-
}, [T(e.$slots, "legend", { legend: Dn.value }, () => [L.value.style.chart.legend.show && zt.value ? (S(), p(we, {
|
|
1456
|
-
key: `legend_${qt.value}`,
|
|
1457
|
-
legendSet: Dn.value,
|
|
1458
|
-
config: On.value,
|
|
1459
|
-
clickable: !1
|
|
1460
|
-
}, {
|
|
1461
|
-
item: O(({ legend: e }) => [g("div", { style: x(`display:flex;align-items:center;gap:4px;font-size:${L.value.style.chart.legend.fontSize}px`) }, [(S(), h("svg", {
|
|
1462
|
-
xmlns: D(ae),
|
|
1463
|
-
viewBox: "0 0 20 20",
|
|
1464
|
-
height: L.value.style.chart.legend.fontSize,
|
|
1465
|
-
width: L.value.style.chart.legend.fontSize
|
|
1466
|
-
}, [g("circle", {
|
|
1467
|
-
cx: 10,
|
|
1468
|
-
cy: 10,
|
|
1469
|
-
r: 9,
|
|
1470
|
-
fill: e.color
|
|
1471
|
-
}, null, 8, Tt)], 8, wt)), D(nn) ? m("", !0) : (S(), h(d, { key: 0 }, [ke(E(e.name), 1)], 64))], 4)]),
|
|
1472
|
-
_: 1
|
|
1473
|
-
}, 8, ["legendSet", "config"])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1474
|
-
e.$slots.source ? (S(), h("div", {
|
|
1475
|
-
key: 7,
|
|
1476
|
-
ref_key: "source",
|
|
1477
|
-
ref: Ut,
|
|
1478
|
-
dir: "auto"
|
|
1479
|
-
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1480
|
-
zt.value && L.value.userOptions.buttons.table ? (S(), p(Fe(Kn.value.component), Ae({ key: 8 }, Kn.value.props, {
|
|
1481
|
-
ref_key: "tableUnit",
|
|
1482
|
-
ref: M,
|
|
1483
|
-
onClose: qn
|
|
1484
|
-
}), Oe({
|
|
1485
|
-
content: O(() => [(S(), p(D(kt), {
|
|
1486
|
-
key: `table_${Kt.value}`,
|
|
1487
|
-
colNames: Q.value.colNames,
|
|
1488
|
-
head: Q.value.head,
|
|
1489
|
-
body: Q.value.body,
|
|
1490
|
-
config: Q.value.config,
|
|
1491
|
-
title: L.value.table.useDialog ? "" : Kn.value.title,
|
|
1492
|
-
withCloseButton: !L.value.table.useDialog,
|
|
1493
|
-
isCursorPointer: R.value,
|
|
1494
|
-
onClose: qn
|
|
1495
|
-
}, {
|
|
1496
|
-
th: O(({ th: e }) => [g("div", Et, E(e), 1)]),
|
|
1497
|
-
td: O(({ td: e }) => [ke(E(e.name || e), 1)]),
|
|
1498
|
-
_: 1
|
|
1499
|
-
}, 8, [
|
|
1500
|
-
"colNames",
|
|
1501
|
-
"head",
|
|
1502
|
-
"body",
|
|
1503
|
-
"config",
|
|
1504
|
-
"title",
|
|
1505
|
-
"withCloseButton",
|
|
1506
|
-
"isCursorPointer"
|
|
1507
|
-
]))]),
|
|
1508
|
-
_: 2
|
|
1509
|
-
}, [L.value.table.useDialog ? {
|
|
1510
|
-
name: "title",
|
|
1511
|
-
fn: O(() => [ke(E(Kn.value.title), 1)]),
|
|
1512
|
-
key: "0"
|
|
1513
|
-
} : void 0, L.value.table.useDialog ? {
|
|
1514
|
-
name: "actions",
|
|
1515
|
-
fn: O(() => [g("button", {
|
|
1516
|
-
tabindex: "0",
|
|
1517
|
-
class: "vue-ui-user-options-button",
|
|
1518
|
-
onClick: t[0] ||= (e) => kn(L.value.userOptions.callbacks.csv),
|
|
1519
|
-
style: x({ cursor: R.value ? "pointer" : "default" })
|
|
1520
|
-
}, [_(D(Dt), {
|
|
1521
|
-
name: "fileCsv",
|
|
1522
|
-
stroke: Kn.value.props.color
|
|
1523
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1524
|
-
key: "1"
|
|
1525
|
-
} : void 0]), 1040)) : m("", !0),
|
|
1526
|
-
T(e.$slots, "skeleton", {}, () => [D(nn) ? (S(), p(de, { key: 0 })) : m("", !0)], !0)
|
|
1527
|
-
], 46, Ue));
|
|
1528
|
-
}
|
|
1529
|
-
}, [["__scopeId", "data-v-82b215bc"]]);
|
|
1530
|
-
//#endregion
|
|
1531
|
-
export { He as n, Dt as t };
|