vue-data-ui 3.22.7 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, Et as n, G as r, J as i, Kt as a, Rt as o, T as s, Z as ee, dt as te, h as ne, i as c, kt as re, q as l, t as ie, v as ae } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as se } from "./usePrinter-
|
|
4
|
+
import { t as se } from "./usePrinter-CqqHmnBI.js";
|
|
5
5
|
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as ue } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as de } from "./useNestedProp-
|
|
7
|
+
import { t as de } from "./useNestedProp-DIuuzG1r.js";
|
|
8
8
|
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
-
import { t as me } from "./img-
|
|
11
|
-
import { n as he } from "./Title-
|
|
10
|
+
import { t as me } from "./img-DnP3eXuv.js";
|
|
11
|
+
import { n as he } from "./Title-CcNiYzEo.js";
|
|
12
12
|
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as _e } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as ve } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as u } from "./DefGrad-DVBqDjhO.js";
|
|
15
16
|
import { t as ye } from "./A11yDataTable-DdRsVULz.js";
|
|
16
17
|
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
18
|
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Se } from "./Legend-
|
|
19
|
+
import { t as Se } from "./Legend-ROt6ugzW.js";
|
|
19
20
|
import { t as Ce } from "./vue_ui_dumbbell-Bfe_jFyi.js";
|
|
20
|
-
import { Fragment as
|
|
21
|
+
import { Fragment as d, Teleport as we, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Te, createTextVNode as Ee, createVNode as _, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as De, nextTick as Oe, normalizeClass as ke, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ae, onMounted as je, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Me, shallowRef as Ne, toDisplayString as E, toRefs as Pe, unref as D, vShow as Fe, watch as Ie, watchEffect as Le, withCtx as O, withDirectives as Re } from "vue";
|
|
21
22
|
//#region src/components/vue-ui-dumbbell.vue
|
|
22
|
-
var ze = /* @__PURE__ */ e({ default: () =>
|
|
23
|
+
var ze = /* @__PURE__ */ e({ default: () => wt }), Be = ["id"], Ve = ["id"], He = ["id"], Ue = { style: { position: "relative" } }, We = [
|
|
23
24
|
"xmlns",
|
|
24
25
|
"viewBox",
|
|
25
26
|
"aria-describedby"
|
|
@@ -104,37 +105,37 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
104
105
|
"transform",
|
|
105
106
|
"fill",
|
|
106
107
|
"font-size"
|
|
107
|
-
], ot =
|
|
108
|
+
], ot = { key: 0 }, st = { key: 0 }, ct = ["d", "fill"], lt = { key: 1 }, ut = [
|
|
108
109
|
"x",
|
|
109
110
|
"y",
|
|
110
111
|
"height",
|
|
111
112
|
"width",
|
|
112
113
|
"fill"
|
|
113
|
-
],
|
|
114
|
+
], dt = [
|
|
114
115
|
"cx",
|
|
115
116
|
"cy",
|
|
116
117
|
"r",
|
|
117
118
|
"fill",
|
|
118
119
|
"stroke",
|
|
119
120
|
"stroke-width"
|
|
120
|
-
],
|
|
121
|
+
], ft = [
|
|
121
122
|
"cx",
|
|
122
123
|
"cy",
|
|
123
124
|
"r",
|
|
124
125
|
"fill",
|
|
125
126
|
"stroke",
|
|
126
127
|
"stroke-width"
|
|
127
|
-
],
|
|
128
|
+
], pt = { key: 7 }, mt = [
|
|
128
129
|
"x",
|
|
129
130
|
"y",
|
|
130
131
|
"fill",
|
|
131
132
|
"font-size"
|
|
132
|
-
],
|
|
133
|
+
], ht = { key: 8 }, gt = [
|
|
133
134
|
"x",
|
|
134
135
|
"y",
|
|
135
136
|
"fill",
|
|
136
137
|
"font-size"
|
|
137
|
-
],
|
|
138
|
+
], _t = [
|
|
138
139
|
"x",
|
|
139
140
|
"y",
|
|
140
141
|
"width",
|
|
@@ -143,7 +144,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
143
144
|
"onMouseenter",
|
|
144
145
|
"onMouseleave",
|
|
145
146
|
"onClick"
|
|
146
|
-
],
|
|
147
|
+
], vt = {
|
|
147
148
|
key: 0,
|
|
148
149
|
style: {
|
|
149
150
|
position: "absolute",
|
|
@@ -153,14 +154,14 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
153
154
|
},
|
|
154
155
|
"data-dom-to-png-ignore": "",
|
|
155
156
|
"aria-hidden": "true"
|
|
156
|
-
},
|
|
157
|
+
}, yt = {
|
|
157
158
|
key: 5,
|
|
158
159
|
class: "vue-data-ui-watermark"
|
|
159
|
-
},
|
|
160
|
+
}, bt = ["id"], xt = [
|
|
160
161
|
"xmlns",
|
|
161
162
|
"height",
|
|
162
163
|
"width"
|
|
163
|
-
],
|
|
164
|
+
], St = ["fill"], Ct = ["innerHTML"], wt = /*#__PURE__*/ ge({
|
|
164
165
|
__name: "vue-ui-dumbbell",
|
|
165
166
|
props: {
|
|
166
167
|
config: {
|
|
@@ -178,14 +179,14 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
178
179
|
},
|
|
179
180
|
emits: ["selectDatapoint", "copyAlt"],
|
|
180
181
|
setup(e, { expose: ge, emit: ze }) {
|
|
181
|
-
let
|
|
182
|
+
let wt = v(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Tt = v(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Et = v(() => import("./DataTable-BxpTMgfK.js")), Dt = v(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ot = v(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), kt = v(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), At = v(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_dumbbell: jt } = oe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = fe(), k = e, Pt = ze, Ft = f({
|
|
182
183
|
get() {
|
|
183
|
-
return !!
|
|
184
|
+
return !!k.dataset && k.dataset.length;
|
|
184
185
|
},
|
|
185
186
|
set(e) {
|
|
186
187
|
return e;
|
|
187
188
|
}
|
|
188
|
-
}),
|
|
189
|
+
}), A = C(r()), It = C(0), j = C(null), Lt = C(null), Rt = C(null), zt = C(null), Bt = C(null), Vt = C(0), Ht = C(0), Ut = C(0), Wt = C(!1), Gt = C(null), Kt = C(null), qt = C(!1), Jt = C(!1), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), M = C(null), N = C(null), P = C(null), $t = C(!1), F = C(!1), I = C(cn()), L = f(() => I.value.userOptions.useCursorPointer), en = f(() => a({
|
|
189
190
|
defaultConfig: {
|
|
190
191
|
userOptions: { show: !1 },
|
|
191
192
|
table: { show: !1 },
|
|
@@ -222,11 +223,11 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
222
223
|
} }
|
|
223
224
|
},
|
|
224
225
|
userConfig: I.value.skeletonConfig ?? {}
|
|
225
|
-
})), { loading:
|
|
226
|
-
...
|
|
226
|
+
})), { loading: tn, FINAL_DATASET: nn, manualLoading: rn } = ce({
|
|
227
|
+
...Pe(k),
|
|
227
228
|
FINAL_CONFIG: I,
|
|
228
|
-
prepareConfig:
|
|
229
|
-
skeletonDataset:
|
|
229
|
+
prepareConfig: cn,
|
|
230
|
+
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
230
231
|
{
|
|
231
232
|
name: "_",
|
|
232
233
|
start: 21,
|
|
@@ -253,44 +254,44 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
253
254
|
end: 5
|
|
254
255
|
}
|
|
255
256
|
],
|
|
256
|
-
skeletonConfig:
|
|
257
|
+
skeletonConfig: a({
|
|
257
258
|
defaultConfig: I.value,
|
|
258
|
-
userConfig:
|
|
259
|
+
userConfig: en.value
|
|
259
260
|
})
|
|
260
|
-
}), { userOptionsVisible:
|
|
261
|
-
function
|
|
261
|
+
}), { userOptionsVisible: an, setUserOptionsVisibility: on, keepUserOptionState: sn } = be({ config: I.value }), { svgRef: R } = xe({ config: I.value.style.chart.title });
|
|
262
|
+
function cn() {
|
|
262
263
|
let e = de({
|
|
263
|
-
userConfig:
|
|
264
|
-
defaultConfig:
|
|
264
|
+
userConfig: k.config,
|
|
265
|
+
defaultConfig: jt
|
|
265
266
|
}), t = e.theme;
|
|
266
267
|
if (!t) return e;
|
|
267
|
-
if (!
|
|
268
|
+
if (!Mt.value(e)) return Nt(e), e;
|
|
268
269
|
let n = de({
|
|
269
|
-
userConfig: Ce[t] ||
|
|
270
|
+
userConfig: Ce[t] || k.config,
|
|
270
271
|
defaultConfig: e
|
|
271
272
|
});
|
|
272
273
|
return de({
|
|
273
|
-
userConfig:
|
|
274
|
+
userConfig: k.config,
|
|
274
275
|
defaultConfig: n
|
|
275
276
|
});
|
|
276
277
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}, { deep: !0 }),
|
|
280
|
-
Array.isArray(e) && e.length > 0 && (
|
|
278
|
+
Ie(() => k.config, (e) => {
|
|
279
|
+
tn.value || (I.value = cn()), an.value = !I.value.userOptions.showOnChartHover, un(), Vt.value += 1, Ht.value += 1, Ut.value += 1, W.value = I.value.style.chart.rowHeight, G.value = I.value.style.chart.width, V.value.showTable = I.value.table.show;
|
|
280
|
+
}, { deep: !0 }), Ie(() => nn.value, (e) => {
|
|
281
|
+
Array.isArray(e) && e.length > 0 && (rn.value = !1), wn(), Tn();
|
|
281
282
|
}, { deep: !0 });
|
|
282
|
-
let z =
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
let z = Ne(null), B = Ne(null);
|
|
284
|
+
je(() => {
|
|
285
|
+
Wt.value = !0, un();
|
|
285
286
|
});
|
|
286
|
-
let
|
|
287
|
-
function
|
|
288
|
-
if (
|
|
287
|
+
let ln = f(() => !!I.value.debug);
|
|
288
|
+
function un() {
|
|
289
|
+
if (re(k.dataset) ? t({
|
|
289
290
|
componentName: "VueUiDumbbell",
|
|
290
291
|
type: "dataset",
|
|
291
|
-
debug:
|
|
292
|
-
}) :
|
|
293
|
-
|
|
292
|
+
debug: ln.value
|
|
293
|
+
}) : k.dataset.forEach((e, n) => {
|
|
294
|
+
te({
|
|
294
295
|
datasetObject: e,
|
|
295
296
|
requiredAttributes: [
|
|
296
297
|
"name",
|
|
@@ -298,115 +299,115 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
298
299
|
"end"
|
|
299
300
|
]
|
|
300
301
|
}).forEach((e) => {
|
|
301
|
-
|
|
302
|
+
Ft.value = !1, t({
|
|
302
303
|
componentName: "VueUiDumbbell",
|
|
303
304
|
type: "datasetSerieAttribute",
|
|
304
305
|
property: e,
|
|
305
|
-
index:
|
|
306
|
-
debug:
|
|
306
|
+
index: n,
|
|
307
|
+
debug: ln.value
|
|
307
308
|
});
|
|
308
309
|
});
|
|
309
310
|
}), I.value.responsive) {
|
|
310
311
|
let e = _e(() => {
|
|
311
312
|
let { width: e, height: t } = ve({
|
|
312
|
-
chart:
|
|
313
|
-
title: I.value.style.chart.title.text ?
|
|
314
|
-
legend: I.value.style.chart.legend.show ?
|
|
315
|
-
source:
|
|
316
|
-
noTitle:
|
|
313
|
+
chart: j.value,
|
|
314
|
+
title: I.value.style.chart.title.text ? Lt.value : null,
|
|
315
|
+
legend: I.value.style.chart.legend.show ? Rt.value : null,
|
|
316
|
+
source: zt.value,
|
|
317
|
+
noTitle: Bt.value
|
|
317
318
|
}), n = I.value.style.chart.title.text ? 24 : 0, r = I.value.style.chart.legend.show ? 24 : 0;
|
|
318
319
|
requestAnimationFrame(async () => {
|
|
319
|
-
G.value = Math.max(.1, e), W.value = Math.max(.1, (Math.max(.1, t) - (n + r)) /
|
|
320
|
+
G.value = Math.max(.1, e), W.value = Math.max(.1, (Math.max(.1, t) - (n + r)) / nn.value.length), Rn();
|
|
320
321
|
});
|
|
321
322
|
});
|
|
322
|
-
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value =
|
|
323
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = j.value.parentNode, z.value.observe(B.value);
|
|
323
324
|
}
|
|
324
|
-
|
|
325
|
+
Rn();
|
|
325
326
|
}
|
|
326
|
-
|
|
327
|
+
Ae(() => {
|
|
327
328
|
Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null), z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
328
329
|
});
|
|
329
|
-
let { isPrinting:
|
|
330
|
-
elementId: `dumbbell_${
|
|
330
|
+
let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = se({
|
|
331
|
+
elementId: `dumbbell_${A.value}`,
|
|
331
332
|
fileName: I.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
332
333
|
options: I.value.userOptions.print
|
|
333
|
-
}),
|
|
334
|
-
|
|
334
|
+
}), hn = f(() => I.value.userOptions.show && !I.value.style.chart.title.text), V = C({ showTable: I.value.table.show });
|
|
335
|
+
Ie(I, () => {
|
|
335
336
|
V.value = { showTable: I.value.table.show };
|
|
336
337
|
}, { immediate: !0 });
|
|
337
|
-
let H =
|
|
338
|
+
let H = f(() => nn.value.map((e, t) => ({
|
|
338
339
|
...e,
|
|
339
|
-
start:
|
|
340
|
-
end:
|
|
341
|
-
id: e.id ?? `${String(e.name)}__${String(e.start)}__${String(e.end)}__${
|
|
342
|
-
}))),
|
|
340
|
+
start: ae(e.start),
|
|
341
|
+
end: ae(e.end),
|
|
342
|
+
id: e.id ?? `${String(e.name)}__${String(e.start)}__${String(e.end)}__${r()}`
|
|
343
|
+
}))), gn = f(() => {
|
|
343
344
|
let e = I.value.style.chart.grid, t = H.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;
|
|
344
345
|
return {
|
|
345
346
|
min: e.scaleMin ?? Math.min(n, 0),
|
|
346
347
|
max: e.scaleMax ?? r
|
|
347
348
|
};
|
|
348
|
-
}), U =
|
|
349
|
-
function
|
|
349
|
+
}), U = f(() => ne(gn.value.min, gn.value.max, I.value.style.chart.grid.scaleSteps)), W = C(I.value.style.chart.rowHeight), G = C(I.value.style.chart.width);
|
|
350
|
+
function _n() {
|
|
350
351
|
let e = 0;
|
|
351
|
-
|
|
352
|
+
Xt.value && (e = Array.from(Xt.value.querySelectorAll("text")).reduce((e, t) => {
|
|
352
353
|
let n = t.getComputedTextLength();
|
|
353
354
|
return n > e ? n : e;
|
|
354
355
|
}, 0));
|
|
355
|
-
let t =
|
|
356
|
+
let t = Yt.value ? Yt.value.getBoundingClientRect().width : 0;
|
|
356
357
|
return e + t + (t ? 24 + I.value.style.chart.labels.axis.yLabelOffsetX : 0);
|
|
357
358
|
}
|
|
358
|
-
let
|
|
359
|
-
|
|
359
|
+
let vn = C(0), yn = _e((e) => {
|
|
360
|
+
vn.value = e;
|
|
360
361
|
}, 100);
|
|
361
|
-
|
|
362
|
-
let t =
|
|
362
|
+
Le((e) => {
|
|
363
|
+
let t = Zt.value;
|
|
363
364
|
if (!t) return;
|
|
364
365
|
let n = new ResizeObserver((e) => {
|
|
365
|
-
|
|
366
|
+
yn(e[0].contentRect.height);
|
|
366
367
|
});
|
|
367
368
|
n.observe(t), e(() => n.disconnect());
|
|
368
|
-
}),
|
|
369
|
-
|
|
369
|
+
}), Ae(() => {
|
|
370
|
+
vn.value = 0;
|
|
370
371
|
});
|
|
371
|
-
let
|
|
372
|
+
let bn = f(() => {
|
|
372
373
|
F.value;
|
|
373
374
|
let e = 0;
|
|
374
|
-
|
|
375
|
+
Qt.value && (e = Qt.value.getBBox().height);
|
|
375
376
|
let t = 0;
|
|
376
|
-
return
|
|
377
|
-
}),
|
|
378
|
-
function
|
|
377
|
+
return Zt.value && (t = vn.value), e + t;
|
|
378
|
+
}), xn = f(() => H.value.length);
|
|
379
|
+
function Sn(e, t, n) {
|
|
379
380
|
let r = Number(e), i = Number(t.min), a = Number(t.max), o = Number(n.width);
|
|
380
381
|
if (!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) || !Number.isFinite(o)) return n.left;
|
|
381
382
|
let s = a - i;
|
|
382
383
|
return s <= 0 ? n.left : n.left + (r - i) / s * o;
|
|
383
384
|
}
|
|
384
|
-
let K =
|
|
385
|
+
let K = f(() => {
|
|
385
386
|
F.value;
|
|
386
|
-
let e =
|
|
387
|
+
let e = _n(), t = I.value.style.chart.padding, n = I.value.style.chart.labels.axis.xLabel ? I.value.style.chart.labels.axis.xLabelOffsetY : 0, r = W.value * xn.value - bn.value - t.top - t.bottom - n, i = r / xn.value, a = W.value * xn.value, o = G.value - e - t.left - t.right, s = U.value.ticks.length * (o / U.value.ticks.length);
|
|
387
388
|
return {
|
|
388
389
|
left: I.value.style.chart.padding.left + e,
|
|
389
390
|
right: G.value - I.value.style.chart.padding.right,
|
|
390
391
|
top: I.value.style.chart.padding.top,
|
|
391
|
-
bottom: a - I.value.style.chart.padding.bottom -
|
|
392
|
+
bottom: a - I.value.style.chart.padding.bottom - bn.value - n,
|
|
392
393
|
width: o,
|
|
393
394
|
height: r,
|
|
394
395
|
rowHeight: i,
|
|
395
396
|
absoluteHeight: a,
|
|
396
397
|
widthPlotReference: s
|
|
397
398
|
};
|
|
398
|
-
}), q =
|
|
399
|
+
}), q = f(() => Math.min(W.value / 2 * .7, I.value.style.chart.plots.radius)), Cn = C([]), J = f({
|
|
399
400
|
get() {
|
|
400
401
|
let e = K.value, t = U.value;
|
|
401
|
-
return
|
|
402
|
-
let i =
|
|
402
|
+
return Cn.value.map((n, r) => {
|
|
403
|
+
let i = Sn(n.start, t, e), a = Sn(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 ? I.value.style.chart.plots.evaluationColors.positive : ee ? I.value.style.chart.plots.evaluationColors.negative : I.value.style.chart.plots.evaluationColors.neutral;
|
|
403
404
|
return {
|
|
404
405
|
...n,
|
|
405
406
|
isPositive: s,
|
|
406
407
|
isNegative: ee,
|
|
407
408
|
isNeutral: te,
|
|
408
|
-
evaluationColor:
|
|
409
|
-
evaluationGrad: `url(#${s ? "positive" : ee ? "negative" : "neutral"}_grad_${
|
|
409
|
+
evaluationColor: ne,
|
|
410
|
+
evaluationGrad: `url(#${s ? "positive" : ee ? "negative" : "neutral"}_grad_${A.value})`,
|
|
410
411
|
startX: i,
|
|
411
412
|
endX: a,
|
|
412
413
|
centerX: o,
|
|
@@ -415,11 +416,11 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
415
416
|
});
|
|
416
417
|
},
|
|
417
418
|
set(e) {
|
|
418
|
-
|
|
419
|
+
Cn.value = e;
|
|
419
420
|
}
|
|
420
421
|
});
|
|
421
|
-
function
|
|
422
|
-
|
|
422
|
+
function wn() {
|
|
423
|
+
Cn.value = H.value.map((e) => {
|
|
423
424
|
let t = Number(e.start);
|
|
424
425
|
return {
|
|
425
426
|
...e,
|
|
@@ -427,13 +428,13 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
427
428
|
};
|
|
428
429
|
});
|
|
429
430
|
}
|
|
430
|
-
let Y =
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
let Y = C(null);
|
|
432
|
+
je(() => {
|
|
433
|
+
Tn();
|
|
433
434
|
});
|
|
434
|
-
function
|
|
435
|
-
if (Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null),
|
|
436
|
-
J.value =
|
|
435
|
+
function Tn() {
|
|
436
|
+
if (Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null), wn(), !I.value.useAnimation) {
|
|
437
|
+
J.value = Cn.value.map((e) => {
|
|
437
438
|
let t = Number(e.end);
|
|
438
439
|
return {
|
|
439
440
|
...e,
|
|
@@ -447,7 +448,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
447
448
|
return (Number.isFinite(n) ? n : r) - r;
|
|
448
449
|
}), n = () => {
|
|
449
450
|
let r = !0;
|
|
450
|
-
J.value =
|
|
451
|
+
J.value = Cn.value.map((n, i) => {
|
|
451
452
|
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);
|
|
452
453
|
return s !== a && (r = !1), {
|
|
453
454
|
...n,
|
|
@@ -457,26 +458,26 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
457
458
|
};
|
|
458
459
|
Y.value = requestAnimationFrame(n);
|
|
459
460
|
}
|
|
460
|
-
let
|
|
461
|
+
let En = f(() => I.value.style.chart.plots.evaluationColors.enable ? [
|
|
461
462
|
{
|
|
462
463
|
name: I.value.style.chart.legend.labelNegative,
|
|
463
|
-
color: I.value.style.chart.plots.gradient.show ? `url(#negative_grad_${
|
|
464
|
+
color: I.value.style.chart.plots.gradient.show ? `url(#negative_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.negative
|
|
464
465
|
},
|
|
465
466
|
{
|
|
466
467
|
name: I.value.style.chart.legend.labelNeutral,
|
|
467
|
-
color: I.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${
|
|
468
|
+
color: I.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.neutral
|
|
468
469
|
},
|
|
469
470
|
{
|
|
470
471
|
name: I.value.style.chart.legend.labelPositive,
|
|
471
|
-
color: I.value.style.chart.plots.gradient.show ? `url(#positive_grad_${
|
|
472
|
+
color: I.value.style.chart.plots.gradient.show ? `url(#positive_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.positive
|
|
472
473
|
}
|
|
473
474
|
] : [{
|
|
474
475
|
name: I.value.style.chart.legend.labelStart,
|
|
475
|
-
color: I.value.style.chart.plots.gradient.show ? `url(#start_grad_${
|
|
476
|
+
color: I.value.style.chart.plots.gradient.show ? `url(#start_grad_${A.value})` : I.value.style.chart.plots.startColor
|
|
476
477
|
}, {
|
|
477
478
|
name: I.value.style.chart.legend.labelEnd,
|
|
478
|
-
color: I.value.style.chart.plots.gradient.show ? `url(#end_grad_${
|
|
479
|
-
}]),
|
|
479
|
+
color: I.value.style.chart.plots.gradient.show ? `url(#end_grad_${A.value})` : I.value.style.chart.plots.endColor
|
|
480
|
+
}]), Dn = f(() => ({
|
|
480
481
|
cy: "donut-div-legend",
|
|
481
482
|
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
482
483
|
color: I.value.style.chart.legend.color,
|
|
@@ -484,30 +485,30 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
484
485
|
paddingBottom: 12,
|
|
485
486
|
paddingTop: 12,
|
|
486
487
|
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
487
|
-
})), X =
|
|
488
|
+
})), X = f(() => ({
|
|
488
489
|
head: J.value.map((e) => ({ name: e.name })),
|
|
489
490
|
body: J.value.map((e) => ({
|
|
490
491
|
start: e.start,
|
|
491
492
|
end: e.end
|
|
492
493
|
}))
|
|
493
|
-
})), Z =
|
|
494
|
+
})), Z = f(() => {
|
|
494
495
|
let e = [
|
|
495
496
|
I.value.table.columnNames.series,
|
|
496
497
|
I.value.table.columnNames.start,
|
|
497
498
|
I.value.table.columnNames.end,
|
|
498
499
|
I.value.table.columnNames.progression
|
|
499
500
|
], t = X.value.head.map((e, t) => {
|
|
500
|
-
let n =
|
|
501
|
+
let n = i({
|
|
501
502
|
p: I.value.style.chart.labels.prefix,
|
|
502
503
|
v: X.value.body[t].start,
|
|
503
504
|
s: I.value.style.chart.labels.suffix,
|
|
504
505
|
r: I.value.table.td.roundingValue
|
|
505
|
-
}), r =
|
|
506
|
+
}), r = i({
|
|
506
507
|
p: I.value.style.chart.labels.prefix,
|
|
507
508
|
v: X.value.body[t].end,
|
|
508
509
|
s: I.value.style.chart.labels.suffix,
|
|
509
510
|
r: I.value.table.td.roundingValue
|
|
510
|
-
}),
|
|
511
|
+
}), a = i({
|
|
511
512
|
v: 100 * (X.value.body[t].end / X.value.body[t].start - 1),
|
|
512
513
|
s: "%",
|
|
513
514
|
r: I.value.table.td.roundingPercentage
|
|
@@ -516,7 +517,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
516
517
|
{ name: e.name },
|
|
517
518
|
n,
|
|
518
519
|
r,
|
|
519
|
-
|
|
520
|
+
a
|
|
520
521
|
];
|
|
521
522
|
}), n = {
|
|
522
523
|
th: {
|
|
@@ -543,13 +544,13 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
543
544
|
config: n
|
|
544
545
|
};
|
|
545
546
|
});
|
|
546
|
-
function
|
|
547
|
-
|
|
547
|
+
function On(e = null) {
|
|
548
|
+
Oe(() => {
|
|
548
549
|
let t = X.value.head.map((e, t) => [
|
|
549
550
|
[e.name],
|
|
550
551
|
[X.value.body[t].start],
|
|
551
552
|
[X.value.body[t].end]
|
|
552
|
-
]), n =
|
|
553
|
+
]), n = s([
|
|
553
554
|
[I.value.style.chart.title.text],
|
|
554
555
|
[I.value.style.chart.title.subtitle.text],
|
|
555
556
|
[
|
|
@@ -564,24 +565,24 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
564
565
|
});
|
|
565
566
|
});
|
|
566
567
|
}
|
|
567
|
-
let Q =
|
|
568
|
-
function
|
|
569
|
-
Q.value = e,
|
|
568
|
+
let Q = C(!1);
|
|
569
|
+
function kn(e) {
|
|
570
|
+
Q.value = e, It.value += 1;
|
|
570
571
|
}
|
|
571
|
-
function
|
|
572
|
+
function An() {
|
|
572
573
|
return H.value;
|
|
573
574
|
}
|
|
574
|
-
function
|
|
575
|
+
function jn() {
|
|
575
576
|
V.value.showTable = !V.value.showTable;
|
|
576
577
|
}
|
|
577
|
-
let
|
|
578
|
-
function
|
|
579
|
-
|
|
578
|
+
let Mn = C(!1);
|
|
579
|
+
function Nn() {
|
|
580
|
+
Mn.value = !Mn.value;
|
|
580
581
|
}
|
|
581
|
-
async function
|
|
582
|
-
if (!
|
|
583
|
-
let { width: t, height: n } =
|
|
584
|
-
domElement:
|
|
582
|
+
async function Pn({ scale: e = 2 } = {}) {
|
|
583
|
+
if (!j.value) return;
|
|
584
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
585
|
+
domElement: j.value,
|
|
585
586
|
base64: !0,
|
|
586
587
|
img: !0,
|
|
587
588
|
scale: e
|
|
@@ -595,13 +596,13 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
595
596
|
aspectRatio: r
|
|
596
597
|
};
|
|
597
598
|
}
|
|
598
|
-
let
|
|
599
|
+
let Fn = f(() => U.value.ticks);
|
|
599
600
|
pe({
|
|
600
|
-
timeLabelsEls:
|
|
601
|
-
timeLabels:
|
|
602
|
-
slicer:
|
|
601
|
+
timeLabelsEls: Zt,
|
|
602
|
+
timeLabels: Fn,
|
|
603
|
+
slicer: f(() => ({
|
|
603
604
|
start: 0,
|
|
604
|
-
end:
|
|
605
|
+
end: Fn.value.length
|
|
605
606
|
})),
|
|
606
607
|
configRef: I,
|
|
607
608
|
rotationPath: [
|
|
@@ -625,12 +626,12 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
625
626
|
targetClass: ".vue-ui-dumbbell-scale-label",
|
|
626
627
|
rotation: I.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
627
628
|
});
|
|
628
|
-
function
|
|
629
|
+
function In({ rowHeight: e, fontSize: t, showProgression: n }) {
|
|
629
630
|
if (!n) return !1;
|
|
630
631
|
let r = e / 3, i = e / 1.3;
|
|
631
632
|
return Math.abs(i - r) < t * 1.2;
|
|
632
633
|
}
|
|
633
|
-
let
|
|
634
|
+
let Ln = (() => {
|
|
634
635
|
let e = null, t = 0;
|
|
635
636
|
return (n) => {
|
|
636
637
|
if (n === F.value) {
|
|
@@ -639,10 +640,10 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
639
640
|
}
|
|
640
641
|
e === null || e !== n ? (e = n, t = 1) : (t += 1, t >= 1 && (F.value = n, e = null, t = 0));
|
|
641
642
|
};
|
|
642
|
-
})(),
|
|
643
|
+
})(), Rn = _e(() => {
|
|
643
644
|
requestAnimationFrame(() => {
|
|
644
645
|
requestAnimationFrame(() => {
|
|
645
|
-
|
|
646
|
+
Ln(In({
|
|
646
647
|
rowHeight: K.value.rowHeight,
|
|
647
648
|
fontSize: I.value.style.chart.labels.yAxisLabels.fontSize,
|
|
648
649
|
showProgression: I.value.style.chart.labels.yAxisLabels.showProgression
|
|
@@ -650,35 +651,35 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
650
651
|
});
|
|
651
652
|
});
|
|
652
653
|
}, 100);
|
|
653
|
-
function
|
|
654
|
+
function zn({ datapoint: e, seriesIndex: t }) {
|
|
654
655
|
M.value = t, N.value = e, I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
655
656
|
datapoint: e,
|
|
656
657
|
seriesIndex: t
|
|
657
658
|
});
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function Bn({ datapoint: e, seriesIndex: t }) {
|
|
660
661
|
M.value = null, N.value = null, I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
661
662
|
datapoint: e,
|
|
662
663
|
seriesIndex: t
|
|
663
664
|
});
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
+
function Vn({ datapoint: e, seriesIndex: t }) {
|
|
666
667
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
667
668
|
datapoint: e,
|
|
668
669
|
seriesIndex: t
|
|
669
|
-
}),
|
|
670
|
+
}), Pt("selectDatapoint", {
|
|
670
671
|
...e,
|
|
671
672
|
seriesIndex: t
|
|
672
673
|
});
|
|
673
674
|
}
|
|
674
|
-
let
|
|
675
|
+
let Hn = f(() => {
|
|
675
676
|
if (N.value === null) return 0;
|
|
676
677
|
let e = ![null, void 0].includes(N.value.start), t = ![null, void 0].includes(N.value.end);
|
|
677
678
|
return e && t ? Math.min(N.value.startX, N.value.endX) + Math.abs(N.value.startX - N.value.endX) / 2 : e && !t ? N.value.startX : t && !e ? N.value.endX : null;
|
|
678
|
-
}),
|
|
679
|
+
}), Un = f(() => {
|
|
679
680
|
if (N.value === null) return "";
|
|
680
681
|
let e = ![null, void 0].includes(N.value.start), t = ![null, void 0].includes(N.value.end), n = "", r = "";
|
|
681
|
-
return e && (n = c(I.value.style.chart.labels.formatter, N.value.start,
|
|
682
|
+
return e && (n = c(I.value.style.chart.labels.formatter, N.value.start, i({
|
|
682
683
|
p: I.value.style.chart.labels.prefix,
|
|
683
684
|
v: N.value.start,
|
|
684
685
|
s: I.value.style.chart.labels.suffix,
|
|
@@ -686,7 +687,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
686
687
|
}), {
|
|
687
688
|
datapoint: N.value,
|
|
688
689
|
seriesIndex: M.value
|
|
689
|
-
})), t && (r = c(I.value.style.chart.labels.formatter, N.value.end,
|
|
690
|
+
})), t && (r = c(I.value.style.chart.labels.formatter, N.value.end, i({
|
|
690
691
|
p: I.value.style.chart.labels.prefix,
|
|
691
692
|
v: N.value.end,
|
|
692
693
|
s: I.value.style.chart.labels.suffix,
|
|
@@ -695,10 +696,10 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
695
696
|
datapoint: N.value,
|
|
696
697
|
seriesIndex: M.value
|
|
697
698
|
})), e && t ? `${n} → ${r}` : e && !t ? n : t && !e ? r : "";
|
|
698
|
-
}),
|
|
699
|
+
}), Wn = f(() => {
|
|
699
700
|
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
700
701
|
return {
|
|
701
|
-
component: e ?
|
|
702
|
+
component: e ? At : Tt,
|
|
702
703
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
703
704
|
props: e ? {
|
|
704
705
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
@@ -706,7 +707,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
706
707
|
headerColor: I.value.table.th.color,
|
|
707
708
|
headerBg: I.value.table.th.backgroundColor,
|
|
708
709
|
isFullscreen: Q.value,
|
|
709
|
-
fullscreenParent:
|
|
710
|
+
fullscreenParent: j.value,
|
|
710
711
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
711
712
|
isCursorPointer: L.value
|
|
712
713
|
} : {
|
|
@@ -726,51 +727,51 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
726
727
|
}
|
|
727
728
|
};
|
|
728
729
|
});
|
|
729
|
-
|
|
730
|
-
I.value.table.show || (e && I.value.table.useDialog &&
|
|
730
|
+
Ie(() => V.value.showTable, (e) => {
|
|
731
|
+
I.value.table.show || (e && I.value.table.useDialog && Gt.value ? Gt.value.open() : "close" in Gt.value && Gt.value.close());
|
|
731
732
|
});
|
|
732
|
-
function
|
|
733
|
-
V.value.showTable = !1,
|
|
733
|
+
function Gn() {
|
|
734
|
+
V.value.showTable = !1, Kt.value && Kt.value.setTableIconState(!1);
|
|
734
735
|
}
|
|
735
|
-
let
|
|
736
|
+
let Kn = f(() => En.value.map((e) => ({
|
|
736
737
|
...e,
|
|
737
738
|
shape: "circle"
|
|
738
|
-
}))),
|
|
739
|
+
}))), qn = f(() => I.value.style.chart.backgroundColor), Jn = f(() => I.value.style.chart.legend), { exportSvg: Yn, getSvg: Xn } = ue({
|
|
739
740
|
svg: R,
|
|
740
|
-
title:
|
|
741
|
-
legend:
|
|
742
|
-
legendItems:
|
|
743
|
-
backgroundColor:
|
|
741
|
+
title: f(() => I.value.style.chart.title),
|
|
742
|
+
legend: Jn,
|
|
743
|
+
legendItems: Kn,
|
|
744
|
+
backgroundColor: qn
|
|
744
745
|
});
|
|
745
|
-
async function
|
|
746
|
-
|
|
746
|
+
async function Zn({ isCb: e }) {
|
|
747
|
+
Jt.value = !0, await Oe();
|
|
747
748
|
try {
|
|
748
749
|
if (e) {
|
|
749
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
750
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Xn();
|
|
750
751
|
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
751
752
|
blob: e,
|
|
752
753
|
url: t,
|
|
753
754
|
text: n,
|
|
754
755
|
dataUrl: r
|
|
755
756
|
}));
|
|
756
|
-
} else await Promise.resolve(
|
|
757
|
+
} else await Promise.resolve(Yn());
|
|
757
758
|
} finally {
|
|
758
|
-
|
|
759
|
+
Jt.value = !1;
|
|
759
760
|
}
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
+
function Qn(e) {
|
|
762
763
|
if (e?.stage === "start") {
|
|
763
|
-
|
|
764
|
+
qt.value = !0;
|
|
764
765
|
return;
|
|
765
766
|
}
|
|
766
767
|
if (e?.stage === "end") {
|
|
767
|
-
|
|
768
|
+
qt.value = !1;
|
|
768
769
|
return;
|
|
769
770
|
}
|
|
770
|
-
|
|
771
|
+
mn();
|
|
771
772
|
}
|
|
772
|
-
async function
|
|
773
|
-
if (
|
|
773
|
+
async function $n() {
|
|
774
|
+
if (Pt("copyAlt", {
|
|
774
775
|
config: I.value,
|
|
775
776
|
dataset: J.value
|
|
776
777
|
}), !I.value.userOptions.callbacks.altCopy) {
|
|
@@ -782,53 +783,53 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
782
783
|
dataset: J.value
|
|
783
784
|
}));
|
|
784
785
|
}
|
|
785
|
-
function
|
|
786
|
+
function er(e) {
|
|
786
787
|
let t = J.value.length;
|
|
787
788
|
return t ? (e % t + t) % t : null;
|
|
788
789
|
}
|
|
789
|
-
function
|
|
790
|
+
function tr() {
|
|
790
791
|
if (P.value !== null) {
|
|
791
792
|
let e = J.value[P.value];
|
|
792
|
-
e &&
|
|
793
|
+
e && Bn({
|
|
793
794
|
datapoint: e,
|
|
794
795
|
seriesIndex: P.value
|
|
795
796
|
});
|
|
796
797
|
}
|
|
797
798
|
P.value = null, M.value = null, N.value = null;
|
|
798
799
|
}
|
|
799
|
-
function
|
|
800
|
-
P.value = null,
|
|
800
|
+
function nr() {
|
|
801
|
+
P.value = null, $t.value = !0;
|
|
801
802
|
}
|
|
802
|
-
function
|
|
803
|
-
|
|
803
|
+
function rr() {
|
|
804
|
+
tr(), $t.value = !1;
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
-
if (!R.value ||
|
|
806
|
+
function ir(e) {
|
|
807
|
+
if (!R.value || Mn.value || document.activeElement !== R.value || !J.value.length) return;
|
|
807
808
|
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
808
809
|
if (!t && !n && !r && !i) return;
|
|
809
810
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
810
|
-
|
|
811
|
+
tr();
|
|
811
812
|
return;
|
|
812
813
|
}
|
|
813
814
|
if (r) {
|
|
814
815
|
if (P.value === null) return;
|
|
815
816
|
let e = J.value[P.value];
|
|
816
817
|
if (!e) return;
|
|
817
|
-
|
|
818
|
+
Vn({
|
|
818
819
|
datapoint: e,
|
|
819
820
|
seriesIndex: P.value
|
|
820
821
|
});
|
|
821
822
|
return;
|
|
822
823
|
}
|
|
823
824
|
let a = P.value;
|
|
824
|
-
a = a === null ? n ? 0 : J.value.length - 1 :
|
|
825
|
+
a = a === null ? n ? 0 : J.value.length - 1 : er(a + (n ? 1 : -1));
|
|
825
826
|
let o = J.value[a];
|
|
826
|
-
o && (P.value = a,
|
|
827
|
+
o && (P.value = a, zn({
|
|
827
828
|
datapoint: o,
|
|
828
829
|
seriesIndex: a
|
|
829
830
|
}));
|
|
830
831
|
}
|
|
831
|
-
let
|
|
832
|
+
let $ = f(() => ({
|
|
832
833
|
head: Z.value.head,
|
|
833
834
|
body: Z.value.body.map((e) => [
|
|
834
835
|
e[0]?.name ?? "",
|
|
@@ -840,58 +841,58 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
840
841
|
notice: I.value.a11y.translations.tableAvailable
|
|
841
842
|
}));
|
|
842
843
|
return ge({
|
|
843
|
-
getData:
|
|
844
|
-
getImage:
|
|
845
|
-
generatePdf:
|
|
846
|
-
generateCsv:
|
|
847
|
-
generateImage:
|
|
848
|
-
generateSvg:
|
|
849
|
-
toggleTable:
|
|
850
|
-
toggleAnnotator:
|
|
851
|
-
toggleFullscreen:
|
|
852
|
-
copyAlt:
|
|
853
|
-
}), (e, t) => (
|
|
844
|
+
getData: An,
|
|
845
|
+
getImage: Pn,
|
|
846
|
+
generatePdf: pn,
|
|
847
|
+
generateCsv: On,
|
|
848
|
+
generateImage: mn,
|
|
849
|
+
generateSvg: Zn,
|
|
850
|
+
toggleTable: jn,
|
|
851
|
+
toggleAnnotator: Nn,
|
|
852
|
+
toggleFullscreen: kn,
|
|
853
|
+
copyAlt: $n
|
|
854
|
+
}), (e, t) => (S(), h("div", {
|
|
854
855
|
ref_key: "dumbbellChart",
|
|
855
|
-
ref:
|
|
856
|
-
class:
|
|
857
|
-
style:
|
|
858
|
-
id: `dumbbell_${
|
|
859
|
-
onMouseenter: t[1] ||= () =>
|
|
860
|
-
onMouseleave: t[2] ||= () =>
|
|
856
|
+
ref: j,
|
|
857
|
+
class: ke(`vue-data-ui-component vue-ui-dumbbell ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
858
|
+
style: x(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
859
|
+
id: `dumbbell_${A.value}`,
|
|
860
|
+
onMouseenter: t[1] ||= () => D(on)(!0),
|
|
861
|
+
onMouseleave: t[2] ||= () => D(on)(!1)
|
|
861
862
|
}, [
|
|
862
|
-
|
|
863
|
-
id: `chart-instructions-${
|
|
863
|
+
g("div", {
|
|
864
|
+
id: `chart-instructions-${A.value}`,
|
|
864
865
|
class: "sr-only"
|
|
865
|
-
}, [
|
|
866
|
-
|
|
866
|
+
}, [g("p", null, E(I.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
|
|
867
|
+
$.value.body.length ? (S(), p(ye, {
|
|
867
868
|
key: 0,
|
|
868
|
-
uid:
|
|
869
|
-
head:
|
|
870
|
-
body:
|
|
871
|
-
caption:
|
|
872
|
-
notice:
|
|
869
|
+
uid: A.value,
|
|
870
|
+
head: $.value.head,
|
|
871
|
+
body: $.value.body,
|
|
872
|
+
caption: $.value.caption,
|
|
873
|
+
notice: $.value.notice
|
|
873
874
|
}, null, 8, [
|
|
874
875
|
"uid",
|
|
875
876
|
"head",
|
|
876
877
|
"body",
|
|
877
878
|
"caption",
|
|
878
879
|
"notice"
|
|
879
|
-
])) :
|
|
880
|
-
I.value.userOptions.buttons.annotator ? (
|
|
880
|
+
])) : m("", !0),
|
|
881
|
+
I.value.userOptions.buttons.annotator ? (S(), p(D(Dt), {
|
|
881
882
|
key: 1,
|
|
882
|
-
svgRef:
|
|
883
|
+
svgRef: D(R),
|
|
883
884
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
884
885
|
color: I.value.style.chart.color,
|
|
885
|
-
active:
|
|
886
|
+
active: Mn.value,
|
|
886
887
|
isCursorPointer: L.value,
|
|
887
|
-
onClose:
|
|
888
|
+
onClose: Nn
|
|
888
889
|
}, {
|
|
889
|
-
"annotator-action-close":
|
|
890
|
-
"annotator-action-color":
|
|
891
|
-
"annotator-action-draw":
|
|
892
|
-
"annotator-action-undo":
|
|
893
|
-
"annotator-action-redo":
|
|
894
|
-
"annotator-action-delete":
|
|
890
|
+
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
891
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
892
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
893
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
894
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
895
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
895
896
|
_: 3
|
|
896
897
|
}, 8, [
|
|
897
898
|
"svgRef",
|
|
@@ -899,21 +900,21 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
899
900
|
"color",
|
|
900
901
|
"active",
|
|
901
902
|
"isCursorPointer"
|
|
902
|
-
])) :
|
|
903
|
-
|
|
903
|
+
])) : m("", !0),
|
|
904
|
+
hn.value ? (S(), h("div", {
|
|
904
905
|
key: 2,
|
|
905
906
|
ref_key: "noTitle",
|
|
906
|
-
ref:
|
|
907
|
+
ref: Bt,
|
|
907
908
|
class: "vue-data-ui-no-title-space",
|
|
908
909
|
style: "height:36px; width: 100%;background:transparent"
|
|
909
|
-
}, null, 512)) :
|
|
910
|
-
I.value.style.chart.title.text ? (
|
|
910
|
+
}, null, 512)) : m("", !0),
|
|
911
|
+
I.value.style.chart.title.text ? (S(), h("div", {
|
|
911
912
|
key: 3,
|
|
912
913
|
ref_key: "chartTitle",
|
|
913
|
-
ref:
|
|
914
|
+
ref: Lt,
|
|
914
915
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
915
|
-
}, [(
|
|
916
|
-
key: `title_${
|
|
916
|
+
}, [(S(), p(he, {
|
|
917
|
+
key: `title_${Vt.value}`,
|
|
917
918
|
config: {
|
|
918
919
|
title: {
|
|
919
920
|
cy: "donut-div-title",
|
|
@@ -924,17 +925,17 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
924
925
|
...I.value.style.chart.title.subtitle
|
|
925
926
|
}
|
|
926
927
|
}
|
|
927
|
-
}, null, 8, ["config"]))], 512)) :
|
|
928
|
-
|
|
929
|
-
I.value.userOptions.show &&
|
|
928
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
929
|
+
g("div", { id: `legend-top-${A.value}` }, null, 8, He),
|
|
930
|
+
I.value.userOptions.show && Ft.value && (D(sn) || D(an)) ? (S(), p(D(Ot), {
|
|
930
931
|
ref_key: "userOptionsRef",
|
|
931
|
-
ref:
|
|
932
|
-
key: `user_option_${
|
|
932
|
+
ref: Kt,
|
|
933
|
+
key: `user_option_${It.value}`,
|
|
933
934
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
934
935
|
color: I.value.style.chart.color,
|
|
935
|
-
isPrinting:
|
|
936
|
-
isImaging:
|
|
937
|
-
uid:
|
|
936
|
+
isPrinting: D(dn),
|
|
937
|
+
isImaging: D(fn),
|
|
938
|
+
uid: A.value,
|
|
938
939
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
939
940
|
hasXls: I.value.userOptions.buttons.csv,
|
|
940
941
|
hasImg: I.value.userOptions.buttons.img,
|
|
@@ -944,27 +945,27 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
944
945
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
945
946
|
isFullscreen: Q.value,
|
|
946
947
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
947
|
-
chartElement:
|
|
948
|
+
chartElement: j.value,
|
|
948
949
|
position: I.value.userOptions.position,
|
|
949
950
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
950
|
-
isAnnotation:
|
|
951
|
+
isAnnotation: Mn.value,
|
|
951
952
|
callbacks: I.value.userOptions.callbacks,
|
|
952
953
|
printScale: I.value.userOptions.print.scale,
|
|
953
954
|
tableDialog: I.value.table.useDialog,
|
|
954
955
|
isCursorPointer: L.value,
|
|
955
|
-
onToggleFullscreen:
|
|
956
|
-
onGeneratePdf:
|
|
957
|
-
onGenerateCsv:
|
|
958
|
-
onGenerateImage:
|
|
959
|
-
onGenerateSvg:
|
|
960
|
-
onToggleTable:
|
|
961
|
-
onToggleAnnotator:
|
|
962
|
-
onCopyAlt:
|
|
963
|
-
style:
|
|
956
|
+
onToggleFullscreen: kn,
|
|
957
|
+
onGeneratePdf: D(pn),
|
|
958
|
+
onGenerateCsv: On,
|
|
959
|
+
onGenerateImage: Qn,
|
|
960
|
+
onGenerateSvg: Zn,
|
|
961
|
+
onToggleTable: jn,
|
|
962
|
+
onToggleAnnotator: Nn,
|
|
963
|
+
onCopyAlt: $n,
|
|
964
|
+
style: x({ visibility: D(sn) ? D(an) ? "visible" : "hidden" : "visible" })
|
|
964
965
|
}, Te({ _: 2 }, [
|
|
965
966
|
e.$slots.menuIcon ? {
|
|
966
967
|
name: "menuIcon",
|
|
967
|
-
fn:
|
|
968
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(y({
|
|
968
969
|
isOpen: t,
|
|
969
970
|
color: n
|
|
970
971
|
})), void 0, !0)]),
|
|
@@ -972,32 +973,32 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
972
973
|
} : void 0,
|
|
973
974
|
e.$slots.optionPdf ? {
|
|
974
975
|
name: "optionPdf",
|
|
975
|
-
fn:
|
|
976
|
+
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
976
977
|
key: "1"
|
|
977
978
|
} : void 0,
|
|
978
979
|
e.$slots.optionCsv ? {
|
|
979
980
|
name: "optionCsv",
|
|
980
|
-
fn:
|
|
981
|
+
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
981
982
|
key: "2"
|
|
982
983
|
} : void 0,
|
|
983
984
|
e.$slots.optionImg ? {
|
|
984
985
|
name: "optionImg",
|
|
985
|
-
fn:
|
|
986
|
+
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
986
987
|
key: "3"
|
|
987
988
|
} : void 0,
|
|
988
989
|
e.$slots.optionSvg ? {
|
|
989
990
|
name: "optionSvg",
|
|
990
|
-
fn:
|
|
991
|
+
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
991
992
|
key: "4"
|
|
992
993
|
} : void 0,
|
|
993
994
|
e.$slots.optionTable ? {
|
|
994
995
|
name: "optionTable",
|
|
995
|
-
fn:
|
|
996
|
+
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
996
997
|
key: "5"
|
|
997
998
|
} : void 0,
|
|
998
999
|
e.$slots.optionFullscreen ? {
|
|
999
1000
|
name: "optionFullscreen",
|
|
1000
|
-
fn:
|
|
1001
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(y({
|
|
1001
1002
|
toggleFullscreen: t,
|
|
1002
1003
|
isFullscreen: n
|
|
1003
1004
|
})), void 0, !0)]),
|
|
@@ -1005,7 +1006,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1005
1006
|
} : void 0,
|
|
1006
1007
|
e.$slots.optionAnnotator ? {
|
|
1007
1008
|
name: "optionAnnotator",
|
|
1008
|
-
fn:
|
|
1009
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(y({
|
|
1009
1010
|
toggleAnnotator: t,
|
|
1010
1011
|
isAnnotator: n
|
|
1011
1012
|
})), void 0, !0)]),
|
|
@@ -1013,17 +1014,17 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1013
1014
|
} : void 0,
|
|
1014
1015
|
e.$slots.optionAltCopy ? {
|
|
1015
1016
|
name: "optionAltCopy",
|
|
1016
|
-
fn:
|
|
1017
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1017
1018
|
key: "8"
|
|
1018
1019
|
} : void 0,
|
|
1019
1020
|
e.$slots["custom-menu-before"] ? {
|
|
1020
1021
|
name: "custom-menu-before",
|
|
1021
|
-
fn:
|
|
1022
|
+
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1022
1023
|
key: "9"
|
|
1023
1024
|
} : void 0,
|
|
1024
1025
|
e.$slots["custom-menu-after"] ? {
|
|
1025
1026
|
name: "custom-menu-after",
|
|
1026
|
-
fn:
|
|
1027
|
+
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1027
1028
|
key: "10"
|
|
1028
1029
|
} : void 0
|
|
1029
1030
|
]), 1032, [
|
|
@@ -1051,33 +1052,33 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1051
1052
|
"isCursorPointer",
|
|
1052
1053
|
"onGeneratePdf",
|
|
1053
1054
|
"style"
|
|
1054
|
-
])) :
|
|
1055
|
-
|
|
1055
|
+
])) : m("", !0),
|
|
1056
|
+
g("div", Ue, [(S(), h("svg", {
|
|
1056
1057
|
ref_key: "svgRef",
|
|
1057
1058
|
ref: R,
|
|
1058
|
-
xmlns:
|
|
1059
|
-
class:
|
|
1059
|
+
xmlns: D(ie),
|
|
1060
|
+
class: ke({
|
|
1060
1061
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1061
1062
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1062
1063
|
}),
|
|
1063
1064
|
viewBox: `0 0 ${G.value} ${K.value.absoluteHeight <= 0 ? 10 : K.value.absoluteHeight}`,
|
|
1064
|
-
style:
|
|
1065
|
-
"aria-describedby": `chart-instructions-${
|
|
1065
|
+
style: x(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
|
|
1066
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1066
1067
|
tabindex: "0",
|
|
1067
|
-
onFocus:
|
|
1068
|
-
onBlur:
|
|
1069
|
-
onKeydown:
|
|
1068
|
+
onFocus: nr,
|
|
1069
|
+
onBlur: rr,
|
|
1070
|
+
onKeydown: ir
|
|
1070
1071
|
}, [
|
|
1071
|
-
|
|
1072
|
-
e.$slots["chart-background"] ? (
|
|
1072
|
+
_(D(kt)),
|
|
1073
|
+
e.$slots["chart-background"] ? (S(), h("foreignObject", {
|
|
1073
1074
|
key: 0,
|
|
1074
1075
|
x: K.value.left,
|
|
1075
1076
|
y: K.value.top,
|
|
1076
1077
|
width: Math.max(.1, K.value.width),
|
|
1077
1078
|
height: Math.max(.1, K.value.height),
|
|
1078
1079
|
style: { pointerEvents: "none" }
|
|
1079
|
-
}, [
|
|
1080
|
-
I.value.style.chart.grid.verticalGrid.show ? (
|
|
1080
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
|
|
1081
|
+
I.value.style.chart.grid.verticalGrid.show ? (S(), h("g", Ke, [(S(!0), h(d, null, w(U.value.ticks, (e, t) => (S(), h("line", {
|
|
1081
1082
|
x1: K.value.left + t * K.value.width / (U.value.ticks.length - 1),
|
|
1082
1083
|
x2: K.value.left + t * K.value.width / (U.value.ticks.length - 1),
|
|
1083
1084
|
y1: K.value.top,
|
|
@@ -1085,8 +1086,8 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1085
1086
|
stroke: I.value.style.chart.grid.verticalGrid.stroke,
|
|
1086
1087
|
"stroke-width": I.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
1087
1088
|
"stroke-dasharray": I.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
1088
|
-
}, null, 8, qe))), 256))])) :
|
|
1089
|
-
I.value.style.chart.grid.horizontalGrid.show ? (
|
|
1089
|
+
}, null, 8, qe))), 256))])) : m("", !0),
|
|
1090
|
+
I.value.style.chart.grid.horizontalGrid.show ? (S(), h("g", Je, [(S(!0), h(d, null, w(H.value, (e, t) => (S(), h("line", {
|
|
1090
1091
|
x1: K.value.left,
|
|
1091
1092
|
x2: K.value.right,
|
|
1092
1093
|
y1: K.value.top + t * K.value.rowHeight,
|
|
@@ -1094,7 +1095,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1094
1095
|
stroke: I.value.style.chart.grid.horizontalGrid.stroke,
|
|
1095
1096
|
"stroke-width": I.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1096
1097
|
"stroke-dasharray": I.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
1097
|
-
}, null, 8, Ye))), 256)),
|
|
1098
|
+
}, null, 8, Ye))), 256)), g("line", {
|
|
1098
1099
|
x1: K.value.left,
|
|
1099
1100
|
x2: K.value.right,
|
|
1100
1101
|
y1: K.value.bottom,
|
|
@@ -1102,21 +1103,21 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1102
1103
|
stroke: I.value.style.chart.grid.horizontalGrid.stroke,
|
|
1103
1104
|
"stroke-width": I.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1104
1105
|
"stroke-dasharray": I.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
1105
|
-
}, null, 8, Xe)])) :
|
|
1106
|
-
I.value.style.chart.labels.axis.yLabel ? (
|
|
1106
|
+
}, null, 8, Xe)])) : m("", !0),
|
|
1107
|
+
I.value.style.chart.labels.axis.yLabel ? (S(), h("text", {
|
|
1107
1108
|
key: 3,
|
|
1108
1109
|
ref_key: "yAxisLabel",
|
|
1109
|
-
ref:
|
|
1110
|
+
ref: Yt,
|
|
1110
1111
|
transform: `translate(${I.value.style.chart.labels.axis.fontSize}, ${K.value.absoluteHeight / 2}), rotate(-90)`,
|
|
1111
1112
|
"font-size": I.value.style.chart.labels.axis.fontSize,
|
|
1112
1113
|
fill: I.value.style.chart.labels.axis.color,
|
|
1113
1114
|
"text-anchor": "middle"
|
|
1114
|
-
},
|
|
1115
|
-
I.value.style.chart.labels.yAxisLabels.show ? (
|
|
1115
|
+
}, E(I.value.style.chart.labels.axis.yLabel), 9, Ze)) : m("", !0),
|
|
1116
|
+
I.value.style.chart.labels.yAxisLabels.show ? (S(), h("g", {
|
|
1116
1117
|
key: 4,
|
|
1117
1118
|
ref_key: "serieLabels",
|
|
1118
|
-
ref:
|
|
1119
|
-
}, [(
|
|
1119
|
+
ref: Xt
|
|
1120
|
+
}, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("text", {
|
|
1120
1121
|
class: "vue-ui-dumbbell-serie-name",
|
|
1121
1122
|
key: `serieLabel_${e.id}_${t}`,
|
|
1122
1123
|
x: K.value.left - 6 + I.value.style.chart.labels.yAxisLabels.offsetX,
|
|
@@ -1125,61 +1126,61 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1125
1126
|
fill: I.value.style.chart.labels.yAxisLabels.color,
|
|
1126
1127
|
"font-weight": I.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
1127
1128
|
"text-anchor": "end",
|
|
1128
|
-
onMouseenter: (n) =>
|
|
1129
|
+
onMouseenter: (n) => zn({
|
|
1129
1130
|
datapoint: e,
|
|
1130
1131
|
seriesIndex: t
|
|
1131
1132
|
}),
|
|
1132
|
-
onMouseleave: (n) =>
|
|
1133
|
+
onMouseleave: (n) => Bn({
|
|
1133
1134
|
datapoint: e,
|
|
1134
1135
|
seriesIndex: t
|
|
1135
1136
|
}),
|
|
1136
|
-
onClick: (n) =>
|
|
1137
|
+
onClick: (n) => Vn({
|
|
1137
1138
|
datapoint: e,
|
|
1138
1139
|
seriesIndex: t
|
|
1139
1140
|
})
|
|
1140
|
-
},
|
|
1141
|
+
}, E(e.name) + " " + E(F.value && I.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : `(${D(c)(I.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), D(i)({
|
|
1141
1142
|
v: 100 * (e.end / e.start - 1),
|
|
1142
1143
|
s: "%",
|
|
1143
1144
|
r: I.value.style.chart.labels.yAxisLabels.rounding
|
|
1144
|
-
}), { datapoint: e })})` : ""), 41, Qe))), 128)), I.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (
|
|
1145
|
+
}), { datapoint: e })})` : ""), 41, Qe))), 128)), I.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (S(!0), h(d, { key: 0 }, w(J.value, (e, t) => (S(), h("text", {
|
|
1145
1146
|
class: "vue-ui-dumbbell-serie-value",
|
|
1146
1147
|
x: K.value.left - 6 + I.value.style.chart.labels.yAxisLabels.offsetX,
|
|
1147
1148
|
y: K.value.top + t * K.value.rowHeight + K.value.rowHeight / 1.3 + I.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1148
1149
|
"font-size": I.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1149
1150
|
fill: I.value.style.chart.labels.yAxisLabels.color,
|
|
1150
1151
|
"text-anchor": "end",
|
|
1151
|
-
onMouseenter: (n) =>
|
|
1152
|
+
onMouseenter: (n) => zn({
|
|
1152
1153
|
datapoint: e,
|
|
1153
1154
|
seriesIndex: t
|
|
1154
1155
|
}),
|
|
1155
|
-
onMouseleave: (n) =>
|
|
1156
|
+
onMouseleave: (n) => Bn({
|
|
1156
1157
|
datapoint: e,
|
|
1157
1158
|
seriesIndex: t
|
|
1158
1159
|
}),
|
|
1159
|
-
onClick: (n) =>
|
|
1160
|
+
onClick: (n) => Vn({
|
|
1160
1161
|
datapoint: e,
|
|
1161
1162
|
seriesIndex: t
|
|
1162
1163
|
})
|
|
1163
|
-
},
|
|
1164
|
+
}, E([null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : D(c)(I.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), D(i)({
|
|
1164
1165
|
v: 100 * (e.end / e.start - 1),
|
|
1165
1166
|
s: "%",
|
|
1166
1167
|
r: I.value.style.chart.labels.yAxisLabels.rounding
|
|
1167
|
-
}), { datapoint: e })), 41, $e))), 256)) :
|
|
1168
|
-
I.value.style.chart.labels.axis.xLabel ? (
|
|
1168
|
+
}), { datapoint: e })), 41, $e))), 256)) : m("", !0)], 512)) : m("", !0),
|
|
1169
|
+
I.value.style.chart.labels.axis.xLabel ? (S(), h("text", {
|
|
1169
1170
|
key: 5,
|
|
1170
1171
|
ref_key: "xAxisLabel",
|
|
1171
|
-
ref:
|
|
1172
|
+
ref: Qt,
|
|
1172
1173
|
x: K.value.left + K.value.width / 2,
|
|
1173
1174
|
y: K.value.absoluteHeight - I.value.style.chart.labels.axis.fontSize / 3,
|
|
1174
1175
|
"font-size": I.value.style.chart.labels.axis.fontSize,
|
|
1175
1176
|
fill: I.value.style.chart.labels.axis.color,
|
|
1176
1177
|
"text-anchor": "middle"
|
|
1177
|
-
},
|
|
1178
|
-
I.value.style.chart.labels.xAxisLabels.show ? (
|
|
1178
|
+
}, E(I.value.style.chart.labels.axis.xLabel), 9, et)) : m("", !0),
|
|
1179
|
+
I.value.style.chart.labels.xAxisLabels.show ? (S(), h("g", {
|
|
1179
1180
|
key: 6,
|
|
1180
1181
|
ref_key: "scaleLabels",
|
|
1181
|
-
ref:
|
|
1182
|
-
}, [(
|
|
1182
|
+
ref: Zt
|
|
1183
|
+
}, [(S(!0), h(d, null, w(U.value.ticks, (e, t) => (S(), h("text", {
|
|
1183
1184
|
class: "vue-ui-dumbbell-scale-label",
|
|
1184
1185
|
key: `tick_${t}`,
|
|
1185
1186
|
transform: `translate(${K.value.left + t * (K.value.width / (U.value.ticks.length - 1))}, ${K.value.bottom + I.value.style.chart.labels.xAxisLabels.fontSize + I.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${I.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
@@ -1187,7 +1188,7 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1187
1188
|
fill: I.value.style.chart.labels.xAxisLabels.color,
|
|
1188
1189
|
"font-weight": I.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
1189
1190
|
"text-anchor": I.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : I.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
1190
|
-
},
|
|
1191
|
+
}, E(D(c)(I.value.style.chart.labels.formatter, e, D(i)({
|
|
1191
1192
|
p: I.value.style.chart.labels.prefix,
|
|
1192
1193
|
v: e,
|
|
1193
1194
|
s: I.value.style.chart.labels.suffix,
|
|
@@ -1195,152 +1196,185 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1195
1196
|
}), {
|
|
1196
1197
|
datapoint: e,
|
|
1197
1198
|
seriesIndex: t
|
|
1198
|
-
})), 9, tt))), 128))], 512)) :
|
|
1199
|
-
|
|
1200
|
-
|
|
1199
|
+
})), 9, tt))), 128))], 512)) : m("", !0),
|
|
1200
|
+
Re(g("g", null, [
|
|
1201
|
+
Re(g("path", {
|
|
1201
1202
|
d: `M ${N.value ? N.value.startX : K.value.left},${K.value.top} ${N.value ? N.value.startX : K.value.left},${K.value.bottom}`,
|
|
1202
1203
|
stroke: N.value ? I.value.style.chart.plots.evaluationColors.enable ? N.value.evaluationColor : I.value.style.chart.plots.startColor : "transparent",
|
|
1203
1204
|
"stroke-width": I.value.style.chart.comparisonLines.strokeWidth,
|
|
1204
1205
|
"stroke-dasharray": I.value.style.chart.comparisonLines.strokeDasharray,
|
|
1205
1206
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1206
|
-
}, null, 8, nt), [[
|
|
1207
|
-
|
|
1207
|
+
}, null, 8, nt), [[Fe, N.value !== null && ![null, void 0].includes(N.value.start)]]),
|
|
1208
|
+
Re(g("path", {
|
|
1208
1209
|
d: `M ${N.value ? N.value.endX : K.value.left},${K.value.top} ${N.value ? N.value.endX : K.value.left},${K.value.bottom}`,
|
|
1209
1210
|
stroke: N.value ? I.value.style.chart.plots.evaluationColors.enable ? N.value.evaluationColor : I.value.style.chart.plots.endColor : "transparent",
|
|
1210
1211
|
"stroke-width": I.value.style.chart.comparisonLines.strokeWidth,
|
|
1211
1212
|
"stroke-dasharray": I.value.style.chart.comparisonLines.strokeDasharray,
|
|
1212
1213
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1213
|
-
}, null, 8, rt), [[
|
|
1214
|
-
|
|
1214
|
+
}, null, 8, rt), [[Fe, N.value !== null && ![null, void 0].includes(N.value.end)]]),
|
|
1215
|
+
Re(g("rect", {
|
|
1215
1216
|
x: N.value ? Math.min(N.value.startX, N.value.endX) : K.value.left,
|
|
1216
1217
|
y: K.value.top,
|
|
1217
1218
|
height: Math.max(.1, K.value.height),
|
|
1218
1219
|
width: N.value ? Math.max(.1, Math.abs(N.value.endX - N.value.startX)) : 0,
|
|
1219
|
-
fill: N.value ?
|
|
1220
|
+
fill: N.value ? D(o)(I.value.style.chart.comparisonLines.rectColor, I.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
1220
1221
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1221
|
-
}, null, 8, it), [[
|
|
1222
|
-
|
|
1223
|
-
transform: `translate(${
|
|
1222
|
+
}, null, 8, it), [[Fe, I.value.style.chart.comparisonLines.showRect && N.value !== null && ![null, void 0].includes(N.value.start) && ![null, void 0].includes(N.value.end)]]),
|
|
1223
|
+
Re(g("text", {
|
|
1224
|
+
transform: `translate(${Hn.value == null ? 0 : Hn.value}, ${K.value.top - 6})`,
|
|
1224
1225
|
fill: I.value.style.chart.comparisonLines.labelColor,
|
|
1225
1226
|
"font-size": I.value.style.chart.comparisonLines.labelFontSize,
|
|
1226
1227
|
"text-anchor": "middle",
|
|
1227
1228
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1228
|
-
},
|
|
1229
|
-
], 512), [[
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1229
|
+
}, E(Un.value), 9, at), [[Fe, N.value !== null && Hn.value !== null && I.value.style.chart.comparisonLines.showLabel]])
|
|
1230
|
+
], 512), [[Fe, I.value.style.chart.comparisonLines.show && M.value !== null]]),
|
|
1231
|
+
g("defs", null, [
|
|
1232
|
+
_(u, {
|
|
1233
|
+
t: "radial",
|
|
1234
|
+
id: `start_grad_${A.value}`,
|
|
1235
|
+
fy: "30%",
|
|
1236
|
+
stops: [
|
|
1237
|
+
[
|
|
1238
|
+
"10%",
|
|
1239
|
+
D(n)(I.value.style.chart.plots.startColor, I.value.style.chart.plots.gradient.intensity / 100),
|
|
1240
|
+
1
|
|
1241
|
+
],
|
|
1242
|
+
[
|
|
1243
|
+
"90%",
|
|
1244
|
+
D(l)(I.value.style.chart.plots.startColor, .1),
|
|
1245
|
+
1
|
|
1246
|
+
],
|
|
1247
|
+
[
|
|
1248
|
+
"100%",
|
|
1249
|
+
I.value.style.chart.plots.startColor,
|
|
1250
|
+
1
|
|
1251
|
+
]
|
|
1252
|
+
]
|
|
1253
|
+
}, null, 8, ["id", "stops"]),
|
|
1254
|
+
_(u, {
|
|
1255
|
+
t: "radial",
|
|
1256
|
+
id: `end_grad_${A.value}`,
|
|
1257
|
+
fy: "30%",
|
|
1258
|
+
stops: [
|
|
1259
|
+
[
|
|
1260
|
+
"10%",
|
|
1261
|
+
D(n)(I.value.style.chart.plots.endColor, I.value.style.chart.plots.gradient.intensity / 100),
|
|
1262
|
+
1
|
|
1263
|
+
],
|
|
1264
|
+
[
|
|
1265
|
+
"90%",
|
|
1266
|
+
D(l)(I.value.style.chart.plots.endColor, .1),
|
|
1267
|
+
1
|
|
1268
|
+
],
|
|
1269
|
+
[
|
|
1270
|
+
"100%",
|
|
1271
|
+
I.value.style.chart.plots.endColor,
|
|
1272
|
+
1
|
|
1273
|
+
]
|
|
1274
|
+
]
|
|
1275
|
+
}, null, 8, ["id", "stops"]),
|
|
1276
|
+
_(u, {
|
|
1277
|
+
t: "radial",
|
|
1278
|
+
id: `positive_grad_${A.value}`,
|
|
1279
|
+
fy: "30%",
|
|
1280
|
+
stops: [
|
|
1281
|
+
[
|
|
1282
|
+
"10%",
|
|
1283
|
+
D(n)(I.value.style.chart.plots.evaluationColors.positive, I.value.style.chart.plots.gradient.intensity / 100),
|
|
1284
|
+
1
|
|
1285
|
+
],
|
|
1286
|
+
[
|
|
1287
|
+
"90%",
|
|
1288
|
+
D(l)(I.value.style.chart.plots.evaluationColors.positive, .1),
|
|
1289
|
+
1
|
|
1290
|
+
],
|
|
1291
|
+
[
|
|
1292
|
+
"100%",
|
|
1293
|
+
I.value.style.chart.plots.evaluationColors.positive,
|
|
1294
|
+
1
|
|
1295
|
+
]
|
|
1296
|
+
]
|
|
1297
|
+
}, null, 8, ["id", "stops"]),
|
|
1298
|
+
_(u, {
|
|
1299
|
+
t: "radial",
|
|
1300
|
+
id: `negative_grad_${A.value}`,
|
|
1301
|
+
fy: "30%",
|
|
1302
|
+
stops: [
|
|
1303
|
+
[
|
|
1304
|
+
"10%",
|
|
1305
|
+
D(n)(I.value.style.chart.plots.evaluationColors.negative, I.value.style.chart.plots.gradient.intensity / 100),
|
|
1306
|
+
1
|
|
1307
|
+
],
|
|
1308
|
+
[
|
|
1309
|
+
"90%",
|
|
1310
|
+
D(l)(I.value.style.chart.plots.evaluationColors.negative, .1),
|
|
1311
|
+
1
|
|
1312
|
+
],
|
|
1313
|
+
[
|
|
1314
|
+
"100%",
|
|
1315
|
+
I.value.style.chart.plots.evaluationColors.negative,
|
|
1316
|
+
1
|
|
1317
|
+
]
|
|
1318
|
+
]
|
|
1319
|
+
}, null, 8, ["id", "stops"]),
|
|
1320
|
+
_(u, {
|
|
1321
|
+
t: "radial",
|
|
1322
|
+
id: `neutral_grad_${A.value}`,
|
|
1323
|
+
fy: "30%",
|
|
1324
|
+
stops: [
|
|
1325
|
+
[
|
|
1326
|
+
"10%",
|
|
1327
|
+
D(n)(I.value.style.chart.plots.evaluationColors.neutral, I.value.style.chart.plots.gradient.intensity / 100),
|
|
1328
|
+
1
|
|
1329
|
+
],
|
|
1330
|
+
[
|
|
1331
|
+
"90%",
|
|
1332
|
+
D(l)(I.value.style.chart.plots.evaluationColors.neutral, .1),
|
|
1333
|
+
1
|
|
1334
|
+
],
|
|
1335
|
+
[
|
|
1336
|
+
"100%",
|
|
1337
|
+
I.value.style.chart.plots.evaluationColors.neutral,
|
|
1338
|
+
1
|
|
1339
|
+
]
|
|
1340
|
+
]
|
|
1341
|
+
}, null, 8, ["id", "stops"])
|
|
1316
1342
|
]),
|
|
1317
|
-
(
|
|
1318
|
-
|
|
1319
|
-
|
|
1343
|
+
(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", { key: `plot_${t}_${e.id}` }, [
|
|
1344
|
+
g("defs", null, [_(u, {
|
|
1345
|
+
t: "linear",
|
|
1346
|
+
id: `grad_pos_${A.value}`,
|
|
1320
1347
|
x1: "0%",
|
|
1321
1348
|
x2: "100%",
|
|
1322
1349
|
y1: "0%",
|
|
1323
|
-
y2: "0%"
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1350
|
+
y2: "0%",
|
|
1351
|
+
stops: [[
|
|
1352
|
+
"0%",
|
|
1353
|
+
I.value.style.chart.plots.startColor,
|
|
1354
|
+
1
|
|
1355
|
+
], [
|
|
1356
|
+
"100%",
|
|
1357
|
+
I.value.style.chart.plots.endColor,
|
|
1358
|
+
1
|
|
1359
|
+
]]
|
|
1360
|
+
}, null, 8, ["id", "stops"]), _(u, {
|
|
1361
|
+
t: "linear",
|
|
1362
|
+
id: `grad_neg_${A.value}`,
|
|
1332
1363
|
x1: "0%",
|
|
1333
1364
|
x2: "100%",
|
|
1334
1365
|
y1: "0%",
|
|
1335
|
-
y2: "0%"
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1366
|
+
y2: "0%",
|
|
1367
|
+
stops: [[
|
|
1368
|
+
"0%",
|
|
1369
|
+
I.value.style.chart.plots.endColor,
|
|
1370
|
+
1
|
|
1371
|
+
], [
|
|
1372
|
+
"100%",
|
|
1373
|
+
I.value.style.chart.plots.startColor,
|
|
1374
|
+
1
|
|
1375
|
+
]]
|
|
1376
|
+
}, null, 8, ["id", "stops"])]),
|
|
1377
|
+
![void 0, null].includes(e.end) && ![void 0, null].includes(e.start) ? (S(), h("g", ot, [I.value.style.chart.plots.link.type === "curved" ? (S(), h("g", st, [g("path", {
|
|
1344
1378
|
d: `M
|
|
1345
1379
|
${e.startX},${e.y + q.value / 2}
|
|
1346
1380
|
C ${e.centerX},${e.y} ${e.centerX},${e.y}
|
|
@@ -1350,41 +1384,41 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1350
1384
|
${e.startX},${e.y - q.value / 2}
|
|
1351
1385
|
Z
|
|
1352
1386
|
`,
|
|
1353
|
-
fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${
|
|
1354
|
-
}, null, 8,
|
|
1387
|
+
fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
|
|
1388
|
+
}, null, 8, ct)])) : (S(), h("g", lt, [g("rect", {
|
|
1355
1389
|
x: e.endX > e.startX ? e.startX : e.endX,
|
|
1356
1390
|
y: e.y - I.value.style.chart.plots.link.strokeWidth / 2,
|
|
1357
1391
|
height: Math.max(.01, I.value.style.chart.plots.link.strokeWidth),
|
|
1358
1392
|
width: Math.max(.01, Math.abs(e.endX - e.startX)),
|
|
1359
|
-
fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${
|
|
1360
|
-
}, null, 8,
|
|
1361
|
-
[null, void 0].includes(e.start) ?
|
|
1393
|
+
fill: I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${A.value})` : `url(#grad_neg_${A.value})`
|
|
1394
|
+
}, null, 8, ut)]))])) : m("", !0),
|
|
1395
|
+
[null, void 0].includes(e.start) ? m("", !0) : (S(), h("circle", {
|
|
1362
1396
|
key: 1,
|
|
1363
1397
|
cx: e.startX,
|
|
1364
1398
|
cy: e.y,
|
|
1365
1399
|
r: q.value,
|
|
1366
|
-
fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#start_grad_${
|
|
1400
|
+
fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#start_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : I.value.style.chart.plots.startColor,
|
|
1367
1401
|
stroke: I.value.style.chart.plots.stroke,
|
|
1368
1402
|
"stroke-width": I.value.style.chart.plots.strokeWidth
|
|
1369
|
-
}, null, 8,
|
|
1370
|
-
[null, void 0].includes(e.end) ?
|
|
1403
|
+
}, null, 8, dt)),
|
|
1404
|
+
[null, void 0].includes(e.end) ? m("", !0) : (S(), h("circle", {
|
|
1371
1405
|
key: 2,
|
|
1372
1406
|
cx: e.endX,
|
|
1373
1407
|
cy: e.y,
|
|
1374
1408
|
r: q.value,
|
|
1375
|
-
fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#end_grad_${
|
|
1409
|
+
fill: I.value.style.chart.plots.gradient.show ? I.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#end_grad_${A.value})` : I.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : I.value.style.chart.plots.endColor,
|
|
1376
1410
|
stroke: I.value.style.chart.plots.stroke,
|
|
1377
1411
|
"stroke-width": I.value.style.chart.plots.strokeWidth
|
|
1378
|
-
}, null, 8,
|
|
1412
|
+
}, null, 8, ft))
|
|
1379
1413
|
]))), 128)),
|
|
1380
|
-
I.value.style.chart.labels.startLabels.show ? (
|
|
1414
|
+
I.value.style.chart.labels.startLabels.show ? (S(), h("g", pt, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", { key: `start_label_${t}_${e.id}` }, [[null, void 0].includes(e.start) ? m("", !0) : (S(), h("text", {
|
|
1381
1415
|
key: 0,
|
|
1382
1416
|
x: e.startX,
|
|
1383
1417
|
y: e.y + q.value * 2 + I.value.style.chart.labels.startLabels.fontSize / 2,
|
|
1384
1418
|
fill: I.value.style.chart.plots.evaluationColors.enable && I.value.style.chart.labels.startLabels.useEvaluationColor ? e.evaluationColor : I.value.style.chart.labels.startLabels.useStartColor ? I.value.style.chart.plots.startColor : I.value.style.chart.labels.startLabels.color,
|
|
1385
1419
|
"font-size": I.value.style.chart.labels.startLabels.fontSize,
|
|
1386
1420
|
"text-anchor": "middle"
|
|
1387
|
-
},
|
|
1421
|
+
}, E(D(c)(I.value.style.chart.labels.formatter, e.start, D(i)({
|
|
1388
1422
|
p: I.value.style.chart.labels.prefix,
|
|
1389
1423
|
v: e.start,
|
|
1390
1424
|
s: I.value.style.chart.labels.suffix,
|
|
@@ -1392,15 +1426,15 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1392
1426
|
}), {
|
|
1393
1427
|
datapoint: e,
|
|
1394
1428
|
seriesIndex: t
|
|
1395
|
-
})), 9,
|
|
1396
|
-
I.value.style.chart.labels.endLabels.show ? (
|
|
1429
|
+
})), 9, mt))]))), 128))])) : m("", !0),
|
|
1430
|
+
I.value.style.chart.labels.endLabels.show ? (S(), h("g", ht, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", { key: `end_label_${t}_${e.id}` }, [[null, void 0].includes(e.end) ? m("", !0) : (S(), h("text", {
|
|
1397
1431
|
key: 0,
|
|
1398
1432
|
x: e.endX,
|
|
1399
1433
|
y: e.y - (q.value * 2 - I.value.style.chart.labels.startLabels.fontSize / 3),
|
|
1400
1434
|
fill: I.value.style.chart.plots.evaluationColors.enable && I.value.style.chart.labels.endLabels.useEvaluationColor ? e.evaluationColor : I.value.style.chart.labels.endLabels.useEndColor ? I.value.style.chart.plots.endColor : I.value.style.chart.labels.endLabels.color,
|
|
1401
1435
|
"font-size": I.value.style.chart.labels.endLabels.fontSize,
|
|
1402
1436
|
"text-anchor": "middle"
|
|
1403
|
-
},
|
|
1437
|
+
}, E(D(c)(I.value.style.chart.labels.formatter, e.end, D(i)({
|
|
1404
1438
|
p: I.value.style.chart.labels.prefix,
|
|
1405
1439
|
v: e.end,
|
|
1406
1440
|
s: I.value.style.chart.labels.suffix,
|
|
@@ -1408,92 +1442,92 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1408
1442
|
}), {
|
|
1409
1443
|
datapoint: e,
|
|
1410
1444
|
seriesIndex: t
|
|
1411
|
-
})), 9,
|
|
1412
|
-
|
|
1445
|
+
})), 9, gt))]))), 128))])) : m("", !0),
|
|
1446
|
+
g("g", null, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("rect", {
|
|
1413
1447
|
x: K.value.left,
|
|
1414
1448
|
y: K.value.top + t * Math.max(.1, K.value.rowHeight),
|
|
1415
1449
|
width: Math.max(.1, K.value.width),
|
|
1416
1450
|
height: Math.max(.1, K.value.rowHeight),
|
|
1417
|
-
fill: M.value === null ? "transparent" : M.value === t ?
|
|
1418
|
-
onMouseenter: (n) =>
|
|
1451
|
+
fill: M.value === null ? "transparent" : M.value === t ? D(o)(I.value.style.chart.highlighter.color, I.value.style.chart.highlighter.opacity) : "transparent",
|
|
1452
|
+
onMouseenter: (n) => zn({
|
|
1419
1453
|
datapoint: e,
|
|
1420
1454
|
seriesIndex: t
|
|
1421
1455
|
}),
|
|
1422
|
-
onMouseleave: (n) =>
|
|
1456
|
+
onMouseleave: (n) => Bn({
|
|
1423
1457
|
datapoint: e,
|
|
1424
1458
|
seriesIndex: t
|
|
1425
1459
|
}),
|
|
1426
|
-
onClick: (n) =>
|
|
1460
|
+
onClick: (n) => Vn({
|
|
1427
1461
|
datapoint: e,
|
|
1428
1462
|
seriesIndex: t
|
|
1429
1463
|
})
|
|
1430
|
-
}, null, 40,
|
|
1431
|
-
|
|
1464
|
+
}, null, 40, _t))), 256))]),
|
|
1465
|
+
T(e.$slots, "svg", { svg: {
|
|
1432
1466
|
...K.value,
|
|
1433
|
-
isPrintingImg:
|
|
1434
|
-
isPrintingSvg:
|
|
1467
|
+
isPrintingImg: D(dn) || D(fn) || qt.value,
|
|
1468
|
+
isPrintingSvg: Jt.value
|
|
1435
1469
|
} }, void 0, !0)
|
|
1436
|
-
], 46, We)), e.$slots.hint ? (
|
|
1470
|
+
], 46, We)), e.$slots.hint ? (S(), h("div", vt, [T(e.$slots, "hint", b(y({
|
|
1437
1471
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1438
|
-
isVisible:
|
|
1439
|
-
})), void 0, !0)])) :
|
|
1440
|
-
e.$slots.watermark ? (
|
|
1441
|
-
|
|
1442
|
-
|
|
1472
|
+
isVisible: $t.value
|
|
1473
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1474
|
+
e.$slots.watermark ? (S(), h("div", yt, [T(e.$slots, "watermark", b(y({ isPrinting: D(dn) || D(fn) || qt.value || Jt.value })), void 0, !0)])) : m("", !0),
|
|
1475
|
+
g("div", { id: `legend-bottom-${A.value}` }, null, 8, bt),
|
|
1476
|
+
Wt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(we, {
|
|
1443
1477
|
key: 6,
|
|
1444
|
-
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1445
|
-
}, [
|
|
1478
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1479
|
+
}, [g("div", {
|
|
1446
1480
|
ref_key: "chartLegend",
|
|
1447
|
-
ref:
|
|
1448
|
-
}, [
|
|
1449
|
-
key: `legend_${
|
|
1450
|
-
legendSet:
|
|
1451
|
-
config:
|
|
1481
|
+
ref: Rt
|
|
1482
|
+
}, [T(e.$slots, "legend", { legend: En.value }, () => [I.value.style.chart.legend.show && Ft.value ? (S(), p(Se, {
|
|
1483
|
+
key: `legend_${Ut.value}`,
|
|
1484
|
+
legendSet: En.value,
|
|
1485
|
+
config: Dn.value,
|
|
1452
1486
|
clickable: !1
|
|
1453
1487
|
}, {
|
|
1454
|
-
item:
|
|
1455
|
-
xmlns:
|
|
1488
|
+
item: O(({ legend: e }) => [g("div", { style: x(`display:flex;align-items:center;gap:4px;font-size:${I.value.style.chart.legend.fontSize}px`) }, [(S(), h("svg", {
|
|
1489
|
+
xmlns: D(ie),
|
|
1456
1490
|
viewBox: "0 0 20 20",
|
|
1457
1491
|
height: I.value.style.chart.legend.fontSize,
|
|
1458
1492
|
width: I.value.style.chart.legend.fontSize
|
|
1459
|
-
}, [
|
|
1493
|
+
}, [g("circle", {
|
|
1460
1494
|
cx: 10,
|
|
1461
1495
|
cy: 10,
|
|
1462
1496
|
r: 9,
|
|
1463
1497
|
fill: e.color
|
|
1464
|
-
}, null, 8,
|
|
1498
|
+
}, null, 8, St)], 8, xt)), D(tn) ? m("", !0) : (S(), h(d, { key: 0 }, [Ee(E(e.name), 1)], 64))], 4)]),
|
|
1465
1499
|
_: 1
|
|
1466
|
-
}, 8, ["legendSet", "config"])) :
|
|
1467
|
-
e.$slots.source ? (
|
|
1500
|
+
}, 8, ["legendSet", "config"])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1501
|
+
e.$slots.source ? (S(), h("div", {
|
|
1468
1502
|
key: 7,
|
|
1469
1503
|
ref_key: "source",
|
|
1470
|
-
ref:
|
|
1504
|
+
ref: zt,
|
|
1471
1505
|
dir: "auto"
|
|
1472
|
-
}, [
|
|
1473
|
-
|
|
1506
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1507
|
+
Ft.value && I.value.userOptions.buttons.table ? (S(), p(Me(Wn.value.component), De({ key: 8 }, Wn.value.props, {
|
|
1474
1508
|
ref_key: "tableUnit",
|
|
1475
|
-
ref:
|
|
1476
|
-
onClose:
|
|
1509
|
+
ref: Gt,
|
|
1510
|
+
onClose: Gn
|
|
1477
1511
|
}), Te({
|
|
1478
|
-
content:
|
|
1479
|
-
key: `table_${
|
|
1512
|
+
content: O(() => [(S(), p(D(Et), {
|
|
1513
|
+
key: `table_${Ht.value}`,
|
|
1480
1514
|
colNames: Z.value.colNames,
|
|
1481
1515
|
head: Z.value.head,
|
|
1482
1516
|
body: Z.value.body,
|
|
1483
1517
|
config: Z.value.config,
|
|
1484
|
-
title: I.value.table.useDialog ? "" :
|
|
1518
|
+
title: I.value.table.useDialog ? "" : Wn.value.title,
|
|
1485
1519
|
withCloseButton: !I.value.table.useDialog,
|
|
1486
1520
|
isCursorPointer: L.value,
|
|
1487
|
-
onClose:
|
|
1521
|
+
onClose: Gn
|
|
1488
1522
|
}, {
|
|
1489
|
-
th:
|
|
1523
|
+
th: O(({ th: e }) => [g("div", {
|
|
1490
1524
|
innerHTML: e,
|
|
1491
1525
|
style: {
|
|
1492
1526
|
display: "flex",
|
|
1493
1527
|
"align-items": "center"
|
|
1494
1528
|
}
|
|
1495
|
-
}, null, 8,
|
|
1496
|
-
td:
|
|
1529
|
+
}, null, 8, Ct)]),
|
|
1530
|
+
td: O(({ td: e }) => [Ee(E(e.name || e), 1)]),
|
|
1497
1531
|
_: 1
|
|
1498
1532
|
}, 8, [
|
|
1499
1533
|
"colNames",
|
|
@@ -1507,24 +1541,24 @@ var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He
|
|
|
1507
1541
|
_: 2
|
|
1508
1542
|
}, [I.value.table.useDialog ? {
|
|
1509
1543
|
name: "title",
|
|
1510
|
-
fn:
|
|
1544
|
+
fn: O(() => [Ee(E(Wn.value.title), 1)]),
|
|
1511
1545
|
key: "0"
|
|
1512
1546
|
} : void 0, I.value.table.useDialog ? {
|
|
1513
1547
|
name: "actions",
|
|
1514
|
-
fn:
|
|
1548
|
+
fn: O(() => [g("button", {
|
|
1515
1549
|
tabindex: "0",
|
|
1516
1550
|
class: "vue-ui-user-options-button",
|
|
1517
|
-
onClick: t[0] ||= (e) =>
|
|
1518
|
-
style:
|
|
1519
|
-
}, [
|
|
1551
|
+
onClick: t[0] ||= (e) => On(I.value.userOptions.callbacks.csv),
|
|
1552
|
+
style: x({ cursor: L.value ? "pointer" : "default" })
|
|
1553
|
+
}, [_(D(wt), {
|
|
1520
1554
|
name: "fileCsv",
|
|
1521
|
-
stroke:
|
|
1555
|
+
stroke: Wn.value.props.color
|
|
1522
1556
|
}, null, 8, ["stroke"])], 4)]),
|
|
1523
1557
|
key: "1"
|
|
1524
|
-
} : void 0]), 1040)) :
|
|
1525
|
-
|
|
1558
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1559
|
+
T(e.$slots, "skeleton", {}, () => [D(tn) ? (S(), p(le, { key: 0 })) : m("", !0)], !0)
|
|
1526
1560
|
], 46, Be));
|
|
1527
1561
|
}
|
|
1528
|
-
}, [["__scopeId", "data-v-
|
|
1562
|
+
}, [["__scopeId", "data-v-b7471d7e"]]);
|
|
1529
1563
|
//#endregion
|
|
1530
|
-
export { ze as n,
|
|
1564
|
+
export { ze as n, wt as t };
|